Adapting GWT to Adobe air

2011-03-25 Thread lalit
We are looking to package our application so that it can be run
locally using Adobe air. At the moment if we try to run with the adt
tool of adobe air, it throws security restriction. There are post
around how to circumvent it but none of them is successful(May be I am
still missing some things.) some questions I have got:
- Is anyone able to successfully do that and if there is a tutorial to
follow.
- If we digitally sign the application, will the security restrictions
go away.

thanks,

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



RPC Problem with HashMap containing ArrayList Value

2011-03-25 Thread richip
I've an object which contains a HashMap instance. I'm
finding that when I put a value of type ArrayList, RPC calls fail with
a SerializationException that starts with:

com.google.gwt.user.client.rpc.SerializationException
at
com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:
148)
...

Any ideas why and suggestions on what to do to get to my intended
process?

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



Re: Help with building GWT from source - javax.validation.ConstraintValidation cannot be resolved

2011-03-25 Thread Tom K.
   Thanks for the quick reply.

   That seemed to remove a bunch of my errors, but now I'm still left
with errors.  Forgive my ignorance on how Java dependencies work, I
work primarily in C/C++, so I don't work in Eclipse as much as I
should.

   I looked at Maven earlier today for the first time, but I seem so
close to getting it to run now, that I wanted to get it working first
before I attempted to get Maven working.

  What I did was copy gwt-servlet-deps.jar into my project's
directory, and in Eclipse, I added it into the build path for my
project.  It seems that gwt is still using it though, and isn't
finding the reference to it.  Is there an ant setting I need to update
to include it in the gwt package, or did I just not add the dependency
correctly?

Here's my error output when I run:
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/EditorDriver.java'
[ERROR] [scanlogistixclient] - Line 97: No source code is 
available
for type javax.validation.ConstraintViolation; did you forget to
inherit a required module?
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
[ERROR] [scanlogistixclient] - Line 67: No source code is 
available
for type javax.validation.ConstraintViolation; did you forget to
inherit a required module?
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
[ERROR] [scanlogistixclient] - Line 40: No source code is 
available
for type javax.validation.ConstraintViolation; did you forget to
inherit a required module?
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/testing/
MockSimpleBeanEditorDriver.java'
[ERROR] [scanlogistixclient] - Line 108: No source code is 
available
for type javax.validation.ConstraintViolation; did you forget to
inherit a required module?
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/javax/validation/super/javax/validation/Configuration.java'
[ERROR] [scanlogistixclient] - Line 93: No source code is 
available
for type javax.validation.TraversableResolver; did you forget to
inherit a required module?
[ERROR] [scanlogistixclient] - Line 105: No source code is 
available
for type javax.validation.ConstraintValidatorFactory; did you forget
to inherit a required module?
[ERROR] [scanlogistixclient] - Line 202: No source code is 
available
for type javax.validation.ValidatorFactory; did you forget to inherit
a required module?
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/javax/validation/
ConstraintViolationException_CustomFieldSerializer.java'
[ERROR] [scanlogistixclient] - Line 30: No source code is 
available
for type javax.validation.ConstraintViolationException; did you forget
to inherit a required module?
[ERROR] [scanlogistixclient] - Line 39: No source code is 
available
for type javax.validation.ConstraintViolation; did you forget to
inherit a required module?
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/javax/validation/super/javax/validation/
MessageInterpolator.java'
[ERROR] [scanlogistixclient] - Line 66: No source code is 
available
for type javax.validation.metadata.ConstraintDescriptor; did you
forget to inherit a required module?
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/javax/validation/super/javax/validation/constraints/
Pattern.java'
[ERROR] [scanlogistixclient] - Line 75: No source code is 
available
for type javax.validation.Payload; did you forget to inherit a
required module?
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/javax/validation/super/javax/validation/spi/
ConfigurationState.java'
[ERROR] [scanlogistixclient] - Line 93: No source code is 
available
for type javax.validation.ConstraintVal

Security of GWT Eclipse plugin install.

2011-03-25 Thread luca2010
I have tried to install GWT,GWT Designer on Eclipse,I placed the
absolute URL for it but instead of http://.,I placed
https://..,at first sight the installation proceeded but I
received the warning : "You are about to install software with
unsigned content do you want to proceed?" or so.I canceled the
installation.Is there any way to make sure this GWT,GWT Designer
installation is secure?

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



Re: GWT for Chrome Extension building?

2011-03-25 Thread roschler
Thanks Chris.  I just starred it to show my support.

Robert

On Mar 25, 6:18 pm, Chris Conroy  wrote:
> It can be done, but there are currently hoops and a fair amount of gotchas.
>
> seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=5577
>
> On Fri, Mar 25, 2011 at 5:49 PM, roschler  wrote:
> > I am a Chrome Extension newbie but a veteran programmer.  My
> > understanding is that GWT "compiles out" to Javascript and other
> > elements, not a typical Java JAR or JAR container format.  Does this
> > mean that the output of a GWT project can be easily integrated into a
> > Chrome extension?  If yes, is it a good idea or are there too many
> > hoops to jump through to make it work well?  I'd like to use GWT if I
> > could and take advantage of it's slick UI and other attributes, but I
> > don't know if it is a suitable tool for building Chrome extensions.
>
> > Thanks,
> > Robert
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: GWT for Chrome Extension building?

2011-03-25 Thread Chris Conroy
It can be done, but there are currently hoops and a fair amount of gotchas.

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

On Fri, Mar 25, 2011 at 5:49 PM, roschler  wrote:

> I am a Chrome Extension newbie but a veteran programmer.  My
> understanding is that GWT "compiles out" to Javascript and other
> elements, not a typical Java JAR or JAR container format.  Does this
> mean that the output of a GWT project can be easily integrated into a
> Chrome extension?  If yes, is it a good idea or are there too many
> hoops to jump through to make it work well?  I'd like to use GWT if I
> could and take advantage of it's slick UI and other attributes, but I
> don't know if it is a suitable tool for building Chrome extensions.
>
> Thanks,
> Robert
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



GWT for Chrome Extension building?

2011-03-25 Thread roschler
I am a Chrome Extension newbie but a veteran programmer.  My
understanding is that GWT "compiles out" to Javascript and other
elements, not a typical Java JAR or JAR container format.  Does this
mean that the output of a GWT project can be easily integrated into a
Chrome extension?  If yes, is it a good idea or are there too many
hoops to jump through to make it work well?  I'd like to use GWT if I
could and take advantage of it's slick UI and other attributes, but I
don't know if it is a suitable tool for building Chrome extensions.

Thanks,
Robert

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



Re: ProxyAutoBean server-side cache

2011-03-25 Thread Julian Scheid
On Sat, Mar 26, 2011 at 1:05 AM, Thomas Broyer  wrote:
> Looking at the code, ProxyAutoBean's createShim creates a reference cycle
> (the shim references the proxyAutoBean, which keeps a reference on the
> shim). Because the value in the WeakMapping is kept with a strong reference,
> there's always a strong reference to key as well, so the cleanup() never has
> anything to clean.

Right, that would explain it... I suppose with the Googlers in CC
there's no need for me to file a bug report?

And while I got you guys on the line, would you mind having a quick
look at another recent RF-related post of mine, maybe you missed it at
the time I posted it?
http://groups.google.com/group/google-web-toolkit/msg/21bc3c893c96f4c6?hl=en

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



Re: Protovis-GWT

2011-03-25 Thread Philippe Beaudoin
Looks like a very useful tool! Thanks!

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



Re: Help with building GWT from source - javax.validation.ConstraintValidation cannot be resolved

2011-03-25 Thread David Chandler
Hi Tom,

Sounds like you're running an app that uses RequestFactory, which requires
additional 3rd party dependencies on the server. These are available in
gwt-servlet-deps.jar which you'll find in the gwt-0.0.0 dir. You just need
to add it to your classpath.

If you're using Maven, the Expenses sample POM includes these for you.

By the way, the gwt-0.0.0 numbering is correct if you're building from trunk
or the release branch, which hasn't been released yet.

/dmc

On Fri, Mar 25, 2011 at 1:19 PM, Tom K.  wrote:

> I've downloaded both the main trunk version as well as the build under
> releases/2.3, and both seem to have the same problem.  I can get
> everything built OK, and I'm not showing any errors in the output from
> the build.  When the build is complete, for some reason it labels the
> final packaged build as gwt-0.0.0 (it does this using both the 2.3
> release build as well as trunk).  Everything seems to be fine and I
> can deploy everything OK, up until I try and access my GWT app.  When
> I do, I get pages of errors because the import
> javax.validation.ConstraintValidation cannot be resolved.  I've tried
> to figure out the numerous build scripts to figure out why this import
> isn't included in my jar, but to no avail.  Can anyone help me figure
> out what I might be missing?  This is my error log when I run my app:
>
>
> [DEBUG] [scanlogistixclient] - Validating newly compiled units
>[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
> %20Files/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
> user.jar!/com/google/gwt/editor/client/EditorDriver.java'
>[ERROR] [scanlogistixclient] - Line 20: The import
> javax.validation.ConstraintViolation cannot be resolved
>[ERROR] [scanlogistixclient] - Line 97: ConstraintViolation
> cannot
> be resolved to a type
>[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
> %20Files/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
> user.jar!/com/google/gwt/editor/client/impl/
> AbstractSimpleBeanEditorDriver.java'
>[ERROR] [scanlogistixclient] - Line 28: Name clash: The
> method
> setConstraintViolations(Iterable>) of type
> BaseEditorDriver has the same erasure as
> setConstraintViolations(Iterable>) of type
> EditorDriver but does not override it
>[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
> %20Files/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
> user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
>[ERROR] [scanlogistixclient] - Line 31: The import
> javax.validation.ConstraintViolation cannot be resolved
>[ERROR] [scanlogistixclient] - Line 67: ConstraintViolation
> cannot
> be resolved to a type
>[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
> %20Files/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
> user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
>[ERROR] [scanlogistixclient] - Line 25: The import
> javax.validation.ConstraintViolation cannot be resolved
>[ERROR] [scanlogistixclient] - Line 40: ConstraintViolation
> cannot
> be resolved to a type
>[ERROR] [scanlogistixclient] - Line 43: ConstraintViolation
> cannot
> be resolved to a type
>[ERROR] [scanlogistixclient] - Line 44: Missing code
> implementation
> in the compiler
>[ERROR] [scanlogistixclient] - Line 49: ConstraintViolation
> cannot
> be resolved to a type
>[ERROR] [scanlogistixclient] - Line 49: Missing code
> implementation
> in the compiler
>[ERROR] [scanlogistixclient] - Line 70: ConstraintViolation
> cannot
> be resolved to a type
>[ERROR] [scanlogistixclient] - Line 72: ConstraintViolation
> cannot
> be resolved to a type
>[ERROR] [scanlogistixclient] - Line 73:
> ConstraintViolation
> cannot be resolved to a type
>[ERROR] [scanlogistixclient] - Line 77:
> ConstraintViolation cannot be resolved to a type
>[ERROR] [scanlogistixclient] - Line 81:
> ConstraintViolation cannot be resolved to a type
>[ERROR] [scanlogistixclient] - Line 89:
> ConstraintViolation cannot be resolved to a type
>[ERROR] [scanlogistixclient] - Line 93:
> ConstraintViolation cannot be resolved to a type
>[ERROR] [scanlogistixclient] - Line 98: ConstraintViolation
> cannot
> be resolved to a type
>[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
> %20Files/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
> user.jar!/com/google/gwt/editor/client/testing/
> MockSimpleBeanEditorDriver.java'
>[ERROR] [scanlogistixclient] - Line 26: The import
> javax.validation.ConstraintViolation canno

Eclipse Plug-in - Locks up Eclipse

2011-03-25 Thread David E.

When clicking the "clear log viewer" button in the "Development Mode"
tab in Eclipse when using the GWT plug-in it often completely locks up
Eclipse requiring a hard shutdown and reboot of Eclipse.

Eclipse Version 3.4.2

You should take care of this minor yet annoying issue.

Thanks,

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



Re: Is Google WebKit the same entity?

2011-03-25 Thread roschler
Thanks David.

On Mar 25, 12:26 pm, David Chandler  wrote:
> In that context, I suspect that Google WebKit is referring to Chrome since
> it's based onhttp://en.wikipedia.org/wiki/WebKit
>
> GWT is unrelated.
>
> /dmc
>
>
>
> On Thu, Mar 24, 2011 at 6:57 PM, roschler  wrote:
> > I'm just getting started writing extensions for Chrome 11 beta, which
> > has support for the HTML5 Speech API.  While studying some online
> > reference docs related to writing Chrome extensions I saw a note
> > saying that you have access to any of the APIs belonging to "Google
> > WebKit".  Is "Google WebKit" the same entity as "Google Web Toolkit",
> > or is it a completely different animal?
>
> > Thanks,
> > Robert
>
> > --
> > You received 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.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> w:http://code.google.com/
> b:http://googlewebtoolkit.blogspot.com/
> t: @googledevtools

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



Re: Protovis-GWT

2011-03-25 Thread Lars Grammel
Thanks George & Evan! It's great to hear that it's useful to you. Let
me know if  you have any ideas or suggestions.

Cheers,

Lars

On Mar 24, 3:03 pm, Evan Ruff  wrote:
> Awesome Lars! I was looking at that vis library earlier!
>
> With Android supporting SVG in Honeycomb, and iOS already supporting it,
> this would be a GREAT solution!
>
> Thanks for doing this!
>
> E

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



Re: @AlternateMessage and null values

2011-03-25 Thread bconoly
Hmmm, nope didn't work, does the @AlternateMessage support handling
null values?


On Mar 25, 11:49 am, Jeff Larsen  wrote:
> Try @Optional in front of the strings that can be null.

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



problema de integracion con Eclipse

2011-03-25 Thread David
Hola:
Quiero comenzar a utilizar el framework GWT y para esto quisiera
integrarlo con Eclipse.
Estoy usando ademas Windows XP.
 Ya me he bajado el Eclipse  Helios Service Release 2. Y ademas tengo
descargado el plugin:
com.google.gdt.eclipse.suite.e36.update.site_2.2.0.v201102111811

He seguido las instrucciones para la instalacion local y me deja este
mensaje de error:

Cannot complete the install because one or more required items could
not be found.
  Software being installed: Google App Engine Java SDK 1.4.2
1.4.2.v201102111811
(com.google.appengine.eclipse.sdkbundle.e36.feature.
1.4.2.feature.group 1.4.2.v201102111811)
  Missing requirement: Google Plugin for Eclipse 3.6
2.2.0.v201102111811
(com.google.gdt.eclipse.suite.e36.feature.feature.group
2.2.0.v201102111811) requires 'org.eclipse.pde.core 0.0.0' but it
could not be found
  Cannot satisfy dependency:
From: Google App Engine Java SDK 1.4.2 1.4.2.v201102111811
(com.google.appengine.eclipse.sdkbundle.e36.feature.
1.4.2.feature.group 1.4.2.v201102111811)
To: com.google.gdt.eclipse.suite.e36.feature.feature.group 2.2.0

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



Re: Problem with Gilead Integration in GWT, Spring and JPA

2011-03-25 Thread gperetin
>From the output above, seems like you're missing @Transactional (or
XML configuration if thats what you're using) on one of your methods
that access database.

However, I would recommend you cheking out MyBatis data mapper (if
that's an option for you), I started using it recently instead of
Hibernate and found it much simpler. You do need to write some SQL
though... With MyBatis you don't have to use Gilead at all since it
returns plain POJOs that can be serialized, unlike Hibernate that
wraps POJOs.

Goran

On Mar 25, 1:23 pm, marky8264  wrote:
> However, this is a lot of work or?
> You must create one DTO for one entity. If you have a lot of entites,
> it will be a lot of work.
> Is there another possibility to solve this serialization problem?
>
> On 25 Mrz., 10:46, Paul Robinson  wrote:
>
>
>
>
>
>
>
> > I use DTOs rather than Gilead...I guess the gilead forums may be able to 
> > help.
>
> > On 24/03/11 17:51, marky8264 wrote:
>
> > > thanks for your answer.
> > > However, if i use a eager loading for the list, i will get this:
> > > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> > > 'org.hibernate.collection.PersistentBag' was not included in the set
> > > of types which can be serialized by this SerializationPolicy or its
> > > Class object could not be loaded. For security purposes, this type
> > > will not be serialized.: instance = []
> > >    at
> > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> > > 614)
> > >    at
> > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> > > 126)
> > >    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> > > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
> > >    at
> > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
> > > 534)
> > >    at
> > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
> > > 704)
> > >    at
> > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
> > > 734)
> > >    at
> > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> > > 616)
> > >    at
> > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> > > 126)
> > >    at
> > > com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase.serialize(Map_CustomFieldSerializerBase.java:
> > > 52)
> > >    at
> > > com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize(HashMap_CustomFieldSerializer.java:
> > > 38)
> > >    ... 76 more
>
> > > Although i use Gilead, i get this exception. I thought that Gilead
> > > will clone the entity object and replace the hibernate collections
> > > with normal collections.
> > > Why do i get this exception?
>
> > > Is it possible that this is the reason:
> > > [...]
> > > 24 M�r 2011 16:43:38,695 DEBUG PersistentBeanManager: Not persistent
> > > object, merge is not needed : 1
> > > 24 M�r 2011 16:43:38,696 DEBUG GileadRPCHelper: Merge took 92 ms.
> > > 24 M�r 2011 16:43:38,979 TRACE HibernateUtil  : Exception during
> > > getCurrentSession
> > > org.hibernate.HibernateException: No Hibernate Session bound to
> > > thread, and configuration does not allow creation of non-transactional
> > > one here
> > >    at
> > > org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:
> > > 63)
> > >    at
> > > org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:
> > > 700)
> > >    at
> > > net.sf.gilead.core.hibernate.HibernateUtil.getCurrentSession(HibernateUtil.java:
> > > 1829)
> > >    at
> > > net.sf.gilead.core.hibernate.HibernateUtil.flushIfNeeded(HibernateUtil.java:
> > > 975)
> > >    at
> > > net.sf.gilead.core.PersistentBeanManager.clone(PersistentBeanManager.java:
> > > 227)
> > >    at
> > > net.sf.gilead.gwt.GileadRPCHelper.parseReturnValue(GileadRPCHelper.java:
> > > 157)
> > > [...]
>
> > > Here my gilead config:
> > >          > >            class="net.sf.gilead.core.serialization.GwtProxySerialization" 
> > > />
>
> > >     > > class="net.sf.gilead.core.store.stateless.StatelessProxyStore">
> > >            
> > >    
>
> > >     > > class="net.sf.gilead.core.hibernate.jpa.HibernateJpaUtil">
> > >             > > ref="entityManagerFactory" /
> > >    
>
> > >     > > class="net.sf.gilead.core.PersistentBeanManager">
> > >            
> > >            
> > >    
>
> > > On 24 Mrz., 18:31, Paul Robinson  wrote:
> > >> Your collection is mapped as lazy, which means hibernate will load data 
> > >> on demand rather than up-front. However, you then try and access the 
> > 

Help with building GWT from source - javax.validation.ConstraintValidation cannot be resolved

2011-03-25 Thread Tom K.
I've downloaded both the main trunk version as well as the build under
releases/2.3, and both seem to have the same problem.  I can get
everything built OK, and I'm not showing any errors in the output from
the build.  When the build is complete, for some reason it labels the
final packaged build as gwt-0.0.0 (it does this using both the 2.3
release build as well as trunk).  Everything seems to be fine and I
can deploy everything OK, up until I try and access my GWT app.  When
I do, I get pages of errors because the import
javax.validation.ConstraintValidation cannot be resolved.  I've tried
to figure out the numerous build scripts to figure out why this import
isn't included in my jar, but to no avail.  Can anyone help me figure
out what I might be missing?  This is my error log when I run my app:


[DEBUG] [scanlogistixclient] - Validating newly compiled units
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/EditorDriver.java'
[ERROR] [scanlogistixclient] - Line 20: The import
javax.validation.ConstraintViolation cannot be resolved
[ERROR] [scanlogistixclient] - Line 97: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/impl/
AbstractSimpleBeanEditorDriver.java'
[ERROR] [scanlogistixclient] - Line 28: Name clash: The method
setConstraintViolations(Iterable>) of type
BaseEditorDriver has the same erasure as
setConstraintViolations(Iterable>) of type
EditorDriver but does not override it
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
[ERROR] [scanlogistixclient] - Line 31: The import
javax.validation.ConstraintViolation cannot be resolved
[ERROR] [scanlogistixclient] - Line 67: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
[ERROR] [scanlogistixclient] - Line 25: The import
javax.validation.ConstraintViolation cannot be resolved
[ERROR] [scanlogistixclient] - Line 40: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Line 43: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Line 44: Missing code 
implementation
in the compiler
[ERROR] [scanlogistixclient] - Line 49: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Line 49: Missing code 
implementation
in the compiler
[ERROR] [scanlogistixclient] - Line 70: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Line 72: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Line 73: ConstraintViolation
cannot be resolved to a type
[ERROR] [scanlogistixclient] - Line 77:
ConstraintViolation cannot be resolved to a type
[ERROR] [scanlogistixclient] - Line 81:
ConstraintViolation cannot be resolved to a type
[ERROR] [scanlogistixclient] - Line 89:
ConstraintViolation cannot be resolved to a type
[ERROR] [scanlogistixclient] - Line 93:
ConstraintViolation cannot be resolved to a type
[ERROR] [scanlogistixclient] - Line 98: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.trunk.v20110304/gwt-0.0.0/gwt-
user.jar!/com/google/gwt/editor/client/testing/
MockSimpleBeanEditorDriver.java'
[ERROR] [scanlogistixclient] - Line 26: The import
javax.validation.ConstraintViolation cannot be resolved
[ERROR] [scanlogistixclient] - Line 35: The type
MockSimpleBeanEditorDriver must implement the inherited abstract
method
EditorDriver.setConstraintViolations(Iterable>)
[ERROR] [scanlogistixclient] - Line 107: Name clash: The method
setConstraintViolations(Iterable>) of type
MockSimpleBeanEditorDriver has the same erasure as
setConstraintViolations(Iterable>) of type
EditorDriver but does not override it
[ERROR] [scanlogistixclient] - Line 108: ConstraintViolation 
cannot
be resolved to a type
[ERROR] [scanlogistixclient] - Errors in 'jar:file:/D:/Program
%20Files/eclipse/plugins/
com.google

Re: GWT hosted mode does not work in FF4

2011-03-25 Thread Chris Conroy
That's not a crash, that's an exception, and it means your deferred binding
for that class isn't set up properly. FF4 should present itself as the
gecko1_8 UA so this should be the same behavior that you see on FF3.6.

On Fri, Mar 25, 2011 at 2:31 PM, mayumi  wrote:

> I upgraded my FF to FF4 today and GWT hosted mode crashes with the
> message "[ERROR] [bam] - Failed to create an instance of
> 'net.bookedin.bam.client.BAM' via deferred binding "
>
> How can I fix this?
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Cross domain GWT RPC

2011-03-25 Thread d...@vide.bz
JSON or ProxyServlet is for me not an option. I need to transfert a
network of objects as GWT RPC can do with shared objects and not only
tree of data.

About the ProxyServlet, the main domain is not mine.


On Mar 25, 7:26 pm, "d...@vide.bz"  wrote:
> Hi,
>
> I need to control the transport of a GWT RPC call. I need to include
> GWT serialized
> object or directly into the page, or with a custom cross domain
> transport.
>
> There is a way to do this?
>
> I have find two problem ... but it look like the development is
> stopped.
>
> http://code.google.com/p/gwt-rpc-plus/http://code.google.com/p/xdrpc/
>
> I have found even how to manually searilze objects with GWT but this
> "hack"
> does not like reliable.
>
> http://www.techhui.com/profiles/blogs/simpler-and-speedier-gwt-with
>
> There a news about this issue? How can I male a GWT RPC call cross
> domain
> to a custom url?

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



GWT hosted mode does not work in FF4

2011-03-25 Thread mayumi
I upgraded my FF to FF4 today and GWT hosted mode crashes with the
message "[ERROR] [bam] - Failed to create an instance of
'net.bookedin.bam.client.BAM' via deferred binding "

How can I fix this?

Thanks,

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



Cross domain GWT RPC

2011-03-25 Thread d...@vide.bz
Hi,

I need to control the transport of a GWT RPC call. I need to include
GWT serialized
object or directly into the page, or with a custom cross domain
transport.

There is a way to do this?

I have find two problem ... but it look like the development is
stopped.

http://code.google.com/p/gwt-rpc-plus/
http://code.google.com/p/xdrpc/

I have found even how to manually searilze objects with GWT but this
"hack"
does not like reliable.

http://www.techhui.com/profiles/blogs/simpler-and-speedier-gwt-with

There a news about this issue? How can I male a GWT RPC call cross
domain
to a custom url?

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



Re: IE developer plugin installation

2011-03-25 Thread FabioV
can you double check if it is installed in control panel and report back?


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



Re: How to define a @ProxyFor(...) for a class without setters

2011-03-25 Thread Christien Lomax
Well, for the Solr case I mentioned in my example, it'll probably work fine 
then, as FacetField is passed back from Solr... its never written to by the 
clients.

It would be nice to have some sort of annotation that allowed you to define 
an @ProxyForConstructor ;)

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



Re: How to define a @ProxyFor(...) for a class without setters

2011-03-25 Thread Y2i
I have a number of value proxies with final fields that are set in 
constructors.  RequestFactory works fine with them, but there is no way to 
create the instances on the client, only on the server.  From the client 
point of view these objects are read-only (which works perfectly with 
projection queries)

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



Re: Controlling multiple columns sort order in GWT 2.2 CellTable

2011-03-25 Thread Yaakov Chaikin
Hmm... One idea came to me... Would you just accomplish this by
providing a comparator for the column that drives the 1st order sort
that has custom code to sort the rest of the data at that point? I
guess that should work, right?

-yaakov.

On Fri, Mar 25, 2011 at 12:06 PM, Yaakov  wrote:
> Hi,
>
> At this point, I figured out how to create a multiple column sort. I
> create 1 ListHandler and hadd that to the CellTable with the
> addColumnSortHandler method. I set each column I want to be sorted
> with setSortable(true) and then set multiple Comparators for each of
> those columns using the ListHandler.setComparator method.
>
> At the very end, I do this:
> cellTable.getColumnSortList().push(column3);
> cellTable.getColumnSortList().push(column2);
> cellTable.getColumnSortList().push(column1);
>
> This way column1 becomes the primary column to sort by, following by
> sorting on column2, and then column3.
>
> The question is this... How is the column sorting order affected when
> I click on column2, for example? Obviously, if I do that, column2
> becomes the primary sort column, but what is the secondary? column1?
>
> What if I want to make it that when the user clicks on column2, the
> column sorting order should be column2, column3, column1? How do I
> accomplish that at the same time keeping a regular column sorting
> order when the user click on column1 (i.e., column1, column2,
> column3)?
>
> Any help would be much appreciated!
>
> Thanks,
> Yaakov.

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



Re: Access Service Layer inside RequestFactory EntityLocator

2011-03-25 Thread David Chandler
You can create your own ServiceLayerDecorator that overrides the default
behavior of the createLocator() method. There's an example of wiring in a
custom ServiceLayerDecorator here:

http://code.google.com/p/listwidget/source/browse/trunk/src/main/java/com/turbomanage/listwidget/server/servlet/

Basically you extend RequestFactoryServlet to add your own decorator, then
rewire web.xml to serve /gwtRequest with your custom servlet.

Your own ServiceLayerDecorator would presumably get the Locator instance
from Spring instead of the default new instance.

See also
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/20ea2aea53aa29d3/73c1d8940157f61d

HTH,
/dmc

On Fri, Mar 25, 2011 at 12:29 PM, Lukasz Strzelecki wrote:

> Kathiravan Tamilvanan  writes:
>
> >
> >
>
> Did you manage to resolve this? I'm forcing with same problem rigth now.
>
>
> --
> You received 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.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



How to define a @ProxyFor(...) for a class without setters

2011-03-25 Thread Christien Lomax
Is there a way to create a Proxy for a class that does not have a setter? * 
(instead 
who's value(s) are set via its constructor)*

e.g.: Solr's 
FacetField
 class.. 
the field I want to proxy is the name.. but the name is set in its 
constructor, not via a setName(...) method.

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



Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Zed
Thanks it works now. I'm happy.

On 25 мар, 18:07, Thomas Broyer  wrote:
> Override the CellList styles (pass an overridden CellList.Resource to the
> constructor) to add the appropriate CSS properties to cellListEvenItem and
> cellListOddItem.
> I'd recommend using display:inline-block instead of float:left though; have
> a look at the com/google/gwt/resources/client/inline-block.css for a
> cross-browser implementation.

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



Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Thomas Broyer


On Friday, March 25, 2011 4:22:06 PM UTC+1, Jeff Larsen wrote:
>
> Out of curiosity, why do you recommend display:inline-block instead of 
> float:left?
>

Compare the first 2 screenshots in 
http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/

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



Cookies in gwt

2011-03-25 Thread khiem nguyen
hi,
it's possible to have cookies with the same name (with the same gwt-app)
so if i call: Cookies.setCookie("name", "value"), with firebug i  can see
there are many cookies with name="name" is sent.
so it's not consitent if server needs only 1 correct info from cookie. i
think about calling Cookies.removeCookie("name") before setting it. but
1. does it remove ALL cookies with this name the client ?
2. will calling Cookies.getCookieNames() return duplicate names or only
DISTINC ?

i want to be sure there's only 1 cookie with 1 name on the client ? what
would be your suggestion ?

thanx

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



Re: SafeHtmlUtils on the server side

2011-03-25 Thread Juan Pablo Gardella
I suppose you need some class in the server side. Put gwt-user.jar in server
side and test

2011/3/25 Matt 

> I am trying to use the SafeHtmlUtils class on the server side to make
> sure some HTML I am sending back to the client side is placed in a
> SafeHtml object before it is returned. I am assuming it can be used on
> the server side as its package name is com.google.gwt.safehtml.shared
> and the class is inside of the gwt-servlet.jar When I go and call
> SafeHtmlUtils.fromSafeConstant() I get a NoClassDefFoundError (below).
>
> java.lang.NoClassDefFoundError: com/google/gwt/thirdparty/
> streamhtmlparser/ParseException
>at
>
> com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant(SafeHtmlUtils.java:
> 79)
>
> I found the class/package that it was looking for in the gwt-dev.jar.
> I am wondering if this is a bug that should be reported to Google or
> is the SafeHtmlUtils class not allowed to be used on the server side?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Access Service Layer inside RequestFactory EntityLocator

2011-03-25 Thread Lukasz Strzelecki
Kathiravan Tamilvanan  writes:

> 
> 

Did you manage to resolve this? I'm forcing with same problem rigth now.


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



Re: gae gwt - to serve compressed java script

2011-03-25 Thread pac
Will appreciate any suggestions to fix this.


On Mar 24, 11:11 pm, pac  wrote:
> I did post this in gae 
> forumhttps://groups.google.com/forum/?fromgroups#!topic/google-appengine-j...
>
> Posting here as well if somebody can suggest something.
>
> It looks that app engine is not serving compressed contents.
> Is there something I need to configure? though it says that it does
> that automatically
>
> http://code.google.com/appengine/kb/general.html#compression
>
> I have application written in gwt and java scripts are served
> uncompressed from app engine as per Page Speed plugin of Chrome and
> FireFox. It suggests to enable compression.
>
> From Page Speed:
>
> Compressing ./4.cache.js could save 336.2KiB (77% reduction).
>
> From Live HTTP Headers plugin of Firefox:
>
> ./4.cache.js
>
> GET ./4.cache.js HTTP/1.1
> Host: 
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:
> 1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729)
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
> *;q=0.8
> Accept-Language: en-gb,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 115
> Proxy-Connection: keep-alive
> Referer: 
> If-None-Match: "X3ERbg"
> Cache-Control: max-age=0
>
> HTTP/1.1 200 OK
> Via: 1.1 SRV-IE-GATEWAY
> Connection: Keep-Alive
> Proxy-Connection: Keep-Alive
> Transfer-Encoding: chunked
> Age: 598
> Expires: Thu, 22 Mar 2012 11:44:33 GMT
> Date: Wed, 23 Mar 2011 11:44:33 GMT
> Content-Type: application/x-javascript
> Etag: "X3ERbg"
> Server: Google Frontend
> Cache-Control: public, max-age=31536000
>
> May be I am wrong, but I am guessing that if app engine is serving
> compressed contents then in its response it will say something like
>
> Content-Encoding: gzip
>
> May be I am missing something, any suggestions to fix it?
>
> Thanks.

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



SafeHtmlUtils on the server side

2011-03-25 Thread Matt
I am trying to use the SafeHtmlUtils class on the server side to make
sure some HTML I am sending back to the client side is placed in a
SafeHtml object before it is returned. I am assuming it can be used on
the server side as its package name is com.google.gwt.safehtml.shared
and the class is inside of the gwt-servlet.jar When I go and call
SafeHtmlUtils.fromSafeConstant() I get a NoClassDefFoundError (below).

java.lang.NoClassDefFoundError: com/google/gwt/thirdparty/
streamhtmlparser/ParseException
at
com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant(SafeHtmlUtils.java:
79)

I found the class/package that it was looking for in the gwt-dev.jar.
I am wondering if this is a bug that should be reported to Google or
is the SafeHtmlUtils class not allowed to be used on the server side?

Thanks.

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



Re: Is Google WebKit the same entity?

2011-03-25 Thread David Chandler
In that context, I suspect that Google WebKit is referring to Chrome since
it's based on http://en.wikipedia.org/wiki/WebKit

GWT is unrelated.

/dmc

On Thu, Mar 24, 2011 at 6:57 PM, roschler  wrote:

> I'm just getting started writing extensions for Chrome 11 beta, which
> has support for the HTML5 Speech API.  While studying some online
> reference docs related to writing Chrome extensions I saw a note
> saying that you have access to any of the APIs belonging to "Google
> WebKit".  Is "Google WebKit" the same entity as "Google Web Toolkit",
> or is it a completely different animal?
>
> Thanks,
> Robert
>
> --
> You received 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.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Controlling multiple columns sort order in GWT 2.2 CellTable

2011-03-25 Thread Yaakov
Hi,

At this point, I figured out how to create a multiple column sort. I
create 1 ListHandler and hadd that to the CellTable with the
addColumnSortHandler method. I set each column I want to be sorted
with setSortable(true) and then set multiple Comparators for each of
those columns using the ListHandler.setComparator method.

At the very end, I do this:
cellTable.getColumnSortList().push(column3);
cellTable.getColumnSortList().push(column2);
cellTable.getColumnSortList().push(column1);

This way column1 becomes the primary column to sort by, following by
sorting on column2, and then column3.

The question is this... How is the column sorting order affected when
I click on column2, for example? Obviously, if I do that, column2
becomes the primary sort column, but what is the secondary? column1?

What if I want to make it that when the user clicks on column2, the
column sorting order should be column2, column3, column1? How do I
accomplish that at the same time keeping a regular column sorting
order when the user click on column1 (i.e., column1, column2,
column3)?

Any help would be much appreciated!

Thanks,
Yaakov.

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



IE developer plugin installation

2011-03-25 Thread Eike Reifhardt
Hi There,

I'm having trouble getting the plugin to work & hope someone might
have an idea. I'm working on a MacBook and when I open the URL with FF
or Safari, I get promted to install the dev plugin, when it's not
installed. However, when I am open the URL from inside a Virtual
Machine, running XP IE8, I do not get prompted to install anything -
the App just starts blank white with the notice, that the app is
loading.

When I am try to install the plugin manually (downloading the exe), it
is not listed under the add-ons. Registering the dll manually won't
work either. I've also tryed to switch off the internal firewall - no
luck.

I start the App from the Terminal with: mvn -Dgwt.bindAddress=0.0.0.0
war:war gwt:run
So binding the adress should not be the issue.

We're using GWT 2.1.1 and I have no idea how to get the plugin
working.

TIA,
Eike

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



Re: @AlternateMessage and null values

2011-03-25 Thread Jeff Larsen
Try @Optional in front of the strings that can be null.

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



frequent exception

2011-03-25 Thread SVR
I frequently see this in my server logs when I run the GWT application,
though I am not able to say which call throws this exception.
Can anybody tell me how to track this down?

Exception while dispatching incoming RPC call: java.io.IOException:
SRVE0080E: Invalid content length

Thanks

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



Re: @AlternateMessage and null values

2011-03-25 Thread bconoly
Anyone?

On Mar 24, 11:11 am, bconoly  wrote:
> Hey All,
>    I'm trying to use the new @AlternateMessage annotation in my
> message interface to control messages when some values are null and
> some are not.  The javadoc for the AlternateMessage says it accepts
> Strings but it doesn't seem to handle a null value whether I try to
> mark it with none or null.  Any suggestions on how I can get this to
> work?
>
>     @DefaultMessage("User ID: {0},  class=''label''>Alt ID: {1}, CIS #: span> {2}, Name: {3}")
>     @AlternateMessage({
>         "other|none|none", "User ID: {0},
> Name: {3}",
>         "other|other|none", "User ID:
> {0}, Alt ID: {1},  class=''label''>Name: {3}",
>         "other|none|other", "User ID:
> {0}, CIS #: {2},  class=''label''>Name: {3}",
>         "none|other|other", "Alt ID: {1},
> CIS #: {2}, Name: span> {3}"
>     })
>     public String userSelection(@Select String memberNumber, @Select
> String altMemberNumber, @Select String cisNumber, String memberName);
>
> Thanks

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



Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Jeff Larsen
or just use CommonResources.getInlineBlockStyle();

Out of curiosity, why do you recommend display:inline-block instead of 
float:left?

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



Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Thomas Broyer
Override the CellList styles (pass an overridden CellList.Resource to the 
constructor) to add the appropriate CSS properties to cellListEvenItem and 
cellListOddItem.
I'd recommend using display:inline-block instead of float:left though; have 
a look at the com/google/gwt/resources/client/inline-block.css for a 
cross-browser implementation.

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



Re: Editor compatible widget

2011-03-25 Thread Metronome & Basic
Thanks I'll have a try

but what if I wanted to design a widget of my own ( let's say for another 
purpose )

Patrick


  - Original Message - 
  From: Jens 
  To: google-web-toolkit@googlegroups.com 
  Cc: Metronome & Basic 
  Sent: Friday, March 25, 2011 2:29 PM
  Subject: Re: Editor compatible widget


  Use ValueListBox instead of ListBox. 


  ValueListBox has methods setValue(T value) and T getValue() and it can be 
used as editor. So you probably won't need your custom ListBox anymore.


--


  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1204 / Base de données virale: 1498/3527 - Date: 24/03/2011

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



Last call for I/O contest begins <2 hrs

2011-03-25 Thread David Chandler
Just a friendly reminder, GWT contest begins today at 9am PST:

http://googlecode.blogspot.com/2011/03/last-call-for-google-io.html

-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



GWT 2.2 and FocusWidget

2011-03-25 Thread bconoly
Hey All,
   I have a custom widget that extends the GWT FocusWidget.  It is
highly dependent on getting onFocus and onBlur events but
unfortunately when I recently upgraded to GWT 2.2 it no longer fires
these events.  Does anyone have any idea what I can do to fix this or
why this is happening?
Thanks

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



Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Jeff Larsen
Template files are built using GWT.create, so you always have the option of 
extending the interface and then changing your [app].gwt.xml file to rebind 
CellList.Template to MyNewCellListTemplate.

For more info on deferred binding you can check this out.

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.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-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.



Scale an image in GWT/HTML5.

2011-03-25 Thread Brandon Donnelson
See the source code to scale an image in GWT/HTML5. I'm in love with
HTML5 canvas methods in GWT! Google App Engine Image Service is very
light duty api so I am transferring the processing to the client and
its working great!

http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5


Brandon Donnelson
http://gwt-examples.googlecode.com
http://c.gawkat.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.



GWT CellList custom template for Cell Items

2011-03-25 Thread Zed
By default CellList items rendered as column. I want to add float:Left
style to each item. I want them to display as a row. But every my
element in CellList is wrapped by CellList . So I want to
customize that div style template. Is it possible?
I found in CellList.class sources interface :

 interface Template extends SafeHtmlTemplates {
@Template("{2}")
SafeHtml div(int idx, String classes, SafeHtml cellContents);

@Template("{3}")
SafeHtml divFocusable(int idx, String classes, int tabIndex,
SafeHtml cellContents);

@Template("{4}")
SafeHtml divFocusableWithKey(int idx, String classes, int
tabIndex, char accessKey, SafeHtml cellContents);
  }

Can I customize that? Or maybe there is another workaround way?

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



Re: How to troubleshoot NPE during UIBinder component initialization

2011-03-25 Thread grigory
Thanks,
adding "-gen " compiler argument (and adding the  to
classpath when running in dev.mode) helped with both generated code
and more informative error messages. I was missing inherited modules
in the application gwt.xml file.

On Mar 23, 11:35 am, Thomas Broyer  wrote:
> To debug generated code: pass the -gen argument to DevMode (e.g. -gen gen)
> so you can look at the generated code (will be emitted to the given folder).
> Here, you could then have access to the generated createAndBindUi method and
> the line 18 where the error occurs.
> You can also add the folder to the Sources tab in your Eclipse launcher
> (assuming you're using Eclipse) and Eclipse will now allow you to step into
> the generated class.

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



Re: How to troubleshoot NPE during UIBinder component initialization

2011-03-25 Thread grigory
Thanks, adding "-gen " compiler argument (and adding it to
classpath) helped with both generated code and more informative error
messages.

On Mar 23, 11:35 am, Thomas Broyer  wrote:
> To debug generated code: pass the -gen argument to DevMode (e.g. -gen gen)
> so you can look at the generated code (will be emitted to the given folder).
> Here, you could then have access to the generated createAndBindUi method and
> the line 18 where the error occurs.
> You can also add the folder to the Sources tab in your Eclipse launcher
> (assuming you're using Eclipse) and Eclipse will now allow you to step into
> the generated class.

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



Re: Use of processing.js with GWT

2011-03-25 Thread cearl
This looks good. I'll evaluate shortly.Thanks!!

On Mar 25, 9:26 am, Uemit  wrote:
> Yes I am using processing.js with GWT.
> I wrote a simple GWT wrapper for processing.js you can check it out here:
>
> https://github.com/timeu/processing-js-gwt
>
> There are three ways to load processing code (you have to call them on the
> instance of the wrapper):
>
> load(ExternalTextResource code ,final Runnable onLoad)
> loadFromUrl(String url,final Runnable onLoad)
> load(String code,final Runnable onLoad)
>
> *The onLoad Callback will be called as soon as the processing code is
> loaded.
> *
> *
> *
> *There is also an abstract *ProcessingInstance *class for interaction with
> the Processing code. *
> *
> *
> *Hope this helps*

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



Re: Editor compatible widget

2011-03-25 Thread Jens
Use ValueListBox instead of ListBox. 

ValueListBox has methods setValue(T value) and T getValue() and it can be 
used as editor. So you probably won't need your custom ListBox anymore.

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



Re: Use of processing.js with GWT

2011-03-25 Thread Uemit
Yes I am using processing.js with GWT.
I wrote a simple GWT wrapper for processing.js you can check it out here: 

https://github.com/timeu/processing-js-gwt

There are three ways to load processing code (you have to call them on the 
instance of the wrapper):

load(ExternalTextResource code ,final Runnable onLoad)
loadFromUrl(String url,final Runnable onLoad)
load(String code,final Runnable onLoad)

*The onLoad Callback will be called as soon as the processing code is 
loaded.
*
*
*
*There is also an abstract *ProcessingInstance *class for interaction with 
the Processing code. *
*
*
*Hope this helps*

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



Re: When is an object passed over RPC safe to modify?

2011-03-25 Thread Martin Larsson
I need the status on the server (new, deleted, modified), so I must wait 
with the modification until I know the objects have been serialized. 
Even though Javascript is single threaded, the actual RPC-call is done 
with a separate XMLHttpRequest-object, I'm uncertain if the objects are 
safe on the code line right after the actual RPC-call. The easiest (at 
least for me, but probably also Google) would be if they were. But how 
would I know?


On 25. mars 2011 03:26, Craig Mitchell wrote:

Javascript is single threaded, so you can just mark them as clean just
before you send them.  IOW.  It won't be possible for them to be
updated between when they are marked as clean, and when the call to
save starts.

If the save fails, just mark them back to being modified.

Note: During the save process on the server, they can be modified.


On Mar 24, 4:19 am, Martin Larsson
wrote:

We're experimenting with background saving in our GWT-app. IOW. we
mark objects as 'modified', and then at regular intervals, find all
modified objects and pass them to the database for storage. The
question is when is it safe to mark the object as 'clean'. The on-
success-handler of the save()-method is too late, obviously. That can
happen any time later and the user might have modified the object(s)
again. As the status also can be 'new' or 'deleted', I need to pass
the status to the server so it knows what to do. IOW. I can't mark the
object clean too early. What I'd like is to mark them 'clean' when
they're safely serialized, and have the on-failure-handler set them
back to 'modified' if the save() failed.

So ... is there any point in the code where I can be certain that the
objects are serialized and on their way to the server so I can start
modifying them in the client without interfering?

Figure 4 here:http://eclipse.dzone.com/news/making-gwt-remote-procedure-ca
indicates that the objects are safe once the method in *Async returns.
Is that safe?

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



Re: Problem with Gilead Integration in GWT, Spring and JPA

2011-03-25 Thread marky8264
However, this is a lot of work or?
You must create one DTO for one entity. If you have a lot of entites,
it will be a lot of work.
Is there another possibility to solve this serialization problem?

On 25 Mrz., 10:46, Paul Robinson  wrote:
> I use DTOs rather than Gilead...I guess the gilead forums may be able to help.
>
> On 24/03/11 17:51, marky8264 wrote:
>
>
>
>
>
>
>
> > thanks for your answer.
> > However, if i use a eager loading for the list, i will get this:
> > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> > 'org.hibernate.collection.PersistentBag' was not included in the set
> > of types which can be serialized by this SerializationPolicy or its
> > Class object could not be loaded. For security purposes, this type
> > will not be serialized.: instance = []
> >    at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> > 614)
> >    at
> > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> > 126)
> >    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
> >    at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
> > 534)
> >    at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
> > 704)
> >    at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
> > 734)
> >    at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> > 616)
> >    at
> > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> > 126)
> >    at
> > com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase.serialize(Map_CustomFieldSerializerBase.java:
> > 52)
> >    at
> > com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize(HashMap_CustomFieldSerializer.java:
> > 38)
> >    ... 76 more
>
> > Although i use Gilead, i get this exception. I thought that Gilead
> > will clone the entity object and replace the hibernate collections
> > with normal collections.
> > Why do i get this exception?
>
> > Is it possible that this is the reason:
> > [...]
> > 24 M�r 2011 16:43:38,695 DEBUG PersistentBeanManager: Not persistent
> > object, merge is not needed : 1
> > 24 M�r 2011 16:43:38,696 DEBUG GileadRPCHelper: Merge took 92 ms.
> > 24 M�r 2011 16:43:38,979 TRACE HibernateUtil  : Exception during
> > getCurrentSession
> > org.hibernate.HibernateException: No Hibernate Session bound to
> > thread, and configuration does not allow creation of non-transactional
> > one here
> >    at
> > org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:
> > 63)
> >    at
> > org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:
> > 700)
> >    at
> > net.sf.gilead.core.hibernate.HibernateUtil.getCurrentSession(HibernateUtil.java:
> > 1829)
> >    at
> > net.sf.gilead.core.hibernate.HibernateUtil.flushIfNeeded(HibernateUtil.java:
> > 975)
> >    at
> > net.sf.gilead.core.PersistentBeanManager.clone(PersistentBeanManager.java:
> > 227)
> >    at
> > net.sf.gilead.gwt.GileadRPCHelper.parseReturnValue(GileadRPCHelper.java:
> > 157)
> > [...]
>
> > Here my gilead config:
> >          >            class="net.sf.gilead.core.serialization.GwtProxySerialization" />
>
> >     > class="net.sf.gilead.core.store.stateless.StatelessProxyStore">
> >            
> >    
>
> >     > class="net.sf.gilead.core.hibernate.jpa.HibernateJpaUtil">
> >             > /
> >    
>
> >     > class="net.sf.gilead.core.PersistentBeanManager">
> >            
> >            
> >    
>
> > On 24 Mrz., 18:31, Paul Robinson  wrote:
> >> Your collection is mapped as lazy, which means hibernate will load data on 
> >> demand rather than up-front. However, you then try and access the 
> >> collection outside a hibernate session, so it cannot do the load.
>
> >> You should either load what you need inside the hibernate session, or make 
> >> your collection be non-lazy.
>
> >> On 24/03/11 14:50, marky8264 wrote:
>
> >>> hey,
> >>> I'm a newbie with these frameworks. Firstly i want to write a small
> >>> web app with gwt for the frontend, spring for backend and jpa for the
> >>> persistence operations. I use Hibernate as JPA implementation.
> >>> I started with a simple construction (2 simply entities, 2 DAO,1
> >>> remote service). I have no problems with this example. After i had
> >>> extended the entities with lists, i got some problems with the lazy
> >>> loading and serialization. Therefore i searched for solution and found
> >>> the Gilead Framework.
> >>> No

Re: ProxyAutoBean server-side cache

2011-03-25 Thread Thomas Broyer
[Cc: BobV, rjrjr]

That would explain why our test server regularly becomes unresponsive and 
needs a restart (we shipped our first milestone on Monday for our customer 
to start testing it; I don't think they complained yet, fortunately; it 
hadn't beat us earlier as we test on our CI server which is rebuilt and 
restarted at least once a day)

Looking at the code, ProxyAutoBean's createShim creates a reference cycle 
(the shim references the proxyAutoBean, which keeps a reference on the 
shim). Because the value in the WeakMapping is kept with a strong reference, 
there's always a strong reference to key as well, so the cleanup() never has 
anything to clean.

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



RequestContext method with enumeration parameter

2011-03-25 Thread Lazo Apostolovski
Hi there,

I use gwt request factory to load some object from server. I'll give an 
example code:

https://gist.github.com/886743

This code works just fine in GWT Hosted mode. But problem appears when I 
compile GWT code to JavaScript. For some reason, FooState enumeration can't 
be serialized. Java script throws:
Uncaught java.lang.UnsupportedOperationException: 
com.google.gwt.core.client.JavaScriptObject$
And request factory does not send anything to the server. This bug appears 
only when I give enumeration as parameter in RequestContext method, in 
compiled JavaScript code. In hosted mode I dont have any problems 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: gwt + spring + maven

2011-03-25 Thread Juan Pablo Gardella
Best Practices!!! gwt
http://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf

Places, Activities:
http://tbroyer.posterous.com/gwt-21-activities
http://tbroyer.posterous.com/gwt-21-places

MVP
http://wanderingcanadian.posterous.com/hello-mvp-with-gin



gwt-dispatch + spring
http://pgt.de/2009/09/16/use-spring-with-gwt-dispatch/
http://pgt.de/2009/12/09/sample-gwt-dispath-project/

gwt maven eclipse
http://mojo.codehaus.org/gwt-maven-plugin/

news in gwt 2.2
http://www.slideshare.net/turbomanage/whats-new-in-gwt-22

Juan


2011/3/25 mariyan nenchev 

> Hi,
>
> We are going to develop a new project and i want to make some proof of
> concept. We want to use gwt, spring and maven. Are these well integrated?
> Could we use dev mode with spring?
> Did someone tried this GWT designer and is it generating only java code or
> ui binder xml based code? Our UI will be very customized with styles, images
> etc.. so is gwt designer good for that?
> We are seeking fast and effective development. If you could point me to
> some good examples, tutorials, blogs etc.
>
> Thanks.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Celltable renderer object

2011-03-25 Thread Marco Gadaleta
Hello everyone,
is there a way to obtain the object that cellTable has rendering during the
rendering?

For example i've associated a list of object as  dataprovider to celltable
and i want to know what is the object
that celltable has rendering in that time?
This is useful to me becouse i can add or not dinamically another column
based on a specific value of the object

-- 
Marco

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



Re: FocusPanel selection borderless

2011-03-25 Thread Marco Gadaleta
any help..

On Thu, Mar 24, 2011 at 3:40 PM, Marco Gadaleta wrote:

> Hello everyone,
> I'm using a FocusPanel widget and i wan't to remove the border of selection
> when i click on the focus panel.
> I've try with a css with border: none  but without succes..
> Any idea?
>
> --
> Marco
>



-- 
Marco

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



Use of processing.js with GWT

2011-03-25 Thread cearl
Hi,
I'm wondering if anyone has successfully run processing.js
applications in GWT? On loading a .pjs file, I note that neither
setup() or draw() functions are called.

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



Re: Get value of GWT property at runtime

2011-03-25 Thread biophonc
Cheers! ... works perfect :)



On Mar 15, 2:54 pm, Paul Robinson  wrote:
> Possibly not as simple as you wanted, but you can do something like this:
> (1) Create base class com.foo.ThemeInfo and subclasses ThemeInfoOne and 
> ThemeInfoTwo
> (2) Add this to your gwt.xml:
> 
> 
> 
> 
>
> 
> 
> 
> 
>
> (3) In your client-side code:
>    ThemeInfo info = GWT.create(ThemeInfo.class);
>
> and you'll get an instance of ThemeInfoOne when using theme1 and ThemeInfoTwo 
> when using theme2 and an instance of the ThemeInfo base class otherwise
>
> This should let you do what you want, and also move the "if using theme#1" 
> test to compile time.
>
> HTH
> Paul
>
> On 15/03/11 12:46, Raphael Andr Bauer wrote:
>
> > Hi,
>
> > is there a simple way to get a gwt-property when the GWT app is running?
>
> > e.g. I have:
> > 
>
> > Then at compile time I get nice permutations for theme1 and theme2. Cool so 
> > far.
>
> > For some agile flexible fine-tuning it would be nice to get the value
> > of "theme".
> > Something like GWT.getPermutationProperty("theme")
>
> > Is this possible - or plain stupid because that's what compile time
> > permutations are for... (I know that, but nevertheless...) ?
>
> > Thanks!
>
> > Raphael

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



Starting GWT app + Java main

2011-03-25 Thread Radamanthis
Hi! I want to create a web app with gwt that take its input from a
java application client. My idea was to load a java main that provides
a ServerSocket for java application while loading web app too. But I
don't know how 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to make customize combobox

2011-03-25 Thread zuni
Hi, I would like to add combobox in celltable. I have requirement as
combobox should have the arrow image which shows in everycombobox by
default.

Kindly help me out.

Thanks in ADVANCE.

Zuned

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



Is Google WebKit the same entity?

2011-03-25 Thread roschler
I'm just getting started writing extensions for Chrome 11 beta, which
has support for the HTML5 Speech API.  While studying some online
reference docs related to writing Chrome extensions I saw a note
saying that you have access to any of the APIs belonging to "Google
WebKit".  Is "Google WebKit" the same entity as "Google Web Toolkit",
or is it a completely different animal?

Thanks,
Robert

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



Re: Get value of GWT property at runtime

2011-03-25 Thread Raphael André Bauer
On Tue, Mar 15, 2011 at 2:54 PM, Paul Robinson  wrote:
> Possibly not as simple as you wanted, but you can do something like this:
> (1) Create base class com.foo.ThemeInfo and subclasses ThemeInfoOne and
> ThemeInfoTwo
> (2) Add this to your gwt.xml:
> 
> 
> 
> 
>
> 
> 
> 
> 
>
> (3) In your client-side code:
>  ThemeInfo info = GWT.create(ThemeInfo.class);
>
> and you'll get an instance of ThemeInfoOne when using theme1 and
> ThemeInfoTwo when using theme2 and an instance of the ThemeInfo base class
> otherwise
>
> This should let you do what you want, and also move the "if using theme#1"
> test to compile time.


Hi Paul,


I think that helps a lot. I initially thought about something similar,
but was not sure if it's the best idea. It involves a lot of overhead
imho. But - it's better than all other possibilities I can think of
now...

Thanks :)


Best,

Raphael

>
> HTH
> Paul
>
> On 15/03/11 12:46, Raphael André Bauer wrote:
>>
>> Hi,
>>
>>
>> is there a simple way to get a gwt-property when the GWT app is running?
>>
>> e.g. I have:
>> 
>>
>> Then at compile time I get nice permutations for theme1 and theme2. Cool
>> so far.
>>
>>
>> For some agile flexible fine-tuning it would be nice to get the value
>> of "theme".
>> Something like GWT.getPermutationProperty("theme")
>>
>> Is this possible - or plain stupid because that's what compile time
>> permutations are for... (I know that, but nevertheless...) ?
>>
>>
>> Thanks!
>>
>>
>> Raphael
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



gwt + spring + maven

2011-03-25 Thread mariyan nenchev
Hi,

We are going to develop a new project and i want to make some proof of
concept. We want to use gwt, spring and maven. Are these well integrated?
Could we use dev mode with spring?
Did someone tried this GWT designer and is it generating only java code or
ui binder xml based code? Our UI will be very customized with styles, images
etc.. so is gwt designer good for that?
We are seeking fast and effective development. If you could point me to some
good examples, tutorials, blogs etc.

Thanks.

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



Re: problem with character encoding

2011-03-25 Thread tanteanni
thx now it is working

On 23 Mrz., 09:47, Thomas Broyer  wrote:
> On Wednesday, March 23, 2011 7:10:00 AM UTC+1, tanteanni wrote:
>
> > thx for your investigation,
>
> > i'll try it with chnaged encoding of propery-file (at the moment i
> > load it via Properties.load.getresourceasstream(file)). but is there a
> > way to let my code let the reencoding, so that properties-file could
> > be utf-8?
>
> Just wrap the InputStream returned from getResourceAsStream within an
> InputStreamReader, specifying the UTF-8 encoding; and thus use the
> load(Reader) overload of Properties instead of the load(InputStream) one.

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



Re: Scroll to content

2011-03-25 Thread Jens
Maybe searchResultPanel.getElement().scrollIntoView() might help. 

If not you can still play around with ScrollPanel.setScrollPosition(int 
position). 
I think position should be the value of yourFormPanel.getOffsetHeight()

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



Re: Problem with Gilead Integration in GWT, Spring and JPA

2011-03-25 Thread Paul Robinson

I use DTOs rather than Gilead...I guess the gilead forums may be able to help.

On 24/03/11 17:51, marky8264 wrote:

thanks for your answer.
However, if i use a eager loading for the list, i will get this:
Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'org.hibernate.collection.PersistentBag' was not included in the set
of types which can be serialized by this SerializationPolicy or its
Class object could not be loaded. For security purposes, this type
will not be serialized.: instance = []
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
614)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
534)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
704)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
734)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
616)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at
com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase.serialize(Map_CustomFieldSerializerBase.java:
52)
at
com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize(HashMap_CustomFieldSerializer.java:
38)
... 76 more

Although i use Gilead, i get this exception. I thought that Gilead
will clone the entity object and replace the hibernate collections
with normal collections.
Why do i get this exception?

Is it possible that this is the reason:
[...]
24 Mär 2011 16:43:38,695 DEBUG PersistentBeanManager: Not persistent
object, merge is not needed : 1
24 Mär 2011 16:43:38,696 DEBUG GileadRPCHelper: Merge took 92 ms.
24 Mär 2011 16:43:38,979 TRACE HibernateUtil  : Exception during
getCurrentSession
org.hibernate.HibernateException: No Hibernate Session bound to
thread, and configuration does not allow creation of non-transactional
one here
at
org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:
63)
at
org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:
700)
at
net.sf.gilead.core.hibernate.HibernateUtil.getCurrentSession(HibernateUtil.java:
1829)
at
net.sf.gilead.core.hibernate.HibernateUtil.flushIfNeeded(HibernateUtil.java:
975)
at
net.sf.gilead.core.PersistentBeanManager.clone(PersistentBeanManager.java:
227)
at
net.sf.gilead.gwt.GileadRPCHelper.parseReturnValue(GileadRPCHelper.java:
157)
[...]

Here my gilead config:















On 24 Mrz., 18:31, Paul Robinson  wrote:

Your collection is mapped as lazy, which means hibernate will load data on 
demand rather than up-front. However, you then try and access the collection 
outside a hibernate session, so it cannot do the load.

You should either load what you need inside the hibernate session, or make your 
collection be non-lazy.

On 24/03/11 14:50, marky8264 wrote:








hey,
I'm a newbie with these frameworks. Firstly i want to write a small
web app with gwt for the frontend, spring for backend and jpa for the
persistence operations. I use Hibernate as JPA implementation.
I started with a simple construction (2 simply entities, 2 DAO,1
remote service). I have no problems with this example. After i had
extended the entities with lists, i got some problems with the lazy
loading and serialization. Therefore i searched for solution and found
the Gilead Framework.
Now i have following problem:
org.hibernate.LazyInitializationException: failed to lazily initialize
a collection of role:, no session or
session was closed
at
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:
383)
at
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:
375)
I don't understand the problem, because i marked the service method
with @Transactional(propagation=Propagation.NESTED, readOnly=true).
What is the cause of my problem?
thanks in advance


--
You received 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 

Re: RPC Serializable = invalid objects graph?

2011-03-25 Thread Carl
It does seems that GWT RPC does perserve object graphs properly. I use
Twig to persist to the DataStore and that is were my object graph gets
messed up. So, new investigations...

Juan, Paul, thanks for your inputs, they led me in the right
direction.
Carl

On Mar 24, 3:15 pm, Paul Robinson  wrote:
> GWT RPC does normally preserve object graphs properly, so an instance is only 
> ever written out once. If the same object is referenced multiple times in an 
> object graph, the first time it writes out the full object, and subsequent 
> times it writes a reference back to the thing it wrote out before.
>
> You need to be careful with circular references held in sets/maps, but it 
> doesn't sound like this is your 
> issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=3577
>
> Paul
>
> On 24/03/11 10:35, Carl wrote:
>
>
>
>
>
>
>
> > Hi,
> > I have the following setup:
>
> > import java.io.Serializable;
> > class A implements Serializable {
> >    Set  bs;
> >    Set  cs;
> > }
>
> > class B implements Serializable {
> >    Set  cs;
> > }
>
> > class C implements Serializable {
> >    Set  bs;
> > }
>
> > I send an instance of A from client to server using GWT RPC. After
> > deserialization the objects graph is no longer intact. Multiple
> > instances of what was earlier one instance have been created and
> > referenced to respectively.
>
> > Example:
> > Before serialization: instance x of A.bs == instance x of C.bs.
> > After deserialization: instance x of A.bs != instance x of C.bs.
>
> > As I understand it, this should not happen as the serialization of all
> > the above instances is written to the same stream.
>
> > I know that GWT RPC only implements parts of java.io.Serializable.
> > Does this explain this behavior or does anyone have an idea?
>
> > Thanks,
> > Carl

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



Scroll to content

2011-03-25 Thread Stephan T
I have a rather large form which is taller than the visible area in
the page. The users enters search criterias in this form and when the
user executes the search I present the searchresults below the form.
because the form takes up the whole screen the user doesn't notice
that the searchresults have been displayed further down below. I want
to programatically scroll the page to display search results. Just
like html anchor works. But I can't use anchors sinxce it interferes
with gwt history management. How do I programatically make the page
scroll to a certain content?

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



GWT, Ads and Friendly IFrames

2011-03-25 Thread Raphael André Bauer
Hi,


people that write Ads seem to love the usage of document writes. That
is not 100% compatible with AJAX aka GWT and - in many cases -
potentially breaks the app. One nice solution imho might be the use of
Friendly IFrames (1). The benefit would be that people could continue
writing their Ads in the "traditional" way. But they will not break
the GWT client (Adsense did something not 100% similar this week (with
the intention to speed up things) (2)).

Is there any ready-to-use GWT solution available that encapsulates Ads
in IFrames? Maybe even allowing us to exchange Ads on demand when
"Places" in GWT change?


Just curious,


Thanks,

Raphael

(1) 
http://classroom.emediate.biz/doku.php?id=technical:integration:friendly_iframes
(2) 
http://adsense.blogspot.com/2011/03/making-web-faster-for-all-adsense-for.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-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.



Editor compatible widget

2011-03-25 Thread Metronome & Basic
As my question got no reply last week ( weekend maybe ) I dare to post it 
once more ?!


---


The question may be trivial but..

What makes a Widget compatible with Editors

I tried to make a Wiget  that is a modified ( expended ) LisBox
with  setText and getText method , thinking they could be used by the Editor
to set and the String

but it dosn't work

what 's missing ?

Patrick

===
The "code"
===
public class Lb extends ListBox {


   List tks = Arrays.asList("X","Z","N","M","D");


   public Lb () {

   for (String s : tks) {

   addItem(s);

   }

   }


   public void setText (String tk) {

   for (Integer x = 0 ; x < tks.size(); x++) {

   if (tks.get(x).equals(tk)) {

   setSelectedIndex(x);

   break;

   }

   }

   }

   public String getText() {

   return getItemText(getSelectedIndex());

   }

}



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