Re: Preventing browser tabs

2010-08-17 Thread Dor
Hi Jeff,

First of all thanks for your answer,
Second,

A. I am not using gwt for login process but PHP one.
B. Agreed and being used.
C. Since i don't have maximum session time (do have that when my
application is idle) i can't use this kind of solution.
D. Storing ip may resolve in other problems like: User came and login,
i stored his ip, suddenly his browser crashed, he opens it again: it
may contain the same session id or not but it surely contains his same
ip.
 He will try to connect and i will block him. So he will have to
wait for my session time out server side definition to expire before
he will be able to login again. This solution is kind of risky in a
business manners.
 E. Delete his volatile in logout is good, but if he crashed that
won't work and may lead to other edge cases i am not aware now.


It's clear that solution should be done on server side.

Any other solutions or ideas ?

Regards,
Dor

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



Re: EclEmma + GwtTestCase + GwtGenerator exception

2010-08-17 Thread Qi Zhang
I have resolved the problem after I debugged into GWT code.  I am using GXT
to build my Web Interface, but that GXT libraries was built with an old
version of GWT, so some method signature could not be matched by GWT
CompileClassLoader. After I upgraded my GXT libraries, the problem
disappeared.

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



eCommerce Shopping Cart With GWT

2010-08-17 Thread Daniel Simons
I'm am in the planning phase of developing a shopping cart application using
GWT for the front-end.  So far I have looked at integrating with a couple
eCommerce solutions (ie, konakart and softslate).  Does anyone have any
advice on eCommerce Solutions?  Are there any solutions out there that would
work better with GWT?

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



Storing Session ID in cookie, and then what?

2010-08-17 Thread spierce7
Hey,

I'm currently making a site that has my own logins that I'm making (I
know Google provides something, but I need my own login system), and
I've been trying to figure out sessions for quite a while now. I've
found a few tutorials, and one of the sites that I was reading is
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ

There is a section there on "How to Remember Logins". I know how to
get the session ID and store it on the client in a cookie through an
RPC call. What I don't understand is, eventually after a day or so,
the user comes back and I'm supposed to get the session ID from the
cookie and send it back to the server. What am I supposed to do on the
server in order to securely evaluate if session ID is still legal, and
pull up all the necessary information about the user?

Additional questions:
1. What would make the session ID change?
2. What if the user was on a laptop, and the user went somewhere else.
Would he still be able to be securely logged back in without having to
type in his login and password again?

Thanks!

~Scott

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



Re: EclEmma + GwtTestCase + GwtGenerator exception

2010-08-17 Thread Gal Dolber
Finally someone :)

2010/8/16 Island 

> I am facing the same problem when I try to collect the code coverage
> data, and here is the stack trace:
>
> 21:10:59.578 [ERROR] [splat] Failed to create an instance of
> 'com.splat.client.SplatService' via deferred binding
> com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
> during visit.
>at
> com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:
> 462)
>at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
> 448)
>at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
> 421)
>at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
>at
>
> com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
> 801)
>at com.google.gwt.dev.js.ast.JsVars$JsVar.traverse(JsVars.java:56)
>at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
> 446)
>at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
> 421)
>at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
>at
>
> com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
> 814)
>at com.google.gwt.dev.js.ast.JsVars.traverse(JsVars.java:89)
>at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
> 446)
>at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
> 421)
>at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
>at
>
> com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:
> 873)
>at
>
> com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:
> 48)
>at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
>at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
> 446)
>at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
> 421)
>at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
>at
> com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:
> 253)
>at
> com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:
> 240)
>at
>
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:
> 46)
>at
>
> com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:
> 1214)
>at
>
> com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
> 1039)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>at
> com.splat.client.SplatService_Proxy.(SplatService_Proxy.java:
> 14)
>at java.lang.Class.forName0(Native Method)
>at java.lang.Class.forName(Class.java:247)
>at
>
> com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
> 580)
>at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 415)
>at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
>at com.google.gwt.core.client.GWT.create(GWT.java:98)
>at com.splat.client.SplatGxt.onModuleLoad(SplatGxt.java:97)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 369)
>at
>
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 185)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 380)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 222)
>at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException: null
>at com.google.gwt.dev.shell.CompilingClassLoader
>
> $MyInstanceMethodOracle.findOriginalDeclaringClass(CompilingClassLoader.java:
> 409)
>at com.google.gwt.dev.shell.rewrite.RewriteRefsToJsoClasses
> $MyMethodAdapter.visitMethodInsn(RewriteRefsToJsoClasses.java:83)
>at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:
> 1371)
>at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
>at
>
> com.google.gwt.dev.shell.rewrite.HostedModeClassRewriter.rewrite(HostedModeClassRewriter.java:
> 244)
>at
>
> com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes(CompilingClassLoader.java:
> 1157)
>at
>
> com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
> 985)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>at java.lang.Class.forName0(Native Method)
>at java.lang.Class.forName(Class.java:247)
>at com.google.gwt.dev.shell.CompilingClassLoader
> $DispatchClassInfoO

Re: plans for ARIA in GWT

2010-08-17 Thread Jim Douglas
My guess is the GWT team is fairly small, and not many people are
screaming for full ARIA support.

If this was a critical feature to me, I'd probably start by reviewing
the open issues for ARIA or ACCESSIBILITY:

http://code.google.com/p/google-web-toolkit/issues/list?q=ARIA
http://code.google.com/p/google-web-toolkit/issues/detail?id=4756

...then vote for the ones you care about, enter new bug reports for
problems you've noticed that don't seem to be covered already, and (if
you're in a position to work on this), consider fixing issues that
concern you and submitting them to the GWT team.

http://code.google.com/webtoolkit/makinggwtbetter.html

On Aug 17, 2:15 pm, Thad  wrote:
> I'm disappointed with what I see, or rather DON'T see, in GWT 2.1.0M2
> regarding ARIA support.  Granted the ARIA specification is moving very
> fast, but there are many simple things that seem like no-brainers:
> Why doesn't UIObject.setVisible() set the aria-hidden state? Why
> doesn't FocusWidget.setEnabled() set the aria-disabled state?  Why
> doesn't CheckBox.setValue() set the aria-checked state?  Are these
> settings honestly not needed by common assistive technologies?
>
> What's being done?

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



Re: Reusing GWT Localization in Server Side Code

2010-08-17 Thread Joe Cole
Because we don't want to have different code for different places.

E.g.

String text = GWT.create(MyMessages.class).myText();

This code fails if you run it on the server side.

What we want is something like Messages.get().myText() which runs on
both the client, server and test cases, but uses the appropriate
method of getting the messages, e.g. GWT.create, a Proxy or
ResourceBundle or whatever.

Unless I'm missing something?

Joe

On Aug 18, 1:22 am, KenJi_getpowered  wrote:
> Why can't you just use resource bundle to get messages?
>
> On 17 août, 10:49, Joe Cole  wrote:
>
>
>
> > What we do is use this code pattern:
>
> > public interface IMessages {
> >    public MyMessages get(); // your messages interface}
>
> > public class Messages {
> >    private static IMessages messages;
> >    public static MyMessages get() { return messages.get(); }
> >    public static void set(IMessages messages) //etc
>
> > }
>
> > Then in our server side initialisation we use:
>
> > ServerMessages implements IMessages {
> >     public MyMessages get(){
> >                 // note, basically pseudocode
> >                 Properties properties = new Properties();
> >                 InputStream in = // find yours
> >                 properties.load(in);
> >                 return (MyMessages)
> > Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]
> > { MyMessages.class },
> >                                 new GWTMessageProxy(properties));
> >     }
>
> > }
>
> > public class GWTMessageProxy implements InvocationHandler {
>
> >         private final Properties properties;
>
> >         public GWTMessageProxy(Properties properties) {
> >                 super();
> >                 this.properties = properties;
> >         }
>
> >         public Object invoke(Object proxy, Method method, Object[] args)
> > throws Throwable {
> >                 String property = 
> > String.valueOf(properties.get(method.getName()));
> >                 if (args != null && args.length > 0) {
> >                         // we have a messages class...
> >                         return MessageFormat.format(property, args);
> >                 }
> >                 return property;
> >         }
>
> > }
>
> > When you initialize your client side system, simply initialize your
> > messages with a client-side-only version that uses gwt localization.
> > Similarly, your tests probably need a different setup method, so just
> > initialise a custom class for that as well. It's kind of like manual
> > guice, but it doesn't have to be done that often so isn't a big deal.
>
> > This pattern works for everything, so we use it for NumberFormats &
> > DateFormatting and all sorts of other code that need to be shared
> > between client, server, tests etc.
>
> > If anyone has any better ideas please sing out!
>
> > Joe
> > On Aug 17, 7:20 am, Casey  wrote:
>
> > > Does anyone know if with Google Web Toolkit there is an easy way to
> > > reuse your client size localization files (constants and messages) in
> > > the server side code? I think in GWT 1.6 or 1.8 you could actually
> > > call the same GWT localization code on the server side that you called
> > > on the client side. I just upgraded from 1.6 to 2.0 and all of a
> > > sudden I'm receiving the following message: ERROR: GWT.create() is
> > > only usable in client code! That makes sense to me but there must be
> > > an easy way to reuse your Constant and Message files on the server.
> > > It's been awhile since I've opened this project but I'm pretty sure
> > > that this was working before. 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to send data back to client side code?

2010-08-17 Thread lineman78
Yeah, I ran into this issue a year ago when I was working with GAE +
GWT-RPC.  The client side object cannot have references to any code
not associated with a GWT module, so there are a few options for you
here.

1) create a translator and maintain 2 versions of the class; 1 for the
client(without annotations) and 1 for the server(with annotations)
2) use Java serialization to make a deep copy with 2 versions of the
class like specified above (serializeable uuids must be equal).
3) write a utility that uses reflection to translate between the
objects above
4) use some sort of 3rd party library that allows for persistence and
serialization.

There are more options that I haven't listed here, but these are a few
to start.

On Aug 17, 12:55 pm, Jeff Schnitzer  wrote:
> This is a major PITA with GAE+JPA.  You'll likely also need to detach
> your entities from the JPA session, which AFAIK is impossible with the
> JPA interface - only with the JDO interface.
>
> My advice is throw out JPA and use Objectify.  You can use your
> entities in GWT as-is (assuming they are client-safe), even if they
> reference Key or GeoPt or other datastore classes.  Objectify provides
> GWT emulation for all those classes:
>
> http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT
>
> (I'm the lead developer of Objectify, and I use it with GWT in my
> applications every day)
>
> http://code.google.com/p/objectify-appengine/
>
> Jeff
>
> On Sat, Aug 14, 2010 at 2:26 AM, cokol  wrote:
> > again - you shall not have any references inside your translatable
> > classes to classes from 3rd party! translatable classes are those to
> > be compiled to javascript and which reside in client and shared
> > packages. 3rd party classes are those where you dont have sourcecode
> > from.
>
> > consider your Employee just to be a bean or container without any
> > logic just with a purpose to carry payload data. so design the class
> > NOT to use any classes from appengine like Key, BlobKey etc
>
> > On 14 Aug., 07:05, "Sree ..."  wrote:
> >> Modified the Employee.java as below
>
> >> *public class Employee implements IsSerializable{*
>
> >> then moved the Employee.java to shared package. [eclipse updated all
> >> references well]
> >> Now when I GWT to compile its saying
>
> >> Compiling module project.xxx
> >>    Validating newly compiled units
> >>       [ERROR] Errors in 'file:/C:/xxx/src/xxx/shared/Employee.java'
> >>          [ERROR] Line 10: The import com.google.appengine cannot be 
> >> resolved
> >>          [ERROR] Line 11: The import com.google.appengine cannot be 
> >> resolved
> >>          [ERROR] Line 19: Key cannot be resolved to a type
> >>          [ERROR] Line 101: BlobKey cannot be resolved to a type
> >>          [ERROR] Line 141: Key cannot be resolved to a type
> >>          [ERROR] Line 189: Key cannot be resolved to a type
> >>          [ERROR] Line 190: Key cannot be resolved to a type
> >>          [ERROR] Line 305: Key cannot be resolved to a type
> >>          [ERROR] Line 306: Key cannot be resolved to a type
> >>          [ERROR] Line 424: BlobKey cannot be resolved to a type
> >>          [ERROR] Line 425: BlobKey cannot be resolved to a type
> >>          [ERROR] Line 431: BlobKey cannot be resolved to a type
> >>          [ERROR] Line 432: BlobKey cannot be resolved to a type
> >>    Finding entry point classes
> >>       [ERROR] Unable to find type 'xxx.client.Example'
> >>          [ERROR] Hint: Previous compiler errors may have made this type
> >> unavailable
> >>          [ERROR] Hint: Check the inheritance chain from your module; it may
> >> not be inheriting a required module or a module may not be adding its 
> >> source
> >> path entries properly
> >> Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
>
> >> Why appengine import statements are not working! Again they should be only
> >> in server folder?
>
> >> On Sat, Aug 14, 2010 at 6:17 AM, Sree ...  wrote:
> >> > okey... thanks alot guys
> >> > i ll try to make those changes and will update here
>
> >> > also thx for so quick responses.. am loving it
>
> >> > On Sat, Aug 14, 2010 at 2:31 AM, cokol  wrote:
>
> >> >> hi the problem is that gwt does not have source of your Employee
> >> >> class, since you have put it into the server package, you always have
> >> >> 3 packages to handle (as per default):
>
> >> >> client
> >> >> server
> >> >> shared
>
> >> >> everything under "client" becomes javascript after compilation and is
> >> >> not aware of anything contained in "server" package, everything
> >> >> contained in server package is intended to run in java VM and remains
> >> >> java, here you may have references to classes used in client package
> >> >> if you like, this would not break up gwt. the shared package contains
> >> >> everything what is required for client and server package, like the
> >> >> service interfaces AND transfer objects & payload classes like your
> >> >> Employee. furthermore everything whats inside client and sha

Flash Objects being Garbage collected in tablayoutpanel?

2010-08-17 Thread Patrick Tucker
On my page I have a TabLayoutPanel that has a few widgets in it, one
of which is a flex/flash object.

When I load the page in Firefox or Chrome and switch to the tab
containing the flex/flash object everything loads as expected.  The
problem arises when you switch to a different tab and then switch back
to the tab containing the flex/flash object, the object has
disappeared (Garbage Collected I'm assuming?) and is being reloaded.
This is not good because the User loses all of the information that
was entered into the object before switching the tab.

This does not happen in IE.

Has anyone ran across this and been able to solve this problem?

Thanks,
Pat

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



plans for ARIA in GWT

2010-08-17 Thread Thad
I'm disappointed with what I see, or rather DON'T see, in GWT 2.1.0M2
regarding ARIA support.  Granted the ARIA specification is moving very
fast, but there are many simple things that seem like no-brainers:
Why doesn't UIObject.setVisible() set the aria-hidden state? Why
doesn't FocusWidget.setEnabled() set the aria-disabled state?  Why
doesn't CheckBox.setValue() set the aria-checked state?  Are these
settings honestly not needed by common assistive technologies?

What's being done?

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



Re: NumberFormat on integer

2010-08-17 Thread Patrick Tucker
Me too but I wanted to make sure it wasn't already part of GWT before
submitting a request.

Thanks,
Pat

On Jul 7, 1:59 pm, Isaac Truett  wrote:
> I know that patches are always
> welcome
> .
>
>
>
> On Wed, Jul 7, 2010 at 1:36 PM, Patrick Tucker  wrote:
> > Nobody knows??
>
> > On Jun 23, 10:28 am, Patrick Tucker  wrote:
> > > Why does GWT not have a getIntegerInstance() in NumberFormat??
>
> > > It seems simple enough to implement and it is part of java...
>
> > > Is it implemented somewhere else?
>
> > > Thanks,
> > > Pat
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text -
>
> - Show quoted text -

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



Re: Making GWT look good...

2010-08-17 Thread ChrLipp
I would also like to point you to
http://jqueryui.com/themeroller/
Choose "Gallery" on the left.

For mobile Clients there is an equivalent site on http://jquerymobile.com/

Regards, CL

On 16 Aug., 13:08, ChrLipp  wrote:
> I appreciate the direction theGWTteam is heading.
>
> I also would like to see increased support for mobile clients onGWT
> too with "native" controls (HTML5) for the major plattforms (android,
> iPhone, ..)
>
> Samples could be found under
> -http://jquerymobile.com/designs/
> -http://www.sencha.com/products/touch/design.php
> -http://www.phonegap.com/apps
> -http://www.appcelerator.com/products/titanium-mobile-application-deve...
>
> HTML5 Development kits are developed everywhere, programming needs in
> JavaScript is increasing, I would like to stick toGWTand also being
> able to develop HTML5 mobile apps.
>
> Kind regards, CL
>
> On 6 Aug., 14:44, Chris Ramsdale  wrote:
>
> > HeyGWT(ers),
>
> > I've heard from many of you thatGWTapps simply don't look that good out of
> > the box, and styling the default app would go a long way. We couldn't agree
> > more. As some of you know,GWT2.1 (with the help of Spring Roo 1.1) will
> > generate a full-fledged scaffolding app that users can then go customize,
> > and build on top of. The current incarnation looks like this:
>
> >http://gwt-bikeshed.appspot.com/Scaffold.html
>
> > And while it's a start, it's long from being...well...good looking. I'm
> > working with some UI/UX people back at Google, but in the spirit of openness
> > I wanted to get feedback from the real users -- you. Specifically we're
> > looking for "business" apps that are a good example of UI and/or UX. Apps
> > that allow you to track tasks, expenses, travel, projects, etc.
>
> > If you have ideas, simply post a link in a follow-up to this thread.
>
> > Cheers,
> > -- Chris

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



Re: GWT and indexing

2010-08-17 Thread Katharina Probst
Hi Artem,

yes, the documentation you have found is indeed the latest.  This is
implemented and live in the Google crawler.  Currently, no other crawlers we
know of support this scheme, although we hope that this will change.

Hope this helps.

kathrin

On Tue, Aug 17, 2010 at 11:54 AM, Artem  wrote:

> There were a lot of topics about crawlable GWT application and ways to
> make them crawlable
>
> Maybe somebody could share information about last changes on this
> topic? Maybe some new information came?
>
> I found last updates on
> Making AJAX Applications Crawlable
> http://code.google.com/web/ajaxcrawling/index.html
>
> Described approach are doable (by require some additional coding to be
> made (( )... Does anybody know if this is a common standard or only
> GoogleBot supports it? Does other crawlers follow the same rules? Or
> maybe this is not the last information and some other approach now
> should be used?
>
> Best regards!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: How to send data back to client side code?

2010-08-17 Thread Jeff Schnitzer
This is a major PITA with GAE+JPA.  You'll likely also need to detach
your entities from the JPA session, which AFAIK is impossible with the
JPA interface - only with the JDO interface.

My advice is throw out JPA and use Objectify.  You can use your
entities in GWT as-is (assuming they are client-safe), even if they
reference Key or GeoPt or other datastore classes.  Objectify provides
GWT emulation for all those classes:

http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT

(I'm the lead developer of Objectify, and I use it with GWT in my
applications every day)

http://code.google.com/p/objectify-appengine/

Jeff

On Sat, Aug 14, 2010 at 2:26 AM, cokol  wrote:
> again - you shall not have any references inside your translatable
> classes to classes from 3rd party! translatable classes are those to
> be compiled to javascript and which reside in client and shared
> packages. 3rd party classes are those where you dont have sourcecode
> from.
>
> consider your Employee just to be a bean or container without any
> logic just with a purpose to carry payload data. so design the class
> NOT to use any classes from appengine like Key, BlobKey etc
>
> On 14 Aug., 07:05, "Sree ..."  wrote:
>> Modified the Employee.java as below
>>
>> *public class Employee implements IsSerializable{*
>>
>> then moved the Employee.java to shared package. [eclipse updated all
>> references well]
>> Now when I GWT to compile its saying
>>
>> Compiling module project.xxx
>>    Validating newly compiled units
>>       [ERROR] Errors in 'file:/C:/xxx/src/xxx/shared/Employee.java'
>>          [ERROR] Line 10: The import com.google.appengine cannot be resolved
>>          [ERROR] Line 11: The import com.google.appengine cannot be resolved
>>          [ERROR] Line 19: Key cannot be resolved to a type
>>          [ERROR] Line 101: BlobKey cannot be resolved to a type
>>          [ERROR] Line 141: Key cannot be resolved to a type
>>          [ERROR] Line 189: Key cannot be resolved to a type
>>          [ERROR] Line 190: Key cannot be resolved to a type
>>          [ERROR] Line 305: Key cannot be resolved to a type
>>          [ERROR] Line 306: Key cannot be resolved to a type
>>          [ERROR] Line 424: BlobKey cannot be resolved to a type
>>          [ERROR] Line 425: BlobKey cannot be resolved to a type
>>          [ERROR] Line 431: BlobKey cannot be resolved to a type
>>          [ERROR] Line 432: BlobKey cannot be resolved to a type
>>    Finding entry point classes
>>       [ERROR] Unable to find type 'xxx.client.Example'
>>          [ERROR] Hint: Previous compiler errors may have made this type
>> unavailable
>>          [ERROR] Hint: Check the inheritance chain from your module; it may
>> not be inheriting a required module or a module may not be adding its source
>> path entries properly
>> Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
>>
>> Why appengine import statements are not working! Again they should be only
>> in server folder?
>>
>>
>>
>>
>>
>> On Sat, Aug 14, 2010 at 6:17 AM, Sree ...  wrote:
>> > okey... thanks alot guys
>> > i ll try to make those changes and will update here
>>
>> > also thx for so quick responses.. am loving it
>>
>> > On Sat, Aug 14, 2010 at 2:31 AM, cokol  wrote:
>>
>> >> hi the problem is that gwt does not have source of your Employee
>> >> class, since you have put it into the server package, you always have
>> >> 3 packages to handle (as per default):
>>
>> >> client
>> >> server
>> >> shared
>>
>> >> everything under "client" becomes javascript after compilation and is
>> >> not aware of anything contained in "server" package, everything
>> >> contained in server package is intended to run in java VM and remains
>> >> java, here you may have references to classes used in client package
>> >> if you like, this would not break up gwt. the shared package contains
>> >> everything what is required for client and server package, like the
>> >> service interfaces AND transfer objects & payload classes like your
>> >> Employee. furthermore everything whats inside client and shared
>> >> package has to be translatable to javascript, i.e. you shall not use
>> >> 3rd party libraries in there.
>>
>> >> so just move the Employee and all related (payload) classes to the
>> >> shared (or client) package and you are done
>>
>> >> On 13 Aug., 19:39, "Sree ..."  wrote:
>> >> > Am not sure this belongs to GWT or GAE or both ...
>>
>> >> > So here's my problem...
>>
>> >> > I have one client/Example.java [contains all GWT code] calls a methods
>> >> on
>> >> > server/SomeServiceImpl.java [Contains code to talk to dataStore]
>>
>> >> > Wat server/SomeServiceImpl.java does is Featch data from Employee.Java
>> >> >   [this is class used to store data in datastore JPA]
>>
>> >> > So now my problem is.. as long as I send data in the form of String or
>> >> > StringArray to client/Example.java am fine, but now I tried to send
>> >> > List to client/Example.java
>>
>> >> > Doing so throws me an 

Re: 2.1 Documentation

2010-08-17 Thread marius.andreiana
Adding to Thomas' notes:
MVP articles here http://code.google.com/webtoolkit/articles.html
(concepts, not really 2.1 implementation)


On Aug 17, 6:40 pm, Thomas Broyer  wrote:
> On 16 août, 03:58, Bayard Randel  wrote:
>
> > Hi there,
>
> > Is there any preliminary documentation around the new features in 2.1,
> > particularly the MVP implementation? I'm going to be starting a large
> > GWT project shortly, but am somewhat hesitant to get started knowing
> > that official support for MVP is forthcoming.
>
> Seehttps://wave.google.com/wave/waveref/googlewave.com/w+eva-sERfA
>
> There are other waves that could interest you, about Cell widgets,
> Validation, RequestFactory, etc.
> Seehttps://wave.google.com/wave/waveref/googlewave.com/w+A-PZdxsLNas
> a starting point
> And the JavaDoc is 
> here:http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html

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



Re: why we probably won't use GWT for a large UI project

2010-08-17 Thread lineman78
Frank,
First of all, this thread seems to have 2 different topics and I have
not said anything about Vaadin as I have no experience with it and
that seems to be what Joonas is referring to.  Second of all, my
problem is that you call them "GWT enterprise architects".  When you
break it down it is Java EE with a Javascript client and people think
GWT is going to provide an end-to-end solution.  GWT dead code
elimination is an important capability which Ray Cromwell has
emphasized with GWTQuery in some of his old Google I/O talks and I
only point it out because I see it as the leading disadvantage to
SmartGWT in particular.  I am a Java EE developer who advocates GWT as
the client framework.  So as far as a SOA goes, yes I believe I know
more than the average GWT developer.  The problem is that too many
people on this group think of GWT as only a complete framework as is
the result of the GAE integration, but when it comes down to it all
GWT provides is a JS cross-compiler for the client with a custom
communications protocol built on REST.  You need to realize that not
everyone uses GAE and some of us must provide interfaces or integrate
with other technologies.  The problem that Marius has run into is that
he is writing a client to integrate with a .net REST server, therefore
the arguments about GWT-RPC were moot, which is all I was trying to
point out as far as why people might choose REST over GWT-RPC as I
often have to expose my services to .net clients.  And if you disagree
with me with my statements that overlay types is the fastest and most
efficient way to deal with a JSON REST service or that GWT as it is
right now is not a full UI library, but is heading that way let's here
some arguments against it.  It doesn't help with discussion by just
coming in and saying you guys are stupid and everything said here is
wrong, tell us what you think is wrong and why so we can have a
healthy discussion about it.

On Aug 16, 11:40 am, Frank Argueta  wrote:
> Joonas,
> This thread cannot be taken seriously and has some terrible advise. It's
> like the blind leading the blind. Stefan and lineman78 in particular. I miss
> the days that Rienier would lash out when people spread misinformation or
> gave incorrect advise on this group. Alteast it kept the quality of the
> responses high but right now this forum is running wild and everyone who has
> read about GWT dead code elimination thinks they are GWT enterprise
> architects.
>
> -Frank
>
> On Mon, Aug 16, 2010 at 10:23 AM, Joonas  wrote:
> > Please do not judge by the Calc example - it is just a minimalistic
> > "Hello World" type example for quickly showing how events are managed
> > in Vaadin. Of course one should do such a trivial application (with no
> > server-side needed at all and just a few lines of business logic) in
> > just JavaScript - there is no need for any frameworks at all.
>
> > For a more sophisticated analysis on communications, please read
>
> >http://philipp-baerfuss-magnolia.blogspot.com/2010/08/why-vaadin-line...
> > In this article Magnolia team has estimated that real world
> > application can expect comparable number of ajax roundtrips both in
> > GWT as in Vaadin. (Most of the data have to go back to server in any
> > case).
>
> > On Aug 15, 8:26 pm, Stefan Bachert  wrote:
> > > Hi,
>
> > > I would avoid vaadin. Agreed that vaadin looks good out of the box,
> > > vaadin falls back into the poor old fat-client architecture.
> > > GWT supports a real responsive client-server architecture but vaadin
> > > uses GWT like a display server.
>
> > > You can test the difference using the samplehttp://demo.vaadin.com/Calc
>
> > > Click a number and it tooks 300ms until the calc will display it.
> > > This latency is a direct consequence of choosing the poor old
> > > architecture.
>
> > > Stefan Bacherthttp://gwtworld.de
>
> > > On 10 Aug., 09:02, Nathan Wells  wrote:
>
> > > > I would look into vaadin. We just looked at it recently, and I think
> > > > it's a good alternative to straight GWT, but we can't switch because
> > > > it's a pretty significant change.
>
> > > > On Aug 10, 5:23 am, Shawn Brown  wrote:
>
> > > > > > I'm looking to get this group's feedback before I present my
> > findings
> > > > > > to the team. What do you think?
>
> > > > > If open source is nice then go for gpl and ExtGWT (GXT).  If you
> > don't
> > > > > pay the commercial fee, then you have to open source your project I
> > > > > believe.
>
> > > > > Shawn
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
T

How to implement pagination using GWT 2.1 M2 SimplePager?

2010-08-17 Thread Ingo Jaeckel
hello everyone,

i am using the second milestone of gwt 2.1 mostly because of the new
list view related classes (e.g. ListViewAdapter, SimplePager,
PagingListView, SingleSelectionModel, etc.). based on these new
classes i implemented my own ListView class. i retrieve a couple of
dto objects from the server side and insert them into the list view
using ListViewAdapter.setList and CellTable.setDataSize. i also found
the following example that shows pagination should work like charm in
gwt 2.1 m2: see http://gwt-bikeshed.appspot.com/Scaffold.html and
source here http://google-web-toolkit.googlecode.com/svn/trunk/bikeshed/

unfortunately, in my own ListView class that is using all the new gwt
classes the pagination does not work at all (see code here lines
293-324 of 
http://code.google.com/p/honeycrm/source/browse/branches/honeycrm_r134_gwt2.1m2/src/honeycrm/client/view/ListView.java).
the values are not inserted into the listview and the item count (page
count) is not properly updated (or set at all). everytime the pager
receives a onRangeOrSizeChanged event I call refreshPage(newPage) if
the page number really has changed. this does an RPC call retrieving
the values from the server and inserting them by calling
refreshListViewValues(). this is how it looks like:

protected void initListView() {
pager = new SimplePager(ct = new CellTable(), 
TextLocation.CENTER) {
@Override
public void onRangeOrSizeChanged(final 
PagingListView listView) {
super.onRangeOrSizeChanged(listView);

/**
 * only do something if items have already been 
loaded
 */
if (itemsHaveBeenLoadedOnce) {
final int newPage = 1 + 
listView.getPageStart() / listView.getPageSize();
final boolean changedPage = newPage != 
currentPage;

if (changedPage) {
refreshPage(newPage); // this 
does a RPC calling
refreshListViewValues on sucess
}
}
};
};

}

protected void refreshListViewValues(ListQueryResult result) {
if (!itemsHaveBeenLoadedOnce) {
initListView();
itemsHaveBeenLoadedOnce = true;
}

ArrayList values = new ArrayList();
for (final Dto dto : result.getResults()) {
values.add(dto);
}

ct.setDataSize(result.getItemCount(), true); // ct is the cell 
table instance

// give the ListViewAdapter our data
lva.setList(values);
lva.refresh();
}

does anyone have a very simple working example explaining the
principle? i do not really understand the bikeshed code. i "learned"
the use of the new API from here
http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-presentation-widgets.
currently i do not understand how to put all those new classes
together in a small, concise and working example.

kind regards,
ingo

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



Re: HTML in TextArea

2010-08-17 Thread lineman78
You might have to do some DOM tricks to lock RichTextArea, but it
should be possible. Such as adding a focus listener and canceling the
event or finding the inner text area object and disabling it.

On Aug 17, 5:13 am, steenstrup  wrote:
> My problem, is that i like to display html in a textArea that can get
> lock, so it can't be edit.
>
> TextArea have the ability to be lock, but can't handel html
> RichTextArea can't lock, but can handel html

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



Re: Generate Random String

2010-08-17 Thread lineman78
In Java you could also use the UUID class, but doubt its ported into
GWT.  Also, simply using the long value of time is also effective
assuming that there is no chance of ever generating 2 at the exact
same time(i.e. result of a user action): Long.toString(new
Date().getTime());

On Aug 17, 7:35 am, spierce7  wrote:
> AH! I didn't think to search just java! Stupid me. Thanks so much.
>
> On Aug 17, 12:49 am, Jim Douglas  wrote:
>
> > I did this google search:
>
> >http://www.google.com/search?q=java+generate+random+alphanumeric+string
>
> > That returns more suggestions that you could possibly need; take your
> > pick.  The first link returned from that search has several
> > suggestions:
>
> >http://stackoverflow.com/questions/41107/how-to-generate-a-random-alp...
>
> > On Aug 16, 9:05 pm, spierce7  wrote:
>
> > > What would be the best way to generate a random string in GWT with no
> > > slashes (/ or \), preferably just capitol letters and numbers. How
> > > would I do this? I'm surprised I can't turn up any information in
> > > searches. I'm looking to do this Server Side, meaning in java, rather
> > > than javascript. Thanks!
>
> > > ~Scott

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



GWT and indexing

2010-08-17 Thread Artem
There were a lot of topics about crawlable GWT application and ways to
make them crawlable

Maybe somebody could share information about last changes on this
topic? Maybe some new information came?

I found last updates on
Making AJAX Applications Crawlable
http://code.google.com/web/ajaxcrawling/index.html

Described approach are doable (by require some additional coding to be
made (( )... Does anybody know if this is a common standard or only
GoogleBot supports it? Does other crawlers follow the same rules? Or
maybe this is not the last information and some other approach now
should be used?

Best regards!

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



Re: ResourceBundle with CSS and obfuscation

2010-08-17 Thread Thomas Broyer


On 15 août, 04:40, Fratelli  wrote:
> Hello,
>
> I'm using CssResource::ensureInjected() to inline my styles into the
> host page.
>
> So the thing is: everything worked just fine until I started
> redefining some GWT style classes (ie, gwt-TabBarItem). The changes
> didn't apply because the names are being obfuscated in the host page,
> but the predefined GWT widgets use the unobfuscated names. So I did
> some reading, and thought that @external would do the trick. Say:
>
>     @ClassName("gwt-TabBarItem")
>     public String tabBarItem();
>
> But it doesn't. Now it tells me that it failed to resolve the
> ClientBundle (CssBundle, in this case).
>
> What should I do?

@external *should* work (I mean, it works in my code, in several
projects) but maybe your method confuses the generator (or you made a
mistake in your CSS file).

Why aren't you using a constant in your code for such cases?

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



Re: Textarea count

2010-08-17 Thread Thomas Broyer

On 17 août, 11:01, megala dhinakaran 
wrote:
> I am looking into a solution where when you type text into the
> TextArea it should notify the user how many characters are left to
> enter. Like you can only enter 200 or something.

Something like listening to KeyUp events and getting the TextArea's
getText().length() to update some other widget's content (such as a
Label) ?

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



Re: 2.1 Documentation

2010-08-17 Thread Thomas Broyer


On 16 août, 03:58, Bayard Randel  wrote:
> Hi there,
>
> Is there any preliminary documentation around the new features in 2.1,
> particularly the MVP implementation? I'm going to be starting a large
> GWT project shortly, but am somewhat hesitant to get started knowing
> that official support for MVP is forthcoming.

See https://wave.google.com/wave/waveref/googlewave.com/w+eva-sERfA

There are other waves that could interest you, about Cell widgets,
Validation, RequestFactory, etc.
See https://wave.google.com/wave/waveref/googlewave.com/w+A-PZdxsLN as
a starting point
And the JavaDoc is here: 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html

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



Re: Setting "/" in history token using encodeComponent

2010-08-17 Thread Andrei Cosmin Fifiiţă
Well, this is just stupid... this means i cannot encode http:// in my url ?
well, GMAIL can, so what;s the deal ? i don;t think this is a bug it seams
like am amateur's mistake.


On 17 August 2010 18:31, Thomas Broyer  wrote:

>
> On 17 août, 17:07, Ice13ill  wrote:
> > I'm trying to set a text in history token containing the "/" character
> > but i want to encode it before setting the token
> > For exameple : "2/12/a" to become "2%2F12%2Fa"
> > the problem is that GWT also converts automatically % in %25. thus
> > History.newItem(URL.encodeComponent(text)) does not set the correct
> > text.
> > so how do i set in the history item the text "%2F" ?
>
> You just cannot, at least using the stock History class in its current
> state (but you could re-implement –copy/paste– on your own to overcome
> this "limitation").
> I guess this is because some browsers would give you the same thing
> for both "/" and "%2F"; or maybe just that History is actually
> "broken" (or let's rather say there's room for improvement, by
> implementing it differently)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: No tag for 2.0.4 in SVN

2010-08-17 Thread Thomas Broyer


On 17 août, 16:28, Karel Piwko  wrote:
> If I had something like gwt-2.0.4-src.zip, that would be true.
>
> However, I haven't found any package like this, only gwt-2.0.4.zip is
> available for download, with binaries only. The only sources I've found
> are sources classifier archetypes in Maven repository, but they do not
> preserve the SVN directory structure, do not contain tests, etc...

Sources are packaged within the JARs, side-by-side with their compiled
*.class counterparts.
Every class that needs to be "compiled to JavaScript" by GWT *must*
have its source in the classpath, because GWT is a source-to-source
compiler, not a bytecode-to-source. But each and every GWT class comes
with its source, not only those that can be compiled to JS (i.e. used
in your client-side app).

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



Re: Setting "/" in history token using encodeComponent

2010-08-17 Thread Thomas Broyer

On 17 août, 17:07, Ice13ill  wrote:
> I'm trying to set a text in history token containing the "/" character
> but i want to encode it before setting the token
> For exameple : "2/12/a" to become "2%2F12%2Fa"
> the problem is that GWT also converts automatically % in %25. thus
> History.newItem(URL.encodeComponent(text)) does not set the correct
> text.
> so how do i set in the history item the text "%2F" ?

You just cannot, at least using the stock History class in its current
state (but you could re-implement –copy/paste– on your own to overcome
this "limitation").
I guess this is because some browsers would give you the same thing
for both "/" and "%2F"; or maybe just that History is actually
"broken" (or let's rather say there's room for improvement, by
implementing it differently)

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



Setting "/" in history token using encodeComponent

2010-08-17 Thread Ice13ill
I'm trying to set a text in history token containing the "/" character
but i want to encode it before setting the token
For exameple : "2/12/a" to become "2%2F12%2Fa"
the problem is that GWT also converts automatically % in %25. thus
History.newItem(URL.encodeComponent(text)) does not set the correct
text.
so how do i set in the history item the text "%2F" ?

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



Re: GWT Maven Plugin + codeServerPort

2010-08-17 Thread Thalles
That did the trick! It's a hack, but it works fine for me.
Thank you very much for your answer!

Bye Henry

On Aug 16, 4:21 pm, Hilco Wijbenga  wrote:
> On 16 August 2010 09:00, Thalles  wrote:
>
> > Does nobody have an answer?
>
> Try putting it in the logLevel field:
>
> 
> org.codehaus.mojo
> gwt-maven-plugin
> 
> INFO' -codeServerPort -logLevel 'INFO
> 
> 
> 
>
> This is a hack, of course, but that's how I set the bind address. I've
> created a profile that does this because it will break gwt:compile
> otherwise (gwt:compile requires a simple INFO).
>
> P.S. Note the quotes!

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



Re: Problem using Reflection and Casting objects on GAE

2010-08-17 Thread André Moraes
This solution is working in GWT compiled mode or you just tested it in
hosted-mode?

--
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.com/

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



Re: GWT serialization

2010-08-17 Thread Ciarán
Thanks for the reply.

I am quite familiar with XML parsers, I used them in the past. Though
in this situation its not suitable as inherited class most always work
without having to define the added properties in the parsing. I need
to serialize objects into some kind of file, save it and restore it at
a later date.

Thanks again

On Aug 17, 2:21 pm, aditya sanas <007aditya.b...@gmail.com> wrote:
> Hi
>
> The basic requirement for you is to deal with XML file
>
> So we have jxl.jar which provides APIs to interact with tags and elements in
> xml so
>
> using these API's that are generally known as XML parsers that is SAX or DOC
> parsers.
>
> so use by using these parsers you will be able to deal with XML files.
>
> It wont be that difficult for you once you learn how to use these parsers.
>
> You will need external jar file jxl.jar
>
> --
> Aditya
>
>
>
> On Tue, Aug 17, 2010 at 6:00 PM, Ciarán  wrote:
> > Hi, I am currently working on a GWT app that requires me  to
> > serializes an object client side into maybe XML/JSON or anything
> > really. Then save that serialized object as a xml/json/.ser file. Then
> > at a later date read that file and reconstruct my object from it.
>
> > I have been searching for days for an answer to this, used several
> > external library, read tutorials, GWT documentation and I still not
> > closer to a solution. Am I totally missing something here? It was very
> > easy to do this in plan Java, but GWT I just can seem to get it
> > working.
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: RFE: Allow constants defined in classes not residing in a client package to be used

2010-08-17 Thread madein
Why don't you simply put such Constants.java file in the shared or
client package?
It seems to be much simpler solution than yours, isn't it?

br,
Mariusz

On Aug 16, 4:15 pm, Lothar Kimmeringer  wrote:
> Hi,
>
> is it possible to extend the GWT-compiler, that you can use constants
> being defined in classes that aren't client-classes to be used.
>
> In my client classes I often want to use functionalities on the server
> that are configured using magic number (int type, etc.) where a lot
> of constants already exist increasing readability and avoid typos.
>
> At the moment I need to use the numbers instead of the constants
> because I end up with the famous "No source code is available
> for type ...". Maybe the compiler can check if only final static
> primitives are accessed (for a start) and just copy the values of
> these fields to the client-source while compiling and just forget
> about the fact that a class outside the client-package was used.
>
> Best regards
>
> Lothar Kimmeringer

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



Re: No tag for 2.0.4 in SVN

2010-08-17 Thread Karel Piwko
If I had something like gwt-2.0.4-src.zip, that would be true.

However, I haven't found any package like this, only gwt-2.0.4.zip is
available for download, with binaries only. The only sources I've found
are sources classifier archetypes in Maven repository, but they do not
preserve the SVN directory structure, do not contain tests, etc...

I also believe the current state at releases/2.0 should equal tag/2.0.4,
because the next development takes place in 2.1 branches, but I would
like someone to verify that.

Thanks,

Karel

On Tue, 2010-08-17 at 05:47 -0700, Thomas Broyer wrote:
> 
> On 17 août, 12:35, Karel Piwko  wrote:
> > Could somebody from developers verify if it is
> >
> > releases/2.0:r8340
> >
> > or
> >
> > releases/2.0:r8322
> >
> > according to the date when 2.0.4 was released?
> 
> Well, you do have the source and the changes, so you can just compare
> what's in 2.0.4 with what's in each of these revisions, no?
> That being said, I believe 2.0.4 is just the latest change of the
> releases/2.0 branch.
> 


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



Re: Generate Random String

2010-08-17 Thread spierce7
AH! I didn't think to search just java! Stupid me. Thanks so much.

On Aug 17, 12:49 am, Jim Douglas  wrote:
> I did this google search:
>
> http://www.google.com/search?q=java+generate+random+alphanumeric+string
>
> That returns more suggestions that you could possibly need; take your
> pick.  The first link returned from that search has several
> suggestions:
>
> http://stackoverflow.com/questions/41107/how-to-generate-a-random-alp...
>
> On Aug 16, 9:05 pm, spierce7  wrote:
>
> > What would be the best way to generate a random string in GWT with no
> > slashes (/ or \), preferably just capitol letters and numbers. How
> > would I do this? I'm surprised I can't turn up any information in
> > searches. I'm looking to do this Server Side, meaning in java, rather
> > than javascript. Thanks!
>
> > ~Scott

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



Re: 2.1 Documentation

2010-08-17 Thread Christian Goudreau
Then, you can consider using Gwt-Platform, even Gwt MVP support won't be as
complete as what we offer inside Gwt-Platform. Moreover, we don't want to
replace what will be offered inside GWT, we want to gives you the best of
it. Some of the feature bundled inside of the framework: MVP with history
support and CodeSplitting, command pattern, auto generation tools for boiler
plate code (in code review) and more !

You can find more informations:
www.gwtplatform.com

Cheers,

On Sun, Aug 15, 2010 at 9:58 PM, Bayard Randel wrote:

> Hi there,
>
> Is there any preliminary documentation around the new features in 2.1,
> particularly the MVP implementation? I'm going to be starting a large
> GWT project shortly, but am somewhat hesitant to get started knowing
> that official support for MVP is forthcoming.
>
> Many thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Christian Goudreau
www.arcbees.com

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



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread aditya sanas
Hi,

Once you have GWT compiled code you can embed it any kind of web application
just you will require

to is the copy the content from WAR folder which is created in GWT project
to the

project folder under your web application.

So consider if i m using Apache Tomcat then

the content from WAR that is modules will be copied to the

webapps//

I hope this work.


--
Aditya


On Tue, Aug 17, 2010 at 12:38 PM, Anita  wrote:

> Hello Suersh,
>
> With this solution, ¿How can i solve the problem of catching the
> events on one application and doing something on the others?
> Thank you very much!!!
>
> Regards,
> Anita
>
>
> On 16 ago, 16:41, suersh babu  wrote:
> > use div give id so that each id display differerent different information
> .
> >
> >
> >
> > On Thu, Aug 5, 2010 at 3:19 PM, Anita  wrote:
> > > Hi,
> >
> > > I’m new on GWT and i’m trying to do something but don´t know how…. My
> > > app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
> > > way that i have my window divided in 3 parts. In each part i want 3
> > > differents app to be runing. One of them is an open source web app,
> > > written in Java/JSP(no GWT), but i don´t know how to integrate it, in
> > > a way that i can access de events generated by it. I’m a little lost
> > > and any help would be very usefull.
> > > Thank in advance.
> > > Regards,
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> > your's truely
> >
> > suresh babu.g
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



2.1 Documentation

2010-08-17 Thread Bayard Randel
Hi there,

Is there any preliminary documentation around the new features in 2.1,
particularly the MVP implementation? I'm going to be starting a large
GWT project shortly, but am somewhat hesitant to get started knowing
that official support for MVP is forthcoming.

Many thanks

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



How to handle a HashMap nested in an Entity class with GWT-RPC?

2010-08-17 Thread kmARC
I have a synthetic entity class: TestAllType, with Lists, and Maps
inside it.
@Entity
public class TestAllType implements Serializable {
/* ... */
private Long longField;
private Integer integerField;
private Float floatField;
private Double doubleField;
private String stringField;
@Temporal(javax.persistence.TemporalType.DATE)
private Date dateField;
private TestEnumeration enumField;

@OneToOne(fetch=FetchType.EAGER)
private TestReferencedType referencedTypeField;

@ElementCollection(fetch=FetchType.EAGER)
private List listStringField;

@OneToMany(fetch=FetchType.EAGER)
private List listReferencedTypeField;

@ElementCollection(fetch=FetchType.EAGER)
private Map mapStringTypeStrigTypeField;
/* ... */
}

There are also a TestReferencedType Entity class, also for testing
purposes.

My problem is that when I try to fetch one testAllType entity, GWT-RPC
throws an exception:
com.google.gwt.user.client.rpc.SerializationException: Type
'java.util.Hashtable' 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.

The List is functional as well as List -
that is why I think that my Entity classes are designed and
implemented suitable to GWT-RPC's specifications on being
Serializable. But if I try to use that Map property of the entity
class, there comes the error message about the Hashtable's
blacklisting.

I also tested, remote procedures' returning with Map
are working, too. As I see, only with nested Maps there are this
issue.

// Note that everything works fine about annotated entity classes and
GWT-RPC as I included a self-packaged javax.persistence.jar GWT module
with the corresponding source codes so that the GWT Compiler
understand entity classes, and they can be utilized on client side.
Only with Maps are this problem //

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



HTML in TextArea

2010-08-17 Thread steenstrup
My problem, is that i like to display html in a textArea that can get
lock, so it can't be edit.

TextArea have the ability to be lock, but can't handel html
RichTextArea can't lock, but can handel html

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



Resizable Text Area

2010-08-17 Thread Constantin Tanno
Does anyone know how to create a resizable text area in GWT?  This
would be a text area that has "gripper bars" somewhere (ideally in the
bottom right corner) so the user can resize the text area.  Is this
possible?  I've searched around in this groups and the docs and
couldn't find anything.

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



Debug or Run in eclipse does nothing with additional jars

2010-08-17 Thread Jg
Hi,
I'm new to GWT, I've got eclipse and the GWT plugin set up. I've then
created a new GWT project which creates the "greet" servlet example.
This did run fine.

I'm trying to add some code to the servlet which makes use of a 3rd
party jar file. But I'm not sure how to add the jar files in eclipse.

I've put these jars in war/WEB-INF/lib, and added them to my project
properties -> Java Build Path -> Libraries. Now when I run the
project, I get nothing. I select debug web application, then in the
"Development Mode" tab, I do not see the URL to test the application.

If I then remove these jar files, I can see the URL in the
"Development Mode" tab when I debug web application.

Note: I have not added any code to use the new jar files yet. Just
added the jar files to the build path.

I don't see any errors, is there a web service error console I can
enable?

Thanks

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



Can DateTimeConstants and NumberConstants be derived from a Dictionary in the same way that localized strings can

2010-08-17 Thread snayrb99

Yes I understand how localization works and yes I understand the
benefits of the way GWT handles localization and yes I am yet another
whiner complaining about the speed of the compiles when localization
is turned on and yes I know about speeding up compiles using -
localWorkers etc, etc.

Anyway, I have an app and I'm using a Dictionary for localized strings
and everything works great and whatever performance benefits I lose
from not using compile time checking I can live with. The number of
strings included in the dictionary is quite small. I would like to use
the same technique for accessing DateTimeConstants and
NumberConstants. Looking at LocaleInfo, there does not seem to be an
easy way to access these constants using a dictionary technique.

We use continuous integration for the builds which get deployed to a
QA environment on a frequent basis. This build will get deployed to a
production environment without recompilation. I recently added two
locales and my build time jumped from 6 to 14 minutes. As we
anticipate adding more locales the build time will increase even more.
We want to make all locales available in the QA environments and don't
want to push out a special build after testing in English.

Is there a way of accessing the constants using a dictionary
technique? If not, is there a way I can customize the build so that I
can insert my own version of LocaleInfoImpl to load the constants from
a dictionary?

As an aside, if localized strings can be accessed from a dictionary,
why not provide access to the constants in same way?

I would appreciate any input.

Thanks.

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



Client model objects input to ==> HTTPServlet

2010-08-17 Thread vinod
Hi,

I have a requirement to export entries on my GWT Table Grid on to a
XLS file. I am using direct HttpServlet for exporting the file in
response.

I want to know how to input the grid model entries say List
to the Servlet directly.  If i use the HTTPResponse in GWT Server
ServiceImpl class directly its coming to onFailure block and failing.

Any pointers on this.

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



Google Web Toolkit

2010-08-17 Thread roshini begum
www.127760.blogspot.com

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



GWT memory leakage

2010-08-17 Thread Anita
Hi All,

I am using smart GWT, I am using a VLayout on this vlayout I am adding
one AbsolutePanel, in this AbsolutePanel i am showing 10 images and
line relatonships using gwt-diagram jar, All images has one click
handler,mouseover handler and Mouseout handler, When i click on any
image then 2 or 3 images is added with this object and I clear the
Absolute panel and draw all total 12 or 13 images on absolutepanel, My
memory is getting increase when i click on images, so how i resolve
this issue.

Please help me, I need urgent solution
Thansk in advance

Anita.

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



GWT + Hibernate problem (Unknown entity exception)

2010-08-17 Thread Bancika
I'm using hibernate to map my data in GWT and have some weird
problems. Here's my setup.

* HSQL database
* entity class is in client folder
* annotated class (tried with hbm.xml file, same result)

the problem is that my mapped class does not get registered in the
config for some reason. I tried adding the mapped class through
hibernate.cfg.xml and directly into the configuration with the same
result.

AnnotationConfiguration config = new
AnnotationConfiguration();

config.addAnnotatedClass(com.bancika.client.data.User.class);
config.configure();

If I test config immediately after this, it appears that no classes
have been registered. Also, if I try session.save(user) it throws
Unknown entity exception.

Is there anything I missed in the config that should be done when
using hibernate with gwt? I've been using it in java ee for years
without these problems.

Thanks,
Bane

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



setting checkbox position

2010-08-17 Thread Dave Combs
I notice that GWT's Checkbox is implemented as a span + widget, so
that it can keep the label and the widget together.  Adding a style
adds it to the span.  How can I style a Checkbox widget via CSS so
that it has absolute positioning in it's parent container?  I'm
creating a UI that sets most items to absolute positions--it doesn't
want thing to float or move around when the page resizes.  As of now,
the checkboxes don't even show up in their containing .

Thanks!
Dave

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



Textarea count

2010-08-17 Thread megala dhinakaran
I am looking into a solution where when you type text into the
TextArea it should notify the user how many characters are left to
enter. Like you can only enter 200 or something.

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



Re: incubator SCrollTable scroll position.

2010-08-17 Thread Romaint2b
Hi,
I was searching for the same thing whn i found your post.
Did you find a solution in order to know the scroll position?

Thanks

Romain


On 22 juin, 14:59, Subhrajyoti Moitra  wrote:
> Hello Folks,
>
> I am using incubator gen2 ScrollTable. I have a use case, wherein i have to
> detect that when the user has scrolled to the last row (or somewhere around
> the last row), then load a fresh set of rows in the table, via a rpc call.
> TO achieve this i have extented ScrollTable and implemented
> HasScrollHandlers.
>
> public class UbqScrollTable extends ScrollTable implements HasScrollHandlers
> {
>
>     public UbqScrollTable(FixedWidthGrid dataTable,
>             FixedWidthFlexTable headerTable) {
>         super(dataTable, headerTable);
>
>     }
>
>     public HandlerRegistration addScrollHandler(ScrollHandler handler) {
>
>         return addDomHandler(handler, ScrollEvent.getType());
>     }
>
> }
>
> And later in some other view i am setting up this table, and the initial
> data to go along with it.
> When trying to get the scroll position, i do this. st is the scrolltable.
>
> st.addScrollHandler(new ScrollHandler() {
>
>             public void onScroll(ScrollEvent event) {
>                 int top=event.getRelativeElement().getScrollTop();
>                 int
> scrollHeight=event.getRelativeElement().getScrollHeight();
>                 int left=event.getRelativeElement().getScrollLeft();
>                 int width=event.getRelativeElement().getScrollWidth();
>
>                 GWT.log("Scroll data: top: "+top+", scrollHeight:
> "+scrollHeight+", y: "+event.getNativeEvent().getScreenY()+", x:
> "+event.getNativeEvent().getScreenX()+", left: "+left+", wiodth: "+width+",
> class: "+event.getSource().getClass().getName());
>                 GWT.log("Top:
> "+st.getDataTable().getElement().getScrollTop());
>                 GWT.log("Height:
> "+st.getDataTable().getElement().getScrollHeight());
>                 //st.getElement().setScrollTop(50);
>             }
>         });
>
> All the values top, height, left, width are all constant and not changing. I
> know there is something wrong with my understanding. Please help.
>
> How do i get the scroll position, or "Detect that the user is viewing the
> last few rows of the scroll table" so load new rows from backend?
>
> Please help.
>
> Thanks,
> Subhro.

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



Google gwt objects serialization/desirialization and integration with the database

2010-08-17 Thread Tadas Davidsonas
Dear professionals,

I want to save gwt classes object in the database and later to
retrieve them back for use. Imagine that I have a class:

Pages{
  String pageName;
  String pageUrl;
}

and create an object:

Pages page1 = new Pages();

How can I:

1) Serialize 'page1' object.
2) Sent it to database with php
3) get to gwt again
4) desirealize and use it

Serialize and desirealize parts are the most important to me. Best
wishes to you and I'm waiting your help. I haven't found any tutorial
for this which works without bugs.

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



Re: EclEmma + GwtTestCase + GwtGenerator exception

2010-08-17 Thread Island
I am facing the same problem when I try to collect the code coverage
data, and here is the stack trace:

21:10:59.578 [ERROR] [splat] Failed to create an instance of
'com.splat.client.SplatService' via deferred binding
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
during visit.
at
com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:
462)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
448)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
801)
at com.google.gwt.dev.js.ast.JsVars$JsVar.traverse(JsVars.java:56)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
814)
at com.google.gwt.dev.js.ast.JsVars.traverse(JsVars.java:89)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:
873)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:
48)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:
253)
at
com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:
240)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:
46)
at
com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:
1214)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
1039)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at
com.splat.client.SplatService_Proxy.(SplatService_Proxy.java:
14)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
580)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
415)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.splat.client.SplatGxt.onModuleLoad(SplatGxt.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException: null
at com.google.gwt.dev.shell.CompilingClassLoader
$MyInstanceMethodOracle.findOriginalDeclaringClass(CompilingClassLoader.java:
409)
at com.google.gwt.dev.shell.rewrite.RewriteRefsToJsoClasses
$MyMethodAdapter.visitMethodInsn(RewriteRefsToJsoClasses.java:83)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:
1371)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
at
com.google.gwt.dev.shell.rewrite.HostedModeClassRewriter.rewrite(HostedModeClassRewriter.java:
244)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes(CompilingClassLoader.java:
1157)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
985)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getClassFromBinaryName(CompilingClassLoader.java:
236)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getClassFromBinaryOrSourceName(CompilingClassLoader.java:
266)
at com.google.gwt.dev.shell.CompilingClassLoader
$

ResourceBundle with CSS and obfuscation

2010-08-17 Thread Fratelli
Hello,

I'm using CssResource::ensureInjected() to inline my styles into the
host page.

So the thing is: everything worked just fine until I started
redefining some GWT style classes (ie, gwt-TabBarItem). The changes
didn't apply because the names are being obfuscated in the host page,
but the predefined GWT widgets use the unobfuscated names. So I did
some reading, and thought that @external would do the trick. Say:

@ClassName("gwt-TabBarItem")
public String tabBarItem();

But it doesn't. Now it tells me that it failed to resolve the
ClientBundle (CssBundle, in this case).

What should I do?

Best regards

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



Run time designing ( Dynamic text boxes )

2010-08-17 Thread AJAY SINGH AZAD
So, the problem: My concept is that  application reads a integer
from a TextBox after the user wrote it in there e.g. 3 and then
creates 3 new TextBoxes.

Reply ASAP

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



JS works in html file but not in httpServlet

2010-08-17 Thread poe
Hi everybody,

i've got a problem. When I include my main,nocache.js in an html file
everything works fine when I run it from a httpServlet nothing is
loading. Well the HTML from the servlet is loading but the javascript
isn't working. The link works, I can see it in the sources. What am I
doing wrong here?

Greets
Poe

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



Encoding

2010-08-17 Thread sgt dwarf
Hello, many thanks to all of you but I still have an encoding problem.
I put the project's text file encoding property to UTF-8 deleted the
GWT built folder and then built the project again but the é and other
special characters appear not to be supported :-(

Environement : myEclipse 8.5 / GWT 2.0.3

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



Ensuring a debug ID for a column header using ColumnConfig

2010-08-17 Thread Madalina Ionita
Hi,

I'm using GXT ColumnConfig class to create a table in a web
application. My problem is that I don't know how to ensure a debug ID
for each column header. I want to use the ensureDebugId() method, but
the getHeader() method of the ColumnConfig class returns a String, not
a ColumnHeader object, which would have allowed me to call the
ensureDebugId method and, of course, I can't modify the ColumnHeader
class from GXT. How can I get to the column header after instantiating
a ColumnConfig? Has anyone on this group ever worked with this kind of
structure or has any knowledge in this respect? I would be very
grateful if you could help me. Any ideas will do.

Thank you,
Madalina.

P.S.: Here is a sample of my code:

column = new ColumnConfig ();
column.setId("callDate");
column.setWidth(150);
column.setMenuDisabled(true);
column.setHeader(lm.get(CallStartTimeSHORT));
column.setRenderer(dateRenderer);
configs.add(column);

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



HTML in TextArea

2010-08-17 Thread steenstrup
My problem, is that i like to display html in a textArea that can get
lock, so it can't be edit.

TextArea have the ability to be lock, but can't handel html
RichTextArea can't lock, but can handel html

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



Catch focus event with NativePreviewHandler

2010-08-17 Thread Alexander Ulizko
Hi all.

I have come across the following issue.
I have a js web application which I had decided to rewrite using GWT.
So far everything goes smoothly except for one small problem: there's
a search form that consists of a single text input. I have to simulate
html5 "placeholder" attribute: to remove the fields' default value on
focus, and to show default value again on blur if the input is left
blank.

I tried to implement it this way:

// query-search-form - that input id
DOM.setEventListener(DOM.getElementById("query-search-form"), new
EventListener() {
public void onBrowserEvent(Event event) {
if (event.getTypeInt() == Event.ONFOCUS) {
Window.alert("it handles!"); // doesn't work
}

GWT.log("does any event catched at all?"); // doesn't work.
looks like it doesn't catch any event at all
}
});



Event.addNativePreviewHandler(new Event.NativePreviewHandler() {
public void onPreviewNativeEvent(Event.NativePreviewEvent preview)
{
NativeEvent event = preview.getNativeEvent();

// seems like it catches all "general" events, like "click",
"mouseon", "mouseover" and so on, but not "focus" or "blur"
GWT.log("what type of event has been captured? " +
event.getType());


Element input = event.getEventTarget().cast();
if (event.getType().equalsIgnoreCase("focus") &&
input.getId().equals("query-search-form")) {
Window.alert("gotcha!"); // doesn't work
return;
}


preview.consume();
}
});


Any suggestions?

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



Re: Reusing GWT Localization in Server Side Code

2010-08-17 Thread KenJi_getpowered
Why can't you just use resource bundle to get messages?


On 17 août, 10:49, Joe Cole  wrote:
> What we do is use this code pattern:
>
> public interface IMessages {
>    public MyMessages get(); // your messages interface}
>
> public class Messages {
>    private static IMessages messages;
>    public static MyMessages get() { return messages.get(); }
>    public static void set(IMessages messages) //etc
>
> }
>
> Then in our server side initialisation we use:
>
> ServerMessages implements IMessages {
>     public MyMessages get(){
>                 // note, basically pseudocode
>                 Properties properties = new Properties();
>                 InputStream in = // find yours
>                 properties.load(in);
>                 return (MyMessages)
> Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]
> { MyMessages.class },
>                                 new GWTMessageProxy(properties));
>     }
>
> }
>
> public class GWTMessageProxy implements InvocationHandler {
>
>         private final Properties properties;
>
>         public GWTMessageProxy(Properties properties) {
>                 super();
>                 this.properties = properties;
>         }
>
>         public Object invoke(Object proxy, Method method, Object[] args)
> throws Throwable {
>                 String property = 
> String.valueOf(properties.get(method.getName()));
>                 if (args != null && args.length > 0) {
>                         // we have a messages class...
>                         return MessageFormat.format(property, args);
>                 }
>                 return property;
>         }
>
> }
>
> When you initialize your client side system, simply initialize your
> messages with a client-side-only version that uses gwt localization.
> Similarly, your tests probably need a different setup method, so just
> initialise a custom class for that as well. It's kind of like manual
> guice, but it doesn't have to be done that often so isn't a big deal.
>
> This pattern works for everything, so we use it for NumberFormats &
> DateFormatting and all sorts of other code that need to be shared
> between client, server, tests etc.
>
> If anyone has any better ideas please sing out!
>
> Joe
> On Aug 17, 7:20 am, Casey  wrote:
>
> > Does anyone know if with Google Web Toolkit there is an easy way to
> > reuse your client size localization files (constants and messages) in
> > the server side code? I think in GWT 1.6 or 1.8 you could actually
> > call the same GWT localization code on the server side that you called
> > on the client side. I just upgraded from 1.6 to 2.0 and all of a
> > sudden I'm receiving the following message: ERROR: GWT.create() is
> > only usable in client code! That makes sense to me but there must be
> > an easy way to reuse your Constant and Message files on the server.
> > It's been awhile since I've opened this project but I'm pretty sure
> > that this was working before. 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT serialization

2010-08-17 Thread aditya sanas
Hi

The basic requirement for you is to deal with XML file

So we have jxl.jar which provides APIs to interact with tags and elements in
xml so

using these API's that are generally known as XML parsers that is SAX or DOC
parsers.

so use by using these parsers you will be able to deal with XML files.

It wont be that difficult for you once you learn how to use these parsers.

You will need external jar file jxl.jar


--
Aditya


On Tue, Aug 17, 2010 at 6:00 PM, Ciarán  wrote:

> Hi, I am currently working on a GWT app that requires me  to
> serializes an object client side into maybe XML/JSON or anything
> really. Then save that serialized object as a xml/json/.ser file. Then
> at a later date read that file and reconstruct my object from it.
>
> I have been searching for days for an answer to this, used several
> external library, read tutorials, GWT documentation and I still not
> closer to a solution. Am I totally missing something here? It was very
> easy to do this in plan Java, but GWT I just can seem to get it
> working.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: No tag for 2.0.4 in SVN

2010-08-17 Thread Thomas Broyer


On 17 août, 12:35, Karel Piwko  wrote:
> Could somebody from developers verify if it is
>
> releases/2.0:r8340
>
> or
>
> releases/2.0:r8322
>
> according to the date when 2.0.4 was released?

Well, you do have the source and the changes, so you can just compare
what's in 2.0.4 with what's in each of these revisions, no?
That being said, I believe 2.0.4 is just the latest change of the
releases/2.0 branch.

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



GWT serialization

2010-08-17 Thread Ciarán
Hi, I am currently working on a GWT app that requires me  to
serializes an object client side into maybe XML/JSON or anything
really. Then save that serialized object as a xml/json/.ser file. Then
at a later date read that file and reconstruct my object from it.

I have been searching for days for an answer to this, used several
external library, read tutorials, GWT documentation and I still not
closer to a solution. Am I totally missing something here? It was very
easy to do this in plan Java, but GWT I just can seem to get it
working.

Thanks

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



html5 drag-and-drop multiple file upload

2010-08-17 Thread marius.andreiana
Hi there,

What would be the steps to implement html5 drag-and-drop multiple file
upload in GWT, as seen at 
http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload
?

One approach would be implementing HTML5 file api support in gwt-
mobile-webkit, and then use this library and gwt-dnd library to
implemented the complete functionality demo'ed above.
Is there an easier way?

Thanks.

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



Re: why we probably won't use GWT for a large UI project

2010-08-17 Thread marius.andreiana
I'd like to thank everybody for the discussion. I've updated the
findings in the document below.
https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWBCOKTPm1wDCzSQgvU&hl=en
I'll probably keep this doc updated and public, in case it helps
anybody.

>From all the non-.NET technologies we considered, GWT with SmartGWT
REST data sources is actually meeting our needs.
We will investigate closer another alternative, using the same
technology as our back-end (.NET).

Thanks again,
Marius

On Aug 10, 11:27 am, "marius.andreiana" 
wrote:
> Hi,
>
> We're working on a large project, which has the back-end is written in
> a non-Java technology, with REST APIs. We're looking for a framework
> to replace the current UI.
>
> I did a brief analysis of using 
> GWT:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB...
>
> I'm looking to get this group's feedback before I present my findings
> to the team. What do you think?
>
> Thanks,
> Marius

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



Re: No tag for 2.0.4 in SVN

2010-08-17 Thread Karel Piwko
Could somebody from developers verify if it is

releases/2.0:r8340

or

releases/2.0:r8322

according to the date when 2.0.4 was released?

Thanks,

Karel


On Wed, 2010-08-11 at 05:08 -0700, Karel Piwko wrote:
> Hi,
> 
> I haven't been able to find the tag for 2.0.4 at
> http://google-web-toolkit.googlecode.com/svn/tags/2.0.4/.
> 
> Could you create it and specify the revision number of
> http://google-web-toolkit.googlecode.com/svn/release/2.0 or another
> branch the tag was created from?
> 
> Thanks,
> 
> Karel
> 


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



Re: Reusing GWT Localization in Server Side Code

2010-08-17 Thread Joe Cole
What we do is use this code pattern:

public interface IMessages {
   public MyMessages get(); // your messages interface
}
public class Messages {
   private static IMessages messages;
   public static MyMessages get() { return messages.get(); }
   public static void set(IMessages messages) //etc
}

Then in our server side initialisation we use:

ServerMessages implements IMessages {
public MyMessages get(){
// note, basically pseudocode
Properties properties = new Properties();
InputStream in = // find yours
properties.load(in);
return (MyMessages)
Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]
{ MyMessages.class },
new GWTMessageProxy(properties));
}
}

public class GWTMessageProxy implements InvocationHandler {

private final Properties properties;

public GWTMessageProxy(Properties properties) {
super();
this.properties = properties;
}

public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
String property = 
String.valueOf(properties.get(method.getName()));
if (args != null && args.length > 0) {
// we have a messages class...
return MessageFormat.format(property, args);
}
return property;
}

}

When you initialize your client side system, simply initialize your
messages with a client-side-only version that uses gwt localization.
Similarly, your tests probably need a different setup method, so just
initialise a custom class for that as well. It's kind of like manual
guice, but it doesn't have to be done that often so isn't a big deal.

This pattern works for everything, so we use it for NumberFormats &
DateFormatting and all sorts of other code that need to be shared
between client, server, tests etc.

If anyone has any better ideas please sing out!

Joe
On Aug 17, 7:20 am, Casey  wrote:
> Does anyone know if with Google Web Toolkit there is an easy way to
> reuse your client size localization files (constants and messages) in
> the server side code? I think in GWT 1.6 or 1.8 you could actually
> call the same GWT localization code on the server side that you called
> on the client side. I just upgraded from 1.6 to 2.0 and all of a
> sudden I'm receiving the following message: ERROR: GWT.create() is
> only usable in client code! That makes sense to me but there must be
> an easy way to reuse your Constant and Message files on the server.
> It's been awhile since I've opened this project but I'm pretty sure
> that this was working before. 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu  wrote:
> use div give id so that each id display differerent different information .
>
>
>
> On Thu, Aug 5, 2010 at 3:19 PM, Anita  wrote:
> > Hi,
>
> > I’m new on GWT and i’m trying to do something but don´t know how…. My
> > app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
> > way that i have my window divided in 3 parts. In each part i want 3
> > differents app to be runing. One of them is an open source web app,
> > written in Java/JSP(no GWT), but i don´t know how to integrate it, in
> > a way that i can access de events generated by it. I’m a little lost
> > and any help would be very usefull.
> > Thank in advance.
> > Regards,
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> your's truely
>
> suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu  wrote:
> use div give id so that each id display differerent different information .
>
>
>
> On Thu, Aug 5, 2010 at 3:19 PM, Anita  wrote:
> > Hi,
>
> > I’m new on GWT and i’m trying to do something but don´t know how…. My
> > app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
> > way that i have my window divided in 3 parts. In each part i want 3
> > differents app to be runing. One of them is an open source web app,
> > written in Java/JSP(no GWT), but i don´t know how to integrate it, in
> > a way that i can access de events generated by it. I’m a little lost
> > and any help would be very usefull.
> > Thank in advance.
> > Regards,
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> your's truely
>
> suresh babu.g

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