Re: Linking multiple GWT applciations..

2011-07-05 Thread J.Ganesan
If your ServletContainer allows websocket, your clients and servers
can communicate among them using websockets. Please see
http://code.google.com/p/gwt-ws/ . With websockets, there is no
difference between your other regular applications and GWT
application.
If you use Google App Engine, you may use Channel API for java though
this is not as powerful as websockets.

J.Ganesan
www.DataStoreGwt.com


On Jul 5, 11:30 pm, Gautam Kowshik  wrote:
> I am designing a portal application (GWT) that controls/hosts games,
> each being a separate GWT app. I'm trying to  figure an elegant way to
> integrate multiple gwt applications into one. Is it possible to
> maintain modularity between apps while having them talk to each other
> at both: client and server level?
>
> In a regular application i'd build jars and link those in my portal
> application. Is it possible to do so in GWT? If not, is there another
> way to achieve this? My portal needs to talk to the clients and the
> servers of the game apps.

-- 
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.



Re: GWT Internet Explorer ListBox issues (dropdown items are chopped)

2011-07-05 Thread Francisco Portillo
I currently have the same problem. I've made some google searches and
I've only found js fixes, e.g., with jQuery. But I'd rather try a fix
within the java GWT code than to manage a custom js for this.

I'll let you know if I make progress on this.

cheers

On Wed, Jun 29, 2011 at 10:38 AM, Mulder  wrote:
> I am not sure if this has been asked before.
> I have a GWT Dropdown listbox, which on a dropdown expands the dropdown list
> automatically to show long list items in FF and Chrome. IE however does not
> resize dynamically as a result the dropdown list shows chopped items.
> Any workarounds ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/H-RL4DXOXVwJ.
> 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-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.



Linking multiple GWT applciations..

2011-07-05 Thread Gautam Kowshik
I am designing a portal application (GWT) that controls/hosts games,
each being a separate GWT app. I'm trying to  figure an elegant way to
integrate multiple gwt applications into one. Is it possible to
maintain modularity between apps while having them talk to each other
at both: client and server level?

In a regular application i'd build jars and link those in my portal
application. Is it possible to do so in GWT? If not, is there another
way to achieve this? My portal needs to talk to the clients and the
servers of the game apps.

-- 
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.



CellTable updating individual/non-consecutive rows

2011-07-05 Thread Rike255
I can't figure out a good way to update a single row of data after
using setRowData() to populate a CellTable.

Specifically, I have an ArrayList of objects that represent rows that
need to be updated, but they are not consecutive.  Is there a way to
update one (or multiple non-consecutive) rows in a celltable without
refreshing the whole thing (or from an index to the end)?

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-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.



Re: Trying to get the simplest communication between the client and server.

2011-07-05 Thread Rike255
I'm new to GWT too so I'm not much help, but I went through this
tutorial and found it extremely useful:

http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html

It explains basically everything that you posted above.  Note that
there is no Util class in the Service interface though, that's
basically the only difference I could find between the code you posted
and this example.  I was able to get this example working properly in
my Eclipse environment (ran it exactly how you described too... GWT
compile + Run as Web App)

On Jul 5, 2:08 pm, Dale12  wrote:
> In addition to that, I can manually open the HTML file and when I
> click on the button, I get an "RPC failed" message, which is what I
> programmed it to do onFail().
>
> On Jul 5, 11:55 am, Jens  wrote:
>
>
>
>
>
>
>
> > I think your code looks fine.
>
> > Do you actually have a MyGWTModule.html file inside your war folder or any
> > html page that includes the generated .js files from GWT?
> > If not you have to create one (New -> HTML Page. The one with the GWT
> > icon).
> > You can also create it by hand. Just make sure you have
>
> > 
>
> > in the html page's  tag and if you ever want to have history support
> > you need
>
> >  > style="position:absolute;width:0;height:0;border:0">
>
> > inside the  tag.
>
> > -- J.

-- 
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.



Re: Standalone zip download of GWT Designer

2011-07-05 Thread Eric Clayberg - Instantiations
The problem is that you are looking at an old post about a prior
release.

The current release is v2.3.2 rather than v2.3.1.

On Jul 5, 1:44 am, Eckhard Rimkus 
wrote:
> Dear Eric
>
> when trying to download this zip-File, I receive only an error
> message. What is my problem?
>
> Best regards
>
> Eckhard
>
> On 16 Jun., 22:47, Eric Clayberg  wrote:
>
>
>
>
>
>
>
> > For Eclipse 3.6...
>
> >http://dl.google.com/eclipse/inst/d2gwt/latest/3.6/GWTDesigner_v2.3.1...
>
> > On Jun 14, 5:29 pm, beluga  wrote:
>
> > > Hi -
>
> > > I don't get through the corporate firewall with eclipse updater but I
> > > can transfer azipfile if I get hold of it. Does anyone know how to
> > > get hold of theGWTDesignerstandalonezip? Ideally the beta, since
> > > I'm struggling with the type not found bug in the currentGWTrelease.
>
> > > 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-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.



Re: Properties emulation

2011-07-05 Thread J.Ganesan
If your ServletContainer, allows writing to a file, you can serialize
java.Util.Properties client-wise. For transport purpose, you can use
HashMap.

J.Ganesan
www.DataStoreGwt.com

On Jul 6, 2:13 am, Ryan  wrote:
> Two questions for this group that may be the same question:
>
> 1. java.util.Properties isn't emulated from the JRE.  Is there a
> substitute data structure for passing properties around in GWT?
>
> 2. Is there a way to include external properties generally in a GWT
> application?  I'd like to have the client-side equivalent of a runtime
> properties file that I can change in a deployed WAR file without
> recompiling.
>
> I realize that I could use GWT Constants for this, but my purposes
> aren't really for i18n, and I still can't modify the properties
> without recompiling.  Any suggestions?
>
> Ryan

-- 
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.



Re: Entity version checks / optimistic locking

2011-07-05 Thread J.Ganesan
1. In your server, maintain a map of objectId/semaphore. A semaphore
enables locking to be done by a thread and unlocking by another
thread, both atomically.
2. "Edit" means acquiring lock. Send a message from client to server
for acquiring semaphore. If successful, allow editing.
3. Release semaphore on saving.

J.Ganesan
www.DataStoreGwt.com



On Jul 6, 3:26 am, Aldo Neto  wrote:
> I apologize for such stupid question, but how can I achieve that? I mean,
> how should I treat the entity on the server side to get that lock? I can
> have the "Edit/Lock" button and that button should work for only one user at
> a time, until that user has committed their work. In this case, how can I
> lock the object? And how do I unlock it?
>
> Again, sorry for the newbie question
>
> Thanks
>
>
>
>
>
>
>
> On Tue, Mar 15, 2011 at 10:41 AM, Thomas Broyer  wrote:
>
> > On Tuesday, March 15, 2011 12:37:14 PM UTC+1, Jens wrote:
>
> >> On Saturday, March 12, 2011 9:58:11 AM UTC+1, Thomas Broyer wrote:
>
> >>> It's even better than that ;-)
> >>> The user has to click a "lock" button to be able to edit the objects
> >>> (creates a working copy). The form then switches to read/write mode and 
> >>> the
> >>> "save" button appears. But the save button only saves changes to the 
> >>> working
> >>> copy; there's a distinct "unlock" button that overwrites the "public copy"
> >>> with the "working copy" (and another "free" button to "unlock" the "public
> >>> copy" and simply discards the "working copy").
> >>> A user can keep his working copy for days, or even weeks or months.
>
> >> Uhh..so if I work on my private copy for 2 weeks and then unlock it to
> >> update the public copy, a second user can destroy my work by unlocking his
> >> copy a day later and thus overwriting my 2 weeks of work? :) Having working
> >> copies is a nice idea but merging them back into one public copy seems
> >> tricky. But of course it depends on the application.
>
> > There's no need to merge, because when you do a working copy, you're
> > locking the public version. The idea of a working copy is that you work in
> > private, and the public version stays the same until you "publish" your
> > work.
>
> > --
> > 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-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.



Re: Properties emulation

2011-07-05 Thread Magno Machado
Put them on the host page and read with the Dictionary class

On Tue, Jul 5, 2011 at 6:54 PM, Jeff Larsen  wrote:

> Pull the properties from the server and make your changes with those?
>
> Properties are essentially key/value pairs, so nothing stopping you from
> having your own key/value store on the client that you can manipulate how
> you see fit.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/P6oMz-fhbTsJ.
>
> 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.
>



-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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.



Re: JPA & RequestFactory: Persistence of Foreign Keys

2011-07-05 Thread Alexander Orlov
On Jul 5, 8:33 pm, Jens  wrote:
> I think its not a RequestFactory problem but more a JPA problem. For some

I suppose so.

> reason EclipseLink things it has to insert the User object although it
> already exists and has an id.

Exactly.

> In your case I think you have to do something like:
>
> User attachedUser = entityManager.merge(booking.getUser());
> booking.setUser(attachedUser); //maybe thats not needed.
> entityManager.persist(booking).

I've added the following annotation: @OneToOne(fetch = FetchType.LAZY,
cascade = CascadeType.DETACH/MERGE) which reports the following error
now:
com.google.web.bindery.requestfactory.server.UnexpectedException: The
persisted entity with id 1 has a null version


>
> That way you tell the EntityManager that the user already exists.
>
> A second way would be to fetch the already existing user:
>
> User attachedUser = entityManager.find(User.class,
> booking.getUser().getId());
> booking.setUser(user); //maybe thats not needed
> entityManager.persist(booking);

Same as above.

-Alex

-- 
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.



Re: Strange behaviour of CellList. Any help would be appreciated

2011-07-05 Thread Ernesto Oltra
-.-' Forgot to specify cellList.setPageSize(...). Solved.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ftM2YRrffK0J.
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.



Re: Entity version checks / optimistic locking

2011-07-05 Thread Aldo Neto
I apologize for such stupid question, but how can I achieve that? I mean,
how should I treat the entity on the server side to get that lock? I can
have the "Edit/Lock" button and that button should work for only one user at
a time, until that user has committed their work. In this case, how can I
lock the object? And how do I unlock it?

Again, sorry for the newbie question

Thanks

On Tue, Mar 15, 2011 at 10:41 AM, Thomas Broyer  wrote:

>
> On Tuesday, March 15, 2011 12:37:14 PM UTC+1, Jens wrote:
>
>> On Saturday, March 12, 2011 9:58:11 AM UTC+1, Thomas Broyer wrote:
>>>
>>>
>>> It's even better than that ;-)
>>> The user has to click a "lock" button to be able to edit the objects
>>> (creates a working copy). The form then switches to read/write mode and the
>>> "save" button appears. But the save button only saves changes to the working
>>> copy; there's a distinct "unlock" button that overwrites the "public copy"
>>> with the "working copy" (and another "free" button to "unlock" the "public
>>> copy" and simply discards the "working copy").
>>> A user can keep his working copy for days, or even weeks or months.
>>>
>>
>> Uhh..so if I work on my private copy for 2 weeks and then unlock it to
>> update the public copy, a second user can destroy my work by unlocking his
>> copy a day later and thus overwriting my 2 weeks of work? :) Having working
>> copies is a nice idea but merging them back into one public copy seems
>> tricky. But of course it depends on the application.
>>
>
> There's no need to merge, because when you do a working copy, you're
> locking the public version. The idea of a working copy is that you work in
> private, and the public version stays the same until you "publish" your
> work.
>
> --
> 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-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.



Strange behaviour of CellList. Any help would be appreciated

2011-07-05 Thread Ernesto Oltra
Two CellLists I've implemented have an starnge behaviour: they don't load 
more than 25 results. Debugging my code, I found ListDataProvider says it 
has 40 results (or more ...) but still only showing 25. The results are 
loaded, added to the list, but never seen.

I load 4 results in each AJAX call, so it does 8 successful insertions, and 
the 9th fails. Tested with 10 results, 2 success, the 3rd failed.

Tested in hosted mode and with compiled code.

final RequestBuilder requestBuilder = new 
RequestBuilder(RequestBuilder.GET, URL_HERE);
JSONResponseHandler handler = new JSONResponseHandler() {
  @Override
  protected void onComplete(boolean success, JSONValue data) {
if(!success) return;

// Process JSON here to extract data

   List providerList = dataProvider.getList();
   for(int i = 0; i < list.size(); i++) {
  // CommentData is a plain object that only stores data 
  providerList.add(new CommentData(id, body, sent, author, 
authorName));
}
  }
};

Any help would be appreciated

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_Dy8f3_KpooJ.
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.



Re: Properties emulation

2011-07-05 Thread Jeff Larsen
Pull the properties from the server and make your changes with those?

Properties are essentially key/value pairs, so nothing stopping you from 
having your own key/value store on the client that you can manipulate how 
you see fit. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/P6oMz-fhbTsJ.
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.



Re: GPE Unable to connet to project Hosting

2011-07-05 Thread Jack
I added this issue and detail:
http://code.google.com/p/googleappengine/issues/detail?id=5293

Thanks,
Jack

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Y9NNkbWl0VgJ.
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.



Properties emulation

2011-07-05 Thread Ryan
Two questions for this group that may be the same question:

1. java.util.Properties isn't emulated from the JRE.  Is there a
substitute data structure for passing properties around in GWT?

2. Is there a way to include external properties generally in a GWT
application?  I'd like to have the client-side equivalent of a runtime
properties file that I can change in a deployed WAR file without
recompiling.

I realize that I could use GWT Constants for this, but my purposes
aren't really for i18n, and I still can't modify the properties
without recompiling.  Any suggestions?

Ryan

-- 
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.



Re: JQuery like animation

2011-07-05 Thread Christian Goudreau
Well it does. But you have to trigger the animation from the presenter. The
actual animation that take care of the GQuery stuff can be in the view or in
another class. If the animation in the view isn't triggered from the view
itself, but from the presenter, it matches the MVP pattern.

"Pattern are half-baked, meaning that you always have to finish them off in
the oven of your own project"

Cheers,


On Tue, Jul 5, 2011 at 3:01 PM, Guy Nirpaz  wrote:

> Thanks Christian,
>
> I am well familiar with GWT-Query, however, I feel it doesn't match well
> GWT (MVP) programming model and design.
>
>
> Guy
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/yNJ60daUk_sJ.
>
> 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.
>



-- 
Christian Goudreau
www.arcbees.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-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.



Re: Trying to get the simplest communication between the client and server.

2011-07-05 Thread Dale12
In addition to that, I can manually open the HTML file and when I
click on the button, I get an "RPC failed" message, which is what I
programmed it to do onFail().

On Jul 5, 11:55 am, Jens  wrote:
> I think your code looks fine.
>
> Do you actually have a MyGWTModule.html file inside your war folder or any
> html page that includes the generated .js files from GWT?
> If not you have to create one (New -> HTML Page. The one with the GWT
> icon).
> You can also create it by hand. Just make sure you have
>
> 
>
> in the html page's  tag and if you ever want to have history support
> you need
>
>  style="position:absolute;width:0;height:0;border:0">
>
> inside the  tag.
>
> -- J.

-- 
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.



Re: Trying to get the simplest communication between the client and server.

2011-07-05 Thread Dale12
Thanks for the response.  Yes, the HTML file and the CSS file are
there in the war fiolder.  It was created manually when I generated my
GWT module. Possibly the path is messed up somewhere?
I also tried to create a new HTML file as you suggested (not manually)
and when I clicked on finish, nothing happened.

Any other ideas?


On Jul 5, 11:55 am, Jens  wrote:
> I think your code looks fine.
>
> Do you actually have a MyGWTModule.html file inside your war folder or any
> html page that includes the generated .js files from GWT?
> If not you have to create one (New -> HTML Page. The one with the GWT
> icon).
> You can also create it by hand. Just make sure you have
>
> 
>
> in the html page's  tag and if you ever want to have history support
> you need
>
>  style="position:absolute;width:0;height:0;border:0">
>
> inside the  tag.
>
> -- J.

-- 
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.



Re: Removing ClickHandler from Button?

2011-07-05 Thread Milan Cvejic
Thanks for answer.

Cheers

On Jul 5, 8:55 am, Mauro Bertapelle 
wrote:
> use the HandlerRegistration returned from Button.addClickHandler
>
> On 5 Lug, 02:03, Milan Cvejic  wrote:
>
> > Yes, removeClickListener() is depricated, and that is why I am trying
> > to find solution on how to remove ClickHandler.
>
> > Just to explain my use case. I am same view with editor framework, so
> > I need different functionality when button is clicked.
> > Since button is initialized only once (in view that is constructed
> > only once) i need to handle event differently.
>
> > So now on start of activity i attach Listener and on stop I remove
> > Listener, and everything works as it should. If I don't remove
> > Listener, I am having
> > situation that event is triggered twice or more times.
>
> > I can change code to create new instance of View each time, but that
> > is more cpu intensive than adding and removing listeners.
>
> > Cheers.
>
> > On Jul 5, 1:14 am, Rob Coops  wrote:
>
> > > removeClickListner() is deprecated if I am not mistaken...
>
> > > Anyway the big question is why remove the clickHandler from your button in
> > > the first place a button that can not be clicked is nothing more then a
> > > label with a border...
> > > I would suggest disabling the button or simply have the clickHandler 
> > > return
> > > instead of doing anything... in both cases for the user nothing will 
> > > happen
> > > once they click the button.
>
> > > just my 2 cents.
>
> > > Regards,
>
> > > Rob
>
> > > On Tue, Jul 5, 2011 at 1:05 AM, Milan Cvejic  
> > > wrote:
> > > > Hi,
> > > > I am trying to find a way how to remove ClickHandler from Button,
> > > > there is no any method related to this. I see that we can remove
> > > > ClickListener with removeClickListener(), but there is no way to
> > > > remove ClickHandler.
>
> > > > I am using following code:
>
> > > > Button b = new Button("test");
> > > > b.addClickHandler(new ClickHandler() {
> > > >    @Override
> > > >    public void onClick(ClickEvent event) {
> > > >        Window.alert("test");
> > > >   }
> > > > });
>
> > > > Is there any way to remove ClickHandler?
>
> > > > 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-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-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.



Re: JQuery like animation

2011-07-05 Thread Guy Nirpaz
Thanks Christian,

I am well familiar with GWT-Query, however, I feel it doesn't match well GWT 
(MVP) programming model and design.

Guy

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/yNJ60daUk_sJ.
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.



Aw: JPA & RequestFactory: Persistence of Foreign Keys

2011-07-05 Thread Jens
I think its not a RequestFactory problem but more a JPA problem. For some 
reason EclipseLink things it has to insert the User object although it 
already exists and has an id. 

I recently had the same JPA issue (I am not using RequestFactory) and the 
problem was that the object EclipseLink wants to insert was a detached 
entity and thus not known to the current EntityManager. If you then call 
persist on the detached entity an INSERT will be done.

In your case I think you have to do something like: 

User attachedUser = entityManager.merge(booking.getUser());
booking.setUser(attachedUser); //maybe thats not needed.
entityManager.persist(booking).

That way you tell the EntityManager that the user already exists. 

A second way would be to fetch the already existing user: 

User attachedUser = entityManager.find(User.class, 
booking.getUser().getId());
booking.setUser(user); //maybe thats not needed
entityManager.persist(booking);

Hope that helps.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5R1o0KHBh9oJ.
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.



Re: Resolution Issue

2011-07-05 Thread Bharath Kumar
Hello Subrajyoti,
Thanks for your quick response.
I have just surfed on ResizeComposite ,i could find very intricate examples
which are hard to digest for a noob like me.
I have also seen that there is RequireSize interface that has to be
implemented whilst extending the above class.
Could you pls give some examples on this ?

Thanks,
Bharath

On Tue, Jul 5, 2011 at 11:41 PM, Subhrajyoti Moitra
wrote:

> I think using ResizeComposite widgets will help.
>
> U will have to implement onResize() method to determine the child-widget
> placement dynamically.
>
> Thanks,
> Subhro.
>
> On Tue, Jul 5, 2011 at 11:35 PM, Bharath Kumar <
> nbk.strut007powerinfin...@gmail.com> wrote:
>
>> Hello,
>> For quite a while our team has been facing Resolution Problem in the app
>> i.e.
>> When the resolution is changed the the screen widgets/panels are getting
>> assorted and not aligned properly.
>> Moreover the rendered data in the grid panel is showing only few columns
>> and rest being chopped off when seen in the low resolutions.
>> If the resolution is higher then there is unwanted space beside the grid
>> panel.
>> I had a walk through of myriad forums but i couldn't able to find a proper
>> fix.
>>
>> I will just give you a brief of one of the screen i am working on..
>>
>> There is a Button panel
>> grid panel and MultifieldCheckbox panel.
>> The grid panel and Multifieldcheckbox panel are wrapped by another simple
>> Panel called glue.
>>
>> Now Button panel and the glue are added to mainpanel(which is yet another
>> simple panel)
>>
>> The mainpanel is added to the rootpanel.
>>
>> I have tried to get the Window.getclientwidth and accordingly changed for
>> the different resolutions but i am looking for a better solution which
>> can make the job done easier
>>
>>
>>
>> Hope anyone could throw some light on this.
>>
>> Thanks.
>> Bharath
>>
>>  --
>> 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-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-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.



Re: Resolution Issue

2011-07-05 Thread Subhrajyoti Moitra
I think using ResizeComposite widgets will help.

U will have to implement onResize() method to determine the child-widget
placement dynamically.

Thanks,
Subhro.

On Tue, Jul 5, 2011 at 11:35 PM, Bharath Kumar <
nbk.strut007powerinfin...@gmail.com> wrote:

> Hello,
> For quite a while our team has been facing Resolution Problem in the app
> i.e.
> When the resolution is changed the the screen widgets/panels are getting
> assorted and not aligned properly.
> Moreover the rendered data in the grid panel is showing only few columns
> and rest being chopped off when seen in the low resolutions.
> If the resolution is higher then there is unwanted space beside the grid
> panel.
> I had a walk through of myriad forums but i couldn't able to find a proper
> fix.
>
> I will just give you a brief of one of the screen i am working on..
>
> There is a Button panel
> grid panel and MultifieldCheckbox panel.
> The grid panel and Multifieldcheckbox panel are wrapped by another simple
> Panel called glue.
>
> Now Button panel and the glue are added to mainpanel(which is yet another
> simple panel)
>
> The mainpanel is added to the rootpanel.
>
> I have tried to get the Window.getclientwidth and accordingly changed for
> the different resolutions but i am looking for a better solution which
> can make the job done easier
>
>
>
> Hope anyone could throw some light on this.
>
> Thanks.
> Bharath
>
>  --
> 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-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.



Resolution Issue

2011-07-05 Thread Bharath Kumar
Hello,
For quite a while our team has been facing Resolution Problem in the app
i.e.
When the resolution is changed the the screen widgets/panels are getting
assorted and not aligned properly.
Moreover the rendered data in the grid panel is showing only few columns and
rest being chopped off when seen in the low resolutions.
If the resolution is higher then there is unwanted space beside the grid
panel.
I had a walk through of myriad forums but i couldn't able to find a proper
fix.

I will just give you a brief of one of the screen i am working on..

There is a Button panel
grid panel and MultifieldCheckbox panel.
The grid panel and Multifieldcheckbox panel are wrapped by another simple
Panel called glue.

Now Button panel and the glue are added to mainpanel(which is yet another
simple panel)

The mainpanel is added to the rootpanel.

I have tried to get the Window.getclientwidth and accordingly changed for
the different resolutions but i am looking for a better solution which
can make the job done easier



Hope anyone could throw some light on this.

Thanks.
Bharath

-- 
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.



Re: visibleEvent

2011-07-05 Thread Jeff Larsen
Also you could have your textbox be an autohide partner of the popup panel, 
so that interacting with the TextBox won't hide the PopupPanel

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/PCnFxrpNAQYJ.
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.



Re: visibleEvent

2011-07-05 Thread Brian Reilly
A tooltip is something that you generally only have one of on the screen at
at time, so you could have a single DecoratedPopupPanel as a sibling of the
TabLayoutPanel. Then, create a tooltip event that you fire from a handler on
the TextBox to either show/position or hide the tooltip, but also hide the
tooltip when switching tabs.

-- Brian


On Tue, Jul 5, 2011 at 1:30 PM, gwtomni gwtomni  wrote:

> thank you for your quick response.
>
> I have a textBox with a DecoratedPopupPanel on its right like a toolTip.
> Both of them are in a TabLayoutPanel.
> problem is when I am switching between tabs, the toolTip is still visible.
>
> I want a way to know that the textBox is no longer visible to be able to
> hide the toolTip.
>
> thank you.
>
> --
> 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-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.



Re: visibleEvent

2011-07-05 Thread Jeff Larsen
Ok, that is a little different. Do you have autohide enabled? That should 
hide the popup if you click somewhere else. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Ztiz_AoROXEJ.
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.



Re: visibleEvent

2011-07-05 Thread Rob Coops
In that case you could fire a custom event every time you change the
visibility, as far as I know you should be able to figure out if widget X is
visible or not by simply asking it ( component.isVisible ).

The only thing is that you will have to ensure that you fire this custom
event everywhere in your code where you influence the visibility of a
component... To overcome that I would create a custom component and
overwrite the (setVisible method, to automatically trigger the event for
you) of course as mentioned by Jeff you do need to really make sure that you
are not messing it all up with inline styles, css or other methods of
messing about with the visibility of your component.

All in all it is not an easy one and it will mean you have to be 100% sure
that you never ever set visibility in any other way
then problematically which is depending on your project not that hard or
near impossible...

Regards,

Rob

On Tue, Jul 5, 2011 at 7:30 PM, gwtomni gwtomni  wrote:

> thank you for your quick response.
>
> I have a textBox with a DecoratedPopupPanel on its right like a toolTip.
> Both of them are in a TabLayoutPanel.
> problem is when I am switching between tabs, the toolTip is still visible.
>
> I want a way to know that the textBox is no longer visible to be able to
> hide the toolTip.
>
> thank you.
>
> --
> 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-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.



Re: visibleEvent

2011-07-05 Thread gwtomni gwtomni
thank you for your quick response.

I have a textBox with a DecoratedPopupPanel on its right like a toolTip.
Both of them are in a TabLayoutPanel.
problem is when I am switching between tabs, the toolTip is still visible.

I want a way to know that the textBox is no longer visible to be able to
hide the toolTip.

thank you.

-- 
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.



Re: visibleEvent

2011-07-05 Thread Jeff Larsen
Not as far as I know. It would be really difficult to implement one 
properly, because visibility can be changed in so many different ways. CSS, 
inline etc. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_9qaHHYQn-0J.
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.



Re: Pluggable modules

2011-07-05 Thread lemaiol
I do not know really well gwt-exporter, but having a look at your
question in SO, I have the feeling that you need somehow to pass "real
JS objects" as parameters. I would try inheriting from
JavaScritpObject:

public class Person extends JavaScriptObject {
protected Person() {
// GWT JSO compliance requirement
}

// Use this factory method to create the entities
public static Person create(String name, int age) {
   Person result = JSObject.create().cast(); // Maybe the name of
the class "JSObject" used here is wrong (not compiled code!)
   result.setName(name);
   result.setAge(age);
}

public native String getName() /*-{
return this.name; // the use of "this" is here required!!
}-*/;

public native void setName(String name) /*-{
this.name = name;
}-*/;
...
}

Hope it helps!
Berto

On Jul 4, 10:27 am, manstis  wrote:
> Hi Berto,
>
> I've stuck everything on github; git://github.com/manstis/gwt-plugins.git
>
> plugin - the "plugin"
> pluginserver - the "framework"
> plugincommon contains my common model
>
> There's only about 10 files in all; so it's not so ominous.
>
> I thought this would be easier than trying to explain directly - I'm
> not expecting you to fix anything, it's just so you can see what I
> have and give some suggestions.
>
> As it stands, I can pass the "common" model class to the "framework",
> but all attributes are 
> undefined:http://stackoverflow.com/questions/6535303/gwt-gwt-exporter-passing-o...
>
> If you decided to try and run it; plugin and pluginserver WARs can be
> deployed to Tomcat (I use 6.0) and select the URL for the server
> portion.
>
> Cheers,
>
> Mike
>
> On Jul 3, 10:14 am,lemaiol wrote:
>
>
>
>
>
>
>
> > Hi Mike,
>
> > How are the modules loaded and how are they invoked?
>
> > Berto
>
> > On Jun 22, 2:10 pm, manstis  wrote:> Great, lots 
> > to play with :)
>
> > > Before I look into writing my own JSNI bridge, I've still been trying
> > > to use gwt-exporter, but.
>
> > > I've three GWT applications:-
> > > (1) Plugin (inherits "Common")
> > > (2) Backend (inherits "Common")
> > > (3) Common
>
> > > "Plugin"
> > > 
> > > Contains:-
>
> > >   ...
> > >   echoButton.addClickHandler(new ClickHandler() {
>
> > >     public void onClick(ClickEvent event) {
> > >       //Debugging statements shown --> shows 'callback' is not null
> > >       PluginCallback callback = getPluginCallback();
> > >       Window.alert("Plugin.onModuleLoad.onClick.callback is " +
> > > (callback != null ? "not " : "") + "null");
>
> > >       echo(text.getText(), callback);
> > >     }
>
> > >   });
> > >   ...
>
> > >   private native void echo(String text, PluginCallback
> > > callback) /*-{
> > >     //Debugging statements shown --> shows 'callback' is not null
> > >     alert("Plugin.echo.callback is " + (callback != null ? "not " :
> > > "") + "null");
>
> > >     $wnd.com.anstis.pluginserver.CommonService.echo(text, callback);
> > >   }-*/;
>
> > > "Backend"
> > > 
> > > Contains:-
>
> > >   public void onModuleLoad() {
> > >     //Use gwt-exporter to generate the JSNI for CommonService.class
> > >     GWT.create(CommonService.class);
> > >   }
>
> > > CommonService is:-
>
> > >   @Export
> > >   public class CommonService implements Exportable {
>
> > >     private static final EchoServiceAsync echoService =
> > > GWT.create(EchoService.class);
>
> > >     public static void echo(String input, PluginCallback
> > > callback) {
> > >       //Debugging statements shown --> shows 'callback' is null
> > >       Window.alert("CommonService.echo.callback is " + (callback !=
> > > null ? "not " : "") + "null");
> > >       try {
>
> > >         //The guts of the method, invoke a GWT-RPC call --> RTE, as
> > > 'callback' is null
> > >         echoService.echo(input, callback);
>
> > >       } catch (Exception e) {
> > >         e.fillInStackTrace();
> > >         e.printStackTrace(System.out);
> > >         Window.alert(e.getMessage());
> > >       }
> > >     }
>
> > >   }
>
> > > "Common"
> > > 
> > > Simply defines PluginCallback, as follows:-
>
> > >   public class PluginCallback implements AsyncCallback {
> > >     public void onFailure(Throwable caught) {}
> > >     public void onSuccess(T result) {}
> > >   }
>
> > > My problem is that the PluginCallback instance is proven to be non-
> > > null in "Plugin" (both Java and JSNI methods), but is reported as null
> > > in "Backends" CommonService.
>
> > > Somewhere it is getting munged, but I only pass a Java Object from
> > > "Plugin" to JSNI (echo) to Java (CommonService) so don't understand
> > > why it's being nulled?!?!
>
> > > Any ideas (I'll post as a new question if you don't see anything
> > > wrong, so it gets seen by a new audience as opposed to those just
> > > following this thread).
>
> > > Thanks,
>
> > > Mike
>
> > > On Jun 21, 7:32 pm,lemaiol wrote:
>
> > > > Hi Mike,
>
> > > > > I am growing to believe I need to deploy each pl

visibleEvent

2011-07-05 Thread gwtomni gwtomni
hello everyone.

   is there any event related to the visibility of a widget on the screen ?

thank you

-- 
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.



JPA & RequestFactory: Persistence of Foreign Keys

2011-07-05 Thread Alexander Orlov
In my JPA Entity class I have:
@Entity
public class Booking {
@Id
@SequenceGenerator(name = "BOOKING", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
"BOOKING")
private Integer id;

@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@JoinColumn(nullable = false)
private User user;

// ...
}

In my GWT View I have:

MainRequestFactory.BookingRequest bookingRequest =
reqFactory.bookingRequest();
BookingProxy bookingProxy =
bookingRequest.create(BookingProxy.class);
UserProxy userProxy = bookingRequest.create(UserProxy.class);

userProxy.setId(12);

bookingProxy.setUser(userProxy);

Request persistRequest =
bookingRequest.persist().using(bookingProxy);
persistRequest.fire(new Receiver() {
@Override
public void onSuccess(Void response) {
GWT.log("persisted");
}
});

/

Users and Bookings persistence without the User Constraint works fine.
But with the above code I want/have to assign the user with the ID
"12" to a newly created booking. But I cannot assign a new booking to
an already existing user ID 12. I get the following error:

[EL Warning]: 2011-07-05 18:48:45.464--UnitOfWork(267787945)--
Exception [EclipseLink-4002] (Eclipse Persistence Services -
2.3.0.v20110604-r9504):
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.firebirdsql.jdbc.FBSQLException: GDS
Exception. 335544665. violation of PRIMARY or UNIQUE KEY constraint
"INTEG_388" on table "USERS2"

It's because an user with the ID "12" already exists and JPA wants to
create a new user with the same ID instead of just creating a new
booking with the user ID "12" as its foreign key.

How can I tell RequestFactory NOT to create a new user but instead
just to assign the user ID of an already existing user to a new
booking entry?

-- 
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.



Re: Development Mode View in Eclipse

2011-07-05 Thread objectuser
Bump for coming out of a holiday weekend.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/R8B8bjxuKikJ.
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.



gwt maven plugin - Google's or Codehause's?

2011-07-05 Thread Marko Vuksanovic
Which gwt-maven-plugin version do you suggest to use? I have seen that 
Expenses sample in 2.1.0 uses 1.3.2.google while that same sample uses 2.2.0 
in trunk... What is the reason for 1.3.2.google not to be used in trunk as 
well?

Marko

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NVoQAwGH0bsJ.
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.



Re: Help : Memory Leak Problem

2011-07-05 Thread Marko Vuksanovic
Do you have this problem in development or production mode?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XPZ5kXXSu8IJ.
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.



Aw: Trying to get the simplest communication between the client and server.

2011-07-05 Thread Jens
I think your code looks fine.

Do you actually have a MyGWTModule.html file inside your war folder or any 
html page that includes the generated .js files from GWT? 
If not you have to create one (New -> HTML Page. The one with the GWT 
icon). 
You can also create it by hand. Just make sure you have



in the html page's  tag and if you ever want to have history support 
you need



inside the  tag.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/KifRs7lnbNAJ.
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.



Re: GPE Unable to connet to project Hosting

2011-07-05 Thread Jack
Did you happen to find the resolution to this issue?

Thanks,
Jack

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/EuW8v85C7JIJ.
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.



Trying to get the simplest communication between the client and server.

2011-07-05 Thread Dale12
I'm new to GWT and trying to get the simplest project under my belt.
I've got a project that does nothing but send a string from the client
to the server.  The server adds a string to that string and returns
it.  I've been spinning my wheels on this for days and don't know
where to go from here or what to even ask at this point.  I've read
numerous tutorials and sample projects on the subject and it all makes
sense.

My project compiles fine.  Then when I try to run "web application" i
get the following message in the browser (Chrome): "
"
HTTP ERROR 404

Problem accessing /MyGWTModule.html. Reason:

NOT_FOUND
"
I also get the following warning in the eclipse console.

[WARN] No file found for: /MyGWTModule.html
[WARN] No file found for: /favicon.ico

I compile and then "run web application".  Am I missing a step?

If I zipped the project would someone be willing to take a quick look
at it (via email).  Or let me know if there's a better way of sharing
it.  Meanwhile, I'll post the project files in this post in hopes that
it will be enough for someone to help.

 Also, could someone fill me in on what the Util class is for in the
MyRemoteService interface is for?

 Thanks, the help is much appreciated.

**Entry point file
MyGWTModule**

package com.mycompany.project.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.core.client.GWT;

/**
 * Entry point classes define onModuleLoad().
 */
public class MyGWTModule implements EntryPoint {

//MyRemoteServiceAsync myRSAsync =
MyRemoteServiceAsync.Util.getInstance();
MyRemoteServiceAsync svc = GWT.create(MyRemoteService.class);

AsyncCallback callback = new AsyncCallback() {
public void onSuccess(String result) {
Window.alert(result);
}
public void onFailure(Throwable caught) {
Window.alert("RPC Failed.");
}
  };

private Button clickMeButton;
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();

clickMeButton = new Button();
rootPanel.add(clickMeButton);
clickMeButton.setText("Click me!");
clickMeButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
Window.alert("Hello, GWT World!");
String s = "ass";
svc.printSomething(s, callback);
Window.alert(s);

}
});
}
}
**End Entry point
file**

*MyRemoteService
Interface***

package com.mycompany.project.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("MyRemoteService")
public interface MyRemoteService extends RemoteService {
/**
 * Utility class for simplifying access to the instance of async
service.
 */
public String printSomething(String s);

public static class Util {
private static MyRemoteServiceAsync instance;
public static MyRemoteServiceAsync getInstance(){
if (instance == null) {
instance = GWT.create(MyRemoteService.class);
}
return instance;
}
}
}
*End MyRemoteService
Interface***

*MyRemoteServiceAsync
Interface***
package com.mycompany.project.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface MyRemoteServiceAsync {

public void printSomething(String s, AsyncCallback callback);

*End MyRemoteServiceAsync
Interface***

*MyRemoteServiceImpl
Interface***
package com.mycompany.project.server;

import com.mycompany.project.client.MyRemoteService;
import com.google.g

Re: Help : Memory Leak Problem

2011-07-05 Thread Alberto Rugnone
Thank you Rob,
Maybe you are right. I will try to implement this destroy method and I
will get the results asap. Anyway while Presenter seems disappears (I
am talking about profiler on Chrome, then javascript objects), parent
classes don't and I expected or both Presenter and Parents stay life
or neither of them.

It is very strange, isn't it? Any clarification about that will be
very appreciated. Thanks


Best Regards

Alberto


On Jul 4, 6:16 pm, Rob Coops  wrote:
> On Mon, Jul 4, 2011 at 6:00 PM, Alberto Rugnone
> wrote:
>
>
>
>
>
>
>
>
>
> > Hello everybody,
> > In my office we are experiencing a very bad problem of memory leak. We
> > are developing an application with GWT based on MVP architecture.
> > Each widget is a MVP and each MVP is based on a own class named
> > DefaultWidgetPresenter.  The applicaion has to create periodically new
> > Presenters (subclass of the first) and deletes periodically olders.
> > Anyway application memory grows up. Profiling the application with
> > developer tools provided by Chrome or Safari we registered that
> > Presenter keeps their number increasing slowly and
> > DefaultWidgetPresenter still growing up rapidly, and we don't
> > understand why? We checked if we deleted correctly the presenter and
> > sincerely I can't say "yes" because our probably no deep understanding
> > of GWT technology.
> > This is the application procedure in a nutshell
> > 1) Application create a Presenter dynamically
> > 2) Then it put its displays in a panel
> > 3) Then after a certain time it creates a new Presenter
> > 4) It clears the panel then add the new display.
> > ... and so on
>
> > I expected old presenters are garbage collected in some way. In
> > addition I don't understand why we have difference between number of
> > Presenters instances  and parents classes instance. I took
> > measurements also from chrome's task manager but I can't understand
> > the relation between profiling and that. In fact when I use profiling
> > the memory grows in  a strange way probably because profiling
> > instrument the memory in some way.
>
> > There is some one that can help us and explain those behaviours? I am
> > wondering also if a key to understand the problem could be understand
> > how GWT implements inheritage and garbage collecting? ?
>
> > Thank you in advance for any help, this problem is very important.
>
> > Regards
> > Alberto
>
> > --
> > 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.
>
> > Hi Alberto,
>
> Being an absolute novice in Java development but having spend many years
> supporting Java based applications and working with many other programming
> languages I would say there is a relatively simple reason for this behavior.
>
> Usually the garbage collector will kill what ever is considered old enough
> (there are various stages in the objects life cycle but who cares right
> unused objects will die in the end). What you are doing to kill of the
> object in your code is not working as you expect it to. As long as there is
> a single reference to the object the garbage collector will see this as a
> object that's in use and thus will not remove it.
>
> So what I understand form your post you are simply deleting the presenter
> from the panel. This works well for static things like a button or an image
> but as soon as you are talking a widget that is displaying data the data
> that you are displaying will still be updated in that widget as all you did
> is remove the widget from the display part of your program the code that is
> updating the widget will happily continue to work. I would say you will need
> to build a destroy method for your presenter that will remove all links to
> the data to be displayed. If you call this after you delete the presenter
> you should see the garbage collector clean it up nicely.
>
> Now as I said before I am a complete novice in Java/GWT so I cannot make any
> promises about the sanity of my comments but from what I know from other
> languages and from supporting Java based systems for many years; the usual
> reason a garbage collector misses an object is because the developer forgot
> to remove all references to that object. ;-)
>
> Regards,
>
> Rob

-- 
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.



Re: New Google theme coming to GWT?

2011-07-05 Thread Alexander Orlov
I don't think that Google is interested in people mimicing their
corporate design.

Also Gmail is build with Google Closure — not GWT.

-Alex

On Jul 5, 2:58 pm, gadev  wrote:
> Is the new Google theme, like the one for Gmail coming to GWT?
>
> -George

-- 
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.



果占先 wants to chat

2011-07-05 Thread 果占先
---

果占先 wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-229bc3b27f-c6acd9dd0d-ydqV2-ImXg5iNQa5oL3cWq2tpVg
You'll need to click this link to be able to chat with 果占先.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with 果占先, visit:
http://mail.google.com/mail/a-229bc3b27f-c6acd9dd0d-ydqV2-ImXg5iNQa5oL3cWq2tpVg

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 
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.



Trevor Skaife wants to chat

2011-07-05 Thread Trevor Skaife
---

Trevor Skaife wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-cbc2bdd5a0-c558f7f2b6-8XWt_s1RIC-DZbWEJy4Ja0-A0Pc
You'll need to click this link to be able to chat with Trevor Skaife.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Trevor Skaife, visit:
http://mail.google.com/mail/a-cbc2bdd5a0-c558f7f2b6-8XWt_s1RIC-DZbWEJy4Ja0-A0Pc

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 
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.



Authentication in get

2011-07-05 Thread Riyaz Ahmed
Hi,
I want to introduce an authentication utility in my get application,currently 
it has only client side code , so far authentication should I include server 
side code, to startwith. Need some guidance on this , please provide your 
inputs 
Thanks 
Riyaz 

-- 
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.



New Google theme coming to GWT?

2011-07-05 Thread gadev
Is the new Google theme, like the one for Gmail coming to GWT?

-George

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/oQLYbQf0YgIJ.
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.



Re: a way to make a service call "protocol agnostic" via defered binding?

2011-07-05 Thread Thomas Broyer


On Tuesday, July 5, 2011 1:46:50 PM UTC+2, Elhanan wrote:
>
> actually i allready took a look at the dev guide, that's where i got the 
> idea from
>
> i wish i had some example on how to use the RPC class in this way, i 
> understand i still gonna need to create a servlet to extend a remote servlet 
> only this time it would without any interfaces or async interfaces. 
>
> i don't see any reason why i should decide at runtime which protocol to use 
> , mainly i don't want to couple a the application programmer to one specific 
> api. which requests different implementations. 
>

You can very well use the GWT-RPC way and provide other implementations 
using  or  (with your own generator), or if 
you're using GIN, with a 
bind(MyServiceAsync.class).to(MyServiceAsyncImplJsonRpc.class).
I did that in my earlier project: everyone coded using the GWT-RPC pattern, 
but we didn't ever used GWT-RPC, all Async interfaces were coded by hand, 
doing "REST-like" calls to our server using RequestBuilder. The hard part, 
of course, is serialization, but here piriti or similar projects can help 
(we did it all by hand, and our "domain objects" were actually 
JavaScriptObject so we could simply use JsonUtils for the deserialization 
part; for serialization, we only had "simple" objects so we did it by hand, 
on a case-by-case basis).
You could do the same using RequestFactory interfaces, though it's probably 
a bit more complex (you can overcome this by just adding a few constraints 
though, such as "no more than one method invocation per RequestContext", 
FWIW that's how the current @JsonRpc "facet" of RF –introduced in 
2.3– works, but it's client-side only: it allows you to easily consume 
existing JsonRpc services from your client code, not to build them on the 
server-side)

I mean: they're just interfaces, most of which *you* do write, so you're 
free to implement them the way you want (including using the "default" GWT 
generator).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BwvoddDt-vwJ.
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.



Re: a way to make a service call "protocol agnostic" via defered binding?

2011-07-05 Thread Elhanan Maayan
actually i allready took a look at the dev guide, that's where i got the
idea from

i wish i had some example on how to use the RPC class in this way, i
understand i still gonna need to create a servlet to extend a remote servlet
only this time it would without any interfaces or async interfaces.

i don't see any reason why i should decide at runtime which protocol to use
, mainly i don't want to couple a the application programmer to one specific
api. which requests different implementations.

MY question is, is there framework for this?

can MVP4G help me in this?

On Tue, Jul 5, 2011 at 2:04 PM, Jens  wrote:

> Sure you can. But the question is: Can you decide which implementation to
> use at compile time?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/5egQ3zmgknkJ.
>
> 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-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.



Aw: a way to make a service call "protocol agnostic" via defered binding?

2011-07-05 Thread Jens
Sure you can. But the question is: Can you decide which implementation to 
use at compile time?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5egQ3zmgknkJ.
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.



Re: a way to make a service call "protocol agnostic" via defered binding?

2011-07-05 Thread Magno Machado
Yes, look here for an exemple:
http://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.html#replacement


On Tue, Jul 5, 2011 at 7:37 AM, Elhanan  wrote:

> is there a way for to define an interface and 2 implementations  of it
> (one uses RPC, the other JSON) to call servlets or services on the
> server? and using gwt defered binting replace with decide which one to
> use?
>
> --
> 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.
>
>


-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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.



a way to make a service call "protocol agnostic" via defered binding?

2011-07-05 Thread Elhanan
is there a way for to define an interface and 2 implementations  of it
(one uses RPC, the other JSON) to call servlets or services on the
server? and using gwt defered binting replace with decide which one to
use?

-- 
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.



Re: GWT 2.4 - Mobile Web App

2011-07-05 Thread gadev
One of GWT 2.4 sample apps is MobileWebApp, you maybe able to find what you 
need there.

-George

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/k5WqXiL2pNQJ.
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.



Re: RequestFactoryEditorDriver example?

2011-07-05 Thread David Sanders
Actually nevermind,

I was binding the driver to an interface of my view but didn't add the 
necessary methods to expose the editors.  I was pulling my hair out because 
the concrete class exposed the necessary field editors and I couldn't 
understand why it wasn't working.

Here's where it would be useful if the compiler warned you if you bound to a 
view that didn't have any sub editors.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/sG-d9FyDPQUJ.
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.



GWT 2.4 - Mobile Web App

2011-07-05 Thread Joe Chahoud
Hi,

I am wondering if there are any wikis, tutorials or samples on how to 
implement touch events handlers

I am aware that the events are already supported like "*TouchMoveEvent*", 
however, is there any article 
that describes how to get the direction or the instant position of the 
widget while moving or it's just an event that is fired and I should 
calculate everything ?

Thanks, Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/qTBWLjnK4kIJ.
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.



Re: Resizing parent element when child change size

2011-07-05 Thread redjhawk
Maybe you can implement a callback. Register simple panel in flow
panel and call the method when flow panel receives a resize event.


On Jul 5, 2:15 am, Milan Cvejic  wrote:
> Hi Everyone,
> can anyone give me a hint how can I implement following situation:
>
> I have SimplePanel with child FlowPanel. What I want to do is to
> resize SimplePanel in order to fit
> FlowPanel when I add new widgets to the FlowPanel.
>
> Is best way to fire some event when i add new widget to FlowPanel and
> than catch that event in SimplePanel
> implementation?
>
> Or is there any native support for this?
>
> Thank you,
> 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-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.