Re: Best way to Deserialize JSON String to Java Object

2010-06-17 Thread Jan Ehrhardt
The GWT docs are offering you to use the JavaScript eval function directly
or through the JSONParser class, which internally uses the eval function.
A more secure way, that is to use the JSON library
http://www.json.org/js.html. You'll place the additional JavaScript library
in your host page, as any other JavaScript too. Than take the code from the
GWT docs:


private final native JsArrayStockData asArrayOfStockData(String json) /*-{
  return *eval(json);*
}-*/;


and modify it like this:


private final native JsArrayStockData asArrayOfStockData(String json) /*-{
  return *$wnd.JSON.parse(json);*
}-*/;


This is more secure than using the eval function. Additionally the
JSON.parse() function has become part of the JavaScript standard and is
implemented natively in many modern browsers. The above library knows this
and delegates the secure JSON parsing to the fast native parser provided by
the browser.

Regards
Jan Ehrhardt

2010/6/18 Chris Boertien chris.boert...@gmail.com

 Is there a particular reason that you _need_ the JSON string? If your
 using GWT RPC then you can simply send a Java Object to the server and
 the underlying GWT will handle the serialization for you.

 If you the JSON string is coming from somewhere else and you really
 have no choice, then it may be worthwhile to put together a JSO
 Overlay, use the Overlay to instantiate a POJO on the client side
 code, and send the POJO to the server via GWT RPC.

 Since your new some of that probably makes no sense, and If you can
 give a little more detail as to why you need to have JSON originating
 from the client I'm sure this can be explained a bit better to fit
 your case.

 GWT-RPC: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html
 GWT-JSON:
 http://code.google.com/webtoolkit/doc/latest/tutorial/JSON.html#client

 2010/6/16 Jose Luis Estrella Campaña jlecamp...@gmail.com:
  Hello Folks !
 
  I'm glad to say that I'm a brand new user of GWT, a very happy one by
  the way. However, as any newcomer I have questions, One in particular.
  Here it goes:
 
  What's the easiest, most straight forward way to deserialize a JSON
  String on the Server side and instance a Java Object from it ?
 
  The JSON String will be sent from the client side, an implementation
  of the RemoteService for example, and I intend to deserialize it on
  the Server side, say inside the RemoteServiceServlet Implementation,
  so I can instance a Java Object with the information contained in the
  JSON string afterwards. Is there a way this last step automatically
  with some GWT API ?
 
  I would like to see some examples if it's possible.
 
  Best Regards,
 
  Sincerely,
 
  Jose.
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: Conversion from JSON to XML and XML to JSON

2010-06-14 Thread Jan Ehrhardt
There is no such method that does job.

It's not really clear to me, why you will do this conversion or better
where? Do you want to convert it in the client (as part of your GWT app)? If
so, what are you doing with the two formats? Maybe it is not really
required, so could you give me some more details on this?

Regards
Jan Ehrhardt

2010/6/14 Malli malliseven.hi...@gmail.com

 Hi ,

 I'm using GWT2.0 I need converter from JSON to XML and XML to JSON..is
 there  any pre-defined function for converting from JSON to XML and
 XML to JSON.If its so .please tel  me what that good function ..
 If we don't have any function   please tel me how ..we can  do ?

 Thanks,
 Malli.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Conversion from JSON to XML and XML to JSON

2010-06-14 Thread Jan Ehrhardt
Ok, you mean JSON*P*Request and JSON*P*Response, or?

JSON-P is a little different from normal JSON, it requires to be wrapped in
a callback function. Your response should look like this:

callback({getRolesResponse:{return:[Executive,Manager,SuperAdmin]}}
);

The call to the callback function is required to make cross domain Ajax
work. GWT uses a function named 'callback' by default, but you can change
it.

You'll need to extend your server code to create the above result:

jsonpResponse = callback( + generatedJsonResponse + );

where generatedJsonResponse is the JSON generated by your JSON library.

You should only use JSON-P, if you want do do cross-domain Ajax. If
cross-domain is not required, use the RequestBuilder and JSONParser to do a
normal Ajax request and parse the resulting String.

Regards
Jan Ehrhardt

2010/6/14 malliseven.hills malliseven.hi...@gmail.com

 Hi Jan,
 Thanks for quick reply..

 Yes .your  correct on conversion ...

 Here i'm explaining my problem  please spend your valuable time for get out
 me from  my problems.

 1.) I'm using JSON Request and JSON  Response with RestFull.

 Here my Restfull configuration  is ..

 * util:map id=nstojns map-class=java.util.HashMap
 entry key=http://cxf.apache.org/bindings/xformat; value=cxf/
 entry key=http://server.sample.com/; value=/
 entry key=http://www.w3.org/2001/XMLSchema-instance;
 value=w3c/
   /util:map

  bean id=xmlInputFactory
 class=org.codehaus.jettison.mapped.MappedXMLInputFactory
 constructor-arg
   ref bean=nstojns /
 /constructor-arg
   /bean

   bean id=xmlOutputFactory
 class=com.sample.codehaus.jettison.mapped.MappedXMLOutputFactory
 constructor-arg
   ref bean=nstojns/
 /constructor-arg
   /bean

 [I have overridden MappedXMLOutputFactory.java for rectifying the some
 array issues i.e
  you can see the following link *
 http://jira.codehaus.org/browse/JETTISON-44 *  what and all issues with
 Jettison MappedXMLOutputFactory.java

 NOTE: before overridden and after **overridden i'm getting same problems.*
 *  ]


   jaxws:endpoint id=SampleRESTFullService
 implementor=#SampleRESTFullService  address=/sample/json  bindingUri=
 http://apache.org/cxf/binding/http;
 jaxws:serviceFactory
   bean class=org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
 property name=properties
   map
 entry key=javax.xml.stream.XMLInputFactory
 value-ref=xmlInputFactory /
 entry key=javax.xml.stream.XMLOutputFactory
 value-ref=xmlOutputFactory/
 entry key=Content-Type value=application/json* */
   /map
 /property
 property name=wrapped value=true/
 property name=qualifyWrapperSchema value=true /
   /bean
 /jaxws:serviceFactory
   /jaxws:endpoint*

 upto here all is fine i.e mapping JSON Object to POJO ..and perform my
 business logic and send repose as JSON  Format to UI .

 2.) but my problem started here  when send response to UI ..its set the
 ** response content type to text/xml  but response

 {getRolesResponse:{return:[Executive,Manager,SuperAdmin]}} so the 
 response format JSON Response format.. thatsy browser showing error ..***not 
 well-formed**

 So if i want (should be) rectify this problems ..i have to change the 
 ***response content type to application/json

 3.) is there  any way to change the  response content type to 
 application/json?.
 please help me out if have any way,and tel  me what i have to do.(I tried 
 through filter but its not helped me out).

 Thanks,
 Malli.


 On Mon, Jun 14, 2010 at 4:14 AM, Jan Ehrhardt jan.ehrha...@googlemail.com
  wrote:

 There is no such method that does job.

 It's not really clear to me, why you will do this conversion or better
 where? Do you want to convert it in the client (as part of your GWT app)? If
 so, what are you doing with the two formats? Maybe it is not really
 required, so could you give me some more details on this?

 Regards
 Jan Ehrhardt

 2010/6/14 Malli malliseven.hi...@gmail.com

 Hi ,

 I'm using GWT2.0 I need converter from JSON to XML and XML to JSON..is
 there  any pre-defined function for converting from JSON to XML and
 XML to JSON.If its so .please tel  me what that good function ..
 If we don't have any function   please tel me how ..we can  do ?

 Thanks,
 Malli.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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

Re: Conversion from JSON to XML and XML to JSON

2010-06-14 Thread Jan Ehrhardt
Ah, ok.

First do you set the Accept header in your RequestBuilder? It tells the
server which type is accepted.

myRequestBuilder.setHeader(Accept, application/json);

This will tell the server to serve JSON. If your server handles it
correctly, it will work. If it doesn't help, it seems, that your server
configuration is not correct.

Probably you can also try content type text/json.

Regards
Jan Ehrhardt

2010/6/14 malliseven.hills malliseven.hi...@gmail.com

 Hi Jan,
 thanks for your reply..

 I'm not using JSON*P*Request and JSON*P*Response  .
 I'm using normal JSON Request and  normal JSON  Response by using
 RequestBuilder..

 Here i'm pasting how i'm preparing JSON Request ..


   com.google.gwt.json.client.JSONObject lInnerObject = new
 com.google.gwt.json.client.JSONObject();
 lInnerObject.put(status, new
 com.google.gwt.json.client.JSONString (Active));
 lInnerObject.put(userName, new
 com.google.gwt.json.client.JSONString (test));

 com.google.gwt.json.client.JSONObject lWrapperObject =new
 com.google.gwt.json.client.JSONObject();
 lWrapperObject.put(StateRequest, lInnerObject);

 Then i'm using RequestBuilder for calling my restfull services..
 after got the response i'm using JSONParser  to parsing my reponse .
  JSONObject lObject = (JSONObject) JSONParser.parse(lResponse.getText());

 all the functions are working fine ..Problem is if we use FF ..its having
 option ***Error Console** under  Tools..If  I click on this
 option its showing

 ***not well-formed** ..because CXF  set the response content type to 
 *text/xml*  and its  sending JSON format..but Browser expecting xml format 
 since  response
 content type is **text/xml** ..so if we change the response content type to  
 **application/json ** ..then i think problem would be solved.

 Thanks,
 Malli









 On Mon, Jun 14, 2010 at 8:30 AM, Jan Ehrhardt jan.ehrha...@googlemail.com
  wrote:

 Ok, you mean JSON*P*Request and JSON*P*Response, or?

 JSON-P is a little different from normal JSON, it requires to be wrapped
 in a callback function. Your response should look like this:

 callback({getRolesResponse:{return:[Executive,Manager,SuperAdmin]}}
 );

 The call to the callback function is required to make cross domain Ajax
 work. GWT uses a function named 'callback' by default, but you can change
 it.

 You'll need to extend your server code to create the above result:

 jsonpResponse = callback( + generatedJsonResponse + );

 where generatedJsonResponse is the JSON generated by your JSON library.

 You should only use JSON-P, if you want do do cross-domain Ajax. If
 cross-domain is not required, use the RequestBuilder and JSONParser to do a
 normal Ajax request and parse the resulting String.

 Regards
 Jan Ehrhardt

 2010/6/14 malliseven.hills malliseven.hi...@gmail.com

  Hi Jan,
 Thanks for quick reply..

 Yes .your  correct on conversion ...

 Here i'm explaining my problem  please spend your valuable time for get
 out me from  my problems.

 1.) I'm using JSON Request and JSON  Response with RestFull.

 Here my Restfull configuration  is ..

 * util:map id=nstojns map-class=java.util.HashMap
 entry key=http://cxf.apache.org/bindings/xformat; value=cxf/
 entry key=http://server.sample.com/; value=/
 entry key=http://www.w3.org/2001/XMLSchema-instance;
 value=w3c/
   /util:map

  bean id=xmlInputFactory
 class=org.codehaus.jettison.mapped.MappedXMLInputFactory
 constructor-arg
   ref bean=nstojns /
 /constructor-arg
   /bean

   bean id=xmlOutputFactory
 class=com.sample.codehaus.jettison.mapped.MappedXMLOutputFactory
 constructor-arg
   ref bean=nstojns/
 /constructor-arg
   /bean

 [I have overridden MappedXMLOutputFactory.java for rectifying the some
 array issues i.e
  you can see the following link *
 http://jira.codehaus.org/browse/JETTISON-44 *  what and all issues with
 Jettison MappedXMLOutputFactory.java

 NOTE: before overridden and after **overridden i'm getting same
 problems.**  ]


   jaxws:endpoint id=SampleRESTFullService
 implementor=#SampleRESTFullService  address=/sample/json  bindingUri=
 http://apache.org/cxf/binding/http;
 jaxws:serviceFactory
   bean class=org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
 property name=properties
   map
 entry key=javax.xml.stream.XMLInputFactory
 value-ref=xmlInputFactory /
 entry key=javax.xml.stream.XMLOutputFactory
 value-ref=xmlOutputFactory/
 entry key=Content-Type value=application/json* */
   /map
 /property
 property name=wrapped value=true/
 property name=qualifyWrapperSchema value=true /
   /bean
 /jaxws:serviceFactory
   /jaxws:endpoint*

 upto here all is fine i.e mapping JSON Object to POJO ..and perform my
 business logic and send repose as JSON  Format to UI .

 2.) but my problem started here  when send response to UI ..its set the
 ** response content type

Re: GWT and Spring - with Spring Web MVC or without it?

2010-06-13 Thread Jan Ehrhardt
If you want to use GWT RPC for client server communication, there is no need
for Spring Web MVC. If you want to provide a RESTful API and use it for GWT
too, Spring Web MVC is a good choice for realizing RESTful APIs.

Regards
Jan Ehrhardt

2010/6/13 Stefan Bachert stefanbach...@yahoo.de

 Hi,

 Spring MVC does not fit to GWT at all.

 GWT considers the browser to be a thin/rich client, and the server to
 be the data source/model

 Spring MVC considers the browser to be an ultra thin client (something
 like an x-server), and considers the server to be a fat client,
 where presentation, business logic and persistence live.
 Spring MVC is an artefact of the pre-AJAX-era.

 Use GWT for real application (RIA) and use Spring MVC for hyperlinked
 documents.

 In a complex website you may switch between real applications and
 hyperlinked documents, so you will find both in one site.
 But it makes NO sense to drive GWT with Spring MVC.

 When you look at Spring Roo and its GWT support, it comes without
 Spring MVC (Spring Roo can generate Spring MVC controller but without
 GWT). It is either or

 Stefan Bachert
 http://gwtworld.de


 On Jun 8, 5:32 pm, ezamur eza...@gmail.com wrote:
  Hi all...
 
  I am new to GWT - had some contact with it earlier but not enough to
  say I am confident with it.
 
  My task is to investigate this technology and pair it with Spring
  framework. There are a lot of tutorials explaining how this can be
  done, but what is bothering me is I can't decide which approach to
  choose. For example, I've seen one using Spring's MVC (like this one:
 http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
  but also other where integration is done without it (e.g.
 http://code.google.com/p/gwt-spring-starter-app/)
 
  I am afraid to miss something important by choosing one of these
  approaches and possibly lose some of Web MVC functionalities that
  might be needed later or end up in dead end street using it.
 
  I would be grateful if anyone explained me what are the pros and cons
  of these approaches from practical point of view - is there a need for
  DispatcherServlet and Controllers while having GWT and its RPC
  mechanism.
 
  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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: GWT /Eclipse/Tomcat

2010-05-14 Thread Jan Ehrhardt
Here is a small introduction to use Tomcat h
ttp://www.ducktools.org/2010/05/gwt-eclipse-tomcat-2.html

ttp://www.ducktools.org/2010/05/gwt-eclipse-tomcat-2.htmlRegards
Jan Ehrhardt

2010/5/14 rjcarr rjc...@gmail.com

 Hi Alan-

 The short answer is yes, you can use tomcat (stand-alone) instead of
 jetty (gwt embedded).  The simple solution is to just add -noserver
 to your devmode launcher.

 You can also modify the eclipse lauch config file to do this same and
 then you have integrated debugging.  You might have to fiddle with the
 URLs a bit so it gets that special request parameter that the browsers
 need to load the GWT plug-in.

 You can also run tomcat from eclipse and have server side debugging as
 well.

 I have a *old* gwt project (probably 3 years now) and I just recently
 set it up to do eclipse debugging, and it was worth the effort.  It
 isn't hard, just not very well documented.

 Good luck, and let me know if you have any questions (although I'll
 probably be slow to reply, bad time for me right now).

 On May 13, 10:44 am, Alan Chaney a...@mechnicality.com wrote:
  Hi
 
  I need to run multiple webapps - one of which is a GWT app. To overcome
  problems with  same origin policy, one option is to run multiple
  webapps in the same web application server. I've a lot of experience of
  doing this with Tomcat and zero with Jetty. Is it possible to use Tomcat
  as the development server for GWT inside Eclipse rather than Jetty? If
  so, how? or where is there information on how to configure it? I'm not
  asking about how to run a GWT war in a tomcat production environment
  but how to use the GWT development mode with Tomcat instead of Jetty.
 
  Thanks in advance.
 
  Alan
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Design of a GWT project

2010-04-21 Thread Jan Ehrhardt
In your host page add something like this:

script type=text/javascript
  var modules = {start:module-name};
/script

You can use it as a Dictionary
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/i18n/client/Dictionary.htmlfrom
your GWT code.

From my point of view, I still don't understand, why you have to deal with
two different pages. A GWT application is a real client application. It is
started, when the host page loads and it is shut down, when you leave the
page (e. g. you're going to a different URL). In a well designed GWT
application, you should make the registration module a part of your
application and send the entered data through an Ajax request to the server
in the background. This would prevent you from shutting down your
application for registration and start it again after registration is done.

The other point is, that JSPs might be easier to handle than servlets for
realizing the host page on the server. So use the JSP as your welcome file.

Regards
Jan Ehrhardt

2010/4/20 Jochen Schnaidt j.schna...@t-online.de

 to 4) This is clear, that is what the httpservlet does.

 to 3) I set the servlet as my welcome-file and it does ... nothing.
 Must I change another XML anywhere? By the way, the only way I found
 to set a script the way I need it is script/XML and I have not the
 faintest idea how I should use an XML to decide which module should be
 loaded.

 Until yesterday I thought I know enough to handle this challenge but
 today I am feeling down. Thanks to Jan for helping me.

 On 20 Apr., 15:04, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  3. The httpServlet makes anything on the html document
  It makes the HTML including a script tag containing your
 configuration.
  A JSP might be fine too.
 
  4. The html is called
  It's loaded inside the browser.
 
  Regards
  Jan Ehrhardt
 
  2010/4/20 Jochen Schnaidt j.schna...@t-online.de
 
 
 
   Okay, I don't understand how this should work...
 
   So, you mean:
   1. Requesting the application for example 'http://appname.appspot.com/
   singnup?asdfghjkl'
   2. A httpServlet gets this
   3. The httpServlet makes anything on the html document
   4. The html is called
   5. In the OnModuleLoad this anything will be evaluated
   6 According to this evaluation the right module will be loaded.
 
   Is this right?
 
   On Apr 20, 1:03 pm, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
You can add a property (e. g. a Dictionary) to your host page. Your
 entry
point checks the property and loads the required module. Setting the
property is a task, the server has to do.
 
I think, using one host page instead of two different pages with two
different URLs might be more efficient.
 
Regards
Jan Ehrhardt
 
2010/4/20 Jochen Schnaidt j.schna...@t-online.de
 
 Okay, I read the docs and understand most of it. Is it possiple to
 describe which sequence should be loaded by the URL?
 
 I planed that 'http://appname.appspot.com'isthe administration and
 'http://appname.appspot.com/singnup?asdfghjkl'
 is the signup page for event 'asdfghjkl'.
 
 I don't know if it is possible. My next step was to learn about
 servlet. But for a servlet I need a site to show my data, this is
 how
 I came to the 2nd page. I understand it this way, that code
 splitting
 mainly works on user events. So I need something like a switch in
 my
 onModuleLoad with the different splitpoints in the cases and the
 URL
 parameter in the statemant.
 
 Is this right?  Is it feasible?
 
 On Apr 20, 11:17 am, Jan Ehrhardt jan.ehrha...@googlemail.com
 wrote:
  In GWT 2.0 code splitting was introduced. You can have one big
 application,
  that contains both modules. In the standard case you load your
 application
  as before. In the registration case you can load a second module
 and
   use
 it.
  This is much better than having two applications with different
 entry
  points. It also allows you, to have some basic infrastructure,
 that's
 used
  by both modules. So you can create a third module.
 
  If you design this correct, you'll get an extendable and
 modularized
  application, that loads modules if required. That happens all in
 the
   same
  host page, so no page reload.
 
  Regards
  Jan Ehrhardt
 
  2010/4/20 Jochen Schnaidt j.schna...@t-online.de
 
   Hi all,
 
   I have a question about the design of a GWT project.
   I am working on an application for registration to events based
 on
   GWT
   and GAE. The application consists of three modules:
 administration
   (create, edit an event and reporting), signup (registration of
   guests)
   and a ‘desktop’ for the people working on the desk.
   At the moment I am finishing the first part administration. It
 is a
   classical RIA based on a DockLayout on one webpage. What I need
 now
   is
   a second Webpage where I

Re: History

2010-04-21 Thread Jan Ehrhardt
In a GWT application, moving to the next part of a form should not be a move
to a different page. Instead, you should just change the UI and put the
already entered values into some data object. The missing part is to use
some kind of pattern, how the values, you add to the history stack, are
build. This means, that each part form is identifiable by some history
token.

If you really have to move between different pages including page loading,
the above things won't work. You will have to use some way of caching data
on the server. GWT is build for developing RIAs, which means, that you
should not move to a different page. Therefor, onHistoryChange is exactly
what's required.

Regards
Jan Ehrhardt

2010/4/21 raj raj.cowbo...@gmail.com

 Hi every one!
I'm working on project based on GWT2.0 and i found it has more
 feature than the earlier version. But something has been a mystery to
 me,that how can really maintain history?

 it's not that we simply use history listener and onHistoryChanged() or
 addValueChangeHandler(). I need to make my application to be state-
 full. Suppose if i leave the form incomplete and move to the next page
 and if i press browser back button i should be able to resume
 filling the form,(i should get what I've filled the form already). If
 that's the case where will be those information stored(buffered)?.
 I've gone through samples but i couldn't understand.

 Could anyone tell what exactly it is all about?

 Regards,
 Raj.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Help me in understanding Binding Concept

2010-04-20 Thread Jan Ehrhardt
There are a lot of concepts, that are called binding in some way. First you
will have to say, which binding concept you mean.

Regards
Jan Ehrhardt

2010/4/20 sridevi macherla sridevimache...@gmail.com

 Hi Nathan,

 I am new to binding concept.  I want to know in general concept what
 exaclty binding does.

 How it works in GWT and what are different types of binding available in
 GWT

 Thanks
 Sri


 On Mon, Apr 19, 2010 at 8:25 PM, Nathan Wells nwwe...@gmail.com wrote:

 Are you referring to Deferred Binding (http://code.google.com/
 webtoolkit/doc/1.6/FAQ_Client.html#Deferred_Binding), or Beans Binding
 (https://beansbinding.dev.java.net/)

 They are two very different concepts.

 On Apr 19, 4:26 am, sridevi macherla sridevimache...@gmail.com
 wrote:
  Hi All,
 
  Can some one please help me in understanding the concept of Binding and
 how
  is it related to GWT.
 
  Please provide me some links in this regard. and why is it required
  what
  are differnt types of binding.
 
  Thanks
  Sri
 
  --
  You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
  To post to this group, send email to
 google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: Design of a GWT project

2010-04-20 Thread Jan Ehrhardt
In GWT 2.0 code splitting was introduced. You can have one big application,
that contains both modules. In the standard case you load your application
as before. In the registration case you can load a second module and use it.
This is much better than having two applications with different entry
points. It also allows you, to have some basic infrastructure, that's used
by both modules. So you can create a third module.

If you design this correct, you'll get an extendable and modularized
application, that loads modules if required. That happens all in the same
host page, so no page reload.

Regards
Jan Ehrhardt

2010/4/20 Jochen Schnaidt j.schna...@t-online.de

 Hi all,

 I have a question about the design of a GWT project.
 I am working on an application for registration to events based on GWT
 and GAE. The application consists of three modules: administration
 (create, edit an event and reporting), signup (registration of guests)
 and a ‘desktop’ for the people working on the desk.
 At the moment I am finishing the first part administration. It is a
 classical RIA based on a DockLayout on one webpage. What I need now is
 a second Webpage where I can send my guests to register them to an
 event. I read a lot about this in the community but never found an
 answer how to do it right.
 When I add a second Webpage to my project and add a second entry point
 to the XML everything dumps.
 Must I create a second GWT project or is it possible to integrate this
 functions in a separated part of the existing project?

 Ideas, comments are welcome.

 Thanks a lot, greetings Jochen

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Design of a GWT project

2010-04-20 Thread Jan Ehrhardt
You can add a property (e. g. a Dictionary) to your host page. Your entry
point checks the property and loads the required module. Setting the
property is a task, the server has to do.

I think, using one host page instead of two different pages with two
different URLs might be more efficient.

Regards
Jan Ehrhardt

2010/4/20 Jochen Schnaidt j.schna...@t-online.de

 Okay, I read the docs and understand most of it. Is it possiple to
 describe which sequence should be loaded by the URL?

 I planed that 'http://appname.appspot.com' is the administration and
 'http://appname.appspot.com/singnup?asdfghjkl'
 is the signup page for event 'asdfghjkl'.

 I don't know if it is possible. My next step was to learn about
 servlet. But for a servlet I need a site to show my data, this is how
 I came to the 2nd page. I understand it this way, that code splitting
 mainly works on user events. So I need something like a switch in my
 onModuleLoad with the different splitpoints in the cases and the URL
 parameter in the statemant.

 Is this right?  Is it feasible?

 On Apr 20, 11:17 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  In GWT 2.0 code splitting was introduced. You can have one big
 application,
  that contains both modules. In the standard case you load your
 application
  as before. In the registration case you can load a second module and use
 it.
  This is much better than having two applications with different entry
  points. It also allows you, to have some basic infrastructure, that's
 used
  by both modules. So you can create a third module.
 
  If you design this correct, you'll get an extendable and modularized
  application, that loads modules if required. That happens all in the same
  host page, so no page reload.
 
  Regards
  Jan Ehrhardt
 
  2010/4/20 Jochen Schnaidt j.schna...@t-online.de
 
 
 
   Hi all,
 
   I have a question about the design of a GWT project.
   I am working on an application for registration to events based on GWT
   and GAE. The application consists of three modules: administration
   (create, edit an event and reporting), signup (registration of guests)
   and a ‘desktop’ for the people working on the desk.
   At the moment I am finishing the first part administration. It is a
   classical RIA based on a DockLayout on one webpage. What I need now is
   a second Webpage where I can send my guests to register them to an
   event. I read a lot about this in the community but never found an
   answer how to do it right.
   When I add a second Webpage to my project and add a second entry point
   to the XML everything dumps.
   Must I create a second GWT project or is it possible to integrate this
   functions in a separated part of the existing project?
 
   Ideas, comments are welcome.
 
   Thanks a lot, greetings Jochen
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Design of a GWT project

2010-04-20 Thread Jan Ehrhardt
3. The httpServlet makes anything on the html document
It makes the HTML including a script tag containing your configuration.
A JSP might be fine too.

4. The html is called
It's loaded inside the browser.

Regards
Jan Ehrhardt

2010/4/20 Jochen Schnaidt j.schna...@t-online.de

 Okay, I don't understand how this should work...

 So, you mean:
 1. Requesting the application for example 'http://appname.appspot.com/
 singnup?asdfghjkl'
 2. A httpServlet gets this
 3. The httpServlet makes anything on the html document
 4. The html is called
 5. In the OnModuleLoad this anything will be evaluated
 6 According to this evaluation the right module will be loaded.

 Is this right?

 On Apr 20, 1:03 pm, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  You can add a property (e. g. a Dictionary) to your host page. Your entry
  point checks the property and loads the required module. Setting the
  property is a task, the server has to do.
 
  I think, using one host page instead of two different pages with two
  different URLs might be more efficient.
 
  Regards
  Jan Ehrhardt
 
  2010/4/20 Jochen Schnaidt j.schna...@t-online.de
 
 
 
   Okay, I read the docs and understand most of it. Is it possiple to
   describe which sequence should be loaded by the URL?
 
   I planed that 'http://appname.appspot.com'is the administration and
   'http://appname.appspot.com/singnup?asdfghjkl'
   is the signup page for event 'asdfghjkl'.
 
   I don't know if it is possible. My next step was to learn about
   servlet. But for a servlet I need a site to show my data, this is how
   I came to the 2nd page. I understand it this way, that code splitting
   mainly works on user events. So I need something like a switch in my
   onModuleLoad with the different splitpoints in the cases and the URL
   parameter in the statemant.
 
   Is this right?  Is it feasible?
 
   On Apr 20, 11:17 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
In GWT 2.0 code splitting was introduced. You can have one big
   application,
that contains both modules. In the standard case you load your
   application
as before. In the registration case you can load a second module and
 use
   it.
This is much better than having two applications with different entry
points. It also allows you, to have some basic infrastructure, that's
   used
by both modules. So you can create a third module.
 
If you design this correct, you'll get an extendable and modularized
application, that loads modules if required. That happens all in the
 same
host page, so no page reload.
 
Regards
Jan Ehrhardt
 
2010/4/20 Jochen Schnaidt j.schna...@t-online.de
 
 Hi all,
 
 I have a question about the design of a GWT project.
 I am working on an application for registration to events based on
 GWT
 and GAE. The application consists of three modules: administration
 (create, edit an event and reporting), signup (registration of
 guests)
 and a ‘desktop’ for the people working on the desk.
 At the moment I am finishing the first part administration. It is a
 classical RIA based on a DockLayout on one webpage. What I need now
 is
 a second Webpage where I can send my guests to register them to an
 event. I read a lot about this in the community but never found an
 answer how to do it right.
 When I add a second Webpage to my project and add a second entry
 point
 to the XML everything dumps.
 Must I create a second GWT project or is it possible to integrate
 this
 functions in a separated part of the existing project?
 
 Ideas, comments are welcome.
 
 Thanks a lot, greetings Jochen
 
 --
 You received this message because you are subscribed to the Google
   Groups
 Google Web Toolkit group.
 To post to this group, send email to
   google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com
 
 
 .
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
 
--
You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
To post to this group, send email to
 google-web-toolkit@googlegroups.com
   .
To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
For more options, visit this group athttp

Re: Maven, again

2010-04-19 Thread Jan Ehrhardt
I'm currently working on a sample app for my GWT logging framework and it
uses Maven.

http://github.com/derjan1982/slf4gwt/tree/master/samples/

It might be an example setup for you, allthough it's not finished yet. I'm
using m2eclipse for development and everything works, except I've to enable
GWT support on my projects (
http://www.ducktools.org/2010/04/gwt-eclipse-tomcat.html) manually.

Regards
Jan Ehrhardt

2010/4/19 Subhrajyoti Moitra subhrajyo...@gmail.com

 try this

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


 On Sun, Apr 18, 2010 at 11:25 PM, Steve steveahlst...@gmail.com wrote:

 I'm getting very frustrated -- reading dozens of messages, faqs,
 whatever I can find on the subject, but I haven't found all the info I
 need in one place and haven't been able to piece it all together ...
 maybe I just missed it, but hopefully someone here can help.

 What I'd like to do ...

 Create a GWT project, use Maven instead of Ant to build.  Be able to
 debug in DevMode, be able to mvn package and manually deploy my war
 to a container.

 Using Eclipse (3.5.2), m2eclipse, GPE 1.3.2 -- what do I need to do?
 What is the directory structure I need?  Is there a maven archetype to
 create the directory structure?

 I tried the MavenAppRpc project.  I was successful in building it and
 deploying the war to Tomcat.  However, I could never get it to work in
 DevMode.

 Is there a 1-2-3 type tutorial available that can get me started?

 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: GWT For ASP.Net

2010-04-12 Thread Jan Ehrhardt

No, there is nothing special for ASP.Net.

In general a GWT application is a real client application, that can use 
a RESTful web service to request data from a server. So developing a GWT 
application is like developing a desktop application, that runs inside 
the browser. So it should be easy to develop both (client and server) as 
separate projects and just define a RESTful API between both.


Regards
Jan Ehrhardt

Am 12.04.10 12:27, schrieb akhil:

Is Google Providing GWT's Version for ASP.Net...?




   


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



Re: ResizeComposite

2010-04-08 Thread Jan Ehrhardt
A Composite wraps another Widget. A ResizeComposite wraps a Widget, that 
implements HasLayout, since it will delegate resizing to it. A Button 
does not implement HasLayout, so it cannot be wrapped by ResizeComposite.


Regards
Jan Ehrhardt

Am 08.04.10 12:22, schrieb gadaleta.marco:

When I try to add to RootPanel a class that extends ResizeComposite
(in this class i add only a simple button),
I receive this error message: LayoutComposite requires that its
wrapped widget implement HasLayout.

Can anyone, help me??
Txh, Marco

   


--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Architectural ideas for a multi-app/module project

2010-04-06 Thread Jan Ehrhardt
What is about Gadgets with Apache Shindig http://shindig.apache.org/?

You can also use GWT 2.0's code splitting feature. Compile one big app, but
split the resulting JavaScript code into different modules. You can then
load only the required ones into the browser. The only problem is, that you
have to recompile the whole big app each time code has changed.

Regards
Jan Ehrhardt

2010/4/6 Jon Vaughan jsvaug...@gmail.com

 Hi all.

 I'm beginning to build a set of GWT applications for a client.

 The clients customers will purchase a set of these applications (not
 necessarily all of them) and when deployed these applications will
 work together (imagine, for example, a 'Contacts' app, a 'Billing'
 app, 'Timerecording' etc), linking back and forward between
 information in each.

 The client has a requirement that each app is independently
 deployable.  This would rule out the option of a monolithic compile
 despite its many advantages (optimization, memory footprint etc)

 - However they would also like the apps to all exist in a single
 window, to prevent confusion about pop-ups etc
 - And all of this has to work on relatively low powered machines and
 be IE6 compatible

 Possible options are iframes or a portal framework but in my view both
 of those are fairly horrible.  Iframes are going to mean history and
 inter app communication issues.  Portal frameworks mean an extra layer
 of effort, especially working out how to integrate the inter-portal
 communication with gwt.

 Alternatively I need to work out how to circumvent their independently
 deployable requirement.  Certainly there are enormous advantages to
 the single GWT compile.  The problem for the client is that if the UI
 has a common custom widget used in a couple of the apps, modifying it
 would mean retesting all apps that make use of it.  One solution to
 this I suppose is total codebase independence, with no common
 dependencies, or versioned widgets somehow, and I could argue for that
 style of approach.

 So I was wondering, does anyone have any alternative ideas, or
 thoughts about how they would approach the same situation

 Thanks

 Jon












 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: iFrame

2010-04-06 Thread Jan Ehrhardt
The problem is, that each Widget has a DOM Element it wraps. This DOM
Element is created by the document.createElement('tagname') JavaScript
method and the call to this method is not accessible to you, since it is
wrapped by GWT's Document class.

An iframe contains it's own document, so you would have to hack each Widget
class to redirect the document.createElement call to the iframe's content
document.

The only solution to this might be, using Deferred Binding to replace the
GWT class Document, which wraps the call to document.createElement. Your
implementation would require to change the document object, the class
delegates to, dynamically. This solution is not simple since you'll have to
find a secure way of changing the delegate object without crashing GWT as a
whole.

So it might work, but I won't recommend.

Regards
Jan Ehrhardt

2010/4/6 gadaleta.marco gadaleta.ma...@gmail.com

 Thx. But if i want to add a widget element, a flextabale for
 example???

 On 6 Apr, 16:46, mariyan nenchev nenchev.mari...@gmail.com wrote:
  Hi,
 
  Frame frame = new Frame();
 
  frame.setUrl(url);

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: iFrame

2010-04-06 Thread Jan Ehrhardt
I would create two modules in my GWT app. The first module is the
application itself, it will be started and runs as expected. The second
module contains only these parts, that are required to run inside the
iframe. You can create the iframe and load your app's JavaScript into the
iframe's  document too, but you don't start the app again, instead you're
only starting the second module. Your app will require some logic to access
the objects in this second module running inside the iframe.

If your caching is configured well, this won't result in two HTTP requests
for the same JavaScript file.

You can also use code splitting to prevent the browser from loading one big
JavaScript file twice, instead it would load two JavaScript files, one for
the app and one very small for the iframe.

Regard
Jan Ehrhardt

2010/4/6 Marco Gadaleta gadaleta.ma...@gmail.com


 Can you tell me how i can load a flextable into a page that isn't the main
 project page ?
 .
 2010/4/6 Marco Gadaleta gadaleta.ma...@gmail.com

 On android for example, the scrolls of scrollpane are not visible.
 If i can embedded a Flextable inside a iframe i can use the android
 browser scrollbar system...
 That's the right

 2010/4/6 mariyan nenchev nenchev.mari...@gmail.com

 Why do you need to add widget in frame? Makes no sense! Frame loads other
 page if you want to have a widget in the frame you have to add it in some
 way in the other page. :)

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




 --
 Marco




 --
 Marco

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Question on inheriting a module

2010-04-06 Thread Jan Ehrhardt
Since the GWT compiler is a compiler, it requires the source code, it should
compile, as it's input. If you distribute parts of your application as a
JAR, the JAR has to contain the source files, since the GWT compiler
requires them. So you'll have to include all source files in the JAR, that
are required by the GWT compiler to compile. Source files that should not be
compiled by the GWT compiler, must not be included.

Regards
Jan Ehrhardt

2010/4/7 snehil parekh snehil.par...@gmail.com

 Hi,

 As per to my unserstanding, when inheriting any gwt client module (in
 gwt.xml), the entire source of that module should be available in the
 included jar.

 My requirement is, I want to include a few set of client classes in jar,
 but unable to include them until i package the entire source code into the
 jar?

 Please let me know if it is possible ?

 Thanks,
 Snehil Parekh.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Graphical javascript objects implemented to GWT

2010-03-19 Thread Jan Ehrhardt
First create a subclass of Widget to wrap your graphical object as a GWT
Widget. Assumed that your graphical object requires a DIV element, where
it's created on, do the following in your Widget's constructor:

DivElement element = Document.get().createDiv();
makeMyGraphicalObject(element);
setElement(element);

The above code creates a DIV element initializes your graphical object on
that element and makes the element the DOM node of your Widget. Panels will
call getElement() on your object, to attach it.
makeMyGraphicalObject method can look like this:

private native void makeMyGraphicalObject(DivElement element) /*-{
$wnd.makeMyGraphicalObjectJavaScriptMethod(element);
}-*/;

If your graphical object requires, that the DIV is already attached to the
DOM, it will be more complicated. Widget class has some methods like
onLoad() (starting with on), which are called before and after attaching or
detaching. Override them to handle this special case.

Regards
Jan Ehrhardt

2010/3/18 yann menesguen yann.menesg...@gmail.com

 Hello,

 I've a problem : I've got a .js graphical object (coverflow) that I
 would like to integrate into a GWT project.
 How is it possible with JSNI ? How can I add it into a container to
 show it on my browser ?

 I'm sorry I'm a new adept of GWT and I don't have all the technical
 experience...

 Thanks for your help !

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Dropping IE6 support

2010-03-19 Thread Jan Ehrhardt
Google can drop IE 6 support from it's products, if they see, that their
users have modern browsers. But this isn't true for the whole web and all
GWT users. Many enterprise customers still want IE 6 support.

You can already drop IE 6 support for your GWT app by using things, IE 6
can't handle. You can use ImageResoures in your CSS, which doesn't work
correctly in IE 6. You can use div:hover CSS selector in your code to
highlight an element. In IE 6 it isn't working, but it's up to you.

So why should GWT Team drop IE 6 support  in general?

Regards
Jan Ehrhardt

2010/3/19 Rade Martinović rocky...@gmail.com

 I believe that Service Pack 2 brings IE7 with it. Not installing service
 packs is HUGE security risc.

 Basically, I agree with Patrick Tucker here. Getting something to work in
 IE6 not only produces huge amount of effort for toolkit developers, but also
 for us, the end users of the toolkit.
 --
 ~~Rade~~


 2010/3/17 Michail Prusakov michail.prusa...@gmail.com

 -1

 35% of our customers use ie 6 and probably will be using it for quite
 a while as it comes with XP

 On Mar 17, 2:20 pm, Erron erron.aus...@gmail.com wrote:
  -1
 
  I'm sure I'm not the only one who still has clients that still use
  IE6.  The population of users still using IE6 is still too big to be
  disregarded.
 
  On Mar 17, 7:45 am, Rocky rocky...@gmail.com wrote:
 
   Since Google started advising its users to drop IE6, and will be
   dropping IE6 support from its applications such as GMail, when can we
   expect definite break with IE6 support in GWT?
 
   What do you think about dropping IE6 support completely from GWT? It
   would make some big changes in code and many workarounds that are
   existent in current code would be gone, and code would be a lot
   cleaner?

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.



Extending UI-Binder

2010-03-10 Thread Jan Ehrhardt
Hi,

I would like to extend the UI-Binder to handle custom types. In my case
these are SVG DOM elements. I would like to do something like:

g:HorizontalPanel
  SVG
rect ... /
circle ... /
  /SVG
/g:HorizontalPanel

In the above example, SVG is a subclass of Widget, that wraps the svgweb
library (http://code.google.com/p/svgweb/). The 'rect' and 'circle' tags
should be handled as subclasses  of Element, like 'div' tags in the
HTMLPanel. Of cause, I want to bind a RectElement object in my Java class to
the 'rect' tag in my ui.xml file.

I know, that UI-Binder uses deferred binding by parsing the XML and
generating an implementation of UIBinder interface for compiling, but how
can I extend this by my own handler for doing the above stuff?

Regards
Jan Ehrhardt

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Debugging gwt scripts deployed on Websphere and IBMHttpserver

2010-03-07 Thread Jan Ehrhardt
Debugging your GWT project in development (aka hosted) mode, allows you to
specify an different server. You have to disable the internal server in the
launch configuration and add a program argument -startupUrl
http://address-of-my-host-page;.

It is important, that the HTML loaded by this address contains a compiled
JavaScript of the module (can be an older version) to tell the development
mode that it's time to work now.

You can also change your Java code and test them.

Regards
Jan Ehrhardt

On Sun, Mar 7, 2010 at 11:01 PM, myapplicationquestions 
parag.bhag...@cgi.com wrote:

 Hi All,

 Is it possible to debug GWT scripts deployed onto websphere?

 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: GWT team, please post latest to repo1.maven.org

2010-02-18 Thread Jan Ehrhardt
Thanks.

But the question remains, how to improve the process?

Regards
Jan Ehrhardt

On Thu, Feb 18, 2010 at 2:56 PM, Martin D'Aloia martindal...@gmail.comwrote:

 check http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.0.2/

 it's uploaded :)

 thanks to who did that

 On Wed, Feb 17, 2010 at 6:36 PM, Yaakov Chaikin 
 yaakov.chai...@gmail.comwrote:

 Well, doesn't have to be someone from Google though??? The central
 maven repository has a policy where you have to prove that you own
 the domain before you can upload artifacts with com.google.x.

 Yaakov.

 On Wed, Feb 17, 2010 at 3:03 PM, Isaac Truett itru...@gmail.com wrote:
  This question comes up with every release, it seems. The GWT team
  doesn't maintain GWT  versions in the maven repository. I don't know
  the name of the person who does, but you might be able to find it in a
  past discussion.
 
 
 
  On Wed, Feb 17, 2010 at 1:58 PM, Yaakov yaakov.chai...@gmail.com
 wrote:
  Does anyone have any updates regarding this? Is this imminent or is it
  going to be a while before it's posted?
 
  (Yes, I know I can just import it myself by creating my own custom
  pom, but I'd rather not have to do that.)
 
  thank you,
  Yaakov.
 
  On Feb 16, 1:49 pm, Yaakov yaakov.chai...@gmail.com wrote:
  Dear GWT team,
 
  Could you please post the latest release of GWT SDK (2.0.2) to the
  maven repository site repo1.maven.org? Currently, only release up to
  2.0.1 are posted there.
 
  Thank you,Yaakov.
 
  --
  You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
  To post to this group, send email to
 google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: MVP question

2010-02-15 Thread Jan Ehrhardt
The presenter does sorting, mapping etc. The view even has no direct
dependency to the presenter. If the view requires to notify the presenter,
it will have to fire an event to the presenters event handlers.

In your case, it would be cleaner to put the information, which contact will
be displayed in wich row, into the presenter. The presenter should fill each
table cell, while the table doesn't know anything about its content.

You can think of the view as the most stupid part of your application. The
view only does initalization and layout of the ui components, that's it. It
provides methods to access some of the components like text field or labels,
but all the logic is in the presenter.

Regards
Jan Ehrhardt

On Sun, Feb 14, 2010 at 10:02 PM, Yaakov yaakov.chai...@gmail.com wrote:

 Hi all,

 Am I correct in my understanding that the View NEVER has any
 dependencies on the model? I.e., whatever sorting, mapping, etc needs
 to be done between the view and the data, it's the Presenter that
 holds the real data and just sets simple strings to the View?

 So, following this and the Contacts example on GWT site, it would be
 **incorrect** to create a ContactsFlexTable that would keep track of
 which Contact is assigned to which row index in the table, right?

 Thanks,
 Yaakov.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Who uploads GWT to Maven

2010-02-14 Thread Jan Ehrhardt
Well Maven is not bad in practice, the problem is, that Maven support is not
handled well by the GWT team.

My original question still isn't answered. Who does the uploads and how can
I help to bring future versions earlier into Maven repo?

The best would be, if GWT team finds an automated way, which is part of the
GWT build. This could help to bring releases to Maven repo at same time.

Regards
Jan Ehrhardt

On Sun, Feb 14, 2010 at 2:05 AM, charlie charlie.f...@gmail.com wrote:

 I'm going to hate and say 'yet another reason maven is good in theory and
 bad in practice'.


 On Sat, Feb 13, 2010 at 5:59 PM, bkbonner brian.bon...@paraware.comwrote:

 When will 2.0.2 get out to repo1.maven.org?

 On Feb 8, 8:30 am, Ben Harris bharri...@gmail.com wrote:
  It is in there...? Since 5th Feb.
 http://repo1.maven.org/maven2/com/google/gwt/gwt-user/
 
  On Feb 8, 8:20 pm, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
 
 
 
   Hi,
 
   currently GWT 2.0 is available inMaven'srepo1, but GWT 2.0.1 is
 released
   since last week.
   So, who does the uploads to the publicMavenrepo? Is there a POM
 available,
   that is used for uploading? Can I help in any way to speed up the
 uploading
   toMaven?
 
   The best case would be, if new GWT releases were available
 throughMaven
   from day one. Anything bringing me closer to this is welcome.
 
   Regards
   Jan Ehrhardt

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: jQuery

2010-02-09 Thread Jan Ehrhardt
The $ method is in the global namespace, which cannot be accessed from GWT
native JS code directly. You'll have to use the $wnd variable instead, which
brings the global namespace to GWT. So the first method of the simple
example has to look like this:

public static native Object query(String selector) /*-{
   return($wnd.$(selector));
}-*/;

Regards
Jan Ehrhardt

On Tue, Feb 9, 2010 at 9:30 AM, dougx douglas.lin...@gmail.com wrote:

 There's no magic to this; just add jquery to the page as a javascript
 include and then use JSNI to invoke various calls.

 Here is a trivial example:

 public static native Object query(String selector) /*-{
return($(selector));
 }-*/;

 public static native void hide(Object target) /*-{
   target.hide();
 }-*/;

 public void javaTest() {
Object objects = query(.mytarget);
hide(objects);
 }

 If you want to have access to a more 'complete' jquery interface, you
 can have a look at the GQuery project; you'll have to get the source
 and rebuild it yourself, however, to use it with 2.0

 ~
 Doug.

 On Feb 9, 3:41 pm, muhannad nasser muhannadna...@gmail.com wrote:
  Dear all;
 
  can u please tell me how to use jQuery in GWT... do i need to add
 something
  to xml files. and how to call the jQuery functions
 
  thanks
 
  --
  ~~~With Regards~~~
  Muhannad Dar-Nasser
  ~~Computer Systems Engineering~~

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.



Who uploads GWT to Maven

2010-02-08 Thread Jan Ehrhardt
Hi,

currently GWT 2.0 is available in Maven's repo1, but GWT 2.0.1 is released
since last week.
So, who does the uploads to the public Maven repo? Is there a POM available,
that is used for uploading? Can I help in any way to speed up the uploading
to Maven?

The best case would be, if new GWT releases were available through Maven
from day one. Anything bringing me closer to this is welcome.

Regards
Jan Ehrhardt

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Who uploads GWT to Maven

2010-02-08 Thread Jan Ehrhardt
Oh, I looked at http://mvnrepository.com but it seems not to be up to date.

Regards
Jan Ehrhardt

On Mon, Feb 8, 2010 at 2:30 PM, Ben Harris bharri...@gmail.com wrote:

 It is in there...? Since 5th Feb.
 http://repo1.maven.org/maven2/com/google/gwt/gwt-user/

 On Feb 8, 8:20 pm, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  Hi,
 
  currently GWT 2.0 is available in Maven's repo1, but GWT 2.0.1 is
 released
  since last week.
  So, who does the uploads to the public Maven repo? Is there a POM
 available,
  that is used for uploading? Can I help in any way to speed up the
 uploading
  to Maven?
 
  The best case would be, if new GWT releases were available through Maven
  from day one. Anything bringing me closer to this is welcome.
 
  Regards
  Jan Ehrhardt

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



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



Re: GWT support for Grails/Groovy domain objects

2010-01-27 Thread Jan Ehrhardt
Wow, I didn't recognize this feature. It's great, but it would only work, if
Hibernate is used as a JPA provider.

More on this:
http://code.google.com/intl/de/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
Look at the 'Serializing Enhanced Classes' section.

Regards
Jan Ehrhardt

On Wed, Jan 27, 2010 at 5:55 PM, Matt Moriarity matt.moriar...@gmail.comwrote:

 I read that GWT 2.0 supports serializing enhanced objects from JDO or
 JPA. So if they are hibernate objects, wouldn't the JPA support cover
 that?

 On Jan 27, 1:30 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  The problem is the GWT RPC's serialization, which can't work with objects
  created by hibernate. You can use the DTO Grails plugin (
 http://www.grails.org/plugin/dto) or you can use JSON / REST for
  communication.
 
  In the case of a Grails app, which comes with great support for REST /
 JSON,
  I would prefer the second way.
 
  Regards
  Jan Ehrhardt
 
  On Wed, Jan 27, 2010 at 4:37 AM, Don Ruby, Ramp;D 
 
 
 
  donald.r...@mindspring.com wrote:
   GWT is the obvious choice for UI. But if you want to use Grails/Groovy
   for server side, you have to either code messy DTOs or client side
   POJOs.  It would be nice if GWT would support using the Grails/Groovy
   domain objects directly on the client.  Any chance of that happening?
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: GWT support for Grails/Groovy domain objects

2010-01-27 Thread Jan Ehrhardt
Oh I forgot to say, that Grails support JPA through the GORM-JPA Plugin
http://www.grails.org/plugin/gorm-jpa.

Regards
Jan Ehrhardt

On Thu, Jan 28, 2010 at 7:51 AM, Jan Ehrhardt
jan.ehrha...@googlemail.comwrote:

 Wow, I didn't recognize this feature. It's great, but it would only work,
 if Hibernate is used as a JPA provider.

 More on this:
 http://code.google.com/intl/de/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
 Look at the 'Serializing Enhanced Classes' section.

 Regards
 Jan Ehrhardt


 On Wed, Jan 27, 2010 at 5:55 PM, Matt Moriarity 
 matt.moriar...@gmail.comwrote:

 I read that GWT 2.0 supports serializing enhanced objects from JDO or
 JPA. So if they are hibernate objects, wouldn't the JPA support cover
 that?

 On Jan 27, 1:30 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  The problem is the GWT RPC's serialization, which can't work with
 objects
  created by hibernate. You can use the DTO Grails plugin (
 http://www.grails.org/plugin/dto) or you can use JSON / REST for
  communication.
 
  In the case of a Grails app, which comes with great support for REST /
 JSON,
  I would prefer the second way.
 
  Regards
  Jan Ehrhardt
 
  On Wed, Jan 27, 2010 at 4:37 AM, Don Ruby, Ramp;D 
 
 
 
  donald.r...@mindspring.com wrote:
   GWT is the obvious choice for UI. But if you want to use Grails/Groovy
   for server side, you have to either code messy DTOs or client side
   POJOs.  It would be nice if GWT would support using the Grails/Groovy
   domain objects directly on the client.  Any chance of that happening?
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 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.comgoogle-web-toolkit%2bunsubscr...@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: MVP Question

2010-01-26 Thread Jan Ehrhardt
Hi Ronald,

I would recommend to ways:

You should configure two GIN modules. One for authorization type A and one
for B. This will allow you to configure the dependency in different ways.
The authorization type will become a global property of your application. In
your EntryPoint, you could have something like this:

switch(authorization) {
case A:
  ginjectorA.getPresenter();  // will create a presenter and its dependent
view for auth type A
case B:
  ginjectorB.getPresenter();  // will create a presenter and its dependent
view for auth type B
}

You should always recognize that each 'Ginjector' is a couple of
configurations. It could look like this:

@GinModules({ModuleA.class})
public interface GinjectorA extend Ginjector {

Presenter getPresenter()

}

@GinModules({ModuleB.class})
public interface GinjectorB extend Ginjector {

Presenter getPresenter()

}

So your ModuleA's configure method can look like this:

public void configure() {
  bind(Presenter.class).to(MyPresenter.class);
  bind(View.class).to(ViewA.class);
}

ModuleB looks similar.
The benefit of this solution is, that you can do the same for other views
and dependencies too. You've got just one point where the global information
of the authorization type comes in.

The second way would be to create a provider that does the job. Your
presenter gets a dependency to the provider  and the provider's 'get' method
does the check. A provider is similar to a factory, but it isn't one.

The idea of DI is to keep your code clean and in both cases it is done.

Regards
Jan Ehrhardt


On Mon, Jan 25, 2010 at 6:15 PM, rmuller rmul...@xiam.nl wrote:

 Hi Jan.

 Guess what .. I am reading Dependency Injection (Dhanji R. Prasanna)
 at this moment :)
 So this was one of the things why I doubt my design. But I really do
 not understand how DI (GIN) should
 be applied in my case:
 - A Presenter uses several Views. The view depends on the
 authorization (implemented as enum). Now I do something like:

 switch (authorization) {
case A:
 view = new View(fieldSpecA);
 break;
case B:
 // etc

 }

 Regards,
 Ronald

 On 25 jan, 17:18, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  The reason, why another class creats both and than puts the view into the
  presenter is called Dependency Injection. It is a widely used pattern,
 that
  means that you should inject dependencies into classes instead of using
  factories or doing something like 'new DependentClass()' in the
 constructor.
  In the best case, your presenter refers to a view interface and gets its
  view implementation injected.
 
  The easiest way of doing Dependency Injection in GWT is GIN (
 http://code.google.com/p/google-gin). It allows you to configure
  dependencies and let GIN do the creation of objects and put one into
 another
  at runtime.
 
  Dependency Inection is one of the best practices in GWT (and Java too)
  development (http://www.youtube.com/watch?v=PDuhR18-EdM)
 
  Regards
  Jan Ehrhardt
 
 
 
  On Mon, Jan 25, 2010 at 2:54 PM, rmuller rmul...@xiam.nl wrote:
   Should not the Presenter create the view?
   Sometimes you need different views (based on authorization data in my
   case) where you can reuse the Presenter. I let the Presenter decide
   which view to use. I do this in the ctor.
   In all examples I see however, the Presenter and View are created by
   the parent Presenter/AppContext. Also every View has its own Presenter
   (1 : 1). So I wonder if my design is correct.
 
   What is the general opinion about this?
 
   Ronald
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 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.comgoogle-web-toolkit%2bunsubscr...@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: MVP Question

2010-01-26 Thread Jan Ehrhardt
Hmmh, without GIN? Are you sure?

DI is a great pattern, but without a framework that does the job for you
it's really a pain. But for understanding the idea, it might be good.

Better look this talk about Guice (which is GIN for non-GWT)
http://www.youtube.com/watch?v=hBVJbzAagfs
The guys are showing you what's DI without a framework.

Regards
Jan Ehrhardt


On Tue, Jan 26, 2010 at 10:26 AM, rmuller rmul...@xiam.nl wrote:

 Thank you all for the good advice. I am glad I posted the question!

 You convinced me going the DI route. I will try with and without GIN.
 I will let you know or post an follow-up question :)
 (not this week).

 Regards,

 Ronald

 On Jan 26, 10:03 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  Hi Ronald,
 
  I would recommend to ways:
 
  You should configure two GIN modules. One for authorization type A and
 one
  for B. This will allow you to configure the dependency in different ways.
  The authorization type will become a global property of your application.
 In
  your EntryPoint, you could have something like this:
 
  switch(authorization) {
  case A:
ginjectorA.getPresenter();  // will create a presenter and its
 dependent
  view for auth type A
  case B:
ginjectorB.getPresenter();  // will create a presenter and its
 dependent
  view for auth type B
 
  }
 
  You should always recognize that each 'Ginjector' is a couple of
  configurations. It could look like this:
 
  @GinModules({ModuleA.class})
  public interface GinjectorA extend Ginjector {
 
  Presenter getPresenter()
 
  }
 
  @GinModules({ModuleB.class})
  public interface GinjectorB extend Ginjector {
 
  Presenter getPresenter()
 
  }
 
  So your ModuleA's configure method can look like this:
 
  public void configure() {
bind(Presenter.class).to(MyPresenter.class);
bind(View.class).to(ViewA.class);
 
  }
 
  ModuleB looks similar.
  The benefit of this solution is, that you can do the same for other views
  and dependencies too. You've got just one point where the global
 information
  of the authorization type comes in.
 
  The second way would be to create a provider that does the job. Your
  presenter gets a dependency to the provider  and the provider's 'get'
 method
  does the check. A provider is similar to a factory, but it isn't one.
 
  The idea of DI is to keep your code clean and in both cases it is done.
 
  Regards
  Jan Ehrhardt
 
 
 
  On Mon, Jan 25, 2010 at 6:15 PM, rmuller rmul...@xiam.nl wrote:
   Hi Jan.
 
   Guess what .. I am reading Dependency Injection (Dhanji R. Prasanna)
   at this moment :)
   So this was one of the things why I doubt my design. But I really do
   not understand how DI (GIN) should
   be applied in my case:
   - A Presenter uses several Views. The view depends on the
   authorization (implemented as enum). Now I do something like:
 
   switch (authorization) {
  case A:
   view = new View(fieldSpecA);
   break;
  case B:
   // etc
 
   }
 
   Regards,
   Ronald
 
   On 25 jan, 17:18, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
The reason, why another class creats both and than puts the view into
 the
presenter is called Dependency Injection. It is a widely used
 pattern,
   that
means that you should inject dependencies into classes instead of
 using
factories or doing something like 'new DependentClass()' in the
   constructor.
In the best case, your presenter refers to a view interface and gets
 its
view implementation injected.
 
The easiest way of doing Dependency Injection in GWT is GIN (
  http://code.google.com/p/google-gin). It allows you to configure
dependencies and let GIN do the creation of objects and put one into
   another
at runtime.
 
Dependency Inection is one of the best practices in GWT (and Java
 too)
development (http://www.youtube.com/watch?v=PDuhR18-EdM)
 
Regards
Jan Ehrhardt
 
On Mon, Jan 25, 2010 at 2:54 PM, rmuller rmul...@xiam.nl wrote:
 Should not the Presenter create the view?
 Sometimes you need different views (based on authorization data in
 my
 case) where you can reuse the Presenter. I let the Presenter decide
 which view to use. I do this in the ctor.
 In all examples I see however, the Presenter and View are created
 by
 the parent Presenter/AppContext. Also every View has its own
 Presenter
 (1 : 1). So I wonder if my design is correct.
 
 What is the general opinion about this?
 
 Ronald
 
 --
 You received this message because you are subscribed to the Google
   Groups
 Google Web Toolkit group.
 To post to this group, send email to
   google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
   cr...@googlegroups.com
 .
 For more options, visit

Re: GWT support for Grails/Groovy domain objects

2010-01-26 Thread Jan Ehrhardt
The problem is the GWT RPC's serialization, which can't work with objects
created by hibernate. You can use the DTO Grails plugin (
http://www.grails.org/plugin/dto) or you can use JSON / REST for
communication.

In the case of a Grails app, which comes with great support for REST / JSON,
I would prefer the second way.

Regards
Jan Ehrhardt

On Wed, Jan 27, 2010 at 4:37 AM, Don Ruby, Ramp;D 
donald.r...@mindspring.com wrote:

 GWT is the obvious choice for UI. But if you want to use Grails/Groovy
 for server side, you have to either code messy DTOs or client side
 POJOs.  It would be nice if GWT would support using the Grails/Groovy
 domain objects directly on the client.  Any chance of that happening?

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: MVP Question

2010-01-25 Thread Jan Ehrhardt
The reason, why another class creats both and than puts the view into the
presenter is called Dependency Injection. It is a widely used pattern, that
means that you should inject dependencies into classes instead of using
factories or doing something like 'new DependentClass()' in the constructor.
In the best case, your presenter refers to a view interface and gets its
view implementation injected.

The easiest way of doing Dependency Injection in GWT is GIN (
http://code.google.com/p/google-gin). It allows you to configure
dependencies and let GIN do the creation of objects and put one into another
at runtime.

Dependency Inection is one of the best practices in GWT (and Java too)
development (http://www.youtube.com/watch?v=PDuhR18-EdM)

Regards
Jan Ehrhardt

On Mon, Jan 25, 2010 at 2:54 PM, rmuller rmul...@xiam.nl wrote:

 Should not the Presenter create the view?
 Sometimes you need different views (based on authorization data in my
 case) where you can reuse the Presenter. I let the Presenter decide
 which view to use. I do this in the ctor.
 In all examples I see however, the Presenter and View are created by
 the parent Presenter/AppContext. Also every View has its own Presenter
 (1 : 1). So I wonder if my design is correct.

 What is the general opinion about this?

 Ronald

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



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



Re: GWT MySQL PHP

2010-01-13 Thread Jan Ehrhardt
GWT can communicate over HTTP requests with any server side technology
supporting HTTP. So your PHP app should provide a (maybe RESTful) interface,
which can be called by Ajax request and uses either JSON or XML as data
format.

I don't know how you can tell PHP to that, but on the GWT site, you should
use the RequestBuilder to create a HTTP request an than parse the result as
JSON.

Make sure your architecture is clean. GWT is for RIAs, so it should be
designed, as it would be able to run without a server. HTTP requests are
just for getting some raw data from the server, so you should care to have a
very slim communication layer between client and server.

Regards
Jan Ehrhardt

On Tue, Jan 12, 2010 at 6:11 PM, ANDRES BRUN andres.b...@gmail.com wrote:

 Hi everybody!

 I have a question about mysql, gwt and php, how can I connect all this in a
 web Application with the new version of GWT? I'm really novice in this but I
 want to learn and to practice, I need a guide for dummies. I have a php
 script, and I have a Mysql Database and I have connected this but I don't
 know how connect all this with the new version of GWT. I know the way is
 JSON-RPC but I don't know how this works and How I have to develop them.

 Thank you for your colaboration.

 Regards.

 Andres

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: RPC vs HTTP requests

2010-01-05 Thread Jan Ehrhardt
Hi Jeff,

I don't know why you're binding a Report object to $wnd, but in a standard
case JSON usage would look the following way:

public class Report extends JavaScriptObject {

protected Report() {}

public final static native Report getName() /*-{
return this.name;
}-*/;

public final static native void setName(String name) /*-{
this.name = name;
}-*/;
}

An incoming JSON string looking like this

{name: My Report}

can be parsed the following this way

JSONObject obj = JSONParser.parse(response.getText()).isObject();
if(obj != null) {
  Report myReport = obj.getJavaScriptObject().cast();
  // do something with myReport
}

This has the benefit, that the object only lives as inside your GWT app,
instead of affecting other things.

On Mon, Jan 4, 2010 at 4:01 PM, Jeff Chimene jchim...@gmail.com wrote:

 Sri,

 Thanks.

 I have a question:
 snip

 *Performance*

- Client Side - REST with JSON wins over RPC. Browsers are
exceptionally good at json parsing. It is going to be much faster than 
 GWTs
serialization/deserialization mechanism. This is applicable only if you 
 use
javascript overlays. JSONArray/JSONObject/JSONValue classes don't give you
this performance benefit.


 I've been using the following technique to use the JSON parsing in 2.0. I
 don't see a specific example in the docs:


 Report.set(JSONParser.parse(response.getText()).isObject().getJavaScriptObject());

 Where Report is defined as follows:

 public class Report extends JavaScriptObject {

 protected Report() {}

 public final static native Report get() /*-{
 return $wnd.Report;
 }-*/;

 public final static native void set(JavaScriptObject value) /*-{
 $wnd.Report = value;
 }-*/;
 }

 I don't see any other way to avoid unsafe parsing.

 Comments?
 snip

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: RPC vs HTTP requests

2010-01-05 Thread Jan Ehrhardt
Oh, one mistake in my above sample:

The methods of the Report class shouldn't me static.

Regards
Jan Ehrhardt

On Tue, Jan 5, 2010 at 10:23 AM, Jan Ehrhardt
jan.ehrha...@googlemail.comwrote:

 Hi Jeff,

 I don't know why you're binding a Report object to $wnd, but in a standard
 case JSON usage would look the following way:

 public class Report extends JavaScriptObject {

 protected Report() {}

 public final static native Report getName() /*-{
 return this.name;
 }-*/;

 public final static native void setName(String name) /*-{
 this.name = name;
 }-*/;
 }

 An incoming JSON string looking like this

 {name: My Report}

 can be parsed the following this way

 JSONObject obj = JSONParser.parse(response.getText()).isObject();
 if(obj != null) {
   Report myReport = obj.getJavaScriptObject().cast();
   // do something with myReport
 }

 This has the benefit, that the object only lives as inside your GWT app,
 instead of affecting other things.

 On Mon, Jan 4, 2010 at 4:01 PM, Jeff Chimene jchim...@gmail.com wrote:

 Sri,

 Thanks.

 I have a question:
 snip

 *Performance*

- Client Side - REST with JSON wins over RPC. Browsers are
exceptionally good at json parsing. It is going to be much faster than 
 GWTs
serialization/deserialization mechanism. This is applicable only if you 
 use
javascript overlays. JSONArray/JSONObject/JSONValue classes don't give 
 you
this performance benefit.


 I've been using the following technique to use the JSON parsing in 2.0. I
 don't see a specific example in the docs:


 Report.set(JSONParser.parse(response.getText()).isObject().getJavaScriptObject());

 Where Report is defined as follows:

 public class Report extends JavaScriptObject {

 protected Report() {}

 public final static native Report get() /*-{
 return $wnd.Report;
 }-*/;

 public final static native void set(JavaScriptObject value) /*-{
 $wnd.Report = value;
 }-*/;
 }

 I don't see any other way to avoid unsafe parsing.

 Comments?
 snip

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: RPC vs HTTP requests

2010-01-05 Thread Jan Ehrhardt
Hi Jeff,

I didn't try it yet, but a subclass of JavaScriptOject should
be instantiated by 'GWT.create(Report.class)'. Gin resolves these
dependencies automatically without any configuration (the same with
Constants for i18n, ImageBundles, etc.). You can additionally try
'bind(Report.class).in(Singleton.class)' (I had problems using Singleton
annotations in the past).
I think, it should work, but even a Factory class that does the
instantiation an returns a singleton object might be better than using
native JavaScript to bind it to $wnd object, since it's important to hold
everything in the GWT 'sandbox'.

Regards
Jan Ehrhardt

On Tue, Jan 5, 2010 at 5:11 PM, Jeff Chimene jchim...@gmail.com wrote:



 On Tue, Jan 5, 2010 at 2:23 AM, Jan Ehrhardt 
 jan.ehrha...@googlemail.comwrote:

 Hi Jeff,

 I don't know why you're binding a Report object to $wnd, but in a standard
 case JSON usage would look the following way:



 Hi Jan,

 I want the object to exist across different class instantiations.
 Ordinarily, I'd use gin to inject a singleton where needed, but I couldn't
 get that to work w/ JSNI. Perhaps it does w/ 2.0. It wasn't the best example
 for a post to the group, but  it's what I had at hand.



 public class Report extends JavaScriptObject {

 protected Report() {}

 public final static native Report getName() /*-{
 return this.name;
 }-*/;

 public final static native void setName(String name) /*-{
 this.name = name;
 }-*/;
 }

 An incoming JSON string looking like this

 {name: My Report}

 can be parsed the following this way

 JSONObject obj = JSONParser.parse(response.getText()).isObject();
 if(obj != null) {
   Report myReport = obj.getJavaScriptObject().cast();
   // do something with myReport
 }

 This has the benefit, that the object only lives as inside your GWT app,
 instead of affecting other things.

 On Mon, Jan 4, 2010 at 4:01 PM, Jeff Chimene jchim...@gmail.com wrote:

 Sri,

 Thanks.

 I have a question:
 snip

 *Performance*

- Client Side - REST with JSON wins over RPC. Browsers are
exceptionally good at json parsing. It is going to be much faster than 
 GWTs
serialization/deserialization mechanism. This is applicable only if you 
 use
javascript overlays. JSONArray/JSONObject/JSONValue classes don't give 
 you
this performance benefit.


 I've been using the following technique to use the JSON parsing in 2.0. I
 don't see a specific example in the docs:


 Report.set(JSONParser.parse(response.getText()).isObject().getJavaScriptObject());

 Where Report is defined as follows:

 public class Report extends JavaScriptObject {

 protected Report() {}

 public final static native Report get() /*-{
 return $wnd.Report;
 }-*/;

 public final static native void set(JavaScriptObject value) /*-{
 $wnd.Report = value;
 }-*/;
 }

 I don't see any other way to avoid unsafe parsing.

 Comments?
 snip

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: RPC vs HTTP requests

2010-01-04 Thread Jan Ehrhardt
Hi Sripathi,

I agree with that, except one addition to the point 'Ease of Use':

REST requires to write JavaScript overlay classes, that's right. But RPC
requires to write transfer object classes, if your domain objects are
generated by a persistence framework.
I would expect, that most projects use a persistence framework instead of
doing the persistence by hand. So the benefit of sending Java objects
directly to the browser becomes more theoretical point. Thus you'll have to
write additional classes for transferring data in both cases, or you'll have
to do the additional work by writing your own persistence layer (which is
last I would recommend).

Regards
Jan Ehrhardt

On Mon, Jan 4, 2010 at 2:40 AM, Sripathi Krishnan 
sripathi.krish...@gmail.com wrote:

 At the expense of repeating a few points already mentioned, here's my
 summary -
 *
 Server Platform*

1. If you are using a non-java platform on server side, GWT RPC is not
an option.
2. If you want to integrate with existing thirdparty services or do
mashups, you'd have to use REST. In that case, you may want to use REST for
your services as well, just to be consistent.
3. If you are already using a json - java - json library, you are
perhaps already invested in REST, and so should stick to that approach.

 *Reusability of Services*

- If you want to reuse services with other non-GWT projects, REST with
JSON  XML is the only option.


1.

 *Ease of Use / Abstraction*

- GWT RPC wins hands down. Its easy to get started, and provides a
great abstraction.
- With RPC, the developer *feels* he is invoking a normal java method.
With REST apis, the developer has to know that he is dealing with HTTP. Of
course you can have an abstraction over REST, but then you'd have to write
that abstraction layer.
- REST with JSON requires a Javascript overlay object, which requires
some hand-coding. It isn't too bad, but slows new developers if you compare
with RPC.

 *Performance*

- Client Side - REST with JSON wins over RPC. Browsers are
exceptionally good at json parsing. It is going to be much faster than GWTs
serialization/deserialization mechanism. This is applicable only if you use
javascript overlays. JSONArray/JSONObject/JSONValue classes don't give you
this performance benefit.
- Server side, comparison is a bit more difficult. A lot depends on how
you are generating your JSON stream. GWT RPC uses reflection, so a 
 framework
that avoids reflection to generate JSON is going to be faster - but that 
 may
be an oversimplification.

 *Separation of Concern*

- Both have a great separation of concern. Its largely a perception
issue.
- REST obviously has a great distinction between client and server.
- RPC also has a great separation, though it doesn't appear at first.
You really cannot intermingle client and server code even if you want to -
the code will just not compile. A lot of people think that just because it
is java, you can use any server side code. In reality, the only way to
communicate is via well-defined RPC interfaces.

 *Server objects serialization problem*

- This is a moot point. Both approaches are inconvenient.
- With GWT RPC, you cannot send persistent objects across the wire. But
then, you can't do that with REST either. You really have to convert server
side objects into something the client can understand, that's the state of
technology.
- The typical workaround is creating simple beans that wrap the
underlying hibernate/database object. Its a pain, but its no different from
what you'd end up doing with REST. The javascript overlay object you create
on the client is also a bean that wraps the underlying json - and you still
have to create it manually.


 --Sri


 2010/1/4 Jan Ehrhardt jan.ehrha...@googlemail.com

 Hi Nathan,

 even, if I'm using Java on a server, I would prefer REST with JSON, since
 most of my server side projects are Spring based.
 My experience with GWT RPC and Spring is, that it's harder to integrate
 than doing some REST. With Spring 3.0 REST even becomes much more easier. A
 further point is the JPA serialization problem, I already told about. It
 will kill all the benefit of using GWT for serialization.

 A least I would expect, that in the Spring case REST can be much more
 productive than RPC.

 So I would add a fourth point to your list:

 (4) You're not using Spring (or Grails) on server side.

 Regards
 Jan Ehrhardt


 On Sun, Jan 3, 2010 at 10:34 PM, Nathan Wells nwwe...@gmail.com wrote:

 I don't agree about the separation of concerns factor with GWT-RPC.
 GWT has gone to great lengths (to the point of being annoying in my
 case) to ensure that a developer knows exactly where the code is that
 is being written.

 As far as the RPC vs RESTful debate, I think most everyone would agree
 that REST is better from an abstract

Re: RPC vs HTTP requests

2010-01-03 Thread Jan Ehrhardt
RPC means, that you can write Java Code for your browser, that invokes the
methods of an server side object. It also provides a complete build in
serialization for your Java objects.
HTTP request means, that your doing a normal Ajax / HTTP request to an URL.

Which solution is better, depends on what you're doing. If you're using
Spring or Grails on your server, I would recommend to use HTTP with JSON as
the exchange format. HTTP with JSON is supported by GWT through JavaScript
overlays and build into Spring 3.0. If you're using PHP, Ruby or any other
technology on the server, that is not Java Servlet based, I would also
recommend HTTP.

RPC is only great, if you're writing servlets yourself. GWT provides an out
of the box servlet implementation for RPC, which can be used.

Another bad thing on RPC is the serialization. Many people believe, that
they can load there objects from a database through Hibernate or JPA and
than, they can directly forward these objects to the Browser using RPC, but
that isn't possible. The serialization isn't possible on objects created by
persistence frameworks, so you'll need to convert them to a serializable
transfer object, or you're writing your own persistence layer.

So for me RPC makes only sense in some special use cases. HTTP with JSON is
supported by most server side frameworks, it is much more flexible (e. g.
JSON-P for cross domain requests) than RPC and thanks to JavaScript overlays
it isn't more work to do (even less work with Spring 3.0, since Spring RPC
integration is more pain).

Regards
Jan Ehrhardt

On Sun, Jan 3, 2010 at 12:46 AM, Pion onlee2...@gmail.com wrote:

 Communicate with a Server -

 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideRemoteProcedureCalls
 - article mentions about RPC and HTTP techniques.

 I am wondering what the pros and cons using RPC vs HTTP (doGet(),
 doPost()) requests?

 Most of the GWT samples are based on RPC. Is RPC technique a better/
 recommended way?

 Thanks in advance for your help.

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: RPC vs HTTP requests

2010-01-03 Thread Jan Ehrhardt
Lucas, I don't agree with you.

I would recommend to use HTTP, since you can use JSON instead of XML and
JSON objects are directly available to your GWT app (JavaScript overlays).

Furthermore in a RIA architecture (that's what GWT is developed for) you
should have clear separation between your client (GWT app inside the
Browser) and your server. this means, that your server should provide a well
defined flexible and easy to use service interface, to call for data
(includes writing of data). Such an interface can be done best by using a
RESTful architecture. So you'll get two benefits, your GWT client can call
the interface using JSON as exchange format and other clients can do the
same with XML, if they prefer. Most frameworks support JSON and XML for REST
out of the box, so you can just place a format property in the HTTP request.

Another point is, that RPC makes it much easier to mix client and server
code. This means, that your separation of what belongs to the client and
what belongs to the server won't be as clear and independent of each other.
REST instead will decouple both very well. So your client depends on a
RESTful interface but not on server side technology. You can even switch the
server to a complete new .NET implementation as long as it provides the same
RESTful API.

Regards
Jan Ehrhardt

On Sun, Jan 3, 2010 at 12:12 PM, Lucas Vargas Freitas Ventura 
lucasvfvent...@gmail.com wrote:

 Sorry Pion, you are correct. Http supports syn and asyn calls.

 When you are using Http, you receive from the server or Xml file or a
 String (Key:value). It work fine for simple applications.

 But when you are building large and complex applications, you follow some
 design patterns (MVC for example) to help you. I think that using RPC is
 better in this case, you don't need to worry about the Http state, don't
 need to convert your Xml response, you just receive the java object that
 you create in the server, all information that you need with easy access.

 (sorry for the bad english)


 On Sat, Jan 2, 2010 at 11:56 PM, Yozons Support on Gmail yoz...@gmail.com
  wrote:

 RPC serializes basic java objects and your javabeans based on them, giving
 you a nice model for programming since in GWT it's all Java when
 programming.  If you use HTTP, you can post name-value string pairs, and
 then you'll have to process the response string.  It's just much less
 powerful, but may work fine for you.  I mean, the traditional web browser
 uses this technique, but it does mean handling errors and URL encoding your
 data to send and parsing the response.

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




 --
 Lucas V. F. Ventura
 Ciência da Computação - UFRJ

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

 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: RPC vs HTTP requests

2010-01-03 Thread Jan Ehrhardt
Hi Nathan,

even, if I'm using Java on a server, I would prefer REST with JSON, since
most of my server side projects are Spring based.
My experience with GWT RPC and Spring is, that it's harder to integrate than
doing some REST. With Spring 3.0 REST even becomes much more easier. A
further point is the JPA serialization problem, I already told about. It
will kill all the benefit of using GWT for serialization.

A least I would expect, that in the Spring case REST can be much more
productive than RPC.

So I would add a fourth point to your list:

(4) You're not using Spring (or Grails) on server side.

Regards
Jan Ehrhardt

On Sun, Jan 3, 2010 at 10:34 PM, Nathan Wells nwwe...@gmail.com wrote:

 I don't agree about the separation of concerns factor with GWT-RPC.
 GWT has gone to great lengths (to the point of being annoying in my
 case) to ensure that a developer knows exactly where the code is that
 is being written.

 As far as the RPC vs RESTful debate, I think most everyone would agree
 that REST is better from an abstract interface perspective. However,
 in many cases RPC is faster to develop in, GWT RPC is a faster
 transport, and makes life easier than json and overlay types. This is,
 of course, IMHO.

 Not that I'm saying GWT-RPC is a silver bullet. I'm just saying if the
 following are true for you, then GWT-RPC may be good for you:

 (1) My GWT-based webapp is (and will always be) the only consumer of
 my server resources (i.e. servlets)
 (2) A Java server will always be used
 (3) In a tradeoff between perfect design and perfect performance, I
 tend towards performance.

 On Jan 3, 9:21 am, Duong BaTien duong.bat...@gmail.com wrote:
  Hi Jan:
 
  I am with you on the separation of concern between GWT client and server
  using JSONP. Have you look athttp://google-web-
  toolkit.googlecode.com/svn/javadoc/2.0/index.html in GWT trunk and work
  out a solution with a REST framework such as Restlet. Please share your
  experience.
 
  Duong BaTien
  DBGROUPS and BudhNet
 
 
 
  On Sun, 2010-01-03 at 12:32 +0100, Jan Ehrhardt wrote:
   Lucas, I don't agree with you.
 
   I would recommend to use HTTP, since you can use JSON instead of XML
   and JSON objects are directly available to your GWT app (JavaScript
   overlays).
 
   Furthermore in a RIA architecture (that's what GWT is developed for)
   you should have clear separation between your client (GWT app inside
   the Browser) and your server. this means, that your server should
   provide a well defined flexible and easy to use service interface, to
   call for data (includes writing of data). Such an interface can be
   done best by using a RESTful architecture. So you'll get two benefits,
   your GWT client can call the interface using JSON as exchange format
   and other clients can do the same with XML, if they prefer. Most
   frameworks support JSON and XML for REST out of the box, so you can
   just place a format property in the HTTP request.
 
   Another point is, that RPC makes it much easier to mix client and
   server code. This means, that your separation of what belongs to the
   client and what belongs to the server won't be as clear and
   independent of each other.
   REST instead will decouple both very well. So your client depends on a
   RESTful interface but not on server side technology. You can even
   switch the server to a complete new .NET implementation as long as it
   provides the same RESTful API.
 
   Regards
   Jan Ehrhardt
 
   On Sun, Jan 3, 2010 at 12:12 PM, Lucas Vargas Freitas Ventura
   lucasvfvent...@gmail.com wrote:
   Sorry Pion, you are correct. Http supports syn and asyn calls.
 
   When you are using Http, you receive from the server or Xml
   file or a String (Key:value). It work fine for simple
   applications.
 
   But when you are building large and complex applications, you
   follow some design patterns (MVC for example) to help you. I
   think that using RPC is better in this case, you don't need to
   worry about the Http state, don't need to convert your Xml
   response, you just receive the java object that you create in
   the server, all information that you need with easy access.
 
   (sorry for the bad english)
 
   On Sat, Jan 2, 2010 at 11:56 PM, Yozons Support on Gmail
   yoz...@gmail.com wrote:
   RPC serializes basic java objects and your javabeans
   based on them, giving you a nice model for programming
   since in GWT it's all Java when programming.  If you
   use HTTP, you can post name-value string pairs, and
   then you'll have to process the response string.  It's
   just much less powerful, but may work fine for you.  I
   mean, the traditional web browser uses this technique,
   but it does mean handling errors and URL encoding your

Re: How can I work with other people's code in Eclipse?

2009-12-25 Thread Jan Ehrhardt
Best way, check out their source from their SCM. If you've got just the JAR,
unzip it and create a new Java project from existing source, or create a new
Java project and copy the sources into your new clean project.

Regards
Jan Ehrhardt

On Fri, Dec 25, 2009 at 3:43 AM, spierce7 spier...@gmail.com wrote:

 Hey guys, I've been trying for the longest time now to find a way to
 work with other peoples open source projects in eclipse. I've got
 their project in a jar file, and I'm trying to find a way to pull it
 into eclipse and make some modifications. Any help would be much
 appreciated! 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.comgoogle-web-toolkit%2bunsubscr...@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: Help with MVP

2009-12-25 Thread Jan Ehrhardt
In the link, you've provided, there is a simple reason, why the view extends
the HasValue interface. The view is a list of selectable items and if one
item is selected, it should fire a ValueChangedEvent, so the presenter has
to add a ValueChandEventHandler to the view.
If your view doesn't fire any ValueChandedEvent, it shouldn't extend
HasValue interface. Instead it could e. g. extend HasWidgets interface, to
provide methods for adding Widgets.

The reason for decoupling this through such interfaces is, you can provide a
dummy implementation of your view in a unit test. This allows you to test
most of your code (except the view classes) with plain JUnit or TestNG,
instead of using the slow GWTTestCase, which requires to run in special
environment ( a headless hosted mode).

Regards
Jan Ehrhardt

On Fri, Dec 25, 2009 at 3:18 PM, Abdullah Shaikh 
abdullah.shaik...@gmail.com wrote:

 Hi All,

 I have gone through
 http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html,
 but while implementing the code I am bit confused.

 I have GwtApp as EntryPoint, this will initialise AppController and call
 go(), and AppController in turn based on value (string) in onValueChange
 create the presenter, I have fired valuechange by History.newItem(main),
 so that the AppPresenter is created first, which has AppView as View, but
 the view is asking me to implement addValueChangeHandler because the Display
 extends HasValueString as per the link above.

 Below is the code :

 1) GwtApp:

 public class GwtApp implements EntryPoint {
 public void onModuleLoad() {
 AppController appViewer = new AppController();
 appViewer.go(RootPanel.get());
 }
 }



 2) AppController :

 public class AppController implements ValueChangeHandlerString {

 private HasWidgets container = null;
 HandlerManager eventBus =  new HandlerManager(null);

 private void bind() {
 History.addValueChangeHandler(this);
 }

 public void go(final HasWidgets container) {
 this.container = container;

 if (.equals(History.getToken())) {
 History.newItem(main);
 }
 else {
 History.fireCurrentHistoryState();
 }
 }

 public void onValueChange(ValueChangeEventString event) {
 String token = event.getValue();

 if (token != null) {

 Presenter presenter = null;

 if (token.equals(main)) {
 presenter = new AppPresenter(new AppView(), eventBus);
 }

 //add more presenters here based upon the token.

 if (presenter != null) {
 //presenter.go(container);
 }
 }
 }

 }



 3) AppPresenter :

 public class AppPresenter implements Presenter {

 private AppPresenter.Display display = null;

 public interface Display extends HasValueString {
 public HasClickHandlers getLogin();
 public Widget asWidget();
 }

 public void bind() {
 display.getLogin().addClickHandler(new ClickHandler() {

 @Override
 public void onClick(ClickEvent event) {
 eventBus.fireEvent(new LoginClickEvent());
 }
 });
 }

 public net.customware.gwt.presenter.client.Display getDisplay() {
 return null;
 }

 public void revealDisplay() {}
 public void unbind() {}
 public void refreshDisplay() {}
 }


 4) AppView :

 public class AppView extends Composite implements AppPresenter.Display {

 private final Button login;

 public AppView() {
 login = new Button(Login);
 }

 public HasClickHandlers getLogin() {
 return login;
 }

 public Widget asWidget() {
 return this;
 }
 }



 Let me know where am I going wrong ? I think AppPresenter / AppView to be
 the display of the initial application page using other Presenters.


 Thanks,
 Abdullah

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


--

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




Re: GWT newbie have basic question to increase understanding ...

2009-12-16 Thread Jan Ehrhardt
If you talk about GWT, client side allways means inside your browser. GWT
applications are like Desktop applications, which are compiled to JavaScript
and running inside a browser.
The server has to provide a service interface, which can be accessed through
HTTP. This could be a REST / JSON webservice. The GWT application (running
in a browser) calls this webservice for data or sends updates to the
service.

I don't know, how you can create a RESTful webservice with .net, but this
means, that no HTML is generated on the server, the server never knows, what
the client (inside a browser) is really doing and showing. The server's role
is just to provide some raw data.

So the important thing to learn for you is, that GWT only runs inside the
browser and not on the server.

I can't tell you exactly, where you should place your firewall in this
scenario, but I expect that it's filtering all the http requests coming from
outside of your company. So the result would be, that everything behind the
firewall runs on a server, and everything in front of the firewall runs
inside a browser.

Regards
Jan Ehrhardt


On Tue, Dec 15, 2009 at 11:52 PM, Robert Domingo transitio...@gmail.comwrote:

 Hello Mike,

 Thank you for the explanation of client-side versus server-side for my
 initial question. Looks like I'm really off on the understanding of
 this technology. If you can school me a little more I will appreciate
 it since I'm not versed in Java and I need to especially understand
 non-MS technology stacks ...

 1) Does the below mean a proxy of a Java class on a server behind a
 firewall is on the webserver in the DMZ? When you say client-side
 proxy you don't mean client as in browser-client but more the
 webserver in this case, right?
 In GWT-RPC, a client side proxy of a server based Java class is
 instantiated.  When this is
 compiled into Javascript on the client this is translated into a
  client side XMLHTTP request, posting data to a specific server side
  servlet.

 2) I tried to search and read up on security articles regarding AJAX
 on the web, including the security article posted on the 'article'
 section of this Google Group, but without good  JAVA understanding I
 may be confusing myself. With your reply below but more at a basic
 level can I create a dynamic and interactive presentation tier using
 GWT but still make AJAX very secure to talk to business logic tier and
 data tier?
 If your server is not Java, then your options move to GWT
  Form Posting, which will end up looking very similar to the old ASP/
 JSP form post servers, or there is a GWT-JSON method that allows
  submission of data to many brand servers using Javascript Object
  Notation.

 3) What is your recommended technology stack on the webserver in the
 DMZ and application server behind the firewall? If there are so many
 combos what are some combination?
  So to answer your question shorter:  it depends on the technology
  stack that your server has.

 4) If you can provide me your favorite links to where I can try to
 self-educate myself on using GWT in the presentation tier and how GWT-
 RPC/JSON/etc can talk securely to the business logic on another server
 securely I'll appreciate it

 Although I won't be developing the system itself I want to understand
 the technology the developers will using and the infrastructure they
 will be deployed on. I really appreciate your input.

 Sincerely,
 Robert

  Good luck!
 
  On Dec 14, 2:52 pm, Robert Domingo transitio...@gmail.com wrote:
 
   Hello all,
 
   I am trying to understand GWT and AJAX development. I'm not a
   programmer any more but worked closely with developers who worked with
   Microsoft tools.
 
   Initially, or should I say under legacy code, they wrote ASP on IIS
   webserver while they wrote DLLs with VisualBasic6 to register on the
   server behind the firewall. They will then use Microsoft's COM+
   Manager so that they export and install a proxy of the DLL (stub?) on
   the IIS so that depending on user interaction, objects behind the
   firewall can securely be instantiated by the ASP. In the modern times
   that was replaced with the ASP.NET on the front with webservices
   (VB.NET, C#) behind the firewall and utilizing the Microsoft .NET
   framework.
 
   Sorry above was a long background but the actual question is simpler:
   so I'm trying to understand what is the equivalent in the world of
   AJAX  GWT for instantiating an object from the front end?
 
   Thank you.
   Robert

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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

Re: Programatic definition of locale

2009-12-15 Thread Jan Ehrhardt
No, there is no simpler way to do. GWT compiler creates a JavaScript file
for each locale, so the GWT bootstrap mechanism requires the Information
which localized app to load.

Regards
Jan Ehrhardt

On Tue, Dec 15, 2009 at 7:55 PM, Matt matt.seab...@gmail.com wrote:

 The documentation sepcifies that the locale is defined by GWT
 Property, i.e.

 meta name=gwt:property content=locale=ja_JP

 or by paramater

 http://www.example.org/myapp.html?locale=fr_CA

 I would like to have the required locale as a propery of the logged in
 user, and that hat tell the app what locale to use. So is there any
 way to do this programatically define the required locale, short of
 creating a filter and overriding the request object to add the locale
 property?

 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.comgoogle-web-toolkit%2bunsubscr...@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: Why Label widget chose to use div instead of label?

2009-12-14 Thread Jan Ehrhardt
WAI-ARIA allows you to declare a DIV tag as an 'aria-label', so you can
decide, if a GWT label should be an 'aria-label' or not.

GWT widgets are more like Swing or SWT widgets than plain HTML tags. This
might be one reason for naming a simple text containing widget 'label'. The
name clash between GWT label and HTML label isn't fine, but if you know,
that they're not the same, it's not a real problem anymore.

By default there is no widget in GWT, that does exactly, what a HTML label
does, but if you need one, you can easily create your own.

Regards
Jan Ehrhardt


On Mon, Dec 14, 2009 at 11:55 AM, philippe vonck...@yahoo.fr wrote:

 WAI-ARIA doesn't forget the HTML structure. The two are complementary.


 On 13 déc, 22:36, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  Well, GWT supports WAI-ARIA. I don't know what GWT does in the case of a
  Label to support it, but you can create a custom class, that extends
 Label
  and gives it the exact WAI-ARIA behavior you want.
 
  Regards
  Jan Ehrhardt
 
  On Sun, Dec 13, 2009 at 7:48 PM, philippe vonck...@yahoo.fr wrote:
   @Jan: no, html label tag isn't just a text. For Visually impaired
   people, Readers for Visually impaired interpreter tag Label as the
   text input fields. If you click on the text label tag, the input is
   automatically selected. The input tag can't be automatically selected
   with a text Div tag.
 
   A good structure of your DOM is benefit for all agents.
 
   On 13 déc, 12:01, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
A HTML Label tag is used as a label for an input. A GWT Label widget
 is
   just
a text containing area somewhere in your UI. I think a Div tag is the
natural choice for a Widget like Label.
 
Regards
Jan Ehrhardt
 
On Sun, Dec 13, 2009 at 10:06 AM, philippe vonck...@yahoo.fr
 wrote:
 It is very important to improve accessibility. Everybody benefits
 from
 this because at the same time improves the overall ergonomics.
 
 See :http://www.seoconsultants.com/html/forms/labels/
 
 On 13 déc, 01:22, Yozons Support on Gmail yoz...@gmail.com
 wrote:
  The use of LABEL tags is useful for accessibility.  Just like TH
 is
 useful
  for tables, though a TD will suffice, this is less the case when
 attempting
  to be accessible.
 
 --
 
 You received this message because you are subscribed to the Google
   Groups
 Google Web Toolkit group.
 To post to this group, send email to
   google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 google-web-toolkit%2Bunsubs
   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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: Clear HTML div?

2009-12-14 Thread Jan Ehrhardt
RootPanel's clear method only removes GWT widgets. I would recommend to
prevent the mixing of HTML in your host page and GWT widgets. Use a label
widget instead.
If this isn't an option, you can do:

Element element = RootPanel.get(entries).getElement();
DOM.removeChild(element, 0);

This will manipulate the DOM directly and thus it's not recommended.

Regards
Jan Ehrhardt

On Sun, Dec 13, 2009 at 11:09 PM, Dennis Madsen den...@demaweb.dk wrote:

 I've this HTML code:

div id=entries
div class=loadingLoading guestbook entries../div
/div

 When calling a RootPanel.get(entries).clear(); I expected that all
 childs inside this div will be removed. But it doesn't. How can I
 really clear the div?

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Development mode crashes Safari 4.0.4 in OS X 10.4

2009-12-13 Thread Jan Ehrhardt
10.5 is available for PowerPC too.

It really looks like 10.4 doesn't work. Some time ago I'd the problem, that
10.5 doesn't work. They patched GWT later for enabling support on 10.5.

Regards
Jan Ehrhardt

On Sun, Dec 13, 2009 at 2:52 AM, PaulG paulgen...@gmail.com wrote:

 On Dec 11, 1:48 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  This is a Safari issue not a GWT one. Safari crashes will always crash,
 when
  you do a refresh with open Inseptoctor window.


 It's NOT just a Safari issue.  I am also running OS X 10.4  I
 downloaded GWT 2.0 for the first time (not upgrading from a prior
 version), created a new project (the default project), and tried to
 run it in Safari (4.0.3).  After downloading the GWT Dev plugin for
 Safari, and installing it, every time I try to go to the URL for my
 hosted test app, Safari crashes.  Every time.  It's just boom, dead.

 Actually, I first tried it in Firefox 3.5.5.  After installing the GWT
 Dev plugin for Firefox, it too crashes, but on startup.  I tested this
 by starting Firefox in 'Safe' mode, with all plugins/extensions/themes
 disabled.  It starts.  Then, when I enable ONLY the gwt dev plugin, it
 will crash trying to start.

 This is my first time trying to use GWT, so perhaps these problems
 don't plague other developers who are upgrading.  Or perhaps everyone
 is using OS X 10.5 or above (or windows, ugh, or Linux).  It's a good
 bet that no one at Google is running 10.4!!  Argh.  And I CAN'T
 upgrade unless I want to buy a new machine -- I've got a PowerPC,
 which doesn't run 10.5.

 As far as GWT 2.0 out-of-the-box, I'm not too impressed so far!

 Perhaps I can use GWT 1.7...

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Why Label widget chose to use div instead of label?

2009-12-13 Thread Jan Ehrhardt
A HTML Label tag is used as a label for an input. A GWT Label widget is just
a text containing area somewhere in your UI. I think a Div tag is the
natural choice for a Widget like Label.

Regards
Jan Ehrhardt

On Sun, Dec 13, 2009 at 10:06 AM, philippe vonck...@yahoo.fr wrote:

 It is very important to improve accessibility. Everybody benefits from
 this because at the same time improves the overall ergonomics.

 See : http://www.seoconsultants.com/html/forms/labels/


 On 13 déc, 01:22, Yozons Support on Gmail yoz...@gmail.com wrote:
  The use of LABEL tags is useful for accessibility.  Just like TH is
 useful
  for tables, though a TD will suffice, this is less the case when
 attempting
  to be accessible.

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Why Label widget chose to use div instead of label?

2009-12-13 Thread Jan Ehrhardt
Well, GWT supports WAI-ARIA. I don't know what GWT does in the case of a
Label to support it, but you can create a custom class, that extends Label
and gives it the exact WAI-ARIA behavior you want.

Regards
Jan Ehrhardt

On Sun, Dec 13, 2009 at 7:48 PM, philippe vonck...@yahoo.fr wrote:

 @Jan: no, html label tag isn't just a text. For Visually impaired
 people, Readers for Visually impaired interpreter tag Label as the
 text input fields. If you click on the text label tag, the input is
 automatically selected. The input tag can't be automatically selected
 with a text Div tag.

 A good structure of your DOM is benefit for all agents.


 On 13 déc, 12:01, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  A HTML Label tag is used as a label for an input. A GWT Label widget is
 just
  a text containing area somewhere in your UI. I think a Div tag is the
  natural choice for a Widget like Label.
 
  Regards
  Jan Ehrhardt
 
 
 
  On Sun, Dec 13, 2009 at 10:06 AM, philippe vonck...@yahoo.fr wrote:
   It is very important to improve accessibility. Everybody benefits from
   this because at the same time improves the overall ergonomics.
 
   See :http://www.seoconsultants.com/html/forms/labels/
 
   On 13 déc, 01:22, Yozons Support on Gmail yoz...@gmail.com wrote:
The use of LABEL tags is useful for accessibility.  Just like TH is
   useful
for tables, though a TD will suffice, this is less the case when
   attempting
to be accessible.
 
   --
 
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




--

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




Re: Using our own server with GWT 2.0

2009-12-13 Thread Jan Ehrhardt
If you're using the Google Plugin, create a Web Application launch
configuration and add the following to parameters to the 'program
arguments':

-noserver
-startupUrl 
http://localhost:8080/test/gohttp://www.google.com/url?sa=Dq=http://localhost:8080/test/gousg=AFQjCNFKh5JNAcKKjkxdJUuK0zFTwvpxdg


Regards
Jan Ehrhardt

On Mon, Dec 14, 2009 at 5:55 AM, Christian Goudreau 
goudreau.christ...@gmail.com wrote:

 Hello,

 I'm using PHP server side. I was used to GWT 1.7 and it was easy to use
 another server than the built in server. Now how do I set up Eclipse to use
 my PHP server instead of the default jetty ?

 Thanks !

 Christian

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Canvas, SVG, VML, and Visualization

2009-12-12 Thread Jan Ehrhardt
We're using HTML 5 Canvas for it. We created a slim JavaScript overlay
wrapper, that allows us to access the Canvas methods from Java. For IE we
use Excanvas r3, which is open source and supports IE 8 in standards mode.
The only thing is, that we need to invoke a Excanvas 'init' method to make
our dynamically created canvas objects emulated, but that's just one line of
JavaScript.

The benefit is, that we don't need to include the GWT Incubator overhead in
our app and we can use Excanvas, instead of GWT Incubator's VML emulation
(doesn't work with IE 8 in standard mode).

Regards
Jan Ehrhardt

On Sat, Dec 12, 2009 at 12:12 PM, Nathan Wells nwwe...@gmail.com wrote:

 I want to draw stuff. Circles, rectangles, dodecahedrons, etc... What
 are people using for this? I know about the following:

 Incubator's GwtCanvas.
 gwt-visualization-api

 Are there others out there? What's best? Why do you prefer the one you
 use? Sample code is welcome. Any little problems you've had to deal
 with?

 Thanks for your 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.comgoogle-web-toolkit%2bunsubscr...@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: Canvas, SVG, VML, and Visualization

2009-12-12 Thread Jan Ehrhardt
Oh, I forgot one thing. We use just a couple of Canvas methods in our, so
our Canvas wrapper just wraps the required ones. With GWT Incubator, I had
the problem, that most methods of Canvas are provided, but one I really
needed, wasn't. But this can be fixed jet.

Regards
Jan Ehrhardt

On Sat, Dec 12, 2009 at 12:21 PM, Jan Ehrhardt
jan.ehrha...@googlemail.comwrote:

 We're using HTML 5 Canvas for it. We created a slim JavaScript overlay
 wrapper, that allows us to access the Canvas methods from Java. For IE we
 use Excanvas r3, which is open source and supports IE 8 in standards mode.
 The only thing is, that we need to invoke a Excanvas 'init' method to make
 our dynamically created canvas objects emulated, but that's just one line of
 JavaScript.

 The benefit is, that we don't need to include the GWT Incubator overhead in
 our app and we can use Excanvas, instead of GWT Incubator's VML emulation
 (doesn't work with IE 8 in standard mode).

 Regards
 Jan Ehrhardt


 On Sat, Dec 12, 2009 at 12:12 PM, Nathan Wells nwwe...@gmail.com wrote:

 I want to draw stuff. Circles, rectangles, dodecahedrons, etc... What
 are people using for this? I know about the following:

 Incubator's GwtCanvas.
 gwt-visualization-api

 Are there others out there? What's best? Why do you prefer the one you
 use? Sample code is welcome. Any little problems you've had to deal
 with?

 Thanks for your 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.comgoogle-web-toolkit%2bunsubscr...@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: Development mode crashes Safari 4.0.4 in OS X 10.4

2009-12-10 Thread Jan Ehrhardt
This is a Safari issue not a GWT one. Safari crashes will always crash, when
you do a refresh with open Inseptoctor window.

Regards
Jan Ehrhardt

On Fri, Dec 11, 2009 at 7:44 AM, jd jdpatter...@gmail.com wrote:

 I found the the Safari crash only occurs when the Inspector window is
 open.  If you close it before reloading the page it does not crash on
 my system.

 On Dec 11, 12:17 pm, zinkronz network zinkr...@gmail.com wrote:
  yes.. i also face this problem ff and safari also crashed.. i just
  format my imac.. but still problem..
 
  i can view from another pc  Windows XP(in the same network LAN). looks
 like
  imac 10.4 have this problem... please help us in this matter
 
 
 
  On Thu, Dec 10, 2009 at 5:40 PM, Alex Reid alxs...@googlemail.com
 wrote:
   It also seems the Firefox plugin crashes, but Firefox now doesn't load
   at all with the plug-in enabled.
 
   On Dec 10, 10:21 am, Alex Reid alxs...@googlemail.com wrote:
Hi,
 
Is anyone running the new development mode successfully on OS X 10.4
or is an upgrade to 10.5 or 10.6 needed? I know this machine is
overdue at update.
 
Unfortunately Safari is crashing with the following:
 
Date/Time:  2009-12-10 10:17:11.037 +
OS Version: 10.4.11 (Build 8S2167)
Report Version: 4
 
Command: Safari
Path:/Applications/Safari.app/Contents/MacOS/Safari
Parent:  WindowServer [89]
 
Version:4.0.4 (4531.21.10)
Build Version:  1
Project Name:   WebBrowser
Source Version: 45312110
 
PID:508
Thread: Unknown
 
Link (dyld) error:
 
Symbol not found: _pthread_mutexattr_destroy$UNIX2003
  Referenced from: /Library/Internet Plug-Ins/gwt-dev.webplugin/
Contents/MacOS/gwt-dev
  Expected in: /usr/lib/libSystem.B.dylib
 
Model: MacPro1,1, BootROM MP11.005C.B04, 4 processors, Dual-Core
 Intel
Xeon, 2.66 GHz, 2 GB
Graphics: NVIDIA GeForce 7300 GT, NVIDIA GeForce 7300 GT, PCIe, 256
MB 
 
and Eclipse shows:
 
Connection received from . :49498
   [WARN] Client connection lost
java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:243)
at
   com.google.gwt.dev.shell.BrowserChannel$Message.readMessageType
(BrowserChannel.java:1131)
at
   com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:248)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:613)
 
Would be interested to hear if anyone has worked around this on 10.4?
 
Alex
 
   --
 
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




--

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




GWT 2.0 Maven repo

2009-12-09 Thread Jan Ehrhardt
Hi,

I would like to upgrade my current applications to GWT 2.0, but since they
are build with Maven, I'm waiting for GWT 2.0 final being available in Maven
repo. When will it be available?

Regards
Jan Ehrhardt

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 run GWT 2.0 RC2's hosted mode with another server?

2009-12-03 Thread Jan Ehrhardt
The idea was, to prevent the existences of 'war/*' in my GWT project. With
the current stable version of the plugin and GWT 1.7.1 everything works
well.
So the problem is, that my GWT project does not have any server code and no
host page or anything else. The current version works the following way:

   - GWT (Web App launch configuration) app is launched in hosted mode
   without the build in server.
   - Instead of a host page in the same project, the host page comes from an
   independent server.
   - The hosted browser loads the host page (from the specified URL),
   detects the existence of a GWT module (included as JavaScript) and replaces
   the JavaScript with the Java Code from the classpath.

The interesting point is, that the text field to specify the URL is removed
from the GWT tab in the web app launch configuration (plugin version for GWT
2.0 RC2). So the question is, how can I point the OOPHM to my host page's
URL (on any server)?

At least some words on what I'm currently doing in Eclipse 3.5 with the
released version of the plugin and GWT 1.7.1:
I've got a plain Java project and make a GWT project out of it by right
click on the project - Google - WebToolkit Settings. In these GWT settings
I check 'Use Google Web Toolkit' and then OK. This makes my Java project a
GWT project. I create a new Web App launch configuration for this project,
disable 'Run build in server' and on the GWT tab I insert my host pages URL
(http://localhost:8080/my-app-which-runs-totaly-independent-on-a-tomcat).
That's it. It works.
Interestingly it's not required to specify any GWT module in any
configuration so far. The presence of the module's XML configuration on the
classpath and the presence of a previously compiled version of the module in
the loaded HTML page is enough to tell hosted browser, what to do. The GWT
Eclipse plugin doesn't even recognize the XML file since the included module
isn't shown in any settings or configuration interface. But it works.

Regards
Jan Ehrhardt

On Tue, Dec 1, 2009 at 5:03 PM, Chris Ramsdale cramsd...@google.com wrote:

 Based on the fact that the plugin is attempting to launch GWTShell, it may
 not recognize your app as a web app. This is typically the case when it
 doesn't find a war/WEB-INF/web.xml file in the project root. Can you confirm
 that this directory structure is in place? Also, what version of GWT and GPE
 were you using to previously build your application?


 On Tue, Dec 1, 2009 at 1:56 AM, Jan Ehrhardt 
 jan.ehrha...@googlemail.comwrote:

 I'm using the Web App launch configuration and the plugin version, which
 is linked on the GWT 2.0 RC2 wiki page
 http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

 Regards
 Jan Ehrhardt


 On Mon, Nov 30, 2009 at 4:07 PM, Chris Ramsdale cramsd...@google.comwrote:

 As a follow-up, are you using Web App Launch configurations or regular
 Java launch configurations? Also would you mind checking which version of
 the Google Eclipse Plugin you have installed? You can do this via
 Help-Install New Software and clicking on the already installed link in
 the lower right hand corner.


 On Mon, Nov 30, 2009 at 9:00 AM, Chris Ramsdale cramsd...@google.comwrote:

 Jan,

 The -style argument has been removed when running in development mode
 (formerly hosted mode). It is now configurable via the UI or an Ant
 property when you compile your code. The UI settings are available by right
 clicking on the project name, selecting Google-GWT Compile. From the
 resulting view you will see options for Log level and Output style. In
 order to set the output style via Ant, add the following to your build.xml
 file under the gwtc target:

 arg value=-style/
 arg value=PRETTY/

 What other error are you seeing when specifying the codeServerPort?


 On Mon, Nov 30, 2009 at 5:59 AM, Jan Ehrhardt 
 jan.ehrha...@googlemail.com wrote:

 Hi,

 I'm currently looking how our existing project can be updated to GWT
 2.0 when it's released, but I'm running into some trouble.

 We use Eclipse with the Google plugin and currently we've got one web
 project, which will be started as a web project running on an Eclipse 
 server
 runtime. This runtime can be a Tomcat or a WebSphere. We've got another
 project, which contains the GWT stuff. Our GWT launch configuration is 
 done
 with the following properties:

- Run internal server is deselected
- The GWT URL is pointed to 'http://localhost:8080/our-app'

 This worked well. We've to compile the GWT project once to JavaScript
 contained in the web project. We launch the Eclipse server runtime on '
 http://localhost:8080/' and then we start our hosted browser. The
 hosted browser detects to module contained in the page '
 http://localhost:8080/our-app' and replaces it with the stuff
 contained in our GWT project.

 Now I've installed GWT 2.0 RC2 and the required version of the plugin.
 I've changed the GWT SDK in the project properties. The first point was,
 that the text field for inserting my

Re: Default language

2009-11-30 Thread Jan Ehrhardt
We do it in a Java / Spring application by server side detection. The
HttpServletRequest object knows about the preferred language of the
requesting browser. Instead of a plain HTML page we return a JSP, that
allows us to set the language property as a meta tag. GWT's i18n mechanism
reads the property and choses automatically the correct language.
Of cause, i18n is done by GWT's mechanism.

Regards
Jan Ehhrhardt

On Mon, Nov 30, 2009 at 10:15 AM, Zé Vicente josevicentec...@gmail.comwrote:

 Hello all,

 I have some users of my application that are not happy about the fact
 that my application is not displayed by default using the language of
 their browsers.

 How is that possible? Do you have some tips about this topic? What can
 i do to make sure that gwt will download the version corresponding to
 their language?

 Before you ask, their language is available!

 Regards,
 José Vicente



 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.




How to run GWT 2.0 RC2's hosted mode with another server?

2009-11-30 Thread Jan Ehrhardt
Hi,

I'm currently looking how our existing project can be updated to GWT 2.0
when it's released, but I'm running into some trouble.

We use Eclipse with the Google plugin and currently we've got one web
project, which will be started as a web project running on an Eclipse server
runtime. This runtime can be a Tomcat or a WebSphere. We've got another
project, which contains the GWT stuff. Our GWT launch configuration is done
with the following properties:

   - Run internal server is deselected
   - The GWT URL is pointed to 'http://localhost:8080/our-app'

This worked well. We've to compile the GWT project once to JavaScript
contained in the web project. We launch the Eclipse server runtime on '
http://localhost:8080/' and then we start our hosted browser. The hosted
browser detects to module contained in the page '
http://localhost:8080/our-app' and replaces it with the stuff contained in
our GWT project.

Now I've installed GWT 2.0 RC2 and the required version of the plugin. I've
changed the GWT SDK in the project properties. The first point was, that the
text field for inserting my external URL was gone. Additionally, I got the
following Error:

Unknown argument: -style

Google Web Toolkit 2.0.0-rc2

GWTShell [-noserver] [-port port-number | auto] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logdir directory]
[-logLevel level] [-gen dir] [-codeServerPort port-number | auto] [-out
dir] [url]


where

  -noserverPrevents the embedded web server from running

  -portSpecifies the TCP port for the embedded web server
(defaults to )

  -whitelist   Allows the user to browse URLs that match the specified
regexes (comma or space separated)

  -blacklist   Prevents the user browsing URLs that match the specified
regexes (comma or space separated)

  -logdir  Logs to a file in the given directory, as well as
graphically

  -logLevelThe level of logging detail: ERROR, WARN, INFO, TRACE,
DEBUG, SPAM, or ALL

  -gen Debugging: causes normally-transient generated types to
be saved in the specified directory

  -codeServerPort  Specifies the TCP port for the code server (defaults to
9997)

  -out The directory to write output files into (defaults to
current)

and

  url  Automatically launches the specified URL


I tried some other configuration like adding the URL as a program argument,
which brought another error.


Can anybody tell me how to configure this scenario in the correct way? Or
won't there be any possibility with GWT 2.0?


Regards

Jan Ehrhardt

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 run GWT 2.0 RC2's hosted mode with another server?

2009-11-30 Thread Jan Ehrhardt
I'm using the Web App launch configuration and the plugin version, which is
linked on the GWT 2.0 RC2 wiki page
http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

Regards
Jan Ehrhardt

On Mon, Nov 30, 2009 at 4:07 PM, Chris Ramsdale cramsd...@google.comwrote:

 As a follow-up, are you using Web App Launch configurations or regular Java
 launch configurations? Also would you mind checking which version of the
 Google Eclipse Plugin you have installed? You can do this via Help-Install
 New Software and clicking on the already installed link in the lower right
 hand corner.


 On Mon, Nov 30, 2009 at 9:00 AM, Chris Ramsdale cramsd...@google.comwrote:

 Jan,

 The -style argument has been removed when running in development mode
 (formerly hosted mode). It is now configurable via the UI or an Ant
 property when you compile your code. The UI settings are available by right
 clicking on the project name, selecting Google-GWT Compile. From the
 resulting view you will see options for Log level and Output style. In
 order to set the output style via Ant, add the following to your build.xml
 file under the gwtc target:

 arg value=-style/
 arg value=PRETTY/

 What other error are you seeing when specifying the codeServerPort?


 On Mon, Nov 30, 2009 at 5:59 AM, Jan Ehrhardt 
 jan.ehrha...@googlemail.com wrote:

 Hi,

 I'm currently looking how our existing project can be updated to GWT 2.0
 when it's released, but I'm running into some trouble.

 We use Eclipse with the Google plugin and currently we've got one web
 project, which will be started as a web project running on an Eclipse server
 runtime. This runtime can be a Tomcat or a WebSphere. We've got another
 project, which contains the GWT stuff. Our GWT launch configuration is done
 with the following properties:

- Run internal server is deselected
- The GWT URL is pointed to 'http://localhost:8080/our-app'

 This worked well. We've to compile the GWT project once to JavaScript
 contained in the web project. We launch the Eclipse server runtime on '
 http://localhost:8080/' and then we start our hosted browser. The hosted
 browser detects to module contained in the page '
 http://localhost:8080/our-app' and replaces it with the stuff contained
 in our GWT project.

 Now I've installed GWT 2.0 RC2 and the required version of the plugin.
 I've changed the GWT SDK in the project properties. The first point was,
 that the text field for inserting my external URL was gone. Additionally, I
 got the following Error:

 Unknown argument: -style

 Google Web Toolkit 2.0.0-rc2

 GWTShell [-noserver] [-port port-number | auto] [-whitelist
 whitelist-string] [-blacklist blacklist-string] [-logdir directory]
 [-logLevel level] [-gen dir] [-codeServerPort port-number | auto] [-out
 dir] [url]


 where

   -noserverPrevents the embedded web server from running

   -portSpecifies the TCP port for the embedded web server
 (defaults to )

   -whitelist   Allows the user to browse URLs that match the
 specified regexes (comma or space separated)

   -blacklist   Prevents the user browsing URLs that match the
 specified regexes (comma or space separated)

   -logdir  Logs to a file in the given directory, as well as
 graphically

   -logLevelThe level of logging detail: ERROR, WARN, INFO, TRACE,
 DEBUG, SPAM, or ALL

   -gen Debugging: causes normally-transient generated types
 to be saved in the specified directory

   -codeServerPort  Specifies the TCP port for the code server (defaults
 to 9997)

   -out The directory to write output files into (defaults to
 current)

 and

   url  Automatically launches the specified URL


 I tried some other configuration like adding the URL as a program
 argument, which brought another error.


 Can anybody tell me how to configure this scenario in the correct way? Or
 won't there be any possibility with GWT 2.0?


 Regards

 Jan Ehrhardt

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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

Re: Should we use maven or not for a project?

2009-11-28 Thread Jan Ehrhardt
Yes, Maven can be complex, but if your project has a clear structure, it can
be very powerful.

Another option, I haven't tried yet, could be Gradle. It is a build tool,
that uses Groovy for writing build scripts. The benefit is, that it's based
on Ant and Ivy, so it allows you to use all the Ant stuff around.

Regards
Jan Ehrhardt

On Fri, Nov 27, 2009 at 7:05 PM, gwtfanb0y siegfried.b...@googlemail.comwrote:

 Now after all the maven enthusiasts above this comment, i have to say
 some words about ANT.
 I have used the default ant build-scripts (which are included inside
 the project when you create
 it with the webAppCreator) in all of my projectes and it worked very
 well. If you want to add
 new ant-targets e.g. for gui-tests, these are easy to implement.

 My experience with maven is, when you have a big project, the
 administration of maven is
 a fulltime job.

 If you have litte experience with maven und need to start fast your
 project, so you should
 choose ANT.


 On 26 Nov., 22:46, jbdhl jbirksd...@gmail.com wrote:
  I'm about to start a new GWT project but can't decide weather to use
  maven or not - partly because I'm completely new to maven. Are there
  really large benefits from using maven? I've heard, that not even
  google is using it, and this worries me a little.
 
  Our project will be a bit of a mix of various stuff and I don't know
  how well this fits into the maven structure:
 
* besides the usual client/servlet code, we will build a few smaller
  java tools to be run periodically by cron.
 
* we will use a bunch of scripts written in various languages to
  solve different tasks
 
* the project will include a bunch of documentation and text
  documents
 
  All in all: what is your recomendation? Maven or not?

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: GWT1.7 + Spring3 intégration

2009-11-28 Thread Jan Ehrhardt
I don't know, how your application is structured, but why don't you use
Spring 3 with REST and JSON?

Spring 3 comes with a cupel of nice features to create RESTful APIs on top
of Spring Controllers. This fits much better into the Spring world, than GWT
RPC could ever do.
On the other hand, GWT + JavaScript Overlays makes the usage of RESTful API
with JSON very smart to GWT apps.

We'd the same idea for the Grails GWT plugin, since Grails comes with REST
build in and GWT-RPC never felt native.

For me it would definitively be the preferred way in a Spring world.

Regards
Jan Ehrhardt

2009/11/27 Valéry Stroeder valery.stroe...@gmail.com

 Hello,

 I'm trying to integrate Spring into a Gwt application (using IntelliJ
 Idea) to use some beans or class located in the core package.
 Here is the application's structure
 [IMG]http://www.monsterup.com/image.php?url=upload/1259317243629.png[/
 IMG]

 I found an interresant way on http://code.google.com/p/spring4gwt/.
 I followed the simple rpc example at this page :
 http://code.google.com/p/spring4gwt/wiki/SimpleRPCExample.

 Thus i added spring libraries, gwt libraries and the spring4gwt.jar to
 my project and modify my files following the example.

 [B]WEB-INF/web.xml[/B]
 [CODE]?xml version=1.0 encoding=UTF-8?
 web-app xmlns=http://java.sun.com/xml/ns/javaee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
 version=2.5

!-- Spring context --
context-param
param-namecontextConfigLocation/param-name
param-valueclasspath:applicationContext.xml/param-value
/context-param
listener
listener-
 classorg.springframework.web.context.ContextLoaderListener/listener-
 class
/listener

!-- SpringGwt remote service servlet --
servlet
servlet-namespringGwtRemoteServiceServlet/servlet-name

  servlet-classorg.spring4gwt.server.SpringGwtRemoteServiceServlet/
 servlet-class
/servlet
servlet-mapping
servlet-namespringGwtRemoteServiceServlet/servlet-name
url-pattern/springGwtServices/*/url-pattern
/servlet-mapping
 /web-app[/CODE]

 [B]ressources/applicationContext.xml[/B]
 [CODE]?xml version=1.0 encoding=UTF-8?
 beans xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:aop=http://www.springframework.org/schema/aop;
xmlns:context=http://www.springframework.org/schema/context;
 xmlns:tx=http://www.springframework.org/schema/tx;
xsi:schemaLocation=http://www.springframework.org/schema/beans

 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context

 http://www.springframework.org/schema/context/spring-context-2.5.xsd;

context:component-scan base-
 package=biz.manex.chbah.crc.web.server /
 [/CODE]

 [B]client/CRCService[/B]
 [co...@remoteservicerelativepath(springGwtServices/crcService)
 public interface CRCService extends RemoteService {
String sayHello(String name);
 }[/CODE]

 [B]client/CRCServiceAsync[/B]
 [CODE]public interface CRCServiceAsync {
void sayHello(String name, final AsyncCallbackString async);
 }[/CODE]

 [B]server/CRCServiceImpl[/B]
 [co...@service(crcService)
 public class CRCServiceImpl implements CRCService {
 //@Resource
 //private Patient myPatient;
public String sayHello(String name) {
return Nom du parametre :  + name + . Nom de la personne :
  /*+ myPatient.getFirstName()*/;
}[/CODE]

 [B]CRC.gwt.xml[/B]
 [CODE]module
!-- Inherit the core Web Toolkit stuff. --
inherits name='com.google.gwt.user.User'/
inherits name=com.google.gwt.i18n.I18N/
inherits name=com.google.gwt.http.HTTP/
!-- Inherit GXT --
inherits name='com.extjs.gxt.ui.GXT'/

!-- Specify the app entry point class. --
entry-point class='biz.manex.chbah.crc.web.client.CRC'/

!-- servlet --
!--servlet path=/springGwtServices/greetingService
 class=biz.manex.chbah.crc.web.server.CRCServiceImpl/--
 /module[/CODE]

 [B]TestPanel.java[/B] (the panel who will call the rpc service
 [CODE]package biz.manex.chbah.crc.web.client.panels;

 import biz.manex.chbah.crc.web.client.CRCService;
 import biz.manex.chbah.crc.web.client.CRCServiceAsync;
 import com.extjs.gxt.ui.client.widget.LayoutContainer;
 import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.*;

 /**
  * Created by Manex
  * User: valery.stroeder (valery.stroe...@manex.biz)
  * Date: 12-nov.-2009
  * Time: 17:07:56

Re: PDF Viewer Widget

2009-11-28 Thread Jan Ehrhardt
Creating such a simple Widget shouldn't be to difficult. Just take an
'iframe' and let it show the PDF.

Regards
Jan Ehrhardt

On Fri, Nov 27, 2009 at 12:55 PM, marcelpsouza marcelpso...@gmail.comwrote:

 Hi people,

 Does anyone know if there is a GWT widget to view PDF files?
 I know that I can open a window and show a PDF file with an Adobe plug-
 in but I am looking for a widget to better control the PDF file
 visualization in my app.

 Any help would be appreciate,

 marcel.

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Should we use maven or not for a project?

2009-11-28 Thread Jan Ehrhardt
I think there is an Ant integration for Maven, so it should be possible to
reuse existing Ant builds. But I'm not sure how well it works.

So the reasons, why Maven is easy for our GWT project is simple. We do Java
development and all our GWT modules are build as plain Java projects, as
JARs (containing a file called xxx.gwt.xml and the source code), that's it.
So our whole Maven stuff works completely as pure Java stuff like in any
other Java project to. The only point where GWT integration comes in, is
that in our web app's POM file, there is the GWT-Maven plugin configured to
compile a specified GWT module (included in a JAR, which is a
provided-scoped dependency) as JavaScript to the web-app directory (so it's
included in the WAR).
We don't use GWT unit tests, instead our code is as independent from GWT as
possible (e. g. MVP Pattern) and normal unit tests work well. We don't use
i18n Message interface generation, since it doesn't increase productivity,
we're using an IDE. We don't run anything from Maven, we're launching our
development environments from Eclipse (GWT plugin).
So at least, Maven has two roles in our project. The first is doing the
build, running the unit tests automatically, but all on top of typical Java
projects. The second is the project configuration. We're using m2eclipse
plugin to enable Eclipse configuration by Maven. Since we're doing no
special stuff, m2eclipse configures our Maven projects as simple Java
projects or web projects. There is one project containing our 'main' GWT
module, this has to be made a GWT project manually (GWT Eclipse plugin, just
do it once) to launch the hosted browser from the IDE. This works well,
except sometimes m2eclipse changes the order of the libraries in Eclipse
classpath and then hosted browser crashes, but it can be fixed easily.

I wouldn't do it another way, if I had chosen Ant or Gradle or anything
else. The rules are clear, use the power of your IDE for development (it's
not the work a build tool is made for) and keep your project a Java project.
The second point is important. You can do standard Java development with
JUnit or TestNG, standard packaging and build tool configuration and that's
exactly, what I recommend. Reduce GWT to the things it's really needed for
in your project.

Regards
Jan Ehrhardt

On Sat, Nov 28, 2009 at 11:47 PM, jbdhl jbirksd...@gmail.com wrote:

 Thanks for all your insightful comments! It seems that there is no de-
 facto correct answer to my original question, so let me instead, for
 simplicity, ask for elaboration of the three following questions:

 * The pro-maven replies above all states something like maven makes a
 lot of things easy, which is kind of unspecific. As far as I can see
 (and I might miss something), many of the gwt-shortcuts in maven is
 sort direct mappings to commands that are already there in gwt: e.g.
 there are already gwt commands for i18n-interface creation. Also,
 whole unittest suites can be run from within eclipse, so as far as I
 can see, maven doesn't solve any problems there. What is it that maven
 solves so elegantly that cannot be done just as elegant by using
 naked gwt?

 * Assume we start developing without maven. If we later decide to use
 maven, how complicated would you guess that the project convertion
 would be (from non-maven to maven)? That is, is it easy or complicated
 to convert an existing project to maven? Notice, there is a lot of non-
 java stuff in the project, such as shell scripts, LaTeX documents,
 Makefiles, text files, etc).

 * Just to be clear: does maven contain the functionality of GNU make
 or ant? Can it solve the same problems as make and ant?

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Should we use maven or not for a project?

2009-11-27 Thread Jan Ehrhardt
We use Maven with GWT in a big project with multiple modules. It work's
pretty nice. We split our code in different Maven modules, which are build
as separate JARs (incl. source code). Our web application (build as a WAR)
has a dependency on the module containing the 'main' GWT module. This
dependency is configured as provided, so the JAR won't be included in the
WAR. The GWT compiler is configured in the web app's POM and compiles all
the GWT code to a directory in 'main/web-app/', so it's included in the WAR.
This allows us to keep the WAR clean from GWT related code at runtime
(except the RPC related stuff).
We're using Eclipse with m2eclipse plugin for development and the GWT plugin
for hosted mode (Maven GWT integration is only used for final compiling).
This works great, since we can run our web app like any other on a Tomcat
and point the hosted browser to this web-app.
The GWT plugin isn't configured by Maven, instead we've to enable it
manually, but it is only required on one project (containing the 'main' GWT
module).

On Fri, Nov 27, 2009 at 9:55 AM, philippe vonck...@yahoo.fr wrote:

 YES, Maven will do you save time, but you have to integrate properly
 into Eclipse.

 I advise you:
 - http://m2eclipse.sonatype.org/
 - define the maven commands in Eclipse Run

 After, you can build and integrate easily into your application
 systems integration continued.

 regards,
 Philippe


 On 26 nov, 23:19, CI-CUBE e...@ci-cube.info wrote:
  I found maven pretty heavy and can live w/o it. If some day I feel the
  need to have something like that I can use it anyway, no problem. Just
  my personal opinion.
 
 Ekki
 
  * GWT Rocks! * SmartGWT Rocks Even Harder! * SmartGWT EE 1.2.1/LGPL
  1.3,
  GWT 1.7.1, GAE 1.2.6, Jetty 7.0.0, Eclipse 3.5.1, JRE 1.6.0_16
 
  CI-CUBE.BIZ feat. CubeBrowser.AppSpot.comwww.EasternGraphics.com/X-4GPL
 
  On Nov 26, 10:46 pm, jbdhl jbirksd...@gmail.com wrote:
 
   I'm about to start a new GWT project but can't decide weather to use
   maven or not - partly because I'm completely new to maven. Are there
   really large benefits from using maven? I've heard, that not even
   google is using it, and this worries me a little.
 
   Our project will be a bit of a mix of various stuff and I don't know
   how well this fits into the maven structure:
 
 * besides the usual client/servlet code, we will build a few smaller
   java tools to be run periodically by cron.
 
 * we will use a bunch of scripts written in various languages to
   solve different tasks
 
 * the project will include a bunch of documentation and text
   documents
 
   All in all: what is your recomendation? Maven or not?
 
 

 --

 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: BlackBerry Compatible

2009-08-26 Thread Jan Ehrhardt
RIM is developing it's own browser engine, while iPhone and Android use
Webkit. I'm not sure if the Blackberry browser is able to run most
JavaScript  apps. I think, you should try, what happens, but I'm sure it's
not supported.

On Wed, Aug 26, 2009 at 1:11 AM, Tracy tracy.tra...@gmail.com wrote:


 I'm new to Google Groups so my apologies if this question was double
 posted...

 Does anybody know if a GWT app can be browsed with a Blackberry?  Is
 the BlackBerry browser able to handle the generated JavaScript?

 Thanks in advanced.

 


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



Re: Why do we define AsyncCallbacks inline?

2009-08-24 Thread Jan Ehrhardt
Once again, the thing you want to do with the callback, is invoking a method
after the request is finished. This can be done very easily with an
annonymous inner class:
public class OuterClass {

  ...

  public void methodForRequest(final int id) {

service.getSomething(id, new AsyncCallbackInteger() {

  ...

  onSuccess(Inter result) {
doSomething(id, result);
  }

});

  }

  private void doSomething(int id, int result) {
...
  }

}

This example shows, why annonymous inner classes are great for this use
case. You can tell the 'getSomething' method to invoke the 'doSomething'
method on success. In other languages, you can use closures for such use
cases. The other point is, that the 'id' variable can be passed to the
'doSomething' method as well.
How would this look, if you're using a non-annonymous inner class or an
outer class?
Furthermore, non-annonymous class require a class name, so you've to think
about a name for it. Do you really want this?

Regards
Jan Ehrhardt

On Sun, Aug 23, 2009 at 5:57 PM, Damon Lundin damon.lun...@gmail.comwrote:


 BTW, the terminology you are looking for is that the inline inner
 class as you put is called an anonymous inner class while the inner
 class that is defined on its own (not at the point of a method call)
 but still inside the outer class is usually just called an inner class
 but named inner class would also work too.  Both of these have been
 available as in Java from the very beginning.

 As for why, it is just a matter of taste.  It's sometimes a bit more
 concise to just define an anonymous inner class inline, particularly
 if the inner class code needs access to variables defined in the
 calling method.  With an anonymous inner class you just have to define
 the variables or parameters as final and they can be access in the
 code of the inner class.  With a named inner class you have to define
 extra member variable on the inner class to hold those variables and
 probably a constructor that accepts them.

 If you find that it results in a ton of code inside the inner class
 that all indented, you could just move all that code into a method on
 the outer class.  The code in the inner class can access methods and
 methods of the outer class.  You can even reference methods and
 methods of the outer class that have the same name as something in the
 inner class by using the syntax: MyOuter.this.outerMethodCall().
 


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



Re: Why do we define AsyncCallbacks inline?

2009-08-22 Thread Jan Ehrhardt
It's common practice to use inner classes in Java for listeners or other
simple things like callbacks.
What you want to do in the case of a callback, is invoking a method after
the the asynchronous RPC has been finished. The easiest solution would be,
to put this method as an argument to the RPC method, but since Java has no
closures, using inner classes is a nice solution. In Java 1.4, where no
inner classes where available, people implemented the AsyncCallback
interface in the class, which was calling the RPC method, so they could do
something like:

service.getSomthing(this);

But with Java 5 inner classes have become the prefered way.
Sure, you can also create your own class for this, but that's the worse
practice, I think.

What would be the best solution for this, you think?

Regards
Jan Ehrhardt

On Sat, Aug 22, 2009 at 10:43 PM, jack jack.terran...@gmail.com wrote:


 In every RPC example I've seen, AsyncCallback are all defined inline?
 Why is this so?  What are the advantages?

 Thanks in advance

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email 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: History question

2009-08-22 Thread Jan Ehrhardt
If you select one of the libraries, listed there, you will come to the wiki,
where you'll find URLs with '#'. It's the only save way to get history
behaviour in an GWT app. You can try others, but they won't work so smooth.
I think, the reason, why there are URLs without '#', is, that the page isn't
a GWT app. It's a plain webpage with maybe a little script on one or another
page.

Regards
Jan Ehrhardt

On Sat, Aug 22, 2009 at 7:09 PM, MamboJumbo torni...@googlemail.com wrote:


 Does anyone know how GWT history is maintained in
 http://code.google.com/p/gwt-google-apis
 website? There are no # signs in the URLs of the pages. Is there any
 other way to implement history other than explained in GWT tutorials?
 (like this one http://gwttutorials.com/2009/08/06/gwt-history/#more-215)
 Thank you.
 


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



Re: Which use for CSS?

2009-07-27 Thread Jan Ehrhardt
Using horizontal and vertical panels is the prefered way of realizing
layouts in GWT. You shouldn't try to implement your layout from scrach. But
this doesn't mean, that there is no need for CSS in GWT.

GWT should also prevent you from many browser differences, but that doesn't
mean, that it will do allways.

On Mon, Jul 27, 2009 at 2:33 PM, Mehdi Rabah mehdi.ra...@gmail.com wrote:

 Hi,

 Thanks for your answer.

 So you're saying even when using GWT, a web developper have to fight with
 the browser differences?
 It seems like the themes used in GWT only change colors, which is not the
 main problem (which is positionning)

 For my layouts I use tables, meaning gwt horizontal and vertical panel,
 with setCellAlignment method.

 Regards

 On Mon, Jul 27, 2009 at 7:19 AM, Jan Ehrhardt jan.ehrha...@googlemail.com
  wrote:

 Hi,
 GWT apps are web apps and they're running inside a browser, thus it's a
 good choice to use CSS. If you look to the Showcase app (
 http://gwt.google.comsqf/samples/Showcase/Showcase.htmlhttp://gwt.google.com/samples/Showcase/Showcase.html),
 it's using different themes and the switch is done by changing the CSS file,
 which provides colors, borders, etc. There are lots of other examples, like
 creating a Dialog, which lays over the rest of your app.
 The differences of CSS in different browsers is a common problem, but most
 webdevelopers know how to work around. In GWT this also means, that defered
 binding allows to create different implementations for different browsers.
 Another point, you should care about, is, how do you create margin or
 padding without CSS? In other GUI frameworks like SWT, you've got layout
 constraints, that can be applied to a component, but in GWT, you don't have.
 CSS is the prefered way to do.

 Regards
 Jan Ehrhardt

 On Sat, Jul 25, 2009 at 11:25 PM, Mehdi Rabah mehdi.ra...@gmail.comwrote:


 Hi,

 I'm trying to use CSS for the layout of my website (for now, the
 layout is made with layouts). The worst problem I've seen is that the
 layout is not the same on different browsers.

 So, since the GWT philosophy is to abstract the development from the
 browser, I was asking myself if the GWT team recommend the use of
 CSS?

 Does GWT developpers really use CSS? For what use? (IMHO positionning
 with CSS really suck, the margin: auto to center a div doesn't work
 on IE8)






 


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



Re: Which use for CSS?

2009-07-26 Thread Jan Ehrhardt
Hi,
GWT apps are web apps and they're running inside a browser, thus it's a good
choice to use CSS. If you look to the Showcase app (
http://gwt.google.com/samples/Showcase/Showcase.html), it's using different
themes and the switch is done by changing the CSS file, which provides
colors, borders, etc. There are lots of other examples, like creating a
Dialog, which lays over the rest of your app.
The differences of CSS in different browsers is a common problem, but most
webdevelopers know how to work around. In GWT this also means, that defered
binding allows to create different implementations for different browsers.
Another point, you should care about, is, how do you create margin or
padding without CSS? In other GUI frameworks like SWT, you've got layout
constraints, that can be applied to a component, but in GWT, you don't have.
CSS is the prefered way to do.

Regards
Jan Ehrhardt

On Sat, Jul 25, 2009 at 11:25 PM, Mehdi Rabah mehdi.ra...@gmail.com wrote:


 Hi,

 I'm trying to use CSS for the layout of my website (for now, the
 layout is made with layouts). The worst problem I've seen is that the
 layout is not the same on different browsers.

 So, since the GWT philosophy is to abstract the development from the
 browser, I was asking myself if the GWT team recommend the use of
 CSS?

 Does GWT developpers really use CSS? For what use? (IMHO positionning
 with CSS really suck, the margin: auto to center a div doesn't work
 on IE8)
 


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



Re: Announcing GWTUpload

2009-07-17 Thread Jan Ehrhardt
Are there any plans to support commet in the library? It would allow me to
have fewer Ajax Requests to get the curren state of the upload.

Jan

On Fri, Jul 17, 2009 at 3:04 PM, Kwhit kwhitting...@gmail.com wrote:


 Great stuff - I'll be using that very soon. Any chance of a cancel
 button to cancel an ongoing upload?
 


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



Re: Can GWT do pixel-manipulation?

2009-07-15 Thread Jan Ehrhardt
There is a JavScript library from Google (http://excanvas.sourceforge.net/)
for emulating canvas in IE. You could use it to make the canvas object
available in IE. This emulation is much slower, than native canvas in other
browsers, but for drawing each letter once, it should work.

Another way would be SVG / VML. This would allow you to use Adobe Ilustrator
(or some tool like this) for creating your letters in SVG (port to VML must
be maually, I think). In your GWT app, you can use defered binding, for
creating an iframe and setting it's source to the SVG or VML URL dependent
of, which is supported by the browser. As a nice effect, your letters could
be cached by the browser.

I think the SVG / VML solution is the most interessting one, but you can
also use Flex / Flash. Since all letters are vector objects in Flash and
each available font could be used even if not installed on the operating
system, you could create these letters for the font of your choice or use a
font, which supports your letters. But at least this solution would be much
more tricky, I think.

But you should also think about the problems coming with all three solutions
like copy, paste and even simple text selection.

Jan

On Wed, Jul 15, 2009 at 4:40 AM, 任胜韦 slayersxi...@gmail.com wrote:

 I want to display Algebra Symbol ,many of which are not included by
 popular fonts. So I have to draw them on real time.

 Can GWT do pixel-manipulation? and how?
 or can anybody introduce some ways to do that.( I know some like canvas,
 but id does;t support IE T_T)

 --XiaoR

 


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



Multiple GWT modules and dependencies

2009-07-15 Thread Jan Ehrhardt
Hi,

I'd like to create a page, which requires different GWT applications, but
which is dependent to the logged in user. So it doesn't make any sence to
load one GWT module, which containes hundreds of GWT applications, even when
only two are required.
I know, that I can compile each application on it's own and than dynamically
load the required apps, but this points me to a dependency problem. If I use
HashMap in one application, it will be compiled as other dependencies too
into the application's nocache-file and loaded at runtime, but if I'm using
HashMap in a second application, it will be compiled a second time and the
resulting JavaScript will be loaded into the browser a second time.

This behaviour will make it impossible to create any common libraries, which
are used by all applications.

A simple example would be the following:
I've got an application, which shows some content to the user, so a normal
user will get a slim version of this application. If someone also has admin
rights, he'll be able to open an admin console and now the trouble starts.
The way I would like to go is, the slim version will be loaded and a further
tab for administration will be displayed, but until the admin user opens
this tab, the part of the application, which contains the adminstration *
functionality* shouldn't be loaded. This would allow me to serve the admin
user the slim application as fast as all other users and serve the admin
application on demand. The problem I have is that I want the admin
application to use compiled code allready loaded with the slim version.

E. g. in Dojo JavaScript framework this problem is solved by using dynamic
loading of different JavaScript files.

Is there any way to enable GWT for doing something similar?

Jan Ehrhardt

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