Re: is there any json parser that can parse UTF-8 json text

2010-07-14 Thread Alex
can i still use the
com.google.appengine.repackaged.org.json.JSONObject.JSONObject(String
arg0) if i dont deploy it to GAE? where can i get the jar file?

On Jul 14, 9:56 pm, Jaroslav Záruba  wrote:
> Have you tried these?
> for server-side (GAE)
> *com.google.appengine.repackaged.org.json.JSONObject.JSONObject(String
> arg0)*
> for client *com.google.gwt.json.client.JSONParser*
>
> I haven't tried japanese or chinese characters though, rather stuff like
> this: "Příliš žluťoučký kuň úpěl ďábělské ódy"
>
> On Wed, Jul 14, 2010 at 3:43 PM, Alex  wrote:
> > i tried gson, but it give me error.
> > this is the code i used
>
> > public class Test {
> >        private static final String charEncoding="UTF-8";
>
> >        private static final String fileName="c:\\test.txt";
> >        public static void main(String args[]){
> >                try{
> >                        File file=new File(fileName);
> >                        if(file.canRead()){
> >                                FileInputStream inStream=new
> > FileInputStream(file);
> >                                InputStreamReader reader=new
> > InputStreamReader(inStream,
> > charEncoding);
> >                                JsonParser parser=new JsonParser();
> >                                JsonElement jsonA=parser.parse(new
> > BufferedReader(reader));
> >                                System.out.println(jsonA.isJsonArray());
> >                                System.out.println(jsonA.toString());
> >                        }
> >                }catch(IOException e){
> >                        e.printStackTrace();
> >                }
> >        }
>
> > }
>
> > the jar from json.org dun work too.
>
> > so is there any json parser that can parse UTF-8 json text (japanese
> > and chinese character in particular)
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Distributing a fix to the customer

2010-07-14 Thread Gal Dolber
no really, you need to recompile and replace the all folder

2010/7/15 Parag Thakur 

> hello,
>
> We need to provide a fix to a customer that's in our client side GWT
> code. Is there a way to avoid sending the entire ui folder again? Is
> there a way to distribute just the part that changed?
>
> thanks,
> Parag
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
http://ajax-development.blogspot.com/

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



Re: This is getting beyond a joke

2010-07-14 Thread monkeyboy
Thanks GWT team.

On Jul 15, 4:18 am, David Chandler  wrote:
> Hang tight, folks, we're on it. As has been noted in this thread, GWT
> itself is not built with maven, so it's not a 100% automated process
> to push to maven central. But we're working hard to get gwt-user-2.0.4
> and gwt-dev-2.0.4 uploaded by Friday and to make deployment to maven
> central a part of future releases.
>
> David Chandler
> GWT Developer Relations
> Atlanta, GA USA
>
> On Jul 14, 9:15 pm, David Vree  wrote:
>
> > Thanks for that.
>
> > On Jul 14, 6:37 pm, monkeyboy  wrote:
>
> > > Nice. From 23 to 37 stars in less than a day.
>
> > > On Jul 14, 9:09 am, monkeyboy  wrote:
>
> > > > On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen 
> > > > wrote:
>
> > > > > I would also wish that Google would takeMavenmore seriously. I can
> > > > > only recommend all that agree to star the issues regardingMavenin
> > > > > the bug tracker.
>
> > > > Here it is (the issue 
> > > > regardingMaven):http://code.google.com/p/google-web-toolkit/issues/detail?id=4673
>
> > > > There are only 23 stars so far.- Hide quoted text -
>
> > - Show quoted text -
>
>

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



Re: This is getting beyond a joke

2010-07-14 Thread Frederic Conrotte
Thanks for your efforts David.

On Jul 15, 4:18 am, David Chandler  wrote:
> Hang tight, folks, we're on it. As has been noted in this thread, GWT
> itself is not built with maven, so it's not a 100% automated process
> to push to maven central. But we're working hard to get gwt-user-2.0.4
> and gwt-dev-2.0.4 uploaded by Friday and to make deployment to maven
> central a part of future releases.
>
> David Chandler
> GWT Developer Relations
> Atlanta, GA USA
>
> On Jul 14, 9:15 pm, David Vree  wrote:
>
> > Thanks for that.
>
> > On Jul 14, 6:37 pm, monkeyboy  wrote:
>
> > > Nice. From 23 to 37 stars in less than a day.
>
> > > On Jul 14, 9:09 am, monkeyboy  wrote:
>
> > > > On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen 
> > > > wrote:
>
> > > > > I would also wish that Google would takeMavenmore seriously. I can
> > > > > only recommend all that agree to star the issues regardingMavenin
> > > > > the bug tracker.
>
> > > > Here it is (the issue 
> > > > regardingMaven):http://code.google.com/p/google-web-toolkit/issues/detail?id=4673
>
> > > > There are only 23 stars so far.- Hide quoted text -
>
> > - Show quoted text -

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



Re: JAXB & GWT How I can use JAXB generated classes on client side

2010-07-14 Thread Frederic Conrotte
There is no problem in using JAXB along with GWT.

See this thread for explanations:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4020&q=JAXB&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars#c10

On Jul 15, 2:57 am, Shyam Visamsetty  wrote:
> I think you cannot use JAXB with GWT. JAXB uses a lot of classes which
> GWT cant compile. So, you may not be able to use it. You can use the
> standard xml packages that come with GWT.
>
> Thanks,
> Shyam Visamsetty.
>
> On Jul 14, 8:29 am, Alberto Rugnone 
> wrote:
>
> > Hi all,
> > I have to use classes with jaxb annotation on client side, but GWT
> > compiler refuse to work throwing following exception
>
> > No source code is available for type javax.xml.namespace.QName
> >  No source code is available for type javax.xml.bind.JAXBElement
>
> > etc...
>
> > someone can help me
>
> > Thank you very much 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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: This is getting beyond a joke

2010-07-14 Thread Kasper Hansen
Thats great news !!

Thanks David/GWT Team

:-) Kasper

On Thu, Jul 15, 2010 at 4:18 AM, David Chandler  wrote:
> Hang tight, folks, we're on it. As has been noted in this thread, GWT
> itself is not built with maven, so it's not a 100% automated process
> to push to maven central. But we're working hard to get gwt-user-2.0.4
> and gwt-dev-2.0.4 uploaded by Friday and to make deployment to maven
> central a part of future releases.
>
> David Chandler
> GWT Developer Relations
> Atlanta, GA USA
>
> On Jul 14, 9:15 pm, David Vree  wrote:
>> Thanks for that.
>>
>> On Jul 14, 6:37 pm, monkeyboy  wrote:
>>
>>
>>
>> > Nice. From 23 to 37 stars in less than a day.
>>
>> > On Jul 14, 9:09 am, monkeyboy  wrote:
>>
>> > > On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen 
>> > > wrote:
>>
>> > > > I would also wish that Google would takeMavenmore seriously. I can
>> > > > only recommend all that agree to star the issues regardingMavenin
>> > > > the bug tracker.
>>
>> > > Here it is (the issue 
>> > > regardingMaven):http://code.google.com/p/google-web-toolkit/issues/detail?id=4673
>>
>> > > There are only 23 stars so far.- Hide quoted text -
>>
>> - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

2010-07-14 Thread Oby Sumampouw
Hi Katharina,

Thanks for your help so far.

No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
also didn't change anything from the starter project.
I still have this line...

@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService

this is weird, the javascript RPC is pointing to the right servlet but
it says it cannot find the server... What can possibly go wrong. I
restarted the tomcat too.

In my CPanel error log I found this error
[Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/404.shtml, referer:
http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
[Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/mainarea/greet, referer:
http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
[Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/404.shtml
[Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/favicon.ico

So apparently the javascript is really pointing to the right URL
"mainarea/greet" but it seems the tomcat server does not translate
'mainarea/greet' to the servlet but directly translate it to real
path.
I checked my web.xml in WEB_INF


http://java.sun.com/dtd/web-app_2_3.dtd";>



  
  
greetServlet
path.to.server.GreetingServiceImpl
  

  
greetServlet
/mainarea/greet
  

  
  
MainArea.html
  



the url-pattern seems correct. Do you have any guess on why this
happen?

Thanks,
Oby




On Jul 14, 5:53 pm, Katharina Probst  wrote:
> When you created your project, did you have AppEngine enabled?  If you're
> trying to deploy with tomcat, you shouldn't have that option enabled.
>
> > does the javascript file generated by the GWT sends request to the
> > wrong servlet? does it point to /mainarea/greet all the time?
>
> Your client-side implementation of the RPC (what allows you to talk between
> the client and the server) has an annotation that should look like
> this: @RemoteServiceRelativePath("greet")
>
> That's how it hooks up to the server side servlet (whose URL pattern is
> specified in the web.xml file). So, no, it doesn't have to point to
> /mainarea/greet. Did you modify anything from the starter project?
>
> kathrin
>
>
>
> > Thanks,
> > Oby
>
> > On Jul 14, 6:01 am, Katharina Probst  wrote:
> > > Try just taking the whole war directory that the compiler produces (as
> > is)
> > > and copying it to your tomcat/webapps/ directory.  Rename the war
> > directory
> > > to the name of your webapp (say, public_html).
>
> > > Then do tomcat/bin/startup.sh
>
> > > and go to
>
> > > localhost:8080/public_html/MainArea.html
>
> > > That should do the trick...
>
> > > kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw <
> > osumamp...@gmail.com> wrote:
> > > > Hi,
> > > > I am trying to see if I can deploy the web starter project to a web
> > > > server (which runs using tomcat)
>
> > > > The steps that I have done so far:
> > > > 0.) create new GWT application, so it's the default template for a web
> > > > app
> > > > 1.) I compiled the starter project
> > > > 2.) Copy the class, lib directory to the ~/public_html/WEB-INF
> > > > 3.) Copy the web.xml to the ~/public_html/WEB-INF
>
> > > > this is the web.xml
>
> > > > 
> > > >  > > >    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > > >    "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> > > > 
>
> > > >  
> > > >  
> > > >    greetServlet
> > > >    bla.bla.bla.server.GreetingServiceImpl > > > class>
> > > >  
>
> > > >  
> > > >    greetServlet
> > > >    /mainarea/greet
> > > >  
>
> > > >  
> > > >  
> > > >    MainArea.html
> > > >  
>
> > > > 
>
> > > > 4.) I put the MainArea.html and MainArea.css to the ~/public_html
> > > > because they are the welcome-file
> > > > 5.) I copied the compiled javascript and resources (in the folder
> > > > called 'mainarea') to ~/public_html
> > > > 6.) So the structure is like this:
>
> > > > -- public_html
> > > >      |- MainArea.html
> > > >      |- MainArea.css
> > > >      |- WEB-INF
> > > >           |- web.xml
> > > >           |- lib
> > > >           |- class
> > > >      |- mainarea
> > > >           |- gwt
> > > >           |- hosted.html
> > > >           |- mainarea.nocache.js
> > > >           |- other resources
>
> > > > When I go to the website, the page loads fine. But when I click send
> > > > (to send the input to the server) it seems the path is wrong. I got
> > > > this error:
>
> > > > Sending name to the server:
> > > > GWT User
>
> > > > Server replies:
> > > > An error occurred while attempting to contact the server. Please check
> > > > your network connection and try again.
>
> > > > I was wondering if this servlet location is correct?
>
> > > > Another noob question about JSP, can I put the generated javascript
> > > > code to ~/pu

Re: How to send message from server to client without callback(RPC)

2010-07-14 Thread ravi kanth
http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html

On 15 July 2010 01:03, _MOD_  wrote:

> Hi. I want to send string messages from my gwtserviceservlet to my
> entrypoint directly. I mean without sending any request from
> entrypoint to Servlet.
>
> Becouse i cant use real java codes in entrypoint. Therefore i want to
> make something in myserviceservlet and then send the result as string
> to my entrypoint.
>
> Is there a way to reach any method in entrypoint via serviceservlet?
> Or entrypoint just can make request and recive these request's results?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Thanks and Regards,
N. Ravikanth
IT Associate,
Center for Education Technology and Learning Sciences,
IIIT-Hyderabad,
Mobile : 9908624492

If you are not ready to accept the consequences then you have no right to
make a decision

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



Distributing a fix to the customer

2010-07-14 Thread Parag Thakur
hello,

We need to provide a fix to a customer that's in our client side GWT
code. Is there a way to avoid sending the entire ui folder again? Is
there a way to distribute just the part that changed?

thanks,
Parag

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Error: no html file found

2010-07-14 Thread aditya sanas
check for entries in web.xml if it is containing any mapping for the file
which is not in existing...
--
Aditya


On Wed, Jul 14, 2010 at 5:15 PM, Pragya  wrote:

> Hi,
>
> I am new to GWT and am trying to build a simple RPC application to add
> two numbers. There is no other error except that it gives a warning
> when i try to run it and says that the html file was not found. Here's
> the message that comes:
>
> Initializing AppEngine server
> Jul 14, 2010 6:52:38 AM com.google.apphosting.utils.jetty.JettyLogger
> info
> INFO: Logging to JettyLogger(null) via
> com.google.apphosting.utils.jetty.JettyLogger
> Jul 14, 2010 6:52:39 AM
> com.google.apphosting.utils.config.AppEngineWebXmlReader
> readAppEngineWebXml
> INFO: Successfully processed C:\eclipse\workspace\checkhello\war\WEB-
> INF/appengine-web.xml
> Jul 14, 2010 6:52:39 AM
> com.google.apphosting.utils.config.AbstractConfigXmlReader
> readConfigXml
> INFO: Successfully processed C:\eclipse\workspace\checkhello\war\WEB-
> INF/web.xml
> Jul 14, 2010 12:22:42 PM
> com.google.appengine.tools.development.DevAppServerImpl start
> INFO: The server is running at http://localhost:/
> Jul 14, 2010 5:05:20 PM
> com.google.appengine.tools.development.LocalResourceFileServlet doGet
> WARNING: No file found for: /Addnum.html
> Jul 14, 2010 5:05:23 PM
> com.google.appengine.tools.development.LocalResourceFileServlet doGet
> WARNING: No file found for: /Addnum.html
> Jul 14, 2010 5:07:09 PM
> com.google.appengine.tools.development.LocalResourceFileServlet doGet
> WARNING: No file found for: /Addnum.html
> Jul 14, 2010 5:07:09 PM
> com.google.appengine.tools.development.LocalResourceFileServlet doGet
> WARNING: No file found for: /Addnum.html
>
> What should I do?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Problems persisting beans with date fields - Expenses sample app

2010-07-14 Thread Deepak
 0  down vote  favorite


hello all!

I tried running the sample GWT/Google Appengine application - expenses
generated by ROO using the roo command "script expenses.roo" (as
advised here)...

This app uses datanucleus-core - 1.1.6 and a HSQLDB as the in-memory
database.

I was able to run the application and successfully store and retrieve
Employee objects. (These Employee objects do not have any date type
fields but have only string and int fields).

But I am having problems storing the 'Report' objects with the App
printing an error message 'Unexpected Server Error'. Looking at the
logs and debugging, this unexpected error happened because of trying
to store null in a not null date type field ('created' date field)

This is where it gets complicated... Looking at the source code for
this Report class, the 'created' date field is not specified as a 'not
null' field (missing the @notnull annotation). To confirm this I
changed the databse to Postgresql and inspected the auto-generated
schema and found that this date field is indeed marked as 'not null'.

This means that DataNucleus during auto-schema generation always marks
date fields as 'not null'.

I further confirmed this by changing the ORM library to Hibernate and
the same code worked with out any problems and was able to save report
objects with date fields in both HSQL and Postgres DB.

Is it a bug with the DataNucleus and is anyone else seeing this
problem?

I am lost...

Thanks in advacne.

Deepak

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



MVP Contacts2 Layout Bug?

2010-07-14 Thread Tonté
Hi,

I downloaded both examples Contacts and Contacts2 for the MVP
architecture tutorial.  I was able to get both examples installed in
eclipse, despite the fact that the Contacts2 example did not have an
Eclipse .project file.  After running both examples, I noticed that
the layout is very different between the two.  Contacts layout is
small and concise; but the Contacts2 example takes up the hold page
width wise.

I wonder has anybody else seen this.  If so is there a fix to this?

Cheers!

Tonté

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: This is getting beyond a joke

2010-07-14 Thread David Chandler
Hang tight, folks, we're on it. As has been noted in this thread, GWT
itself is not built with maven, so it's not a 100% automated process
to push to maven central. But we're working hard to get gwt-user-2.0.4
and gwt-dev-2.0.4 uploaded by Friday and to make deployment to maven
central a part of future releases.

David Chandler
GWT Developer Relations
Atlanta, GA USA

On Jul 14, 9:15 pm, David Vree  wrote:
> Thanks for that.
>
> On Jul 14, 6:37 pm, monkeyboy  wrote:
>
>
>
> > Nice. From 23 to 37 stars in less than a day.
>
> > On Jul 14, 9:09 am, monkeyboy  wrote:
>
> > > On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen 
> > > wrote:
>
> > > > I would also wish that Google would takeMavenmore seriously. I can
> > > > only recommend all that agree to star the issues regardingMavenin
> > > > the bug tracker.
>
> > > Here it is (the issue 
> > > regardingMaven):http://code.google.com/p/google-web-toolkit/issues/detail?id=4673
>
> > > There are only 23 stars so far.- Hide quoted text -
>
> - Show quoted text -

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



Re: How to write good performance code?

2010-07-14 Thread mP
This sort of micro optimisation is pointless as it will happen a few
times here and there and costs nearly nothing in terms of CPU time.
Creating a local variable or not, makes no difference. Local and other
types of variables are being created all over the place. The browser
is doing a thousand other *more costly* things like painting a screen
with a million pixels, that worrying about a small thing like the
snippet makes no sense.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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/iphone/phonegap server communication

2010-07-14 Thread mP
Invoking an RPC from a locally served file (one thats loaded from file://)
makes no sense. How can the filesystem possibly respond to the request
in a dynamic way. The only thing it could do is try and return a file
that matches the path in the RPC end point. No matter what payload
accompanies the RPC the "server" in this case can only ever reply with
the same precooked response. In the end this would amount to just
requesting and fetching a static file, which kind of defeats the
purpose of invoking a service (which tend to be "dynamic").

hyh

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



Re: GWT client as Maven module in multi-module project

2010-07-14 Thread David Vree
Manually moving index.html to the WEB-INF directory solver the 404
problem. But there is still something wrong.

The pop-up window I get with the regular GWT application doesn't pop-
up in my application.  And the debugging stop point I added for
onModuleLoad doesn't catch.

On Jul 14, 6:40 pm, Thomas Broyer  wrote:
> On 14 juil, 19:25, David Vree  wrote:
>
>
>
> > Total GWT newbie here trying to get the first app up and running.  I'm
> > using Eclipse 3.5.2 and have created and run the sample app you get
> > with New->Google->Web Application.  The app and the GWT plugin for
> > Eclipse all work great.
>
> > Now I am trying to add a GWT client module to my multi-module maven
> > project that already contains various server maven-modules.  I used
> > the the "gwt-maven-plugin" archetype to create the module and the
> > directory structure seems fine, however, I cannot run in hosted mode.
>
> > When launching the debug web application I get an error in the
> > console:
>
> >      [WARN] No startup URLs supplied and no plausible ones found --
> > use -startupUrl
>
> > I noticed that the working application used the -startupUrl argument
> > to the launch and so I added "-startupUrl index.html" to mine but when
> > browsing to that location with firefox I get a 404.
>
> >      http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997
>
> > I picked index.html as the URL because the archetype created that file
> > in the "src/main/mywebapp/" directory -- which also contains my WEB-
> > INF directory.   I'm not sure this part of the directory structure is
> > correct.  Another potential problem is that the "war" directory in
> > this module does not contain the index.html.  So perhaps the resources
> > are not getting copied correctly.   Any guidance here is appreciated!
>
> I'm primarily a GWT user, and only started using Maven very recently.
> My project uses a "standard GWT project" layout where there's a war/
> folder at the "top level", and "standard Maven project" otherwise (src/
> main/java, src/test/java, etc.)
> It works with the Eclipse plugin because this one expects (by
> default!) a war/ folder with some HTML (or JSP) page in it.
> Unfortunately, I can't really tell if it works "in Maven", as I
> haven't really tried a "mvn gwt:compile" (I'm prototyping and haven't
> yet committed enough things to our repo to know if it'd work on our
> new Hudson CI server)
> For now, I configured my Maven project following:
>  - gwt-maven-plugin 
> docs:http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html
>  - GWT 2.1 Spring Roo integration (which generates a Maven project;
> note that I haven't ever used Spring Roo,just looking at the SVN 
> repo)https://fisheye.springsource.org/browse/spring-roo/addon-gwt/src/main...
>
> FWIW, I'm using the 1.3.1.google version of the gwt-maven-plugin that
> you can find in the GWT repo 
> athttp://google-web-toolkit.googlecode.com/svn/2.1.0.M2/gwt/maven/
> (I'm also using GWT 2.1.0.M2 from that repo)
>
> Oh, the 404 *is* due to the index.html not being in the war/ folder.
> Running DevMode from the Eclipse plugin doesn't do anything Maven-
> related, so it won't try copying files around.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: This is getting beyond a joke

2010-07-14 Thread David Vree
Thanks for that.

On Jul 14, 6:37 pm, monkeyboy  wrote:
> Nice. From 23 to 37 stars in less than a day.
>
> On Jul 14, 9:09 am, monkeyboy  wrote:
>
> > On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen 
> > wrote:
>
> > > I would also wish that Google would take Maven more seriously. I can
> > > only recommend all that agree to star the issues regarding Maven in
> > > the bug tracker.
>
> > Here it is (the issue regarding 
> > Maven):http://code.google.com/p/google-web-toolkit/issues/detail?id=4673
>
> > There are only 23 stars so far.

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

2010-07-14 Thread Katharina Probst
Are you looking for the GWT output JS?  If you look at the *.cache.html
files in the war directory, you'll see that they contain JS - they are
actually the obfuscated GWT output, where each permutation gets one
*.cache.html file.


On Tue, Jul 13, 2010 at 11:18 AM, lam  wrote:

> Hi,
> Where is the .cache.html file located? I know that .nocache.js and the
> html pages are located in the WAR file, but I am unable to find the
> cachable file. Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: JAXB & GWT How I can use JAXB generated classes on client side

2010-07-14 Thread Shyam Visamsetty
I think you cannot use JAXB with GWT. JAXB uses a lot of classes which
GWT cant compile. So, you may not be able to use it. You can use the
standard xml packages that come with GWT.

Thanks,
Shyam Visamsetty.

On Jul 14, 8:29 am, Alberto Rugnone 
wrote:
> Hi all,
> I have to use classes with jaxb annotation on client side, but GWT
> compiler refuse to work throwing following exception
>
> No source code is available for type javax.xml.namespace.QName
>  No source code is available for type javax.xml.bind.JAXBElement
>
> etc...
>
> someone can help me
>
> Thank you very much 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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: newbie question: deploying the starter web project

2010-07-14 Thread Katharina Probst
When you created your project, did you have AppEngine enabled?  If you're
trying to deploy with tomcat, you shouldn't have that option enabled.


> does the javascript file generated by the GWT sends request to the
> wrong servlet? does it point to /mainarea/greet all the time?
>
>
Your client-side implementation of the RPC (what allows you to talk between
the client and the server) has an annotation that should look like
this: @RemoteServiceRelativePath("greet")

That's how it hooks up to the server side servlet (whose URL pattern is
specified in the web.xml file). So, no, it doesn't have to point to
/mainarea/greet. Did you modify anything from the starter project?

kathrin


> Thanks,
> Oby
>
>
> On Jul 14, 6:01 am, Katharina Probst  wrote:
> > Try just taking the whole war directory that the compiler produces (as
> is)
> > and copying it to your tomcat/webapps/ directory.  Rename the war
> directory
> > to the name of your webapp (say, public_html).
> >
> > Then do tomcat/bin/startup.sh
> >
> > and go to
> >
> > localhost:8080/public_html/MainArea.html
> >
> > That should do the trick...
> >
> > kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw <
> osumamp...@gmail.com> wrote:
> > > Hi,
> > > I am trying to see if I can deploy the web starter project to a web
> > > server (which runs using tomcat)
> >
> > > The steps that I have done so far:
> > > 0.) create new GWT application, so it's the default template for a web
> > > app
> > > 1.) I compiled the starter project
> > > 2.) Copy the class, lib directory to the ~/public_html/WEB-INF
> > > 3.) Copy the web.xml to the ~/public_html/WEB-INF
> >
> > > this is the web.xml
> >
> > > 
> > >  > >PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > >"http://java.sun.com/dtd/web-app_2_3.dtd";>
> >
> > > 
> >
> > >  
> > >  
> > >greetServlet
> > >bla.bla.bla.server.GreetingServiceImpl > > class>
> > >  
> >
> > >  
> > >greetServlet
> > >/mainarea/greet
> > >  
> >
> > >  
> > >  
> > >MainArea.html
> > >  
> >
> > > 
> >
> > > 4.) I put the MainArea.html and MainArea.css to the ~/public_html
> > > because they are the welcome-file
> > > 5.) I copied the compiled javascript and resources (in the folder
> > > called 'mainarea') to ~/public_html
> > > 6.) So the structure is like this:
> >
> > > -- public_html
> > >  |- MainArea.html
> > >  |- MainArea.css
> > >  |- WEB-INF
> > >   |- web.xml
> > >   |- lib
> > >   |- class
> > >  |- mainarea
> > >   |- gwt
> > >   |- hosted.html
> > >   |- mainarea.nocache.js
> > >   |- other resources
> >
> > > When I go to the website, the page loads fine. But when I click send
> > > (to send the input to the server) it seems the path is wrong. I got
> > > this error:
> >
> > > Sending name to the server:
> > > GWT User
> >
> > > Server replies:
> > > An error occurred while attempting to contact the server. Please check
> > > your network connection and try again.
> >
> > > I was wondering if this servlet location is correct?
> >
> > > Another noob question about JSP, can I put the generated javascript
> > > code to ~/public_html/WEB_INF/mainarea instead of ~/public_html/
> > > mainarea.
> >
> > > Initially I thought WEB_INF becomes the root directory if web app
> > > tries to refer to some file? But apparently in the MainArea.html the
> > > script src='mainarea/mainare.nocache.js' doesn't work if I put
> > > mainarea inside WEB_INF.
> >
> > > I wish there's a way to make the html file able to access the mainarea
> > > directory from WEB_INF. Is it possible?
> >
> > > Thanks!
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

2010-07-14 Thread Sekhar
Thanks, yeah - saw http://goo.gl/fTlo after I posted. So, I guess
we'll need to implement something of our own, like a simple to/from
JSON strings. Any other thoughts/suggestions?

On Jul 14, 3:37 pm, Thomas Broyer  wrote:
> On 14 juil, 21:41, Sekhar  wrote:
>
> > Guys, I'm trying to use HTML5 Local Storage and am wondering how I can
> > save the data from the server as a string. Since GWT-RPC already
> > serializes/deserializes Java serializable objects, is there a way to
> > access its serialization functions to marshal the data to/from the
> > Local Storage strings?
>
> You can gain access to the GWT-RPC serialization code (provided your
> objects are used in a GWT-RPC somewhere, so the GWT compiler generates
> the appropriate serialization/deserialization code), but it won't be
> of any help in your case, as GWT-RPC serialization is asymmetric (for
> performance reasons).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Caution: SmartGwt loadup size is big

2010-07-14 Thread Jaroslav Záruba
Is GXT any different in this aspect? Does it support code-splitting? (Unless
it is only an alias of one of those you mentioned.)

On Thu, Jul 15, 2010 at 1:31 AM, Roger Studner  wrote:

> SmartGWT or ExtJS(gwt-ext, ext-gwt) etc.. all have this issue.
>
> "I'd like one tiny tiny feature."
>
> "here are your 1000+ files."
>
> Thanks!
>
> Roger
>
> On Jul 14, 2010, at 7:22 PM, mk wrote:
>
> > We have a tiny widget from SmartClient's SmartGwt. And it had
> > increased the intial loadup size between webserver and browser by 2.3MB
> > +.( js, css)
> >
> > Thus be cautious if you think this can hamper performance.
> >
> > (If anybody has solution to above than plz share ).
> >
> > FYI: We do changed header of script to cache all SmartClient's scripts
> > forever.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Caution: SmartGwt loadup size is big

2010-07-14 Thread Roger Studner
SmartGWT or ExtJS(gwt-ext, ext-gwt) etc.. all have this issue.

"I'd like one tiny tiny feature."

"here are your 1000+ files."

Thanks!

Roger

On Jul 14, 2010, at 7:22 PM, mk wrote:

> We have a tiny widget from SmartClient's SmartGwt. And it had
> increased the intial loadup size between webserver and browser by 2.3MB
> +.( js, css)
> 
> Thus be cautious if you think this can hamper performance.
> 
> (If anybody has solution to above than plz share ).
> 
> FYI: We do changed header of script to cache all SmartClient's scripts
> forever.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
> 

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



Caution: SmartGwt loadup size is big

2010-07-14 Thread mk
We have a tiny widget from SmartClient's SmartGwt. And it had
increased the intial loadup size between webserver and browser by 2.3MB
+.( js, css)

Thus be cautious if you think this can hamper performance.

(If anybody has solution to above than plz share ).

FYI: We do changed header of script to cache all SmartClient's scripts
forever.

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

2010-07-14 Thread Thomas Broyer


On 14 juil, 16:03, Thiago Dantas  wrote:
> Reading the GWT Bootstrap on Googles page, i have some question.
> (http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/
> FAQ_WhenDoModulesLoad )

Unless you're still using GWT 1.5, the up-to-date doc is here
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideBootstrap

>  How the JAVASCRIPT knows that the document is "ready" to begin
> onModuleLoad function ( step 10 ) ?

Depending on the browser:
 - using the DOMContentLoaded event
 - using a timer and checking the document.readyState value
The template is here:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js#285

>  The "ready" state is reached after all scripts be loaded and
> evaluated, how do that using javascript,i.e, how execute a function
> after all script tags be loaded ?

Just include a  after another