Re: Problem creating custom gwt theme

2010-11-18 Thread Gaurav Vaish
Ensure that your "theme" module "inherits" from
"com.google.gwt.user.User" so as to get a "default-linker".


--
Happy Hacking,
Gaurav Vaish
www.mastergaurav.com


On Nov 18, 1:16 am, mitratul  wrote:
> Hi,
>
> I am trying to create my own theme and use it. But while launching Dev
> mode, it is giving the following errors in eclipse console:
>
> Initializing AppEngine server
> Loading modules
>    com.mitratul.theme.standard.Standard
>       Translatable source found in...
>          [WARN] No source path entries; expect subsequent failures
>       Bootstrap link for command-line module
> 'com.mitratul.theme.standard.Standard'
>          Linking module 'com.mitratul.theme.standard.Standard'
>             Constructing StandardLinkerContext
>                [ERROR] Primary linker is null.  Does your module
> inherit from com.google.gwt.core.Core or com.google.gwt.user.User?
>
> com.mitratul.theme.standard.Standard is my theme module. I have
> followed the same directory structure inside the module as i found
> inside GWT inbuilt themes.
>
> Can anybody tell me why is this error coming?
>
> Thanks
> Ratul

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



Security while deserializing/constructing object on server side for a POST request

2010-11-18 Thread balachandra maddina
Hi There,

   While i was looking at a POST request on a sample application i observed
that the POST request is carrying the following piece of text in the body

java.lang.String/2004016611|N

Here, my question is, is GWT deserialization process is using this
representation to construct  a String object like below?

java.lang.String("N")

If so are there any preventive measures implemented to
avoid instantiating arbitrary object being constructed to avoid any attacks
by a hacker?  Now imagine the attacker
constructing a FileOutputStream("/etc/passwd") - depending on the user
the application server is running, this would create a huge security risk.

Your suggestions are very much appreciated.

Regards,
bala.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 while deserializing/constructing object on server side for a POST request

2010-11-18 Thread Thomas Broyer

On 18 nov, 10:11, balachandra maddina  wrote:
> Hi There,
>
>    While i was looking at a POST request on a sample application i observed
> that the POST request is carrying the following piece of text in the body
>
>     java.lang.String/2004016611|N
>
>     Here, my question is, is GWT deserialization process is using this
> representation to construct  a String object like below?
>
>     java.lang.String("N")
>
>     If so are there any preventive measures implemented to
> avoid instantiating arbitrary object being constructed to avoid any attacks
> by a hacker?

Yes. Deserialization is based on a white list (see
SerializationPolicy), computed at the time you compile your GWT app (a
*.gwt.rpc file). You can customize this by overriding
RemoteServiceServlet#doGetSerializationPolicy (which by default reads
the *.gwt.rpc file following a naming convention).

Also note that in latests versions of GWT (starting with 2.0 ? maybe
only 2.1, dunno) you can have type names obfuscated.

> Now imagine the attacker
>     constructing a FileOutputStream("/etc/passwd") - depending on the user
> the application server is running, this would create a huge security risk.

Even if he could create it, he would still need a mean of reading its
content and have it returned on the wire.


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

2010-11-18 Thread Thomas Broyer


On 18 nov, 06:04, BrianV  wrote:
> Nevermind - I surrounded the template text with   tags,
> generated a random group name in the render method, and it all seems
> to be mostly working.

Even better would be using  so that when the text is clicked
the radio button is selected.
 {1}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Request Factory Entity Relationships Lazy Loading

2010-11-18 Thread Thomas Broyer

On 18 nov, 08:47, agi  wrote:
> Hi
>
> I had this problem as well. I haven't found perfect solution.. What I
> have done is while retrieving data from the database so e.g. in
> findEntity(Long id) method I am forcing persistent layer to return my
> collection immediately:
> Entity findEntity(Long id)
> {
>   // open transaction, get entityManager etc.
>   // ...
>
>   Entity obj = entityManager.find(id);
>
>   // force retrival of collection
>   obj.getDonations().size();
>
>   // handle transaction and entitymanager etc.
>   //...
>
> }
>
> I will be very glad to find out how to make it in a better way:)

I believe the idea is that you use a "request scoped" transaction/JPA-
session (or whatever, I'm not used to JPA/JDO and all that stuff).
See also http://code.google.com/p/google-web-toolkit/issues/detail?id=5389

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

2010-11-18 Thread Thomas Broyer


On 17 nov, 21:16, mitratul  wrote:
> Hi,
>
> I am trying to create my own theme and use it. But while launching Dev
> mode, it is giving the following errors in eclipse console:
>
> Initializing AppEngine server
> Loading modules
>    com.mitratul.theme.standard.Standard
>       Translatable source found in...
>          [WARN] No source path entries; expect subsequent failures
>       Bootstrap link for command-line module
> 'com.mitratul.theme.standard.Standard'
>          Linking module 'com.mitratul.theme.standard.Standard'
>             Constructing StandardLinkerContext
>                [ERROR] Primary linker is null.  Does your module
> inherit from com.google.gwt.core.Core or com.google.gwt.user.User?
>
> com.mitratul.theme.standard.Standard is my theme module. I have
> followed the same directory structure inside the module as i found
> inside GWT inbuilt themes.
>
> Can anybody tell me why is this error coming?

Your theme has to be ed in an application, not compiled
standalone.

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



Simple question about jars

2010-11-18 Thread Jan
Hi community members,

I am using classes which are part of org.w3c.css.sac. They are located
inside the GWT development jar "gwt-user.jar", which means I don't
have to add external jars during coding. However if I run my GWT
project I am getting the error

java.lang.NoClassDefFoundError: org/w3c/css/sac/InputSource

If I now download the corresponding sac jar file and put it into war/
WEB-INF/lib, it works. My question is now the following: is this a bug
or a feature? Shouldn't the usual development classes also be located
inside the lib directory on default.

Thanks

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



Re: GWT Designer errors on GWT 2.1 project in Eclipse Helios 3.6

2010-11-18 Thread Eric Clayberg
Give the latest GWT Designer 8.1 build a try...

http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

Also note that there is a preference for turning the enhanced
compilation checking on and off...


http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/gwt/preferences_builder.html

On Nov 15, 1:01 am, Santu  wrote:
> Hi SteveC,
>
> I'm also facing the same porblem.
> I have started using gwt designer in my existing project, but i am
> getting some errors
>
> com.google.gwt.json.client.JSONArray can not be found in source
> packages.
> Check the inheritance chain from your module;it may not be inheriting
> a required module or a module may not be adding its source path
> entries properly.
>
> com.google.gwt.json.client.JSONObject can not be found in source
> packages.
>  Check the inheritance chain from your module; it may not be
> inheriting a required module or a module may not be adding its source
> path entries properly.
>
> com.google.gwt.json.client.JSONString can not be found in source
> packages.
>  Check the inheritance chain from your module; it may not be
> inheriting a required module or a module may not be adding its source
> path entries properly.
>
> junit.framework.TestCase can not be found in source packages.
> Check the inheritance chain from your module;it may not be inheriting
> a required module or a module may not be adding its source path
> entries properly.
>
> But it was working fine before implementing gwt designer into my
> project !!!
> Please can any one tell me what is these errors ???
>
> And i'v noticed that Gwt designer will maintain only one Gwt Xml file
> for all EntryPoints.. !!
>
> Any help is very appreciated!
>
> On Nov 13, 8:39 pm, SteveC  wrote:
>
>
>
>
>
>
>
> > We are using GWT 2.1 on Eclipse 3.6 running on Windows XP.  After we
> > installed GWT Designer into Eclipse, our project started showing
> > errors in Eclipse relating to classes not being found within our own
> > code.  When we uninstall GWT Designer from Eclipse, the errors go
> > away.
>
> > There are no actual errors in our code but somehow GWT Designer makes
> > Eclipse think there are.
>
> > How can we make GWT Designer coexist with our GWT 2.1 project and not
> > have Eclipse 3.6 report errors where there aren't any?
>
> > Is this a known issue?  My attempts at searching out the problem have
> > failed.

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

2010-11-18 Thread Isuru Madusanka
For my knowledge. You must put all external libraries in the lib folder.
Unless how program access the library. And it is not a bug.

On Thu, Nov 18, 2010 at 7:11 PM, Jan  wrote:

> Hi community members,
>
> I am using classes which are part of org.w3c.css.sac. They are located
> inside the GWT development jar "gwt-user.jar", which means I don't
> have to add external jars during coding. However if I run my GWT
> project I am getting the error
>
> java.lang.NoClassDefFoundError: org/w3c/css/sac/InputSource
>
> If I now download the corresponding sac jar file and put it into war/
> WEB-INF/lib, it works. My question is now the following: is this a bug
> or a feature? Shouldn't the usual development classes also be located
> inside the lib directory on default.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



GWT client-side thread or asynchronous call ?

2010-11-18 Thread MickeyR
Is there anything similar to using java threads that I can use in my
client side code ?

In my application a user types a search term into a Text box. For
every character typed in my code goes and searches in a dataset for
results containing the search string. These results are then returned
and displayed in a List. But the problem is that because my search +
display code is so slow, it makes the typing in very sluggish for the
user (i.e. they can’t type the next character in until the search +
display code has returned).

Ideally I’d like to run the search+display code in a separate thread –
so that the user can continue to type in the Text box. But I
understand that threads are not supported in GWT client-side coding ?
Or is it possible to have the search + display in an only client-side
asynchronous call ?

Any help, much appreciated,
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.



Re: GWT client-side thread or asynchronous call ?

2010-11-18 Thread Jeff Schwartz
Your ajax calls should be asynchronous so your client-side ui shouldn't be
slowed down by making the calls to the servlet to handle the lookup. Are you
sure you aren't making synchronous calls to the server? Also, use direct dom
manipulation over the widget supplied methods; get a widget's dom element
via its getElement method.

Jeff

On Thu, Nov 18, 2010 at 9:09 AM, MickeyR  wrote:

> Is there anything similar to using java threads that I can use in my
> client side code ?
>
> In my application a user types a search term into a Text box. For
> every character typed in my code goes and searches in a dataset for
> results containing the search string. These results are then returned
> and displayed in a List. But the problem is that because my search +
> display code is so slow, it makes the typing in very sluggish for the
> user (i.e. they can’t type the next character in until the search +
> display code has returned).
>
> Ideally I’d like to run the search+display code in a separate thread –
> so that the user can continue to type in the Text box. But I
> understand that threads are not supported in GWT client-side coding ?
> Or is it possible to have the search + display in an only client-side
> asynchronous call ?
>
> Any help, much appreciated,
> 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.
>
>


-- 
*Jeff Schwartz*

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

2010-11-18 Thread Jan
Alright,
thank you Isuru

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 client-side thread or asynchronous call ?

2010-11-18 Thread MickeyR
Sorry, I probably was not clear. My entire story above is all
happening on the client-side.
So the search + display of results happens on the client, I'm not
making a RPC
to perform this.

Currently I don't want to make any part of this server-side, so any
idea on how to
achieve this ?

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.



css background image usage with UiBinder

2010-11-18 Thread Roman Makurin
Hi All.

First of all, i looked through mail archive, but subject
still not clear for me.

So, he is my code:

Resources.java:
public interface Resources extends ClientBundle {
public static final Resources INSTANCE = GWT.create(Resources.class);

interface Style extends CssResource {
String myStyle();
}

@Source("res/backgroung.jpg")
ImageResource backgroundImg();

@Source("res/common.css")
Style style();
}

res/common.css:
@url backgroundImg backgroundImg
.myStyle {
background: url(backgroundImg) left top repeat;
}

SomeWidget.ui.xml:








SomeWidget.java:
public class SomeWidget extends Composite {
//...
static {
Resources.INSTANCE.style().ensureInjected();
}

public SomeWidget() {
initWidget(uiBinder.createAndBindUi(this));
}
}

when im launching app there is no background image, any comments ?

Thanks

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgp2wdYcvUmQF.pgp
Description: PGP signature


Re: Does anyone know of some example code to traverse the DOM tree in GWT?

2010-11-18 Thread Blackberet
I really need a pure GWT solution. I was hoping someone would point me
out to a code example, maybe in the GWT source tree.

On Nov 17, 8:37 pm, zixzigma  wrote:
> GQuery: Manipulating the DOM and CSS
>
> http://code.google.com/p/gwtquery/wiki/GettingStarted#Manipulating_th...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 ignore left/right keys in CellTree widget?

2010-11-18 Thread John LaBanca
Can you report a bug in the issue tracker.  CellTree shouldn't navigate if
the Cell is being edited.

As far as making EditTextCell bigger, there isn't an easy way to do it yet
because we haven't added hooks for ClientBundles.  As a workding, you can
override the render() method and replace the part where it renders the input
with a custom input.

Thanks,
John LaBanca
jlaba...@google.com


On Wed, Nov 17, 2010 at 6:08 PM, DB  wrote:

> I use CellTree with CompositeCell that consist of CheckboxCell and
> EditTextCell
> I can’t use left/right keys in EditTextCell since they are used to
> navigate into/out of child nodes  in CellTree widget. This makes
> EditTextCell unusable. Is there a way to not use left/right keys for
> node navigation and use them in EditTextCell?
> tree.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);
> does not help.
>
> One more question: how to change the width of EditTextCell to make it
> much bigger?
> I appreciate quick respond.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-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: RootLayoutPanel strange code using MVP

2010-11-18 Thread david
"ActivityManager always calls setWidget(null) in between activities,
but just in
case...)"

Its great that 2.1provides this intercept capability however I'm now
unclear as  how to present a glass panel in the new activity if the
dom is already cleared before I get there.   Am I missing something
about this new pattern?
Thanks.
David



On Nov 17, 9:14 am, Thomas Broyer  wrote:
> On 17 nov, 09:23, Baloe  wrote:
>
> > Thanks for the tips!! I'll look into the EagerSingleton.
>
> > However, regarding the class Root: I don't really want to change it, I
> > want to remove it completely. It's not necessary for anything at all,
> > it's just because we need to start the code. This program goes to our
> > default Place (see getDefaultPlace() call in the code) , the class
> > Root is 100% unncessary fill-in code, and extremely ugly as well. How
> > can I get rid of it?
>
> Currently, you can't, there's no "SimpleLayoutPlanel" (and I can't
> find an open issue, so feel free to file one)
>
> BTW, shouldn't you always clear() your Root panel? (ActivityManager
> always calls setWidget(null) in between activities, but just in
> case...)

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



Re: GWT client-side thread or asynchronous call ?

2010-11-18 Thread Chris Conroy
If you can target just HTML5, then you could use WebWorkers:
http://www.whatwg.org/specs/web-workers/current-work/

At the moment, you'll have to hand roll the JSNI to access them, but GWT
proper will be supporting HTML5 soon-ish.

On Thu, Nov 18, 2010 at 9:41 AM, MickeyR  wrote:

> Sorry, I probably was not clear. My entire story above is all
> happening on the client-side.
> So the search + display of results happens on the client, I'm not
> making a RPC
> to perform this.
>
> Currently I don't want to make any part of this server-side, so any
> idea on how to
> achieve this ?
>
> 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 client-side thread or asynchronous call ?

2010-11-18 Thread Didier Durand
Hi,

Traditional javascript (to which gwt java gets converted) architecture
is basically mono-thread in terms of real concurrent execution: so,
gwt has to stay mono-thread also.

The only possibility that I see to get muti-thread (in a standard
manner) with JS is HTML5 bu to my knowledge GWT doesn't (yet) take
advantage of the new html5 workers as described in
http://www.ajaxwith.com/JavaScript-Worker-Threads.html

I wonder if there is a roadmap to html5 workers for GWT.

regards
didier

On Nov 18, 3:41 pm, MickeyR  wrote:
> Sorry, I probably was not clear. My entire story above is all
> happening on the client-side.
> So the search + display of results happens on the client, I'm not
> making a RPC
> to perform this.
>
> Currently I don't want to make any part of this server-side, so any
> idea on how to
> achieve this ?
>
> 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.



Why I can not add class member in the Service implementation

2010-11-18 Thread Jeff Zhang
Hi all,

When I add class member in the Service implementation class, it will
throw exception. and it seems related with the serialization. Can
anyone give me more details? Thanks


Jeff Zhang

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 and Google App Engine tutorial page needs datastore index reference

2010-11-18 Thread Curtis
The tutorial page at 
http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html
has no reference for the needed datastore-indexes.xml file.  When
uploading the code as described to App Engine, the code throws an
error:
com.google.appengine.api.datastore.DatastoreNeedIndexException: no
matching index found.

To avoid this, a datastore-indexes.xml file needs to be created
referencing something to the tune of:

  
  


Additionally, once this is uploaded, the user should be reminded to
wait for the index status to change to "Serving" on the Datastore
Indexes dashboard, or the code will throw an exception:
com.google.appengine.api.datastore.DatastoreNeedIndexException: The
index for this query is not ready to serve.


Thanks,
Curtis

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



Requestfactory, ReflectionBasedOperationRegistry and ClassLoader

2010-11-18 Thread Smithimage
Hi all!

I am using GWT in junction with grails doing so I have been confronted
with a problem within the new 2.1 feature RequestFactory.
I get a "java.lang.ClassNotFoundException" in the
ReflectionBasedOperationRegistry when trying to resolve my "..Request"
class type.

Apparently grails uses ContextClassLoader to resolve java classes.
However in  ReflectionBasedOperationRegistry (row 223)
"this.getClass().getClassLoader();" is used allthough on row 232
"Class.forName(domainClassNameAnnotation.value(), false,
Thread.currentThread().getContextClassLoader());" is used.

My question is can this.getClass().getClassLoader(); be replaced with
Thread.currentThread().getContextClassLoader() on all places? Or can
someone explain why the separate techniques is used?

Best regards!

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

2010-11-18 Thread Pravin
Any suggestions on text alignment ?

On Nov 11, 9:11 am, Lukas Herman  wrote:
> Thanks for pointing this out.
> This adds class name to colgroup col, where only limited subset of CSS
> properties is allowed (http://www.w3.org/TR/CSS2/tables.html#columns).
> Unfortunately text-align is ignored when set on  element.
> Anyway, addColumnStyleName() requires additional index over added
> columns. A typical use case for this scenario is: create table
> displaying row data from the database, displaying firstcolumnis ID
> number right aligned, nextcolumnis NAME text centered etc..
> WhileCellTableAPI defines addColumn(Column), specifying additional
> style properties on addedcolumnwould require to maintain 
> additionalcolumnindex property to reference currently addedcolumn.
>
> From my point of view thecolumnstyle name is clearly a property ofColumnclass.
>
> With regards
> Lukas Herman
>
> On 10 lis, 19:36, John LaBanca  wrote:
>
>
>
> > Can you useCellTable#addColumnStyleName() to add the text-align property to
> > the col element for thecolumn?
>
> > Thanks,
> > John LaBanca
> > jlaba...@google.comon Wed, Nov 10, 2010 at 11:01 AM, Lukas Herman 
> >  wrote:
> > > Hello,
> > > is there any way to set text-align property onCellTablecolumn? The
> > > currentCellTablecode allows only static cellStyle to be applied to
> > > tdClasses.
> > > I would expect an optionalColumnclass cellStyle property, which
> > > would be appended to tdClasses during rendering.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text 
> > >-
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: cannot create servlet in Eclipse helios

2010-11-18 Thread Pierre-Luc
I have the same issue. I cannot click on next nor finish which leaves
me with manually updating my web-inf and creating the servlet
manually...

On 14 nov, 19:13, Tushar  wrote:
> Just can't get plug-in to create servlets..tried all versions.
> Is anyone out there being able to create servlets with Eclipse Helios
> and GWT 2.1 on Windows? If you are, just say yes please!
>
> On Nov 14, 3:49 pm, Tushar  wrote:
>
>
>
> > Tried it but does not seem to work. I tried clipse-jee-helios-SR1-
> > win32.zip. Now trying other versions.
>
> > On Nov 14, 1:11 pm, Jeff Schwartz  wrote:
>
> > > Have you tried deleting your Eclipse installation & getting & installing 
> > > the
> > > latest from Eclipse.org? It would mean you would have to install all your
> > > Eclipse plugins again but sometimes this corrects 'mysterious' problems in
> > > Eclipse. I'd try that first and if it doesn't resolve the issue post back
> > > and let us know.
>
> > > Jeff
>
> > > On Sun, Nov 14, 2010 at 1:05 PM, Tushar  wrote:
> > > > When I try to create a servlet in Eclipse Helios, the Create Servlet
> > > > wizard shows blank fields for Project, source folder, Java Package
> > > > fields and Browse buttons don't work either.
>
> > > > I am using GWT 2.1.0 and  Helios Service Release 1 Build id:
> > > > 20100917-0705 on  Windows Vista.
> > > > The app works but just cannot create new Servlets.
>
> > > > Help please!
>
> > > > ~Tushar
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > *Jeff Schwartz*- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

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



Building First Web App with GWT

2010-11-18 Thread B Woods
I was wondering if anyone could offer me help in finding resources for
creating my first web application with GWT. I have the basic idea and
functionality that I would like the site to start with but thats about
it. I am a mid level developer with little experience actually
planning a robust application.

The basic concept behind my application is that it is a book study
club with a corresponding workbook. Users have to read certain text
and then answer information based upon the weeks text. Their answers
are saved and can be reviewed at any time they can have thier answers
emailed to them or printed from the screen. I want to create the
functionality that allows users to discuss the weeks topics with other
users. I want everyone to be reading the same thing at the same time.
Also I want to add in the ability for users to invite others. It will
be a 13 week course run 4 times a year and before the beginning of
each course I will send out email invites with a required date to get
signed up by so everyone can be on the same page. I would like to
build this application through 2011 and hopefully launch Jan 1,2012.

Basically its an extremely focused course study.

Any thoughts on how to get started with this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: UiBinder fails after upgrading to gwt 2.1.0

2010-11-18 Thread Mency Woo
I have just spent the last few hours struggling on a similar problem
of

 java.lang.AbstractMethodError:
org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/
String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/
Object;
  at
com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentB
uilder.java:
130)


turns out that it has indeed something to do with xerces. It has
to be version 2.9.1

Hope that helps,



On Nov 9, 2:15 am, hbf  wrote:
> Same problem on MacOS 10.6.4/Eclipse 3.6 with latest Google Plugin for
> Eclipse.
>
> On Nov 5, 8:05 pm, pgraham  wrote:
>
>
>
>
>
>
>
> > Right, I suppose I should mention that I am running Kubuntu 10.04 64
> > bit, eclipse 3.6
> > with the lastest GPE.
>
> > On Nov 4, 2:11 pm, will0  wrote:
>
> > > Same issue as pgraham on Ubuntu 10.04, eclipse 3.6.
> > > This doesn't happen for eclipse 3.5 on the same machine. It also works
> > > on Windows 7 ultimate 64bit, eclipse 3.6.
>
> > > On Nov 4, 3:36 am, Richard Berger  wrote:
>
> > > > OK, this won't help much, but... I was having the same problem just
> > > > going through some basic tutorial usingUiBinderandGWT2.1.  So, I
> > > > redid everything, writing down each step - and, of course, the problem
> > > > vanished.
>
> > > > So, there exists the possibility that2.1andUiBinderdo actually
> > > > work together.
>
> > > > I can only offer the truly lame suggestion of restarting Eclipse to
> > > > clean up any old invocations of the dev server.
>
> > > > Good luck,
> > > > RB
>
> > > > On Nov 3, 8:34 am, pgraham  wrote:
>
> > > > > Update:
>
> > > > > I have commented out all code in the two files listed above so that
> > > > > they are as follows:
>
> > > > > MainMenu.ui.xml:
>
> > > > >  > > > >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> > > > > 
>
> > > > > MainMenu.java:
>
> > > > > public class MainMenu extends Composite {
>
> > > > >     interface Binder extendsUiBinder {}
>
> > > > >     private static BinderuiBinder=GWT.create(Binder.class);
>
> > > > >     public MainMenu() {
> > > > >         initWidget(uiBinder.createAndBindUi(this));
> > > > >     }
>
> > > > > }
>
> > > > > When I do this I get the same error so it is not related to the
> > > > > content.
>
> > > > > At this point I am thinking that there is a version conflict with
> > > > >xerces.  Does anyone know if Dev Mode relies onxercesto parse
> > > > > *.ui.xml files and if so which version?
>
> > > > > NOTE:  I am using thegwt-maven-plugin to compile the app and it works
> > > > > fine if I compile it and deploy it in Tomcat
>
> > > > > Thanks,
> > > > > Philip
>
> > > > > On Nov 2, 1:54 pm, pgraham  wrote:
>
> > > > > > MainMenu.ui.xml:
>
> > > > > >  > > > > >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> > > > > >      > > > > > type="org.sitebrand.ui.gwt.resources.UiResources.MainMenuCss" />
> > > > > >      > > > > > type="org.sitebrand.ui.gwt.resources.MainMenuLbls" />
> > > > > >      > > > > > type="org.sitebrand.gwt.constants.DebugConstants" />
>
> > > > > >     
> > > > > >          > > > > > debugId="{debugIds.menuitem_campaigns}" text="{lbls.campaigns}">
> > > > > >             
> > > > > >                  > > > > >                     text="{lbls.createCampaign}" />
> > > > > >                  > > > > >                     text="{lbls.viewCampaigns}" />
> > > > > >                  > > > > >                     text="{lbls.campaignPriority}" />
> > > > > >                  > > > > >                     text="{lbls.reports}" />
> > > > > >             
> > > > > >         
>
> > > > > >          > > > > > debugId="{debugIds.menuitem_content}" text="{lbls.content}">
> > > > > >             
> > > > > >                  > > > > >                     ui:field="createContent"
> > > > > >                     text="{lbls.createContent}" />
> > > > > >                  > > > > >                     ui:field="viewContent"
> > > > > >                     text="{lbls.viewContent}" />
> > > > > >                  > > > > >                     ui:field="integrate"
> > > > > >                     text="{lbls.integrate}" />
> > > > > >             
> > > > > >         
>
> > > > > >          > > > > > debugId="{debugIds.menuitem_segments}" text="{lbls.segments}">
> > > > > >             
> > > > > >                  > > > > >                     ui:field="createSegment"
> > > > > >                     text="{lbls.createSegment}" />
> > > > > >                  > > > > >                     ui:field="viewSegments"
> > > > > >                     text="{lbls.viewSegments}" />
> > > > > >             
> > > > > >         
>
> > > > > >          > > > > > debugId="{debugIds.menuitem_layout}" text="{lbls.layout}">
> > > > > >             
> > > > > >                  > > > > >                     ui:field="addTemplate"
> > > > > >                     text="{lbls.addTemplate}" />
> > > > > >                  > > > > >                     ui:field="viewTemplates"
> > > > > >              

Re: Sample App using DI/Gin, MVP, UiBinder, etc

2010-11-18 Thread Daghan
Hi Ashton,

Have you figured out a way to pass anything but SimplePanel objects to
activityManager.setDisplay() function?

I am trying to figure out how to pass
activityManager.setDisplay(composite)

Thanks.

On Oct 28, 6:52 am, Ashton Thomas  wrote:
> I will definitely try to post a video. It just puts the pressure on to
> actually do a good job!
>
> Thanks very much,
> -Ashton
>
> On Oct 28, 2:12 am, StrongSteve  wrote:
>
>
>
>
>
>
>
> > Very nice idea. Thanks a lot for your effort.
>
> > Will there be a recording of the seminar for all of us on the other
> > side of the pond? ;)
>
> > Greetings
> > Stefan
>
> > On Oct 28, 4:19 am,AshtonThomas wrote:
>
> > > Here is a direct link to the source 
> > > code:http://github.com/ashtonthomas/gwt-seminar
>
> > > I will continue to update the code for this site as well as the
> > > content on this app. Over the next few weeks I will post a lot of
> > > different sample code.
>
> > > Hopefully it will help others get started quicker!
>
> > > On Oct 27, 8:16 pm,AshtonThomas wrote:
>
> > > > Hey Everyone,
>
> > > > I am working on a seminar for GWT 2.1 that will happen in late
> > > > November. But I will be putting together a lot of sample code. I have
> > > > already pushed one app to github:
>
> > > >http://gwt.acrinta.com/
>
> > > > I am still working on this, so expect updates
>
> > > > Cheers!

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



Re: Editor and enumeration or object cast

2010-11-18 Thread mbmacri
Hi.

Here is my EnumEditor implementation based on a ListBox. It should
give you an idea of how to implement it using option buttons:

package com.leasingsaas.client.ui.widgets;

import java.util.HashMap;

import com.google.gwt.editor.client.LeafValueEditor;
import com.google.gwt.user.client.ui.ListBox;

public class EnumEditor> extends ListBox implements
LeafValueEditor {
Class clazz;
HashMap index = new HashMap();

public EnumEditor(Class e) {
super();
this.clazz = e;
int idx = 0;
for (T t : e.getEnumConstants()) {
this.addItem(t.toString());
index.put(t, idx);
idx++;
}
}

@Override
public void setValue(T value) {
if (value == null) {
setSelectedIndex(-1);
} else {
setSelectedIndex(index.get(value));
}
}

@Override
public T getValue() {
int idx = getSelectedIndex();
if (idx == -1)
return null;
else {
System.out.println("Returning value of: " + 
getItemText(idx));
return Enum.valueOf(clazz, getItemText(idx));
}
}
}

On 16 nov, 07:58, "Jerome C."  wrote:
> nobody has an idea on how to manage enum with the neweditorframework
> without rewriting a class for each enum ?
>
> I just want to create a RadioButtonGroup which is used to editenumerationbut 
> I don't know how tocastmy enum...
>
> Any help is welcome.
>
> On 12 nov, 11:39, "Jerome C."  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I try to create editors with neweditormechanism. How do you do when
> > your bean property is not the same that youreditor.
>
> > For example, how can I have aneditorwhich can editEnumeration?
>
> > I've tried to create a RadioButtonGroup which displays values of an
> >enumerationand try to make this class aneditor.
>
> > Here is the code: this is just a flow panel where each child is a
> > RadioButton
>
> > public class RadioButtonGroup> extends FlowPanel
> > implements LeafValueEditor
> > {
> >         public RadioButtonGroup()
> >         {
>
> >         }
>
> >         @Override
> >         public T getValue()
> >         {
> >                 T result = null;
>
> >                 for (int i = 0; i < getWidgetCount(); i++)
> >                 {
> >                         RadioButton radio = (RadioButton) getWidget(i);
>
> >                         if (radio.getValue())
> >                         {
> >                                 // ? how can Icastit ?
> >                                 result = radio.getFormValue();
> >                                 break;
> >                         }
> >                 }
>
> >                 return result;
> >         }
>
> >         @Override
> >         public void setValue(T value)
> >         {
> >                 for (int i = 0; i < getWidgetCount(); i++)
> >                 {
> >                         RadioButton radio = (RadioButton) getWidget(i);
>
> >                         if (radio.getFormValue().equals(value.toString()))
> >                         {
> >                                 radio.setValue(true);
> >                                 break;
> >                         }
> >                 }
> >         }
>
> > }
>
> > thanks for any 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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sample App using DI/Gin, MVP, UiBinder, etc

2010-11-18 Thread Daghan
Ashton,

The example is very cool and helpful. Thank you.
One thing I am struggling with is the ActivityManager.
I am trying to manage a composite through the activity manager.
I was hoping that you had figured it out but I see that you also pass
a SimplePanel

mainActivityManager.setDisplay(shell.getContent());

Do you know what I need to do so that ActivityManager.setDisplay
function doesn't force me to pass an "AcceptsOneWidget" object?
For the sake of the argument, I want to be able to pass the whole
shell, like this:

mainActivityManager.setDisplay(shell);

Thank you.


On Oct 28, 6:52 am, Ashton Thomas  wrote:
> I will definitely try to post a video. It just puts the pressure on to
> actually do a good job!
>
> Thanks very much,
> -Ashton
>
> On Oct 28, 2:12 am, StrongSteve  wrote:
>
>
>
>
>
>
>
> > Very nice idea. Thanks a lot for your effort.
>
> > Will there be a recording of the seminar for all of us on the other
> > side of the pond? ;)
>
> > Greetings
> > Stefan
>
> > On Oct 28, 4:19 am,AshtonThomas wrote:
>
> > > Here is a direct link to the source 
> > > code:http://github.com/ashtonthomas/gwt-seminar
>
> > > I will continue to update the code for this site as well as the
> > > content on this app. Over the next few weeks I will post a lot of
> > > different sample code.
>
> > > Hopefully it will help others get started quicker!
>
> > > On Oct 27, 8:16 pm,AshtonThomas wrote:
>
> > > > Hey Everyone,
>
> > > > I am working on a seminar for GWT 2.1 that will happen in late
> > > > November. But I will be putting together a lot of sample code. I have
> > > > already pushed one app to github:
>
> > > >http://gwt.acrinta.com/
>
> > > > I am still working on this, so expect updates
>
> > > > Cheers!

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



newbie to gwt - trying to get publish/subscribe working

2010-11-18 Thread moiraine
Hi,

I've recently just started looking into GWT, and am looking for a way
to make a project/package subscribe to channels that other widgets are
publishing.  I just tried to get some simple code to work (pulled
partially from a site somewhere), but have no idea if I'm even on the
right path.

public native void tryJS()/*-{
$wnd.createJS = function () {
console.log("we've reached the tryJS function!");
};
}-*/;

public void onModuleLoad() {
tryJS();
  ...

To my knowledge, a function called "createJS" is created, which I'm
not even sure how to trigger, though preferebly I'd like to just
implement some javascript that equates to
dojo.subscribe("channelName") or something... Can anyone point me in
the right direction or let me know what I should be doing?

Thanks,
Moiraine

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



Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Karthik
Hi all,

I playing around with STS, Roo, Maven and GWT.  When I go to run a Roo
project from inside STS, STS seems to wipe out the entire project.
Anyone else playing with this particular combo of technologies and
running into issues?

Karthik

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



byte [] to String in client side

2010-11-18 Thread josefue...@gmail.com
Hello all,

im using gt 2.0 and i´ve tried in the client side

new String (byte[])

its possible create a String by byte[] changing the character set??
how?

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



"Illegal argument type for number format" error during gwt compile when trying to use {0,number} or {0,number,integer} in a message bundle properties file

2010-11-18 Thread ips
The offending message in Messages.properties looks like this:

widget_recordEditor_info_recordsDeletedConcise = {0,number,integer}
{1} deleted.

And here's the output from the gwt compiler:

[INFO] Compiling module org.rhq.enterprise.gui.coregui.CoreGUI
[INFO]Scanning for additional dependencies: file:/home/ips/
Projects/rhq/modules/enterprise/gui/coregui/src/main/java/org/rhq/
enterprise/gui/coregui/client/CoreGUI.java
[INFO]   Computing all possible rebind results for
'org.rhq.enterprise.gui.coregui.client.Messages'
[INFO]  Rebinding
org.rhq.enterprise.gui.coregui.client.Messages
[INFO] Invoking
com.google.gwt.dev.javac.standardgeneratorcont...@447bc5da
[INFO]Processing interface
org.rhq.enterprise.gui.coregui.client.Messages
[INFO]   Generating method body for
widget_recordEditor_info_recordsDeletedConcise()
[INFO]  [ERROR] Illegal argument type for number
format
[INFO][ERROR] Errors in 'file:/home/ips/Projects/rhq/modules/
enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/
client/CoreGUI.java'
[INFO]   [ERROR] Line 129:  Failed to resolve
'org.rhq.enterprise.gui.coregui.client.Messages' via deferred binding

I have tried a bunch of other variations too (e.g. {0,number,#,##0})
to no avail. Is there any way to specify a message parameter is an
integer for formatting purposes (and so the generated method takes an
int, rather than String, parameter), or is it just not possible? I'm
using gwt 2.0.4 and the gwt maven plugin to invoke the gwt compiler.

Thanks,
Ian

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



BigDecimal SerializationException

2010-11-18 Thread zephyran
Hello,

I am using GWT 2.1.0 version. When I try to receive BigDecimal object
from RPC, it works.
However, when I sent the object via RPC, I got SerializationException
(BigDecimal is not in whitelist, so the object can not be
deserialized).

Does anyone have idea about this?

Thanks in advance.

Myoungki

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: UiBinder fails after upgrading to gwt 2.1.0

2010-11-18 Thread Mency Woo
I had a similar problem with compile error

 java.lang.AbstractMethodError:
org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/
String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/
Object;
  at
com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentB
uilder.java:
130)

which was fixed by upgrading xerces/xercesImpl.jar to 2.9.1   (and
making sure no other versions of xerces  are in the classpath).  (ref
http://mojo.codehaus.org/gwt-maven-plugin/dependencies.html )



On Nov 17, 8:51 am, pgraham  wrote:
> Has anyone figured this out or created an issue?
>
> If not, when I get some time I'll isolate the bug in a minimal project
> and create an issue but that might not happen for a few weeks.
>
> On Nov 9, 5:15 am, hbf  wrote:
>
>
>
>
>
>
>
> > Same problem on MacOS 10.6.4/Eclipse 3.6 with latest Google Plugin for
> > Eclipse.
>
> > On Nov 5, 8:05 pm, pgraham  wrote:
>
> > > Right, I suppose I should mention that I am running Kubuntu 10.04 64
> > > bit, eclipse 3.6
> > > with the lastest GPE.
>
> > > On Nov 4, 2:11 pm, will0  wrote:
>
> > > > Same issue as pgraham on Ubuntu 10.04, eclipse 3.6.
> > > > This doesn't happen for eclipse 3.5 on the same machine. It also works
> > > > on Windows 7 ultimate 64bit, eclipse 3.6.
>
> > > > On Nov 4, 3:36 am, Richard Berger  wrote:
>
> > > > > OK, this won't help much, but... I was having the same problem just
> > > > > going through some basic tutorial usingUiBinderandGWT2.1.  So, I
> > > > > redid everything, writing down each step - and, of course, the problem
> > > > > vanished.
>
> > > > > So, there exists the possibility that2.1andUiBinderdo actually
> > > > > work together.
>
> > > > > I can only offer the truly lame suggestion of restarting Eclipse to
> > > > > clean up any old invocations of the dev server.
>
> > > > > Good luck,
> > > > > RB
>
> > > > > On Nov 3, 8:34 am, pgraham  wrote:
>
> > > > > > Update:
>
> > > > > > I have commented out all code in the two files listed above so that
> > > > > > they are as follows:
>
> > > > > > MainMenu.ui.xml:
>
> > > > > >  > > > > >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> > > > > > 
>
> > > > > > MainMenu.java:
>
> > > > > > public class MainMenu extends Composite {
>
> > > > > >     interface Binder extendsUiBinder {}
>
> > > > > >     private static BinderuiBinder=GWT.create(Binder.class);
>
> > > > > >     public MainMenu() {
> > > > > >         initWidget(uiBinder.createAndBindUi(this));
> > > > > >     }
>
> > > > > > }
>
> > > > > > When I do this I get the same error so it is not related to the
> > > > > > content.
>
> > > > > > At this point I am thinking that there is a version conflict with
> > > > > >xerces.  Does anyone know if Dev Mode relies onxercesto parse
> > > > > > *.ui.xml files and if so which version?
>
> > > > > > NOTE:  I am using thegwt-maven-plugin to compile the app and it 
> > > > > > works
> > > > > > fine if I compile it and deploy it in Tomcat
>
> > > > > > Thanks,
> > > > > > Philip
>
> > > > > > On Nov 2, 1:54 pm, pgraham  wrote:
>
> > > > > > > MainMenu.ui.xml:
>
> > > > > > >  > > > > > >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> > > > > > >      > > > > > > type="org.sitebrand.ui.gwt.resources.UiResources.MainMenuCss" />
> > > > > > >      > > > > > > type="org.sitebrand.ui.gwt.resources.MainMenuLbls" />
> > > > > > >      > > > > > > type="org.sitebrand.gwt.constants.DebugConstants" />
>
> > > > > > >     
> > > > > > >          > > > > > > debugId="{debugIds.menuitem_campaigns}" text="{lbls.campaigns}">
> > > > > > >             
> > > > > > >                  > > > > > >                     text="{lbls.createCampaign}" />
> > > > > > >                  > > > > > >                     text="{lbls.viewCampaigns}" />
> > > > > > >                  > > > > > >                     text="{lbls.campaignPriority}" />
> > > > > > >                  > > > > > >                     text="{lbls.reports}" />
> > > > > > >             
> > > > > > >         
>
> > > > > > >          > > > > > > debugId="{debugIds.menuitem_content}" text="{lbls.content}">
> > > > > > >             
> > > > > > >                  > > > > > >                     ui:field="createContent"
> > > > > > >                     text="{lbls.createContent}" />
> > > > > > >                  > > > > > >                     ui:field="viewContent"
> > > > > > >                     text="{lbls.viewContent}" />
> > > > > > >                  > > > > > >                     ui:field="integrate"
> > > > > > >                     text="{lbls.integrate}" />
> > > > > > >             
> > > > > > >         
>
> > > > > > >          > > > > > > debugId="{debugIds.menuitem_segments}" text="{lbls.segments}">
> > > > > > >             
> > > > > > >                  > > > > > >                     ui:field="createSegment"
> > > > > > >                     text="{lbls.createSegment}" />
> > > > > > >                  > > > > > >                     ui:field=

[ERROR] Invalid version number "2.0" passed to external.gwtOnLoad(), expected "2.1"

2010-11-18 Thread Hendrik Jan van Randen
We're migrating our GWT 2.0.4 application to GWT 2.1.0.
I've therefore upgraded my Google Plugin for Eclipse to GWT 2.1.0.

When I try to run our application in the GWT debugger in Eclipse
(Debug as web application, go to its URL in Firefox) I get the
following message:

Connection received from localhost:47526
   [ERROR] Invalid version number "2.0" passed to
external.gwtOnLoad(), expected "2.1"; your hosted mode bootstrap file
may be out of date; if you are using -noserver try recompiling and
redeploying your app

Recompiling doesn't resolve the problem.
Also changing the version from 2.0 to 2.1 in the line
var $hostedHtmlVersion="2.1";
in the files hosted.html in the war directory doesn't resolve the
problem.
I cannot find any explicit instructions to migrate from GWT 2.0 to
2.1.

My environment:
Ubuntu 10.04 LTS
Firefox 3.6.12 with Google Web Toolkit Developer Plugin for Firefox
1.0.7511
Eclipse Helios with Google Plugin for Eclipse with GWT version 2.1.0.

Any suggestions how I can resolve this problem?

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



Java Exception lost in 2.1.0 works in 2.0.4

2010-11-18 Thread Rob Hennessy
Hi All,

I have a web app where I exposed a class's static method using JSNI,
as in the JSNI example. I execute the method from the native event
handler.

Within the method, I try and catch, and return any exception's message
as the method's return value.

The method works properly in 2.0.4, but in 2.1.0 it only works in
devmode

In 2.1.0 production mode any exception I get returns "Index:-1, Size:
0" and is always in the Throwable catch. With no Throwable catch, the
browser states "object error".

public static String parse(String script) throws ParseException{
try {
CLBParse parser = new CLBParse(new
MyStringReader(script));
SimpleNode root = parser.Input();
return "";
} catch (ParseException e) {
return e.getMessage();
}catch( Throwable e) {
GWT.log("something bad", e);

return e.getMessage();
}
   return "";
}

public native void export() /*-{

  $wnd.TryParse =
$entry(@com.test.app.client.CalcScriptReformatter::parse(Ljava/lang/
String;));
}-*/;


I've tried with and without the $entry wrapper.

Is this a bug in 2.1.0, or should I be doing something different?

Thanks,
-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: Does anyone know of some example code to traverse the DOM tree in GWT?

2010-11-18 Thread Karthik Ramachandran
In therory you could use the Javascript native mode and manipulate the dom.

On Thu, Nov 18, 2010 at 10:26 AM, Blackberet wrote:

> I really need a pure GWT solution. I was hoping someone would point me
> out to a code example, maybe in the GWT source tree.
>
> On Nov 17, 8:37 pm, zixzigma  wrote:
> > GQuery: Manipulating the DOM and CSS
> >
> > http://code.google.com/p/gwtquery/wiki/GettingStarted#Manipulating_th...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-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: Request order

2010-11-18 Thread Stefan Bachert
Hi,

I am doing undo/redo. Therefore it is mandatory to handle all requests
on the server in the same order to be able to replay it.

Stefan Bachert
http://gwtworld.de



On 17 Nov., 10:37, Jeff Chimene  wrote:
> Hi Stefan:
>
> What problem are you trying to solve?
>
> On Wed, Nov 17, 2010 at 4:07 AM, Stefan Bachert wrote:
>
> > Hi,
>
> > I need to get any requests from my browser client in the same order on
> > the server side.
>
> > implementing SingleThreadModel would not solve this requirement.
> > synchronizing HttpSession may fail on 3 or more requests.
>
> > Any ideas how to achive this?
>
> > 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.

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

2010-11-18 Thread Stefan Bachert
Hi,

> batch them (the requests) from client and push them in same http
> request :)
Allready done, however, this is a little optimization but no solution.

It does not disable a user to click 4 times on the same button. After
the first one I don't have any idea whether 3 other clicks will follow
or not.

When there is no easy feature to support this, than the easiest thing
is to number any requests from client and execute them only in order.
(Maybe be "abused" as attack detection, too)

Stefan Bachert
http://gwtworld.de

On 17 Nov., 11:09, ep  wrote:
> batch them (the requests) from client and push them in same http
> request :)
>
> do you need them to execute also in the same order? meaning serially?
> so that requests actually cannot be processed in parallel anymore?
> then you may want to look at gwt-dispatch project, they recently have
> added support to queue the requests.
>
> otherwise you could queue the requests manually on the client and
> execute them one after another... but Jeff already asked a right
> question
>
> On 17 Nov., 12:07, Stefan Bachert  wrote:
>
> > Hi,
>
> > I need to get any requests from my browser client in the same order on
> > the server side.
>
> > implementing SingleThreadModel would not solve this requirement.
> > synchronizing HttpSession may fail on 3 or more requests.
>
> > Any ideas how to achive this?
>
> > Stefan Bacherthttp://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.



Re: Request order

2010-11-18 Thread Jeff Chimene
On Thu, Nov 18, 2010 at 9:18 AM, Stefan Bachert wrote:

> Hi,
>
> I am doing undo/redo. Therefore it is mandatory to handle all requests
> on the server in the same order to be able to replay it


There are two issues here:

undo/redo
replay

They are different.

Setting aside transaction semantics (commit/rollback) since you're probably
not interested in implementing that, undo/redo can be performed by attaching
a sequence number per write to the server, keeping that SN in undo/redo
stacks on the client, manipulating the stacks as appropriate.

replay requires a keystroke logger.

Do you really need to interact with the server for such a feature?

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

2010-11-18 Thread Jeff Schwartz
One way to do this is to convert the BD on the cllient to a string and on
the server you convert the string back to a BD.

On Thu, Nov 18, 2010 at 8:44 AM, zephyran  wrote:

> Hello,
>
> I am using GWT 2.1.0 version. When I try to receive BigDecimal object
> from RPC, it works.
> However, when I sent the object via RPC, I got SerializationException
> (BigDecimal is not in whitelist, so the object can not be
> deserialized).
>
> Does anyone have idea about this?
>
> Thanks in advance.
>
> Myoungki
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-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.
>
>


-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 client-side thread or asynchronous call ?

2010-11-18 Thread Jeff Schwartz
I understand now & sorry for the confusion. It might actually be faster to
do an ajax call to do the look-up because it will be asynchronous and have
little impact on your ui. If for some reason you can't do that then use
SpeedTracer to analyze where you client side code is getting bogged down. It
is a great tool and can provide numerous insights as to where you need to
focus your attention.

Jeff


On Thu, Nov 18, 2010 at 9:41 AM, MickeyR  wrote:

> Sorry, I probably was not clear. My entire story above is all
> happening on the client-side.
> So the search + display of results happens on the client, I'm not
> making a RPC
> to perform this.
>
> Currently I don't want to make any part of this server-side, so any
> idea on how to
> achieve this ?
>
> 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.
>
>


-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: cannot create servlet in Eclipse helios

2010-11-18 Thread Jeff Schwartz
I don't know if this is related but there has been a problem with the dtd
the web.xml file uses. It isn't available and Eclipse marks the file as
having errors. You can try commenting out the reference to the dtd see if
that fixes the problem. Once the dtd becomes available you can remove the
comments.

On Wed, Nov 17, 2010 at 11:27 PM, Pierre-Luc
wrote:

> I have the same issue. I cannot click on next nor finish which leaves
> me with manually updating my web-inf and creating the servlet
> manually...
>
> On 14 nov, 19:13, Tushar  wrote:
> > Just can't get plug-in to create servlets..tried all versions.
> > Is anyone out there being able to create servlets with Eclipse Helios
> > and GWT 2.1 on Windows? If you are, just say yes please!
> >
> > On Nov 14, 3:49 pm, Tushar  wrote:
> >
> >
> >
> > > Tried it but does not seem to work. I tried clipse-jee-helios-SR1-
> > > win32.zip. Now trying other versions.
> >
> > > On Nov 14, 1:11 pm, Jeff Schwartz  wrote:
> >
> > > > Have you tried deleting your Eclipse installation & getting &
> installing the
> > > > latest from Eclipse.org? It would mean you would have to install all
> your
> > > > Eclipse plugins again but sometimes this corrects 'mysterious'
> problems in
> > > > Eclipse. I'd try that first and if it doesn't resolve the issue post
> back
> > > > and let us know.
> >
> > > > Jeff
> >
> > > > On Sun, Nov 14, 2010 at 1:05 PM, Tushar  wrote:
> > > > > When I try to create a servlet in Eclipse Helios, the Create
> Servlet
> > > > > wizard shows blank fields for Project, source folder, Java Package
> > > > > fields and Browse buttons don't work either.
> >
> > > > > I am using GWT 2.1.0 and  Helios Service Release 1 Build id:
> > > > > 20100917-0705 on  Windows Vista.
> > > > > The app works but just cannot create new Servlets.
> >
> > > > > Help please!
> >
> > > > > ~Tushar
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > > --
> > > > *Jeff Schwartz*- Masquer le texte des messages précédents -
> >
> > - Afficher le texte des messages précédents -
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-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.
>
>


-- 
*Jeff Schwartz*

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

2010-11-18 Thread Isuru Madusanka
Hi,

I have trouble with finding a good hosting service. I can try Google App
Engine. But my app need more space and allow users upload documents. I tried
a trial account with a reputed hosting company. But they are not good at
customer service. I am looking for a low-cost hosting.

Do you guys 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.



Re: Invalid version number "2.0" passed to external.gwtOnLoad(), expected "2.1"

2010-11-18 Thread Hendrik Jan van Randen
This issue has been resolved by running the (maven) build from the
commandline.
Apparently the file containing the version nr was not updated when
running the build from Eclipse.

Hendrik Jan


On Nov 17, 7:16 am, Hendrik Jan van Randen 
wrote:
> We're migrating our GWT 2.0.4 application to GWT 2.1.0.
> I've therefore upgraded my Google Plugin for Eclipse to GWT 2.1.0.
>
> When I try to run our application in the GWT debugger in Eclipse
> (Debug as web application, go to its URL in Firefox) I get the
> following message:
>
> Connection received from localhost:47526
>    [ERROR] Invalid version number "2.0" passed to
> external.gwtOnLoad(), expected "2.1"; your hosted mode bootstrap file
> may be out of date; if you are using -noserver try recompiling and
> redeploying your app
>
> Recompiling doesn't resolve the problem.
> Also changing the version from 2.0 to 2.1 in the line
> var $hostedHtmlVersion="2.1";
> in the files hosted.html in the war directory doesn't resolve the
> problem.
> I cannot find any explicit instructions to migrate from GWT 2.0 to
> 2.1.
>
> My environment:
> Ubuntu 10.04 LTS
> Firefox 3.6.12 with Google Web Toolkit Developer Plugin for Firefox
> 1.0.7511
> Eclipse Helios with Google Plugin for Eclipse with GWT version 2.1.0.
>
> Any suggestions how I can resolve this problem?

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

2010-11-18 Thread Brett Thomas
Why do you want to use GWT? This sounds like more of a server-intensive app
to me, so I'd start off with planning out the server with Rails or Django or
something.

On Wed, Nov 17, 2010 at 8:59 AM, B Woods  wrote:

> I was wondering if anyone could offer me help in finding resources for
> creating my first web application with GWT. I have the basic idea and
> functionality that I would like the site to start with but thats about
> it. I am a mid level developer with little experience actually
> planning a robust application.
>
> The basic concept behind my application is that it is a book study
> club with a corresponding workbook. Users have to read certain text
> and then answer information based upon the weeks text. Their answers
> are saved and can be reviewed at any time they can have thier answers
> emailed to them or printed from the screen. I want to create the
> functionality that allows users to discuss the weeks topics with other
> users. I want everyone to be reading the same thing at the same time.
> Also I want to add in the ability for users to invite others. It will
> be a 13 week course run 4 times a year and before the beginning of
> each course I will send out email invites with a required date to get
> signed up by so everyone can be on the same page. I would like to
> build this application through 2011 and hopefully launch Jan 1,2012.
>
> Basically its an extremely focused course study.
>
> Any thoughts on how to get started with this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT MVP and RequestFactory

2010-11-18 Thread Nicholas
Thanks, you got me on the right rack.  I didn't realize that more
information on the exceptions was available in the dev mode console of
eclipse.  My domain entity objects had some Boolean accessors which I
had named isProperty() instead of getProperty().  I changed all of
those, and also made the domain service methods 'static' like you
suggested.

Now the application is running, but when it fires a request for
UserInformation, I get a null pointer exception.  After debugging, it
gets into AbstractRequestContext.doFire(receiver) method, which
attempts to call requestFactory.getRequestTransport().send(...).
requestFactory.getRequestTransport() returns NULL so it throws a Null
Pointer Exception.  Do I need to configure the transport somewhere?  I
didn't see anything in the documentation or the Expenses sample app.

The portion of my code that is initiating this is (~ line 60) in:
http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src/com/eatrightapp/publicweb/client/activity/UserAccountsActivity.java

On Nov 17, 6:28 pm, Thomas Broyer  wrote:
> On 17 nov, 21:06, Nicholas  wrote:
>
>
>
>
>
>
>
>
>
> > I am working on a small GWT app (I have used GWT in the past but it
> > was a while ago), trying to learn the new MVP and RequestFactory.  I
> > am not sure if I am just approaching this wrong, or have some error I
> > can't spot.  When I add a call to instantiate my app's RequestFactory,
> > it no longer runs.  It gives me "Deferred Binding Failed" for my
> > request factory.
>
> > I went back and double-checked the domain / entity objects and I think
> > I have the required pattern in place (implicit no-arg constructor,
> > getId(), findEntity(id) and getVersion()).
>
> > Some of the relevant code:
>
> > Domain 
> > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > EntityRequest and Proxy 
> > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > This class instantiates the RequestFactory (line 35) and passes it to
> > the Activity (line 
> > 41)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > This class is where I have a method utilizing the request factory. (~
> > line 
> > 49)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> >http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > Any ideas?
>
> Your "service methods" in your domain objects aren't static, but
> aren't declared as InstanceRequest in your RequestContext.
> (don't you have more specific errors than "deferred binding failed"?)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Request Factory Entity Relationships Lazy Loading

2010-11-18 Thread PJ Herring
The problem with this is you will end up writing a lot of code to get
the whole object back. It makes a complex Data Access layer and makes
me wonder is it worth using a relational database. If I have to fetch
relationships separately (in either layer) why not use a key store
database.

On Nov 18, 2:47 am, agi  wrote:
> Hi
>
> I had this problem as well. I haven't found perfect solution.. What I
> have done is while retrieving data from the database so e.g. in
> findEntity(Long id) method I am forcing persistent layer to return my
> collection immediately:
> Entity findEntity(Long id)
> {
>   // open transaction, get entityManager etc.
>   // ...
>
>   Entity obj = entityManager.find(id);
>
>   // force retrival of collection
>   obj.getDonations().size();
>
>   // handle transaction and entitymanager etc.
>   //...
>
> }
>
> I will be very glad to find out how to make it in a better way:)
>
> On Nov 18, 1:02 am, PJ Herring  wrote:
>
>
>
>
>
>
>
> > So I've been working on this problem with RequestFactory and Lazy
> > Loading. I am using a Service Layer to deal with operations on Domain
> > Objects. I ran into a problem when I was trying to "merge" an object
> > with my Hibernate Domain layer. Hibernate was throwing a "lazy
> > loading" error ("Failed to lazily initialize a collection"). The
> > problem was when I fetched an object via RequestFactory it did not
> > come with its relationships. So if I had a Donor with a collection of
> > Donations, the Donations do not come with the initial fetch unless
> > specified (i.e.
> > requestFactory.donorRequest().fetch(id).with("donations")). When I
> > removed the relationship from the Proxy Domain Object (so removing the
> > methods getDonations and setDonations from the DonorProxy), I did not
> > have this problem. The merge worked fine. Why is this the case?
>
> > Second, if this is the case it would seem beneficial to remove
> > relationships that you would normally want to lazy load from the
> > proxies and just make an explicit call to load up the collection. So
> > remove the getDonation and setDonation from the DonorProxy and when I
> > need those donations just make a call with the donorId to get them.
> > This seems counter intuitive to me, but seems also not like a terrible
> > idea. Basically I am trading of between having to make explicit calls
> > to load OneToMany relationships and being able to do merge's. AM I
> > CRAZY?

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

2010-11-18 Thread Thomas Broyer


On 18 nov, 16:42, david  wrote:
> "ActivityManager always calls setWidget(null) in between activities,
> but just in
> case...)"
>
> Its great that 2.1provides this intercept capability however I'm now
> unclear as  how to present a glass panel in the new activity if the
> dom is already cleared before I get there.   Am I missing something
> about this new pattern?

If I understand you correctly, you'd like to have a glasspanel above
the "previous activity" while the "new one" starts? (until it calls
AcceptsOneWidget#setWidget to "reveal" itself) ?
IMO you should do this on your AcceptsOneWidget itself, not from
within your activities:
final SimplePanel realDisplay = new SimplePanel();
myActivitymanager.setDisplay(new AcceptsOneWidget {
public void setWidget(IsWidget w) {
if (w == null) {
   // show a glass panel
} else {
   // hide the glass panel, then:
   realDisplay.setWidget(x);
}
}
});

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



application gets reloaded

2010-11-18 Thread pac
String links causing application to reload.
e.g.
"" + word + "";

Looks like it is issue 2152

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

I tried solution mentioned in the issue i.e. cleanAnchors() by pabs87

But it reloads the application and error in console is


com.google.gwt.core.client.JavaScriptException: (Error): Unspecified
error.
 number: -2147467259
 description: Unspecified error.
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
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:214)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Unknown Source)

May be I am not using solution correctly.

Is there way to solve this?

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

2010-11-18 Thread Didier Durand
Hi

You really should give a second chance to GAE:

- space can go very high if you are willing to pay as you go
- document upload is possible via BlobStore (I do it in one of my
apps)
- I would emphasize extremely detailled monitoring for which i know no
equivalent by other hosters.

Then, you will get scalability for free.

The feature that is the most unsual at beginning: the datastore. You
have to get used to its specifc constraints (bigtable, entity groups)

regards
didier

On Nov 18, 5:49 pm, Isuru Madusanka <2eis...@gmail.com> wrote:
> Hi,
>
> I have trouble with finding a good hosting service. I can try Google App
> Engine. But my app need more space and allow users upload documents. I tried
> a trial account with a reputed hosting company. But they are not good at
> customer service. I am looking for a low-cost hosting.
>
> Do you guys 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.



Manipulating UiBinder backed DockLayoutPanel regions with Java code

2010-11-18 Thread zixzigma
Hello Everyone,

I have a DockLayoutPanel declared in UiBinder, with a corresponding
Java view class.

Is there anyway to manipulate DockLayoutPanel's regions from within
Java code ?

DockLayoutPanel UiBinder has regions:


 


 ... 

from Java code I want to access WEST region  and manipulate it : (hide
it/remove it)

the only way i can think of is to write the entire DockLayoutPanel in
Java code (no UiBinder).
because DockLayoutPanel Java API has a lot of methods for dealing with
regions,
but it doesnt appear to be the case with UiBinder.

Please Help !

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: Manipulating UiBinder backed DockLayoutPanel regions with Java code

2010-11-18 Thread Jeff Chimene
@UiField
SimplePanel westPanel;

westPanel.getWidget().setVisible(FALSE);

But, this may not behave as you intend.

Maybe I'm missing something in your question...

On Thu, Nov 18, 2010 at 10:57 AM, zixzigma  wrote:

> Hello Everyone,
>
> I have a DockLayoutPanel declared in UiBinder, with a corresponding
> Java view class.
>
> Is there anyway to manipulate DockLayoutPanel's regions from within
> Java code ?
>
> DockLayoutPanel UiBinder has regions:
>
> 
> 
> 
>
>  ... 
>
> from Java code I want to access WEST region  and manipulate it : (hide
> it/remove it)
>
> the only way i can think of is to write the entire DockLayoutPanel in
> Java code (no UiBinder).
> because DockLayoutPanel Java API has a lot of methods for dealing with
> regions,
> but it doesnt appear to be the case with UiBinder.
>
> Please Help !
>
> 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Manipulating UiBinder backed DockLayoutPanel regions with Java code

2010-11-18 Thread zixzigma
I tried that, but it appears although westPanel becomes hidden (as
expected setVisible(False)),
the west region still takes up space.
My guess is since in UiBinder regions must be explicitly sized, eg:

hiding/removing a SimplePanel within a region does not mean the region
itself is hidden//removed ?


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Request Factory Entity Relationships Lazy Loading

2010-11-18 Thread koma
IMO, this problem is not really GWT related but standard hibernate/jpa
behaviour.
Either you define your relationships as lazy, which means that they
are not loaded when the parent object is loaded, or you define the
relations as eager fetch.
The best practice is lazy load and then load the needed relationships
on a adhoc basis using Hibernate.initialize(donor.getDonations()) to
fetch them.

So you want the donations to come with the donor, initialize that
relation during the transaction.
Outside the transaction, any relation that was not loaded will throw a
lazy load exception when you read any out of these related objects.

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

2010-11-18 Thread pac
Just to add further, it works fine in IE8 but not in IE7, so after
implementing the solution, it only reloads the application if
after that action I redirect it to another page e.g.

My Account

on action if I redirect it to say another page e.g.

History.newItem("login");

view changes to login without any reload and then automatically it
changes token back to my Account and reloads the application at this
stage.

Any suggestions?

Thanks.

On Nov 18, 5:50 pm, pac  wrote:
> String links causing application to reload.
> e.g.
> "" + word + "";
>
> Looks like it is issue 2152
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=2152
>
> I tried solution mentioned in the issue i.e. cleanAnchors() by pabs87
>
> But it reloads the application and error in console is
>
> com.google.gwt.core.client.JavaScriptException: (Error): Unspecified
> error.
>  number: -2147467259
>  description: Unspecified error.
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 237)
>     at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 126)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>     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:214)
>     at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>     at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
> 157)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
> 281)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 531)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>     at java.lang.Thread.run(Unknown Source)
>
> May be I am not using solution correctly.
>
> Is there way to solve this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Manipulating UiBinder backed DockLayoutPanel regions with Java code

2010-11-18 Thread Zak
>From http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Design
(scroll down to "Child Widget Visibility"):

The Layout class has to wrap each of its child elements in a
"container" element in order to work properly. One implication of this
is that, when you call UIObject.setVisible(boolean) on a widget within
a LayoutPanel, it won't behave quite as expected: the widget will
indeed be made invisible, but it will tend to consume mouse events
(actually, it's the container element that is doing so).

To work around this, you can get the container element directly using
LayoutPanel.getWidgetContainerElement(Widget), and set its visibility
directly:

LayoutPanel panel = ...;
Widget child;
panel.add(child);
UIObject.setVisible(panel.getWidgetContainerElement(child), false);

Hope that helps!

On Nov 18, 1:48 pm, zixzigma  wrote:
> I tried that, but it appears although westPanel becomes hidden (as
> expected setVisible(False)),
> the west region still takes up space.
> My guess is since in UiBinder regions must be explicitly sized, eg:
> 
> hiding/removing a SimplePanel within a region does not mean the region
> itself is hidden//removed ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Manipulating UiBinder backed DockLayoutPanel regions with Java code

2010-11-18 Thread Jeff Larsen


...
...
...
...


then in java

@UiField DockLayoutPanel panel;


and now you have access to all the DockLayout panel APIs so you can
hide etc.


On Nov 18, 12:48 pm, zixzigma  wrote:
> I tried that, but it appears although westPanel becomes hidden (as
> expected setVisible(False)),
> the west region still takes up space.
> My guess is since in UiBinder regions must be explicitly sized, eg:
> 
> hiding/removing a SimplePanel within a region does not mean the region
> itself is hidden//removed ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Manipulating UiBinder backed DockLayoutPanel regions with Java code

2010-11-18 Thread Jeff Chimene
On Thu, Nov 18, 2010 at 11:48 AM, zixzigma  wrote:

> I tried that, but it appears although westPanel becomes hidden (as
> expected setVisible(False)),
> the west region still takes up space.
> My guess is since in UiBinder regions must be explicitly sized, eg:
> 
> hiding/removing a SimplePanel within a region does not mean the region
> itself is hidden//removed ?
>

0. That was my point about it "not working as expected"

1. You might want to consider the splitter-type panels.

2. Maybe you want a different widget as a child of the SimplePanel, maybe an
accordion?

3. You may want to implement a mix of Horizontal and Vertical panels as
children of an HTMLPanel. Child widgets in those panels will show/hide as
you want.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: design pattern for common functionality between Activities

2010-11-18 Thread Nicolas Antoniazzi
Hello Koen,

I never used Requestfactory so I do not know if it is similar to RPC. In my
case, all my RPC Services can send a ServiceRemoteException (declared in
Services interfaces). (ServiceRemoteException is a custom exception that I
extended for my needs)

@RemoteServiceRelativePath("GWT.rpc")
public interface MyRemoteService extends RemoteService {
  public void myRemoteMethod() throws ServiceRemoteException;
}

When There is a security exception (I am using a framework to manage
security checks called Shiro. http://shiro.apache.org/. I plugged it over
Guice and its AOP mechanism. Like this I can use special annotation on my
methods like @RequireAuthentication, @RequiresRole("role"), @RequiresGuest,
... and every time that a user try to access a method without the correct
permissions, a shiro exception is thrown.)

All Security Exception are caught by a global server exception catcher. (I
extendend the method processCall of the RemoteServiceServlet class for
this).
When a Shiro Security Exception is caught, I create a new
RemoteServiceException with some extra parameters that contains the security
exception type for the client.

Now, on the client, with RPC call, you calls methods with something similar
to this :

myService.myRemoteMethod(new AsyncCallback() {
  @override
  public void onSuccess(Void v) {
  }

  @override
  public void onFailure(Throwable t) {
  }
}

When a security exception occurs, the client code will execute the onFailure
method. Here you can manage how to handle your exception

onFailure(Throwable t) {
  if(t instanceof RemoteServiceException) {
ExceptionType type = ((RemoteServiceException) t).getType();
if(type == SECURITY_AUTHENTICATION) {
  placeController.goTo(new LoginPlace());
}
  }
}

Now, maybe that you do not want to write this code in every onFailure(), so,
you can extends AsyncCallback class.

public abstract class ManagedAsyncCallback extends AsyncCallback {
  @override
  public void onFailure(Throwable t) {
// .. write your common security exception management here
  }
}

then, when calling a service, you only have to override the onSuccess() in
quite every case, except in special situations.

myService.myRemoteMethod(new ManagedAsyncCallback() {
  @override
  public void onSuccess(Void v) {
  }
}

I hope that it can help you :)
I do not know if RequestFactory is using somethig similar (onSuccess,
onFailure).

Thanks.

2010/11/17 koma 

> hi Nicolas & others,
>
> I understand how you work with the dynamic hosted page, but how do you
> throw the remote exception like you describe here :
>
> On server side, I use a security framework that check permission on
> rpc
> call. If user is not logged in (session has expired) but want to
> access to a
> "secured method" -> I throw a special remote exception. This
> exceptions is
> handled by a custom AsyncCallback that will redirects the user to a
> login
> page + sends a new LoginStatusEvent(false)
>
> I am using Requestfactory and I have "/gwtRequest" behind a security
> constraint; so I can block unauthorized request, but I am not
> receiving a RemoteException; Neither is 'onViolation' or 'onFailure'
> triggered; My console displays just a JSON exception that occurs.
>
> thx
>
> Koen
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT client-side thread or asynchronous call ?

2010-11-18 Thread andreas
If you really want to stick with the client side and want to have an
async-like experience you could also use a Timer to trigger the
search. Schedule the Timer as soon as the user begins to enter his
search and cancel + re-schedule it on every key hit. This way the
blocking search will only start as soon as the user has stopped typing
for a specific amount of time. You will have to try and check what is
a reasonable schedule time. This should work I think.

On 18 Nov., 15:09, MickeyR  wrote:
> Is there anything similar to using java threads that I can use in myclient 
> sidecode ?
>
> In my application a user types a search term into a Text box. For
> every character typed in my code goes and searches in a dataset for
> results containing the search string. These results are then returned
> and displayed in a List. But the problem is that because my search +
> display code is so slow, it makes the typing in very sluggish for the
> user (i.e. they can’t type the next character in until the search +
> display code has returned).
>
> Ideally I’d like to run the search+display code in a separatethread–
> so that the user can continue to type in the Text box. But I
> understand that threads are not supported inGWTclient-sidecoding ?
> Or is it possible to have the search + display in an 
> onlyclient-sideasynchronouscall?
>
> Any help, much appreciated,
> 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.



Re: GWT MVP and RequestFactory

2010-11-18 Thread Richard Berger
I am having a very similar problem - NullPointerException when I call
fire() (the NPE is in AbstractRequestContext.doFire()).  So I am
wondering if you have found a solution to your problem.

The code with the fire() is:
CommitmentSystemRequestFactory requestFactory =
GWT.create(CommitmentSystemRequestFactory.class);
requestFactory.commitmentRequest().countCommitments().fire(
  new Receiver() {
@Override
public void onSuccess(Long response) {
Window.alert("Done!");
}
  });

My CommitmentRequest class has:
@Service (Commitment.class)
public interface CommitmentRequest extends RequestContext {
  Request countCommitments();

My Commitment.java class has:
  public static long countCommitments() {

  }

Some other notes...
* I have also been going through the Expenses sample app, both the
description at: 
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#proxies
and the sample code.
* I am NOT using JPA.  My first learning project for GWT/GAE was with
JPA, but now I wanted to try the RequestFactory and then add
Objectify.
* I am NOT using MVP.  I just don't yet have the critical mass of
brain cells necessary.

Thanks for any updates or advice...
RB

On Nov 18, 9:05 am, Nicholas  wrote:
> Thanks, you got me on the right rack.  I didn't realize that more
> information on the exceptions was available in the dev mode console of
> eclipse.  My domain entity objects had some Boolean accessors which I
> had named isProperty() instead of getProperty().  I changed all of
> those, and also made the domain service methods 'static' like you
> suggested.
>
> Now the application is running, but when it fires a request for
> UserInformation, I get a null pointer exception.  After debugging, it
> gets into AbstractRequestContext.doFire(receiver) method, which
> attempts to call requestFactory.getRequestTransport().send(...).
> requestFactory.getRequestTransport() returns NULL so it throws a Null
> Pointer Exception.  Do I need to configure the transport somewhere?  I
> didn't see anything in the documentation or the Expenses sample app.
>
> The portion of my code that is initiating this is (~ line 60) 
> in:http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> On Nov 17, 6:28 pm, Thomas Broyer  wrote:
>
>
>
>
>
>
>
> > On 17 nov, 21:06, Nicholas  wrote:
>
> > > I am working on a small GWT app (I have used GWT in the past but it
> > > was a while ago), trying to learn the new MVP and RequestFactory.  I
> > > am not sure if I am just approaching this wrong, or have some error I
> > > can't spot.  When I add a call to instantiate my app's RequestFactory,
> > > it no longer runs.  It gives me "Deferred Binding Failed" for my
> > > request factory.
>
> > > I went back and double-checked the domain / entity objects and I think
> > > I have the required pattern in place (implicit no-arg constructor,
> > > getId(), findEntity(id) and getVersion()).
>
> > > Some of the relevant code:
>
> > > Domain 
> > > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > > EntityRequest and Proxy 
> > > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > > This class instantiates the RequestFactory (line 35) and passes it to
> > > the Activity (line 
> > > 41)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > This class is where I have a method utilizing the request factory. (~
> > > line 
> > > 49)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > >http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > Any ideas?
>
> > Your "service methods" in your domain objects aren't static, but
> > aren't declared as InstanceRequest in your RequestContext.
> > (don't you have more specific errors than "deferred binding failed"?)

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



Date.toLocaleString different behavior in development and production mode

2010-11-18 Thread David Balažic
Using GWT 2.1.0 with Eclipse Helios SR-1 on Windows XP and Firefox
3.6.12

I noticed that this client code has different results in development
mode and production mode:

String result = new java.util.Date().toLocaleString();

In Development mode I get:
Nov 18, 2010 8:18:36 PM

In production mode:
-18. --November ---2010 20:53:52

(I added the '-' signs to the system date locale format, to detect its
use easier)

Are such differences known and by design?

The 
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Package_java_util
Lists java.util.Date.toLocaleString() as supported.

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



Re: GWT MVP and RequestFactory

2010-11-18 Thread Richard Berger
As is typical - after working on this for hours, I think I found my
problem 10 minutes after posting.  Since I am trying to avoid MVP (for
now, until the brain cell count improves), I had not initialized my
RequestFactory.  Adding:
  final EventBus eventBus = new SimpleEventBus();
  requestFactory.initialize(eventBus);
has moved me past my NPE.  Into other errors of course...

Thanks for listening

RB

On Nov 18, 11:50 am, Richard Berger  wrote:
> I am having a very similar problem - NullPointerException when I call
> fire() (the NPE is in AbstractRequestContext.doFire()).  So I am
> wondering if you have found a solution to your problem.
>
> The code with the fire() is:
> CommitmentSystemRequestFactory requestFactory =
>         GWT.create(CommitmentSystemRequestFactory.class);
> requestFactory.commitmentRequest().countCommitments().fire(
>   new Receiver() {
>                 @Override
>                 public void onSuccess(Long response) {
>                         Window.alert("Done!");
>                 }
>   });
>
> My CommitmentRequest class has:
> @Service (Commitment.class)
> public interface CommitmentRequest extends RequestContext {
>   Request countCommitments();
>
> My Commitment.java class has:
>   public static long countCommitments() {
>     
>   }
>
> Some other notes...
> * I have also been going through the Expenses sample app, both the
> description 
> at:http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h...
> and the sample code.
> * I am NOT using JPA.  My first learning project for GWT/GAE was with
> JPA, but now I wanted to try the RequestFactory and then add
> Objectify.
> * I am NOT using MVP.  I just don't yet have the critical mass of
> brain cells necessary.
>
> Thanks for any updates or advice...
> RB
>
> On Nov 18, 9:05 am, Nicholas  wrote:
>
>
>
>
>
>
>
> > Thanks, you got me on the right rack.  I didn't realize that more
> > information on the exceptions was available in the dev mode console of
> > eclipse.  My domain entity objects had some Boolean accessors which I
> > had named isProperty() instead of getProperty().  I changed all of
> > those, and also made the domain service methods 'static' like you
> > suggested.
>
> > Now the application is running, but when it fires a request for
> > UserInformation, I get a null pointer exception.  After debugging, it
> > gets into AbstractRequestContext.doFire(receiver) method, which
> > attempts to call requestFactory.getRequestTransport().send(...).
> > requestFactory.getRequestTransport() returns NULL so it throws a Null
> > Pointer Exception.  Do I need to configure the transport somewhere?  I
> > didn't see anything in the documentation or the Expenses sample app.
>
> > The portion of my code that is initiating this is (~ line 60) 
> > in:http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > On Nov 17, 6:28 pm, Thomas Broyer  wrote:
>
> > > On 17 nov, 21:06, Nicholas  wrote:
>
> > > > I am working on a small GWT app (I have used GWT in the past but it
> > > > was a while ago), trying to learn the new MVP and RequestFactory.  I
> > > > am not sure if I am just approaching this wrong, or have some error I
> > > > can't spot.  When I add a call to instantiate my app's RequestFactory,
> > > > it no longer runs.  It gives me "Deferred Binding Failed" for my
> > > > request factory.
>
> > > > I went back and double-checked the domain / entity objects and I think
> > > > I have the required pattern in place (implicit no-arg constructor,
> > > > getId(), findEntity(id) and getVersion()).
>
> > > > Some of the relevant code:
>
> > > > Domain 
> > > > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > > > EntityRequest and Proxy 
> > > > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > > > This class instantiates the RequestFactory (line 35) and passes it to
> > > > the Activity (line 
> > > > 41)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > > This class is where I have a method utilizing the request factory. (~
> > > > line 
> > > > 49)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > >http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > > Any ideas?
>
> > > Your "service methods" in your domain objects aren't static, but
> > > aren't declared as InstanceRequest in your RequestContext.
> > > (don't you have more specific errors than "deferred binding failed"?)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Date.toLocaleString different behavior in development and production mode

2010-11-18 Thread David Balažic
On Nov 18, 8:57 pm, David Balažic  wrote:

> String result = new java.util.Date().toLocaleString();
>
> In Development mode I get:
> Nov 18, 2010 8:18:36 PM
>
> In production mode:
> -18. --November ---2010 20:53:52

Which the same as returned by JsDate.toLocaleString()
or plain JavaScript :
var datum = new Date();
document.write(" locale string = "+datum.toLocaleString());

All findings are also the same when using IE8 instead of Firefox.

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



Re: All I Want for Christmas is a powerful Widget Library from Google !

2010-11-18 Thread David Chandler
Thanks all for your support of GWT. We're really glad that what you've
seen so far makes you want even more, and let me officially
acknowledge here that the GWT team very much understands that you want
a powerful widget library. That's why we created the powerful new
CellWidgets in 2.1 (in time for Christmas, you may note) and are
dreaming up new widgets for future releases also.

Having said that, the GWT team at Google generally chooses to focus on
the really hard problems such as compiler optimization and new
features like RequestFactory while leaving the easier problems such as
Widget creation (which is easy, in part, because of our focus on the
hard problems) to the open source community. This is not even so much
about the effort required to create new widgets as it is about the
effort required to support them since that's where browser differences
tend to be the greatest. In many cases, Googlers have contributed open
source projects like gwt-dnd for drag and drop support (Fred Sauer)
and GQuery (Ray Cromwell). But we don't think it's too much to ask
everyone to put in a little effort extending and styling widgets in
exchange for totally free, open source software that lets you run
no-compromise AJAX on all modern browsers.

Please do continue to share your Widget creations via the various GWT
galleries on the Web!

/dmc
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

On Sat, Nov 13, 2010 at 1:48 AM, zixzigma  wrote:
> GWT with its powerful set of features, make Large Scale Ajax software
> development possible.
>
> from Java to JS compiler, all the optimization, code splitting, MVP,
> Guice and Gin, new data binding features,
> and one can go on and on ...
>
> However one important aspect seem to be neglected for years and not
> aknowledged by GWT team is
> the absense of a powerful Widget library.
>
> The widget set provided by GWT is very basic, and does not include
> many many widgets needed to make more complex UI interaction possible.
>
> Drag and Drop (Tree for example or Grid, Filter), Calendar, Combo Box,
> Complex grids (sort, filter, etc) to name a few.
>
>  All the effort that goes into crafting a well architected and tested
> app goes unnoticed unfortunately cause its about First Impression most
> of the time !
> if you invest hours and hours to get the basic browser history
> working, all the design for testability etc,
> but dont have a pretty looking front-end, its just not fair !
>
> We often see posts here and on other forums from developers requiring
> more advanced widgets to develop their apps.
>
> there are alternatives out there, SmartGWT, Ext-GWT.
> They are great, lots of eye candy, but they encourage a more desk-top
> style apps on the web,
> which goes against Google best practices that says not to turn web
> apps into desktop-like apps).
> also third-party libraries dont fit well with MVP, API inconsistency,
> they are also are hard to customize beyond the provided themes. and
> some of the other open-source ones are too experimental.
>
> You can argue that well go create your own. but that does not make any
> sense at all.
> if GWT is for Large Scale applications, does it make sense that
> developers spend their time experimenting with where to position close-
> icon on a Tab ?! or adding maximize/minimize to a dialog ?
> what about these ubuquitous Callout Tooltips ? or implement drag and
> drop on a tree which is going to be a maintanance nightmare down the
> road ?! each project creating their own in-house widget library ?! and
> test it ?
>
>
> an alternative could be to use GWT along-side JQuery/YUI, because
> there are hundreds if not thousands of variation for each plugin you
> can think out there. but does it make sense to do all the optimization
> in GWT, only to load additional JS Libraries to use plugins on top of
> them?
>
> Google acquired Instantiations(GWT Designer) a while ago, which was
> great news,
> although many are waiting for them to add UiBinder feature(still in
> beta), it was a great move by Google.
>
> I was thinking if Google Team is busy with the architectural aspect of
> GWT, why not invest in or acquire a company to work on a powerful and
> complete Widget Library to put others to shame. (after all its Google,
> right ?!)
>
> I can understand why they have not done this so far, because Google
> have always been about simplicity and investing in more bleeding-edge
> technologies, but they can acquire others to do this for GWT
> community !
>
> The GWT team have done a superb job in creating this powerful Toolkit,
> and been so generous in sharing it with us. for that i am very
> grateful.
>
> But a boy can dream !
>
> All I Want for Christmas is a powerful Widget Library !
> a mix between Ext (Application-Oriented) and JQuery plugins (Designer
> oriented/eye candy/effects) !
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To

Re: Does anyone know of some example code to traverse the DOM tree in GWT?

2010-11-18 Thread Blackberet
Yeah, I'm not really looking for theory. I'm looking for code
examples.
I found the ChildWalker class in the uibinder package and am currently
trying to see if that can be used.

On Nov 18, 10:36 am, Karthik Ramachandran
 wrote:
> In therory you could use the Javascript native mode and manipulate the dom.
>
> On Thu, Nov 18, 2010 at 10:26 AM, Blackberet wrote:
>
>
>
>
>
>
>
> > I really need a pure GWT solution. I was hoping someone would point me
> > out to a code example, maybe in the GWT source tree.
>
> > On Nov 17, 8:37 pm, zixzigma  wrote:
> > > GQuery: Manipulating the DOM and CSS
>
> > >http://code.google.com/p/gwtquery/wiki/GettingStarted#Manipulating_th...
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



CellList -- is prefilled sizing possible?

2010-11-18 Thread aarnott
Hi there,

I've been using the SmartGWT library mainly for the ListGrid (which is
similar to the CellList). The problem is, the SMartGWT library comes
with a massive footprint (even when it is gzipped). The performace of
our site has been terrible ever since we introduced the ListGrid, but
on the other hand, it is pretty much a requirement.

I was very excited to see the CellList Widget bundled with the 2.1
release, but looking at the samples, I find the fetch behavior a
little awkward. First the List may fetch, say, 50 rows. The scrollbar
will represent a list with 50 rows. When you scroll to the bottom, new
rows are fetched and the scrollbar contents area increases to
accommodate the new rows. This variable sizing seems awkward.

I know the total number of rows my list can have. Is there any way I
can pass this information on to the CellGrid and have it prefill the
unseen areas with blank space and update them when they are scrolled
to?

Thanks,

Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: CellList -- is prefilled sizing possible?

2010-11-18 Thread John LaBanca
The scroll bar is separate from the CellList.  Its actually an
implementation of a pager and is more a proof of concept until we have a
proper infinite scrollbar.

You can prepopulate a CellList with nulls or default values until you have
data available.  As far as populating them when you scroll into view, you
would need to implement your own scrolling pager to figure out which data
should be visible, but you can push data into a CellList at any time.  At
some point we will probably implement an infinite scrollbar, but it isn't on
the agenda in the near term.

Thanks,
John LaBanca
jlaba...@google.com


On Thu, Nov 18, 2010 at 3:52 PM, aarnott  wrote:

> Hi there,
>
> I've been using the SmartGWT library mainly for the ListGrid (which is
> similar to the CellList). The problem is, the SMartGWT library comes
> with a massive footprint (even when it is gzipped). The performace of
> our site has been terrible ever since we introduced the ListGrid, but
> on the other hand, it is pretty much a requirement.
>
> I was very excited to see the CellList Widget bundled with the 2.1
> release, but looking at the samples, I find the fetch behavior a
> little awkward. First the List may fetch, say, 50 rows. The scrollbar
> will represent a list with 50 rows. When you scroll to the bottom, new
> rows are fetched and the scrollbar contents area increases to
> accommodate the new rows. This variable sizing seems awkward.
>
> I know the total number of rows my list can have. Is there any way I
> can pass this information on to the CellGrid and have it prefill the
> unseen areas with blank space and update them when they are scrolled
> to?
>
> Thanks,
>
> Andrew
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-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: CellList -- is prefilled sizing possible?

2010-11-18 Thread aarnott
Thanks for your quick (and detailed) response; I really appreciate it.

>From what I can tell looking at the API, the pager is built right into
the CellList (as opposed to being a separate widget that can be
optionally provided). Am I missing something? I don't mind mucking
around with the source code (I've done it already with
SplitLayoutPanel, which has a hardcoded splitter width/height that I
needed to change). I just want to make sure that I go about this the
right way.

I am fairly determined to get rid of external dependencies to SmartGWT
for many reasons. So it is very likely I will need to implement some
form of infinite scrollbar.

Thanks,
Andrew Arnott

On Nov 18, 4:02 pm, John LaBanca  wrote:
> The scroll bar is separate from the CellList.  Its actually an
> implementation of a pager and is more a proof of concept until we have a
> proper infinite scrollbar.
>
> You can prepopulate a CellList with nulls or default values until you have
> data available.  As far as populating them when you scroll into view, you
> would need to implement your own scrolling pager to figure out which data
> should be visible, but you can push data into a CellList at any time.  At
> some point we will probably implement an infinite scrollbar, but it isn't on
> the agenda in the near term.
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
> On Thu, Nov 18, 2010 at 3:52 PM, aarnott  wrote:
> > Hi there,
>
> > I've been using the SmartGWT library mainly for the ListGrid (which is
> > similar to the CellList). The problem is, the SMartGWT library comes
> > with a massive footprint (even when it is gzipped). The performace of
> > our site has been terrible ever since we introduced the ListGrid, but
> > on the other hand, it is pretty much a requirement.
>
> > I was very excited to see the CellList Widget bundled with the 2.1
> > release, but looking at the samples, I find the fetch behavior a
> > little awkward. First the List may fetch, say, 50 rows. The scrollbar
> > will represent a list with 50 rows. When you scroll to the bottom, new
> > rows are fetched and the scrollbar contents area increases to
> > accommodate the new rows. This variable sizing seems awkward.
>
> > I know the total number of rows my list can have. Is there any way I
> > can pass this information on to the CellGrid and have it prefill the
> > unseen areas with blank space and update them when they are scrolled
> > to?
>
> > Thanks,
>
> > Andrew
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-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: Does anyone know of some example code to traverse the DOM tree in GWT?

2010-11-18 Thread aarnott
You could always look at the GQuery source code.

On Nov 18, 3:39 pm, Blackberet  wrote:
> Yeah, I'm not really looking for theory. I'm looking for code
> examples.
> I found the ChildWalker class in the uibinder package and am currently
> trying to see if that can be used.
>
> On Nov 18, 10:36 am, Karthik Ramachandran
>
>  wrote:
> > In therory you could use the Javascript native mode and manipulate the dom.
>
> > On Thu, Nov 18, 2010 at 10:26 AM, Blackberet 
> > wrote:
>
> > > I really need a pure GWT solution. I was hoping someone would point me
> > > out to a code example, maybe in the GWT source tree.
>
> > > On Nov 17, 8:37 pm, zixzigma  wrote:
> > > > GQuery: Manipulating the DOM and CSS
>
> > > >http://code.google.com/p/gwtquery/wiki/GettingStarted#Manipulating_th...
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: GWT Obfuscation crashes iPad Safari browser

2010-11-18 Thread aarnott
One thing I would highly endorse with such a large compiled project is
to gzip it if you are not doing that already. You might find that
doing that also fixes the iPad Safari issue (if it is line length, the
zipping might allow the iPad browser to look at the file in a
different way).

--Andrew Arnott

On Nov 16, 3:03 am, tbb  wrote:
> Hi all,
> I discovered a strange problem with a pretty big GWT application. It's
> about 6MB unobfuscated Javascript and about 2.4MB if compiled
> obfuscated.
> The app itself works fine in all major browsers and on the iPhone (IOS
> 4.1) if compiled as obfuscated Javascript. For quite a long time we're
> having issues that it crashes iPad's Safari browser and after some
> endless digging around I found that it works perfectly on the iPad if
> it's compiled with the 'PRETTY' option.
> Has anybody experienced anything similar? Could it be to the extreme
> line lengths generated by the obfuscation??
> It happens with BOTH GWT 2.0.4 and GWT 2.1.
>
> Cheers
> Thomas

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



Re: help interpreting compiler report for code splitting

2010-11-18 Thread David Chandler
> 2) Does the lack of left over code indicate that the single split
> point I've put in has almost very nicely divided the application into
> pre and post login sections of code?

It means there's very little code in common pre- and post-split.

> 3) Beneath this, my split point is listed, along with a size - is this
> size the amount of data that will be loaded once the split point is
> reached?

It will be loaded once the first split point is reached. Since you
have only one split point, you might want to specify that the leftover
code be loaded earlier (see
http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html#sequence)

> 4) After login, the main page of my application is set of tabs (where
> this tabset is instantiated is where the first split point is). If I
> have a split point at the load of each tab, can I expect the split
> points to break up the size of the first split point?

yes

> 5) From what I can see, the Initial download size comes from java.util
> and SmartGWT - is there very little I can do here?

The GWT compiler already only compiles JS that's reachable from your
program, but you can sometimes find ways to use more common code:
i.e., if you're doing something with java.util in one class, do it
that way consistently everywhere in all classes so you get the max
benefit of the downloaded java.util bytes.

> thanks for looking :)

You're welcome. HTH,
/dmc

-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: CellList -- is prefilled sizing possible?

2010-11-18 Thread John LaBanca
The scrollbars are a separate widget called ShowMorePagerPanel.  CellList
doesn't have scrollbars by default.
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ShowMorePagerPanel.java

If you look at the constructor, you'll see that we add a ScrollHandler that
modifies the visible Range when the user scrolls.  If you want to implement
an infinite scrollbar, you would need to do something similar, which means
you need a way to map scroll position to row indexes.  It can be pretty
tricky to get it right, but you can probably find a lot of examples online.

Thanks,
John LaBanca
jlaba...@google.com


On Thu, Nov 18, 2010 at 4:22 PM, aarnott  wrote:

> Thanks for your quick (and detailed) response; I really appreciate it.
>
> From what I can tell looking at the API, the pager is built right into
> the CellList (as opposed to being a separate widget that can be
> optionally provided). Am I missing something? I don't mind mucking
> around with the source code (I've done it already with
> SplitLayoutPanel, which has a hardcoded splitter width/height that I
> needed to change). I just want to make sure that I go about this the
> right way.
>
> I am fairly determined to get rid of external dependencies to SmartGWT
> for many reasons. So it is very likely I will need to implement some
> form of infinite scrollbar.
>
> Thanks,
> Andrew Arnott
>
> On Nov 18, 4:02 pm, John LaBanca  wrote:
> > The scroll bar is separate from the CellList.  Its actually an
> > implementation of a pager and is more a proof of concept until we have a
> > proper infinite scrollbar.
> >
> > You can prepopulate a CellList with nulls or default values until you
> have
> > data available.  As far as populating them when you scroll into view, you
> > would need to implement your own scrolling pager to figure out which data
> > should be visible, but you can push data into a CellList at any time.  At
> > some point we will probably implement an infinite scrollbar, but it isn't
> on
> > the agenda in the near term.
> >
> > Thanks,
> > John LaBanca
> > jlaba...@google.com
> >
> > On Thu, Nov 18, 2010 at 3:52 PM, aarnott 
> wrote:
> > > Hi there,
> >
> > > I've been using the SmartGWT library mainly for the ListGrid (which is
> > > similar to the CellList). The problem is, the SMartGWT library comes
> > > with a massive footprint (even when it is gzipped). The performace of
> > > our site has been terrible ever since we introduced the ListGrid, but
> > > on the other hand, it is pretty much a requirement.
> >
> > > I was very excited to see the CellList Widget bundled with the 2.1
> > > release, but looking at the samples, I find the fetch behavior a
> > > little awkward. First the List may fetch, say, 50 rows. The scrollbar
> > > will represent a list with 50 rows. When you scroll to the bottom, new
> > > rows are fetched and the scrollbar contents area increases to
> > > accommodate the new rows. This variable sizing seems awkward.
> >
> > > I know the total number of rows my list can have. Is there any way I
> > > can pass this information on to the CellGrid and have it prefill the
> > > unseen areas with blank space and update them when they are scrolled
> > > to?
> >
> > > Thanks,
> >
> > > Andrew
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: RootLayoutPanel strange code using MVP

2010-11-18 Thread david


On Nov 18, 12:42 pm, Thomas Broyer  wrote:
> If I understand you correctly, you'd like to have a glasspanel above
> the "previous activity" while the "new one" starts? (until it calls
> AcceptsOneWidget#setWidget to "reveal" itself) ?
> IMO you should do this on your AcceptsOneWidget itself, not from
> within your activities:
> final SimplePanel realDisplay = new SimplePanel();
> myActivitymanager.setDisplay(new AcceptsOneWidget {
>     public void setWidget(IsWidget w) {
>         if (w == null) {
>            // show a glass panel
>         } else {
>            // hide the glass panel, then:
>            realDisplay.setWidget(x);
>         }
>     }
>
> });

This looks like a good example for a basic dialog not a separate
activity that needs to be render its view in a glasspanel.   So let me
try an give a better example.

There are actually two scenarios  which I believe the invocation of
showWidgetr(null) in myActivityManager.onPlaceChange(.. )  trips me
up.

Scenario 1) Consider an app with a dozen or more independent
Activities.  Let's say one of these independent activities will
manifest in a popup ( layer.. glasspanel... ).  This is not a simple
dialog but an independent activity and it may appear above any of the
other activity places in the app.  Using the pattern described in MVP
part I or part II  this was fairly straightforward because the widget
representing the container was not touched until the Presenter
responsible for rendering itself as a glass panel was ready to
initialize its view.However with the latest mcv 2.1 framework ,
the container is cleared as a result of the request to go to the new
place .  See show showWidgetr(null) in
myActivityManager.onPlaceChange(.. ) .  As a result, the glasspanel
renders over a blank page.

Scenario 2) Consider  View1 in Activity1 with a goToActivity2
button.   Activity2 makes a fairly long ,  albeit async,  rpc call so
a progress indicator is required.  In addition , the View2 served by
Activity2 has nothing interesting on it except for  the data coming
back from the async rpc call.Therefore it would be better to show
the progress indicator on View1's goToActivity2 button. Using the
pattern described in MVP part I or part II  one would simply call the
container.setWigdet(view2)  in the onSuccess method of the RPC
call.  However with the latest mcv 2.1 framework , the container
is cleared as a result of the request to go to the new place .  See
show showWidgetr(null) in myActivityManager.onPlaceChange(.. ) .  As a
result,  View1 clears immediately and an blank page is shown  until
the rpc comes back in Activity2.

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.



Re: Does anyone know of some example code to traverse the DOM tree in GWT?

2010-11-18 Thread zixzigma
This might be helpful:

Working with the DOM

http://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideUiDom.html


by the way,GQuery is actually GWTQuery, written with GWT. so it is a
pure GWT solution.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Does anyone know of some example code to traverse the DOM tree in GWT?

2010-11-18 Thread zixzigma
here is GQuery talk at Google IO Conference.


http://www.google.com/events/io/2009/sessions/ProgressivelyEnhanceAjaxApps.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread David Chandler
Hi Karthik,

Can you provide more info on what you're seeing? Do you mean STS
deletes files or the project disappears or...?

Thanks,
/dmc

On Thu, Nov 18, 2010 at 10:08 AM, Karthik  wrote:
> Hi all,
>
> I playing around with STS, Roo, Maven and GWT.  When I go to run a Roo
> project from inside STS, STS seems to wipe out the entire project.
> Anyone else playing with this particular combo of technologies and
> running into issues?
>
> Karthik
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-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.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



webappcreator with -maven and Eclipse: output directories don't match

2010-11-18 Thread PeteUK
Hello,

Using webappcreator with the new -maven option

C:\MyApp>webAppCreator -noant -maven com.example.MyApp

creates a pom.xml with outputDirectory specified under target/www:

  

target/www/WEB-INF/classes

   

The .classpath file created has a DIFFERENT output directory:


   ...
   


This means there are 2 sets of .class files; one from mvn compile, and
one from Eclipse when the project is imported or via incremental
compiles when individual .java files are changed. I'm quite new to all
this so hesitant to say it's wrong but it looks like it is. I see 2
problems. First there's the duplication of .class files which wastes
resources. Second is the possibility of them getting out of step and
the feedback in the Eclipse editor of problems with the source might
be wrong.

How would one go about getting this investigated and fixed if
necessary?

Thanks,

Pete

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Chris


> > I playing around with STS, Roo, Maven and GWT.  When I go to run a Roo
> > project from inside STS, STS seems to wipe out the entire project.
> > Anyone else playing with this particular combo of technologies and
> > running into issues?
>

This is happening to me, too, since I upgraded to GWT 2.1.0 and GPE
1.4.0 - I posted yesterday about the problem:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d13a6ed3673baf3f#

As soon as you start dev mode, any resource files in the build output
directory (target/) that are not also present in src/main/
webapp are deleted.

Thanks,
- C

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Rajeev Dayal
Hey Chris,

Can you provide your .classpath file?

What version of STS are you using?


Thanks,
Rajeev

On Thu, Nov 18, 2010 at 5:33 PM, Chris  wrote:

>
>
> > > I playing around with STS, Roo, Maven and GWT.  When I go to run a Roo
> > > project from inside STS, STS seems to wipe out the entire project.
> > > Anyone else playing with this particular combo of technologies and
> > > running into issues?
> >
>
> This is happening to me, too, since I upgraded to GWT 2.1.0 and GPE
> 1.4.0 - I posted yesterday about the problem:
>
> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d13a6ed3673baf3f#
>
> As soon as you start dev mode, any resource files in the build output
> directory (target/) that are not also present in src/main/
> webapp are deleted.
>
> Thanks,
> - C
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Chris


On Nov 18, 5:41 pm, Rajeev Dayal  wrote:

Hi there Rajeev,

I'm using the following version of STS.  The rest of the applicable
version numbers are in the thread I linked to above.

Version: 2.3.2.RELEASE
Build Id: 201003230009

>
> Can you provide your .classpath file?




























-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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 Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Rajeev Dayal
Hey Chris,

A few questions:

-what operating system are you on?
-I noticed that you have the gwt-user.jar and gwt-dev.jar explicitly on your
build classpath. Did you add those entries? If you navigate over to the
Project Properties -> Google -> Web Toolkit page, what SDK is selected?


Thanks,
Rajeev

On Thu, Nov 18, 2010 at 5:50 PM, Chris  wrote:

>
>
> On Nov 18, 5:41 pm, Rajeev Dayal  wrote:
>
> Hi there Rajeev,
>
> I'm using the following version of STS.  The rest of the applicable
> version numbers are in the thread I linked to above.
>
> Version: 2.3.2.RELEASE
> Build Id: 201003230009
>
> >
> > Can you provide your .classpath file?
>
> 
> 
> output="target/bisdashboard-0.0.1-SNAPSHOT/
> WEB-INF/classes" path="src/main/java"/>
> >
>
>
> path="org.eclipse.jdt.launching.JRE_CONTAINER/
> org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/
> >
> path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
>
> name="org.eclipse.jst.component.dependency" value="/WEB-
> INF/lib"/>
>
>
> path="org.eclipse.jst.j2ee.internal.module.container"/>
> path="org.eclipse.jst.j2ee.internal.web.container"/>
>
>
> value="file:/C:/springsource_2.3/
> sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
> 2.1.0_2.1.0.v201010280047/gwt-2.1.0/doc/javadoc/"/>
>
>
>
>
> value="file:/C:/springsource_2.3/
> sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
> 2.1.0_2.1.0.v201010280047/gwt-2.1.0/doc/javadoc/"/>
>
>
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Chris

On Nov 18, 6:03 pm, Rajeev Dayal  wrote:
> Hey Chris,
>
> A few questions:
>
> -what operating system are you on?
> -I noticed that you have the gwt-user.jar and gwt-dev.jar explicitly on your
> build classpath. Did you add those entries? If you navigate over to the
> Project Properties -> Google -> Web Toolkit page, what SDK is selected?
>

I'm working in Windows XP.  The gwt-*.jar dependencies were
automatically added after - to answer your last question - I
configured the 2.1.0 SDK in project properties after upgrading the SDK/
plugin.  I'm fairly certain gwt-dev.jar shouldn't be a compile-time
dependency, right?  In any event, building/GWT-compiling work just
fine, the only problem is starting up dev mode.

I think I can reconfigure maven to explode the resources zip file to
src/main/webapp instead of target/ before compilation so
this likely won't be a long-term problem, but its still a change from
the behavior using the 1.3.3 plugin.

Many thanks,
- C

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

2010-11-18 Thread Nicholas
Richard, I was missing that initialization to requestFactory as well.
I had to add that, and I had to add the following sections to my
web.xml:


requestFactoryServlet
com.google.gwt.requestfactory.server.RequestFactoryServlet



remoteapi
com.google.apphosting.utils.remoteapi.RemoteApiServlet



remoteapi
/remote_api



requestFactoryServlet
/gwtRequest



In addition, I added the appengine-tools-api.jar files to my web-inf/
lib folder.

I had to add the following to my apps gwt.xml file:



Finally, I added json.jar to my web-inf/lib folder.  I'm not sure
where this file originated, but I finally tracked down a copy at:
http://google-web-toolkit.googlecode.com/svn-history/r7687/trunk/bikeshed/war/WEB-INF/lib/json.jar


Now the app seems to be running without any errors.  I think some of
this needs to go into the RequestBuilder/MVP documentation.  If it's
there I completely overlooked it.

Nick

On Nov 18, 2:05 pm, Richard Berger  wrote:
> As is typical - after working on this for hours, I think I found my
> problem 10 minutes after posting.  Since I am trying to avoid MVP (for
> now, until the brain cell count improves), I had not initialized my
> RequestFactory.  Adding:
>   final EventBus eventBus = new SimpleEventBus();
>   requestFactory.initialize(eventBus);
> has moved me past my NPE.  Into other errors of course...
>
> Thanks for listening
>
> RB
>
> On Nov 18, 11:50 am, Richard Berger  wrote:
>
>
>
>
>
>
>
> > I am having a very similar problem - NullPointerException when I call
> > fire() (the NPE is in AbstractRequestContext.doFire()).  So I am
> > wondering if you have found a solution to your problem.
>
> > The code with the fire() is:
> > CommitmentSystemRequestFactory requestFactory =
> >         GWT.create(CommitmentSystemRequestFactory.class);
> > requestFactory.commitmentRequest().countCommitments().fire(
> >   new Receiver() {
> >                 @Override
> >                 public void onSuccess(Long response) {
> >                         Window.alert("Done!");
> >                 }
> >   });
>
> > My CommitmentRequest class has:
> > @Service (Commitment.class)
> > public interface CommitmentRequest extends RequestContext {
> >   Request countCommitments();
>
> > My Commitment.java class has:
> >   public static long countCommitments() {
> >     
> >   }
>
> > Some other notes...
> > * I have also been going through the Expenses sample app, both the
> > description 
> > at:http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h...
> > and the sample code.
> > * I am NOT using JPA.  My first learning project for GWT/GAE was with
> > JPA, but now I wanted to try the RequestFactory and then add
> > Objectify.
> > * I am NOT using MVP.  I just don't yet have the critical mass of
> > brain cells necessary.
>
> > Thanks for any updates or advice...
> > RB
>
> > On Nov 18, 9:05 am, Nicholas  wrote:
>
> > > Thanks, you got me on the right rack.  I didn't realize that more
> > > information on the exceptions was available in the dev mode console of
> > > eclipse.  My domain entity objects had some Boolean accessors which I
> > > had named isProperty() instead of getProperty().  I changed all of
> > > those, and also made the domain service methods 'static' like you
> > > suggested.
>
> > > Now the application is running, but when it fires a request for
> > > UserInformation, I get a null pointer exception.  After debugging, it
> > > gets into AbstractRequestContext.doFire(receiver) method, which
> > > attempts to call requestFactory.getRequestTransport().send(...).
> > > requestFactory.getRequestTransport() returns NULL so it throws a Null
> > > Pointer Exception.  Do I need to configure the transport somewhere?  I
> > > didn't see anything in the documentation or the Expenses sample app.
>
> > > The portion of my code that is initiating this is (~ line 60) 
> > > in:http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > On Nov 17, 6:28 pm, Thomas Broyer  wrote:
>
> > > > On 17 nov, 21:06, Nicholas  wrote:
>
> > > > > I am working on a small GWT app (I have used GWT in the past but it
> > > > > was a while ago), trying to learn the new MVP and RequestFactory.  I
> > > > > am not sure if I am just approaching this wrong, or have some error I
> > > > > can't spot.  When I add a call to instantiate my app's RequestFactory,
> > > > > it no longer runs.  It gives me "Deferred Binding Failed" for my
> > > > > request factory.
>
> > > > > I went back and double-checked the domain / entity objects and I think
> > > > > I have the required pattern in place (implicit no-arg constructor,
> > > > > getId(), findEntity(id) and getVersion()).
>
> > > > > Some of the relevant code:
>
> > > > > Domain 
> > > > > objects:http://code.google.com/p/eatright/source/browse/#svn/

Re: GWT MVP and RequestFactory

2010-11-18 Thread Nicholas
One more thing I forgot to mention.  You have to add an init-param to
the requestFactoryServlet to identify your implementation class for
the user information class.  (This is in your web.xml).  Mine looks
like this.



requestFactoryServlet
com.google.gwt.requestfactory.server.RequestFactoryServlet

userInfoClass

com.eatrightapp.server.domain.GaeUserInformation




Without that specified, your login widget will always show the user as
"Dummy User" and the logout link will not be functional.  Now that all
this is in place, mine is completely working as expected.

Thanks,
Nick

On Nov 18, 6:18 pm, Nicholas  wrote:
> Richard, I was missing that initialization to requestFactory as well.
> I had to add that, and I had to add the following sections to my
> web.xml:
>
>         
>                 requestFactoryServlet
>                  class>com.google.gwt.requestfactory.server.RequestFactoryServlet servlet-class>
>         
>
>         
>                 remoteapi
>                  class>com.google.apphosting.utils.remoteapi.RemoteApiServlet class>
>         
>
>         
>                 remoteapi
>                 /remote_api
>         
>
>         
>                 requestFactoryServlet
>                 /gwtRequest
>         
>
> In addition, I added the appengine-tools-api.jar files to my web-inf/
> lib folder.
>
> I had to add the following to my apps gwt.xml file:
>
> 
>
> Finally, I added json.jar to my web-inf/lib folder.  I'm not sure
> where this file originated, but I finally tracked down a copy 
> at:http://google-web-toolkit.googlecode.com/svn-history/r7687/trunk/bike...
>
> Now the app seems to be running without any errors.  I think some of
> this needs to go into the RequestBuilder/MVP documentation.  If it's
> there I completely overlooked it.
>
> Nick
>
> On Nov 18, 2:05 pm, Richard Berger  wrote:
>
>
>
>
>
>
>
> > As is typical - after working on this for hours, I think I found my
> > problem 10 minutes after posting.  Since I am trying to avoid MVP (for
> > now, until the brain cell count improves), I had not initialized my
> > RequestFactory.  Adding:
> >   final EventBus eventBus = new SimpleEventBus();
> >   requestFactory.initialize(eventBus);
> > has moved me past my NPE.  Into other errors of course...
>
> > Thanks for listening
>
> > RB
>
> > On Nov 18, 11:50 am, Richard Berger  wrote:
>
> > > I am having a very similar problem - NullPointerException when I call
> > > fire() (the NPE is in AbstractRequestContext.doFire()).  So I am
> > > wondering if you have found a solution to your problem.
>
> > > The code with the fire() is:
> > > CommitmentSystemRequestFactory requestFactory =
> > >         GWT.create(CommitmentSystemRequestFactory.class);
> > > requestFactory.commitmentRequest().countCommitments().fire(
> > >   new Receiver() {
> > >                 @Override
> > >                 public void onSuccess(Long response) {
> > >                         Window.alert("Done!");
> > >                 }
> > >   });
>
> > > My CommitmentRequest class has:
> > > @Service (Commitment.class)
> > > public interface CommitmentRequest extends RequestContext {
> > >   Request countCommitments();
>
> > > My Commitment.java class has:
> > >   public static long countCommitments() {
> > >     
> > >   }
>
> > > Some other notes...
> > > * I have also been going through the Expenses sample app, both the
> > > description 
> > > at:http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h...
> > > and the sample code.
> > > * I am NOT using JPA.  My first learning project for GWT/GAE was with
> > > JPA, but now I wanted to try the RequestFactory and then add
> > > Objectify.
> > > * I am NOT using MVP.  I just don't yet have the critical mass of
> > > brain cells necessary.
>
> > > Thanks for any updates or advice...
> > > RB
>
> > > On Nov 18, 9:05 am, Nicholas  wrote:
>
> > > > Thanks, you got me on the right rack.  I didn't realize that more
> > > > information on the exceptions was available in the dev mode console of
> > > > eclipse.  My domain entity objects had some Boolean accessors which I
> > > > had named isProperty() instead of getProperty().  I changed all of
> > > > those, and also made the domain service methods 'static' like you
> > > > suggested.
>
> > > > Now the application is running, but when it fires a request for
> > > > UserInformation, I get a null pointer exception.  After debugging, it
> > > > gets into AbstractRequestContext.doFire(receiver) method, which
> > > > attempts to call requestFactory.getRequestTransport().send(...).
> > > > requestFactory.getRequestTransport() returns NULL so it throws a Null
> > > > Pointer Exception.  Do I need to configure the transport somewhere?  I
> > > > didn't see anything in the documentation or the Expenses sample app.
>
> > > > The portion of my code that is initiating this is (~ lin

Styling Login Widget

2010-11-18 Thread Nicholas
I have the loginWidget in my application, and would like to customize
the styling.  For instance, bold the email address, and make the sign-
out link look like a link (blue and underlined).  What is the correct
way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-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: Does anyone know of some example code to traverse the DOM tree in GWT?

2010-11-18 Thread Blackberet
This is the right answer for what I'm looking for, and is what I will
use for my solution.
thanks

On Nov 18, 4:41 pm, zixzigma  wrote:
> This might be helpful:
>
> Working with the DOM
>
> http://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideUiDom.html
>
> by the way,GQuery is actually GWTQuery, written with GWT. so it is a
> pure GWT solution.

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

2010-11-18 Thread Gaurav Vaish
+1.

To store more documents in repository, you can definitely start with
BlobStore. You pay only if the storage exceeds 1GB.
And beyond that, the storage charges are dirt cheap at $0.15 per GB
per month.


--
Happy Hacking,
Gaurav Vaish
www.mastergaurav.com

On Nov 18, 10:51 pm, Didier Durand  wrote:
> Hi
>
> You really should give a second chance to GAE:
>
> - space can go very high if you are willing to pay as you go
> - document upload is possible via BlobStore (I do it in one of my
> apps)
> - I would emphasize extremely detailled monitoring for which i know no
> equivalent by other hosters.
>
> Then, you will get scalability for free.
>
> The feature that is the most unsual at beginning: the datastore. You
> have to get used to its specifc constraints (bigtable, entity groups)
>
> regards
> didier
>
> On Nov 18, 5:49 pm, Isuru Madusanka <2eis...@gmail.com> wrote:
>
> > Hi,
>
> > I have trouble with finding a good hosting service. I can try Google App
> > Engine. But my app need more space and allow users upload documents. I tried
> > a trial account with a reputed hosting company. But they are not good at
> > customer service. I am looking for a low-cost hosting.
>
> > Do you guys 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.



Re: Return permutation directly from the server without selection script.

2010-11-18 Thread Helder Suzuki
Etienne, awesome!
Thanks a lot for sharing! It just works.

Slava, you just need to add the linker to your gwt.xml (see
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html)


On Fri, Sep 17, 2010 at 11:46 AM, Etienne Lacazedieu <
etienne.lacazed...@gmail.com> wrote:

> I wrote such a Linker :
>
> /**
>  * This GWT linker creates a properties file which can be used to
> resolve Permutation Strong name given UserAgent and locale.
>  *
>  * @author Etienne Lacazedieu
>  *
>  */
> @LinkerOrder(Order.PRE)
> public class StrongNameOracleLinker extends AbstractLinker {
>public static final String STRONGNAME_FILE = "permutation.properties";
>
>@Override
>public String getDescription() {
>return "PermutationStrongName Oracle linker";
>}
>
>@Override
>public ArtifactSet link(TreeLogger logger, LinkerContext context,
> ArtifactSet artifacts) throws UnableToCompleteException {
>artifacts = new ArtifactSet(artifacts);
>ByteArrayOutputStream out = new ByteArrayOutputStream();
>
>String permutation = null;
>String locale = null;
>String userAgent = null;
>SelectionProperty selectionProperty = null;
>
>Properties props = new Properties();
>
>for (CompilationResult result :
> artifacts.find(CompilationResult.class)) {
>permutation = result.getStrongName();
>
>SortedSet>
> propertiesMap = result.getPropertyMap();
>for (SortedMap sm : propertiesMap) {
>for (Map.Entry e : sm.entrySet())
> {
>selectionProperty = e.getKey();
>if ("locale".equals(selectionProperty.getName())) {
>locale = e.getValue();
>}
>if ("user.agent".equals(selectionProperty.getName())) {
>userAgent = e.getValue();
>}
>}
>}
>props.setProperty(userAgent + "." + locale, permutation);
>}
>try {
>props.store(out, "StrongNameOracle properties file");
>} catch (IOException e) { // Should generally not happen
>logger.log(TreeLogger.ERROR, "Unable to store deRPC data", e);
>throw new UnableToCompleteException();
>}
>SyntheticArtifact a = emitBytes(logger, out.toByteArray(),
> STRONGNAME_FILE);
>artifacts.add(a);
>
>return artifacts;
>}
>
> }
>
>
>
> 2010/9/17 Helder Suzuki :
> > +1
> >
> > On Aug 4, 9:17 am, André Moraes  wrote:
> >> Hi,
> >>
> >> I saw the presentation of the GWT team and they talked about sending the
> >> permutation without sending first the selection script.
> >>
> >> I can read the HTTP headers and find-out what is the browser which is
> making
> >> the request, this is the "easy" part.
> >>
> >> But how can I find-out which file was generated by which permutation in
> the
> >> GWT compiler pipeline? I belive that I will need to write a linker to
> get
> >> those files, but how?
> >>
> >> Thanks.
> >>
> >> --
> >> André Moraes
> >> Analista de Desenvolvimento de Sistemas
> >> andr...@gmail.comhttp://andredevchannel.blogspot.com/
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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