Re: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-25 Thread tanteanni
for example a showUserPlace and a EditUserPlace. Or in general there are 
often more than one usecase per model. And if i want a distinct url per 
use case i need different places. This cases could probably solved by let 
one userActivity manage two presenters (edit and show user). But then i 
have the same issue- how to inject the synchronized model from activity 
in presenter.
But at the moment the problem is not that two activities. Now i have a very 
complicated logic on the model so i decided to put this logic out of 
activity/presenter (ui handling logic). here is the same problem how to let 
the activity interact with a model. (i linked the concrete problem above - 
for short: if used events i have the problem to register for an event and 
trigger an event(asking the model) all in start method seem to fail)

On Tuesday, 24 April 2012 20:26:41 UTC+2, Jens wrote:

 Do you have a concrete example? So far I never stumbled upon a case where 
 I was thinking hmm thats the same as in the other activity.
 In general two activities should do two different things, so if I have for 
 example an userId inside my place then the first activity would maybe fetch 
 the User model class to display general user information (not needed 
 relations would be null) and the second activity would fetch something 
 different based on the userId.

 -- 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/-/oCHDPpwZu2gJ.
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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread tanteanni
i think this is not the problem. first i register for event then i fetch 
the data that triggers the event. here is the code of start method:

@Override
public final void start(final AcceptsOneWidget panel, final 
com.google.gwt.event.shared.EventBus eventBus) {
this.eb = new ResettableEventBus(eventBus);
view.setPresenter(this);
this.eb.addHandler(DynamicTableHashResolvedEvent.TYPE, 
this);//handler registration
stateResolver.resolveState(((DynamicTablePlace) 
pc.getWhere()).getTablehash(), eb);//triggers event
panel.setWidget(view);
}

the event triggered in start method will be received when next event is 
triggered - so after the start method i am one event too late.


On Tuesday, 24 April 2012 19:19:28 UTC+2, Chris Price wrote:

 Does your data fetch include the event bus in some way? If so you may be 
 running into the problem that handler changes (adds/removes) are only 
 applied after the current event has completed. In this case that event 
 would be the place change eventually calling the activity start.

 Sorry for the lack of references, im not at a pc
 On 24 Apr 2012 14:49, tanteanni wrote:

 i have an activity that needs another class to resolve the state (ids to 
 real objects) brought by current place. this class' getData(StateObject) 
 is called within start-method right after registering for the class' 
 gotData-event. But the activitie's onGotData-data method isn't called the 
 first time. If the activity calls getData after the start method all works 
 fine.
 i have the feeling that this can't work but how to get it working? The 
 data class need an object provided by a special kind of place (the same 
 place as the activity starts on).

 -- 
 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/-/6MNHc8yNbm0J.
 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BLVNKJReNVAJ.
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: Firefox 12 release

2012-04-25 Thread Olivier Scherler
Why don’t people either:

– Turn off auto-update in Firefox* if they use it to develop in GWT? I
think it’s been proven that the only major thing these releases have
is their version number increment, so why the rush to update?

– Use Chrome to develop in GWT? I never had a single problem with the
GWT plugin since I started development.

* I _think_ they finally managed in version 11 to make a mechanism
that actually doesn’t still update Firefox behind your back at the
first opportunity if you explicitly disabled auto-update, assuming you
properly sacrificed a weighted companion cube using an adequate
garbage incinerator and the correct ritual.

Olivier

-- 
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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread Chris Price
Ah yes, the code you pasted exactly fits the problem I described. The
activity start method is called by the ActivityManager from within the
 PlaceChangeEvent.Handler [1]. The SimpleEventBus, uses deferred
methods to only apply changes to the handler lists after the current
round of events have fired [2]. i.e. if you are currently in a
handler, add a handler and then immediately fire that event, your
handler won't be called.

[1] 
http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java?r=8009#85
[2] 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/event/shared/SimpleEventBus.java#156

On Wed, Apr 25, 2012 at 7:11 AM, tanteanni tantea...@hotmail.com wrote:
 i think this is not the problem. first i register for event then i fetch the
 data that triggers the event. here is the code of start method:

     @Override
     public final void start(final AcceptsOneWidget panel, final
 com.google.gwt.event.shared.EventBus eventBus) {
         this.eb = new ResettableEventBus(eventBus);
         view.setPresenter(this);
         this.eb.addHandler(DynamicTableHashResolvedEvent.TYPE,
 this);//handler registration
         stateResolver.resolveState(((DynamicTablePlace)
 pc.getWhere()).getTablehash(), eb);//triggers event
         panel.setWidget(view);
     }

 the event triggered in start method will be received when next event is
 triggered - so after the start method i am one event too late.


 On Tuesday, 24 April 2012 19:19:28 UTC+2, Chris Price wrote:

 Does your data fetch include the event bus in some way? If so you may be
 running into the problem that handler changes (adds/removes) are only
 applied after the current event has completed. In this case that event would
 be the place change eventually calling the activity start.

 Sorry for the lack of references, im not at a pc

 On 24 Apr 2012 14:49, tanteanni wrote:

 i have an activity that needs another class to resolve the state (ids to
 real objects) brought by current place. this class' getData(StateObject)
 is called within start-method right after registering for the class'
 gotData-event. But the activitie's onGotData-data method isn't called the
 first time. If the activity calls getData after the start method all works
 fine.
 i have the feeling that this can't work but how to get it working? The
 data class need an object provided by a special kind of place (the same
 place as the activity starts on).

 --
 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/-/6MNHc8yNbm0J.
 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 view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/BLVNKJReNVAJ.

 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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread tanteanni

Thanks!
I understand (some time ago i had a similar problem but in my main-Class 
- it didn't react on first place change event)
but the solution is ugly:
...Scheduler.get().scheduleFinally(new ScheduledCommand()...

is there another way to get this working? i need the dataModel in start to 
restore the state given by place.

On Wednesday, 25 April 2012 08:21:58 UTC+2, Chris Price wrote:

 Ah yes, the code you pasted exactly fits the problem I described. The
 activity start method is called by the ActivityManager from within the
  PlaceChangeEvent.Handler [1]. The SimpleEventBus, uses deferred
 methods to only apply changes to the handler lists after the current
 round of events have fired [2]. i.e. if you are currently in a
 handler, add a handler and then immediately fire that event, your
 handler won't be called.

 [1] 
 http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java?r=8009#85
 [2] 
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/event/shared/SimpleEventBus.java#156

 On Wed, Apr 25, 2012 at 7:11 AM, tanteanni wrote:
  i think this is not the problem. first i register for event then i fetch 
 the
  data that triggers the event. here is the code of start method:
 
  @Override
  public final void start(final AcceptsOneWidget panel, final
  com.google.gwt.event.shared.EventBus eventBus) {
  this.eb = new ResettableEventBus(eventBus);
  view.setPresenter(this);
  this.eb.addHandler(DynamicTableHashResolvedEvent.TYPE,
  this);//handler registration
  stateResolver.resolveState(((DynamicTablePlace)
  pc.getWhere()).getTablehash(), eb);//triggers event
  panel.setWidget(view);
  }
 
  the event triggered in start method will be received when next event is
  triggered - so after the start method i am one event too late.
 
 
  On Tuesday, 24 April 2012 19:19:28 UTC+2, Chris Price wrote:
 
  Does your data fetch include the event bus in some way? If so you may be
  running into the problem that handler changes (adds/removes) are only
  applied after the current event has completed. In this case that event 
 would
  be the place change eventually calling the activity start.
 
  Sorry for the lack of references, im not at a pc
 
  On 24 Apr 2012 14:49, tanteanni wrote:
 
  i have an activity that needs another class to resolve the state (ids 
 to
  real objects) brought by current place. this class' 
 getData(StateObject)
  is called within start-method right after registering for the class'
  gotData-event. But the activitie's onGotData-data method isn't called 
 the
  first time. If the activity calls getData after the start method all 
 works
  fine.
  i have the feeling that this can't work but how to get it working? The
  data class need an object provided by a special kind of place (the same
  place as the activity starts on).
 
  --
  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/-/6MNHc8yNbm0J.
  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 view this discussion on the web visit
  https://groups.google.com/d/msg/google-web-toolkit/-/BLVNKJReNVAJ.
 
  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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ttj2N8rpsIIJ.
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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread Chris Price
I think your only two choices are to either avoid the event bus for
the async data call, or as you suggest with the Scheduler.

On Wed, Apr 25, 2012 at 7:54 AM, tanteanni tantea...@hotmail.com wrote:

 Thanks!
 I understand (some time ago i had a similar problem but in my main-Class -
 it didn't react on first place change event)
 but the solution is ugly:
 ...Scheduler.get().scheduleFinally(new ScheduledCommand()...

 is there another way to get this working? i need the dataModel in start to
 restore the state given by place.


 On Wednesday, 25 April 2012 08:21:58 UTC+2, Chris Price wrote:

 Ah yes, the code you pasted exactly fits the problem I described. The
 activity start method is called by the ActivityManager from within the
  PlaceChangeEvent.Handler [1]. The SimpleEventBus, uses deferred
 methods to only apply changes to the handler lists after the current
 round of events have fired [2]. i.e. if you are currently in a
 handler, add a handler and then immediately fire that event, your
 handler won't be called.

 [1]
 http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java?r=8009#85
 [2]
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/event/shared/SimpleEventBus.java#156

 On Wed, Apr 25, 2012 at 7:11 AM, tanteanni wrote:


  i think this is not the problem. first i register for event then i fetch
  the
  data that triggers the event. here is the code of start method:
 
      @Override
      public final void start(final AcceptsOneWidget panel, final
  com.google.gwt.event.shared.EventBus eventBus) {
          this.eb = new ResettableEventBus(eventBus);
          view.setPresenter(this);
          this.eb.addHandler(DynamicTableHashResolvedEvent.TYPE,
  this);//handler registration
          stateResolver.resolveState(((DynamicTablePlace)
  pc.getWhere()).getTablehash(), eb);//triggers event
          panel.setWidget(view);
      }
 
  the event triggered in start method will be received when next event is
  triggered - so after the start method i am one event too late.
 
 
  On Tuesday, 24 April 2012 19:19:28 UTC+2, Chris Price wrote:
 
  Does your data fetch include the event bus in some way? If so you may
  be
  running into the problem that handler changes (adds/removes) are only
  applied after the current event has completed. In this case that event
  would
  be the place change eventually calling the activity start.
 
  Sorry for the lack of references, im not at a pc
 
  On 24 Apr 2012 14:49, tanteanni wrote:
 
  i have an activity that needs another class to resolve the state (ids
  to
  real objects) brought by current place. this class'
  getData(StateObject)
  is called within start-method right after registering for the class'
  gotData-event. But the activitie's onGotData-data method isn't called
  the
  first time. If the activity calls getData after the start method all
  works
  fine.
  i have the feeling that this can't work but how to get it working? The
  data class need an object provided by a special kind of place (the
  same
  place as the activity starts on).
 
  --
  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/-/6MNHc8yNbm0J.
  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 view this discussion on the web visit
  https://groups.google.com/d/msg/google-web-toolkit/-/BLVNKJReNVAJ.
 
  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 view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/ttj2N8rpsIIJ.

 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 

Re: Activity how to react on event that is triggered in start-method

2012-04-25 Thread tanteanni
Ok so either i use Scheduler and loose test ability or i refactor and use a 
delegate/handler as used in async-services, right? (no answer means yes :-))

On Wednesday, 25 April 2012 09:11:22 UTC+2, Chris Price wrote:

 I think your only two choices are to either avoid the event bus for 
 the async data call, or as you suggest with the Scheduler. 

 On Wed, Apr 25, 2012 at 7:54 AM, tanteanni  wrote: 
  
  Thanks! 
  I understand (some time ago i had a similar problem but in my 
 main-Class - 
  it didn't react on first place change event) 
  but the solution is ugly: 
  ...Scheduler.get().scheduleFinally(new ScheduledCommand()... 
  
  is there another way to get this working? i need the dataModel in start 
 to 
  restore the state given by place. 
  
  
  On Wednesday, 25 April 2012 08:21:58 UTC+2, Chris Price wrote: 
  
  Ah yes, the code you pasted exactly fits the problem I described. The 
  activity start method is called by the ActivityManager from within the 
   PlaceChangeEvent.Handler [1]. The SimpleEventBus, uses deferred 
  methods to only apply changes to the handler lists after the current 
  round of events have fired [2]. i.e. if you are currently in a 
  handler, add a handler and then immediately fire that event, your 
  handler won't be called. 
  
  [1] 
  
 http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java?r=8009#85
  
  [2] 
  
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/event/shared/SimpleEventBus.java#156
  
  
  On Wed, Apr 25, 2012 at 7:11 AM, tanteanni wrote: 
  
  
   i think this is not the problem. first i register for event then i 
 fetch 
   the 
   data that triggers the event. here is the code of start method: 
   
   @Override 
   public final void start(final AcceptsOneWidget panel, final 
   com.google.gwt.event.shared.EventBus eventBus) { 
   this.eb = new ResettableEventBus(eventBus); 
   view.setPresenter(this); 
   this.eb.addHandler(DynamicTableHashResolvedEvent.TYPE, 
   this);//handler registration 
   stateResolver.resolveState(((DynamicTablePlace) 
   pc.getWhere()).getTablehash(), eb);//triggers event 
   panel.setWidget(view); 
   } 
   
   the event triggered in start method will be received when next event 
 is 
   triggered - so after the start method i am one event too late. 
   
   
   On Tuesday, 24 April 2012 19:19:28 UTC+2, Chris Price wrote: 
   
   Does your data fetch include the event bus in some way? If so you 
 may 
   be 
   running into the problem that handler changes (adds/removes) are 
 only 
   applied after the current event has completed. In this case that 
 event 
   would 
   be the place change eventually calling the activity start. 
   
   Sorry for the lack of references, im not at a pc 
   
   On 24 Apr 2012 14:49, tanteanni wrote: 
   
   i have an activity that needs another class to resolve the state 
 (ids 
   to 
   real objects) brought by current place. this class' 
   getData(StateObject) 
   is called within start-method right after registering for the 
 class' 
   gotData-event. But the activitie's onGotData-data method isn't 
 called 
   the 
   first time. If the activity calls getData after the start method 
 all 
   works 
   fine. 
   i have the feeling that this can't work but how to get it working? 
 The 
   data class need an object provided by a special kind of place (the 
   same 
   place as the activity starts on). 
   
   -- 
   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/-/6MNHc8yNbm0J. 
   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 view this discussion on the web visit 
   https://groups.google.com/d/msg/google-web-toolkit/-/BLVNKJReNVAJ. 
   
   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 view this discussion on the web visit 
  https://groups.google.com/d/msg/google-web-toolkit/-/ttj2N8rpsIIJ. 
  
  To post to this group, send email to google-web-toolkit@googlegroups.com. 

  To unsubscribe from this group, send email to 
  

Google app Engine

2012-04-25 Thread Akram Moncer
Hello ;


i need to know if  can use JPA (based on Hibernate) in my application and
deploy it in google app engine because some documentation says that i can
use just DATANUCLEUS


so can u help me please

thinks;

-- 
Akram MONCER
Personne

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



Error Google Web toolkit

2012-04-25 Thread alaa aadil
hello

i'm new to  GWT , i create a simple project GWT, , and on my package
Server , i add a java Class Connect,

this Class connect to a DataBase and return to me some information ,
( when i compile this class alone with a java Application it works
fine )

but when i compile all the project as a Web Application ,i get this
Error :

:10:16:05.004 [ERROR] [gwtpostgre] Line 31: No source code is
available for type com.qualisteo.GwtPostgre.server.Connect; did you
forget to inherit a required module?

Please Help me

this is my EntryPoint  :

public class GwtPostgre implements EntryPoint {


 Connect app= new Connect();
 String text=app.getInformation();


public void onModuleLoad() {


final Button sendButton = new Button(Send);
final TextBox nameField = new TextBox();

nameField.setText(text);

}
}


this is my Class Connect Onthe Package Server :


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;

public class Connect {

public String Inforeturn;

public Connect ()
{
this.Inforeturn=null;
}

  public String getInformation()
  {

try {
Class.forName(org.postgresql.Driver);

String url = 
jdbc:postgresql://localhost:5433/postgres;
String user = postgres;
String passwd = quali2012;

Connection conn = DriverManager.getConnection(url, 
user, passwd);

//Création d'un objet Statement
Statement state = conn.createStatement();
//L'objet ResultSet contient le résultat de la requête 
SQL
ResultSet result = state.executeQuery(SELECT id FROM 
ecole WHERE
id=( SELECT max(id_2) FROM ecole ));
//On récupère les MetaData
ResultSetMetaData resultMeta = result.getMetaData();


//System.out.println(\n**);
//On affiche le nom des colonnes
//for(int i = 1; i =  resultMeta.getColumnCount(); i++)
//System.out.print(\t +
resultMeta.getColumnName(i).toUpperCase() + \t *);

//System.out.println(\n**);

while(result.next()){
for(int i = 1; i =  
resultMeta.getColumnCount(); i++)
 {
 
Inforeturn=result.getObject(i).toString();
 }


System.out.println(\n-);

}
result.close();
state.close();


} catch (Exception e) {
e.printStackTrace();
}
return Inforeturn;


  }

}

-- 
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: Can UI components be tested through JUnit/GWTTestCase?

2012-04-25 Thread Thomas Broyer

On Tuesday, April 24, 2012 10:50:45 PM UTC+2, King_V wrote:

 Ok, I found some old messages (several years old) that says this 
 cannot be done. 

 However, when I look at: 

 https://developers.google.com/web-toolkit/doc/latest/DevGuideTesting#DevGuideJUnitSetUp
  

 this seems to imply that you can actually test GUI items on a browser 
 with such tests.  I might well be completely misinterpreting what it's 
 there for, though. 

 However, I'm baffled as to how to do so. 

 For example, I might normally put MyWidget into the RootPanel as 
 follows: 

 RootPanel.get().add(new MyWidget(Some text here)); 


 But how would I do this in a JUnit test case / GWTTestCase?


The same.

Have a look at the unit tests for the built-in widgets: 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/user/client/ui/

-- 
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/-/gC_6o42TzxwJ.
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: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-25 Thread Thomas Broyer

On Wednesday, April 25, 2012 8:07:00 AM UTC+2, tanteanni wrote:

 for example a showUserPlace and a EditUserPlace. Or in general there are 
 often more than one usecase per model. And if i want a distinct url per 
 use case i need different places. This cases could probably solved by let 
 one userActivity manage two presenters (edit and show user). But then i 
 have the same issue- how to inject the synchronized model from activity 
 in presenter.
 But at the moment the problem is not that two activities. Now i have a 
 very complicated logic on the model so i decided to put this logic out of 
 activity/presenter (ui handling logic). here is the same problem how to let 
 the activity interact with a model. (i linked the concrete problem above - 
 for short: if used events i have the problem to register for an event and 
 trigger an event(asking the model) all in start method seem to fail)


For the data thing, I think you simply need a DAO on the client-side 
doing some caching.

As for the events, call your getData() in a ScheduledCommand (use either 
scheduleFinally or scheduleDeferred).

-- 
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/-/hPRRNRi5arUJ.
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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread Jens
Instead of using the EventBus you could also use a Callback in your 
StateResolver. Seems to me that only the class that calls 
stateResolver.resolve() is interested in the result, so there isn't a real 
need for using an application wide event bus.

stateResolver.resolveState(, new Callback() {
  void onSuccess() {
//call method that handles the state
   }
});

Or you implement the Callback interface directly in your Activity (but then 
I would rename it to StateResolverPeer.stateResolved(T state) or something 
like that) and then simply call stateResolver.resolveState(, this).

If there is a 1:1 relation I would not use event bus in most cases.

-- 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/-/ePWPCIIcKSMJ.
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: Firefox 12 release

2012-04-25 Thread Thomas Broyer


On Tuesday, April 24, 2012 11:02:49 PM UTC+2, Qian Qiao wrote:

 On Apr 25, 2012 3:46 AM, James Wendel jmwen...@gmail.com wrote:
 
  I'm well aware of the other threads that exist.  But these thread
  tends to act as a central place for people to go to see if a build of
  the GWT plugin is available.  Alan has been very helpful in previous
  few FF releases on getting us new plugin builds within a day or 2.
 
  I'm just sitting and waiting for Alan or another Googler to say they
  have a build or are working on it.  I'm not in any real rush, just
  wanted to get the ball rolling.

 I'm not annoyed by the threads asking for the progress the plugin. I'm 
 more annoyed by Firefox itself.

 One would thought that if they were to do rapid releases, at least they'd 
 think of a way to provide compatibility with old plugins...

Mozilla wants to deprecate extensions with binary components (it's not the 
same thing as plugins!), and having to recompile for each new version is an 
incentive to trying to find alternative ways (e.g. super draft/dev 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/-/EZSEIfFnwpIJ.
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: Firefox 12 release

2012-04-25 Thread Thomas Broyer


On Wednesday, April 25, 2012 8:17:30 AM UTC+2, Olivier Scherler wrote:

 Why don’t people either:

 – Turn off auto-update in Firefox* if they use it to develop in GWT? I
 think it’s been proven that the only major thing these releases have
 is their version number increment, so why the rush to update?

Or install a portable version that you use only for development.

 

 – Use Chrome to develop in GWT? I never had a single problem with the
 GWT plugin since I started development.

You're lucky apparently:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
http://code.google.com/p/google-web-toolkit/issues/detail?id=4582
http://code.google.com/p/google-web-toolkit/issues/detail?id=7182
http://code.google.com/p/google-web-toolkit/issues/detail?id=7196



-- 
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/-/V-dhlnghUmQJ.
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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread tanteanni
you are right jens my first solution was a local eventbus - as you see my 
stateresolver takes an EventBus as argument - but this didn't work either. 
The current solution was copied from a gwt-example.

i used the solution with callback in two of my other activities. but my 
feeling isn't very good with it - i never use the eventbus given in start - 
why is there an eventbus?. because of this uncertainty i opened the other 
threadhttps://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/ktF5b1jLxtY.
 
I thought resolving a string /token to a model(that needs more than just 
call one service - probably i should refactor the services :-|) is a more 
usual use case.

So i guess i will refactor it and use a delegate to handle the callback.

On Wednesday, 25 April 2012 10:49:52 UTC+2, Jens wrote:

 Instead of using the EventBus you could also use a Callback in your 
 StateResolver. Seems to me that only the class that calls 
 stateResolver.resolve() is interested in the result, so there isn't a real 
 need for using an application wide event bus.

 stateResolver.resolveState(, new Callback() {
   void onSuccess() {
 //call method that handles the state
}
 });

 Or you implement the Callback interface directly in your Activity (but 
 then I would rename it to StateResolverPeer.stateResolved(T state) or 
 something like that) and then simply call stateResolver.resolveState(, 
 this).

 If there is a 1:1 relation I would not use event bus in most cases.

 -- 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/-/dBtHNvCn1ckJ.
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: Error Google Web toolkit

2012-04-25 Thread Akram Moncer
hello

i your entrypoint u can't use an complex object because it will be convert
to javascript , so i suggest u to create an object under the shared package
and it need to contain just a simple attribute (string,long,List,Array)
no connection object and this object will play the role of a transporter of
your  information between client and server

Le 25 avril 2012 09:36, alaa aadil aadila...@gmail.com a écrit :

  [image: Boxbe] https://www.boxbe.com/overview
 google-web-toolkit@googlegroups.com is not on your Guest 
 Listhttps://www.boxbe.com/approved-list| Approve
 sender https://www.boxbe.com/anno?tc=11180063125_1222679692 | Approve
 domain https://www.boxbe.com/anno?tc=11180063125_1222679692dom

 hello

 i'm new to  GWT , i create a simple project GWT, , and on my package
 Server , i add a java Class Connect,

 this Class connect to a DataBase and return to me some information ,
 ( when i compile this class alone with a java Application it works
 fine )

 but when i compile all the project as a Web Application ,i get this
 Error :

 :10:16:05.004 [ERROR] [gwtpostgre] Line 31: No source code is
 available for type com.qualisteo.GwtPostgre.server.Connect; did you
 forget to inherit a required module?

 Please Help me

 this is my EntryPoint  :

 public class GwtPostgre implements EntryPoint {


 Connect app= new Connect();
 String text=app.getInformation();


public void onModuleLoad() {


final Button sendButton = new Button(Send);
final TextBox nameField = new TextBox();

nameField.setText(text);

}
 }


 this is my Class Connect Onthe Package Server :


 import java.sql.Connection;
 import java.sql.DriverManager;
 import java.sql.ResultSet;
 import java.sql.ResultSetMetaData;
 import java.sql.Statement;

 public class Connect {

public String Inforeturn;

public Connect ()
{
this.Inforeturn=null;
}

  public String getInformation()
  {

try {
Class.forName(org.postgresql.Driver);

String url =
 jdbc:postgresql://localhost:5433/postgres;
String user = postgres;
String passwd = quali2012;

Connection conn = DriverManager.getConnection(url,
 user, passwd);

//Création d'un objet Statement
Statement state = conn.createStatement();
//L'objet ResultSet contient le résultat de la
 requête SQL
ResultSet result = state.executeQuery(SELECT id
 FROM ecole WHERE
 id=( SELECT max(id_2) FROM ecole ));
//On récupère les MetaData
ResultSetMetaData resultMeta = result.getMetaData();


  //System.out.println(\n**);
//On affiche le nom des colonnes
//for(int i = 1; i =  resultMeta.getColumnCount();
 i++)
//System.out.print(\t +
 resultMeta.getColumnName(i).toUpperCase() + \t *);

  //System.out.println(\n**);

while(result.next()){
for(int i = 1; i =
  resultMeta.getColumnCount(); i++)
 {

 Inforeturn=result.getObject(i).toString();
 }


  System.out.println(\n-);

}
result.close();
state.close();


} catch (Exception e) {
e.printStackTrace();
}
return Inforeturn;


  }

 }

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





-- 
Akram MONCER
Personne

-- 
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: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-25 Thread tanteanni
Thx
The Problem about Scheduled command is that i loose test ability - one main 
reason i use MVP (want to test the P without GWTTestCase).

But the Question is how to design such DAO's - i guess that's where i am 
failing at the moment. My current DAO is firing events - not usable in 
activities start method without ScheduledCommand. But i also have DAO's 
that uses delegates to signal data is ready. But how to godd/best 
integrate/design such DAO's in a gwt/mvp/ap app? (and probably how to 
cut/split good services for them?)

On Wednesday, 25 April 2012 10:49:29 UTC+2, Thomas Broyer wrote:


 On Wednesday, April 25, 2012 8:07:00 AM UTC+2, tanteanni wrote:

 for example a showUserPlace and a EditUserPlace. Or in general there are 
 often more than one usecase per model. And if i want a distinct url per 
 use case i need different places. This cases could probably solved by let 
 one userActivity manage two presenters (edit and show user). But then i 
 have the same issue- how to inject the synchronized model from activity 
 in presenter.
 But at the moment the problem is not that two activities. Now i have a 
 very complicated logic on the model so i decided to put this logic out of 
 activity/presenter (ui handling logic). here is the same problem how to let 
 the activity interact with a model. (i linked the concrete problem above - 
 for short: if used events i have the problem to register for an event and 
 trigger an event(asking the model) all in start method seem to fail)


 For the data thing, I think you simply need a DAO on the client-side 
 doing some caching.

 As for the events, call your getData() in a ScheduledCommand (use either 
 scheduleFinally or scheduleDeferred).


-- 
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/-/LnZ1uXlyx8MJ.
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: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-25 Thread Thomas Broyer


On Wednesday, April 25, 2012 11:06:48 AM UTC+2, tanteanni wrote:

 Thx
 The Problem about Scheduled command is that i loose test ability - one 
 main reason i use MVP (want to test the P without GWTTestCase).


Not if you inject the Scheduler into your activity (probably a mock one 
then, or the StubScheduler implementation).

-- 
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/-/OG_Gp-MQ7HQJ.
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: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-25 Thread tanteanni
Thanks - great idea,

so i inject the abstract class com.google.gwt.core.client.Scheduler. Do i 
have to bind an instance or provider to it (the provider will call get())?

ok but this is an perfect answer for 
thishttps://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/t1baOC4IfNo
 thread. 
The question here is, is it good to connect the model this way? or general 
how do you connect the model (more than an object delivered by a service) 
with the presenter?

On Wednesday, 25 April 2012 11:14:05 UTC+2, Thomas Broyer wrote:



 On Wednesday, April 25, 2012 11:06:48 AM UTC+2, tanteanni wrote:

 Thx
 The Problem about Scheduled command is that i loose test ability - one 
 main reason i use MVP (want to test the P without GWTTestCase).


 Not if you inject the Scheduler into your activity (probably a mock one 
 then, or the StubScheduler implementation).


-- 
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/-/lSQOBOQGswEJ.
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: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-25 Thread Ashu
could you please provide me the sample findby() method for reference?

On Monday, 23 April 2012 19:39:19 UTC+5:30, Thomas Broyer wrote:


 On Monday, April 23, 2012 2:14:38 PM UTC+2, Ashu wrote: 

 Thanks for the quick reply!!
 what is the use of this method and this class return type is my State 
 class. how can i write that?
 could you please give me more information about this?


 The find method should load your entity from your datastore, given its ID. 


-- 
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/-/cstsdp97HzkJ.
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: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-25 Thread Thomas Broyer


On Wednesday, April 25, 2012 11:34:56 AM UTC+2, Ashu wrote:

 could you please provide me the sample findby() method for reference?


See 
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/samples/expenses/src/main/java/com/google/gwt/sample/expenses/server/domain/Expense.java#64
 for 
example (uses JPA for persistence) 

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



RPC serialization/deserialization is very slow

2012-04-25 Thread Jacob Glusted Madsen
Hi, 
We are having problems with serialization/deserialization of RPC data.
This process seems to become very slow when the amount of data increases 
The problem seems to be greatest in ie8
It runs faster in Crome!

Does anyone have any sugestions on how to make the RPC 
serialization/deserialization run faster ?? 


-- 
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/-/zqbFXvqS9_YJ.
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 with RequestFactory ::::: com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /gwtRequest

2012-04-25 Thread laxman lingampally
Hi all,

please help me.

i am wworking on gwt woth requestfactory, at that time getting above error.

*here web.xml i configared .RequestFactoryServlet but it is internally
calling LocalResourceFileServlet.*

Why itis happening??

web.xml.

servlet
servlet-namerequestFactoryServlet/servlet-name
servlet-classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/servlet-class
init-param
param-nameuserInfoClass/param-name
param-valuecom.dynatech.server.domain.NameData/param-value
/init-param
/servlet

servlet-mapping
servlet-namerequestFactoryServlet/servlet-name
url-pattern/gwtRequest/url-pattern
/servlet-mapping




thanks in advace,

thanks  regards.
laxman

-- 
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: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-25 Thread Ashu
  now i am getting the runtime exception for EMF class
 
Server Error: Could not initialize class com.shared.EMF 
 
 

On Monday, 23 April 2012 17:21:48 UTC+5:30, Ashu wrote:

 Hi,
  
 I am getting the above exception while running the GWT application.
  
 I am using Entity and EntityProxies.
  
 Below is the code:
  
 @Entity
 @Table(name = tlkpState)
 public class State{
 .
 }
 @ProxyFor(value = State.class)
 public interface StateProxy extends EntityProxy {
   
  public String getFips();
  public String getName();
  EntityProxyIdStateProxy stableId();
 }
 @Service(value = StateServiceImpl.class)
  public interface StateRequest extends RequestContext {
   RequestListStateProxy getStates() throws Exception;
   //RequestVoid getStates() throws Exception;
  }
 in widget.java
 try {

 clientFactory.getRequestFactory().stateRequestContext().getStates().fire(new 
 ReceiverListStateProxy(){
 @Override
 public void onSuccess(ListStateProxy response) {
  // TODO Auto-generated method stub
  System.out.println(on success);
 }
 
  @Override
  public void onFailure(ServerFailure error) {
  System.out.println(on Failure);
  }
});
   } catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
   }
  
 when i call getstate() method with return type void it is working fine.
 but the same method with return type ListStateProxy it is throwing the 
 following exception:
  
  
 * 

 com.google.web.bindery.requestfactory.server.UnexpectedException
 *: Could not find static method with a single parameter of a key type 

 at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.die(
 *ServiceLayerDecorator.java:216*) 

 at 
 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
 *ReflectiveServiceLayer.java:253*) 

 at 
 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
 *ReflectiveServiceLayer.java:271*) 

 at 
 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
 *ReflectiveServiceLayer.java:271*) 

 at 
 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.isLive(
 *ReflectiveServiceLayer.java:200*) 

 at 
 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.isLive(
 *ServiceLayerDecorator.java:116*) 

 at 
 com.google.web.bindery.requestfactory.server.LocatorServiceLayer.doIsLive(
 *LocatorServiceLayer.java:186*) 

 at com.google.web.bindery.requestfactory.server.LocatorServiceLayer.isLive(
 *LocatorServiceLayer.java:85*) 

 at 
 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.isLive(
 *ServiceLayerDecorator.java:116*) 

 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.createReturnOperations(
 *SimpleRequestProcessor.java:274*) 

 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
 *SimpleRequestProcessor.java:232*) 

 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
 *SimpleRequestProcessor.java:127*) 

 at 
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(
 *RequestFactoryServlet.java:133*) 

 at javax.servlet.http.HttpServlet.service(
 *HttpServlet.java:637*) 

 at javax.servlet.http.HttpServlet.service(
 *HttpServlet.java:717*) 

 at org.mortbay.jetty.servlet.ServletHolder.handle(
 *ServletHolder.java:487*) 

 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
 *ServletHandler.java:1097*) 

 at com.yieldstar.mpfui.server.MpfAuthFilter.doFilter(
 *MpfAuthFilter.java:41*) 

 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
 *ServletHandler.java:1088*) 

 at org.mortbay.jetty.servlet.ServletHandler.handle(
 *ServletHandler.java:360*) 

 at org.mortbay.jetty.security.SecurityHandler.handle(
 *SecurityHandler.java:216*) 

 at org.mortbay.jetty.servlet.SessionHandler.handle(
 *SessionHandler.java:181*) 

 at org.mortbay.jetty.handler.ContextHandler.handle(
 *ContextHandler.java:729*) 

 at org.mortbay.jetty.webapp.WebAppContext.handle(
 *WebAppContext.java:405*) 

 at org.mortbay.jetty.handler.HandlerWrapper.handle(
 *HandlerWrapper.java:152*) 

 at org.mortbay.jetty.handler.RequestLogHandler.handle(
 *RequestLogHandler.java:49*) 

 at org.mortbay.jetty.handler.HandlerWrapper.handle(
 *HandlerWrapper.java:152*) 

 at org.mortbay.jetty.Server.handle(
 *Server.java:324*) 

 at org.mortbay.jetty.HttpConnection.handleRequest(
 *HttpConnection.java:505*) 

 at org.mortbay.jetty.HttpConnection$RequestHandler.content(
 *HttpConnection.java:843*) 

 at org.mortbay.jetty.HttpParser.parseNext(
 *HttpParser.java:647*) 

 at org.mortbay.jetty.HttpParser.parseAvailable(
 *HttpParser.java:211*) 

 at org.mortbay.jetty.HttpConnection.handle(
 *HttpConnection.java:380*) 

 at org.mortbay.io.nio.SelectChannelEndPoint.run(
 *SelectChannelEndPoint.java:395*) 

 at org.mortbay.thread.QueuedThreadPool$PoolThread.run(

Re: RPC serialization/deserialization is very slow

2012-04-25 Thread Paul Robinson

On 25/04/12 11:17, Jacob Glusted Madsen wrote:

Does anyone have any sugestions on how to make the RPC 
serialization/deserialization run faster ??


The biggest difference you can make to RPC speed is to send less data over the 
network. You should make sure you're only sending stuff that you really need to 
send. This may involve using DTOs to ensure you have the bare minimum your 
client actually needs.

HTH
Paul

--
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: RPC serialization/deserialization is very slow

2012-04-25 Thread Jens
Fastest possible solution is to switch to pure JSON string + Overlay Types 
which would result in nearly no GWT overhead.

If you don't want to switch your RPC mechanism or its still too slow then 
you have to fetch your data in smaller chunks. For example presenting 1 
objects in a UI list does not make that much sense. Loading chunks of 500 
objects while the user scrolls through the list would make more sense. Its 
like here in Google Groups. Loading all topics at once wouldn't work, thus 
they load chunks of topics while you scroll through them. 

If you really need that 1 objects from the beginning you could maybe 
use a RepeatingCommand and load chunks of 500 objects until you have loaded 
everything. That way the browser wouldn't lock up, but it will take longer 
to download and present the data.

-- J.


Am Mittwoch, 25. April 2012 12:17:19 UTC+2 schrieb Jacob Glusted Madsen:

 Hi, 
 We are having problems with serialization/deserialization of RPC data.
 This process seems to become very slow when the amount of data increases 
 The problem seems to be greatest in ie8
 It runs faster in Crome!

 Does anyone have any sugestions on how to make the RPC 
 serialization/deserialization run faster ?? 



Am Mittwoch, 25. April 2012 12:17:19 UTC+2 schrieb Jacob Glusted Madsen:

 Hi, 
 We are having problems with serialization/deserialization of RPC data.
 This process seems to become very slow when the amount of data increases 
 The problem seems to be greatest in ie8
 It runs faster in Crome!

 Does anyone have any sugestions on how to make the RPC 
 serialization/deserialization run faster ?? 




-- 
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/-/YamxAlMJBd4J.
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 with RequestFactory using Hibernate !!

2012-04-25 Thread laxman lingampally
Hi all,


please tell me How it is work.

Thaks  Regards.
Laxman

-- 
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 with RequestFactory using Hibernate !!

2012-04-25 Thread thiago borges martins
What is your doubt in relation to RF and hibernate?
because the RF will communicate with your service and domain. Part of
persistence will continue in the same way the only difference is that
you will have an interface that represents the service and an
interface for the domain as the link below:

https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory

any questions just ask.

On 25 abr, 08:01, laxman lingampally lingampall.lax...@gmail.com
wrote:
 Hi all,

 please tell me How it is work.

 Thaks  Regards.
 Laxman

-- 
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 with RequestFactory ::::: com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /gwtRequest

2012-04-25 Thread thiago borges martins
Make the following change to your web.xml and see if it will funionar:
servlet
servlet-namerequestFactoryServlet/servlet-name
servlet-
classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/
servlet-class
init-param
param-namesymbolMapsDirectory/param-name
!-- You'll need to compile with -extras and move the symbolMaps
directory
to this location if you want stack trace deobfuscation to work 
--
param-valueWEB-INF/classes/symbolMaps//param-value
param-nameuserInfoClass/param-name
param-valuecom.dynatech.server.domain.NameData/param-value
/init-param
/servlet

servlet-mapping
servlet-namerequestFactoryServlet/servlet-name
url-pattern/gwtRequest/url-pattern
/servlet-mapping

this stretch you need to check where the GWT is generating a
compilation of sources, perhaps because the problem is that he is not
able to find the java-script compiled. In my case it's in this
directory
url-pattern/br.com.tbm.consult.Application/gwtRequest/ url-
pattern
To identify the directory you just go in the target folder after
compilation if you are using maven. if you are using the standard
build of gwt you should be in the war directory.

Any problems just post.

On 25 abr, 07:19, laxman lingampally lingampall.lax...@gmail.com
wrote:
 Hi all,

 please help me.

 i am wworking on gwt woth requestfactory, at that time getting above error.

 *here web.xml i configared .RequestFactoryServlet but it is internally
 calling LocalResourceFileServlet.*

 Why itis happening??

 web.xml.

 servlet
 servlet-namerequestFactoryServlet/servlet-name
 servlet-classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/servlet-class
 init-param
 param-nameuserInfoClass/param-name
 param-valuecom.dynatech.server.domain.NameData/param-value
 /init-param
 /servlet

 servlet-mapping
 servlet-namerequestFactoryServlet/servlet-name
 url-pattern/gwtRequest/url-pattern
 /servlet-mapping

 thanks in advace,

 thanks  regards.
 laxman

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



Introducing DataGrid to an older code base

2012-04-25 Thread wytten
I'm having a problem trying to convert an older (GWT 2.1) app to
use the new DataGrid class.  The app was successfully upgraded to
GWT 2.4 months ago, but this is the first time we are trying to
introduce new 2.4 features.

When I run in development mode, the GWT Development Mode window
logs the following:

00:00:32.151  [WARN] For the following type(s), generated source was 
never committed (did you forget to call commit()?)
  00:00:32.151  [WARN] 
com.google.gwt.user.client.ui.NativeHorizontalScrollbar_NativeHorizontalScrollbarUiBinderImpl



Meanwhile an exception is caught in the client:

java.lang.ExceptionInInitializerError
 at 
com.google.gwt.user.client.ui.CustomScrollPanel.init(CustomScrollPanel.java:196)
 at 
com.google.gwt.user.client.ui.CustomScrollPanel.init(CustomScrollPanel.java:233)
 at 
com.google.gwt.user.cellview.client.DataGrid.init(DataGrid.java:631)
 at 
com.google.gwt.user.cellview.client.DataGrid.init(DataGrid.java:570)
 at 
com.google.gwt.user.cellview.client.DataGrid.init(DataGrid.java:557)
 at 
com.google.gwt.user.cellview.client.DataGrid.init(DataGrid.java:534)
 at 
com.google.gwt.user.cellview.client.DataGrid.init(DataGrid.java:525)



Line 196 of CustomScrollPanel.java reads:

setHorizontalScrollbar(new NativeHorizontalScrollbar(hResources), 
AbstractNativeScrollbar
.getNativeScrollbarHeight());



This seems to indicate that the exception is tied to the
warnings, but I don't know what it all means.

-- 
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/-/y78J0sYyj7cJ.
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: Google app Engine

2012-04-25 Thread Assiya EL
hi,


Take a look at this post about working with JPA and the GAE:

https://developers.google.com/appengine/docs/java/datastore/jpa/overview?hl=fr-FR


Assiya

2012/4/25 Akram Moncer akram.mon...@gmail.com

 Hello ;


 i need to know if  can use JPA (based on Hibernate) in my application and
 deploy it in google app engine because some documentation says that i can
 use just DATANUCLEUS


 so can u help me please

 thinks;

 --
 Akram MONCER
 Personne

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




-- 

Assiya EL
Master Qualité du Logiciel



Plz consider environment - Only print this if necessary

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



How to make gwt's RichTextArea detect content pasting and cutting events?

2012-04-25 Thread Alex Luya
Blew code can make RichTextArea auto-grow-or-shrink vertically based on
KeyUp event,and question is how to do same thing when user paste or cut
content in or out(Google plus has implemented this).MouseUp and
CONTEXTMENU events have been tried,got no luck.Can anybody give a
solution?Thanks.

public AutoResizeTextArea()
{
new Timer()
{
@Override
public void run()
{
(doc = ((FrameElement)
getElement().cast()).getContentDocument()).getBody()
.setAttribute(style,
word-wrap:break-word;overflow:hidden;);
}
}.schedule(100);
}


@Override
public void onBrowserEvent(Event event)
{
switch (DOM.eventGetType(event))
{
case Event.ONKEYUP:
adjustHeight();
break;
}
}

private void adjustHeight()
{
if (doc.getDocumentElement()
.getOffsetHeight() != doc.getClientHeight())
{
setHeight((doc.getDocumentElement()
.getOffsetHeight() + 19) + px);
}
}

-- 
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: Google app Engine

2012-04-25 Thread Akram Moncer
thinks

Le 25 avril 2012 15:15, Assiya EL missweb...@gmail.com a écrit :

  [image: Boxbe] https://www.boxbe.com/overview
 google-web-toolkit@googlegroups.com is not on your Guest 
 Listhttps://www.boxbe.com/approved-list| Approve
 sender https://www.boxbe.com/anno?tc=11182465585_2108483747 | Approve
 domain https://www.boxbe.com/anno?tc=11182465585_2108483747dom

 hi,


 Take a look at this post about working with JPA and the GAE:


 https://developers.google.com/appengine/docs/java/datastore/jpa/overview?hl=fr-FR


 Assiya

 2012/4/25 Akram Moncer akram.mon...@gmail.com

 Hello ;


 i need to know if  can use JPA (based on Hibernate) in my application and
 deploy it in google app engine because some documentation says that i can
 use just DATANUCLEUS


 so can u help me please

 thinks;

 --
 Akram MONCER
 Personne

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




 --

 Assiya EL
 Master Qualité du Logiciel



 Plz consider environment - Only print this if necessary


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




-- 
Akram MONCER
Personne

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



GWT_CONTAINER will not be exported or published

2012-04-25 Thread Geoffrey Wiseman
When I use M2E and GWT together in Eclipse these days, I get this warning:
Classpath entry com.google.gwt.eclipse.core.GWT_CONTAINER will not be 
exported or published. Runtime ClassNotFoundExceptions may result.

It's not a big deal, but I'd rather get rid of it -- any suggestions?

  - Geoffrey

-- 
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/-/SUMvdp218okJ.
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_CONTAINER will not be exported or published

2012-04-25 Thread Thomas Broyer


On Wednesday, April 25, 2012 5:27:30 PM UTC+2, Geoffrey Wiseman wrote:

 When I use M2E and GWT together in Eclipse these days, I get this warning:
 Classpath entry com.google.gwt.eclipse.core.GWT_CONTAINER will not be 
 exported or published. Runtime ClassNotFoundExceptions may result.

 It's not a big deal, but I'd rather get rid of it -- any suggestions?


When using M2E, the Google Plugin for Eclipse should automatically pick the 
GWT SDK from the Maven dependencies, and as a result there shouldn't be a 
GWT_CONTAINER entry in the build path.

So, in your case, I'd try removing the GWT_CONTAINER entry from the build 
path, and/or possibly use Maven → Update Project Configuration…

-- 
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/-/kfyFeoG8qNIJ.
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: TabLayoutPanel with custom widget for tabs

2012-04-25 Thread Alfredo Quiroga-Villamil
There are probably a few ways to accomplish this. I had a few minutes
so I hacked something up, in a hurry, so not sure if this is the best
way to do it, but see below.

I would do something along these lines, create a TabItem that contains
an image (the x you suggested for close for example.). A nice to have
would be to change the cursor when hovering over the TabItem for
example. This would allow me to close tabs for instance and act upon
it. I would probably enhance TabPanel to do all this, but you should
get an idea. See below to see a TabItem being added to the TabPanel
consisting of text and a clickable image with a CloseHandler.

TabItem tabItem = new TabItem(Tab 1);
TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);
tabPanel.add(new Image(icons.close()), tabItem);
dockPanel.addNorth(tabPanel, 25);

tabItem.addCloseHandler(new
CloseHandlerDestinationViewImpl.TabItem() {
@Override
public void onClose(CloseEventTabItem event) {
System.out.println(Closing here!);
event.getTarget().removeFromParent();
}
});

private class TabItem extends Composite implements
HasCloseHandlersTabItem {

private FlowPanel tabItem;
private InlineLabel tabItemTittle;
private String text;
private Image image;

public TabItem(String title) {
tabItem = new FlowPanel();
initWidget(tabItem);
tabItemTittle = new InlineLabel(title);
tabItem.add(tabItemTittle);
image = new Image(icons.asteriskOrange());
tabItem.add(image);
addHandlers();
}

/**
 * @return the text
 */
public String getText() {
return text;
}

/**
 * @param text the text to set
 */
public void setText(String text) {
this.text = text;
tabItemTittle.setText(text);
}

@Override
public HandlerRegistration
addCloseHandler(CloseHandlerTabItem handler) {
return addHandler(handler, CloseEvent.getType());
}

private void addHandlers() {
image.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
CloseEvent.fire(TabItem.this, TabItem.this);
}
});
}

}


On Tue, Apr 24, 2012 at 11:12 PM, bryanb webbt...@gmail.com wrote:

 I'm trying to get custom tabs with a closing X image next to the
 label. Something like Blah  X with the X a clickable image.

 I cannot get the tab widget to display correctly.

 Below is a simplified example which shows the problem. The Bad Tab
 should float the label left and the X right. On Chrome this will
 cause the tab to be detached from the tab panel. i.e. it display
 about 4px above the main tab panel. In FF the tab isn't detached, but
 the floating doesn't seem to work.

 Has anyone got something similar working ?

                TabLayoutPanel panel = new TabLayoutPanel(32, Unit.PX);
                panel.setSize(300px, 300px);

                HTML hello = new HTML(Bad Tabnbsp);
                hello.getElement().getStyle().setProperty(float, left);
                HTML exit = new HTML(X);
                exit.getElement().getStyle().setProperty(color, red);
                exit.getElement().getStyle().setProperty(float, right);

                FlowPanel fp = new FlowPanel();
                fp.add(hello);
                fp.add(exit);

                panel.add(new Label(Blah), fp);

                hello = new HTML(Good Tab);
                exit = new HTML(X);
                exit.getElement().getStyle().setProperty(color, red);

                fp = new FlowPanel();
                fp.add(hello);
                fp.add(exit);

                panel.add(new Label(Blah), fp);

                RootLayoutPanel root = RootLayoutPanel.get();
                root.add(panel);

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




--
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
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_CONTAINER will not be exported or published

2012-04-25 Thread Geoffrey Wiseman
On Wednesday, 25 April, 2012 at 12:17 PM, Thomas Broyer wrote:
 When using M2E, the Google Plugin for Eclipse should automatically pick the 
 GWT SDK from the Maven dependencies, and as a result there shouldn't be a 
 GWT_CONTAINER entry in the build path.
  
 So, in your case, I'd try removing the GWT_CONTAINER entry from the build 
 path, and/or possibly use Maven → Update Project Configuration…
I'd done the latter, but I hadn't considered the idea of removing the 
container, so I hadn't tried that manually. Worked like a charm, and makes 
sense to boot. Thanks.

  - Geoffrey
--  
Geoffrey Wiseman
http://www.geoffreywiseman.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-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.



drag/drop/re-ordering of rows inside celltable/datagrid

2012-04-25 Thread kim young ill
hi,
has someone tried to do this ?
how to keep the data-provider stays in sync ?
would be great for some hints

thanx

-- 
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: Novice GWT question: Parallel Post Requests

2012-04-25 Thread kim young ill
On Mon, Apr 23, 2012 at 11:20 PM, LogicalGoetz digital.go...@gmail.comwrote:

 This may be a terribly novice question, but for each POST performed
 by, say, a FormPanel, is there a subsequent HttpResponse generated by
 the Servlet?

 Obviously in standard situations this will play out as follows:
 -client makes a POST request
 -servlet handles the request
 -servlet sends POST response
 -client receives response

 However, the situation I'm curious about is when something like this
 occurs:
 -client makes a POST request
 -servlet handles the request
 -client makes a POST request (this occurs a few times possibly)
 -servlet handles these requests
 -servlet generates responses
 -client receives a series of responses (no guarantee on order)

 From my current testing, it seems that if I have a FormPanel make
 multiple POST requests while the servlet processes the requests, only
 the first will ever generate a response.


AFAICT, if u have a (html) form (which wrapped by a formpanel), this will
be posted only once to server , for which u'll get a response, this form in
this case will not be available for u anymore on the client side to do a
re-post.

or did i misunderstanding when u says a FormPanel make
multiple POST requests  ?





  Is this the nature of Java
 servlets, my client application (firefox), the http specification, or
 possibly a coding blunder on my part?

 Thank you in advance for any information,
 Mike

 --
 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: Firefox 12 release

2012-04-25 Thread Alan Leung
Let me know if you see any problems: http://acleung.com/ff12-linux32.xpi

More to come.

-Alan

On Wed, Apr 25, 2012 at 1:56 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Wednesday, April 25, 2012 8:17:30 AM UTC+2, Olivier Scherler wrote:

 Why don’t people either:

 – Turn off auto-update in Firefox* if they use it to develop in GWT? I
 think it’s been proven that the only major thing these releases have
 is their version number increment, so why the rush to update?

 Or install a portable version that you use only for development.



 – Use Chrome to develop in GWT? I never had a single problem with the
 GWT plugin since I started development.

 You're lucky apparently:
 http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4582
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7182
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7196

  --
 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/-/V-dhlnghUmQJ.

 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: Can UI components be tested through JUnit/GWTTestCase?

2012-04-25 Thread Joseph Lust
Keep in mind that GWTTestCase is running in HtmlUnit, which is essentially 
a headless browser. You can test some stuff with DOM calls, but HtmlUnit is 
based (last I checked) on FF3.5, so many newer things like SVG cannot be 
tested with it.

For full bore tests I suggest the Selenium, Watir, or Cucumber testing 
frameworks. I prefer Cucumber-JVM since you can write them as JUnit tests.

Sincerely,
Joseph

-- 
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/-/0Ns4oLJt_VgJ.
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: Novice GWT question: Parallel Post Requests

2012-04-25 Thread Joseph Lust
However, keep in mind that GET requests are quite limited. For example, IE 
cannot handle a URL longer than 2083 characters. Thus, not very much 
information can be serialized into a URL. Hence, most forms are usually 
POST'd, not GET'd.


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/-/C4RmK-oou2oJ.
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: automatically unsinking event when no hanlders present ?

2012-04-25 Thread Joseph Lust
The DOM handlers are automatically removed by GWT when you destroy that 
object (i.e. that widget is removed from the DOM). This is why you should 
always capture browser events in this way rather than using JSNI. If you do 
create your own custom handlers, then you'll need to remove those 
onDetach() of the widget or you'll have a leak.


Sincerely,
Joseph

-- 
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/-/uSvSKur4VocJ.
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: TabLayoutPanel with custom widget for tabs

2012-04-25 Thread bryanb
Hi Alfredo,

Thanks for the reply.

It turns out the magic sauce for getting the elements to display
correctly is to use InlineLabel or InlineHTML rather than plain Label
or HTML.  Thanks to your code, all is good.

Cheers.

         private InlineLabel tabItemTittle;
         private String text;
         private Image image;

         public TabItem(String title) {
             tabItem = new FlowPanel();
             initWidget(tabItem);
             tabItemTittle = new InlineLabel(title);
             tabItem.add(tabItemTittle);
             image = new Image(icons.asteriskOrange());
             tabItem.add(image);
             addHandlers();
         }

-- 
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: Firefox 12 release

2012-04-25 Thread Alan Leung
Linux 64 bit: http://acleung.com/ff12-linux64.xpi

Have fun!

-Alan

On Wed, Apr 25, 2012 at 1:20 PM, Alan Leung acle...@google.com wrote:

 Let me know if you see any problems: http://acleung.com/ff12-linux32.xpi

 More to come.

 -Alan


 On Wed, Apr 25, 2012 at 1:56 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Wednesday, April 25, 2012 8:17:30 AM UTC+2, Olivier Scherler wrote:

 Why don’t people either:

 – Turn off auto-update in Firefox* if they use it to develop in GWT? I
 think it’s been proven that the only major thing these releases have
 is their version number increment, so why the rush to update?

 Or install a portable version that you use only for development.



 – Use Chrome to develop in GWT? I never had a single problem with the
 GWT plugin since I started development.

 You're lucky apparently:
 http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4582
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7182
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7196

  --
 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/-/V-dhlnghUmQJ.

 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.



standard.css attribute override my css attribute!!

2012-04-25 Thread tong123123
my project name is ALS and I have a ALS.css file, with some content like


body{
   font-size:20px;
 } 

 table td{
font-size:20px;
 }


but I found it has no effect on my gwt application, it is override by 
standard.css, how to resolve this problem?

Also, when I generate the project, there is some auto-generated css 
attribute in ALS.css like
.gwt-MenuItem
but these attribute can also be found in standard.css, so why gwt 
autogenerated these css attribute again when I new a project if 
standard.css already has these attribute?

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



where to place css file and image file?

2012-04-25 Thread tong123123
Currently, I place css file under war directory and images file under 
war/images directory.
but if I want to use ClientBundle, seems these file need place under src 
directory? if yes, how to modify the build.xml?

-- 
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/-/SWvrlfDijmwJ.
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 with RequestFactory ,Hibernate and Mysql.

2012-04-25 Thread laxman lingampally
Hi all.

Please help me.

i was trying to work with GWT with RequestFactory ,Hibernate and Mysql.

but i have one question is ,it is passible to work GWT with RequestFactory
,Hibernate and Mysql. this combination.

tell me any one.

Thanks  Regards.
Laxman.

-- 
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: Firefox 12 release

2012-04-25 Thread Ashwin Desikan
Alan,

Receiving 403 (forbidden) error while trying to access the 64 bit xpi file. 
32-bit version has no such issues 


Thanks
Ashwin

Sent from my iPhone

On Apr 26, 2012, at 7:11 AM, Alan Leung acle...@google.com wrote:

 Linux 64 bit: http://acleung.com/ff12-linux64.xpi
 
 Have fun!
 
 -Alan
 
 On Wed, Apr 25, 2012 at 1:20 PM, Alan Leung acle...@google.com wrote:
 Let me know if you see any problems: http://acleung.com/ff12-linux32.xpi
 
 More to come.
 
 -Alan
 
 
 On Wed, Apr 25, 2012 at 1:56 AM, Thomas Broyer t.bro...@gmail.com wrote:
 
 
 On Wednesday, April 25, 2012 8:17:30 AM UTC+2, Olivier Scherler wrote:
 Why don’t people either:
 – Turn off auto-update in Firefox* if they use it to develop in GWT? I
 think it’s been proven that the only major thing these releases have
 is their version number increment, so why the rush to update?
 
 Or install a portable version that you use only for development.
 
  
 – Use Chrome to develop in GWT? I never had a single problem with the
 GWT plugin since I started development.
 
 You're lucky apparently:
 http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4582
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7182
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7196
 -- 
 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/-/V-dhlnghUmQJ.
 
 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: Firefox 12 release

2012-04-25 Thread Alan Leung
Sound be fixed now.

On Wed, Apr 25, 2012 at 9:43 PM, Ashwin Desikan ashwin.desi...@gmail.comwrote:

 Alan,

 Receiving 403 (forbidden) error while trying to access the 64 bit xpi
 file. 32-bit version has no such issues


 Thanks
 Ashwin

 Sent from my iPhone

 On Apr 26, 2012, at 7:11 AM, Alan Leung acle...@google.com wrote:

 Linux 64 bit: http://acleung.com/ff12-linux64.xpi
 http://acleung.com/ff12-linux64.xpi

 Have fun!

 -Alan

 On Wed, Apr 25, 2012 at 1:20 PM, Alan Leung  acle...@google.com
 acle...@google.com wrote:

 Let me know if you see any problems: http://acleung.com/ff12-linux32.xpi
 http://acleung.com/ff12-linux32.xpi

 More to come.

 -Alan


 On Wed, Apr 25, 2012 at 1:56 AM, Thomas Broyer  t.bro...@gmail.com
 t.bro...@gmail.com wrote:



 On Wednesday, April 25, 2012 8:17:30 AM UTC+2, Olivier Scherler wrote:

 Why don’t people either:

 – Turn off auto-update in Firefox* if they use it to develop in GWT? I
 think it’s been proven that the only major thing these releases have
 is their version number increment, so why the rush to update?

 Or install a portable version that you use only for development.



 – Use Chrome to develop in GWT? I never had a single problem with the
 GWT plugin since I started development.

 You're lucky apparently:
 http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
 http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
  http://code.google.com/p/google-web-toolkit/issues/detail?id=4582
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4582
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7182
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7182
  http://code.google.com/p/google-web-toolkit/issues/detail?id=7196
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7196

  --
 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/-/V-dhlnghUmQJ
 https://groups.google.com/d/msg/google-web-toolkit/-/V-dhlnghUmQJ.

 To post to this group, send email to
 google-web-toolkit@googlegroups.comgoogle-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en
 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.


-- 
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 with RequestFactory ::::: com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /gwtRequest

2012-04-25 Thread laxman lingampally
hi

thinks a lot

first I want to thanks you for these superb  on GWT RequestFactory, they
really helped me getting started quickly.

i  don't now about symbolMaps , i think it is google datastore, but i am
trying to store in mysql database.

  i created a web application with GWT RequestFactory and for persistence i
use the hibernate and mysql datastore but , to transfert data between
server and client i should use mysql or sql server but i don't know how can
i do it,

so i will be grateful if someone can help me with example or any information


please help me.

Thanks  Regards.
laxman


On Wed, Apr 25, 2012 at 7:20 PM, thiago borges martins 
tborgesmart...@gmail.com wrote:

 Make the following change to your web.xml and see if it will funionar:
 servlet
servlet-namerequestFactoryServlet/servlet-name
servlet-
 classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/
 servlet-class
init-param
param-namesymbolMapsDirectory/param-name
!-- You'll need to compile with -extras and move the
 symbolMaps
 directory
to this location if you want stack trace deobfuscation to
 work --
param-valueWEB-INF/classes/symbolMaps//param-value
 param-nameuserInfoClass/param-name

  param-valuecom.dynatech.server.domain.NameData/param-value
/init-param
 /servlet

 servlet-mapping
servlet-namerequestFactoryServlet/servlet-name
url-pattern/gwtRequest/url-pattern
 /servlet-mapping

 this stretch you need to check where the GWT is generating a
 compilation of sources, perhaps because the problem is that he is not
 able to find the java-script compiled. In my case it's in this
 directory
 url-pattern/br.com.tbm.consult.Application/gwtRequest/ url-
 pattern
 To identify the directory you just go in the target folder after
 compilation if you are using maven. if you are using the standard
 build of gwt you should be in the war directory.

 Any problems just post.

 On 25 abr, 07:19, laxman lingampally lingampall.lax...@gmail.com
 wrote:
  Hi all,
 
  please help me.
 
  i am wworking on gwt woth requestfactory, at that time getting above
 error.
 
  *here web.xml i configared .RequestFactoryServlet but it is internally
  calling LocalResourceFileServlet.*
 
  Why itis happening??
 
  web.xml.
 
  servlet
  servlet-namerequestFactoryServlet/servlet-name
 
 servlet-classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/servlet-class
  init-param
  param-nameuserInfoClass/param-name
  param-valuecom.dynatech.server.domain.NameData/param-value
  /init-param
  /servlet
 
  servlet-mapping
  servlet-namerequestFactoryServlet/servlet-name
  url-pattern/gwtRequest/url-pattern
  /servlet-mapping
 
  thanks in advace,
 
  thanks  regards.
  laxman

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