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

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

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

2012-04-24 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.



TabLayoutPanel with custom widget for tabs

2012-04-24 Thread bryanb
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 Tab ");
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.



Re: DTO + GWT

2012-04-24 Thread Rob
Hi,

If you only need to support one persistence store and its GAE then
Objectify is the most popular option (and you won't need to create
separate DTOs).

If you need to support other persistence stores (e.g. PostgreSQL,
HSQLDB) then you might consider using DTOs in combination with
DataNucleus (http://code.google.com/p/datanucleus-appengine/) and JPA
(http://code.google.com/p/datanucleus-appengine/wiki/
UpgradingToVersionTwo).

Cheers
Rob

http://code.google.com/p/gwt-cx/

On Apr 25, 9:31 am, Andy Stevko  wrote:
> I really recommend looking at objectify - the objects are capable of being
> detached from the datastore and transferred to/from the client.
>
> On Tue, Apr 24, 2012 at 9:25 AM, Stefan Ollinger 
> wrote:
>
>
>
>
>
>
>
>
>
> >  1:1 DTOs are not required. I think you can configure Dozer. You could for
> > example create multiple views of your business model.
>
> > Regards,
> > Stefan
>
> > Am 24.04.2012 11:10, schrieb Akram Moncer:
>
> >  thinks a lot
>
> >  i have a big model of database, and i have association between entities,
> > do i have to create the same association between the DTO ?
>
> > Le 24 avril 2012 09:52, Stefan Ollinger  a écrit :
>
> >>  [image: Boxbe] 
> >> google-web-toolkit@googlegroups.com is not on your Guest 
> >> List| Approve
> >> sender  | Approve
> >> domain 
>
> >>  Hello Akram,
>
> >> Data Transfer Objects are just simple POJOs which are used to transfer
> >> data to the client.
> >> Take a look at Dozer to map data from your business objects to DTOs:
> >>http://dozer.sourceforge.net/documentation/about.html
>
> >> Regards,
> >> Stefan
>
> >> Am 24.04.2012 10:30, schrieb Akram Moncer:
>
> >> hello every body;
>
> >>  i created a web application with GWT and for persistence i use the
> >> google app engine datastore but , to transfert data between server and
> >> client i should use DTO(data transfert object) 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
>
> >>  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.
>
> >>  --
> >> 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.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> -- A. Stevko
> ===
> "If everything seems under control, you're just not going fast enough." M.
> Andretti

-- 
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: where to place persistence.xml in an eclipse gwt project?

2012-04-24 Thread Rob
Hi,

Do your PU (Persistence Unit) names match (e.g. "default" in your
persistence.xml and when you call
createEntityManagerFactory("default", properties)) ?

Note: If you are using Eclipse it will automatically copy the files
(e.g. persistence.xml and log4j.xml) in the src\META-INF directory to
the war\WEB-INFO\classes\META-INF directory.

This post may also help:

-> http://uptick.com.au/content/working-gwt-jpa-hibernate-and-hsqldb

Cheers
Rob

http://code.google.com/p/gwt-cx/


On Apr 22, 4:19 am, "Mr.S"  wrote:
> I am trying to get eclipselink working with GWT's requestfactory. I
> keep getting the following error:
>
> Caused by: java.lang.RuntimeException: Server Error: No Persistence
> provider for EntityManager named default
>
> Reading around the web, it seems that persistence.xml must live in WEB-
> INF/classes/META-INF/. I tried creating a folder under src/META-INF
> and placing persistence.xml in it, but it does not get included in war/
> WEB-INF/classes/ when I build the project in eclipse. Any suggestions?
> I am using GWT 2.3, EclipseLink 2.3, and eclipse 3.7. How can I get
> eclipse to include persistence.xml into the right location?
>
> persistence.xml
>
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/persistence/persistence_2_0.xsd";
> version="2.0" xmlns="http://java.sun.com/xml/ns/persistence";>
>
> 
> org.eclipse.persistence.jpa.PersistenceProvider
>
>     com.manning.gwtia.ch08.v2.server.Contact
>
>     
>          value="org.postgresql.Driver" />
>          value="jdbc:postgresql://localhost:5432/example" />
>         
>         
>
>         
>         
>          value="database" />
>     
>
> 

-- 
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 Web Toolkit & postgreSql & HIBERNATE

2012-04-24 Thread Rob
Hi,

This post (GWT, Hibernate, HSQLDB, JPA) might help you on your way:

-> http://uptick.com.au/content/working-gwt-jpa-hibernate-and-hsqldb

Cheers
Rob

http://code.google.com/p/gwt-cx/


On Apr 24, 7:18 pm, alaa aadil  wrote:
> hello
>
> i create a data base with the PgAdmin3 of PostgreSql , and i want to
> get the informations from
>
> the data base table with the IDE "Eclipse".
>
> i installed the plugin of GWT on Eclipse , but i don't know how to use
> hiberbate and get information from the dataBase.
>
> please help me
>
> thanks
> best regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: Couple CSS questions

2012-04-24 Thread Alfredo Quiroga-Villamil
If you get a chance send out a screenshot of the computed style and regular
style after inspecting the input element in your dev console (firebug or
chrome dev tool, to the right of your previous screenshot).

There you can also in real time modify the element css property to get a
feel for what is going on.

A screenshot of that will help in this case to see if your css property was
actually added.

Regards,

Alfredo
On Apr 24, 2012 8:03 PM, "Mike Dee"  wrote:

> But the question remains, why doesn't changing the gwt-DateBox CSS affect
> the appearance of the DatabBox?  In my case, the standard.css was replaced
> with my own.  So, why aren't my changes having any effect?
>
> --
> 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/-/I8Heevutr0EJ.
> 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: Couple CSS questions

2012-04-24 Thread Mike Dee
But the question remains, why doesn't changing the gwt-DateBox CSS affect 
the appearance of the DatabBox?  In my case, the standard.css was replaced 
with my own.  So, why aren't my changes having any effect?

-- 
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/-/I8Heevutr0EJ.
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: DTO + GWT

2012-04-24 Thread Andy Stevko
I really recommend looking at objectify - the objects are capable of being
detached from the datastore and transferred to/from the client.

On Tue, Apr 24, 2012 at 9:25 AM, Stefan Ollinger wrote:

>  1:1 DTOs are not required. I think you can configure Dozer. You could for
> example create multiple views of your business model.
>
> Regards,
> Stefan
>
> Am 24.04.2012 11:10, schrieb Akram Moncer:
>
>  thinks a lot
>
>  i have a big model of database, and i have association between entities,
> do i have to create the same association between the DTO ?
>
> Le 24 avril 2012 09:52, Stefan Ollinger  a écrit :
>
>>  [image: Boxbe] 
>> google-web-toolkit@googlegroups.com is not on your Guest 
>> List| Approve
>> sender  | Approve
>> domain 
>>
>>  Hello Akram,
>>
>> Data Transfer Objects are just simple POJOs which are used to transfer
>> data to the client.
>> Take a look at Dozer to map data from your business objects to DTOs:
>> http://dozer.sourceforge.net/documentation/about.html
>>
>> Regards,
>> Stefan
>>
>> Am 24.04.2012 10:30, schrieb Akram Moncer:
>>
>> hello every body;
>>
>>
>>  i created a web application with GWT and for persistence i use the
>> google app engine datastore but , to transfert data between server and
>> client i should use DTO(data transfert object) 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
>>
>>
>>
>>
>>  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.
>>
>>
>>  --
>> 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.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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-24 Thread Qian Qiao
On Apr 25, 2012 3:46 AM, "James Wendel"  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...

-- 
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-24 Thread Joseph Lust
I've run into this exact problem before, but not while using GWT. I found 
that for XHR's, Post 1 must return before Post 2 can return. I'm not sure 
why this it, but it seems to be the case at least on FF and Chrome.

My use case was to:

   - Post 1 - start a long running task
   - Post 2 - Check on state of long running application (repeat on timer)
   - Post 1 finally returns.

I had to work around with setting a work queue in a database and then 
checking it with a cron job (it was PHP, so no persistent 
global synchronized lists like in Java), but I'd love to know why this 
works this way. I just assume it is some browser quirk.

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/-/zl-Eh8pSmhcJ.
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.



Can UI components be tested through JUnit/GWTTestCase?

2012-04-24 Thread King_V
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?

Thanks.

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



Re: How to set default textbox on form?

2012-04-24 Thread Blake McBride
Works if I change:

theTextBox.focus();

into:

theTextBox.setFocus(true);

Thanks!!

Blake McBride



On Tue, Apr 24, 2012 at 5:13 AM, Thomas Broyer  wrote:

>
> On Tuesday, April 24, 2012 4:15:35 AM UTC+2, Blake wrote:
>>
>> Greetings,
>>
>> Is there a way to set which widget (usually a certain textbox) that
>> should be the default widget with focus when a new form appears?  Basically
>> when the new form appears, if the user just starts typing, the input should
>> appear in the widget that was specified as the one with the default focus.
>>
>
> When you're showing the form:
> Scheduler.get().scheduleDeferred(new ScheduledCommand() {
>@Override
>public void execute() {
>   theTextBox.focus();
>}
> });
>
>  --
> 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/-/R7RfvP3PGBQJ.
>
> 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-24 Thread Alan Leung
I am working on it :)

On Tue, Apr 24, 2012 at 12:46 PM, James Wendel  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.
>
> On Apr 24, 2:40 pm, Qian Qiao  wrote:
> > On Apr 25, 2012 3:00 AM, "James Wendel"  wrote:
> >
> > > Looks like Firefox 12 was released:
> >
> > http://www.mozilla.org/en-US/firefox/all.html
> >
> >
> >
> > > Any word on getting a GWT plugin that is compatible with it?
> >
> > > Thanks,
> > > -James
> >
> > This question gets asked every time when there's a new Firefox release.
> >
> > Please search the list for similar topics on Firefox 5/6/7/8/9/10/11 and
> > swap 12 for the version number.
> >
> > -- Joe
>
> --
> 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-24 Thread Gal Dolber
Fuck that, someone send a death threat to Ray
Cromwell to
release the super draft mode!

.. just joking (not really)

On Tue, Apr 24, 2012 at 4:46 PM, James Wendel  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.
>
> On Apr 24, 2:40 pm, Qian Qiao  wrote:
> > On Apr 25, 2012 3:00 AM, "James Wendel"  wrote:
> >
> > > Looks like Firefox 12 was released:
> >
> > http://www.mozilla.org/en-US/firefox/all.html
> >
> >
> >
> > > Any word on getting a GWT plugin that is compatible with it?
> >
> > > Thanks,
> > > -James
> >
> > This question gets asked every time when there's a new Firefox release.
> >
> > Please search the list for similar topics on Firefox 5/6/7/8/9/10/11 and
> > swap 12 for the version number.
> >
> > -- Joe
>
> --
> 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.
>
>


-- 
Guit: beautiful gwt applications

https://github.com/galdolber/Guit

-- 
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-24 Thread James Wendel
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.

On Apr 24, 2:40 pm, Qian Qiao  wrote:
> On Apr 25, 2012 3:00 AM, "James Wendel"  wrote:
>
> > Looks like Firefox 12 was released:
>
> http://www.mozilla.org/en-US/firefox/all.html
>
>
>
> > Any word on getting a GWT plugin that is compatible with it?
>
> > Thanks,
> > -James
>
> This question gets asked every time when there's a new Firefox release.
>
> Please search the list for similar topics on Firefox 5/6/7/8/9/10/11 and
> swap 12 for the version number.
>
> -- Joe

-- 
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-24 Thread Qian Qiao
On Apr 25, 2012 3:00 AM, "James Wendel"  wrote:
>
> Looks like Firefox 12 was released:
http://www.mozilla.org/en-US/firefox/all.html
>
> Any word on getting a GWT plugin that is compatible with it?
>
> Thanks,
> -James

This question gets asked every time when there's a new Firefox release.

Please search the list for similar topics on Firefox 5/6/7/8/9/10/11 and
swap 12 for the version number.

-- Joe

-- 
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: how to avoid mulitple dilogbox opening from the parent window

2012-04-24 Thread Andrei
Add .setGlassEnabled to your dialog boxes.

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



Firefox 12 release

2012-04-24 Thread James Wendel
Looks like Firefox 12 was released: 
http://www.mozilla.org/en-US/firefox/all.html

Any word on getting a GWT plugin that is compatible with it?

Thanks,
-James

-- 
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-24 Thread Jens
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/-/Eer70O4IEDIJ.
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: how to avoid mulitple dilogbox opening from the parent window

2012-04-24 Thread Thad
You could create one dialog and four widgets that are the dialog content. 
When the label is clicked, call setWidget() for the desired contents (and 
setText() if desired) then call show() to show the dialog (in case it's not 
already visible).

On Tuesday, April 24, 2012 7:25:59 AM UTC-4, Dayananda B V wrote:
>
> Hi All, 
>
> I have 4 labels in parent window for each label i need to open a 
> dilogbox, if a dilogbox already open, the remaing 3 lablels click 
> should not open dilogbox. i have set setModel(true) in dilogbox, 
> however i can still click on parent window labels, which opens 
> dilogbox. Is there any way to make parent window readable. 
> appreciate your help. 
>
> Thanks 
> Daya 
>
>

-- 
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/-/HA3wVL1MKjcJ.
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: Couple CSS questions

2012-04-24 Thread Michael Allan
Adolfo Panizo Touzon said:
> ... I think you have two options to solve this:
> 
>- One is adding* !important* (in order to overwrite the custom
>css for the datePicker) to your css rules.
>- The other one is create your custom * DatePickerStyle.css *and
>add it to your DatePicker class*.*

Another option is to increase the specificity of your CSS selector, so
that it takes precedence over Google's built-in style rules.  My own
notes on GWT styling are located here, in case you find them useful:
http://zelea.com/project/votorola/a/web/context/web/gwt.css

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/


> 2012/4/24 Mike Dee 
> 
> > How is this for a strategy of tweaking the look of many of the GWT widgets
> > across an entire app?  Copy standard.css into the project and name it
> > MyApp.css.  Reference MyApp.css in the ClientBundle, like this:
> >
> > public interface MyAppResources extends ClientBundle
> > {
> > ...
> > @Source( "com/myapp/client/resources/MyApp.css" )
> > @CssResource.NotStrict
> > public MyAppStyles css();
> > ...
> > }
> >
> > And then just tweak the CSS in MyApp.css?
> >
> > That leads to the second question.  So far, this strategy seems to work
> > fine.  However, I'm having trouble with the DateBox.  I simply want the
> > input area associated with the DateBox to have a smaller font size.  So I
> > change this:
> >
> > .gwt-DateBox input {
> >   width: 8em;
> > }
> >
> > to this:
> >
> > .gwt-DateBox input {
> >   width: 8em;
> >   font-size: 8pt;
> > }
> >
> > Seems to have no effect (see attached screenshot).  Looking at the CSS in
> > Chrome (inspect element), the input item is definitely tagged as
> > ".gwt-DateBox".  Any ideas?

-- 
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-24 Thread Chris Price
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 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: Re: Huge data slowing down Celltable

2012-04-24 Thread Jens

>
>  Any sugestions on how to make the serialization/deserialization run 
> faster ??
>

Use pure JSON with overlay types (almost no overhead) and if its still too 
slow for you then you have to fetch your data in smaller chunks.

-- 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/-/RvdLRclONNMJ.
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: Window.open() opens as a popup

2012-04-24 Thread Jens
You have to make sure that you directly call Window.open() in the 
ClickHandler. Don't to it in a Timer, deferred command or similar inside 
the ClickHandler. The Browser must recognize that Window.open() is directly 
called because of a user action. It does not matter if its a Button or an 
Anchor.
Also don't do Window.open() somewhere deep in a sub function called inside 
the ClickHandler.

Something like the following will work:

Button b = new Button("Test");
b.addClickHandler(new ClickHandler() {
  void onClick(ClickEvent e) {
Window.open("http://www.google.de";, "_blank", "");
  }
});

If you wrap Window.open() for example in a Timer it won't work anymore.

-- 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/-/AgiBk4VnjUEJ.
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: Window.open() opens as a popup

2012-04-24 Thread Deepak Singh
Still no luck.

Any solution pls.

On Mon, Apr 23, 2012 at 3:07 AM, Deepak Singh wrote:

> But same thing i am doing with button click handler instead a link.
>
> User clicks on a button, i perform some task and the open the new window
> inside click handler of button.
>
> Does it make any difference in case of click handler of a link instead of
> button ?
>
>
> On Mon, Apr 23, 2012 at 2:20 AM, Jens  wrote:
>
>> A popup blocker will always jump in if you execute window.open() without
>> direct user interaction. If you want to avoid a popup blocker you have to
>> provide a link the user can click on and inside the click handler open the
>> new window.
>>
>> Beside that, you can't force the browser to open a new tab through
>> javascript. Its a user specific setting inside the browser.
>>
>> CSS3 seems to provide something in this direction but its not supported
>> in any browser: http://www.w3schools.com/cssref/css3_pr_target-new.asp
>>
>> -- J.
>>
>>
>> Am Sonntag, 22. April 2012 20:27:51 UTC+2 schrieb Deepak Singh:
>>
>>> Hi,
>>>
>>> I am using Window.open('Url', "_blank", "");
>>>
>>> It always opens the new window as popup. I want this to be opened as a
>>> new tab, browser window. It should not react with popup blocker anymore.
>>>
>>> How can i achieve this one ?
>>>
>>>
>>> Thanks
>>> Deepak Singh
>>>
>>  --
>> 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/-/MX73-2UWBvsJ.
>> 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.
>>
>
>
>
> --
> Deepak Singh
>



-- 
Deepak Singh

-- 
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: DTO + GWT

2012-04-24 Thread Stefan Ollinger
1:1 DTOs are not required. I think you can configure Dozer. You could 
for example create multiple views of your business model.


Regards,
Stefan

Am 24.04.2012 11:10, schrieb Akram Moncer:

thinks a lot

i have a big model of database, and i have association between 
entities, do i have to create the same association between the DTO ?


Le 24 avril 2012 09:52, Stefan Ollinger > a écrit :


Boxbe 
google-web-toolkit@googlegroups.com
 is not on your Guest
List  | Approve sender
 | Approve
domain 

Hello Akram,

Data Transfer Objects are just simple POJOs which are used to
transfer data to the client.
Take a look at Dozer to map data from your business objects to
DTOs: http://dozer.sourceforge.net/documentation/about.html

Regards,
Stefan

Am 24.04.2012  10:30, schrieb Akram Moncer:

hello every body;


i created a web application with GWT and for persistence i use
the google app engine datastore but , to transfert data between
server and client i should use DTO(data transfert object) 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




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.


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


--
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: Developers.google.com

2012-04-24 Thread emurmur
I can't find any link to GWT at all, not even from the open source
page.  I have to say, this developer site is prettier than
code.google.com, but it's not nearly as useful.

On Apr 23, 6:55 am, Patrice De Saint Steban
 wrote:
> Hello,
>
> There a new developers website for all APIs for Google 
> :http://developers.google.com, and the documentation website of GWT has
> migrated on the new website :http://developers.google.com/web-toolkit/
>
> But there are no links for GWT on the first page of the news developers
> page, you must know the URL or click on the page "Open Source" 
> :http://code.google.com/intl/fr/opensource/
>
> It is an oversight?
>
> Patrice

-- 
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: ScrollPanel and DisclosurePanel

2012-04-24 Thread Jens
No, but SimpleLayoutPanel is.

-- J.


Am Dienstag, 24. April 2012 17:25:32 UTC+2 schrieb tong123123:
>
> is SimplePanel a kind of LayoutPanel?
>
> On Tuesday, April 24, 2012 7:01:03 PM UTC+8, Jens wrote:
>>
>> I have a DockLayoutPanel, inside the DockLayoutPanel there is some 
>>> FlowPanel plus many DisclosurePanel, I want the content inside the 
>>> DockLayoutPanel can scroll when many of these DisclosurePanel are expanded, 
>>> how to achieve this?
>>>
>>
>> Use a ScrollPanel inside the DockLayoutPanel and put your FlowPanel into 
>> that ScrollPanel...
>>  
>>
>>> and I found that if I set DockLayoutPanel height to 100%, the 
>>> DockLayoutPanel cannot show anything, it must use a numeric unit like 
>>> setHeight("720px"); why?
>>>
>>
>> Have you put your DockLayoutPanel inside the RootLayoutPanel or in any 
>> other LayoutPanel? If you do so, you won't need to specify any heights as 
>> they always fill the available area by default.
>>
>> Setting the height to 100% only works if the parent element has a size 
>> (and thats maybe not given in your structure) whereas setting the height as 
>> fixed pixels works without this requirement.
>>
>> -- 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/-/94__Inusox8J.
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: Re: Huge data slowing down Celltable

2012-04-24 Thread Jacob Glusted Madsen
I am having the same type of problem - fetching and displaying  huge amount 
of data via RPC (displayed in a celltable) runs extremly slow.
Our analysis indicates, that  it is the  serialization/deserialization that 
causes the problem.
The rendering of the celltable is actually extremly fast, at least if you 
are using a pager !!

 Any sugestions on how to make the serialization/deserialization run faster 
??

Den tirsdag den 7. juni 2011 21.18.47 UTC+2 skrev federico:
>
> are you sure that the bottleneck is the display of the data??
> if you are making rpc calls to get the 8000 data to display the critical 
> poit could be the rpc deserialization. try to create random data on the 
> client to check this.
>

-- 
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/-/rd9nFA9WZ1oJ.
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: ScrollPanel and DisclosurePanel

2012-04-24 Thread tong123123
is SimplePanel a kind of LayoutPanel?

On Tuesday, April 24, 2012 7:01:03 PM UTC+8, Jens wrote:
>
> I have a DockLayoutPanel, inside the DockLayoutPanel there is some 
>> FlowPanel plus many DisclosurePanel, I want the content inside the 
>> DockLayoutPanel can scroll when many of these DisclosurePanel are expanded, 
>> how to achieve this?
>>
>
> Use a ScrollPanel inside the DockLayoutPanel and put your FlowPanel into 
> that ScrollPanel...
>  
>
>> and I found that if I set DockLayoutPanel height to 100%, the 
>> DockLayoutPanel cannot show anything, it must use a numeric unit like 
>> setHeight("720px"); why?
>>
>
> Have you put your DockLayoutPanel inside the RootLayoutPanel or in any 
> other LayoutPanel? If you do so, you won't need to specify any heights as 
> they always fill the available area by default.
>
> Setting the height to 100% only works if the parent element has a size 
> (and thats maybe not given in your structure) whereas setting the height as 
> fixed pixels works without this requirement.
>
> -- 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/-/Vy96yozjlGMJ.
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.



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

2012-04-24 Thread tanteanni
Since approximately one year i am coding with gwt and MVP pattern (also 
using "Activity" and "Places") . The VP-Part was never a big Problem. But i 
often stumbled over getting a "model" for current place or generally how to 
get from Place  to Model->Activity->View.
My main problem is that on start of an activity the model is mapped into a 
String (token of a place) and must be "resolved" to data objects (i.e. 
userId to userObject) . i think that is the main difference between 
"classic" MVP using an EventBus or other means to communicate state changes 
(via "real" objects) and A&P-based MVP that knows only two states: the 
current place.getWhere() and the next goTo(new Place) - each mapped to/from 
String mapped.
So whats the point: So far i tried many approaches to "resolve" the state, 
but all feels wrong:
The simplest is to  let the activity resolve the state by calling the 
needed async-services (to get an user for an userId). But as soon as two 
activity share the same place/model this code must be copied - bad. The 
other stuff i tried was even worse - my last 
attempt
 (also 
asked 
here)
 
didn't work.

My question is: What is best/good practice to implement such a state 
resolver classes? Are there any examples (Place->Model->Place)?

-- 
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/-/mEWYIcPRsosJ.
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-24 Thread Alan Chaney

Interesting question... see comments below

On 4/23/2012 2:20 PM, LogicalGoetz wrote:

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.  Is this the nature of Java
servlets, my client application (firefox), the http specification, or
possibly a coding blunder on my part?


for each post there should be a response  = that's the http specification.

There is no limit in the java servlet spec to the number of simultaneous 
requests. A server is normally expected to queue requests or reject them 
("temporarily unavailable") but for each request there is still a 
response - otherwise you'd get a timeout ("server not responding")


The servlet spec does provide alternative mechanisms for scheduling. A 
good design will always assume that many requests can be concurrently 
occurring and handle that accordingly - for example by using stateless 
objects and transactional data stores. Avoid synchronous servlets like 
the plague.


Either you are somehow *not* generating more than one post or you are 
getting more than one response and overwriting the results.


Try:
1. watching the request/response with firebug or similar and do some 
console logging of state in your client

2. Add some debugging output to the servlet to see whats happening there.

Then study the results and determine the causality! At least, that's 
what I'd do.


HTH

Alan




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.



automatically unsinking event when no hanlders present ?

2012-04-24 Thread Ed
Hi,
GWT automatically sinks the required event type when the first handlers is 
added of certain event type (done in Widget class).

Whay about automatically unsinking when a handler is remove and you notice 
that no handlers of that event type is present anymore?
Is this worth doing?

Note in my case setup it's easy to wrap the HandlerRegistration and detect 
if any handler is still present on a removeHandler action, but is this 
worth doing?
So is the cost of wrapping and detecting worth it?

- Ed

-- 
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/-/xHeH0L2LPdMJ.
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: Couple CSS questions

2012-04-24 Thread Adolfo Panizo Touzon
I agree, my first solution is quicker and easier but less efficient. My
second solution is the same as Patrick said, but Patrick has explained much
more better.

It's up to you.

Thx @Patrick for the clarification.

2012/4/24 Patrick Tucker 

> I generally copy the whole theme and make my changes to the css files.
> Then in the module inherit my copied theme instead of the GWT theme.
>
> This way the user does not  have to load 2 different copies of any
> modified CSS rules.
>
> On Monday, April 23, 2012 9:03:15 PM UTC-4, Mike Dee wrote:
>
>> How is this for a strategy of tweaking the look of many of the GWT
>> widgets across an entire app?  Copy standard.css into the project and name
>> it MyApp.css.  Reference MyApp.css in the ClientBundle, like this:
>>
>> public interface MyAppResources extends ClientBundle
>> {
>> ...
>> @Source( "com/myapp/client/resources/**MyApp.css" )
>> @CssResource.NotStrict
>> public MyAppStyles css();
>> ...
>> }
>>
>> And then just tweak the CSS in MyApp.css?
>>
>> That leads to the second question.  So far, this strategy seems to work
>> fine.  However, I'm having trouble with the DateBox.  I simply want the
>> input area associated with the DateBox to have a smaller font size.  So I
>> change this:
>>
>> .gwt-DateBox input {
>>   width: 8em;
>> }
>>
>> to this:
>>
>> .gwt-DateBox input {
>>   width: 8em;
>>   font-size: 8pt;
>> }
>>
>> Seems to have no effect (see attached screenshot).  Looking at the CSS in
>> Chrome (inspect element), the input item is definitely tagged as
>> ".gwt-DateBox".  Any ideas?
>>
>  --
> 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/-/I79A5aBoOcEJ.
>
> 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.
>



-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: how to make an (load)image overlay an panel

2012-04-24 Thread tanteanni
in meantime i got answer on stackoverflow that fits very well (didn't tried 
it yet):  
http://stackoverflow.com/questions/10296712/how-to-make-an-loadimage-overlay-a-panel
 

On Tuesday, 24 April 2012 15:45:56 UTC+2, l.denardo wrote:
>
> Two simple ptions (forgive me if they're too basic): 
>
> *Your widgets to be activated are likely FocusWidgets: simply register 
> them in a collection while you build your GUI and iterate over that to 
> activate-deactivate them all 
>
> *Use a (modal, if you don't want the background to be clickable) 
> PopupPanel or DialogBox with the load image you prefer: set a primary 
> style name to the widget using setStylePrimaryName(String name), add 
> that to your CSS and adust the CSS properties to have no border and a 
> transparent background, then center() / hide() your popup before and 
> after load. 
>
> regards 
> Lorenzo 
>
> On Apr 24, 1:26 pm, tanteanni  wrote: 
> > thx 
> > 
> > but i need complete deactivation of specific widgets - so this i have to 
> do 
> > "manually"? Since i don't use uiBinder how would such an view look like 
> > written in java ? 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Tuesday, 24 April 2012 13:20:42 UTC+2, Jens wrote: 
> > 
> > > in my app i have some interactive widgets but while loading data from 
> > >> server this widgets must be inactivated and activated again after 
> loading 
> > >> is complete. i don't want to make the widgets invisible or inactivate 
> every 
> > >> single field/button. 
> > >> the best solution would be a transparent panel with an loading image 
> in 
> > >> its center or corner overlaying the widgets while loading - but how 
> to 
> > >> achieve that? 
> > 
> > > If you only want to overlay specific parts of your app (a complete 
> overlay 
> > > would be a PopupPanel with glass panel active), I would probably 
> create a 
> > > simple UiBinder view based on HTML (give it an absolute position with 
> > > top,left,bottom,right being 0) and then just append/remove it to/from 
> the 
> > > appropriate parent element. The parent element should have a 
> > > position:relative applied. 
> > 
> > > But this only will disallow mouse events.. you can still tab through 
> the 
> > > controls and activate them using the keyboard I think. 
> > 
> > > -- 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/-/_cHlcDxwra0J.
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: Couple CSS questions

2012-04-24 Thread Patrick Tucker
I generally copy the whole theme and make my changes to the css files.  
Then in the module inherit my copied theme instead of the GWT theme.
 
This way the user does not  have to load 2 different copies of any modified 
CSS rules.

On Monday, April 23, 2012 9:03:15 PM UTC-4, Mike Dee wrote:

> How is this for a strategy of tweaking the look of many of the GWT widgets 
> across an entire app?  Copy standard.css into the project and name it 
> MyApp.css.  Reference MyApp.css in the ClientBundle, like this:
>
> public interface MyAppResources extends ClientBundle
> {
> ...
> @Source( "com/myapp/client/resources/MyApp.css" )
> @CssResource.NotStrict
> public MyAppStyles css();
> ...
> }
>
> And then just tweak the CSS in MyApp.css?
>
> That leads to the second question.  So far, this strategy seems to work 
> fine.  However, I'm having trouble with the DateBox.  I simply want the 
> input area associated with the DateBox to have a smaller font size.  So I 
> change this:
>
> .gwt-DateBox input {
>   width: 8em;
> }
>
> to this:
>
> .gwt-DateBox input {
>   width: 8em;
>   font-size: 8pt;
> }
>
> Seems to have no effect (see attached screenshot).  Looking at the CSS in 
> Chrome (inspect element), the input item is definitely tagged as 
> ".gwt-DateBox".  Any ideas?
>

-- 
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/-/I79A5aBoOcEJ.
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: How can I change the servlet-pattern for a GWT project

2012-04-24 Thread Jens
Normally you would have a @RemoteServiceRelativePath annotation on your 
GWT-RPC service. This tells the generated RPC classes to access the service 
under GWT.getModuleBaseURL() + RemoteServiceRelativePath#value(). If you 
are not fine with this default structure you can remove the annotation and 
after you have GWT.create'd the service just cast it to ServiceDefTarget 
and call setServiceEntryPoint(...) to set a custom path.

If you use RequestFactory you have to create a sub class of 
DefaultRequestTransport, overwrite getRequestUrl() and initialize your 
RequestFactory with this custom RequestTransport.

-- J.


Am Montag, 23. April 2012 20:40:07 UTC+2 schrieb mgkind:
>
> Hi 
> I need to change the default servlet-mapping in my GWT project. 
> for example when I create a GWT project in eclipse it makes the url 
> patter of the GWT servlet in (web.xml file) based on the name of the 
> project; and the clients RPC request are set to go that url I guess! 
> But for some reason I would like to change the url-pattern of the 
> servlet (because of deployment issues). So the problem is when I 
> change that I need to change something in the client that all requests 
> refer to the new adress. 
>
> Do I need to set something in gwt.xml file ?! it seems that there 
> should be some simple way somewhere to do this setting! I don't know 
> where I should indicate this. 
> Can anybody help me on that please. 
>
> Thanks 
>

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



Re: gwt 2.2-M1 bug in CellTree

2012-04-24 Thread P.G.Taboada
Wow. Is this problem still around?!?

On Friday, January 28, 2011 7:19:15 AM UTC+1, Torgeir wrote:
>
> With GWT-2.2-M1, if you expand the root node of a cellTree before the 
> viewModel has any data, it's impossible to expand the root node later. The 
> onOpen() method of an OpenHandler is called, but the node is not actually 
> expanded.
>

-- 
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/-/scbqdSLGX-kJ.
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.



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

2012-04-24 Thread tanteanni
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.



Re: how to make an (load)image overlay an panel

2012-04-24 Thread l.denardo
Two simple ptions (forgive me if they're too basic):

*Your widgets to be activated are likely FocusWidgets: simply register
them in a collection while you build your GUI and iterate over that to
activate-deactivate them all

*Use a (modal, if you don't want the background to be clickable)
PopupPanel or DialogBox with the load image you prefer: set a primary
style name to the widget using setStylePrimaryName(String name), add
that to your CSS and adust the CSS properties to have no border and a
transparent background, then center() / hide() your popup before and
after load.

regards
Lorenzo

On Apr 24, 1:26 pm, tanteanni  wrote:
> thx
>
> but i need complete deactivation of specific widgets - so this i have to do
> "manually"? Since i don't use uiBinder how would such an view look like
> written in java ?
>
>
>
>
>
>
>
> On Tuesday, 24 April 2012 13:20:42 UTC+2, Jens wrote:
>
> > in my app i have some interactive widgets but while loading data from
> >> server this widgets must be inactivated and activated again after loading
> >> is complete. i don't want to make the widgets invisible or inactivate every
> >> single field/button.
> >> the best solution would be a transparent panel with an loading image in
> >> its center or corner overlaying the widgets while loading - but how to
> >> achieve that?
>
> > If you only want to overlay specific parts of your app (a complete overlay
> > would be a PopupPanel with glass panel active), I would probably create a
> > simple UiBinder view based on HTML (give it an absolute position with
> > top,left,bottom,right being 0) and then just append/remove it to/from the
> > appropriate parent element. The parent element should have a
> > position:relative applied.
>
> > But this only will disallow mouse events.. you can still tab through the
> > controls and activate them using the keyboard I think.
>
> > -- J.

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



Re: URGENT-Generating gwt web pages

2012-04-24 Thread vanessa vanessa
You mean the existing Generation tools of GWT ... i have to implement a
generator using a template engine
the existing tools don't fit my needs.

Le 24 avril 2012 13:10, Martin Trummer  a
écrit :

> >I have a model which contains data(an xmile file) which i've
> already converted to a model object.
> and why don't you use this existing generation process to also generate
> the packages, that you mention?
>
> --
> 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/-/CdVeBm8VFgoJ.
>
> 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: Couple CSS questions

2012-04-24 Thread Adolfo Panizo Touzon
Hi Mike,

I had a similar problem long time ago, I'm not sure, but I think you have
two options to solve this:


   - One is adding* !important* (in order to overwrite the custom css for
   the datePicker) to your css rules.
   - The other one is create your custom * DatePickerStyle.css  *and add it
   to your DatePicker class*.*

My 2 cents,

Adolfo.

2012/4/24 Mike Dee 

> How is this for a strategy of tweaking the look of many of the GWT widgets
> across an entire app?  Copy standard.css into the project and name it
> MyApp.css.  Reference MyApp.css in the ClientBundle, like this:
>
> public interface MyAppResources extends ClientBundle
> {
> ...
> @Source( "com/myapp/client/resources/MyApp.css" )
> @CssResource.NotStrict
> public MyAppStyles css();
> ...
> }
>
> And then just tweak the CSS in MyApp.css?
>
> That leads to the second question.  So far, this strategy seems to work
> fine.  However, I'm having trouble with the DateBox.  I simply want the
> input area associated with the DateBox to have a smaller font size.  So I
> change this:
>
> .gwt-DateBox input {
>   width: 8em;
> }
>
> to this:
>
> .gwt-DateBox input {
>   width: 8em;
>   font-size: 8pt;
> }
>
> Seems to have no effect (see attached screenshot).  Looking at the CSS in
> Chrome (inspect element), the input item is definitely tagged as
> ".gwt-DateBox".  Any ideas?
>
>  --
> 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/-/2p7A3bJjRHsJ.
> 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.
>



-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: SafeUri can not be used as SafeHtml??

2012-04-24 Thread Patrick Tucker
I don't want to make a big fuss about it, I just thought it was odd that 
GWT would restrict something that is valid and I thought was common.

On Monday, April 23, 2012 8:49:08 PM UTC-4, Thomas Broyer wrote:

>
>
> On Monday, April 23, 2012 10:43:50 PM UTC+2, Patrick Tucker wrote:
>>
>> Well that stinks.  Seems like a warning would suffice, allowing those 
>> that did it on purpose to be able to do it and those who did it on accident 
>> to fix it.
>> Is there somethinng that can be done to allow us to do this?   Maybe 
>> another class that is both a SafeHtml and SafeUri that can be used in both 
>> places?
>>
>
> Well, I suppose we can bring the discussion to GWT-Contributors and see if 
> John is OK to change it to a warning in retrospect. 
>

-- 
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/-/aDoTlIneEjAJ.
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 Web Toolkit & postgreSql & HIBERNATE

2012-04-24 Thread Harpal Grover
There are various tutorials on hibernate which can be found using google.

Once you're comfortable with hibernate you can opt to use JPA or Gilead or
RequestFactory with GWT. Each of these approaches have their
strentghs/drawbacks. There are many post available in the GWT group which
provide insight into this.

-- 
Harpal Grover
President
*Harpal Grover Consulting LLC*


On Tue, Apr 24, 2012 at 5:18 AM, alaa aadil  wrote:

> hello
>
> i create a data base with the PgAdmin3 of PostgreSql , and i want to
> get the informations from
>
> the data base table with the IDE "Eclipse".
>
> i installed the plugin of GWT on Eclipse , but i don't know how to use
> hiberbate and get information from the dataBase.
>
> please help me
>
> thanks
> best regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-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.



Novice GWT question: Parallel Post Requests

2012-04-24 Thread LogicalGoetz
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.  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.



How can I change the servlet-pattern for a GWT project

2012-04-24 Thread mgkind
Hi
I need to change the default servlet-mapping in my GWT project.
for example when I create a GWT project in eclipse it makes the url
patter of the GWT servlet in (web.xml file) based on the name of the
project; and the clients RPC request are set to go that url I guess!
But for some reason I would like to change the url-pattern of the
servlet (because of deployment issues). So the problem is when I
change that I need to change something in the client that all requests
refer to the new adress.

Do I need to set something in gwt.xml file ?! it seems that there
should be some simple way somewhere to do this setting! I don't know
where I should indicate this.
Can anybody help me on that please.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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.



ListEditor and driver.flush

2012-04-24 Thread Vasi , Sándor
Hi Guys,
I have a little problem with the Editor framework.

I have a big proxy (called myBigProxy ) that i am editing with multiple
Editors.
Most of the Editors work fine, but there is one ListEditor that does not
really work.

When i call the driver.flush() on it's parent editor, it returns with the
updated myBigProxy, but does not contains the changes my ListEditor added
to it.
I told, OK, if it does not work that way, then i will add the list manually
to the proxy like this:

myBigProxy.setMyList( listeditordriver.flush ) ;

The problem is, whit this that when i continue editing the myBigProxy with
other Sub-Editor after i've "hacked" my list into the proxy, i get a
nullPointerException like this:


Caused by: java.lang.NullPointerException: null
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl.doEncode(AutoBeanCodexImpl.java:558)
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$ObjectCoder.encode(AutoBeanCodexImpl.java:321)
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$CollectionCoder.encode(AutoBeanCodexImpl.java:163)
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$PropertyGetter.encodeProperty(AutoBeanCodexImpl.java:413)
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$PropertyGetter.visitReferenceProperty(AutoBeanCodexImpl.java:389)
at
com.google.web.bindery.autobean.shared.AutoBeanVisitor.visitCollectionProperty(AutoBeanVisitor.java:229)
at
com.mypackage.shared.model.MyBigProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.traverseProperties(ImportConfigProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.java:390)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101)
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl.doEncode(AutoBeanCodexImpl.java:558)
at
com.google.web.bindery.autobean.shared.AutoBeanCodex.encode(AutoBeanCodex.java:83)


It seems for me that the editor framework does not really like when i
"hack" the proxy by adding and removing or updating fields within it and do
not use the driver.edit and driver.flush methods. Is that right? What magic
does the Editor driver with the proxies and how does it recognize if i have
added or removed fields manually?

Regards,
Sandor

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



Google Web Toolkit & postgreSql & HIBERNATE

2012-04-24 Thread alaa aadil
hello

i create a data base with the PgAdmin3 of PostgreSql , and i want to
get the informations from

the data base table with the IDE "Eclipse".

i installed the plugin of GWT on Eclipse , but i don't know how to use
hiberbate and get information from the dataBase.

please help me

thanks
best regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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.



Disable TreeItem selection in Tree

2012-04-24 Thread Syed Fazal Ahmad
Hi There:

I have created a Tree and have added the TreeItems to it. I would like
to disable selection of certain nodes depending on my business rules.
However, I have not been able disable selection of a given node. If I
could even gray-out the node it would be helpful. I will appreciate if
someone could provide insight on how to achieve the above.

Thanks for your help
Syed

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



where to place persistence.xml in an eclipse gwt project?

2012-04-24 Thread Mr.S
I am trying to get eclipselink working with GWT's requestfactory. I
keep getting the following error:

Caused by: java.lang.RuntimeException: Server Error: No Persistence
provider for EntityManager named default

Reading around the web, it seems that persistence.xml must live in WEB-
INF/classes/META-INF/. I tried creating a folder under src/META-INF
and placing persistence.xml in it, but it does not get included in war/
WEB-INF/classes/ when I build the project in eclipse. Any suggestions?
I am using GWT 2.3, EclipseLink 2.3, and eclipse 3.7. How can I get
eclipse to include persistence.xml into the right location?

persistence.xml

 http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd";
version="2.0" xmlns="http://java.sun.com/xml/ns/persistence";>


org.eclipse.persistence.jpa.PersistenceProvider

com.manning.gwtia.ch08.v2.server.Contact














-- 
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: URGENT-Generating gwt web pages

2012-04-24 Thread Martin Trummer
>I have a model which contains data(an xmile file) which i've 
already converted to a model object.
and why don't you use this existing generation process to also generate the 
packages, that you mention?

-- 
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/-/CdVeBm8VFgoJ.
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: how to make an (load)image overlay an panel

2012-04-24 Thread tanteanni
thx

but i need complete deactivation of specific widgets - so this i have to do 
"manually"? Since i don't use uiBinder how would such an view look like 
written in java ? 

On Tuesday, 24 April 2012 13:20:42 UTC+2, Jens wrote:
>
> in my app i have some interactive widgets but while loading data from 
>> server this widgets must be inactivated and activated again after loading 
>> is complete. i don't want to make the widgets invisible or inactivate every 
>> single field/button. 
>> the best solution would be a transparent panel with an loading image in 
>> its center or corner overlaying the widgets while loading - but how to 
>> achieve that?
>>
>
> If you only want to overlay specific parts of your app (a complete overlay 
> would be a PopupPanel with glass panel active), I would probably create a 
> simple UiBinder view based on HTML (give it an absolute position with 
> top,left,bottom,right being 0) and then just append/remove it to/from the 
> appropriate parent element. The parent element should have a 
> position:relative applied. 
>
> But this only will disallow mouse events.. you can still tab through the 
> controls and activate them using the keyboard I think.
>
> -- 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/-/dtUbvsvClH4J.
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 avoid mulitple dilogbox opening from the parent window

2012-04-24 Thread Dayananda B V
Hi All,

I have 4 labels in parent window for each label i need to open a
dilogbox, if a dilogbox already open, the remaing 3 lablels click
should not open dilogbox. i have set setModel(true) in dilogbox,
however i can still click on parent window labels, which opens
dilogbox. Is there any way to make parent window readable.
appreciate your help.

Thanks
Daya

-- 
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: how to make an (load)image overlay an panel

2012-04-24 Thread Jens

>
> in my app i have some interactive widgets but while loading data from 
> server this widgets must be inactivated and activated again after loading 
> is complete. i don't want to make the widgets invisible or inactivate every 
> single field/button. 
> the best solution would be a transparent panel with an loading image in 
> its center or corner overlaying the widgets while loading - but how to 
> achieve that?
>

If you only want to overlay specific parts of your app (a complete overlay 
would be a PopupPanel with glass panel active), I would probably create a 
simple UiBinder view based on HTML (give it an absolute position with 
top,left,bottom,right being 0) and then just append/remove it to/from the 
appropriate parent element. The parent element should have a 
position:relative applied. 

But this only will disallow mouse events.. you can still tab through the 
controls and activate them using the keyboard I think.

-- 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/-/BrOeqrCyfjgJ.
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 an (load)image overlay an panel

2012-04-24 Thread tanteanni
in my app i have some interactive widgets but while loading data from 
server this widgets must be inactivated and activated again after loading 
is complete. i don't want to make the widgets invisible or inactivate every 
single field/button. 
the best solution would be a transparent panel with an loading image in its 
center or corner overlaying the widgets while loading - but how to achieve 
that?

-- 
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/-/iUGCBrBlDXEJ.
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: ScrollPanel and DisclosurePanel

2012-04-24 Thread Jens

>
> I have a DockLayoutPanel, inside the DockLayoutPanel there is some 
> FlowPanel plus many DisclosurePanel, I want the content inside the 
> DockLayoutPanel can scroll when many of these DisclosurePanel are expanded, 
> how to achieve this?
>

Use a ScrollPanel inside the DockLayoutPanel and put your FlowPanel into 
that ScrollPanel...
 

> and I found that if I set DockLayoutPanel height to 100%, the 
> DockLayoutPanel cannot show anything, it must use a numeric unit like 
> setHeight("720px"); why?
>

Have you put your DockLayoutPanel inside the RootLayoutPanel or in any 
other LayoutPanel? If you do so, you won't need to specify any heights as 
they always fill the available area by default.

Setting the height to 100% only works if the parent element has a size (and 
thats maybe not given in your structure) whereas setting the height as 
fixed pixels works without this requirement.

-- 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/-/8fdPEQ1qm-wJ.
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.



ScrollPanel and DisclosurePanel

2012-04-24 Thread tong123123
I have a DockLayoutPanel, inside the DockLayoutPanel there is some 
FlowPanel plus many DisclosurePanel, I want the content inside the 
DockLayoutPanel can scroll when many of these DisclosurePanel are expanded, 
how to achieve this?
and I found that if I set DockLayoutPanel height to 100%, the 
DockLayoutPanel cannot show anything, it must use a numeric unit like 
setHeight("720px"); why?

-- 
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/-/QKfdk_MPgQoJ.
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: How to set default textbox on form?

2012-04-24 Thread Thomas Broyer

On Tuesday, April 24, 2012 4:15:35 AM UTC+2, Blake wrote:
>
> Greetings,
>
> Is there a way to set which widget (usually a certain textbox) that should 
> be the default widget with focus when a new form appears?  Basically when 
> the new form appears, if the user just starts typing, the input should 
> appear in the widget that was specified as the one with the default focus.
>

When you're showing the form:
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
   @Override
   public void execute() {
  theTextBox.focus();
   }
});

-- 
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/-/R7RfvP3PGBQJ.
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: DTO + GWT

2012-04-24 Thread Akram Moncer
thinks a lot

i have a big model of database, and i have association between entities, do
i have to create the same association between the DTO ?

Le 24 avril 2012 09:52, Stefan Ollinger  a écrit :

>  [image: Boxbe] 
> google-web-toolkit@googlegroups.com is not on your Guest 
> List| Approve
> sender  | Approve
> domain 
>
>  Hello Akram,
>
> Data Transfer Objects are just simple POJOs which are used to transfer
> data to the client.
> Take a look at Dozer to map data from your business objects to DTOs:
> http://dozer.sourceforge.net/documentation/about.html
>
> Regards,
> Stefan
>
> Am 24.04.2012 10:30, schrieb Akram Moncer:
>
> hello every body;
>
>
>  i created a web application with GWT and for persistence i use the
> google app engine datastore but , to transfert data between server and
> client i should use DTO(data transfert object) 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
>
>
>
>
>  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.
>
>
>  --
> 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: DTO + GWT

2012-04-24 Thread Stefan Ollinger

Hello Akram,

Data Transfer Objects are just simple POJOs which are used to transfer 
data to the client.
Take a look at Dozer to map data from your business objects to DTOs: 
http://dozer.sourceforge.net/documentation/about.html


Regards,
Stefan

Am 24.04.2012 10:30, schrieb Akram Moncer:

hello every body;


i created a web application with GWT and for persistence i use the 
google app engine datastore but , to transfert data between server and 
client i should use DTO(data transfert object) 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





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.


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



DTO + GWT

2012-04-24 Thread Akram Moncer
hello every body;


i created a web application with GWT and for persistence i use the google
app engine datastore but , to transfert data between server and client i
should use DTO(data transfert object) 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




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.