Help with GWT FlowPanel and other Panel Styles!

2010-02-18 Thread Tan Jia Bao
Hi, I'm currently making an e-commerce site using GWT and DnD.

Basically everything is well and in order except for the displaying of the
panels is done correctly.

I'm using GWT RPC to retrieve the data from my DAO, in my main GWT RPC
Client side, the data are used to create a new Widget where stuffs such as
the Product name and Image are used in.

In that Widget's constructor, I put all the Labels, Image into a Vertical
Panel, the constructor is created with UsageExample client side file, in
that client file, I have a FlowPanel which adds the widget into itself. Then
my mainentrypoint calls and retrieves that FlowPanel and placing it into the
mainPanel to display on the webpage.

Thing is, the FlowPanel doesn't display like a FlowPanel, but rather like a
VerticalPanel, I tried changing it to horizontalPanel and it works,
everything else works except for the FlowPanel. Can anyone help on what I'm
doing wrong? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Error loading module " No source code is available for com.google.gdata.util.AuthenticationException; did you forget to inherit a required module" in GWT after using gdata-java-client and appengine

2010-02-18 Thread Shyam Visamsetty
Hi All,

I am getting an error while running in development mode in GWT 2.0 and
also AppEngine. I add the external library "gdata-java-client'

Using Eclipse IDE.

Error is:
"No source code is available for
com.google.gdata.util.AuthenticationException; did you forget to
inherit a required module"


Another error is "The import com.google.appengine cannot be resolved"

Could you kindly provide suggestions on how to overcome them. What is
the module to be inherited. Why is AppEngine not resolving.

I  am a newbie and would appreciate any help. TIA.

Thanks,
Shyam.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Compilation of gwt project with multiple modules

2010-02-18 Thread vinayak
Moderators,
   Nobody is answering this question. Is it that
others can not view this thread anywhere? Do I need to do something
more to make it viewable to others ?
Question must be easily answerable Please help.
Thanks.

- vinayak

On Feb 17, 11:17 am, vinayak  wrote:
> Hello,
>            I am a newbie to GWT and using gwt 2.0 and now gwt 2.0.2 to
> create my web application. (Actually I am converting my existing app
> to a gwt app...). To do this I am trying one small example. To avoid
> very large .no-cache.js file and large first page Ioad time, I have
> created 1 module (e.g. MyModule) and I am using it in my main gwt
> project by inheriting it. My main project name is MyModuleUsage.
>
> Here is the code in MyModule. This has no entrypoint class. It has one
> MyForm class, one DetailsService and .gwt.xml file.  (given below)
>
> public class MyForm extends Composite {
>   // Code to create my form
>
> }
>
> MyModule.xml:
>
> 
> 
>   
>   
> 
>
> After creating this module, I created MyModule.jar with src and class
> files as described on
>
> http://developerlife.com/tutorials/?p=229  (Although it was for
> gwt1.4 and IDEA, I could use that info on gwt 2.0 and eclipse.)
>
> I created MyModule.jar manually by copying src and class files in
> required dir structure. ( I hope there is some utility of gwt itself
> to create one...please let me know if any)
>
> Code for MyModuleUsage is as given below.
>
> public class MyModuleUsage implements EntryPoint {
>
> public void onModuleLoad() {
> // My buttons and textboxes and tables
>                 MyForm myform = new
> MyForm();                             // This is from inherited
> module.
>                 RootPanel.get("MyMod").add(myform.asWidget());
> // some more buttons...and their click handlers..
>
> }
>
> MyModuleUsage.gwt.xml
>
> 
> 
>   
>   
>   
>   
>   
>   
> 
>
> There is one more service of this project itself to handle clicks of
> buttons created inside MyModuleUsage..
>
> Now if I run MyModuleUsage then I get required output. Click on
> buttons of Myform are handled by service inside MyModule and click on
> buttons of MyModuleUsage are handled by service inside MyModuleUsage
> as expected. This gives me a feeling that I can use MyModule as
> indepedent component which I can use any other gwt project.
>
> If I do a gwtcompilationof MyModuleUsage in eclipse then generated
> no-cache.js file is of 6 kb and cache.html file is of 80 kb.
>
> If I write code to generate same UI and service inside a single module
> then generated no-cache.js file is of 10 kb and cache.html file is of
> 230 kb.
>
> My question is , the way I am using multiple modules to reduce files
> sizes, is it correct or no ?
> Second I have never gwt compiled MyModule independently. so when
> exactly it gets compiled ?
> where are the compiled files for MyModule.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.0 and Eclipse, Project redeployment

2010-02-18 Thread paata
uupss,
It works,
My project wasn't running using debug.


Thank you very much.


Regards,
Paata Lominadze.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Best Practices for MVP with Composite Template View ( Header + Content + Nav + Footer) + UiBinder

2010-02-18 Thread Prashant Hegde
I am using a similar strategy and it works just fine. I suspect it may 
be a problem with your DockLayoutPanel sizing. Please check if the sizes 
are 100%, also give the panel a border for debugging to see how your 
layout looks...


If it helps, I have listed my UiBinder file.


.layout {
border-width:1px;
border-style:solid;
width: 100%;
height: 100%;

}

.mainlayout {
width: 100%;
height: 100%;
position:relative;
top:2em;
left: 2em;
}
















-- Prashant

On 19-02-2010 09:50, digitalsam007 wrote:

Hello,

I have been trying to implement the MVP pattern in my new GWT app. I
have followed the Contacts example app and it seems to be quite
straightforward. In there, the controller passes the root
panel(container) to every presenter in its go method. And these
presenters add the respective view(Display) to the container.

However, in my case I have to use a template with Header, footer,
Navigation and Content. Something quite similar to the Mail sample app
found in the GWT SDK. I tried to create a wrapper view class and its
corresponding Presenter and included all the 4 diffrent views viz
header, footer, nav and content in it ( WrapperView.ui.xml).

I provided extra methods in the WrapperView that can return HasWidgets
for each of the segments in the page like this -

HasWidgets getHeaderContainer()
HasWidgets getContentContainer()
HasWidgets getFooterContainer()
HasWidgets getNavContainer()

In the WrapperView.ui.xml , i added a dockLayoutPanel which inturn
contains each of these containers ( each container elemensta re in
turn SimplePanel components which contains the actual widgets for
Header, footer...etc)













So, the first time when the module loads and the AppController.go
method is invoked I trigget the history with a new tocket eg Home.
This invokes the valueChanged method and in that I create the
WrapperView (if not already created; yes i maintain a reference to
this object in AppController) and present it on screen. Then, I call
the views getContentContainer method and try to add the content
directly to that in another presenter. I do not pass the topmost
container this time.

Logically it should work and the content area must be refreshed with
the respective Views when diffrent presenter presents it. But
unfortunately I cannot achieve what I want to yet. So, could anyone of
you provide me with some ideas or may share with me the best way of
achieving this usecase?

Any help in this regard will be highly appreciated

Regards

Sam

   


--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Download, IE7 Download Blocker

2010-02-18 Thread Joe Cole
Here's some code. Perhaps this or a modification should be included in
gwt itself.

There are a few problems with downloading files.

1) IE doesn't always let you open a file download dialog. It will on
some machines, others it won't.
2) Users double click. Prevent this!
3) When opening a window from javascript you want to test whether the
window has been blocked.

You'll have to adjust the code below as it's got some things specific
to our codebase, but it gives you the general idea.

public void download(String title, ClientFile file){
if (Browser.isInternetExplorer()) {
new FileResultsDialog("Download", file).show();
return;
}

if (!PopupDetectingWindow.open(file.getURL(), "_blank", "")) {
// show HUGE pop-up blocked message.
controller
.getCurrentPage()
.showErrorMessage(
"Your download was 
blocked! Please enable popups for this site.
This is usually done in a small toolbar just above this sites window.
To test, just click download again.");
}


public class PopupDetectingWindow {

/**
 * Opens a new browser window. The "name" and "features" arguments
are
 * specified http://developer.mozilla.org/en/docs/DOM:window.open'>here.
 *
 * @param url
 *the URL that the new window will display
 * @param name
 *the name of the window (e.g. "_blank")
 * @param features
 *the features to be enabled/disabled on this window
 * @return whether or not the popup was opened
 */
public static native boolean open(String url, String name, String
features) /*-{
var mine = $wnd.open(url, name, features);
if( mine ) return true;
return false;
  }-*/;
}


in our file results dialog (just a popuppanel):

ExternalHyperlink externalHyperlink = new
ExternalHyperlink(file.getName(), file.getURL());
headerPanel.addLink(externalHyperlink);

Hope that helps!

On Feb 19, 4:15 pm, Geoffrey Wiseman 
wrote:
> I have a GWT application that uses GWT-RPC to send data back and forth
> to the server.  I've got a button that downloads a PDF based on that
> data from the server.  PDF Generation works fine, and the download
> worked fine using Window.open().
>
> However, as it stood, the download would not include any data that had
> been changed on-screen; but if I add a GWT-RPC call before the
> download, then IE7 blocks the download because it decides that the
> download is not the direct result of user action (I guess because the
> Window.open happens after the async 'save my data' call).
>
> I've tried some other suggestions in the group's archive for iframes
> and the like, but all of these are also blocked by the download
> blocker.  Has anyone run into this and found a solution that they're
> happy with?  Sadly, IE7 is the target browser for this client, so it's
> a bit of an issue for me.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Best Practices for MVP with Composite Template View ( Header + Content + Nav + Footer) + UiBinder

2010-02-18 Thread digitalsam007
Hello,

I have been trying to implement the MVP pattern in my new GWT app. I
have followed the Contacts example app and it seems to be quite
straightforward. In there, the controller passes the root
panel(container) to every presenter in its go method. And these
presenters add the respective view(Display) to the container.

However, in my case I have to use a template with Header, footer,
Navigation and Content. Something quite similar to the Mail sample app
found in the GWT SDK. I tried to create a wrapper view class and its
corresponding Presenter and included all the 4 diffrent views viz
header, footer, nav and content in it ( WrapperView.ui.xml).

I provided extra methods in the WrapperView that can return HasWidgets
for each of the segments in the page like this -

HasWidgets getHeaderContainer()
HasWidgets getContentContainer()
HasWidgets getFooterContainer()
HasWidgets getNavContainer()

In the WrapperView.ui.xml , i added a dockLayoutPanel which inturn
contains each of these containers ( each container elemensta re in
turn SimplePanel components which contains the actual widgets for
Header, footer...etc)













So, the first time when the module loads and the AppController.go
method is invoked I trigget the history with a new tocket eg Home.
This invokes the valueChanged method and in that I create the
WrapperView (if not already created; yes i maintain a reference to
this object in AppController) and present it on screen. Then, I call
the views getContentContainer method and try to add the content
directly to that in another presenter. I do not pass the topmost
container this time.

Logically it should work and the content area must be refreshed with
the respective Views when diffrent presenter presents it. But
unfortunately I cannot achieve what I want to yet. So, could anyone of
you provide me with some ideas or may share with me the best way of
achieving this usecase?

Any help in this regard will be highly appreciated

Regards

Sam

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Download, IE7 Download Blocker

2010-02-18 Thread Geoffrey Wiseman
I have a GWT application that uses GWT-RPC to send data back and forth
to the server.  I've got a button that downloads a PDF based on that
data from the server.  PDF Generation works fine, and the download
worked fine using Window.open().

However, as it stood, the download would not include any data that had
been changed on-screen; but if I add a GWT-RPC call before the
download, then IE7 blocks the download because it decides that the
download is not the direct result of user action (I guess because the
Window.open happens after the async 'save my data' call).

I've tried some other suggestions in the group's archive for iframes
and the like, but all of these are also blocked by the download
blocker.  Has anyone run into this and found a solution that they're
happy with?  Sadly, IE7 is the target browser for this client, so it's
a bit of an issue for me.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Alternative for Class.isAssignableFrom() ?

2010-02-18 Thread Dominik Steiner
Hi there,

I'm trying to implement an event bus that will receive register
listeners like this

public  void registerListener(Class
eventClassname, EventListener eventListener);
(Event is a custom interface)

what i would like then to achieve would be to be able to fire an event

public void fireEvent(Event event);

and be able to trigger all my event listeners that either are of the
same event.getClass() or that are assignable from the event class that
has been fired. Getting all the listeners that correspond to the event
class itself is no problem, but how can i achieve getting all the
listeners that registered to a interface that the event class might
implement without being able to use Class.isAssignableFrom()?

Thanks for any hints and help in advance.

Dominik

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to set the initial state of a radiobutton?

2010-02-18 Thread dhoffer
Also doesn't work with 2.0.2.  Created defect issue
http://code.google.com/p/google-web-toolkit/issues/detail?id=4647

-Dave

On Feb 18, 11:18 am, dhoffer  wrote:
> If I add a couple radio buttons to the main panel it works fine.
>
> In my app the radio buttons are in a FlexTable.  I just add them as
> widgets to the table.  Is this a known problem?  Do I have to do
> something different when in a table?
>
> -Dave
>
> On Feb 18, 9:23 am, dhoffer  wrote:
>
> > Hi John,
>
> > Thanks for the reply.  No I'm not doing any RPC with respect to these
> > radio buttons.  I have RPC but its for other purposes.  I have stepped
> > through the code many times with an IDE, everything seems in order.
> > Its just the radio buttons are not selected when the app starts?!?  I
> > will try a smaller app and see if they work there.  Its a bit strange
> > <= 10% of the time they are displayed correctly
>
> > I just noticed that there is a new version 2.0.2...I might try that
> > too.
>
> > -Dave
>
> > On Feb 18, 8:52 am, John Denley  wrote:
>
> > > Its hard to try to solve this problem without being able to debug the 
> > > code,
> > > and Ive certainly got no time for that!
>
> > > You can try to create a really small application that just creates and 
> > > sets
> > > the radio buttons, so that you can proove to yourself that the 
> > > functionality
> > > works.
>
> > > You could also try stepping through the code line by line (if you are 
> > > using
> > > something like the eclipse IDE)
>
> > > Otherwise you could try manually stepping through your own code, very
> > > tedious and boring and you need to concentrate but its possible to do if
> > > theres not too much code to trawl through!
>
> > > Regarding the Asynchronos problem, this all depends if you are using RPC
> > > calls to your server to get the values for your radio buttons, but Im
> > > guessing from what you have said that you are currently hardcoding the
> > > initial values (which of course it one of the debugging steps you could 
> > > have
> > > tried). The problem though can be that you create and display the radio
> > > buttons, but then the RPC call fails to update them for whatever reason, 
> > > or
> > > worse yet, tries to update the radio buttons before they have even been
> > > created!
>
> > > Other than that I dont know enough about how you are trying to do it (or
> > > enough of the internal workings of GWT) to offer any advice on the actual
> > > order of creation etc.
>
> > > However its worth remembering and considering whether or not your panels 
> > > or
> > > buttons are being destroyed or just merely hidden. Ive made that mistake
> > > with dialog boxes and not realising that a a call to dialogbox.hide is 
> > > only
> > > hiding the dialog box, so if you try to create the dialogbox at the
> > > beginning of a function and then hide it later in the same function, later
> > > when you call the same function, it will create a new (clean) version of 
> > > the
> > > same dialogbox
>
> > > On 18 February 2010 15:17, dhoffer  wrote:
>
> > > > John,
>
> > > > So how do I solve this?  I'm not clear on the solution you propose.
>
> > > > -Dave
>
> > > > On Feb 18, 7:51 am, John Denley  wrote:
> > > > > is it possible that this maybe an asynchronos issue, I have had that
> > > > before
> > > > > where Im displaying the radio buttons before im setting them because 
> > > > > the
> > > > > setting of the buttons is based on a reply from the server, which is 
> > > > > an
> > > > > asynchronous call!
>
> > > > > On 18 February 2010 14:28, Bonor  wrote:
>
> > > > > > It should! May be something else deselects it?
>
> > > > > > I use many radio's and I just use:
> > > > > > radio[i].setValue(true);
>
> > > > > > On 18 feb, 04:42, dhoffer  wrote:
> > > > > > > gwt 2.0.  I've tried calling setValue(true, true) on radio buttons
> > > > but
> > > > > > > when the app is run, neither radio button is selected, what is the
> > > > > > > trick to code setting the initial value of radio buttons?
>
> > > > > > > -Dave
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Google Web Toolkit" group.
> > > > > > To post to this group, send email to
> > > > google-web-tool...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > google-web-toolkit+unsubscr...@googlegroups.com
> > > > 
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-

Re: tomcat and apache problem

2010-02-18 Thread Fran
anyone know the problem? please

On 18 feb, 00:41, Fran  wrote:
> I use Comet that its Long polling.
> I think that the problem is a timeout that is applied by tomcat when
> apache conect the proxy to the tomcat.
>
> If I execute the aplication directly in tomcat. Its works fine.
> If I execute the aplication in apache and a proxypass to servlet, the
> aplication has a timeout between comet events that I dont understand.
>
> You can test it:
>
> Aplication in tomcat 
> directly:http://california.lirondo.com:8081/msn/Messenger.html
> ---> It works very good (is needed to use diferents navegators for
> conect diferent users)
> Aplication in apache:http://california.lirondo.com/msn/Messenger.html
> --> If you are patient, you can test that works fine but is s slow
>
> Help please, thanks!
>
> On 17 feb, 23:46, Chris Lercher  wrote:
>
> > Hi,
>
> > I don't have an Apache+Tomcat setup, so I can only guess what may be
> > happening: There are two basic ways to do Comet.
>
> > - Streaming (for one request, the server sends a few bytes, then later
> > some more etc.)
> > - Long polling (for one request, the server sends zero bytes
> > initially, and just waits until it can send anything. When the client
> > receives that response, it creates a new request.)
>
> > Streaming is known not to work reliably, especially with proxies
> > (unfortunately). Long polling also only works reliably, if you don't
> > wait too long with your response.
>
> > Even if you manage to set up your apache in a way that it works, you
> > probably can't control how additional proxies etc (and also the
> > browser) between your server and the client behave.
>
> > Maybe this helps a little bit.
> > Chris
>
> > On Feb 17, 8:56 pm, Fran  wrote:
>
> > > anyone can help me please?
>
> > > On 17 feb, 00:53, Fran  wrote:
>
> > > > help me please
>
> > > > On 16 feb, 19:54, Fran  wrote:
>
> > > > > I am using now Proxypass for apache. The config is:
>
> > > > > 
> > > > >         ServerName california..com
> > > > >         ServerAdmin webmas...@localhost
> > > > >         DocumentRoot /var/www/
> > > > >         ProxyRequests On
> > > > >         
> > > > >                 Order deny,allow
> > > > >                 Allow from all
> > > > >         
> > > > >         ProxyPass 
> > > > > /app/com.apphttp://california..com:8081/app/com.app
> > > > >         ProxyPassReverse 
> > > > > /app/com.apphttp://california..com:8081/app/com.app
>
> > > > >         DirectoryIndex index.php
> > > > >         AccessFileName .htaccess
> > > > > 
>
> > > > > The aplication is a Comet chat.
> > > > > With this configuration, the aplication executed from apache works but
> > > > > some message lost.
> > > > > The error log shows:
>
> > > > > [error] [client ] proxy: error reading status line from remote
> > > > > server california..com, 
> > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
> > > > > [error] [client ] ] proxy: Error reading from remote server
> > > > > returned by /app/com.app/messenger, 
> > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
>
> > > > > I read in some forum that is needed the lines in Location directive of
> > > > > apache:
>
> > > > > SetEnv force-proxy-request-1.0 1
> > > > > SetEnv proxy-nokeepalive 1
>
> > > > > If I put this, the aplications is beeing more and more slowly.
>
> > > > > Someone can tell me a solutions please :(
>
> > > > > On 15 feb, 22:47, Fran  wrote:
>
> > > > > > Hello,
>
> > > > > > I need your help about GWT integration in apache and tomcat.
>
> > > > > > I have a GWT aplication that has server side. This server side is
> > > > > > listening in 8081 port at tomcat.
> > > > > > I need that the client side be in apache that is listening in port 
> > > > > > 80,
> > > > > > so I need call server side at port 8081 of tomcat.
> > > > > > How can I do?
>
> > > > > > If I run the aplication int tomcat, its works fine. But If I run the
> > > > > > aplication in apache, the server side dont work.
>
> > > > > > Help me please
> > > > > > Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Is there a best practice for compiling multiple modules?

2010-02-18 Thread JimmyJoe
I appear to be in a rare situation with regard to GWT use:  my team
has dozens of independent GWT modules and our compile times are rising
as we add more modules.

A couple years back the company I work for decided to switch to GWT
for new product development.  We have a SaaS portal that has dozens of
legacy applications written in JSPs, so this was a big change for
us.

Now that we do all new development in GWT, we are developing all new
products as separate modules, each of which is hosted in its own JSP
(to take advantage of all our legacy code there, punt on some
development costs, etc.).  They fit in with our existing code very
well.

Long story short, we now find ourselves with upwards of 20 modules and
climbing, and our complete build times are getting extraordinarily
long.

Here's a little more info:

Many of our modules are built on a common framework which is its own
module sans entrypoint.  Often a module will consist of a single page
of functionality distinct from other features in our product suite --
for instance setting org preferences, searching for emails, etc.  Some
of the modules could be combined, such as "administration" modules; my
concern with that approach is that we're still using GWT 1.7 and don't
have code splitting to keep our performance numbers good if we go that
direction.

Regardless of that special case, however, we will eventually have
dozens of large(-ish?), complex GWT modules that need to be regularly
compile.  Even with Ant's  and GWT's localWorkers we are
already seeing significantly extended compile times.

Our current approach for single product development is to comment out
all the modules that are not under development (Google's own best
practice, as far as I have heard), and we are using development mode
extensively, which obviously removes the need to compile the GWT code
often.  We also do no internationalization or localization.

What are your thoughts?  Is there a good way to manage a large number
of modules and keep compile times down?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to compile multiple modules independent of each other

2010-02-18 Thread JimmyJoe
If you do not want to affect the code generated for other widgets when
you change one widget, however, you will need to define one module per
widget which could start to get unmanageable.

You might be interested in this thread, which can form the basis of
the injection of GWT widgets into a page:
http://aarendar.wordpress.com/2010/01/11/custom-integration-of-gwt-widgets-into-jsps/



On Feb 6, 12:10 am, Ganesh  wrote:
> Friends, any comment on this.
>
> Ganesh
>
> On Jan 18, 1:32 pm, Ganesh  wrote:
>
>
>
> > Hello Chris
>
> > Sorry for being late, actually was out of office so could not check my
> > emails.
>
> > Here I want to extend GWT's library and provide a more powerful
> > library to end users. e.g. I can provide a combo field where user can
> > selectmultiplevalues as provided by gmail while composing mail for
> > selecting To, Cc & Bcc. A more powerful date field can be provided
> > which understands user's inputs intelligently & much more widgets like
> > this. Now my problem is I want to compile each of these widgets
> > separately in a  so that if changes are made in some base widget, & no
> > changes are done in extending widgets, js of extending widgets should
> > not be downloaded on client side. It is only possible when each module
> > generates it's own js files without generating js of it's parent
> > module.
>
> > Now it will be really helpful if you could provide some help how we
> > can do it. Even if we need to apply some patch in GWT's compiler,
> > kindly hint for this & we can opt for that too :)
>
> > Thanks in advance.
>
> > Ganesh Bansal
>
> > On Jan 8, 4:12 am, Chris Ramsdale  wrote:
>
> > > Ganesh,
>
> > > If you wouldn't mind, please provide us with some hypothetical, real world
> > > examples of widgets that you are describing, as well as how they would
> > > interact and depend on each other.
>
> > > Typically hostingmultipleGWT-based widgets on your servers for others to
> > > consume within a mashup is a non-issue, as the consumer would simply 
> > > include
> > > script tags that reference your widgets. In some cases a separate iframe 
> > > or
> > > xs linker might be necessary, but the base cases should run right out of 
> > > the
> > > box.
>
> > > The more complicated part (and again, I may be misunderstanding you) is
> > > having widget x rely on widget y, with the requirement that they compile
> > > separately and produce separate js.
>
> > > Do you have a sample project that you could provide?
>
> > > - Chris
>
> > > On Thu, Jan 7, 2010 at 2:25 AM, Ganesh  wrote:
> > > > Would request some one to comment on this so that I can move further
> > > > with my application. Kindly let me if not possible in GWT so that I
> > > > can look further for some other technology for my project.
>
> > > > Ganesh Bansal
>
> > > > On Jan 5, 10:08 am, Ganesh  wrote:
> > > > > Hello Sri
>
> > > > > Thanks for your comments. But I think my requirement is a very genuine
> > > > > and if can be achieved in GWT, it will be a great feature for creating
> > > > > client side component libraries using GWT. I would request to some one
> > > > > from GWT team to comment on this whether it is possible (might be with
> > > > > the help of some patch -:)) or if they are planning to provide it in
> > > > > future releases of GWT.
>
> > > > > Thanks
>
> > > > > Ganesh Bansal
>
> > > > > On Jan 1, 3:57 am, Sripathi Krishnan 
> > > > > wrote:
>
> > > > > > GWT was never meant to be used that way. If you want to share 
> > > > > > widgets,
> > > > it
> > > > > > has to be done at compile time, not at runtime.
>
> > > > > > The gwt-exporter  project 
> > > > > > can
> > > > help
> > > > > > you to some extent, you can have a look at it.
>
> > > > > > --Sri
>
> > > > > > 2009/12/31 Ganesh 
>
> > > > > > > Hi All
>
> > > > > > > I am using GWT2.0. I want to create some client side widgets by
> > > > > > > extending GWT's widgets. These widgets will be deployed on my 
> > > > > > > server
> > > > &
> > > > > > > I will provide public links of js (.nocache.js) file of these 
> > > > > > > widgets
> > > > > > > so that a user can include these in his application's html page & 
> > > > > > > use
> > > > > > > them. I will deploy many of such widgets on my server. If a user
> > > > wants
> > > > > > > to use more than one widget, he need to include js file of each
> > > > widget
> > > > > > > in his html file. Each widget will have it's own module.
>
> > > > > > > Further my widgets can be dependent on each other. Suppose 
> > > > > > > Widget1 is
> > > > > > > dependent on Widget2 & user wants to use Widget1, he needs to 
> > > > > > > include
> > > > > > > js of both widgets (Widget1 & Widget2) in his html file.
>
> > > > > > > Now my problem is
> > > > > > > - How to compile my Widget1's module so that while compiling 
> > > > > > > Widget1,
> > > > > > > it doesn't generate js for Widget2 as it will be provided to it at
> > > > run
> > > > > > > time (as user will 

Resizing Events for % Sized Widgets/Panels?

2010-02-18 Thread Andrew Hughes
Hi All,

I've got...

myWidget.setSize("100%","100%");


The actualy size of this can change dynamically, as it's a % and not
absolute. For example:
+ other content is added to the dom
+ the css style is changed
+ a split panel is moved by the user
+ the browser window size changes <--- ignore this, we have
Window.addResizeHandler()

Anyway, if myWidget (or the panel around it) changes is actual size - How
can I detect this? Do I already have an event I can listen for?

Cheers :)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: The method doDetachChildren() from the type Panel is not visible

2010-02-18 Thread javaunixsolaris
RootPanel.get().clear() is what I ended up using.  My specific use
case was clearing the screen for new widgets.

The bigger picture is I'm trying to emulate a traditional web
application, as in every time you click a link a new page shows up.

On Feb 18, 7:18 am, Thomas Broyer  wrote:
> On Feb 17, 8:47 pm, javaunixsolaris  wrote:
>
> > GWT won't let me call RootPanel.get().doDetachChildren();  It says,
> > "The method doDetachChildren() from the type Panel is not visible" but
> > the method is protected (in the Panel parent class) so it's children
> > should be able to call it.  Ideas?
>
> Why would you like to call this method? (at least call it that way,
> i.e. on RootPanel.get())
> One thing that's quite clear, doDetachChildren is not what you're
> looking for. Maybe RootPanel.get().clear()?
> What's your use case?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Parameter 0 of is of an unknown type 'java.lang.String/2004016611'

2010-02-18 Thread gazarcher
Up until this week I was using IntelliJ IDEA 9.0 with GWT 1.7.1 on Mac
OS X 10.5 and decided to upgrade to GWT 2.0.2 per the instructions on
the GWT Website, including installing the GWT plugin into Firefox.

After recompiling and running my application with several GWT modules
and running in Firefox 3.5.7, Firefox 3.6 and Safari 4.0.3, the GWT
modules all give the same error:

Parameter 0 of is of an unknown type 'java.lang.String/2004016611'

but even before that GWT spewed "ERROR: Failed to parse the policy
file " for each module.

I've cleaned out output folders/directories in IntelliJ, deleted
caches for IntelliJ and Firefox, and tried again, but with the same
result.  Nothing has changed in my code.

I cleared out output folders/directories in IntelliJ, deleted caches
for IntelliJ and Firefox again and uninstalled GWT 2.0.2 from my
IntelliJ project, reinstalled GWT 1.7.1, compiled and every thing ran
fine again.

I've looked around the discussion groups and other people appear to be
having the same problem with GWT 2.0.x.. so even though GWT 2.0 has
gone through beta, early access, etc., and has now gone up two more
versions, this is still an issue, and not just for me.  I understand
the GWT version 1.0.7511 plugin for Firefox also has an issue for some
folks.  I don't know if it is this causing the problem.

Is anybody actually working with GWT 2.0 in their projects?  If so, is
there a workaround for this issue if they hit the same problem?

Is anyone on the GWT team aware of this issue and working on it?

At the moment, GWT 2.0.x is unusable for me and trying to use it is
holding up my work.  I'm going back to GWT 1.7.1 until I find a
solution (or you do!).

Any help on this matter is *greatly* appreciated.

Cheers,
- Garry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Creating text effects in GWT

2010-02-18 Thread Joe Cole
Another option for newer browsers is to use CSS3 which can be very
impressive.
There are tons of sites showing the options eg:
http://www.css3.info/preview/text-shadow/

On Feb 19, 11:20 am, Lukas Laag  wrote:
> Have you considered using SVG ? In terms of possible effects, there is
> virtually no limit to what is possible to achieve. If you look at the
> SVG spec, you will get a good idea of the available 
> features:http://www.w3.org/TR/SVG11/text.htmlhttp://www.w3.org/TR/SVG11/filters.html#AnExample
>
> I am developing a GWT library for SVG (http://localhost/vectomatic/
> libgwtsvg) which provides a complete GWT front-end to the browser's
> SVG engine. Though the lib is still very young, I think an app such as
> the one you describe could be developed with it.
>
> On Feb 18, 6:26 am, Zach Murphy  wrote:
>
>
>
> > Hi all,
>
> > I am creating an app where a user enters text into a textbox and I
> > display the text elsewhere.  Currently I am creating a new HTML when I
> > display the text.  While this gives me some limited effect options
> > (bold, italics, color, etc.), I need more.
>
> > I want the user to be able to be able to choose different effect
> > styles and change the displayed text.  For instance they might change
> > the shape of the text, curve it, bulge it, make it diagonal, etc.  But
> > also keep the old effects, like bold and different fonts.
>
> > Are there any GWT or javascript tools that might help accomplish
> > this?  I haven't been able to find any and I'd prefer not to have to
> > write all the graphic mathematics by myself.  My other thought is to
> > make the text an image and manipulate the image.  Any help or guidance
> > would be greatly appreciated.
>
> > Thanks,
> > Zach

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help Needed : GWT Developer Plugin is not working with Mozilla Firefox

2010-02-18 Thread Lukas Laag
You might want to read this:
https://groups.google.com/group/google-web-toolkit/browse_thread/thread/edfe66f6a39527d1
I think it is the same issue

On Feb 18, 5:22 pm, Tapas Adhikary  wrote:
> Any update on this ? One more info , My project was created using GWT 1.5
> application creator and recently upgraded to the GWT 2.0.2 jars. Please
> help.
>
> Thanks,
> -Tapas
>
> On Wed, Feb 17, 2010 at 6:28 PM, Tapas Adhikary  wrote:
> > Greetings,
>
> > I am using GWT 2.0.2 for my application. I have created my project
> > using webAppCreator. I am not using the Eclipse plug-in for GWT. I am
> > able to launch my application successfully in development mode from an
> > external browser but not able to debug the GWT code in development
> > mode. Not only that , If I do some changes in the GWT code and refresh
> > the browser , the changes are not reflecting. If compile the changed
> > code explicitly and re-launched the app , I am able to see the
> > changes.
>
> > I have installed the  GWT Developer plug-in from
> >http://gwt.google.com/missing-plugin/MissingPlugin.html
> > but still it is not working in the way it is expected.
>
> > Am I missing anything anywhere? As my project code base is big , it is
> > difficult to compile the whole code for a small code change.
>
> > Just for additional information , I am using the dev plug-in for
> > Mozilla firefox on OpenSuse 11.2 OS.
>
> > Thanks in advance ,
> > -Tapas Adhikary.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Creating text effects in GWT

2010-02-18 Thread Lukas Laag
Works even better with the correct URL ;-)
http://www.vectomatic.org/libgwtsvg


On Feb 18, 11:20 pm, Lukas Laag  wrote:
> Have you considered using SVG ? In terms of possible effects, there is
> virtually no limit to what is possible to achieve. If you look at the
> SVG spec, you will get a good idea of the available 
> features:http://www.w3.org/TR/SVG11/text.htmlhttp://www.w3.org/TR/SVG11/filters.html#AnExample
>
> I am developing a GWT library for SVG (http://localhost/vectomatic/
> libgwtsvg) which provides a complete GWT front-end to the browser's
> SVG engine. Though the lib is still very young, I think an app such as
> the one you describe could be developed with it.
>
> On Feb 18, 6:26 am, Zach Murphy  wrote:
>
> > Hi all,
>
> > I am creating an app where a user enters text into a textbox and I
> > display the text elsewhere.  Currently I am creating a new HTML when I
> > display the text.  While this gives me some limited effect options
> > (bold, italics, color, etc.), I need more.
>
> > I want the user to be able to be able to choose different effect
> > styles and change the displayed text.  For instance they might change
> > the shape of the text, curve it, bulge it, make it diagonal, etc.  But
> > also keep the old effects, like bold and different fonts.
>
> > Are there any GWT or javascript tools that might help accomplish
> > this?  I haven't been able to find any and I'd prefer not to have to
> > write all the graphic mathematics by myself.  My other thought is to
> > make the text an image and manipulate the image.  Any help or guidance
> > would be greatly appreciated.
>
> > Thanks,
> > Zach
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Creating text effects in GWT

2010-02-18 Thread Lukas Laag
Have you considered using SVG ? In terms of possible effects, there is
virtually no limit to what is possible to achieve. If you look at the
SVG spec, you will get a good idea of the available features:
http://www.w3.org/TR/SVG11/text.html
http://www.w3.org/TR/SVG11/filters.html#AnExample

I am developing a GWT library for SVG (http://localhost/vectomatic/
libgwtsvg) which provides a complete GWT front-end to the browser's
SVG engine. Though the lib is still very young, I think an app such as
the one you describe could be developed with it.

On Feb 18, 6:26 am, Zach Murphy  wrote:
> Hi all,
>
> I am creating an app where a user enters text into a textbox and I
> display the text elsewhere.  Currently I am creating a new HTML when I
> display the text.  While this gives me some limited effect options
> (bold, italics, color, etc.), I need more.
>
> I want the user to be able to be able to choose different effect
> styles and change the displayed text.  For instance they might change
> the shape of the text, curve it, bulge it, make it diagonal, etc.  But
> also keep the old effects, like bold and different fonts.
>
> Are there any GWT or javascript tools that might help accomplish
> this?  I haven't been able to find any and I'd prefer not to have to
> write all the graphic mathematics by myself.  My other thought is to
> make the text an image and manipulate the image.  Any help or guidance
> would be greatly appreciated.
>
> Thanks,
> Zach

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Failure upgrading 1.7 to 2.0

2010-02-18 Thread jfeingold
Thanks. This worked. I had cleared the cache, but had not deleted all
of the GWT-generated folders.

On Feb 18, 8:29 am, Rajeev Dayal  wrote:
> There is a a bug with switching SDKs. Try the following:
>
> 1) Remove any GWT-generated folders under your "war" directory.
> 2) Clear your browser's cache, and restart your browser.
>
> See if that helps.
>
> On Thu, Feb 18, 2010 at 11:09 AM, Tapas Adhikary wrote:
>
> > Hi ,
> > I am also getting the same issue. Once compiled explicitly , it started
> > working but debugging and UI compilation on browser changes are not
> > happening. Please help. I had created the project using GWT 1.5 application
> > creator. and then upgraded it to GWT 2.0. I have installed the GWT dev
> > plug-in as well.
>
> > Thanks,
> > -Tapas
>
> > On Thu, Feb 18, 2010 at 6:18 AM, jfeingold  wrote:
>
> >> I'm trying to upgrade an application from working with GWT 1.7 to 2.0.
> >> However, when I go through the steps to convert from 1.7 to 2.0, I get
> >> a failure message when launching my browser saying that I need to
> >> (re)compile my source. This message makes no sense since I should not
> >> have to compile to run in DevMode.
>
> >> I am running Win7 and launching from IntelliJ 8. I initially suspcted
> >> an installation problem. However, I observed the same behavior with
> >> both 2.0.1 and 2.0.2. I also set up a test where I created an
> >> analogous IJ project, module, and launch configuration using the Hello
> >> example application, which works just fine.
>
> >> This has left me rather confused, since the 1.7 to 2.0 upgrade seemed
> >> rather minimal and my setup worked before, and an analogous setup
> >> currently works as well.
>
> >> I wish I could be more descriptive of the problem, but I am pretty
> >> well stymied by the thing at this point.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Failure upgrading 1.7 to 2.0

2010-02-18 Thread jfeingold
Thanks. This worked. I had cleared the cache, but had not deleted all
of the GWT-generated folders.

On Feb 18, 8:29 am, Rajeev Dayal  wrote:
> There is a a bug with switching SDKs. Try the following:
>
> 1) Remove any GWT-generated folders under your "war" directory.
> 2) Clear your browser's cache, and restart your browser.
>
> See if that helps.
>
> On Thu, Feb 18, 2010 at 11:09 AM, Tapas Adhikary wrote:
>
> > Hi ,
> > I am also getting the same issue. Once compiled explicitly , it started
> > working but debugging and UI compilation on browser changes are not
> > happening. Please help. I had created the project using GWT 1.5 application
> > creator. and then upgraded it to GWT 2.0. I have installed the GWT dev
> > plug-in as well.
>
> > Thanks,
> > -Tapas
>
> > On Thu, Feb 18, 2010 at 6:18 AM, jfeingold  wrote:
>
> >> I'm trying to upgrade an application from working with GWT 1.7 to 2.0.
> >> However, when I go through the steps to convert from 1.7 to 2.0, I get
> >> a failure message when launching my browser saying that I need to
> >> (re)compile my source. This message makes no sense since I should not
> >> have to compile to run in DevMode.
>
> >> I am running Win7 and launching from IntelliJ 8. I initially suspcted
> >> an installation problem. However, I observed the same behavior with
> >> both 2.0.1 and 2.0.2. I also set up a test where I created an
> >> analogous IJ project, module, and launch configuration using the Hello
> >> example application, which works just fine.
>
> >> This has left me rather confused, since the 1.7 to 2.0 upgrade seemed
> >> rather minimal and my setup worked before, and an analogous setup
> >> currently works as well.
>
> >> I wish I could be more descriptive of the problem, but I am pretty
> >> well stymied by the thing at this point.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.0 plugin for Firefox 3.6

2010-02-18 Thread Lukas Laag
Actually, you do not want to use the version of the SDK files which
come with your distribution. The Makefile is designed to build the
code using the gecko-1.9.2 which is available from the GWT svn
repository (see: http://google-web-toolkit.googlecode.com/svn/plugin-sdks/).
Sorry I forgot to mention that.

So in the same directory where your checked out the GWT trunk, you
should also do:

svn co 
http://google-web-toolkit.googlecode.com/svn/plugin-sdks/gecko-sdks/gecko-1.9.2
plugin-sdks/gecko-sdks/gecko-1.9.2


On Feb 18, 9:20 pm, Thad  wrote:
> I've got Firefox installed at /opt/firefox, so in trunk/plugins/
> xpcomand/Makefile I set DEFAULT_FIREFOX_LIBS to /opt/firefox.
>
> On my system (SuSE Linux 11.2), the XPCOM files are in /usr/include/
> xulrunner-1.9.1.7/unstable
> I must be brain-dead today, but I'm not seeing where to set that in
> the Makefile.
>
> On Feb 17, 3:40 am, Lukas Laag  wrote:
>
> > The version in the trunk works fine with FF3.6.
> > I had no problem building it.
> > + Check out the source and tools from the svn repository as described
> > in:http://code.google.com/webtoolkit/makinggwtbetter.html#checkingout
> > + Go to trunk/plugins/xpcomand type: make ARCH=x86 BROWSER=ff36
> > This will build a plugin in the directory trunk/plugins/xpcom/prebuilt/
> > gwt-dev-plugin.xpi
> > + In FF3.6, go to File > Open File... and open the .xpi resulting from
> > the build
>
> > Beware though no to accept updates to v. 1.0.7511 since as you noticed
> > this version does not work with FF36
>
> > On Feb 16, 8:05 pm, Thad  wrote:
>
> > > When will this be available?  I have v. 1.0.7511.  This works with
> > > Firefox 3.5.7 but will not work with 3.6.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT fails behind Cisco PIX/ASA Firewalls.

2010-02-18 Thread Joe Cole
I've submitted an issue that relates to this: when it is blocked by
firewalls there is nothing we can do at the moment to intercept the
result.
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a322747b293de102/fad0c613a2127f38?q=#fad0c613a2127f38

I haven't had a chance to code this as our customers adjusted their
firewall rules, but it may be worth looking into adding error handling
to the initialization script.

Joe

On Feb 18, 5:05 pm, Roy  wrote:
> We have a GWT implementation that fails with a blank page when the
> client user is behind a Cisco Firewall, PIX or ASA.
>
> Yet the GWT implementation works fine for clients behind firewalls
> made by SonicWall and Checkpoint.
>
> The implementation is a suspect since there are many users behind the
> Cisco firewalls.
>
> Please help with insight or success stories on solving the issue.
>
> Thanks, Roy

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.0 plugin for Firefox 3.6

2010-02-18 Thread Thad
I've got Firefox installed at /opt/firefox, so in trunk/plugins/
xpcomand/Makefile I set DEFAULT_FIREFOX_LIBS to /opt/firefox.

On my system (SuSE Linux 11.2), the XPCOM files are in /usr/include/
xulrunner-1.9.1.7/unstable
I must be brain-dead today, but I'm not seeing where to set that in
the Makefile.

On Feb 17, 3:40 am, Lukas Laag  wrote:
> The version in the trunk works fine with FF3.6.
> I had no problem building it.
> + Check out the source and tools from the svn repository as described
> in:http://code.google.com/webtoolkit/makinggwtbetter.html#checkingout
> + Go to trunk/plugins/xpcomand type: make ARCH=x86 BROWSER=ff36
> This will build a plugin in the directory trunk/plugins/xpcom/prebuilt/
> gwt-dev-plugin.xpi
> + In FF3.6, go to File > Open File... and open the .xpi resulting from
> the build
>
> Beware though no to accept updates to v. 1.0.7511 since as you noticed
> this version does not work with FF36
>
> On Feb 16, 8:05 pm, Thad  wrote:
>
> > When will this be available?  I have v. 1.0.7511.  This works with
> > Firefox 3.5.7 but will not work with 3.6.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Strategy for CSS :before

2010-02-18 Thread Eric
In my project, we want to mark some of our form items as being
mandatory, and we do that by prefixing the label with a red asterisk.
I know that isn't Section 508-compliant by itself, but that's the
least of my problems. Originally, we would put in two InlineLabel
widgets, one for the asterisk and one for the label text, but i
realized that modern CSS >2.0-compliant browsers could use the :before
pseudo class, and I proceded to write a module with a RequiredText
class. This class has a static inner class namedRequiredTextImpl  and
that has a RequiredTextImplIE6 subclass. These tell whether I can get
away with :before, or if I need to add the asterisk myself.

I have the sneaking suspicion that I'm missing something. Are the
rules available to the gwt.xml file robust enough that I can ask
questions like "Does the user agent stand for a browser that accepts
the :before pseudo-class and the content attribute"? Or must I test
for IE6 or Hosted mode explicitly?

Also, is there any way to give the effect of the 
construction?  I know I can't easily add an id to an element.

Respectfully,
Eric Jablow

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Facebook

2010-02-18 Thread Jeff Schnitzer
On Thu, Feb 18, 2010 at 9:48 AM, Sekhar  wrote:
> Yeah, the library has its downs, but a lot of the intermittent errors
> you see - timeouts, blank results, etc. - are really from Facebook's
> side. I've had a rash of these and found a bunch of others having the
> same issues, e.g. at 
> http://forum.developers.facebook.com/viewtopic.php?id=51557.
> The latest Facebook problem is with emails (only seeing proxy emails).
> All this flakiness keeps me constantly worried about what's going to
> break next on Facebook. Do you guys have similar problems?

Oh, I don't blame the library for these issues - they're definitely
Facebook's fault.  But they're an inherent part of the "undocumented
API" of Facebook and we have to live with them if we want to work with
the Facebook API.  For better or worse, it's the only game in town.
You must code defensively, working around what breaks.  Something new
breaks every week.

Does this suck?  Yes.  Facebook's value is not that it has a stable,
consistent, easy-to-use API.

I watch my appengine error rates pretty constantly, and when a number
goes up, I figure out why and code a workaround - usually a retry for
a particular kind of error.  This sort of thing is easy to do at the
low levels of my simple homegrown client, but difficult to do in a
machine-generated library like facebook-java-api.

Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to set the initial state of a radiobutton?

2010-02-18 Thread dhoffer
If I add a couple radio buttons to the main panel it works fine.

In my app the radio buttons are in a FlexTable.  I just add them as
widgets to the table.  Is this a known problem?  Do I have to do
something different when in a table?

-Dave

On Feb 18, 9:23 am, dhoffer  wrote:
> Hi John,
>
> Thanks for the reply.  No I'm not doing any RPC with respect to these
> radio buttons.  I have RPC but its for other purposes.  I have stepped
> through the code many times with an IDE, everything seems in order.
> Its just the radio buttons are not selected when the app starts?!?  I
> will try a smaller app and see if they work there.  Its a bit strange
> <= 10% of the time they are displayed correctly
>
> I just noticed that there is a new version 2.0.2...I might try that
> too.
>
> -Dave
>
> On Feb 18, 8:52 am, John Denley  wrote:
>
> > Its hard to try to solve this problem without being able to debug the code,
> > and Ive certainly got no time for that!
>
> > You can try to create a really small application that just creates and sets
> > the radio buttons, so that you can proove to yourself that the functionality
> > works.
>
> > You could also try stepping through the code line by line (if you are using
> > something like the eclipse IDE)
>
> > Otherwise you could try manually stepping through your own code, very
> > tedious and boring and you need to concentrate but its possible to do if
> > theres not too much code to trawl through!
>
> > Regarding the Asynchronos problem, this all depends if you are using RPC
> > calls to your server to get the values for your radio buttons, but Im
> > guessing from what you have said that you are currently hardcoding the
> > initial values (which of course it one of the debugging steps you could have
> > tried). The problem though can be that you create and display the radio
> > buttons, but then the RPC call fails to update them for whatever reason, or
> > worse yet, tries to update the radio buttons before they have even been
> > created!
>
> > Other than that I dont know enough about how you are trying to do it (or
> > enough of the internal workings of GWT) to offer any advice on the actual
> > order of creation etc.
>
> > However its worth remembering and considering whether or not your panels or
> > buttons are being destroyed or just merely hidden. Ive made that mistake
> > with dialog boxes and not realising that a a call to dialogbox.hide is only
> > hiding the dialog box, so if you try to create the dialogbox at the
> > beginning of a function and then hide it later in the same function, later
> > when you call the same function, it will create a new (clean) version of the
> > same dialogbox
>
> > On 18 February 2010 15:17, dhoffer  wrote:
>
> > > John,
>
> > > So how do I solve this?  I'm not clear on the solution you propose.
>
> > > -Dave
>
> > > On Feb 18, 7:51 am, John Denley  wrote:
> > > > is it possible that this maybe an asynchronos issue, I have had that
> > > before
> > > > where Im displaying the radio buttons before im setting them because the
> > > > setting of the buttons is based on a reply from the server, which is an
> > > > asynchronous call!
>
> > > > On 18 February 2010 14:28, Bonor  wrote:
>
> > > > > It should! May be something else deselects it?
>
> > > > > I use many radio's and I just use:
> > > > > radio[i].setValue(true);
>
> > > > > On 18 feb, 04:42, dhoffer  wrote:
> > > > > > gwt 2.0.  I've tried calling setValue(true, true) on radio buttons
> > > but
> > > > > > when the app is run, neither radio button is selected, what is the
> > > > > > trick to code setting the initial value of radio buttons?
>
> > > > > > -Dave
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> > > google-web-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscr...@googlegroups.com
> > > 
>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Development Mode in OSX, viewing with IE in Parallels Desktop

2010-02-18 Thread Malachy
Thanks Jim & Stefan, up and running, very very happy and about twice
as fast as using Eclipse on the XP VM in Parallels.

Specific instructions for Parallels 4 on OSX:

1. Apple menu > About this Mac > More info... > Network > Locations
 - In the text scroll until you see "Parallels Host-Only Networking
Adapter
 - Find and copy the IP address in listed this section (e.g.
10.0.0.10)

2. Eclipse:
 - Select your project
 - Run > Run Configurations... > Arguements > Program Arguements
 - Add: " -bindAddress 10.0.0.10" to what's in there (use the IP
address copied in 1 above)
 - Apply

3. Parallels:
 - Parallels Desktop > Preferences... > Network
 - Choose: "Host only-networking"
 - OK

4. Now run your GWT project in eclipse.
 - Copy the address that Development Mode provides.
 - Use it in your browser on OSX and the same address will also work
in a browser in the Parallels VM.

I didn't have to change my Firewall settings, but if you are having
problems you can turn it off.

Regards

Malachy

On Feb 16, 11:24 pm, "Stefan U."  wrote:
> Your question made me curious and I tried this myself. It took me
> quite a while to get everything up and running. So here it goes:
>
> Mind you, I am not using Parallels but Vmware Fusion. This should not
> really matter, accept for the network configuration of your virtual
> machine. I tried both "bridged mode" and "host-only" mode for the
> network connection setting in Fusion and they both worked. Check if
> you can successfully ping your Mac from a Windows command line. (Note:
> depending on your network settings in Parallels your Mac will be
> reachable by different IPs. On your Mac you can use Terminal and the
> ifconfig command to list all network devices, which should also list
> the virtual devices of Parallels. If in doubt, try all IP addresses
> you can find. Note 2: Make sure your Mac's firewall is turned of for
> this work.)
>
> If you can successfully ping your Mac from Windows, you are all set.
> For the rest of this message I will assume that your Mac can be
> reached at the IP 10.0.0.10 from your Windows machine.
>
> The toughest part was figuring out how to convince the GWT's embedded
> Jetty to listen at this address. Looking through some of GWT's source
> could gave me the hint: Google for "junit gwt bind address" did the
> trick. The option is called "-bindAddress" and you need to pass it as
> program arguments in the run-configuration ("Run as...") in Eclipse as
> so:
>
> -bindAddress 10.0.0.10
>
> That's it. Run your project and you should see Development Mode tab in
> Eclipse telling you to point your browser to something starting with
> "http://10.0.0.10/...";.
>
> Now you can point your browser in Parallels to that address and
> everything should work as expected. It does for me.
>
> And sorry for the lengthy explanation.
>
> Best regards,
> Stefan
>
> On 16 Feb., 11:13, Malachy  wrote:
>
> > Please describe the configuration and URL required to view my GWT 2.0
> > application in IE on XP running in a VM on Parallels Desktop while
> > using in Eclipse in Development Mode on OSX.
>
> > I have the browser plugins installed and tested on both OSX and the XP
> > VM and the application is accessible with IE in Development Mode on
> > the XP VM using Eclipse installed on the XP VM, so I think it is
> > simply a configuration issue that I can't figure out.
>
> > Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Facebook

2010-02-18 Thread Sekhar
Yeah, the library has its downs, but a lot of the intermittent errors
you see - timeouts, blank results, etc. - are really from Facebook's
side. I've had a rash of these and found a bunch of others having the
same issues, e.g. at 
http://forum.developers.facebook.com/viewtopic.php?id=51557.
The latest Facebook problem is with emails (only seeing proxy emails).
All this flakiness keeps me constantly worried about what's going to
break next on Facebook. Do you guys have similar problems?

On Feb 16, 3:25 pm, Jeff Schnitzer  wrote:
> 1) No support for fql.multiquery.  This is the single most important
> API method that facebook provides.  After a bit of practice, you stop
> using any other API method for fetch queries.
>
> 2) A ton of complexity because they tried to give you the ability to
> use both JSON and XML modes.  This was dumb, they should have just
> picked one or the other.  Developers just want a Java API, the
> protocol is just plumbing.
>
> 3) After you use the FB API for a while you will find various
> cross-cutting types of return values that can (and must, if you want
> your app to work) be retried.  As an example, a few weeks ago FB
> started producing "Incorrect signature" errors that work after a
> retry.  For 1-5% of all calls.  It still hasn't been fixed.  This
> stuff pops up all the time - I constantly watch my error log and tweak
> the FB calls based on what part of Facebook is on fire at the moment.
>
> 4) The FB API really doesn't lend itself to JAXB processing.  It
> doesn't have a rigid schema, you'll find all sorts of odd and annoying
> things like JSON calls returning "{}" for an empty array and the fact
> that error codes are returned in an entirely different schema.  With
> any luck, the facebook-java-api folks have coded around most of this
> junk - but given the heavy reliance on machine-generated code, I
> really doubt they got it all.  I suggest sticking with the XML version
> and even then watch out for edge cases like empty result sets.
>
> 5) When I last looked at the code (I wanted to add a hook for
> multiquery), it was a mess.  That was before there were official
> releases of 3.0, so maybe it's improved now.
>
> Jeff
>
>
>
> On Mon, Feb 15, 2010 at 6:42 PM, Sekhar  wrote:
> > I'm using facebook-java-api for an app that's about to go into
> > production for Android and GWT. I thought the API was simple/clean,
> > very easy to use tokens (for Android logins) and session, and has some
> > useful extras like verifying session signature. Also, you can get the
> > source (I've in fact addded an API call that's missing).
>
> > @Jeff, why do you think it's horrid? Just wondering if there's
> > something I need to know before putting this in production.
>
> > On Feb 12, 11:36 am, Jeff Schnitzer  wrote:
> >> On the server side, throw facebook-java-api in the trash.  It's
> >> horrid.  The Facebook API, while kludgy as hell, is actually pretty
> >> straightforward.  Just make HTTP requests and parse the results with
> >> your favorite JSON or XML parser (I use Jackson).
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: onHistoryChanged() not being called on hitting the Back Button (or even calling History.back())

2010-02-18 Thread PKolenic
You're right, I suspected something like that and then when I switched
browsers
from Firefox to IE I saw it happening.  For my app, using history and
Frames is
still a good solution, but instead of changing the URL of the Frame I
instead
now have multiple frames and just set the display of the ones not
needed to
hidden within the onHistoryChanged function.

As to why the original post is having trouble I can not provide any
insight as
I don't see where additional history tokens could be being written.

On Feb 18, 7:24 am, Thomas Broyer  wrote:
> On Feb 17, 4:50 pm, PKolenic  wrote:
>
> > I am getting similiar behaviour using GWT 2.0.
> > In my case I use buttons to switch between an inner I-Frame.
> > I put a check in the onClick methods to not write a newItem to History
> > if the the old token matches the new token.
>
> > As a result I only have to push the back button twice now instead of
> > three times.
> > I think what is happening is that when a button is pressed, and the
> > new I-Frame is
> > loaded, the token is written twice to the stack.  So the first time
> > you press the back
> > button there is no change in the token value so the onValueChanged (or
> > onHistoryChanged)
> > does not get called.
>
> Actually, your newItem is adding an entry to the browser's history,
> then the frame adds one (but it doesn't show in the URL), and if you
> call newItem once more it might then add yet another entry.
>
> The rule of thumb is: do not use iframes and History at the same time
> (on the same app), iframes (and frames, for that matters) don't play
> well with history.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Apache2 / Tomcat 6 / GWT 2.0 / Eclipse Questions

2010-02-18 Thread Eric
My webapp name is: Sample

I put my app into the webapp directory and everything started
working.  I guess this must have something to do with java permissions
in the policy.d directory.  Nonetheless, i will just put all my GWT
Apps into the webapps directory and map my v.hosts there.

Thanks for all your help!




On Feb 18, 11:10 am, olivier nouguier 
wrote:
> Last try ...
> What is the name of your webapp ?
> In the past I had some issue when the ROOT (contextPath="/") webapp was not
> is the ROOT webapps folder.
> Could you give a try ?
>
>
>
>
>
> On Thu, Feb 18, 2010 at 4:07 PM, Eric  wrote:
> > I dont believe jk mapping is the issue because i get the same results
> > if i use port 8080 or port 80.  I do have apache2 in front of Tomcat6
> > but everything seems to be working correctly.  Like i said the webapp
> > works when i turn on the invoker code in the tomcat web.xml so i am
> > guessing it has something to do with tomcat6/gwt.
>
> > Here is my context info:
> >  > displayName="test.domain1.org"
> > docBase="/var/lib/tomcat6/domain1/"
> > path="/"
> > antiResourceLocking="false"
> > privileged="true" />
>
> > Thank you again for your help.
>
> > On Feb 18, 9:48 am, olivier nouguier 
> > wrote:
> > > On Thu, Feb 18, 2010 at 3:10 PM, Eric  wrote:
> > > > Thanks for your reply.  Where would you "hard code" the GWT-RPC url?
>
> > > > When *not* using the  annotation you can specify by code the remote end
>
> > > point.
>
> > > > I have verified that there isnt a leading "/" in the
> > > > GreetingService.java file.  See below:
>
> > > > package com.sample.myproject.client;
>
> > > > i
>
> > > Okai for the GWT code.
> > > I'm still believe it's a "path issue".
> > > 2 tracks :
> > > What is the contextPath of your webapp ?
> > > If it is "simple" then you should remove the "simple" token from your
> > > servlet mapping.
>
> > > How does apache forward the request to tomcat?
> > > If it is a jk mapping issues you're app will work with tomcat only
> > (8080).
>
> > > HIH
>
> > > --
> > > A coward is incapable of exhibiting love; it is the prerogative of the
> > > brave.
> > > --
> > > Mohandas Gandhi
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> A coward is incapable of exhibiting love; it is the prerogative of the
> brave.
> --
> Mohandas Gandhi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Accounts are killing my application!....

2010-02-18 Thread Jeff Chimene
On 02/18/2010 08:57 AM, John Denley wrote:
> It certainly seem to be the only way forward Jeff, IVe tried and tried
> and tried to use google accounts for authentication, but its just too
> damn complicated and difficult to make it work in a sensible and user
> freindly way! What a shame, I would have expected more from Google!

I agree. However, in my neverending quest for equanimity, I think that
when you have a "hack me" target painted on your chest, it probably
makes sense to implement such frame-busting behavior.

We know that some clown, somewhere, is going to figure out how to break
any account creation; the less surface area you expose, the longer you
have until that event.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: upgrade gwt 1.5 to 1.6 help!!

2010-02-18 Thread asle
This is the problem , with gwt 1.6 not recognized my project and i can
not do deploy the project

And i am not understand as solved my problem i am very stessed...

On 9 feb, 13:56, Rajeev Dayal  wrote:
> If you're using the plugin, you don't need to switch to DevMode on your own
> - the plugin will automatically do this for you, if it recognizes that your
> project is in a 1.6-compatible form.
>
> See the "Working with GWT 1.5 and Earlier Projects" section of:
>
> http://code.google.com/eclipse/docs/existingprojects.html
>
>
>
> On Mon, Feb 8, 2010 at 7:00 AM, asle  wrote:
> > I tried with the plugin and without the plugin.
>
> > When i create a new project, i am not problem. My problem is when i
> > upgrade my project, because i have a project with gwt 1.5 and i
> > upgrade to 1.6 and i folowing the steps but i not understand
> > how switch shell for hosted mode.
>
> > Sorry for the writing,  but i am not speak english
> > Thanks
>
> > best regards
>
> > On 5 feb, 13:42, Rajeev Dayal  wrote:
> > > Are you using the Google Plugin for Eclipse?
>
> > > On Fri, Feb 5, 2010 at 1:26 AM, Gal Dolber  wrote:
> > > > I recommend you to go straight to GWT 2.0. Just update the SDK and find
> > the
> > > > deprecated's in your code.
> > > > The biggest problem you can have is with the ImageBundle, now you have
> > to
> > > > use ClientBundle.
> > > > Also I don't remember if the Listeners -> Handlers transition was
> > before of
> > > > after 1.6 ...
> > > > Anyway... you won't regret it
> > > > Best
>
> > > > 2010/2/4 asle 
>
> > > > Hello:
>
> > > >> We have a problem to upgrade gwt , and folowing the steps in
>
> > > >>http://code.google.com/intl/es/webtoolkit/doc/1.6/ReleaseNotes_1_6.ht.
> > ..
> > > >> .
> > > >> The first step is ok, but de second step:
> > > >> Switch from GWTShell to HostedMode i am not understand how i do,
> > > >> because i do not know where  directory is the main class for swich.
> > > >> I need you help for indications to change the main class because i
> > > >> need folowing the steps for upgrating my project:
> > > >> "In order to eliminate this warning, change your main class from
> > > >> com.google.gwt.dev.GWTShell to com.google.gwt.dev.HostedMode"
>
> > > >> When i run the project, indicate this warning:
>
> > > >> WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
> > > >> removed in a future release.
> > > >> Use 'com.google.gwt.dev.HostedMode' instead.
>
> > > >> Sorry for the writing,  but i am not speak english
> > > >> Thanks
>
> > > >> --
> > > >> You received this message because you are subscribed to the Google
> > Groups
> > > >> "Google Web Toolkit" group.
> > > >> To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > >> To unsubscribe from this group, send email to
> > > >> google-web-toolkit+unsubscr...@googlegroups.com > > >>  cr...@googlegroups.com>
> > 
> > > >> .
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > >  --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> > 
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.-Ocultar texto
> > de la cita -
>
> > > - Mostrar texto de la cita -
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.0.2 : Failed to Connect 127.0.0.1:8888 development mode

2010-02-18 Thread Thomas
-bindAddress 0.0.0.0 worked, thanks for having hit my target ;-)

On Feb 17, 9:59 pm, Fabiano  wrote:
> On Feb 17, 6:28 pm, Chris Lercher  wrote:
>
> > You saved my day.
>
> I'm quite a noob, and I'm so happy when I hit the target !
> (translated: being useful)
> Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Failure upgrading 1.7 to 2.0

2010-02-18 Thread Rajeev Dayal
There is a a bug with switching SDKs. Try the following:

1) Remove any GWT-generated folders under your "war" directory.
2) Clear your browser's cache, and restart your browser.

See if that helps.

On Thu, Feb 18, 2010 at 11:09 AM, Tapas Adhikary wrote:

> Hi ,
> I am also getting the same issue. Once compiled explicitly , it started
> working but debugging and UI compilation on browser changes are not
> happening. Please help. I had created the project using GWT 1.5 application
> creator. and then upgraded it to GWT 2.0. I have installed the GWT dev
> plug-in as well.
>
> Thanks,
> -Tapas
>
>
> On Thu, Feb 18, 2010 at 6:18 AM, jfeingold  wrote:
>
>> I'm trying to upgrade an application from working with GWT 1.7 to 2.0.
>> However, when I go through the steps to convert from 1.7 to 2.0, I get
>> a failure message when launching my browser saying that I need to
>> (re)compile my source. This message makes no sense since I should not
>> have to compile to run in DevMode.
>>
>> I am running Win7 and launching from IntelliJ 8. I initially suspcted
>> an installation problem. However, I observed the same behavior with
>> both 2.0.1 and 2.0.2. I also set up a test where I created an
>> analogous IJ project, module, and launch configuration using the Hello
>> example application, which works just fine.
>>
>> This has left me rather confused, since the 1.7 to 2.0 upgrade seemed
>> rather minimal and my setup worked before, and an analogous setup
>> currently works as well.
>>
>> I wish I could be more descriptive of the problem, but I am pretty
>> well stymied by the thing at this point.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.0 and Eclipse, Project redeployment

2010-02-18 Thread Rajeev Dayal
How are you restarting the server? Are you using the "Restart Server" option
in the Development Mode view?

Also, if you are running your launch configuration using "Debug" (not Run),
and you've set Eclipse to "Build Automatically", then server-side changes
should be hotswapped in most cases.

On Thu, Feb 18, 2010 at 10:44 AM, paata  wrote:

> Hi all,
> I'm newbie on gwt.
> I've eclipse gwt project with smartgwt.
>
> When i make changes on client side code, changes appeard after saving,
> but when i make changes on server side (change  anything into servlet
> method ) it is required to restart server.
> I need redeployment not server restart
> Restart needs long time, approximately 3-4 minute.
>  any idea?
>
>
> regards
> paata
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to set the initial state of a radiobutton?

2010-02-18 Thread dhoffer
Hi John,

Thanks for the reply.  No I'm not doing any RPC with respect to these
radio buttons.  I have RPC but its for other purposes.  I have stepped
through the code many times with an IDE, everything seems in order.
Its just the radio buttons are not selected when the app starts?!?  I
will try a smaller app and see if they work there.  Its a bit strange
<= 10% of the time they are displayed correctly

I just noticed that there is a new version 2.0.2...I might try that
too.

-Dave

On Feb 18, 8:52 am, John Denley  wrote:
> Its hard to try to solve this problem without being able to debug the code,
> and Ive certainly got no time for that!
>
> You can try to create a really small application that just creates and sets
> the radio buttons, so that you can proove to yourself that the functionality
> works.
>
> You could also try stepping through the code line by line (if you are using
> something like the eclipse IDE)
>
> Otherwise you could try manually stepping through your own code, very
> tedious and boring and you need to concentrate but its possible to do if
> theres not too much code to trawl through!
>
> Regarding the Asynchronos problem, this all depends if you are using RPC
> calls to your server to get the values for your radio buttons, but Im
> guessing from what you have said that you are currently hardcoding the
> initial values (which of course it one of the debugging steps you could have
> tried). The problem though can be that you create and display the radio
> buttons, but then the RPC call fails to update them for whatever reason, or
> worse yet, tries to update the radio buttons before they have even been
> created!
>
> Other than that I dont know enough about how you are trying to do it (or
> enough of the internal workings of GWT) to offer any advice on the actual
> order of creation etc.
>
> However its worth remembering and considering whether or not your panels or
> buttons are being destroyed or just merely hidden. Ive made that mistake
> with dialog boxes and not realising that a a call to dialogbox.hide is only
> hiding the dialog box, so if you try to create the dialogbox at the
> beginning of a function and then hide it later in the same function, later
> when you call the same function, it will create a new (clean) version of the
> same dialogbox
>
> On 18 February 2010 15:17, dhoffer  wrote:
>
> > John,
>
> > So how do I solve this?  I'm not clear on the solution you propose.
>
> > -Dave
>
> > On Feb 18, 7:51 am, John Denley  wrote:
> > > is it possible that this maybe an asynchronos issue, I have had that
> > before
> > > where Im displaying the radio buttons before im setting them because the
> > > setting of the buttons is based on a reply from the server, which is an
> > > asynchronous call!
>
> > > On 18 February 2010 14:28, Bonor  wrote:
>
> > > > It should! May be something else deselects it?
>
> > > > I use many radio's and I just use:
> > > > radio[i].setValue(true);
>
> > > > On 18 feb, 04:42, dhoffer  wrote:
> > > > > gwt 2.0.  I've tried calling setValue(true, true) on radio buttons
> > but
> > > > > when the app is run, neither radio button is selected, what is the
> > > > > trick to code setting the initial value of radio buttons?
>
> > > > > -Dave
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com
> > 
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help Needed : GWT Developer Plugin is not working with Mozilla Firefox

2010-02-18 Thread Tapas Adhikary
Any update on this ? One more info , My project was created using GWT 1.5
application creator and recently upgraded to the GWT 2.0.2 jars. Please
help.

Thanks,
-Tapas

On Wed, Feb 17, 2010 at 6:28 PM, Tapas Adhikary  wrote:

> Greetings,
>
> I am using GWT 2.0.2 for my application. I have created my project
> using webAppCreator. I am not using the Eclipse plug-in for GWT. I am
> able to launch my application successfully in development mode from an
> external browser but not able to debug the GWT code in development
> mode. Not only that , If I do some changes in the GWT code and refresh
> the browser , the changes are not reflecting. If compile the changed
> code explicitly and re-launched the app , I am able to see the
> changes.
>
> I have installed the  GWT Developer plug-in from
> http://gwt.google.com/missing-plugin/MissingPlugin.html
> but still it is not working in the way it is expected.
>
> Am I missing anything anywhere? As my project code base is big , it is
> difficult to compile the whole code for a small code change.
>
> Just for additional information , I am using the dev plug-in for
> Mozilla firefox on OpenSuse 11.2 OS.
>
> Thanks in advance ,
> -Tapas Adhikary.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Apache2 / Tomcat 6 / GWT 2.0 / Eclipse Questions

2010-02-18 Thread olivier nouguier
Last try ...
What is the name of your webapp ?
In the past I had some issue when the ROOT (contextPath="/") webapp was not
is the ROOT webapps folder.
Could you give a try ?



On Thu, Feb 18, 2010 at 4:07 PM, Eric  wrote:

> I dont believe jk mapping is the issue because i get the same results
> if i use port 8080 or port 80.  I do have apache2 in front of Tomcat6
> but everything seems to be working correctly.  Like i said the webapp
> works when i turn on the invoker code in the tomcat web.xml so i am
> guessing it has something to do with tomcat6/gwt.
>
> Here is my context info:
>  displayName="test.domain1.org"
> docBase="/var/lib/tomcat6/domain1/"
> path="/"
> antiResourceLocking="false"
> privileged="true" />
>
> Thank you again for your help.
>
>
> On Feb 18, 9:48 am, olivier nouguier 
> wrote:
> > On Thu, Feb 18, 2010 at 3:10 PM, Eric  wrote:
> > > Thanks for your reply.  Where would you "hard code" the GWT-RPC url?
> >
> > > When *not* using the  annotation you can specify by code the remote end
> >
> > point.
> >
> > > I have verified that there isnt a leading "/" in the
> > > GreetingService.java file.  See below:
> >
> > > package com.sample.myproject.client;
> >
> > > i
> >
> > Okai for the GWT code.
> > I'm still believe it's a "path issue".
> > 2 tracks :
> > What is the contextPath of your webapp ?
> > If it is "simple" then you should remove the "simple" token from your
> > servlet mapping.
> >
> > How does apache forward the request to tomcat?
> > If it is a jk mapping issues you're app will work with tomcat only
> (8080).
> >
> > HIH
> >
> > --
> > A coward is incapable of exhibiting love; it is the prerogative of the
> > brave.
> > --
> > Mohandas Gandhi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Failure upgrading 1.7 to 2.0

2010-02-18 Thread Tapas Adhikary
Hi ,
I am also getting the same issue. Once compiled explicitly , it started
working but debugging and UI compilation on browser changes are not
happening. Please help. I had created the project using GWT 1.5 application
creator. and then upgraded it to GWT 2.0. I have installed the GWT dev
plug-in as well.

Thanks,
-Tapas

On Thu, Feb 18, 2010 at 6:18 AM, jfeingold  wrote:

> I'm trying to upgrade an application from working with GWT 1.7 to 2.0.
> However, when I go through the steps to convert from 1.7 to 2.0, I get
> a failure message when launching my browser saying that I need to
> (re)compile my source. This message makes no sense since I should not
> have to compile to run in DevMode.
>
> I am running Win7 and launching from IntelliJ 8. I initially suspcted
> an installation problem. However, I observed the same behavior with
> both 2.0.1 and 2.0.2. I also set up a test where I created an
> analogous IJ project, module, and launch configuration using the Hello
> example application, which works just fine.
>
> This has left me rather confused, since the 1.7 to 2.0 upgrade seemed
> rather minimal and my setup worked before, and an analogous setup
> currently works as well.
>
> I wish I could be more descriptive of the problem, but I am pretty
> well stymied by the thing at this point.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Accounts are killing my application!....

2010-02-18 Thread John Denley
It certainly seem to be the only way forward Jeff, IVe tried and tried and
tried to use google accounts for authentication, but its just too damn
complicated and difficult to make it work in a sensible and user freindly
way! What a shame, I would have expected more from Google!

On 18 February 2010 15:05, Jeff Chimene  wrote:

>
>
> On Thu, Feb 18, 2010 at 7:38 AM, John V Denley  > wrote:
>
>> I have been trying to leverage google accounts for security for my
>> users, but the way its working is really preventing useability within
>> my application, its very frustrating
>>
>> Ive just spent the best part of the last week trying to get the google
>> account login to work in an frame within my application.
>
>
> At this point I'd try another path.
>
> Perhaps use oauth? I think that Google supports that API
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: setting or refreshing the parent URL from within an iframe

2010-02-18 Thread John Denley
OK, thanks Chris, looks like Im going to HAVE to drop google accounts as a
user authentication method, at least until there is a better way to
integrate applications with google accounts.

On 18 February 2010 15:07, Chris Ramsdale  wrote:

> Chris, do you know if there is anyway I can set a similar "continue" type
>> process for what happens when users click on the email link after CREATING a
>> google account? At the moment they are just taken to a "thank you for
>> confirming your account" screen, which is all very well, but we would much
>> prefer for the user to be able to then click through to our application
>>
>
> Right now there is no way to force the "Account Creation Confirmation"
> screen to follow the "continue" param. To make things more complicated, the
> user will have to verify their account, which is completely decoupled from
> your app. I would suggest adding some text which lets users know that
> they'll need to either a) refresh your app once they have verified their
> account creation, or b) click the sign-out link and sign back in with their
> newly verified account.
>
> You could also set a timer that inspects the contents of the iframe, and
> auto-refresh in an attempt to catch the account verification that may occur
> in a separate tab. To do this though, you'll need to catch the response,
> otherwise you'll end up with an iframe that appears to be refreshing the
> same content.
>
> Net, net: there is some room for improvement within the Google Account
> creation process.
>
>
>> Cheers,
>> John
>>
>> On 17 February 2010 20:51, Chris Ramsdale  wrote:
>>
>>> This thread might help out:
>>>
>>>
>>> https://groups.google.com/group/google-web-toolkit/browse_thread/thread/e0b7683069497bcf/e6d2814e79bc3a45?#e6d2814e79bc3a45
>>>
>>> -- Chris
>>>
>>> On Sun, Feb 14, 2010 at 6:39 PM, John V Denley <
>>> johnvden...@googlemail.com> wrote:
>>>
 I forgot the line from where I am getting the URL:

 loginInfo.getLoginUrl()


 On Feb 14, 11:16 pm, John V Denley  wrote:
 > OK, I think I might have figured out what the problem is... when Im
 > creating the frame Im trying to set it using the following line:
 >
 > The resulting URL is "/_ah/login?continue=http%3A%2F%2Flocalhost
 > %3A%2F" so the problem is that it is stripping out the "/
 > myappname.html?gwt.codesvr=127.0.0.1:9997" part which then results in
 > me running the last version of the application that I deployed to the
 > web.
 >
 > Does anyone know why the version at "localhost:" is not the same
 > version that exists at "localhost:888/IDeBanet.html?
 > gwt.codesvr=127.0.0.1:9997" or how I can force it to be the same
 > without having to deploy each time?
 >
 > Oh and Im running eclipse ganymede by the way.
 >
 > Thanks,
 > John
 >
 > On Feb 14, 4:06 pm, John V Denley  wrote:
 >
 > > My application requires a login to a google account.
 >
 > > I have been looking at trying to do this login step within a GWT
 frame
 > > which works fine.
 >
 > > The problem is that once that login has been completed my
 application
 > > then loads INSIDE the frame, I really want it to reload in the
 parent
 > > window. I have tried both the following:
 >
 > > Window.Location.reload();
 > > Window.open("http://www.google.co.uk";, "_top","");
 >
 > > but neither of them have the desired effect, If I press F5 it does
 > > exactlywhat I want it to do, even if the focus is on a text box
 within
 > > the frame.
 >
 > > Anyone got any ideas, am I doing something wrong, is there a better
 > > way to do this?
 >
 > > Thanks,
 > > John

 --
 You received this message because you are subscribed to the Google
 Groups "Google Web Toolkit" group.
 To post to this group, send email to
 google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-tool

Re: How to set the initial state of a radiobutton?

2010-02-18 Thread John Denley
Its hard to try to solve this problem without being able to debug the code,
and Ive certainly got no time for that!

You can try to create a really small application that just creates and sets
the radio buttons, so that you can proove to yourself that the functionality
works.

You could also try stepping through the code line by line (if you are using
something like the eclipse IDE)

Otherwise you could try manually stepping through your own code, very
tedious and boring and you need to concentrate but its possible to do if
theres not too much code to trawl through!

Regarding the Asynchronos problem, this all depends if you are using RPC
calls to your server to get the values for your radio buttons, but Im
guessing from what you have said that you are currently hardcoding the
initial values (which of course it one of the debugging steps you could have
tried). The problem though can be that you create and display the radio
buttons, but then the RPC call fails to update them for whatever reason, or
worse yet, tries to update the radio buttons before they have even been
created!

Other than that I dont know enough about how you are trying to do it (or
enough of the internal workings of GWT) to offer any advice on the actual
order of creation etc.

However its worth remembering and considering whether or not your panels or
buttons are being destroyed or just merely hidden. Ive made that mistake
with dialog boxes and not realising that a a call to dialogbox.hide is only
hiding the dialog box, so if you try to create the dialogbox at the
beginning of a function and then hide it later in the same function, later
when you call the same function, it will create a new (clean) version of the
same dialogbox



On 18 February 2010 15:17, dhoffer  wrote:

> John,
>
> So how do I solve this?  I'm not clear on the solution you propose.
>
> -Dave
>
> On Feb 18, 7:51 am, John Denley  wrote:
> > is it possible that this maybe an asynchronos issue, I have had that
> before
> > where Im displaying the radio buttons before im setting them because the
> > setting of the buttons is based on a reply from the server, which is an
> > asynchronous call!
> >
> > On 18 February 2010 14:28, Bonor  wrote:
> >
> > > It should! May be something else deselects it?
> >
> > > I use many radio's and I just use:
> > > radio[i].setValue(true);
> >
> > > On 18 feb, 04:42, dhoffer  wrote:
> > > > gwt 2.0.  I've tried calling setValue(true, true) on radio buttons
> but
> > > > when the app is run, neither radio button is selected, what is the
> > > > trick to code setting the initial value of radio buttons?
> >
> > > > -Dave
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT 2.0 and Eclipse, Project redeployment

2010-02-18 Thread paata
Hi all,
I'm newbie on gwt.
I've eclipse gwt project with smartgwt.

When i make changes on client side code, changes appeard after saving,
but when i make changes on server side (change  anything into servlet
method ) it is required to restart server.
I need redeployment not server restart
Restart needs long time, approximately 3-4 minute.
 any idea?


regards
paata

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



LivingStories

2010-02-18 Thread Jeff Chimene
Hi,

Interesting GWT /GAE application: http://livingstories.googlelabs.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to set the initial state of a radiobutton?

2010-02-18 Thread dhoffer
John,

So how do I solve this?  I'm not clear on the solution you propose.

-Dave

On Feb 18, 7:51 am, John Denley  wrote:
> is it possible that this maybe an asynchronos issue, I have had that before
> where Im displaying the radio buttons before im setting them because the
> setting of the buttons is based on a reply from the server, which is an
> asynchronous call!
>
> On 18 February 2010 14:28, Bonor  wrote:
>
> > It should! May be something else deselects it?
>
> > I use many radio's and I just use:
> > radio[i].setValue(true);
>
> > On 18 feb, 04:42, dhoffer  wrote:
> > > gwt 2.0.  I've tried calling setValue(true, true) on radio buttons but
> > > when the app is run, neither radio button is selected, what is the
> > > trick to code setting the initial value of radio buttons?
>
> > > -Dave
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



file properties upgrade 1. 5 to 1.6

2010-02-18 Thread asle
Hello:
I have a problem when use with gwt 1.6 web mode, because not found
file.properties.
When we used gwt 1.4 with tomcat, we have the file.properties in the
folowing directory (in workspace eclipse):
project.tomcat.webapps.confFiles.
But i do not know in gwt 1.6 where to put for what in web mode
recognize the properties.

I have a server class DataBaseAccessProperties.java in this class i
have the folowing code:

**
package com.accesa.portal.server;

import java.util.Properties;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;


public class DataBaseAccessProperties
{
private static DataBaseAccessProperties dbm=null;
private static Properties prop = new Properties();
private String path ="";
private DataBaseAccessProperties(String path)
{
this.path =path;

}
public static Properties getDataBaseProperties(String path)
{
if (dbm==null)
{

dbm = new DataBaseAccessProperties(path);
return dbm.loadData();
}
else
{
return prop;
}
}
private String getPropertieFilePath()
{
String to="";

try {

// search excelFile folder under webapps folder
File startFile = new File(this.path);
if (startFile.isDirectory())
{
File browseFile = new 
File(startFile.getParent());
while 
(!browseFile.getName().equals("webapps"))
{
browseFile = new 
File(browseFile.getParent());

}
String [] list = browseFile.list();
boolean notFound=true;
int h=0;
File excelFile = null;
while (hhttp://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT fails behind Cisco PIX/ASA Firewalls.

2010-02-18 Thread Jeff Chimene
On Wed, Feb 17, 2010 at 9:05 PM, Roy  wrote:

> We have a GWT implementation that fails with a blank page when the
> client user is behind a Cisco Firewall, PIX or ASA.
>
> Yet the GWT implementation works fine for clients behind firewalls
> made by SonicWall and Checkpoint.
>
> The implementation is a suspect since there are many users behind the
> Cisco firewalls.
>
> Please help with insight or success stories on solving the issue.
>
> Thanks, Roy
>

Have you checked w/ your IT staff to see what's in the firewall log? Also,
which GWT linker are you using?  ISTR that the XS linker was implicated in
some firewall issues, but I could be wrong. You need to compare the firewall
rules to each other and explain the differences.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Apache2 / Tomcat 6 / GWT 2.0 / Eclipse Questions

2010-02-18 Thread Eric
I dont believe jk mapping is the issue because i get the same results
if i use port 8080 or port 80.  I do have apache2 in front of Tomcat6
but everything seems to be working correctly.  Like i said the webapp
works when i turn on the invoker code in the tomcat web.xml so i am
guessing it has something to do with tomcat6/gwt.

Here is my context info:


Thank you again for your help.


On Feb 18, 9:48 am, olivier nouguier 
wrote:
> On Thu, Feb 18, 2010 at 3:10 PM, Eric  wrote:
> > Thanks for your reply.  Where would you "hard code" the GWT-RPC url?
>
> > When *not* using the  annotation you can specify by code the remote end
>
> point.
>
> > I have verified that there isnt a leading "/" in the
> > GreetingService.java file.  See below:
>
> > package com.sample.myproject.client;
>
> > i
>
> Okai for the GWT code.
> I'm still believe it's a "path issue".
> 2 tracks :
> What is the contextPath of your webapp ?
> If it is "simple" then you should remove the "simple" token from your
> servlet mapping.
>
> How does apache forward the request to tomcat?
> If it is a jk mapping issues you're app will work with tomcat only (8080).
>
> HIH
>
> --
> A coward is incapable of exhibiting love; it is the prerogative of the
> brave.
> --
> Mohandas Gandhi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: setting or refreshing the parent URL from within an iframe

2010-02-18 Thread Chris Ramsdale
>
> Chris, do you know if there is anyway I can set a similar "continue" type
> process for what happens when users click on the email link after CREATING a
> google account? At the moment they are just taken to a "thank you for
> confirming your account" screen, which is all very well, but we would much
> prefer for the user to be able to then click through to our application
>

Right now there is no way to force the "Account Creation Confirmation"
screen to follow the "continue" param. To make things more complicated, the
user will have to verify their account, which is completely decoupled from
your app. I would suggest adding some text which lets users know that
they'll need to either a) refresh your app once they have verified their
account creation, or b) click the sign-out link and sign back in with their
newly verified account.

You could also set a timer that inspects the contents of the iframe, and
auto-refresh in an attempt to catch the account verification that may occur
in a separate tab. To do this though, you'll need to catch the response,
otherwise you'll end up with an iframe that appears to be refreshing the
same content.

Net, net: there is some room for improvement within the Google Account
creation process.


> Cheers,
> John
>
> On 17 February 2010 20:51, Chris Ramsdale  wrote:
>
>> This thread might help out:
>>
>>
>> https://groups.google.com/group/google-web-toolkit/browse_thread/thread/e0b7683069497bcf/e6d2814e79bc3a45?#e6d2814e79bc3a45
>>
>> -- Chris
>>
>> On Sun, Feb 14, 2010 at 6:39 PM, John V Denley <
>> johnvden...@googlemail.com> wrote:
>>
>>> I forgot the line from where I am getting the URL:
>>>
>>> loginInfo.getLoginUrl()
>>>
>>>
>>> On Feb 14, 11:16 pm, John V Denley  wrote:
>>> > OK, I think I might have figured out what the problem is... when Im
>>> > creating the frame Im trying to set it using the following line:
>>> >
>>> > The resulting URL is "/_ah/login?continue=http%3A%2F%2Flocalhost
>>> > %3A%2F" so the problem is that it is stripping out the "/
>>> > myappname.html?gwt.codesvr=127.0.0.1:9997" part which then results in
>>> > me running the last version of the application that I deployed to the
>>> > web.
>>> >
>>> > Does anyone know why the version at "localhost:" is not the same
>>> > version that exists at "localhost:888/IDeBanet.html?
>>> > gwt.codesvr=127.0.0.1:9997" or how I can force it to be the same
>>> > without having to deploy each time?
>>> >
>>> > Oh and Im running eclipse ganymede by the way.
>>> >
>>> > Thanks,
>>> > John
>>> >
>>> > On Feb 14, 4:06 pm, John V Denley  wrote:
>>> >
>>> > > My application requires a login to a google account.
>>> >
>>> > > I have been looking at trying to do this login step within a GWT
>>> frame
>>> > > which works fine.
>>> >
>>> > > The problem is that once that login has been completed my application
>>> > > then loads INSIDE the frame, I really want it to reload in the parent
>>> > > window. I have tried both the following:
>>> >
>>> > > Window.Location.reload();
>>> > > Window.open("http://www.google.co.uk";, "_top","");
>>> >
>>> > > but neither of them have the desired effect, If I press F5 it does
>>> > > exactlywhat I want it to do, even if the focus is on a text box
>>> within
>>> > > the frame.
>>> >
>>> > > Anyone got any ideas, am I doing something wrong, is there a better
>>> > > way to do this?
>>> >
>>> > > Thanks,
>>> > > John
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Re: Google Accounts are killing my application!....

2010-02-18 Thread Jeff Chimene
On Thu, Feb 18, 2010 at 7:38 AM, John V Denley
wrote:

> I have been trying to leverage google accounts for security for my
> users, but the way its working is really preventing useability within
> my application, its very frustrating
>
> Ive just spent the best part of the last week trying to get the google
> account login to work in an frame within my application.


At this point I'd try another path.

Perhaps use oauth? I think that Google supports that API

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT team, please post latest to repo1.maven.org

2010-02-18 Thread Jan Ehrhardt
Thanks.

But the question remains, how to improve the process?

Regards
Jan Ehrhardt

On Thu, Feb 18, 2010 at 2:56 PM, Martin D'Aloia wrote:

> check http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.0.2/
>
> it's uploaded :)
>
> thanks to who did that
>
> On Wed, Feb 17, 2010 at 6:36 PM, Yaakov Chaikin 
> wrote:
>
>> Well, doesn't have to be someone from Google though??? The central
>> maven repository has a policy where you have to "prove" that you own
>> the domain before you can upload artifacts with com.google.x.
>>
>> Yaakov.
>>
>> On Wed, Feb 17, 2010 at 3:03 PM, Isaac Truett  wrote:
>> > This question comes up with every release, it seems. The GWT team
>> > doesn't maintain GWT  versions in the maven repository. I don't know
>> > the name of the person who does, but you might be able to find it in a
>> > past discussion.
>> >
>> >
>> >
>> > On Wed, Feb 17, 2010 at 1:58 PM, Yaakov 
>> wrote:
>> >> Does anyone have any updates regarding this? Is this imminent or is it
>> >> going to be a while before it's posted?
>> >>
>> >> (Yes, I know I can just import it myself by creating my own custom
>> >> pom, but I'd rather not have to do that.)
>> >>
>> >> thank you,
>> >> Yaakov.
>> >>
>> >> On Feb 16, 1:49 pm, Yaakov  wrote:
>> >>> Dear GWT team,
>> >>>
>> >>> Could you please post the latest release of GWT SDK (2.0.2) to the
>> >>> maven repository site repo1.maven.org? Currently, only release up to
>> >>> 2.0.1 are posted there.
>> >>>
>> >>> Thank you,Yaakov.
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> Groups "Google Web Toolkit" group.
>> >> To post to this group, send email to
>> google-web-tool...@googlegroups.com.
>> >> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> >> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> >>
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Google Web Toolkit" group.
>> > To post to this group, send email to
>> google-web-tool...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> > For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to set the initial state of a radiobutton?

2010-02-18 Thread dhoffer
Yeah, that's what I thought but it doesn't for me.  I'm not
deselecting it either.

Could it be the order of calls?  For instance does it matter when
setValue is called relative to anything else?  For instance does it
need to be after its attached to the root panel or something?  All I'm
doing is new(ing) some nested panels, one of the panels has two radio
buttons, I set the value of one of them, then I attach to the root
panel.



On Feb 18, 7:28 am, Bonor  wrote:
> It should! May be something else deselects it?
>
> I use many radio's and I just use:
> radio[i].setValue(true);
>
> On 18 feb, 04:42, dhoffer  wrote:
>
> > gwt 2.0.  I've tried calling setValue(true, true) on radio buttons but
> > when the app is run, neither radio button is selected, what is the
> > trick to code setting the initial value of radio buttons?
>
> > -Dave
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: An alternative to gwt-dispatch ... gwtserviceresolver

2010-02-18 Thread Mathias Bogaert
GWT Dispatch implements the command pattern. The combination with GWT
Presenter kicks ass (same author). Yours is a totally different
beast :-).

On Feb 17, 1:36 am, Henry  wrote:
> Hello All,
>
> I wrote an alternative to
> gwt-dispatchhttp://code.google.com/p/gwt-dispatch/
>
> It uses vanilla reflection and requires less configuration than gwt-
> dispatch,
> but does depend heavily on naming convention of your RPC service and
> service impl
>
> And here's the link to gwt service 
> resolver:http://code.google.com/p/gwtserviceresolver/
>
> Let me know what you think
>
> Cheers,
> Henry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to set the initial state of a radiobutton?

2010-02-18 Thread John Denley
is it possible that this maybe an asynchronos issue, I have had that before
where Im displaying the radio buttons before im setting them because the
setting of the buttons is based on a reply from the server, which is an
asynchronous call!

On 18 February 2010 14:28, Bonor  wrote:

> It should! May be something else deselects it?
>
> I use many radio's and I just use:
> radio[i].setValue(true);
>
>
> On 18 feb, 04:42, dhoffer  wrote:
> > gwt 2.0.  I've tried calling setValue(true, true) on radio buttons but
> > when the app is run, neither radio button is selected, what is the
> > trick to code setting the initial value of radio buttons?
> >
> > -Dave
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Apache2 / Tomcat 6 / GWT 2.0 / Eclipse Questions

2010-02-18 Thread olivier nouguier
On Thu, Feb 18, 2010 at 3:10 PM, Eric  wrote:

> Thanks for your reply.  Where would you "hard code" the GWT-RPC url?
>
> When *not* using the  annotation you can specify by code the remote end
point.


> I have verified that there isnt a leading "/" in the
> GreetingService.java file.  See below:
>
> package com.sample.myproject.client;
>
> i

Okai for the GWT code.
I'm still believe it's a "path issue".
2 tracks :
What is the contextPath of your webapp ?
If it is "simple" then you should remove the "simple" token from your
servlet mapping.

How does apache forward the request to tomcat?
If it is a jk mapping issues you're app will work with tomcat only (8080).

HIH

-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Debug Gadget GWT 2.0

2010-02-18 Thread flokay
Hi,

how can I debug a GWT 2.0-gadget (with init-method etc.) with Eclipse?
In 1.7.1 it worked well with a few changings but in 2.0 I don't get
it!
Has somebody done it already?

Regards,
flo

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Google Accounts are killing my application!....

2010-02-18 Thread John V Denley
I have been trying to leverage google accounts for security for my
users, but the way its working is really preventing useability within
my application, its very frustrating

Ive just spent the best part of the last week trying to get the google
account login to work in an frame within my application. Ive run into
a number of related issues (see other threads) which I have manage to
work through finally. (Thanks to everyone who helped out and provided
input)

However, I have just tried clicking on the "create an account now"
link which is what will be used by any new user who doesnt currently
have a google account, but the account creation window has "frame
breakout" code on it, which takes my users away from my application
again, and then after clicking on the email link to confirm thier new
account, the user is NOT taken back to my application but are just
congratulated for creating a google account.

The problem is that the user is then left thinking "now what do i do?"
and several of the people we are talking to have just given up at that
point!

Has anyone else successfully integrated Google accounts into their
applications?

Should I create my own logins rather than using Google accounts?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Seem like no way to get keycode from KeyDownHandler, KeyUpHandler

2010-02-18 Thread Jim Douglas
Hi Thomas,

Sorry about the delay in responding to this.  I just wanted to follow
up on this point:

> Firefox only adds KeyPress events. The issue is Opera here, and *only* Opera.

If that was true, I would tend to agree with you.  In my testing,
Opera is almost always the problem child.

But if you have access to a Mac, try that test in Firefox.  On the
Mac, Firefox fires *only* keypress for key-repeat of special
characters:

Go to http://unixpapa.com/js/testkey.html and press down-arrow long
enough to trigger a few key-repeats.


Chrome 5.0.322.2:

keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=3
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=3
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=3
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=3
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keyup keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=3
  shiftKey=false ctrlKey=false altKey=false metaKey=false


Firefox 3.6:

keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=undefined keyLocation=undefined
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keypress  keyCode=40 (()which=0 charCode=0
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keypress  keyCode=40 (()which=0 charCode=0
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keypress  keyCode=40 (()which=0 charCode=0
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keyup keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=undefined keyLocation=undefined
  shiftKey=false ctrlKey=false altKey=false metaKey=false


Opera 10.10:

keydown   keyCode=40 (()which=40 (()charCode=undefined
  keyIdentifier=undefined keyLocation=undefined
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keypress  keyCode=40 (()which=0 charCode=undefined
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keypress  keyCode=40 (()which=0 charCode=undefined
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keypress  keyCode=40 (()which=0 charCode=undefined
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keyup keyCode=40 (()which=40 (()charCode=undefined
  keyIdentifier=undefined keyLocation=undefined
  shiftKey=false ctrlKey=false altKey=false metaKey=false


Safari 4.0.4:

keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=0
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=0
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=0
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keydown   keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=0
  shiftKey=false ctrlKey=false altKey=false metaKey=false
keyup keyCode=40 (()which=40 (()charCode=0
  keyIdentifier=Down keyLocation=0
  shiftKey=false ctrlKey=false altKey=false metaKey=false


On Feb 15, 6:31 am, Thomas Broyer  wrote:
> On Feb 14, 7:31 pm, Jim Douglas  wrote:
>
> > Thomas,
>
> > Alan is writing low level code that needs to deal correctly with key
> > repeats in all browsers.
>
> OK, sorry. The real issue is with repeats then, and more specifically
> Opera. But Alan titled his message "get keycode from KeyDownHandler,
> KeyUpHandler" and talks about IE; and there I see absolutely no issue
> at all.
>
> > Sadly, this requires writing browser-
> > specific code that does some detailed parsing of the keydown and
> > keypress events.
>
> Only in Opera actually, because it only repeats KeyPress events
> (whereas it shouldn't even fire them in the first place in case of
> arrow keys which do not generate text)
>
> > This article provides some good background:
>
> >http://unixpapa.com/js/key.html
>
> > And the associated test page is a convenient way to see what events a
> > browser fires for each key:
>
> >http://unixpapa.com/js/testkey.html
>
> > One simple example:
>
> > Open that page in Firefox.
> > Press the right arrow key long enough to trigger key-repeat.
> > Note the stream of events.
> > Do the same in Chrome; note the different stream of events.
>
> Firefox only adds KeyPress events. The issue is Opera here, and *only*
> Ope

Re: Java libraries

2010-02-18 Thread mbracken
You can use anything that's listed in the JRE Emulation reference.
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html


On Feb 17, 5:41 pm, "colin.k...@gmail.com" 
wrote:
> I'm new to GWT and I can't find any comprehensive explanation of what
> I can and can't use in my client-side code that's going to be
> translated to javascript.  Can I use anything in java.util?  Can I
> only use things in com.google.gwt and nothing that's part of the built-
> in Java libraries?
>
> Thanks,
> Colin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



upgrade gwt 1.6 help!!

2010-02-18 Thread asle
Hello:

I am not resolved my problem with to upgrade gwt and i very very
stressed because i have be ready for March 5.

I have a project with gwt 1.5 and i used eclipse with cypal and for
deploy I used designer. I used file.properties too, because I have
configured the access to the database.
Now i want to upgrade to 1.6 but i have much problems with them. I try
folowing the steps in
http://code.google.com/intl/es/webtoolkit/doc/1.6/ReleaseNotes_1_6.ht...
For the deploy, i selected in my project with right click
GoogleWebToolkit->Deploy module and i generated myproject.war.
Then i deploy myproject.war in tomcat and file.properties too buy not
recongnized my file.properties but i realize deploy with gwt 1.5 the
file.properties is recognized.

Sorry for the writing,  but i am not speak english
Thanks

Angie

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to set the initial state of a radiobutton?

2010-02-18 Thread Bonor
It should! May be something else deselects it?

I use many radio's and I just use:
radio[i].setValue(true);


On 18 feb, 04:42, dhoffer  wrote:
> gwt 2.0.  I've tried calling setValue(true, true) on radio buttons but
> when the app is run, neither radio button is selected, what is the
> trick to code setting the initial value of radio buttons?
>
> -Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP question

2010-02-18 Thread Supercobra Thatbytes
>...
> Another way of sending model information is using interfaces. For
> instance, if I knew that I would be displaying a speedometer for car
> and a bike (and maybe something else as well), I would have done
> something like:
>
> new SpeedoMeterView(Vehicle vehicle)...
>
> where Vehicle is an interface with methods that provide access to all
> properties that the SpeedometerView needs.

This is a good way as well. Interfaces are like magic bullets
sometimes...

-- supercobra

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: onHistoryChanged() not being called on hitting the Back Button (or even calling History.back())

2010-02-18 Thread Thomas Broyer


On Feb 17, 4:50 pm, PKolenic  wrote:
> I am getting similiar behaviour using GWT 2.0.
> In my case I use buttons to switch between an inner I-Frame.
> I put a check in the onClick methods to not write a newItem to History
> if the the old token matches the new token.
>
> As a result I only have to push the back button twice now instead of
> three times.
> I think what is happening is that when a button is pressed, and the
> new I-Frame is
> loaded, the token is written twice to the stack.  So the first time
> you press the back
> button there is no change in the token value so the onValueChanged (or
> onHistoryChanged)
> does not get called.

Actually, your newItem is adding an entry to the browser's history,
then the frame adds one (but it doesn't show in the URL), and if you
call newItem once more it might then add yet another entry.

The rule of thumb is: do not use iframes and History at the same time
(on the same app), iframes (and frames, for that matters) don't play
well with history.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to access a web service using GWT?

2010-02-18 Thread Bonor
Good stuff, Michael!
Thanks!

On 18 feb, 02:49, Michael Dausmann  wrote:
> Hi Dany
>
> You can use the HTTP client package to do it yourself (beware the
> 'browser origin' 
> rule)http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...
>
> if the WS is JSON compatible, you can use this fudgy 
> methodhttp://www.gwtsite.com/how-to-access-web-services-with-gwt/
>
> You can use 
> ws-jshttp://www.ibm.com/developerworks/webservices/library/ws-wsajax/
>
> Or you can use gwt-wshttp://evolvis.org/projects/gwt-ws/
>
> I haven't really checked any of these options out, just googlage.  I
> intend to look at gwt-ws first.
>
> FYI, I am calling document style xml web services ofer http so need to
> handle XML on the client, I am using piriti to make this less 
> painfullhttp://code.google.com/p/piriti/
>
> Michael
>
> On Feb 3, 8:34 am, Dany  wrote:
>
>
>
> > Hi
>
> > I am new to GWT and looking at ways to access awebservicefrom GWT
> > client.
> > Does GWT provide any infrastructure to makewebservicecalls (both
> > synch & asynch)?
>
> > I appreciate any pointers to articles, code samples, etc.
>
> > Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[SOLVED] Development Mode not reloading servlets?

2010-02-18 Thread Jaroslav Záruba
Thank you!

I have unchecked it when playing around with another project.
*facepalm*
(I'd rather see this option being project-bound.)

Thanks again!

Regards
  J. Záruba

On Feb 18, 3:06 pm, Thomas Broyer  wrote:
> On Feb 17, 1:20 pm, Jaroslav Záruba  wrote:
>
> > Hello
>
> > My impression was that when I trigger Development Reload my servlets
> > were reloaded. Last couple of days this does not work ?anymore?... (I
> > need to kill and start again Development Mode for changes to take
> > effect.)
> > Was my impression wrong?
>
> Restarting the server (in the Eclipse plug-in, the double-yellow-arrow
> button in the Development Mode view) *should* reload servlets. But,
> contrary to client-side code, it reloads them from byte code; are you
> sure your servlets are re-compiled to war/WEB-INF/classes? (you might
> have disabled automatic build in Eclipse for instance)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is there a way of specifying HTTP headers for a FormPanel's POST request?

2010-02-18 Thread Thomas Broyer


On Feb 17, 6:58 pm, chillyspoon  wrote:
> Hi everyone,
>
> Does anyone know how to add HTTP headers to the HTTP POST that gets
> kicked off when a FormPanel submit method is called?

No, that's not possible. FormPanel is just an HTML , so it obeys
the same rules and constraints. If you're not trying to upload a file
and are also not forced to use multipart/form-data, I'd suggest
issuing the request yourself using a RequestBuilder rather than
relying on FormPanel, it's much more flexible (request headers,
response headers and status code, error handling, etc.)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: The method doDetachChildren() from the type Panel is not visible

2010-02-18 Thread Thomas Broyer

On Feb 17, 8:47 pm, javaunixsolaris  wrote:
> GWT won't let me call RootPanel.get().doDetachChildren();  It says,
> "The method doDetachChildren() from the type Panel is not visible" but
> the method is protected (in the Panel parent class) so it's children
> should be able to call it.  Ideas?

Why would you like to call this method? (at least call it that way,
i.e. on RootPanel.get())
One thing that's quite clear, doDetachChildren is not what you're
looking for. Maybe RootPanel.get().clear()?
What's your use case?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT fails behind Cisco PIX/ASA Firewalls.

2010-02-18 Thread Roy
We have a GWT implementation that fails with a blank page when the
client user is behind a Cisco Firewall, PIX or ASA.

Yet the GWT implementation works fine for clients behind firewalls
made by SonicWall and Checkpoint.

The implementation is a suspect since there are many users behind the
Cisco firewalls.

Please help with insight or success stories on solving the issue.

Thanks, Roy

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: using ClientBundle for a themeable image set

2010-02-18 Thread Strelok
I think you are on the right track. The getImageResource(...) method
can be replaced with deferred binding.

On Feb 4, 2:40 am, Bob  wrote:
> Hi,
>
> I have a set of static objects which are retrieved from the server and
> rendered in a custom widget on the client.  Each of these objects has
> an image associated with it.  I want these images to be themeable,
> such that the entire set of images used for these objects can be
> swapped out.  For example, say there is a Cat object and a Dog object,
> and there is a 'domestic'themeand a 'wild'theme.   Thethemeis a
> user option.  If the wildthemeis selected, the images should be a
> cheetah and a dingo.  With the domesticthemethey would be a calico
> cat and a golden retriever.
>
> My thought was that I could distribute these image themes as
> ClientBundles.  So I implemented something like this:
>
> public interface ImageTheme {
>     ImageResource cat();
>     ImageResource dog();
>
> }
>
> public interface WildImageTheme extends ClientBundle, ImageTheme {
>     @Source("cheetah.jpg")
>     ImageResource cat();
>
>     @Source("dingo.jpg")
>     ImageResource dog();
>
> }
>
> public interface DomesticImageTheme extends ClientBundle, ImageTheme {
>     @Source("calico.jpg")
>     ImageResource cat();
>
>     @Source("golden-retriever.jpg")
>     ImageResource dog();
>
> }
>
> But then I end up needing some ugly and hard-to-maintain binding code
> on the client like this:
>
> public static ImageTheme CURRENT_THEME = (ImageTheme) GWT.create
> (DomesticImageTheme.class)
>
> public ImageResource getImageResource(String animalName) {
>     if ("Cat".equals(animalName)) {
>         return CURRENT_THEME.cat();
>     } else if ("Dog".equals(animalName)) {
>         return CURRENT_THEME.dog();
>     }
>     [...]
>
> }
>
> If it were available to me, I could use reflection to bind the animal
> names to matching method names, but obviously it isn't.  Deferred
> binding is described as GWT's answer to reflection, but does it fit
> here?  Is my ClientBundle asthemepack paradigm flawed?  Does anyone
> have a suggestion for a better way to accomplish this?
>
> Thanks,
> Bob

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Integrating GWT with an existing J2EE app

2010-02-18 Thread Alexander Arendar
Hi Naveed,

you may look at this post
http://aarendar.wordpress.com/2010/01/11/custom-integration-of-gwt-widgets-into-jsps/

Sincerely,
Alexander

On Wed, Feb 17, 2010 at 7:54 PM, Naveed  wrote:

> I'm extremely new to this, but have done the initial training
> exercise. I've also proceeded to implement a service that uses my
> existing J2EE application's API. Pretty cool stuff so far.
>
> Here are some of my questions, any insight would be awesome:
>
> 1) I noticed that all GWT apps start from an entry point html file. Is
> it possible for me to have a non-GWT JSP file that reads in input from
> the user (kinda like a parameters page) and redirects to a GWT
> application? Basically, is it possible to have a GWT entry point do
> stuff based on parameters passed in (maybe request parameters)?
>
> 2) All view layer files in my app have to include certain JSP tags
> (for security, session maintenance, etc.). Would it be possible to
> have my GWT app generate files that I can later change into a JSP (I
> guess the div ids would remain)?
>
> I guess what i'm really trying to do is just integrate GWT into a
> pretty robust existing J2EE application. I have got to do tons of
> front end development (with a lot of AJAX) and am exploring GWT and
> other RIA frameworks, but am completely a newbie.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Error running JUnit with GWT and App Engine

2010-02-18 Thread rgyani
I am also getting this error when using GWT 2.0 + GaE with intellij
idea

any pointers?

thanks

On Dec 29 2009, 2:22 am, Sekhar  wrote:
> Actually, turned out you can follow the same GAE JUnit guidelines
> (http://code.google.com/appengine/docs/java/howto/unittesting.html)
> and create anenvironment- except, you need to do it on the server
> side instead of in your test cases. I created anEnvironmentclass
> using the code in the guidelines and added the below lines in my EMF
> (EM factory) class, and all is well:
>
> ApiProxy.setEnvironmentForCurrentThread(newEnvironment());
> ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(".")){});
>
> Also, FYI you can shut the DataNucleus logging up by turning them off
> for the categories specified 
> inhttp://www.datanucleus.org/products/accessplatform/logging.html.
> They can really clutter up your Eclipse console.
>
> Now, back to work.
>
> On Dec 28, 9:09 am, Sekhar  wrote:
>
>
>
> > Actually, any access on the local store (read or write) is failing
> > with this "NoAPIEnvironment" error. This must be a simple
> > configuration issue (because I'm not doing anything fancy), and I'm
> > sure there're lot of folks using JUnit with GWT/GAE... Please help,
> > I'm stuck.
>
> > On Dec 27, 8:44 pm, Sekhar  wrote:
>
> > > I'm running a JUnit test that causes a persistent write (JPA) with GWT
> > > and App Engine, and the test is failing with the below error. The "No
> > >APIenvironmentisregisteredfor thisthread' error led me to the GAE
> > > JUnit guidelines (http://code.google.com/appengine/docs/java/howto/
> > > unittesting.html), but they apply for a pure GAE situation. How should
> > > we run test cases with GWT when it involves persistent writes on the
> > > local GAE? The tests that only read from the store are working fine,
> > > as are direct access through the GWT front-end.
>
> > > junit.framework.AssertionFailedError: Remote test failed at
> > > 192.168.1.76 / Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
> > > 1.9.0.1) Gecko/2008070208 Firefox/3.0.1
> > > com.google.gwt.user.client.rpc.SerializationException:
> > > java.lang.NullPointerException:NoAPIenvironmentisregisteredfor
> > > thisthread.
> > >         at junit.framework.Assert.fail(Assert.java:197)
> > >         at 
> > > com.allurefx.herdspot.test.client.HerdspotServiceTest$3.onFailure
> > > (HerdspotServiceTest.java:88)
> > >         at
> > > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv
> > >  ed
> > > (RequestCallbackAdapter.java:218)
> > >         at com.google.gwt.http.client.Request.fireOnResponseReceived
> > > (Request.java:287)
> > >         at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
> > > (RequestBuilder.java:396)
> > >         at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
> > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > >         at java.lang.reflect.Method.invoke(Unknown Source)
> > >         at 
> > > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> > > 103)
> > >         at 
> > > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> > > 71)
> > >         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> > > (OophmSessionHandler.java:157)
> > >         at
> > > com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur
> > >  n
> > > (BrowserChannel.java:1713)
> > >         at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> > > (BrowserChannelServer.java:165)
> > >         at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> > > (ModuleSpaceOOPHM.java:120)
> > >         at 
> > > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > > 507)
> > >         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
> > > (ModuleSpace.java:264)
> > >         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> > > (JavaScriptHost.java:91)
> > >         at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> > >         at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
> > >         at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
> > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > >         at java.lang.reflect.Method.invoke(Unknown Source)
> > >         at 
> > > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> > > 103)
> > >         at 
> > > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> > > 71)
> > >         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> > > (OophmSessionHandler.java:157)
> > >         at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
> > > (BrowserChannel.java:1668)
> > >         at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> > > (BrowserChannelServer.java:401)
> > >         at com.google.gwt.dev.shell.BrowserChannelServer.run
> > > (BrowserChannelServer.java:222)
> > >         at java.lang.Thread.run(Unknow

Creating text effects in GWT

2010-02-18 Thread Zach Murphy
Hi all,

I am creating an app where a user enters text into a textbox and I
display the text elsewhere.  Currently I am creating a new HTML when I
display the text.  While this gives me some limited effect options
(bold, italics, color, etc.), I need more.

I want the user to be able to be able to choose different effect
styles and change the displayed text.  For instance they might change
the shape of the text, curve it, bulge it, make it diagonal, etc.  But
also keep the old effects, like bold and different fonts.

Are there any GWT or javascript tools that might help accomplish
this?  I haven't been able to find any and I'd prefer not to have to
write all the graphic mathematics by myself.  My other thought is to
make the text an image and manipulate the image.  Any help or guidance
would be greatly appreciated.

Thanks,
Zach

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problems faced while upgrading version from 1.1.10 to 1.7.0

2010-02-18 Thread chotu
Hi There,

I want to upgrade the GWT version of my application from current
version 1.1.10 to newer version 1.7.0 but when ever I am trying to do
the same after build I am getting the error in com.gwt.components and
com.gwt.components.client and in the client I am getting the error in
the class canvas.java.

Does anyone faced the same error while upgrading and if yes then
please provide the possible solution for the same.

It will be helpfull for me if you are able to provide the solution
ASAP.

Regards,
Ashish

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Upgrade to GWT 2.0 => java.lang.NullPointerException: No API environment is registered for this thread

2010-02-18 Thread rgyani
I am also getting this error when using GWT 2.0 + GaE with intellij
idea

any pointers?

thanks

On Feb 1, 11:37 pm, Cyril  wrote:
> Error on my side.
> When upgrading I unchecked the "Use Google App Engine" option under
> project properties/Google/App engine.
>
> On Jan 31, 12:01 pm, Cyril  wrote:
>
>
>
> > I just upgraded my working app from GWT 1.7.0 to GWT 2.0 and now when
> > I try to run it in dev mode I have the following error message:
> > [WARN] /j_spring_security_check
> > java.lang.NullPointerException:NoAPIenvironmentisregisteredfor
> > thisthread.
> >         at
> > com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId
> > (DatastoreApiHelper.java:67)
> >         at
> > com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamesp 
> > ace
> > (DatastoreApiHelper.java:77)
> > etc...
>
> > Any pointer is welcome.
>
> > Thanks a lot
>
> > Cyril

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Failure upgrading 1.7 to 2.0

2010-02-18 Thread jfeingold
I'm trying to upgrade an application from working with GWT 1.7 to 2.0.
However, when I go through the steps to convert from 1.7 to 2.0, I get
a failure message when launching my browser saying that I need to
(re)compile my source. This message makes no sense since I should not
have to compile to run in DevMode.

I am running Win7 and launching from IntelliJ 8. I initially suspcted
an installation problem. However, I observed the same behavior with
both 2.0.1 and 2.0.2. I also set up a test where I created an
analogous IJ project, module, and launch configuration using the Hello
example application, which works just fine.

This has left me rather confused, since the 1.7 to 2.0 upgrade seemed
rather minimal and my setup worked before, and an analogous setup
currently works as well.

I wish I could be more descriptive of the problem, but I am pretty
well stymied by the thing at this point.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Embedding GWT components inside the HTML of an HTML component

2010-02-18 Thread ihab . awad
Oh!

I tried something on a lark and it worked:

On Wed, Feb 17, 2010 at 10:34 PM,   wrote:
> 2. Inside that HTML panel, I load some HTML and JavaScript. I expose
> to the contained JavaScript (via JSNI) a GWT function which, when
> called, creates a Button and returns the .getElement() of the Button.

If I have this function, when it creates the Button, add the GWT
Button object to some *other* GWT Panel before returning the
.getElement(), the effect is that:

a. The UI of the Button shows up correctly according to where the
JavaScript code laid it out via the .getElement(), and

b. The functionality of the Button works correctly in that it can now
be clicked.

Hm.

Ihab

-- 
Ihab A.B. Awad, Palo Alto, CA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Embedding GWT components inside the HTML of an HTML component

2010-02-18 Thread ihab . awad
Hi folks,

I'm trying to put some GWT components (say, a Button) embedded deep
within some arbitrary HTML that is itself inside an HTML panel. I am
doing this programmatically. Are there specific issues I need to be
aware of? Here is the scenario:

1. I create some GWT component which contains an HTML panel.

2. Inside that HTML panel, I load some HTML and JavaScript. I expose
to the contained JavaScript (via JSNI) a GWT function which, when
called, creates a Button and returns the .getElement() of the Button.

3. The JavaScript inside the HTML panel calls the provided GWT
function, getting back a plain HTML element representing the Button
that was created by GWT.

4. The JavaScript inside the HTML panel then adds this HTML element to
its *own* DOM hierarchy.

The effect I see is that the Button is visible and can be pressed, but
a clickHandler added to the button by the GWT code does not fire.

Ihab

-- 
Ihab A.B. Awad, Palo Alto, CA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Plugin on Firefox 3.6 (linux) not working

2010-02-18 Thread Stedav
Same, problem here FF36 on 64 OpenSuse  release, FF keeps asking to
install the plug in. Even after loading the plug in manually no
success. This problem continues, its all over the web, but neither FF,
nor Google seem to reply ( or care).
I can't believe there is no Chrome support for GWT on Linux, come one
Google, its your own browser after all!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Java libraries

2010-02-18 Thread colin.k...@gmail.com
I'm new to GWT and I can't find any comprehensive explanation of what
I can and can't use in my client-side code that's going to be
translated to javascript.  Can I use anything in java.util?  Can I
only use things in com.google.gwt and nothing that's part of the built-
in Java libraries?

Thanks,
Colin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



problem with redeploying servlet changes

2010-02-18 Thread paata
Hi all,
I'm newbie on gwt and i need urgent help
The changes which i made into any servlet appeared only jetty restart
and restart take a long time, approximately 2-3 minute, how i can made
changes into servlet without restart ???

P.S. client side changes works fine on save.


any idea ?


Regards
Paata Lominadze.
Magticom LTD.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT + JPA 2.0

2010-02-18 Thread Jin
Hi All,

I'm fairly new to GWT and attempting to use GWT with JPA 2.0 , but
have come across various problems.  I'm using the setup below:
* Entity classes with annotations in a JAR on the GWT app classpath
* JPA controllers (largely generated classes that perform the actual
JPA actions, such as persisting objects to the database) in the same
JAR as the entity classes.
* GWT RPC calls (the server side accesses the JPA controllers)

I'm using Eclipse as my IDE with the GWT plugin.

A couple of questions:
* Can the development mode server (Jetty I believe) support JPA? (all
the relevant libraries are on the GWT project's classpath, so there
are no compile errors)  Or do I need to use an external server, and if
so what type would be appropriate?
* How do I structure the files, e.g. where do I put persistence.xml?
Do I keep it with the entity classes from the other project or do I
need it to be with the GWT project?


The following things are working fine so far:
* RPC calls
* Creating an instance of an entity class
* Creating an instance of the JPA controllers

However, the application throws a NullPointerException when the JPA
controller attempts to get an entity manager with which to persist the
entity.

Below are the first few lines of the exception.

java.lang.NullPointerException
at
com.axle8.entity.jpaController.MarketerUserJpaController.getEntityManager(MarketerUserJpaController.java:
31)
at
com.axle8.entity.jpaController.MarketerUserJpaController.create(MarketerUserJpaController.java:
37)
at
com.axle8.web.server.SignUpServiceImpl.signUpMarketer(SignUpServiceImpl.java:
99)

I do NOT get the "No entity manager for persistence unit XYZ".

Below is the code where the exception occurs.  Line 31 (where the
exception occurs) is the following line:
return emf.createEntityManager();




public MarketerUserJpaController() {
emf = Persistence.createEntityManagerFactory("Axle8EntityPU");
}
private EntityManagerFactory emf = null;

public EntityManager getEntityManager() {
return emf.createEntityManager();
}

public void create(MarketerUser marketerUser) {
EntityManager em = null;
try {
em = getEntityManager();
em.getTransaction().begin();
em.persist(marketerUser);
//System.out.println(marketerUser.getUserId());
em.getTransaction().commit();
} finally {
if (em != null) {
em.close();
}
}
}



The entity classes and JPA controllers have been tested successfully
on a J2EE server (Glassfish).

I'm thinking I need to deploy the whole thing to such a server.

Any assistance would be greatly appreciated! Please let me know
whether any further information would help

Regards,

Jin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Apache2 / Tomcat 6 / GWT 2.0 / Eclipse Questions

2010-02-18 Thread Eric
Thanks for your reply.  Where would you "hard code" the GWT-RPC url?

I have verified that there isnt a leading "/" in the
GreetingService.java file.  See below:

package com.sample.myproject.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(String name) throws IllegalArgumentException;
}

Are there specific things Tomcat 6 needs to be able to run a GWT 2.0
app?  Is there specific code i need to put into my app for it to run
correction on tomcat6?

Basically all i have done is create a new GWT app in eclipse, compile
it and copy the war directory contents into my virtual host
directory.

Thank you again from your help.


On Feb 17, 4:58 am, olivier nouguier 
wrote:
> Hi,
>  What it the name of your webapp ?
>  It's look like a absolute path issue ...
> When you run your app with eclipse (dev mode), your webapp context is "/",
> but if your "deploy" this webapp in not-root webapp, you can encounter this
> issue if you've hard-coded the GWT-RPC url ;)
> How did you specify the @RemoteServiceRelativePath("greet") ?
> be sure that there is no leading "/", that could explain the error in
> webmode only.
>
> HIH
>
>
>
> On Tue, Feb 16, 2010 at 4:47 AM, Eric  wrote:
> > I have setup Apache2 + Tomcat 6 as my test server on ubuntu server
> > 9.10 x64.  I have installed Eclipse w/ GWT 2.0 plugins and have
> > created a default webapp which works great in the Eclipse test
> > environment.  I have no issues when i compile and run in eclipse.
> > When i move it to my tomcat box the problems start.
>
> > When i try to copy all the code from the war directory in my eclipse
> > project to my Tomcat 6 server i get a 404 file not found error
> > whenever i try to make a server call. My client side stuff looks fine
> > but my server calls return the following:
>
> > 192.168.1.50 - - [15/Feb/2010:22:29:20 -0500] "POST /simple/greet HTTP/
> > 1.1" 404 991
>
> > but as you can see from my web.xml file located in the WEB-INF
> > directory of my web app folder this should be mapping to the
> > simple.server.GreetingServiceImpl class.  I have verified that this
> > file exists in the correctly directory path:  /var/lib/tomcat6/domain1/
> > WEB-INF/classes/simple/server/GreetingServiceImpl.class
>
> > web.xml file
> > 
> >  
> >  
> >    greetServlet
> >    simple.server.GreetingServiceImpl
> >  
> >  
> >    greetServlet
> >    /simple/greet
> >  
> >  
> >  
> >    Simple.html
> >  
> > 
> > **END***
>
> > Now here is the weird thing... if i uncomment the following code in
> > the tomcat web.xml file everything starts working:
>
> > 
> >        invoker
> >        
> >          org.apache.catalina.servlets.InvokerServlet
> >        
> >        
> >            debug
> >            0
> >        
> >        2
> >    
>
> > I know know invoker is BAD BAD BAD but i dont know what else to do.
>
> > I AM NOT uncommenting the servlet mapping for invoker just the class
> > info.
> > 
>
> > What am i doing wrong?
>
> > Here are my config files:
>
> > * web.xml for webapp - /var/lib/tomcat6/domain1/WEB-INF/
> > web.xml 
>
> > 
> >  >    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> >    "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> >  
> >  
> >    greetServlet
> >    simple.server.GreetingServiceImpl
> >  
> >  
> >    greetServlet
> >    /simple/greet
> >  
> >  
> >  
> >    Simple.html
> >  
> > 
>
> > ***Tomcat web.xml file - /etc/tomcat6/
> > web.xml**
> > 
>
> > http://java.sun.com/xml/ns/javaee";
> >    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> >http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
> >    version="2.5">
>
> >    
> >        default
> >        org.apache.catalina.servlets.DefaultServlet > servlet-class>
> >        
> >            debug
> >            0
> >        
> >        
> >            listings
> >            false
> >        
> >        1
> >    
>
> >    
> >        jsp
> >        org.apache.jasper.servlet.JspServlet > class>
> >        
> >            fork
> >            false
> >        
> >        
> >            xpoweredBy
> >            false
> >        
> >        3
> >    
>
> >    
> >    
> >        default
> >        /
> >    
>
> >    
> > 
>
> >    
> >    
> >        jsp
> >        *.jsp
> >    
>
> >    
> >        jsp
> >        *.jspx
> >    
>
> >    
> >        30
> >    
>
> >    
> >        abs
> >        audio/x-mpeg
> >    
> >    
> >        ai
> >        application/postscript
> >    
> >    
> >        aif
> >        audio/x-aiff
> >    
> >    
> >        aifc
> >        audio/x-aiff
> >  

Re: Development Mode not reloading servlets?

2010-02-18 Thread Thomas Broyer


On Feb 17, 1:20 pm, Jaroslav Záruba  wrote:
> Hello
>
> My impression was that when I trigger Development Reload my servlets
> were reloaded. Last couple of days this does not work ?anymore?... (I
> need to kill and start again Development Mode for changes to take
> effect.)
> Was my impression wrong?

Restarting the server (in the Eclipse plug-in, the double-yellow-arrow
button in the Development Mode view) *should* reload servlets. But,
contrary to client-side code, it reloads them from byte code; are you
sure your servlets are re-compiled to war/WEB-INF/classes? (you might
have disabled automatic build in Eclipse for instance)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT team, please post latest to repo1.maven.org

2010-02-18 Thread Martin D'Aloia
check http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.0.2/

it's uploaded :)

thanks to who did that

On Wed, Feb 17, 2010 at 6:36 PM, Yaakov Chaikin wrote:

> Well, doesn't have to be someone from Google though??? The central
> maven repository has a policy where you have to "prove" that you own
> the domain before you can upload artifacts with com.google.x.
>
> Yaakov.
>
> On Wed, Feb 17, 2010 at 3:03 PM, Isaac Truett  wrote:
> > This question comes up with every release, it seems. The GWT team
> > doesn't maintain GWT  versions in the maven repository. I don't know
> > the name of the person who does, but you might be able to find it in a
> > past discussion.
> >
> >
> >
> > On Wed, Feb 17, 2010 at 1:58 PM, Yaakov 
> wrote:
> >> Does anyone have any updates regarding this? Is this imminent or is it
> >> going to be a while before it's posted?
> >>
> >> (Yes, I know I can just import it myself by creating my own custom
> >> pom, but I'd rather not have to do that.)
> >>
> >> thank you,
> >> Yaakov.
> >>
> >> On Feb 16, 1:49 pm, Yaakov  wrote:
> >>> Dear GWT team,
> >>>
> >>> Could you please post the latest release of GWT SDK (2.0.2) to the
> >>> maven repository site repo1.maven.org? Currently, only release up to
> >>> 2.0.1 are posted there.
> >>>
> >>> Thank you,Yaakov.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> >> To post to this group, send email to
> google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> >> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >>
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: IE gwt default style fonts and widget sizes

2010-02-18 Thread nvrs
As a matter of fact it looks as if zoom has been enabled (which is not
the case). This happens also in the GWT showcases site for me.

On Feb 18, 2:55 pm, nvrs  wrote:
> I have noticed that using GWTs default style all text in various
> widgets uses bigger fonts. Any tips to make it appear as in other
> browsers where text is exactly the same (FF,Chrome,Safari).
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



IE gwt default style fonts and widget sizes

2010-02-18 Thread nvrs
I have noticed that using GWTs default style all text in various
widgets uses bigger fonts. Any tips to make it appear as in other
browsers where text is exactly the same (FF,Chrome,Safari).

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2 using Eclipse with plugin and Spring

2010-02-18 Thread Paul S
Almost... Just tidying a few things before I shared it.

On Feb 16, 4:23 pm, maks  wrote:
> Hi,
>
> Do you have a working on example on how to use the GWT + GWT-SL +
> Gilead + Spring?
>
> On Feb 16, 5:52 pm, Paul Grenyer  wrote:
>
>
>
> > Hi
>
> > On Tue, Feb 16, 2010 at 9:49 AM, olivier nouguier
>
> >  wrote:
> > > You're are definitely rigth on those 2 points.
> > > not OPs issue:  in fact it's rather a Maven/GEP issue.
> > > file must be copied in WEB-INF/lib: just for the dev mode.
> > > Thanks you and I apologize for the confusion (but as an early maven user I
> > > tend to suppose that everybody uses maven ... )
>
> > Nah, real programmers see Maven for what it really is. ;-)
>
> > --
> > Thanks
> > Paul
>
> > Paul Grenyer
> > e: paul.gren...@gmail.com
> > b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Validating ClientBundles ?

2010-02-18 Thread Andrey
Hi there,

Are there any news about this issue? I've got two GWT installations -
1.7.0 and 2.0.0 and NO (!) google projects in my workspace. Still,
when opening a large non-gwt project always crashes eclipse. This is
definitely a show-stopper!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT+EJB+JPA Integration without DTO's

2010-02-18 Thread Henry
Hmmm ...
A decent soln 3.5 stars out of 5
I noticed that FetchType.EAGER
this can be a problem.  Is it not possible to create go into an
infinite loop (circular references)?
Also, how do you take care of BigDecimal?

I'm still not convinced of the soln above and think I'll stay with
DTO's for now.

Cheers,
Henry

On Feb 16, 6:13 pm, Morswin  wrote:
> Maybe someone will find that useful:http://code.google.com/p/gwt-ejb-sample/
> Cheers,
> Morswin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



OOPHM error in Firefox

2010-02-18 Thread shahid
My firefox has suddenly started throughing the following error when I
run it in Debug mode:

uncaught exception: [Exception... "Component returned failure code:
0x80004002 (NS_NOINTERFACE) [IOOPHM.connect]" nsresult: "0x80004002
(NS_NOINTERFACE)" location: "JS frame :: 
http://localhost/website/hosted.html?site
:: anonymous :: line 264" data: no]

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Fileupload question

2010-02-18 Thread Martin Trummer
as a first step, I'd recommend to check what is actually
sent to the server.
you could use e.g. firebug (a firefox plugin)

then you will at leas know if the problem is on your client
code or on your server code

On 17 Feb., 15:59, Ravi  wrote:
> Hi,
>
> I am new to GWT and facing problem with Fileupload.
>
> I have a form which has multiple rails.
>
> In one of the rail, there is a form which has Fileupload widget.
>
> The form has button, which on click is supposed to send the file
> details to the servlet.
>
> In the servlet code, multipart is false , even the the encoding is set
> to  -
> -- importFileUploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);
>
> But in the servlet the multipart is shown as false.
>
> Servlet code
>
>   public String Importfile(String fileName)
>    {
>           HttpServletResponse response = this.getThreadLocalResponse();
>           HttpServletRequest request = this.getThreadLocalRequest();
>           HttpSession session = request.getSession();
>          boolean isMultipart =
> ServletFileUpload.isMultipartContent(request);
>       long uploadFileSize = 0;
>
>         response.setContentType("text/plain");
>
>         if (isMultipart)
>         {
>                 // do the processing on file.
>         }
>         else
>         {
>                 // do something else
>         }
>           return null;
>   }
>
> Form code.
>
>                 //Import file upload Form
>
>                 importFileUploadForm = new FormPanel();
>
>                 importFileUploadForm.setAction(IMPORT_ACTION);
>  // null value
>                 
> importFileUploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);
>
>                 importFileUploadForm.setMethod(FormPanel.METHOD_POST);
>
>                 DOM.setElementAttribute(importFileUploadForm.getElement(), 
> "name",
> "importFileUploadForm");
>
>                 DOM.setElementAttribute(importFileUploadForm.getElement(), 
> "id",
> "importFileUploadForm");
>
>                 //Import file upload form submit and submit completed event 
> handlers
>
>                 importFileUploadForm.addFormHandler(new FormHandler()
>
>                 {
>
>                         public void onSubmit(FormSubmitEvent event)
>
>                         {
>
>                                 String filename = 
> importFileField.getFilename();
>
>                                 if (filename.trim().length() == 0)
>
>                                 {
>
>                                         Window.alert("Please select a file to 
> upload");
>
>                                         event.setCancelled(true);
>
>                                 }
>
>                                 else
>
>                                 {
>
>                                         Object objArr[] = {this,filename};
>                                         // get event manager
>                                         colMgr.DispatchEvent(impEvent);
>
>                                 }
>
>                     }
>
>                         @Override
>
>                         public void onSubmitComplete(FormSubmitCompleteEvent 
> arg0) {
>
>                                 // TODO Auto-generated method stub
>
>                                 //arg0.getSource().  
> .equals(obj)event.setCancelled(true);
>
>                         }
>
>                 });
>
>                 //File upload widget
>
>                 importFileField = new FileUpload();
>
>                 importFile.setStyleName("gwt-TextBox");
>
>                 importFileField.setName("importFile");
>
>                 DOM.setElementAttribute(importFileField.getElement(), "id",
> "importFile");
>
>                 final Button importClear = new Button("Clear");
>
>                 //submits the file import upload form
>
>                 importUpload.addClickHandler(new ClickHandler()
>
>                 {
>
>                         public void onClick(ClickEvent event)
>
>                         {
>
>                                 importFileUploadForm.submit();
>
>                         }
>
>             });
>
>                 //clears the file upload widget by replacing it with a new 
> copy
>
>                 importClear.addClickHandler(new ClickHandler()
>
>                 {
>
>                         public void onClick(ClickEvent event)
>
>                         {
>
>                                 //RootPanel rootPanel = 
> RootPanel.get("importFileUploadForm"); //
> get container div
>
>                                 
> DOM.removeChild(importFileUploadForm.getElement(),
> importFileField.getElement()); //remove input
>
>                                 importFileField = new FileUpload(); //create 
> replacement widget
>
>                                 importFileField.setStyleName("gwt-TextBox"); 
> //add style info
>
>                                 
> DOM.setElementAttribute(importFileField.getElement(), "id",
> "importFile"); //set id
>
>               

Re: Directory Selector

2010-02-18 Thread Martin Trummer
AFAIK it is not possible with HTML and js to do what you want (yet?)

anyway - there are some upload applets out there
some for free (e.g. http://jupload.sourceforge.net/index.html)
and some you have to pay for

another alternative would be to embedd some flash-object

On 17 Feb., 18:25, Stanley Wong  wrote:
> Hi, all,
>
> I realize other people may have asked this question. I just ask the
> question again and see where there would be a solution.
>
> Is there any way to open a directory dialog from a browser that
> enables a user to select a directory?
>
> Here is what I find:
> 1. A file upload dialog is available in GWT, however, the directory
> upload dialog is not present.
> 2. It is impossible to list files from a client directory, due to the
> violation of a same-site policy.
> 3. Use the applet approach, an applet containing an AWT file dialog
> can be started.  However, the AWT file dialog is just a FileUpload
> gui.
> 4. Use the applet approach, try to write an applet containing a
> JFileChooser (swing component), but failed. It sounds a JFileChooser
> is not compatible with an applet/japplet object.
>
> Do you have any ideas?
>
> Thank you,
>
> Stanley

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.