SimpleRadioButton getValue() ?

2010-05-20 Thread bch...@gmail.com
Greetings,

I have the following snippet :

SimpleRadioButton r1 =
SimpleRadioButton.wrap(DOM.getElementById("radio1"));
r1.getValue(); // expected method does not exist.
DOM.getElementAttribute(r1.getElement(), "value") ; // This works
fine.

My question is : is this the intended way to use SimpleRadioButton ?
Why not r1.getValue() ?

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



FF, LayoutPanel and

2010-05-20 Thread Stefan Bachert
Hi,

FF has a defect regarding absolute positioning while using 
(e.g editbox) or .

I found a workaround. When you are affected by this bug and don't want
to wait until Google put it into an official release,
add the files of issue 4338 to your own build of gwt and recompile.

http://code.google.com/p/google-web-toolkit/issues/detail?id=4348


Stefan Bachert
http://gwtworld.de

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



Found bug in PopupPanel in IE6/7/8

2010-05-20 Thread stuckagain
People,

I reported a new issue on GWT in IE (6/7/8) where I no longer get
keyboard events when closing down a PopupPanel by clicking on a
textbox.

In case somebody is bored and wants to fix it ? I looked through the
code, but I don't quite see where the problem might be coming from.

http://code.google.com/p/google-web-toolkit/issues/detail?id=4938&sort=-id%20-type&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Stars

Anybody wants to star the bug so that this finally gets fixed ?

David

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



GWT+Spring

2010-05-20 Thread Naveen

Hi all

I am working on an Simple Spring app just an index page which takes
the username and password and responds with an success or failure
page... If successful I have given a href there
in other words an request which takes me to the index page of the GWT
app. After combining both of these Spring and GWT the Spring part is
working fine but I am facing some prob with
GWT. I can see that the folder structure is correct. When I do a GWT
compile I see that all the files sit in the right position just as
when we do a GWT compile for a normal GWT app. I see the
static contents of the GWT index page but I dont see the dynamic
content (java converted javascript).






The id nameFieldContainer is used in the entry point class which after
the GWT compile should be present in one of the cache.html whose
mapping should be there in nocache.html. Only if I can
retrieve this, this will change into the text box or button as
mentioned in the GWT entry point class. This is not happening.

Can some one here tell me where I am going wrong..

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



Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-05-20 Thread Navigateur
Ah yes! Except that I want to be able to get persistent things onto my
client side without too much conversion or trouble (i.e. the same
objects client-and-server-side using the same language, and the same
class definitions).

What are my full range of options for this, anyway?
And which is the best one for the purposes I've mentioned?

On May 20, 12:34 am, Blessed Geek  wrote:
> Wouldn't  your initial question be like -
> What is the best power tool to use to build the fence around my garden
> if I wish to plant my garden with tulips.
>
> But later on in your post, you reveal that your question actually has
> nothing to do with GWT, just as growing tulips has nothing to do with
> choice of power tools for your fence.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-05-20 Thread José González Gómez
Although your question has (almost) nothing to do with GWT... we're
working on a GWT + JavaEE application, and evaluated several
alternatives regarding this problem. We had two winners, both of them
using of course JPA with Hibernate provider:

1. Use Gilead to transform your persistent entities and send them to
GWT
2. Use DTOs, and use Dozer to transform from / to domain objects /
entities

In our case we chose DTOs / Dozer over Gilead because we favoured
layer separation, encapsulation and security over development ease.
YMMV

Best regards
José

On 20 mayo, 10:54, Navigateur  wrote:
> Ah yes! Except that I want to be able to get persistent things onto my
> client side without too much conversion or trouble (i.e. the same
> objects client-and-server-side using the same language, and the same
> class definitions).
>
> What are my full range of options for this, anyway?
> And which is the best one for the purposes I've mentioned?
>
> On May 20, 12:34 am, Blessed Geek  wrote:
>
> > Wouldn't  your initial question be like -
> > What is the best power tool to use to build the fence around my garden
> > if I wish to plant my garden with tulips.
>
> > But later on in your post, you reveal that your question actually has
> > nothing to do with GWT, just as growing tulips has nothing to do with
> > choice of power tools for your fence.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: GWT and Autocomplete.

2010-05-20 Thread José González Gómez
It probably has to do with the fact that in a GWT app you don't
usually submit a form, correct me if I'm wrong

Regards
José

On 19 mayo, 20:30, Arinté  wrote:
> I have a GWT app with a bunch of textboxes. In firefox I would expect
> that when I type a word in a textbox that I have already typed in and
> submitted, that firefox would offer to autocomplete that text. But for
> this GWT app it is not happening.  Why?
>
> The ids and the name of the html elements are the same everytime. I
> don't know if it makes a difference, but I am using UiBinders for
> presentation.
>
> Also in IE it seems that none of my css stuff is loaded. And when I IE
> developer tools on my GWT page, it can focus in on any of the
> textboxes it just focuses on the encompassing DIV around all the
> textboxes.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Collapsible panel

2010-05-20 Thread Komal
Hi,

I am trying to use the collapsible panel
I have downloaded the incubator jar (gwt-incubator-20100204-r1747.jar)

the styles are not reflecting and the hover bar is appearing although
on click of toggle button it is sliding but then I am not able to see
it any how or slide it back.

I am getting the following exception:
If I try to set the width of the collapsible it ,if is not then the
exception does not appear but nor does it work as i see it in the live
demo.

The underlying content width cannot be 0. Please ensure that
the .container css style has a fixed
widthjava.lang.IllegalStateException: The underlying content width
cannot be 0. Please ensure that the .container css style has a fixed
width

at
com.google.gwt.widgetideas.client.CollapsiblePanel.refreshWidth(CollapsiblePanel.java:
649)
at
com.google.gwt.widgetideas.client.CollapsiblePanel.setWidth(CollapsiblePanel.java:
508)
at
com.ensarm.engile.client.ui.PlanTrackView.initialize(PlanTrackView.java:
67)
at
com.ensarm.engile.client.app.core.EngileModuleHome.onAppEvent(EngileModuleHome.java:
80)
at
com.ensarm.enwelib.app.client.core.events.BaseEvent.dispatch(BaseEvent.java:
22)
at
com.ensarm.enwelib.app.client.core.events.BaseEvent.dispatch(BaseEvent.java:
1)
at com.google.gwt.event.shared.HandlerManager
$HandlerRegistry.fireEvent(HandlerManager.java:65)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access
$1(HandlerManager.java:53)
at
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:
178)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52)
at
com.ensarm.enwelib.app.client.core.DefaultUiManager.fireEvent(DefaultUiManager.java:
237)
at
com.ensarm.enwelib.app.client.core.ModuleViewTab.getView(ModuleViewTab.java:
99)
at
com.ensarm.enwelib.app.client.core.ModuleViewTab.onClick(ModuleViewTab.java:
151)
at
com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:
54)
at
com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1)
at com.google.gwt.event.shared.HandlerManager
$HandlerRegistry.fireEvent(HandlerManager.java:65)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access
$1(HandlerManager.java:53)
at
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:
178)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52)
at
com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:
116)
at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:
100)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263)
at sun.reflect.GeneratedMethodAccessor969.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:
1713)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
165)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor906.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:
1668)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
401)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)



here is the sample code I have tried:

protected HorizontalPanel   hPanel  = new
HorizontalPanel();
Horizon

Re: Adding CSS style dynamically

2010-05-20 Thread Professor Vagner
try com.google.gwt.dom.client.Style class.

...
Style style = yourElement.getStyle();
style.setPosition(Position.ABSOLUTE);
...

-- 
Professor Vagner

O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E
ALÉM... !!

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



Performance issue with large object model

2010-05-20 Thread Frederic Conrotte
Hello

On our current project we have a fairly large database model mapped
thru Hibernate JPA annotations: around 150 entities.
Those JPA entities have a lot of @ManyToOne, @OneToMany, @ManyToMany
inter relations.

On the server side Hibernate lazy loading is active and managed
correctly so that no extra unneeded collections are fetched to the
client.

I’m using Gilead in stateless mode with all JPA entities extending
java.io.Serializable and net.sf.gilead.pojo.gwt.LightEntity

So back to the client side, I created a simple RPC Service

@RemoteServiceRelativePath("country.rpc")
public interface CountryService extends RemoteService
{
Country findCountry(String countryId);
}

public interface CountryServiceAsync
{
void findCountry(String countryId, AsyncCallback
callback);
}

The Country type has several Collection fields whose type have as well
their own relations. But, again, thanks to lazy loading, those
collections are empty.

Problem arise when I try to create the service using Development Mode
(Run As Web Application in Eclipse)

CountryServiceAsync countryService = GWT.create(CountryService.class);

GWT.create()'s goal is to create a client proxy for the remote
service's server side implementation.

Extract from the "Development Mode" console:

12:30:18.664 [DEBUG] [project] Invoking
com.google.gwt.dev.javac.standardgeneratorcont...@904576
12:30:18.664 [DEBUG] [project] Generating client proxy for remote
service interface
'com.company.project.client.services.CountryServiceClient'
12:30:18.664 [DEBUG] [project] Analyzing
'com.company.project.client.services.CountryServiceClient' for
serializable types
12:30:18.664 [DEBUG] [project] Analyzing methods:
12:30:18.664 [DEBUG] [project] public abstract
com.company.project.server.dom.Country findCountry(java.lang.String
countryId)
12:30:18.664 [DEBUG] [project] Return type:
com.company.project.server.dom.Country
12:30:20.648 [DEBUG] [project] com.company.project.server.dom.Country
12:30:20.648 [DEBUG] [project] Finding possibly instantiable subtypes
.
.
.

Then a huge tree a dependent subtypes that qualify for serialization
is built.

At this point, GWT.create method returns after around 5 minutes !

Nothing mentions in the documentation that Serialization performance
depends on the number of imports of a types, including imported types
of its children:
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideMakingACall

If you read this link:
http://sinnema313.wordpress.com/2008/11/16/performance-tuning-a-gwt-application/

It mentions that "Serialization is slow: (...) Serialization
performance appears to be proportional to the number of objects, not
just to their total size."

I see 2 possible solutions:
- Cache serializable types (gwt.rpc file) and load them with the
module, but I don’t know if it's feasible with current GWT API
- Use DTOs and Dozer to drastically denormalize our model object and
limit the number of inter relations between types.

Did any of you already faced this performance problem ?

Thanks

Fred

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



Re: Using JS to access GWT generated JS code

2010-05-20 Thread mmoossen
check also gwt-exporter:
http://code.google.com/p/gwtchismes/wiki/Tutorial_ExportingGwtLibrariesToJavascript_en

HTH
Michael

On May 20, 7:17 am, Sky  wrote:
> Check out these two 
> sections:http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...
>
> I believe the second link is what you need.
>
> cheers
>
> On May 19, 8:22 pm, Gabriel Gutierrez  wrote:
>
>
>
> > Hey guys,
>
> > I know that GWT interfacts with native JS using JSNI, but my question
> > is: can I call from native JS to GWT generated code? how?
>
> > My idea is to write, in GWT, a class (MyClass) and then, in an HTML
> > file import the .nocache.js file and use native JS do something like
> > this
>
> > 
> >     MyClass instance = new MyClass();
> >     instance.property = "value";
> > 
>
> > The reason is that i need to build a complex JS library and i dont
> > want to think about browsers compatibility it will take a lot of time.
>
> > Thanks on advance your comments.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Performance issue with large object model

2010-05-20 Thread Sripathi Krishnan
I'd recommend using DTO's. Whether you use Dozer or not is secondary.

The motivations for this approach are  in this thread -
http://groups.google.com/group/google-web-toolkit/msg/f9290388bbf5a5f8. In
general, you want to keep your UI Model (i.e. DTO) separate from your Domain
Model (hibernate entities). And Performance is not the only reason for this
- there are going to be times when you don't want to some information to the
client due to security/privacy concerns.

--Sri


On 20 May 2010 16:27, Frederic Conrotte  wrote:

> Hello
>
> On our current project we have a fairly large database model mapped
> thru Hibernate JPA annotations: around 150 entities.
> Those JPA entities have a lot of @ManyToOne, @OneToMany, @ManyToMany
> inter relations.
>
> On the server side Hibernate lazy loading is active and managed
> correctly so that no extra unneeded collections are fetched to the
> client.
>
> I’m using Gilead in stateless mode with all JPA entities extending
> java.io.Serializable and net.sf.gilead.pojo.gwt.LightEntity
>
> So back to the client side, I created a simple RPC Service
>
> @RemoteServiceRelativePath("country.rpc")
> public interface CountryService extends RemoteService
> {
>Country findCountry(String countryId);
> }
>
> public interface CountryServiceAsync
> {
>void findCountry(String countryId, AsyncCallback
> callback);
> }
>
> The Country type has several Collection fields whose type have as well
> their own relations. But, again, thanks to lazy loading, those
> collections are empty.
>
> Problem arise when I try to create the service using Development Mode
> (Run As Web Application in Eclipse)
>
> CountryServiceAsync countryService = GWT.create(CountryService.class);
>
> GWT.create()'s goal is to create a client proxy for the remote
> service's server side implementation.
>
> Extract from the "Development Mode" console:
>
> 12:30:18.664 [DEBUG] [project] Invoking
> com.google.gwt.dev.javac.standardgeneratorcont...@904576
> 12:30:18.664 [DEBUG] [project] Generating client proxy for remote
> service interface
> 'com.company.project.client.services.CountryServiceClient'
> 12:30:18.664 [DEBUG] [project] Analyzing
> 'com.company.project.client.services.CountryServiceClient' for
> serializable types
> 12:30:18.664 [DEBUG] [project] Analyzing methods:
> 12:30:18.664 [DEBUG] [project] public abstract
> com.company.project.server.dom.Country findCountry(java.lang.String
> countryId)
> 12:30:18.664 [DEBUG] [project] Return type:
> com.company.project.server.dom.Country
> 12:30:20.648 [DEBUG] [project] com.company.project.server.dom.Country
> 12:30:20.648 [DEBUG] [project] Finding possibly instantiable subtypes
> .
> .
> .
>
> Then a huge tree a dependent subtypes that qualify for serialization
> is built.
>
> At this point, GWT.create method returns after around 5 minutes !
>
> Nothing mentions in the documentation that Serialization performance
> depends on the number of imports of a types, including imported types
> of its children:
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideMakingACall
>
> If you read this link:
>
> http://sinnema313.wordpress.com/2008/11/16/performance-tuning-a-gwt-application/
>
> It mentions that "Serialization is slow: (...) Serialization
> performance appears to be proportional to the number of objects, not
> just to their total size."
>
> I see 2 possible solutions:
> - Cache serializable types (gwt.rpc file) and load them with the
> module, but I don’t know if it's feasible with current GWT API
> - Use DTOs and Dozer to drastically denormalize our model object and
> limit the number of inter relations between types.
>
> Did any of you already faced this performance problem ?
>
> Thanks
>
> Fred
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



ListBox control with multiple delete issue...

2010-05-20 Thread Thamizharasu S
I created a multiple select ListBox with the constructor new
ListBox(true). I tried to delete all the selected objects from the
ListBox. I was not able find any API available now to delete all the
selected objects in a single call.

Can any one suggest me a solution?

Thanks,
Thamizharasu S

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



Client side dynamic configuration/properties

2010-05-20 Thread Mike Noordermeer
Hi,

What is a good way to get dynamic configuration information to the client?

I've an application that has some configuration parameters that we
need client side, which include:

- Configurable dates fetched from a database.
- Certain interface heights/widths, preferably configured in some easy
.properties file.
- Labels for weeks fetched from a database.

Looks like the Constants interface is not a good match for this since
a recompile seems necessary on every change.

I was thinking about creating some Configuration object that gets
fetched on application start (server fills it with the necessary
data), and which is then available through some singleton/static
variable construct. Disadvantage is of course that singletons are
sometimes discouraged, and that it's more work to code than an out of
the box solution.

Any thoughts on this?

-- 
Regards,

Mike Noordermeer
m...@normi.net

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



Re: Client side dynamic configuration/properties

2010-05-20 Thread Ramon Buckland
You would simply write out, server side, a Dictionary JS object and then
pick that up in the GWT code.

See
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/i18n/client/Dictionary.htmlfor
more details.

Regards

On Thu, May 20, 2010 at 1:46 PM, Mike Noordermeer  wrote:

> Hi,
>
> What is a good way to get dynamic configuration information to the client?
>
> I've an application that has some configuration parameters that we
> need client side, which include:
>
> - Configurable dates fetched from a database.
> - Certain interface heights/widths, preferably configured in some easy
> .properties file.
> - Labels for weeks fetched from a database.
>
> Looks like the Constants interface is not a good match for this since
> a recompile seems necessary on every change.
>
> I was thinking about creating some Configuration object that gets
> fetched on application start (server fills it with the necessary
> data), and which is then available through some singleton/static
> variable construct. Disadvantage is of course that singletons are
> sometimes discouraged, and that it's more work to code than an out of
> the box solution.
>
> Any thoughts on this?
>
> --
> Regards,
>
> Mike Noordermeer
> m...@normi.net
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Client side dynamic configuration/properties

2010-05-20 Thread mariyan nenchev
You need to create some .properties file on the server side. And every
client must make request for it. If it is on the client side it could be
loaded as TextResource, but on every change the gwt project must be
recompiled, which does not make it very dynamic. I recommend you to use
server side .properties file and load it as map or something.

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



Re: Google IO Expense Report App

2010-05-20 Thread Thomas Broyer


On May 19, 9:09 pm, amjibaly  wrote:
> Hi,
>
> Does anyone know if the source for the expense report app running on
> gwt 2.1 that was just demonstrated at google io will be published
> anywhere?

It's already there for quite some time actually:
http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/

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



How can I clone an object in GWT?

2010-05-20 Thread Mike Jiang
I tried to use History class to manage the handling of the back/forward
functioning of the browsers. In order to do that, I need to save the screens
with state to a collection, such as  a HashMap, hmap.
For example, the screen is represented by a Composite object, compObject,
which contains a widget object: wgtObject. Every time when I said that the
screen was changed, it implied that the only the wgtObject was changed. When
I used the History to do that, the code is like,

   Hostory.newItem(screenName);
   hmap.put(screenName, compObject);


However, since the compObject is the same instance, on the onValueChange()

 public void onValueChange(ValueChangeEvent event) {
String screenName = event.getValue();
Composite composite = hmap.get(screenName);
if (compObject != null) {
RootPanel slot = RootPanel.get("mainPanel");
slot.clear();

slot.add(composite);

}
}

even the code turned to different screens, the same screen remained
unchanged. The reason is that the compObject rather than wgtObject is saved
to hmap!

But I need to save compObject with its state to hmap. So I need to clone the
compObject before saving it to hmap. Since there is no Object.clone()
available for GWT, how can I do that?

Thanks,

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



Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-05-20 Thread Navigateur
Thanks José! But don't they still require you to do the "hibernate-
mapping" xml thing? Isn't this cumbersome for complex object
structures? Or is there a way of being able to play with your object
structure without having to change the hibernate-mapping xml every
time (i.e. a default automatic behaviour for all objects, which also
updates the data-store to reflect object-structure changes in the
code)?

Thanks!
N

On May 20, 10:08 am, José González Gómez
 wrote:
> Although your question has (almost) nothing to do with GWT... we're
> working on a GWT + JavaEE application, and evaluated several
> alternatives regarding this problem. We had two winners, both of them
> using of course JPA with Hibernate provider:
>
> 1. Use Gilead to transform your persistent entities and send them to
> GWT
> 2. Use DTOs, and use Dozer to transform from / to domain objects /
> entities
>
> In our case we chose DTOs / Dozer over Gilead because we favoured
> layer separation, encapsulation and security over development ease.
> YMMV
>
> Best regards
> José
>
> On 20 mayo, 10:54, Navigateur  wrote:
>
>
>
> > Ah yes! Except that I want to be able to get persistent things onto my
> > client side without too much conversion or trouble (i.e. the same
> > objects client-and-server-side using the same language, and the same
> > class definitions).
>
> > What are my full range of options for this, anyway?
> > And which is the best one for the purposes I've mentioned?
>
> > On May 20, 12:34 am, Blessed Geek  wrote:
>
> > > Wouldn't  your initial question be like -
> > > What is the best power tool to use to build the fence around my garden
> > > if I wish to plant my garden with tulips.
>
> > > But later on in your post, you reveal that your question actually has
> > > nothing to do with GWT, just as growing tulips has nothing to do with
> > > choice of power tools for your fence.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-05-20 Thread David Goodenough
You could try OpenJPA, which can now largely be done using 
annotations rather than xml, or if you are not needing to use SQL
DBs you could try one of the object dbs like db4o.

David

On Thursday 20 May 2010, Navigateur wrote:
> Thanks José! But don't they still require you to do the "hibernate-
> mapping" xml thing? Isn't this cumbersome for complex object
> structures? Or is there a way of being able to play with your object
> structure without having to change the hibernate-mapping xml every
> time (i.e. a default automatic behaviour for all objects, which also
> updates the data-store to reflect object-structure changes in the
> code)?
> 
> Thanks!
> N
> 
> On May 20, 10:08 am, José González Gómez
> 
>  wrote:
> > Although your question has (almost) nothing to do with GWT... we're
> > working on a GWT + JavaEE application, and evaluated several
> > alternatives regarding this problem. We had two winners, both of them
> > using of course JPA with Hibernate provider:
> >
> > 1. Use Gilead to transform your persistent entities and send them to
> > GWT
> > 2. Use DTOs, and use Dozer to transform from / to domain objects /
> > entities
> >
> > In our case we chose DTOs / Dozer over Gilead because we favoured
> > layer separation, encapsulation and security over development ease.
> > YMMV
> >
> > Best regards
> > José
> >
> > On 20 mayo, 10:54, Navigateur  
wrote:
> > > Ah yes! Except that I want to be able to get persistent things onto 
my
> > > client side without too much conversion or trouble (i.e. the same
> > > objects client-and-server-side using the same language, and the 
same
> > > class definitions).
> > >
> > > What are my full range of options for this, anyway?
> > > And which is the best one for the purposes I've mentioned?
> > >
> > > On May 20, 12:34 am, Blessed Geek  
wrote:
> > > > Wouldn't  your initial question be like -
> > > > What is the best power tool to use to build the fence around my
> > > > garden if I wish to plant my garden with tulips.
> > > >
> > > > But later on in your post, you reveal that your question actually 
has
> > > > nothing to do with GWT, just as growing tulips has nothing to do 
with
> > > > choice of power tools for your fence.
> > > >
> > > > --
> > > > You received this message because you are subscribed to the 
Google
> > > > Groups "Google Web Toolkit" group. To post to this group, send 
email
> > > > to google-web-tool...@googlegroups.com. To unsubscribe from 
this
> > > > group, send email to google-web-
toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group
> > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
> > >
> > > --
> > > You received this message because you are subscribed to the 
Google
> > > Groups "Google Web Toolkit" group. To post to this group, send 
email to
> > > google-web-tool...@googlegroups.com. To unsubscribe from this 
group,
> > > send email to google-web-toolkit+unsubscr...@googlegroups.com. 
For more
> > > options, visit this group
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> > You received this message because you are subscribed to the Google 
Groups
> > "Google Web Toolkit" group. To post to this group, send email to
> > google-web-tool...@googlegroups.com. To unsubscribe from this 
group, send
> > email to google-web-toolkit+unsubscr...@googlegroups.com. For 
more
> > options, visit this group
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
> 

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



Re: SimpleRadioButton getValue() ?

2010-05-20 Thread Jim Douglas
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/SimpleCheckBox.html#isChecked()
http://code.google.com/p/google-web-toolkit/issues/detail?id=4018

On May 20, 12:01 am, "bch...@gmail.com"  wrote:
> Greetings,
>
> I have the following snippet :
>
> SimpleRadioButton r1 =
> SimpleRadioButton.wrap(DOM.getElementById("radio1"));
> r1.getValue(); // expected method does not exist.
> DOM.getElementAttribute(r1.getElement(), "value") ; // This works
> fine.
>
> My question is : is this the intended way to use SimpleRadioButton ?
> Why not r1.getValue() ?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



How to get notified after a widget has been completely rendered?

2010-05-20 Thread googelybear
Hi,

I'd like to ask if it is possible to get notified (by adding some kind
of event handler) after a widget has been completely rendered? I
couldn't find such an event...

thanks for your help,

Dennis

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



Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-05-20 Thread José González Gómez
JPA/Hibernate supports annotations, so you don't have to fiddle with
xml files any more; and JPA/Hibernate has adopted the "sane defaults"
and "convention over configuration" policy, so unless you want to take
control of your mappings (something you should do if you're doing
anything serious) most of the times it's enough to annotate the
persistent class with the @Entity annotation.

Anyway, if you're handling complex object structures, it's way more
cumbersome to handle persistence by hand, instead of using a ORM
framework. If you want to have automatic update of the database,
Hibernate tools is able to generate the database schema from your
mappings. I suggest to take a look at Maven, Maven Hibernate plugin,
JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT
has just made a coordinated release with Spring Roo and I think it may
be quite interesting for you.

I hope this isn't getting too much OT...

HTH, best regards
José

On 20 mayo, 15:37, Navigateur  wrote:
> Thanks José! But don't they still require you to do the "hibernate-
> mapping" xml thing? Isn't this cumbersome for complex object
> structures? Or is there a way of being able to play with your object
> structure without having to change the hibernate-mapping xml every
> time (i.e. a default automatic behaviour for all objects, which also
> updates the data-store to reflect object-structure changes in the
> code)?
>
> Thanks!
> N
>
> On May 20, 10:08 am, José González Gómez
>
>
>
>  wrote:
> > Although your question has (almost) nothing to do with GWT... we're
> > working on a GWT + JavaEE application, and evaluated several
> > alternatives regarding this problem. We had two winners, both of them
> > using of course JPA with Hibernate provider:
>
> > 1. Use Gilead to transform your persistent entities and send them to
> > GWT
> > 2. Use DTOs, and use Dozer to transform from / to domain objects /
> > entities
>
> > In our case we chose DTOs / Dozer over Gilead because we favoured
> > layer separation, encapsulation and security over development ease.
> > YMMV
>
> > Best regards
> > José
>
> > On 20 mayo, 10:54, Navigateur  wrote:
>
> > > Ah yes! Except that I want to be able to get persistent things onto my
> > > client side without too much conversion or trouble (i.e. the same
> > > objects client-and-server-side using the same language, and the same
> > > class definitions).
>
> > > What are my full range of options for this, anyway?
> > > And which is the best one for the purposes I've mentioned?
>
> > > On May 20, 12:34 am, Blessed Geek  wrote:
>
> > > > Wouldn't  your initial question be like -
> > > > What is the best power tool to use to build the fence around my garden
> > > > if I wish to plant my garden with tulips.
>
> > > > But later on in your post, you reveal that your question actually has
> > > > nothing to do with GWT, just as growing tulips has nothing to do with
> > > > choice of power tools for your fence.
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to 
> > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: How can I clone an object in GWT?

2010-05-20 Thread kozura
In general, trying to store the application state by storing the
widget itself is a bad idea, would be very expensive and of course
with no deep clone doesn't even work.  Better is to extract just the
data needed to reconstruct the widget state and store that, then
reconstruct the state on history changes.  Depending on your app
design you may already have methods to do this, ie to build the
initial widget contents or to send them back to the server.

Also as an aside, note that History.newItem() will actually call the
history change event, which in this case would immediately try to
reconstruct the widget with the data you just captured (or are about
to capture).  Be sure to add a flag or something so your change
handler does not do this unnecessary restore when you are manually
adding history items.

On May 20, 7:33 am, Mike Jiang  wrote:
> I tried to use History class to manage the handling of the back/forward
> functioning of the browsers. In order to do that, I need to save the screens
> with state to a collection, such as  a HashMap, hmap.
> For example, the screen is represented by a Composite object, compObject,
> which contains a widget object: wgtObject. Every time when I said that the
> screen was changed, it implied that the only the wgtObject was changed. When
> I used the History to do that, the code is like,
>
>        Hostory.newItem(screenName);
>        hmap.put(screenName, compObject);
>
> However, since the compObject is the same instance, on the onValueChange()
>
>      public void onValueChange(ValueChangeEvent event) {
> String screenName = event.getValue();
> Composite composite = hmap.get(screenName);
> if (compObject != null) {
> RootPanel slot = RootPanel.get("mainPanel");
> slot.clear();
>
> slot.add(composite);
>
> }
> }
>
> even the code turned to different screens, the same screen remained
> unchanged. The reason is that the compObject rather than wgtObject is saved
> to hmap!
>
> But I need to save compObject with its state to hmap. So I need to clone the
> compObject before saving it to hmap. Since there is no Object.clone()
> available for GWT, how can I do that?
>
> Thanks,
>
> Mike 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Can i run hosted mode with Tomcat?

2010-05-20 Thread nacho
Hi, i need to run hosted mode so then i can debbug the client classes.

I need to use tomcat because in my project i'm using jax.ws in the
server classes and when i try to use hosted mode with jetty its
exploits.

Can i do that? Can i debbug client classes using tomcat instead jetty?

Can someone tell me how can i do?

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



Re: How to get notified after a widget has been completely rendered?

2010-05-20 Thread rudolf michael
onLoad or onAttach

On Thu, May 20, 2010 at 5:16 PM, googelybear  wrote:

> Hi,
>
> I'd like to ask if it is possible to get notified (by adding some kind
> of event handler) after a widget has been completely rendered? I
> couldn't find such an event...
>
> thanks for your help,
>
> Dennis
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Need some help reviewing a book

2010-05-20 Thread Robert Hanson
I haven't posted here in a while, but I need some help.

A few of us (Ian Bambury, Chris Ramsdale, Adam Tacy, and me) are working on
a book for Manning, and we are a bit short on reviewers.  So there is anyone
interested in doing a book review, we could use the help.  The amount of
experience with GWT doesn't matter.  All that matters is that you are
willing to provide honest feedback on what we have written (i.e. don't hold
back -- we can take it). The perks are that you get the book for free, and
your name gets mentioned in the acknowledgments.

If you are interested, you can contact Karen, the Reviews Editor directly,
k...@manning.com.

Thanks in advance.

Rob

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



Re: Google IO Expense Report App

2010-05-20 Thread Duong BaTien
Yes we are waiting for it and GWT 2.1

Duong BaTien
DBGROUPS and BudhNet

On Wed, 2010-05-19 at 12:09 -0700, amjibaly wrote:
> Hi,
> 
> Does anyone know if the source for the expense report app running on
> gwt 2.1 that was just demonstrated at google io will be published
> anywhere?
> 
> Thanks,
> Abdullah
> 

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



Re: How can I clone an object in GWT?

2010-05-20 Thread Mike Jiang
Understand what you suggested. Thanks.

The reason for doing this way is based on the following considerations,

1. The screens are saved as objects completely on the client side. No
client-server networking traffic issues during the storing and reloading
process. Even in multiple concurrent client environment, it would not cause
problem on server side. the only expense is on the individual client ;
2. Extracting the data and saving the data only would be a good idea, just
like sending bare data rather than sending a serialized object  as a whole
with overhead across the network.  The problem is that reconstructing the
screen is not a simple job, especially for a rich component screen. Thus I
would like to borrow the idea of the object serialization scenario.

On Thu, May 20, 2010 at 10:24 AM, kozura  wrote:

> In general, trying to store the application state by storing the
> widget itself is a bad idea, would be very expensive and of course
> with no deep clone doesn't even work.  Better is to extract just thein
> data needed to reconstruct the widget state and store that, then
> reconstruct the state on history changes.  Depending on your app
> design you may already have methods to do this, ie to build the
> initial widget contents or to send them back to the server.
>
> Also as an aside, note that History.newItem() will actually call the
> history change event, which in this case would immediately try to
> reconstruct the widget with the data you just captured (or are about
> to capture).  Be sure to add a flag or something so your change
> handler does not do this unnecessary restore when you are manually
> adding history items.
>
> On May 20, 7:33 am, Mike Jiang  wrote:
> > I tried to use History class to manage the handling of the back/forward
> > functioning of the browsers. In order to do that, I need to save the
> screens
> > with state to a collection, such as  a HashMap, hmap.
> > For example, the screen is represented by a Composite object, compObject,
> > which contains a widget object: wgtObject. Every time when I said that
> the
> > screen was changed, it implied that the only the wgtObject was changed.
> When
> > I used the History to do that, the code is like,
> >
> >Hostory.newItem(screenName);
> >hmap.put(screenName, compObject);
> >
> > However, since the compObject is the same instance, on the
> onValueChange()
> >
> >  public void onValueChange(ValueChangeEvent event) {
> > String screenName = event.getValue();
> > Composite composite = hmap.get(screenName);
> > if (compObject != null) {
> > RootPanel slot = RootPanel.get("mainPanel");
> > slot.clear();
> >
> > slot.add(composite);
> >
> > }
> > }
> >
> > even the code turned to different screens, the same screen remained
> > unchanged. The reason is that the compObject rather than wgtObject is
> saved
> > to hmap!
> >
> > But I need to save compObject with its state to hmap. So I need to clone
> the
> > compObject before saving it to hmap. Since there is no Object.clone()
> > available for GWT, how can I do that?
> >
> > Thanks,
> >
> > Mike 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Using JS to access GWT generated JS code

2010-05-20 Thread Gabriel Gutierrez
Thanks you all, im going to read about it :)

On 20 mayo, 06:36, mmoossen  wrote:
> check also 
> gwt-exporter:http://code.google.com/p/gwtchismes/wiki/Tutorial_ExportingGwtLibrari...
>
> HTH
> Michael
>
> On May 20, 7:17 am, Sky  wrote:
>
>
>
> > Check out these two 
> > sections:http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...
>
> > I believe the second link is what you need.
>
> > cheers
>
> > On May 19, 8:22 pm, Gabriel Gutierrez  wrote:
>
> > > Hey guys,
>
> > > I know that GWT interfacts with native JS using JSNI, but my question
> > > is: can I call from native JS to GWT generated code? how?
>
> > > My idea is to write, in GWT, a class (MyClass) and then, in an HTML
> > > file import the .nocache.js file and use native JS do something like
> > > this
>
> > > 
> > >     MyClass instance = new MyClass();
> > >     instance.property = "value";
> > > 
>
> > > The reason is that i need to build a complex JS library and i dont
> > > want to think about browsers compatibility it will take a lot of time.
>
> > > Thanks on advance your comments.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Get file on server with a pattern

2010-05-20 Thread ciosbel
My problem is that getServletContext always returns null.
I've also tried to put in a overridden init() but didn't help.

ciosbel.

On May 19, 9:23 am, Lorris  wrote:
> Thank you for your answer,
>
> This is my solution if another people need it :
>
> This is the content of my RPC method in server side.
>
> String realPath =
> getServletContext().getRealPath("/").concat(gwtModuleName); // Or
> other folder you want to access
>         File f = new File(realPath);
>         for (String s : f.list()) {
>             if (s.matches(PATTERN)) {
>                 // Do the job
>             }
>
> }
>
> Hope this will help.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Refresh handler

2010-05-20 Thread laurent
Hello,

I've a simple question.Exist it a handler(or listener) for a click on
the refresh button or F5?

Thanks

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



Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-05-20 Thread Navigateur
Wow, thanks José and David!

I'm new to "tools" so I'm a bit nervous about using them (although I
probably shouldn't be) whereas db4o offers straightforward code for
persisting objects. Are there any disadvantages to using db4o instead
of ORM with tools? db4o seems intuitavely the best option for me right
now, but could I be wrong? I thank David for bringing it to my
attention, it looks VERY interesting, and under active development,
although the queries are currently reportedly slow, but when that is
fixed, is there a reason why it shouldn't supercede RD and ORD for new
projects?

On May 20, 3:18 pm, José González Gómez
 wrote:
> JPA/Hibernate supports annotations, so you don't have to fiddle with
> xml files any more; and JPA/Hibernate has adopted the "sane defaults"
> and "convention over configuration" policy, so unless you want to take
> control of your mappings (something you should do if you're doing
> anything serious) most of the times it's enough to annotate the
> persistent class with the @Entity annotation.
>
> Anyway, if you're handling complex object structures, it's way more
> cumbersome to handle persistence by hand, instead of using a ORM
> framework. If you want to have automatic update of the database,
> Hibernate tools is able to generate the database schema from your
> mappings. I suggest to take a look at Maven, Maven Hibernate plugin,
> JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT
> has just made a coordinated release with Spring Roo and I think it may
> be quite interesting for you.
>
> I hope this isn't getting too much OT...
>
> HTH, best regards
> José
>
> On 20 mayo, 15:37, Navigateur  wrote:
>
>
>
> > Thanks José! But don't they still require you to do the "hibernate-
> > mapping" xml thing? Isn't this cumbersome for complex object
> > structures? Or is there a way of being able to play with your object
> > structure without having to change the hibernate-mapping xml every
> > time (i.e. a default automatic behaviour for all objects, which also
> > updates the data-store to reflect object-structure changes in the
> > code)?
>
> > Thanks!
> > N
>
> > On May 20, 10:08 am, José González Gómez
>
> >  wrote:
> > > Although your question has (almost) nothing to do with GWT... we're
> > > working on a GWT + JavaEE application, and evaluated several
> > > alternatives regarding this problem. We had two winners, both of them
> > > using of course JPA with Hibernate provider:
>
> > > 1. Use Gilead to transform your persistent entities and send them to
> > > GWT
> > > 2. Use DTOs, and use Dozer to transform from / to domain objects /
> > > entities
>
> > > In our case we chose DTOs / Dozer over Gilead because we favoured
> > > layer separation, encapsulation and security over development ease.
> > > YMMV
>
> > > Best regards
> > > José
>
> > > On 20 mayo, 10:54, Navigateur  wrote:
>
> > > > Ah yes! Except that I want to be able to get persistent things onto my
> > > > client side without too much conversion or trouble (i.e. the same
> > > > objects client-and-server-side using the same language, and the same
> > > > class definitions).
>
> > > > What are my full range of options for this, anyway?
> > > > And which is the best one for the purposes I've mentioned?
>
> > > > On May 20, 12:34 am, Blessed Geek  wrote:
>
> > > > > Wouldn't  your initial question be like -
> > > > > What is the best power tool to use to build the fence around my garden
> > > > > if I wish to plant my garden with tulips.
>
> > > > > But later on in your post, you reveal that your question actually has
> > > > > nothing to do with GWT, just as growing tulips has nothing to do with
> > > > > choice of power tools for your fence.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups "Google Web Toolkit" group.
> > > > > To post to this group, send email to 
> > > > > google-web-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to 
> > > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > > For more options, visit this group 
> > > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to 
> > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.

google-web-toolkit@googlegroups.com

2010-05-20 Thread nacho
Hi. It is necesary to put in Application.gwt.xml for every one library
that i use one line like the following?



The thing is that in my console when i run the Ant task to compile i
get numerous errors. And i'm trying to use Firefox plugin, but i cant
because of those errors.

And some libraries i have the source code, but for some others i dont
have it.

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



Re: file upload without browse button

2010-05-20 Thread BimboJones
hi,

You should check this thread:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/df03709c2c9ea1db/5b5785f77167e6ec?lnk=gst&q=style+of+FileUpload+widget#5b5785f77167e6ec


On 19 Maio, 18:28, Chatak <007aditya.b...@gmail.com> wrote:
> hi,
> i m having some problem with UI feature as i m having file upload
> widget on the UI which allows us to select a file to upload as we all
> know for that we need to click on browse button which is very
> traditional approach but due to little space i dont want user should
> click on browse button or click in that textbox  which lets user to
> select file to upload
>
> In short i simply wants a single button or link with custom message
> say "Choose File"
> how it could be done?
>
> Thank you.
> Chatak
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-05-20 Thread José González Gómez
Although you could think they're the perfect solution for persistence
in OO languages, object databases haven't taken off, so if you're
doing anything serious I would be cautious about using them. I don't
know of any big application in production with an OODB. Maybe we're
too used to relational databases...

Take a look at Spring Roo, I think you will like it.

Best regards
José

On 20 mayo, 17:43, Navigateur  wrote:
> Wow, thanks José and David!
>
> I'm new to "tools" so I'm a bit nervous about using them (although I
> probably shouldn't be) whereas db4o offers straightforward code for
> persisting objects. Are there any disadvantages to using db4o instead
> of ORM with tools? db4o seems intuitavely the best option for me right
> now, but could I be wrong? I thank David for bringing it to my
> attention, it looks VERY interesting, and under active development,
> although the queries are currently reportedly slow, but when that is
> fixed, is there a reason why it shouldn't supercede RD and ORD for new
> projects?
>
> On May 20, 3:18 pm, José González Gómez
>
>
>
>  wrote:
> > JPA/Hibernate supports annotations, so you don't have to fiddle with
> > xml files any more; and JPA/Hibernate has adopted the "sane defaults"
> > and "convention over configuration" policy, so unless you want to take
> > control of your mappings (something you should do if you're doing
> > anything serious) most of the times it's enough to annotate the
> > persistent class with the @Entity annotation.
>
> > Anyway, if you're handling complex object structures, it's way more
> > cumbersome to handle persistence by hand, instead of using a ORM
> > framework. If you want to have automatic update of the database,
> > Hibernate tools is able to generate the database schema from your
> > mappings. I suggest to take a look at Maven, Maven Hibernate plugin,
> > JBoss Tools, and Spring Roo. Haven't worked with the later, but GWT
> > has just made a coordinated release with Spring Roo and I think it may
> > be quite interesting for you.
>
> > I hope this isn't getting too much OT...
>
> > HTH, best regards
> > José
>
> > On 20 mayo, 15:37, Navigateur  wrote:
>
> > > Thanks José! But don't they still require you to do the "hibernate-
> > > mapping" xml thing? Isn't this cumbersome for complex object
> > > structures? Or is there a way of being able to play with your object
> > > structure without having to change the hibernate-mapping xml every
> > > time (i.e. a default automatic behaviour for all objects, which also
> > > updates the data-store to reflect object-structure changes in the
> > > code)?
>
> > > Thanks!
> > > N
>
> > > On May 20, 10:08 am, José González Gómez
>
> > >  wrote:
> > > > Although your question has (almost) nothing to do with GWT... we're
> > > > working on a GWT + JavaEE application, and evaluated several
> > > > alternatives regarding this problem. We had two winners, both of them
> > > > using of course JPA with Hibernate provider:
>
> > > > 1. Use Gilead to transform your persistent entities and send them to
> > > > GWT
> > > > 2. Use DTOs, and use Dozer to transform from / to domain objects /
> > > > entities
>
> > > > In our case we chose DTOs / Dozer over Gilead because we favoured
> > > > layer separation, encapsulation and security over development ease.
> > > > YMMV
>
> > > > Best regards
> > > > José
>
> > > > On 20 mayo, 10:54, Navigateur  wrote:
>
> > > > > Ah yes! Except that I want to be able to get persistent things onto my
> > > > > client side without too much conversion or trouble (i.e. the same
> > > > > objects client-and-server-side using the same language, and the same
> > > > > class definitions).
>
> > > > > What are my full range of options for this, anyway?
> > > > > And which is the best one for the purposes I've mentioned?
>
> > > > > On May 20, 12:34 am, Blessed Geek  wrote:
>
> > > > > > Wouldn't  your initial question be like -
> > > > > > What is the best power tool to use to build the fence around my 
> > > > > > garden
> > > > > > if I wish to plant my garden with tulips.
>
> > > > > > But later on in your post, you reveal that your question actually 
> > > > > > has
> > > > > > nothing to do with GWT, just as growing tulips has nothing to do 
> > > > > > with
> > > > > > choice of power tools for your fence.
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google 
> > > > > > Groups "Google Web Toolkit" group.
> > > > > > To post to this group, send email to 
> > > > > > google-web-tool...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to 
> > > > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > > > For more options, visit this group 
> > > > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups "Google Web Toolkit" group.
> > > > > To post to this group, send email to 
> > > > > google-web

Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-05-20 Thread gengstrand
Be advised that Gilead used to be called hibernate4gwt and still
supports only hibernate. Check out the latter half of
http://www.dynamicalsoftware.com/gwt if you want to learn about some
more DTO assemblers used in solving the ORM / GWT-RPC incompatibility
problem.

On May 20, 3:08 am, José González Gómez
 wrote:
> Although your question has (almost) nothing to do with GWT... we're
> working on a GWT + JavaEE application, and evaluated several
> alternatives regarding this problem. We had two winners, both of them
> using of course JPA with Hibernate provider:
>
> 1. Use Gilead to transform your persistent entities and send them to
> GWT
> 2. Use DTOs, and use Dozer to transform from / to domain objects /
> entities
>
> In our case we chose DTOs / Dozer over Gilead because we favoured
> layer separation, encapsulation and security over development ease.
> YMMV
>
> Best regards
> José
>
> On 20 mayo, 10:54, Navigateur  wrote:
>
>
>
> > Ah yes! Except that I want to be able to get persistent things onto my
> > client side without too much conversion or trouble (i.e. the same
> > objects client-and-server-side using the same language, and the same
> > class definitions).
>
> > What are my full range of options for this, anyway?
> > And which is the best one for the purposes I've mentioned?
>
> > On May 20, 12:34 am, Blessed Geek  wrote:
>
> > > Wouldn't  your initial question be like -
> > > What is the best power tool to use to build the fence around my garden
> > > if I wish to plant my garden with tulips.
>
> > > But later on in your post, you reveal that your question actually has
> > > nothing to do with GWT, just as growing tulips has nothing to do with
> > > choice of power tools for your fence.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Need some help reviewing a book

2010-05-20 Thread mikedshaf...@gmail.com
Just sent the email.  I'm all in!

On May 20, 8:43 am, Robert Hanson  wrote:
> I haven't posted here in a while, but I need some help.
>
> A few of us (Ian Bambury, Chris Ramsdale, Adam Tacy, and me) are working on
> a book for Manning, and we are a bit short on reviewers.  So there is anyone
> interested in doing a book review, we could use the help.  The amount of
> experience with GWT doesn't matter.  All that matters is that you are
> willing to provide honest feedback on what we have written (i.e. don't hold
> back -- we can take it). The perks are that you get the book for free, and
> your name gets mentioned in the acknowledgments.
>
> If you are interested, you can contact Karen, the Reviews Editor directly,
> k...@manning.com.
>
> Thanks in advance.
>
> Rob
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: How can I clone an object in GWT?

2010-05-20 Thread kozura
Well of course there's no need to send the state to the server, just
capture it and maintain it on the client (of course the user can't
copy the link to send to someone else, just use it locally).  Just
mentioning that if you already do send the data to the server for
other reasons, you already have the capture state methods done.  As
for reconstructing, I don't know your app but would be surprised that
it would be too difficult - I've done this lots on various complexity
of widgets, and while a little tricky in some cases, once done it
makes the programming model much easier.

On May 20, 9:21 am, Mike Jiang  wrote:
> Understand what you suggested. Thanks.
>
> The reason for doing this way is based on the following considerations,
>
> 1. The screens are saved as objects completely on the client side. No
> client-server networking traffic issues during the storing and reloading
> process. Even in multiple concurrent client environment, it would not cause
> problem on server side. the only expense is on the individual client ;
> 2. Extracting the data and saving the data only would be a good idea, just
> like sending bare data rather than sending a serialized object  as a whole
> with overhead across the network.  The problem is that reconstructing the
> screen is not a simple job, especially for a rich component screen. Thus I
> would like to borrow the idea of the object serialization scenario.
>

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



AuthSub vs. history tokens

2010-05-20 Thread David Given
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to log in to a Google service by using AuthSub. This works by
redirecting the user to a Google login page, which then redirects back
to my app after login with a cookie in the #... section of the URL.

Unfortunately this appears to conflict with my app's use of hisotry
tokens, which are *also* stored in the #... section of the URL. So when
my app reloads I don't know what page the user was previously looking at.

It would appear that traditional Javascript apps don't have to worry
about this as AFAICT they don't use history tokens in the same way as GWT.

Does anyone have experience of using AuthSub with GWT, and how did you
work around this?

- -- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
│ --- Conway's Game Of Life, in one line of APL
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkv1bTMACgkQf9E0noFvlzjtvwCguPNstRCRZ5a6mNPSBzawTSSm
gzEAoMtawwjdIHGFdQe0l0WuE8ogT68U
=N4Je
-END PGP SIGNATURE-

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



Re: Can i run hosted mode with Tomcat?

2010-05-20 Thread randy
Hi, I posted the approximately the same question yesterday but the
list administrator never approved my post. I have no idea why, kind of
frustrating. Instead I spent 6 hours on this issue.

Anyway.. http://www.ducktools.org/2010/05/gwt-eclipse-tomcat-2.html
skip to the "Run GWT Development Mode" section near the bottom. That
should tell you how to do it. Also you may need this..
http://osdir.com/ml/Google-Web-Toolkit/2009-11/msg01366.html

On May 20, 10:27 am, nacho  wrote:
> Hi, i need to run hosted mode so then i can debbug the client classes.
>
> I need to use tomcat because in my project i'm using jax.ws in the
> server classes and when i try to use hosted mode with jetty its
> exploits.
>
> Can i do that? Can i debbug client classes using tomcat instead jetty?
>
> Can someone tell me how can i do?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread metrixon
I just downloaded the M1 release of GWT 2.1 and was wondering where I
can find more information on the MVP framework that will be part of
GWT 2.1.
I looked around the Javadocs but did not find anything like it. Is the
MVP framework already part of the M1 release ?

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



resize-able panels like in google wave

2010-05-20 Thread outsource lucas
Hi all,

I am still quite new to GWT.

If I wish to make resize-able panels (horizontal or vertical resizer
bars) like in google wave, what is the best way to implement this in
GWT? Is there any example available?

Lucas

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



GWT StockWatcher tutorial app with JSON runs on Firefox but not IE

2010-05-20 Thread wla2000
I have completed the GWT JSON tutorial (http://code.google.com/
webtoolkit/doc/latest/tutorial/JSON.html) but ran into trouble.  The
servlet class coded therein (JsonStockData) works fine in Firefox (v
3.0.18) but in in IE (v 7).

The tutorial directed me to run the servlet directly from the address
bar in the browser, as follows: 
http://localhost:/stockwatcher/stockPrices?q=ABC+DEF.
When I do that in Firefox, it generates a JSON script including stock
price and change information for fictitious stocks ABC and DEF.  That
proves that the servlet will work correctly when invoked from the GWT
code in the StockWatcher class.  And indeed it does work - when I type
in any fictitious stock symbol, the servlet generates quasi-random
stock price data and returns it in a little JSON file which is then
included in the output data.

However, when I try both of those things (running the servlet
separately and running it as part of the StockWatcher application) I
get "HTTP method GET is not supported by this URL" messages
displayed.  That's an HTTP 405 error.  I've looked up that error on
Google, and the concensus seems to be that it occurs when the doGet()
method is not defined in the servlet.  I'm sure that would be
applicable if there was no doGet() method, but I do have a doGet()
method, copied in from the tutorial code.

I have not tried this with any other browsers.

Any idea what's wrong?  Is there some setting in IE7 that is
preventing the GET method from running?

I'm not posting any code here because it's all taken from the
tutorial.  However, is if there is any specific thing you want to see,
let me know and I'll post it.

Thanks.

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



timeseries chart using GWT

2010-05-20 Thread bala
Hi All,
I wanted to draw simple timeseries chart using GWT.
can u please send me the sample code to do this.
thanks

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



Problems w/ Switching Off App Engine

2010-05-20 Thread Nick Jost
I'd been using App Engine since that is the default setting.  However,
I need to turn that off because I need access to local file storage on
the server side and I will be moving to a physically secure
environment.  I should also note that I'm a newly minted GWT user.

My steps to the error are:
1.) In Eclipse right click project->properties->Google->App Engine-
>Uncheck Use Google App Engine
2.) Click run debug button
3.) Window pops for debug view.  I click Yes
4.) In DevModeBase.class process is halted at "shutDown" in method
"run()"
5.) Console reads:
[WARN] Server class
'com.google.appengine.repackaged.org.apache.commons.logging.impl.Log4JLogger'
could not be found in the web app, but was found on the system
classpath
   [WARN] Adding classpath entry 'file:/home/njost/.eclipse/155965261/
plugins/com.google.appengine.eclipse.sdkbundle.
1.3.2_1.3.2.v201003242055/appengine-java-sdk-1.3.2/lib/shared/jsp/
repackaged-appengine-commons-logging-1.1.1.jar' to the web app
classpath for this session
   For additional info see: file:/home/njost/.eclipse/155965261/
plugins/com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/
gwt-2.0.3/doc/helpInfo/webAppClassPath.html
Starting Jetty on port 
   [WARN] failed org.mortbay.jetty.nio.selectchannelconnecto...@425eb9
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
lang/Object;)V
at org.mortbay.io.nio.SelectorManager
$SelectSet.(SelectorManager.java:306)
at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
223)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
303)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
543)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
at com.google.gwt.dev.DevMode.main(DevMode.java:275)
   [WARN] failed selectchannelconnec...@127.0.0.1:
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
lang/Object;)V
at org.mortbay.io.nio.SelectorManager
$SelectSet.(SelectorManager.java:306)
at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
223)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
303)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
543)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
at com.google.gwt.dev.DevMode.main(DevMode.java:275)
   [WARN] failed ser...@c550
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
lang/Object;)V
at org.mortbay.io.nio.SelectorManager
$SelectSet.(SelectorManager.java:306)
at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
223)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
303)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
543)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
at com.google.gwt.dev.DevMode.main(DevMode.java:275)

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



suggest box - how to override default behavior

2010-05-20 Thread doles
Hello Team,

I cant find my initial post on this topic, so this might be a re-post
for some of you.

I have a SuggestBox in my gwt app that needs to add an additional
parameter to the request that is sent to the server for auto-
completion. How can i do this? There is no method to add additional
parameters to the SuggestOracle. I tried sub-classing the
SuggestOracle, but most of the methods in that class are default
access and if I sub-class the SuggestOracle.Request class, the RPC
mechanism fails to make the request... The only other way is to modify
the query in the requestSuggestions method... but that does not sound
clean to me... sounds like a hack...

So, what is the best way to add parameters to an ajax request made by
the SuggestBox?

Best,
Sachin

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



Carbide.ui Theme Edition 2.0 Plug-ins

2010-05-20 Thread James Baker
These plug ins are cool tools for extending the features of Carbide.ui
Theme Edition 2.0 to enable the creation of themes for various version
of Symbian, S60 platform editions, and devices from Nokia.

Before installing the S60 5th Edition plug-in please uninstall the
version in Carbide.ui. Instructions on this process are provided in
the Carbide.ui Theme Edition S60 5th Edition Plug-in: Installation and
What’s New Guide.

To download a plug-in, select the required plug-in from the download
drop-down menu at http://bit.ly/8YidsT

Check it out guys!!!

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



GWT 2.0.3 migration issue => java.lang.AssertionError: Not enough methods, expecting 3 saw 2

2010-05-20 Thread lmolinero
Hi, I've run into a problem after migrating form GWT 1.7 to GWT 2.0.3

one of my rpc is failling in 2.0.3 and throwing this:


java.lang.AssertionError: Not enough methods, expecting 3 saw 2
at
com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:
165)
at
com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:
145)
at .

this is my rcp:

Service Method
public void asignarCuentas(List usuarios, HashMap
gestiones)

Async Service Method
public void asignarCuentas(List usuarios, HashMap
gestiones, AsyncCallback callback)

Service Implementation Method
public void asignarCuentas(List usuarios, HashMap
gestiones){
// some code
}

can anyone explain me what that assertion error means?

thanks



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



Help integrating GWT with existing Eclipse J2EE Tomcat project

2010-05-20 Thread randy
Using the Eclipse plugin I created a new GWT project. I was able to
run it in development mode (via the 'Run As Web Application' command.
I was able to run the auto-generated test app successfully. Note that
I named the test project testGWT.

I have an existing project in Eclipse which uses Tomcat. I need to
integrated GWT into this project.

I followed the instructions here...
http://code.google.com/eclipse/docs/existingprojects.html

I then copied the source code, html and css from the test project into
my project. I also copied the servlet entry into my web.xml.

I restarted Tomcat and noted that the /testgwt directory was
created/

I then tried to hit
http://127.0.0.1:8080/TestGWT.html?gwt.codesvr=127.0.0.1:9997
in my browser, which returned...

"Plugin failed to connect to hosted mode server at 127.0.0.1:9997"

(I tried changing 127.0.0.01 to localhost, which did not help.)

At this point I thought I would simply compile to Javascript and test
that way. I right clicked the project Google > GWT Compile. I get the
dialogue which shows my entry point class. When I click ok I get the
error "GWT compilation failed" with no details as to why. I confirmed
that the gwt-servlet.jar file is on my classpath and Eclipse is
notifying me of no compilation problems prior to the GWT compile
attempt.

I think I must be missing something fundamental.  Does anyone have any
suggestions?

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



Applet integration

2010-05-20 Thread Asier

Hi

We are designing an application that needs client-side digital signatures. 
This is going to be accomplished via a signed java applet.


I know I can add the applet code instantiation via

HTML applet = new HTML();
applet.setHTML(createHTMLApplet());
RootPanel.get().add(applet);

This works well but as this is our first GWT app we have some questions:

- The applet, after being initialized calls some javascript methods to notify 
it has been loaded, and do the same after client-side signature has finished:


function onInitOk(){ ... }
function onSignOk(signature) { }
function onSignCancel() { }
function onSignError(erorr) { }

How can I accomplish this? JSNI? JavaScript Overlays?

- It would be really interesting to comunicate directly with the applet via 
javascript, f.i., leaving in some javascript variables the data to be signed 
and retrieve the signed data when the applet calls the onSignOk function


This is also possible?

Thanks

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



suggest box - how to override default behavior

2010-05-20 Thread doles
Hello Team,

I cant find my initial post on this topic, so this might be a re-post
for some of you.

I have a SuggestBox in my gwt app that needs to add an additional
parameter to the request that is sent to the server for auto-
completion. How can i do this? There is no method to add additional
parameters to the SuggestOracle. I tried sub-classing the
SuggestOracle, but most of the methods in that class are default
access and if I sub-class the SuggestOracle.Request class, the RPC
mechanism fails to make the request... The only other way is to modify
the query in the requestSuggestions method... but that does not sound
clean to me... sounds like a hack...

So, what is the best way to add parameters to an ajax request made by
the SuggestBox?

Best,
Sachin

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



Help integrating GWT with existing Eclipse J2EE Tomcat project

2010-05-20 Thread randy
Using the Eclipse plugin I created a new GWT project. I was able to
run it in development mode (via the 'Run As Web Application' command.
I was able to run the auto-generated test app successfully. Note that
I named the test project testGWT.

I have an existing project in Eclipse which uses Tomcat. I need to
integrated GWT into this project.

I followed the instructions here...
http://code.google.com/eclipse/docs/existingprojects.html

I then copied the source code, html and css from the test project into
my project. I also copied the servlet entry into my web.xml.

I restarted Tomcat and noted that the /testgwt directory was
created/

I then tried to hit
http://127.0.0.1:8080/TestGWT.html?gwt.codesvr=127.0.0.1:9997
in my browser, which returned...

"Plugin failed to connect to hosted mode server at 127.0.0.1:9997"

(I tried changing 127.0.0.01 to localhost, which did not help.)

At this point I thought I would simply compile to Javascript and test
that way. I right clicked the project Google > GWT Compile. I get the
dialogue which shows my entry point class. When I click ok I get the
error "GWT compilation failed" with no details as to why. I confirmed
that the gwt-servlet.jar file is on my classpath and Eclipse is
notifying me of no compilation problems prior to the GWT compile
attempt.

Next I tried compiling to Javascript from the command line and then
hitting the test page in production mode. This worked. This is
obviously an insufficient solution however.

I think I must be missing something fundamental.  Does anyone have any
suggestions?

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



suggest box - how to override default behavior

2010-05-20 Thread doles
Hello,

I sent a message to this group with the same subject as this
message... I do not see my message from this morning on the group...
How do I reach out to the group if my new message does not make the
moderation cut?

Please help.

Sachin Dole

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



FileUpload Look-And-Feel

2010-05-20 Thread Nestor
I understand that the FileUpload widget only wraps the  HTML tag and that I can't control how it looks.

The problem I'm having is that the look-and-feel I'm getting is not
that of the tag.

I'm using IE 8. If I build a HTML form like this:





The widget on the page will not allow text entry.

If I create a GWT FormPanel with a FileUpload Widget (such as the one
in the Showcase) it does. So somehow GWT behaves differently. I even
tried creating my own custom widget, using DOM.createElement() to
build the input tag, and I still got the non-standard behavior.

Why? And is there a way to have the widget behave the way the inherent
HTML widget does?

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



suggest box - how to override default behavior

2010-05-20 Thread doles
Hello All,

I am learning GWT and loving it too.

In my app, I have a suggest box that needs to query the server for its
suggestions. I have it working great when the query to be sent to the
server is the text in the input box alone... however, i dont see any
way to tack on an additional parameter to the query. Even if i sub-
class SuggestBox, the method visibility in SuggestBox is all default
which means i need to be in the same package as gwt. Also, in the sub-
class for SuggestOracle, there is no clearly specified way to add
query parameters to the query... there seems to be an opportunity to
much with the request in SuggestOracle#requestSuggestions(Request
request, Callback callback)... is that what is expected? If not, how
is this done?

Any pointers/help will be highly appreciated. Thank you!

Best,
Sachin

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



RequestBuilder.POST to PHP works in IE, FireFox, but not Chrome Response Status = 0

2010-05-20 Thread Mike Apolis
When sending the code below, everything works great in FF, IE, but the
response that comes back in chrome has a status code of "0", and
contains no data.  At a minimum my php script would response back
"FALSE".

Code:
String requestData =
URL.encode("clientUsername="+authentication.getUsername()
+"&userPassword="+authentication.getPassword()+"&infoNeeded=YES");
String requestURL = URL.encode("http://www.mydomain.com/testing/
loginUser.php");
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
requestURL);
builder.setTimeoutMillis(5000);
builder.setHeader( "Content-Type", "application/x-www-form-
urlencoded" );
builder.setRequestData(requestData);
builder.setCallback(new RequestCallback() {
public void onResponseReceived(Request request, 
Response response)
{

if(response.getText().equals("FALSE")){
callback.onFailure(new 
AuthenticationException("Your not a valid
user"));
}else {
if(response.getStatusCode() == 200){

setAccount(parseAccount(response.getText()));
callback.onSuccess(account);
} else {

Window.alert(response.getStatusText()
+"\n"+response.getStatusCode());
}
}
}
public void onError(Request request, Throwable 
exception) {
System.out.println("Error: 
"+exception.getMessage());
Window.alert("Error:  "+exception.getMessage());
}
});
try{
builder.send();
}catch (RequestException re) {
System.out.println("Error: "+re.getMessage());
}

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



Re: The new 2.1M1 release appears to have a few challenges

2010-05-20 Thread Lex Spoon
The new data-flow optimizer is choking on the code.  Some sort of
uncommon syntax in the code is breaking one of its assertions.


Let me poke around a little to see what's up. Filed as Issue 4957:

http://code.google.com/p/google-web-toolkit/issues/detail?id=4957


Lex

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



Help with DatePicker

2010-05-20 Thread Pedro Perez
Hello everyone,

I am using GWT 2.0 and having trouble with the DatePicker. There is a
lot of conflicting information on the web about the GWT DatePicker
object, and I suspect most of it was written for GWT 1.6.

I am trying to implement a simple DatePicker (I was thinking something
along the lines of Expedia.com or Travelocity.com). I have it kind of
working--my DatePicker can populate my TextBox with the selected date.
However, if I click on the SAME date as selected, the DatePicker will
not disappear:

final DatePicker datePicker = new DatePicker();
final TextBox dateLabel;
dateLabel = new TextBox();

datePicker.addValueChangeHandler(new ValueChangeHandler() {
public void onValueChange(ValueChangeEvent event) {
Date date = (Date) event.getValue();
String dateString =
DateTimeFormat.getMediumDateFormat().format(date);
dateLabel.setText(dateString);
datePicker.setVisible(false);
}
});

datePicker.setVisible(false);
dateLabel.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
datePicker.setVisible(true);
}
});

// Set the default value
datePicker.setValue(new Date(), true);

searchTable.setWidget(0, 0, dateLabel);
searchTable.setWidget(0, 1, datePicker);

Since clicking the same date will not fire a ValueChangeEvent, the
picker stays. It seems to me there must be an easier, more standard
way of implementing the datePicker. I was thinking something like
what's already implemented in http://datepickerdemo.appspot.com/,
although I was unable to find/figure out how they implemented, or at
least more useful information on the DatePicker object in GWT 2.0.

Thanks so much in advance,
Pedro

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



Re: Security restrictions may not be entirely emulated

2010-05-20 Thread Nick Jost
Just posted a similar question (when it comes through via
moderation).  I should note that I'm running on Fedora.  My partner is
running on Windows and shutting off the GAE works just fine.  Wonder
if that provides a clue...

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



Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread Frederic Conrotte
I've asked myself the same question: "New MVP framework ? Where is the
doc?"

I guess they are talking about this one:
http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html

On 20 mai, 10:44, metrixon  wrote:
> I just downloaded the M1 release of GWT 2.1 and was wondering where I
> can find more information on the MVP framework that will be part of
> GWT 2.1.
> I looked around the Javadocs but did not find anything like it. Is the
> MVP framework already part of the M1 release ?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Applet integration

2010-05-20 Thread mbracken
For the GWT-to-Applet communication, JSNI is probably all you need.
For the other side of the conversation you could do it with JSNI, but
an easier way may be to look at the gwt-exporter project and build an
'exported' API that the applet can call in native JS.

http://code.google.com/p/gwt-exporter/
The project site is sparse on doc, but the author's blog should help
you get started: http://timepedia.blogspot.com/search?q=exporter

On May 19, 12:16 pm, Asier  wrote:
> Hi
>
> We are designing an application that needs client-side digital signatures.
> This is going to be accomplished via a signed java applet.
>
> I know I can add the applet code instantiation via
>
> HTML applet = new HTML();
> applet.setHTML(createHTMLApplet());
> RootPanel.get().add(applet);
>
> This works well but as this is our first GWT app we have some questions:
>
> - The applet, after being initialized calls some javascript methods to notify
> it has been loaded, and do the same after client-side signature has finished:
>
> function onInitOk(){ ... }
> function onSignOk(signature) { }
> function onSignCancel() { }
> function onSignError(erorr) { }
>
> How can I accomplish this? JSNI? JavaScript Overlays?
>
> - It would be really interesting to comunicate directly with the applet via
> javascript, f.i., leaving in some javascript variables the data to be signed
> and retrieve the signed data when the applet calls the onSignOk function
>
> This is also possible?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread Paul Stockley
Its actually quite a bit different than what they have talked about in
the past. From a quick look I had, it appears to incorporate a bunch
of scafolding code generation, dynamic binding etc.You can take a look
at the bikeshed project in svn. I think it is still somewhat a work in
progress.

On May 20, 1:48 pm, Frederic Conrotte 
wrote:
> I've asked myself the same question: "New MVP framework ? Where is the
> doc?"
>
> I guess they are talking about this 
> one:http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html
>
> On 20 mai, 10:44, metrixon  wrote:
>
> > I just downloaded the M1 release of GWT 2.1 and was wondering where I
> > can find more information on the MVP framework that will be part of
> > GWT 2.1.
> > I looked around the Javadocs but did not find anything like it. Is the
> > MVP framework already part of the M1 release ?
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Get file on server with a pattern

2010-05-20 Thread ciosbel
Nevermind. I called the getServletContext() inside the constructor
rather that inside an rpc method.

ciosbel.

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



Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread metrixon
I think, the whole MVP with GWT thing is actually inspired by the talk
given by Ray Ryan on last year's Google IO (see 
http://www.youtube.com/watch?v=PDuhR18-EdM).
Currently, there are implementations available that do provide an MVP
infrastructure and implement other patterns as well:
- http://code.google.com/p/gwt-presenter/
- http://code.google.com/p/gwt-dispatch/
- http://code.google.com/p/gwt-platform/

However, it would be nice to see these features integrated into GWT
directly, therefore I'm really interested in how Google itself
implemented the patterns :-)
I know that the announcement was just yesterday but it would be great
to get more detailed information on the new features introduced in 2.1
(especially the new widgets and mvp).
Regarding the demo given during the keynote, I'd also like to know how
the automatic resizing for mobile screens takes place.
Kind regards,
Christian


On May 20, 7:48 pm, Frederic Conrotte 
wrote:
> I've asked myself the same question: "New MVP framework ? Where is the
> doc?"
>
> I guess they are talking about this 
> one:http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html
>
> On 20 mai, 10:44, metrixon  wrote:
>
> > I just downloaded the M1 release of GWT 2.1 and was wondering where I
> > can find more information on the MVP framework that will be part of
> > GWT 2.1.
> > I looked around the Javadocs but did not find anything like it. Is the
> > MVP framework already part of the M1 release ?
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread Paul Stockley
Actually I don't think it has much relation to that. I think it
originated from this:

http://code.google.com/p/google-web-toolkit/wiki/ValueStoreAndRequestFactory

On May 20, 2:03 pm, metrixon  wrote:
> I think, the whole MVP with GWT thing is actually inspired by the talk
> given by Ray Ryan on last year's Google IO 
> (seehttp://www.youtube.com/watch?v=PDuhR18-EdM).
> Currently, there are implementations available that do provide an MVP
> infrastructure and implement other patterns as well:
> -http://code.google.com/p/gwt-presenter/
> -http://code.google.com/p/gwt-dispatch/
> -http://code.google.com/p/gwt-platform/
>
> However, it would be nice to see these features integrated into GWT
> directly, therefore I'm really interested in how Google itself
> implemented the patterns :-)
> I know that the announcement was just yesterday but it would be great
> to get more detailed information on the new features introduced in 2.1
> (especially the new widgets and mvp).
> Regarding the demo given during the keynote, I'd also like to know how
> the automatic resizing for mobile screens takes place.
> Kind regards,
> Christian
>
> On May 20, 7:48 pm, Frederic Conrotte 
> wrote:
>
>
>
>
>
> > I've asked myself the same question: "New MVP framework ? Where is the
> > doc?"
>
> > I guess they are talking about this 
> > one:http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html
>
> > On 20 mai, 10:44, metrixon  wrote:
>
> > > I just downloaded the M1 release of GWT 2.1 and was wondering where I
> > > can find more information on the MVP framework that will be part of
> > > GWT 2.1.
> > > I looked around the Javadocs but did not find anything like it. Is the
> > > MVP framework already part of the M1 release ?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: timeseries chart using GWT

2010-05-20 Thread Sean
Here, check this out. This is Google's Visualization and Chart API for
GWT:

http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted

On May 20, 3:23 am, bala  wrote:
> Hi All,
> I wanted to draw simple timeseries chart using GWT.
> can u please send me the sample code to do this.
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: resize-able panels like in google wave

2010-05-20 Thread Sean
I haven't used Google Wave, but it sounds like you're talking about
HorizontalSplitPanel which is built into GWT. There's also a
VerticalSplitPanel.





On May 20, 7:38 am, outsource lucas  wrote:
> Hi all,
>
> I am still quite new to GWT.
>
> If I wish to make resize-able panels (horizontal or vertical resizer
> bars) like in google wave, what is the best way to implement this in
> GWT? Is there any example available?
>
> Lucas
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: resize-able panels like in google wave

2010-05-20 Thread kozura
Or the new SplitLayoutPanel which does arbitrary resizable panels.

On May 20, 1:00 pm, Sean  wrote:
> I haven't used Google Wave, but it sounds like you're talking about
> HorizontalSplitPanel which is built into GWT. There's also a
> VerticalSplitPanel.
>
> On May 20, 7:38 am, outsource lucas  wrote:
>
> > Hi all,
>
> > I am still quite new to GWT.
>
> > If I wish to make resize-able panels (horizontal or vertical resizer
> > bars) like in google wave, what is the best way to implement this in
> > GWT? Is there any example available?
>
> > Lucas
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Problems w/ Switching Off App Engine

2010-05-20 Thread Sripathi Krishnan
Remove all google app engine jars from the project classpath and try again.

--Sri


On 20 May 2010 22:55, Nick Jost  wrote:

> I'd been using App Engine since that is the default setting.  However,
> I need to turn that off because I need access to local file storage on
> the server side and I will be moving to a physically secure
> environment.  I should also note that I'm a newly minted GWT user.
>
> My steps to the error are:
> 1.) In Eclipse right click project->properties->Google->App Engine-
> >Uncheck Use Google App Engine
> 2.) Click run debug button
> 3.) Window pops for debug view.  I click Yes
> 4.) In DevModeBase.class process is halted at "shutDown" in method
> "run()"
> 5.) Console reads:
> [WARN] Server class
>
> 'com.google.appengine.repackaged.org.apache.commons.logging.impl.Log4JLogger'
> could not be found in the web app, but was found on the system
> classpath
>   [WARN] Adding classpath entry 'file:/home/njost/.eclipse/155965261/
> plugins/com.google.appengine.eclipse.sdkbundle.
> 1.3.2_1.3.2.v201003242055/appengine-java-sdk-1.3.2/lib/shared/jsp/
> repackaged-appengine-commons-logging-1.1.1.jar' to the web app
> classpath for this session
>   For additional info see: file:/home/njost/.eclipse/155965261/
> plugins/com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/
> gwt-2.0.3/doc/helpInfo/webAppClassPath.html
> Starting Jetty on port 
>   [WARN] failed org.mortbay.jetty.nio.selectchannelconnecto...@425eb9
> java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
> lang/Object;)V
>at org.mortbay.io.nio.SelectorManager
> $SelectSet.(SelectorManager.java:306)
>at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> 223)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at
>
> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
> 303)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at org.mortbay.jetty.Server.doStart(Server.java:233)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at
> com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> 543)
>at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
>at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
>at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
>at com.google.gwt.dev.DevMode.main(DevMode.java:275)
>   [WARN] failed selectchannelconnec...@127.0.0.1:
> java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
> lang/Object;)V
>at org.mortbay.io.nio.SelectorManager
> $SelectSet.(SelectorManager.java:306)
>at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> 223)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at
>
> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
> 303)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at org.mortbay.jetty.Server.doStart(Server.java:233)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at
> com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> 543)
>at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
>at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
>at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
>at com.google.gwt.dev.DevMode.main(DevMode.java:275)
>   [WARN] failed ser...@c550
> java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
> lang/Object;)V
>at org.mortbay.io.nio.SelectorManager
> $SelectSet.(SelectorManager.java:306)
>at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> 223)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at
>
> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
> 303)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at org.mortbay.jetty.Server.doStart(Server.java:233)
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>at
> com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> 543)
>at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
>at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
>at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
>at com.google.gwt.dev.DevMode.main(DevMode.java:275)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr.

Re: RequestBuilder.POST to PHP works in IE, FireFox, but not Chrome Response Status = 0

2010-05-20 Thread Sripathi Krishnan
Are you posting to a different port on the same host? AFAIK, IE allows you
to post to the same port, but other browsers consider it a violation of same
origin policy.

--Sri


On 20 May 2010 20:32, Mike Apolis  wrote:

> When sending the code below, everything works great in FF, IE, but the
> response that comes back in chrome has a status code of "0", and
> contains no data.  At a minimum my php script would response back
> "FALSE".
>
> Code:
> String requestData =
> URL.encode("clientUsername="+authentication.getUsername()
> +"&userPassword="+authentication.getPassword()+"&infoNeeded=YES");
>String requestURL = URL.encode("http://www.mydomain.com/testing/
> loginUser.php ");
>RequestBuilder builder = new
> RequestBuilder(RequestBuilder.POST,
> requestURL);
>builder.setTimeoutMillis(5000);
>builder.setHeader( "Content-Type", "application/x-www-form-
> urlencoded" );
>builder.setRequestData(requestData);
>builder.setCallback(new RequestCallback() {
>public void onResponseReceived(Request request,
> Response response)
> {
>
>if(response.getText().equals("FALSE")){
>callback.onFailure(new
> AuthenticationException("Your not a valid
> user"));
>}else {
>if(response.getStatusCode() == 200){
>
>  setAccount(parseAccount(response.getText()));
>callback.onSuccess(account);
>} else {
>
>  Window.alert(response.getStatusText()
> +"\n"+response.getStatusCode());
>}
>}
>}
>public void onError(Request request, Throwable
> exception) {
>System.out.println("Error:
> "+exception.getMessage());
>Window.alert("Error:
>  "+exception.getMessage());
>}
>});
>try{
>builder.send();
>}catch (RequestException re) {
>System.out.println("Error: "+re.getMessage());
>}
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Client side dynamic configuration/properties

2010-05-20 Thread mmoossen
What's about rpc-prefetching?

http://development.lombardi.com/?p=1329

HTH
Michael

On May 20, 3:16 pm, mariyan nenchev  wrote:
> You need to create some .properties file on the server side. And every
> client must make request for it. If it is on the client side it could be
> loaded as TextResource, but on every change the gwt project must be
> recompiled, which does not make it very dynamic. I recommend you to use
> server side .properties file and load it as map or something.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread metrixon
Thanks for the link Paul - I'm afraid my answer overlapped with your
first reply.
I think we talk about two different features in 2.1:
first, there is the data binding stuff that was shown in great length
during the keynote and I agree that it seems to be originating form
the link you posted.
The other feature is the MVP infrastructure. To my mind, the MVP
framework has nothing to do with the server side but is intended for a
clean separation of concerns within the client layer. As far as I
understand MVP, it essentially decouples the actual view code from the
logic that handles the data (the Presenter), making the logic part a
lot easier to test.

Regarding the data binding part, there are some new classes that also
appear in the javadocs of M1 (Cell-Classes, ListView, Pager etc.) but
I haven't found anything regarding the MVP-Framework.


On 20 Mai, 20:10, Paul Stockley  wrote:
> Actually I don't think it has much relation to that. I think it
> originated from this:
>
> http://code.google.com/p/google-web-toolkit/wiki/ValueStoreAndRequest...
>
> On May 20, 2:03 pm, metrixon  wrote:
>
>
>
>
>
> > I think, the whole MVP with GWT thing is actually inspired by the talk
> > given by Ray Ryan on last year's Google IO 
> > (seehttp://www.youtube.com/watch?v=PDuhR18-EdM).
> > Currently, there are implementations available that do provide an MVP
> > infrastructure and implement other patterns as well:
> > -http://code.google.com/p/gwt-presenter/
> > -http://code.google.com/p/gwt-dispatch/
> > -http://code.google.com/p/gwt-platform/
>
> > However, it would be nice to see these features integrated into GWT
> > directly, therefore I'm really interested in how Google itself
> > implemented the patterns :-)
> > I know that the announcement was just yesterday but it would be great
> > to get more detailed information on the new features introduced in 2.1
> > (especially the new widgets and mvp).
> > Regarding the demo given during the keynote, I'd also like to know how
> > the automatic resizing for mobile screens takes place.
> > Kind regards,
> > Christian
>
> > On May 20, 7:48 pm, Frederic Conrotte 
> > wrote:
>
> > > I've asked myself the same question: "New MVP framework ? Where is the
> > > doc?"
>
> > > I guess they are talking about this 
> > > one:http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html
>
> > > On 20 mai, 10:44, metrixon  wrote:
>
> > > > I just downloaded the M1 release of GWT 2.1 and was wondering where I
> > > > can find more information on the MVP framework that will be part of
> > > > GWT 2.1.
> > > > I looked around the Javadocs but did not find anything like it. Is the
> > > > MVP framework already part of the M1 release ?
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to 
> > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Compiling classes that refer to uncompilable classes

2010-05-20 Thread Raziel
Hi, currently I create modules in order to access server-side classes
in my GWT client code. Until now all these classes have not referred
(directly or indirectly) to classes outside of the GWT JRE emulation.

However, now I need to be able to compile a bean with a reference to
javax.xml.namescape.QName. And in general I see how it might soon be
needed to compile classes with references to uncompilable classes
either because it's a third party class and we don't have the source
available, or it's a JRE class for which there's no emulation yet,
etc.

So I'm wondering if there's a way to use deferred binding to provide
the compiler with a "client-side specific" implementation of those
classes. The caveat of course is that the class containing the
offending reference to uncompilable code should not be changed. For
example:

class MyBean {

  QName q;

  MyBean(QName q) {
this.q = q;
  }

}

Maybe something along the lines of ...





For what I read nothing of the like is possible, since for starters
the deferred implementation has to go through GWT.create(), but I'm
hoping there's another way I haven't thought about.

Thanks

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



LayoutPanel

2010-05-20 Thread Blessed Geek
I cannot get contents of LayoutPanel to display after
 placing it inside a verticalpanel which in turn is
  placed inside a TabLayoutPanel,
 all thro UIBinder.

Chrome would display a little bit but contents of LayoutPanel is all
blank for FF.
In standards mode.

Any one else have trouble with LayoutPanel?

Is LayoutPanel problematic and buggy and should not be used?
Any alternative?

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



Is switching to GWT 2.1 safe?

2010-05-20 Thread Raffo
I'm currently working on a project with GWT and I want to know if it
is safe to switch now to GWT 2.1... I don't want to have strange bugs
or other problems that will slow down the development... thank you.

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



Re: LayoutPanel

2010-05-20 Thread kozura
Be sure to read fully through 
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
for various caveats and restrictions.  In particular, if a layout
panel is not directly parented by a widget that implements
ProvidesResize, you must explicitly set its size (see "Using a
LayoutPanel without RootLayoutPanel")

Also there is an issue with TabLayoutPanel, but IE related:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4694&can=5

On May 20, 3:29 pm, Blessed Geek  wrote:
> I cannot get contents of LayoutPanel to display after
>  placing it inside a verticalpanel which in turn is
>   placed inside a TabLayoutPanel,
>  all thro UIBinder.
>
> Chrome would display a little bit but contents of LayoutPanel is all
> blank for FF.
> In standards mode.
>
> Any one else have trouble with LayoutPanel?
>
> Is LayoutPanel problematic and buggy and should not be used?
> Any alternative?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Is switching to GWT 2.1 safe?

2010-05-20 Thread Jeff Chimene
On 05/20/2010 02:35 PM, Raffo wrote:
> I'm currently working on a project with GWT and I want to know if it
> is safe to switch now to GWT 2.1... I don't want to have strange bugs
> or other problems that will slow down the development... thank you.
> 

If you are in a time crunch, there is absolutely no
[point/reason/excuse] to adopt 2.1M1 It's a milestone release; which
label means the odds are not in your favor that it's free of
show-stopper bugs that can & will affect your project.

That being said, you can install 2.1 side-by-side with 2.0.

Do you use an IDE? If you use a recent version of Eclipse, such parallel
testing is fairly straightforward.

Earlier today there was a message re: a compile error on 2.1M1 Check
today's archived posts for more info.

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



Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread Paul Stockley
There is the data bound cell based list and tree widgets they talked
about. These are really independent of any mvp framework. However,
there is also server/client side data binding support that is part of
their new business application framework. The expenses application is
very different from the mvp stuff shown to date. If you look at the
bikeshed project in the 2.1 branch you can see the expenses
application code.

On May 20, 5:12 pm, metrixon  wrote:
> Thanks for the link Paul - I'm afraid my answer overlapped with your
> first reply.
> I think we talk about two different features in 2.1:
> first, there is the data binding stuff that was shown in great length
> during the keynote and I agree that it seems to be originating form
> the link you posted.
> The other feature is the MVP infrastructure. To my mind, the MVP
> framework has nothing to do with the server side but is intended for a
> clean separation of concerns within the client layer. As far as I
> understand MVP, it essentially decouples the actual view code from the
> logic that handles the data (the Presenter), making the logic part a
> lot easier to test.
>
> Regarding the data binding part, there are some new classes that also
> appear in the javadocs of M1 (Cell-Classes, ListView, Pager etc.) but
> I haven't found anything regarding the MVP-Framework.
>
> On 20 Mai, 20:10, Paul Stockley  wrote:
>
>
>
>
>
> > Actually I don't think it has much relation to that. I think it
> > originated from this:
>
> >http://code.google.com/p/google-web-toolkit/wiki/ValueStoreAndRequest...
>
> > On May 20, 2:03 pm, metrixon  wrote:
>
> > > I think, the whole MVP with GWT thing is actually inspired by the talk
> > > given by Ray Ryan on last year's Google IO 
> > > (seehttp://www.youtube.com/watch?v=PDuhR18-EdM).
> > > Currently, there are implementations available that do provide an MVP
> > > infrastructure and implement other patterns as well:
> > > -http://code.google.com/p/gwt-presenter/
> > > -http://code.google.com/p/gwt-dispatch/
> > > -http://code.google.com/p/gwt-platform/
>
> > > However, it would be nice to see these features integrated into GWT
> > > directly, therefore I'm really interested in how Google itself
> > > implemented the patterns :-)
> > > I know that the announcement was just yesterday but it would be great
> > > to get more detailed information on the new features introduced in 2.1
> > > (especially the new widgets and mvp).
> > > Regarding the demo given during the keynote, I'd also like to know how
> > > the automatic resizing for mobile screens takes place.
> > > Kind regards,
> > > Christian
>
> > > On May 20, 7:48 pm, Frederic Conrotte 
> > > wrote:
>
> > > > I've asked myself the same question: "New MVP framework ? Where is the
> > > > doc?"
>
> > > > I guess they are talking about this 
> > > > one:http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html
>
> > > > On 20 mai, 10:44, metrixon  wrote:
>
> > > > > I just downloaded the M1 release of GWT 2.1 and was wondering where I
> > > > > can find more information on the MVP framework that will be part of
> > > > > GWT 2.1.
> > > > > I looked around the Javadocs but did not find anything like it. Is the
> > > > > MVP framework already part of the M1 release ?
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups "Google Web Toolkit" group.
> > > > > To post to this group, send email to 
> > > > > google-web-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to 
> > > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > > For more options, visit this group 
> > > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to 
> > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?h

Re: Is switching to GWT 2.1 safe?

2010-05-20 Thread Paul Stockley
I have a fatal compiler issue when trying to compile my application.
They are working on tracking it down. Dev mode
works OK. The only reason I am on it is because I want to try out the
new cell views. I would hold off for a while
if you can.

On May 20, 5:55 pm, Jeff Chimene  wrote:
> On 05/20/2010 02:35 PM, Raffo wrote:
>
> > I'm currently working on a project with GWT and I want to know if it
> > is safe to switch now to GWT 2.1... I don't want to have strange bugs
> > or other problems that will slow down the development... thank you.
>
> If you are in a time crunch, there is absolutely no
> [point/reason/excuse] to adopt 2.1M1 It's a milestone release; which
> label means the odds are not in your favor that it's free of
> show-stopper bugs that can & will affect your project.
>
> That being said, you can install 2.1 side-by-side with 2.0.
>
> Do you use an IDE? If you use a recent version of Eclipse, such parallel
> testing is fairly straightforward.
>
> Earlier today there was a message re: a compile error on 2.1M1 Check
> today's archived posts for more info.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Problems w/ Switching Off App Engine

2010-05-20 Thread Nick Jost
Not to be crass, but doesn't that defeat the purpose of having a
setting if I have to do that manually?  That _sounds_ equivalent to
"don't use the gas pedal even though its installed, adjust the
throttle with a wrench".  Is there a way of getting the gas pedal to
work?

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



Re: Problems w/ Switching Off App Engine

2010-05-20 Thread Nick Jost
Doesn't that also make switching back and forth nearly impossible
without introducing errors?

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



Re: Problems w/ Switching Off App Engine

2010-05-20 Thread kozura
Not a thing you'd be switching back and forth on frequently - either
you're using GAE as your backend or not.

In any case having the jars there shouldn't cause any problem, more
likely something wasn't recompiled when switched - maybe try a clean
build after turning off GAE.


On May 20, 4:51 pm, Nick Jost  wrote:
> Doesn't that also make switching back and forth nearly impossible
> without introducing errors?
>

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



Re: Problems w/ Switching Off App Engine

2010-05-20 Thread lordkakita
Clean->Compile->Run Debug

Causes the exact same error.  Another compatriot just chuckled at me for
using GAE in the first place rather than disabling it right away.  And yes,
switching, to experiment with the concept, shouldn't be nightmarish (he
responded that I should recreate the project and port back).

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



Re: Is switching to GWT 2.1 safe?

2010-05-20 Thread Nick Jost
Is there actual documentation out on the new widgets?

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



Re: Problems w/ Switching Off App Engine

2010-05-20 Thread Nick Jost
Also which JARs should I remove if I follow that path.

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



Re: Is switching to GWT 2.1 safe?

2010-05-20 Thread Paul Stockley
There are some javadoc comments on the new classes. There is also a
sample showing how to use the widgets that is checked in under svn
here:

http://google-web-toolkit.googlecode.com/svn/branches/2.1/bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/

On May 20, 7:59 pm, Nick Jost  wrote:
> Is there actual documentation out on the new widgets?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: RequestBuilder.POST to PHP works in IE, FireFox, but not Chrome Response Status = 0

2010-05-20 Thread Mike Apolis
I'm not explicitly asking it to post to any specific port to my
knowledge.  My url is http://www.mydomain.com/testing/login.php. The
site.html file and accompanying folder are in the same directory
"testing" as the php file.

I've seen alot of things about SOP, but I thought if they were on the
same domain I should be fine.  Would each folder be a different port?

Also, I noticed its not a problem unless I navigate to the page with a
history token.  i.e. (mydomain.com/testing.html#initialLogin) fails,
but mydomain.com/testing.html works.

Thanks for all your help.

On May 20, 4:02 pm, Sripathi Krishnan 
wrote:
> Are you posting to a different port on the same host? AFAIK, IE allows you
> to post to the same port, but other browsers consider it a violation of same
> origin policy.
>
> --Sri
>
> On 20 May 2010 20:32, Mike Apolis  wrote:
>
>
>
> > When sending the code below, everything works great in FF, IE, but the
> > response that comes back in chrome has a status code of "0", and
> > contains no data.  At a minimum my php script would response back
> > "FALSE".
>
> > Code:
> > String requestData =
> > URL.encode("clientUsername="+authentication.getUsername()
> > +"&userPassword="+authentication.getPassword()+"&infoNeeded=YES");
> >        String requestURL = URL.encode("http://www.mydomain.com/testing/
> > loginUser.php ");
> >                RequestBuilder builder = new
> > RequestBuilder(RequestBuilder.POST,
> > requestURL);
> >                builder.setTimeoutMillis(5000);
> >                builder.setHeader( "Content-Type", "application/x-www-form-
> > urlencoded" );
> >                builder.setRequestData(requestData);
> >                builder.setCallback(new RequestCallback() {
> >                        public void onResponseReceived(Request request,
> > Response response)
> > {
>
> >                                if(response.getText().equals("FALSE")){
> >                                        callback.onFailure(new
> > AuthenticationException("Your not a valid
> > user"));
> >                                }else {
> >                                        if(response.getStatusCode() == 200){
>
> >  setAccount(parseAccount(response.getText()));
> >                                                callback.onSuccess(account);
> >                                        } else {
>
> >  Window.alert(response.getStatusText()
> > +"\n"+response.getStatusCode());
> >                                        }
> >                                }
> >                        }
> >                        public void onError(Request request, Throwable
> > exception) {
> >                                System.out.println("Error:
> > "+exception.getMessage());
> >                                Window.alert("Error:
> >  "+exception.getMessage());
> >                        }
> >                });
> >                try{
> >                        builder.send();
> >                }catch (RequestException re) {
> >                        System.out.println("Error: "+re.getMessage());
> >                }
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: MVP Framework in GWT 2.1 M1 ?

2010-05-20 Thread licht...@gmail.com
The expenses application code isn't that easy to follow, haven't
deciphered it yet.  Even the author prefaces the nature of the code...

* This app is a mess right now, but it will become the showcase
example of a
* custom app written to RequestFactory

 * UI shell for expenses sample app. A horrible clump of stuff that
should be
 * refactored into proper MVP pieces.







On May 20, 3:08 pm, Paul Stockley  wrote:
> There is the data bound cell based list and tree widgets they talked
> about. These are really independent of any mvp framework. However,
> there is also server/client side data binding support that is part of
> their new business application framework. The expenses application is
> very different from the mvp stuff shown to date. If you look at the
> bikeshed project in the 2.1 branch you can see the expenses
> application code.
>
> On May 20, 5:12 pm, metrixon  wrote:
>
>
>
>
>
> > Thanks for the link Paul - I'm afraid my answer overlapped with your
> > first reply.
> > I think we talk about two different features in 2.1:
> > first, there is the data binding stuff that was shown in great length
> > during the keynote and I agree that it seems to be originating form
> > the link you posted.
> > The other feature is the MVP infrastructure. To my mind, the MVP
> > framework has nothing to do with the server side but is intended for a
> > clean separation of concerns within the client layer. As far as I
> > understand MVP, it essentially decouples the actual view code from the
> > logic that handles the data (the Presenter), making the logic part a
> > lot easier to test.
>
> > Regarding the data binding part, there are some new classes that also
> > appear in the javadocs of M1 (Cell-Classes, ListView, Pager etc.) but
> > I haven't found anything regarding the MVP-Framework.
>
> > On 20 Mai, 20:10, Paul Stockley  wrote:
>
> > > Actually I don't think it has much relation to that. I think it
> > > originated from this:
>
> > >http://code.google.com/p/google-web-toolkit/wiki/ValueStoreAndRequest...
>
> > > On May 20, 2:03 pm, metrixon  wrote:
>
> > > > I think, the whole MVP with GWT thing is actually inspired by the talk
> > > > given by Ray Ryan on last year's Google IO 
> > > > (seehttp://www.youtube.com/watch?v=PDuhR18-EdM).
> > > > Currently, there are implementations available that do provide an MVP
> > > > infrastructure and implement other patterns as well:
> > > > -http://code.google.com/p/gwt-presenter/
> > > > -http://code.google.com/p/gwt-dispatch/
> > > > -http://code.google.com/p/gwt-platform/
>
> > > > However, it would be nice to see these features integrated into GWT
> > > > directly, therefore I'm really interested in how Google itself
> > > > implemented the patterns :-)
> > > > I know that the announcement was just yesterday but it would be great
> > > > to get more detailed information on the new features introduced in 2.1
> > > > (especially the new widgets and mvp).
> > > > Regarding the demo given during the keynote, I'd also like to know how
> > > > the automatic resizing for mobile screens takes place.
> > > > Kind regards,
> > > > Christian
>
> > > > On May 20, 7:48 pm, Frederic Conrotte 
> > > > wrote:
>
> > > > > I've asked myself the same question: "New MVP framework ? Where is the
> > > > > doc?"
>
> > > > > I guess they are talking about this 
> > > > > one:http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html
>
> > > > > On 20 mai, 10:44, metrixon  wrote:
>
> > > > > > I just downloaded the M1 release of GWT 2.1 and was wondering where 
> > > > > > I
> > > > > > can find more information on the MVP framework that will be part of
> > > > > > GWT 2.1.
> > > > > > I looked around the Javadocs but did not find anything like it. Is 
> > > > > > the
> > > > > > MVP framework already part of the M1 release ?
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google 
> > > > > > Groups "Google Web Toolkit" group.
> > > > > > To post to this group, send email to 
> > > > > > google-web-tool...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to 
> > > > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > > > For more options, visit this group 
> > > > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups "Google Web Toolkit" group.
> > > > > To post to this group, send email to 
> > > > > google-web-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to 
> > > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > > For more options, visit this group 
> > > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > google-web-tool...@googlegroups.co

Data Presentation Widgets Help

2010-05-20 Thread licht...@gmail.com
Anyone know where to find the sources, examples, docs to the new Data
Presentation Widgets?

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



Table Row Gaps

2010-05-20 Thread Craigo
When creating a Grid, FlexTable, VerticalPanel, or any other type of
table, I couldn't get rid of the gaps in the rows.  The gaps would
only appear in Chrome and FF, but not in IE6.  They were very small
gaps (about 3 pixels high).  Nothing seemed to work, setCellPadding,
setCellSpacing, css with padding, margin, border-collapse, ...

Finally figured out changing the "doctype" solved it.

The default was:


When I changed it to:


The row gaps disappeared!

If there is a better way, please post.  Thanks.

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