Re: GWT and Objectify

2010-05-08 Thread Sripathi Krishnan
Do you have javax.persistence.Id in your gwtc classpath?

--Sri


On 9 May 2010 11:37, Dalla  wrote:

> But I can´t get this to work.
> If I put an @Id annotation in my GWT-class, the compiler tells me
>
> [INFO]  [ERROR] Line 6: The import javax.persistence cannot be
> resolved
> [INFO]  [ERROR] Line 15: Id cannot be resolved to a type
>
> I´m using maven to build, can that have something to do with it?
>
> On 9 Maj, 02:34, Gal Dolber  wrote:
> > Annotations just work on gwt... there is nothing to emulate
> >
> > 2010/5/8 Dalla 
> >
> >
> >
> >
> >
> > > Hi all
> >
> > > I´m trying to understand how to use Objectify with GWT.
> > > In the features list you can read
> >
> > > "Objectify entities can be used in GWT without the need for Data
> > > Transfer Objects."
> >
> > > Sounds really good, problem is I don´t understand how.
> > > It seems like Objectify needs the @Id annotation to persist an entry,
> > > but the GWT compiler doesn´t emulate the javax.persistance.* package.
> >
> > > So how exatcly can I use my Objectify entities in GWT?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com 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-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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.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 and Objectify

2010-05-08 Thread Dalla
But I can´t get this to work.
If I put an @Id annotation in my GWT-class, the compiler tells me

[INFO]  [ERROR] Line 6: The import javax.persistence cannot be
resolved
[INFO]  [ERROR] Line 15: Id cannot be resolved to a type

I´m using maven to build, can that have something to do with it?

On 9 Maj, 02:34, Gal Dolber  wrote:
> Annotations just work on gwt... there is nothing to emulate
>
> 2010/5/8 Dalla 
>
>
>
>
>
> > Hi all
>
> > I´m trying to understand how to use Objectify with GWT.
> > In the features list you can read
>
> > "Objectify entities can be used in GWT without the need for Data
> > Transfer Objects."
>
> > Sounds really good, problem is I don´t understand how.
> > It seems like Objectify needs the @Id annotation to persist an entry,
> > but the GWT compiler doesn´t emulate the javax.persistance.* package.
>
> > So how exatcly can I use my Objectify entities in GWT?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > 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 
> 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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT compiler out of the box

2010-05-08 Thread Manuel Carrasco Moñino
Take a look to this article I wrote some time ago:

http://code.google.com/p/gwtchismes/wiki/Tutorial_ExportingGwtLibrariesToJavascript_en

-Manolo



On Sat, May 8, 2010 at 11:50 PM, Sripathi Krishnan
 wrote:
> You should take a look at gwt-exporter project. Specifically, see the sample
> code.
>
> From the projects documentation -
>>
>> (gwt-exporter is) a generator capable of taking GWT classes and exporting
>> them as ordinary Javascript APIs callable from hand-written Javascript
>> without JSNI, and suitable for use in mashups.
>
> Essentially, you create a normal GWT project and annotate the classes you
> want to use from hand-written javascript. That's about it.
>
> --Sri
>
>
>
> On 7 May 2010 02:15, Gabe  wrote:
>>
>> I'd really like to use the gwt java-to-javascript compiler outside of
>> a project, and interface it with non-gwt javascript code.
>>
>> I've read this is possible, but I've never found the process
>> accurately documented.  Has anyone done this?
>>
>> Does google plan on making the compiler more robust and independent?
>> I'd love to cross compile java components into javascript without
>> having to build them into a full gwt app.
>>
>> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Running gwt app with custom context root

2010-05-08 Thread Manuel Carrasco Moñino
This is the expected behavior of Google Eclipse Plugin. It runs
without context because it is able to handle various app contexts  at
same time and it only search for .html files to startup in the war/
folder.
Said that, you have either:
1.- Move your MyApp.html file to the root of your war folder, edit it,
and replace myapp.nocache.js by myapp/myapp.nocache.js
2.- Leave MyApp.html in the public directory of your app, and add the
parameter -startupUrl myapp/MyApp.html to the launcher:
Run -> Run Configurations -> Web Application -> MyApp -> Arguments ->
Program Arguments.

-Manolo

On Fri, May 7, 2010 at 8:17 PM, Antonio  wrote:
> I need to run my GWT application with custom context root.
>
> When i run the project plugin start server with empty context root eg:
> http://127.0.0.1:/MyApp.html?gwt.codesvr=127.0.0.1:9997
>
> I need this:
> http://127.0.0.1:/myapp/MyApp.html?gwt.codesvr=127.0.0.1:9997
>
> The application must run on http://127.0.0.1:/myapp instead of
> http://127.0.0.1:
>
> I'm using GWT 2.0.3 and lastest plugin.
>
> thx.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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: Grid component spacing question.

2010-05-08 Thread kozura
Style it with display: block;.  Images by default are inline which
leaves space for text footers.  Yeah that makes no sense..

On May 8, 3:41 pm, Julio Faerman  wrote:
> I have a undesired white space in my grid cell between the image
> bottom and the cell border.
>
> This simple code shows the problem:
>
> public class MyApp implements EntryPoint {
>         public void onModuleLoad() {
>                 Grid grid = new Grid(1,1);
>                 Image image = new Image();
>                 image.setUrl("http://shpyrko.files.wordpress.com/
> 2007/07/31persistenceofmemory.jpg");
>                 grid.setWidget(0,0,image);
>                 grid.setBorderWidth(1);
>                 RootPanel.get().add(grid);
>         }
>
> }
>
> Here you can see it running:http://theximp.appspot.com
>
> I wonder if this is caused by some default style... help anyone?
>
> Thanks in advance,
> Julio
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT and Objectify

2010-05-08 Thread Gal Dolber
Annotations just work on gwt... there is nothing to emulate

2010/5/8 Dalla 

> Hi all
>
> I´m trying to understand how to use Objectify with GWT.
> In the features list you can read
>
> "Objectify entities can be used in GWT without the need for Data
> Transfer Objects."
>
> Sounds really good, problem is I don´t understand how.
> It seems like Objectify needs the @Id annotation to persist an entry,
> but the GWT compiler doesn´t emulate the javax.persistance.* package.
>
> So how exatcly can I use my Objectify entities in GWT?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



GWT and Objectify

2010-05-08 Thread Dalla
Hi all

I´m trying to understand how to use Objectify with GWT.
In the features list you can read

"Objectify entities can be used in GWT without the need for Data
Transfer Objects."

Sounds really good, problem is I don´t understand how.
It seems like Objectify needs the @Id annotation to persist an entry,
but the GWT compiler doesn´t emulate the javax.persistance.* package.

So how exatcly can I use my Objectify entities in GWT?

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



Re: GWT compiler out of the box

2010-05-08 Thread Sripathi Krishnan
You should take a look at
gwt-exporterproject.
Specifically, see the sample
code.


>From the projects documentation -

> (gwt-exporter is) a generator capable of taking GWT classes and exporting
> them as ordinary Javascript APIs callable from hand-written Javascript
> without JSNI, and suitable for use in mashups.
>

Essentially, you create a normal GWT project and annotate the classes you
want to use from hand-written javascript. That's about it.

--Sri



On 7 May 2010 02:15, Gabe  wrote:

> I'd really like to use the gwt java-to-javascript compiler outside of
> a project, and interface it with non-gwt javascript code.
>
> I've read this is possible, but I've never found the process
> accurately documented.  Has anyone done this?
>
> Does google plan on making the compiler more robust and independent?
> I'd love to cross compile java components into javascript without
> having to build them into a full gwt app.
>
> 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.



Grid component spacing question.

2010-05-08 Thread Julio Faerman
I have a undesired white space in my grid cell between the image
bottom and the cell border.

This simple code shows the problem:

public class MyApp implements EntryPoint {
public void onModuleLoad() {
Grid grid = new Grid(1,1);
Image image = new Image();
image.setUrl("http://shpyrko.files.wordpress.com/
2007/07/31persistenceofmemory.jpg");
grid.setWidget(0,0,image);
grid.setBorderWidth(1);
RootPanel.get().add(grid);
}
}

Here you can see it running: http://theximp.appspot.com

I wonder if this is caused by some default style... help anyone?

Thanks in advance,
Julio

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

2010-05-08 Thread Michael W
Thank for the response of Sripathi  and Chris,

We have used firebug page speed, YSlow and Chrome Speed Tracer, GWT
debug panel.

Few changed already applied and few are in the pipeline

The actions have been done so far for the performance:
1. Used Akamai.com content cache implementation to cache the result of
RPC, images, Jascript and css files, so the user can get content from
nearest Akamai servers.
2. Group bunch of third party Javascript(s) into one server call.
3. Bind several requests into one RPC call (dayContentService.rpc)
4. Multi thread in server side to fetch result for
dayContentService.rpc
5. Changed the execution flow to load/execute GWT module first and
then load/execure third party Javascript(s)
6. Applied ClientBundle for the images loaded from GWT module. (you
can see it from logo, calendar, Find The Hotel images)
7.  Defer to load Google map key on demand
8.  Code splitting to reduce home page size.
9.  Gzip the response.


Changes in the pipeline:
1, Like Sripathi point it out, we will add expires header to images
(most images coming from the result of RPC, so it is hard for us to
use ClientBundle with GWT)
2. Add additional image domain for browser to parallel to load images.
Current we only have image3, we will add image4.

The website serves the user around the global, the challenge we are
facing with:
Most user's response time is fine, but some complain that the site is
slow.  Some region such as China reports that the page is slow to
download.

That is the main reason I start to look at the initial load.

Chris,
I am interesting in the 'server-side selection' approach.  Let me know
if you have any new progress on it.

I am also thinking to use App engine to load GWT module, so user can
get initial load from the server near by.  As far as you know, does
anyone successfully use App engine to load GWT.



On May 7, 6:47 pm, Chris Conroy  wrote:
> On Thu, May 6, 2010 at 11:05 PM, Sripathi Krishnan
>
>
>
>  wrote:
> >> Technically, in the very first request, the server already knows user
> >> browsers' type, is that feasible to:
> >>   combine 1), 2) and 3) together or
> >>   combine 1) and 2) together or
> >>   some other consideration
>
> > You are right, this is possible. See this discussion thread -
> >http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> > But, before going down that optimization path, there are several other
> > low-hanging-fruits to speed up your website. I looked at your website via
> > firebug, and the following issues come to my mind -
>
> > *.cache.xxx file don't have a 'far into the future' expires header.
> > Several (30 or so) images get downloaded at startup. None of these images
> > have aggressive cache settings. You are not using GWTs ImageBundles to
> > potentially inline these images.
> > You have atleast 2 RPC calls at startup (getDayContent and
> > getTargettedContent).The response of these calls is known ahead of time
> > (since they don't depend on any user input), and hence you could potentially
> > inline their response in the html and then use a Dictionary to read it in
> > onModuleLoad. Or you could use a ClientBundle to compile the data with your
> > application. Either way, you save two important 'pseudo-asnyc' requests that
> > delay initial rendering of your application.
> > I see you have a custom implementation to trace performance events. Have you
> > taken a look at GWTs Lightweight Metrics?
>
> > --Sri
>
> > On 7 May 2010 02:21, Michael W  wrote:
>
> >> We launched our GWT production ofhttp://www.holidayinn.comfew months
> >> ago and we are in the phrase to tune the performance.
>
> >> We see quick high percentage of traffics coming from nocach.js and
> >> cache.html, and just thinking how to reduce over all traffics.
>
> >> The normal flow of GWT would be like followings:
> >> 1)      The user request the website, the first server call is to get
> >> generated html file (from JSP/Servlet)
> >> 2)      Then browser sends second request to fetch nocach.js with
> >>     
> >> 3)      Based on the user browser's type, the browser send third request
> >> to
> >> get .cache.html
> >> 4)      Few RPC calls to get real content.
>
> >> So at least three requests are executed in sequence before the user
> >> can see something. It is kind of expensive.
>
> >> Technically, in the very first request, the server already knows user
> >> browsers' type, is that feasible to:
> >>   combine 1), 2) and 3) together or
> >>   combine 1) and 2) together or
> >>   some other consideration
>
> >> Would like to hear your opinions.
>
> >> Thanks
>
> >> --Michael
>
> Michael,
>
> You may find it easier to analyze performance issues in your app using
> SpeedTracer:http://code.google.com/webtoolkit/speedtracer/get-started.html
>
> (You are correct that you can eliminate that initial round trip by
> doing the selection on the server. We refer to this as 'server-side
> selection'. Unfortunately it is not yet part of GWT proper)
>
> --
> 

No docu

2010-05-08 Thread Stefan Bachert
Hi,

I did not found any docu/javadoc on "ClassSourceFileComposerFactory"

Is there a reason for it?

Stefan Bachert
http://gwtworld.de

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



Re: Running gwt app with custom context root

2010-05-08 Thread Tristan
You can just put the second address in your browser and bookmark it.
What are you trying to automate?

On May 7, 1:17 pm, Antonio  wrote:
> I need to run my GWT application with custom context root.
>
> When i run the project plugin start server with empty context root 
> eg:http://127.0.0.1:/MyApp.html?gwt.codesvr=127.0.0.1:9997
>
> I need this:http://127.0.0.1:/myapp/MyApp.html?gwt.codesvr=127.0.0.1:9997
>
> The application must run onhttp://127.0.0.1:/myappinstead 
> ofhttp://127.0.0.1:
>
> I'm using GWT 2.0.3 and lastest plugin.
>
> thx.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Hide/Show Table Row with UIBinder

2010-05-08 Thread bufferings
hi Craigo
I think the following is better.

// show
UIObject.setVisible(myTableRow, true);

// hide
UIObject.setVisible(myTableRow, false);

This is what UIObjects#setVisible(boolean) uses.

hope this helps
--
bufferings

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Keeping track of traffic volume generated by a GWT application

2010-05-08 Thread Stefan Bachert
Hi,

this does not meet your original question,
however, if someone wants to check the net behaviour, a watch with
firebug is helpful.

Another idea is to use webalizer which is doing some statistics based
on logging.
There should be a  way to configure the logging of tomcat in order to
support webalizer.

I think I have something similar for jetty

Stefan Bachert
http://gwtworld.de

On 7 Mai, 16:07, Tristan  wrote:
> Sounds like you need to add filters to your server code.
>
> On May 7, 4:23 am, Antonio Leonforte 
> wrote:
>
>
>
> > Hi all,
> > I have multiple GWT applications running on Tomcat, and I need to
> > monitor the total volume of traffic (inbound+outbound) generated by
> > each application, so that each application can start rejecting
> > requests when the total volume exeeds a given threshold.
>
> > Maybe I can configure and query tomcat to gather the traffic volume
> > stastistics, or do I have to modify the applications and add some code
> > server-side to calculate the volume of each request and add it to an
> > accumulator?
>
> > Thank you for your help.
> > Antonio.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@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.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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Error parsing XML: The reference to entity "documentId" must end with the ';' delimiter.

2010-05-08 Thread James
You are right. I wish the error was a little more informative! :)

James

On May 7, 2:17 pm, Thomas Broyer  wrote:
> On May 6, 10:43 pm, James  wrote:
>
> > I am using UiBinder. I have an Anchor in the XML file and when I
> > assign a URL to the href attribute that contains the string
> > "documentId" I get the "Error parsing XML" error (something like
> > ).
> > Compiling with debug output reveals that it is a SAXParseException
> > causing the problem.  Here is a partial stack trace of the error:
>
> > org.xml.sax.SAXParseException: The reference to entity "documentId"
> > must end with the ';' delimiter.
>
> Are you sure it's not href="http://www.somewhere.com/blah?
> foo=bar&documentId=baz" ? '&' has to be written as & in XML (as
> well as in HTML FWIW)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.To post to this group, send email 
> togoogle-web-tool...@googlegroups.com.to unsubscribe from this group, send 
> email togoogle-web-toolkit+unsubscr...@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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT compiler issues

2010-05-08 Thread Sripathi Krishnan
>
> In order to test whether or not GWT will work for "large" projects,
> I've generated a bunch of views just to expand the code base. I'm
> generating about 600 views and each view is displayed using
> GWT.runAsync. This works very well in development mode, but when
> compiling the application, the compiler runs out of memory when
> compiling the permutations. I've increased my memory to 1024Mb.
>

600 GWT.runAsync() calls is a bit unrealistic. It is equivalent to saying
your application will need 600+ javascript files to run. Making such
granular js files is actually detrimental to your applications performance.
I'd say 10 or so runAsync() calls are sufficient for "large" applications.
With ~300KB per fragment, you are speaking of 3MB of obfuscated javascript,
which is huge.

The out of memory error is most likely due to the huge number of runAsync()
calls. I'd recommend reducing the number of runAsync() to a more realistic
number.

I've partitioned the application into several modules - is it possible
> to "precompile" the modules independently? Any other ideas on how to
> get this up and running?
>
No. You cannot precompile separate modules independently, GWT still has a
monolithic compile. However, you can run each permutation in a separate
thread to speed up compilation. There are ways to get multiple-modules speak
to each other at runtime. Its not really recommended, but if it interests
you - this 
threadshould
get you started.

When I'm running Smart GWT as a frontend I don't actually need to
> inherit the GXT module (which in turn inherits GXT) and vice versa. Is
> it possible to have "conditional inheritance"?
>
Deferred binding for GXT v/s SmartGWT is going to be difficult, because you
are likely to have a totally different metaphor for creating UIs. That may
become too much of a headache using interfaces/abstract classes. Instead,
you could have your core code in one GWT module, say core. Then have two
separate GWT modules smartgwt and gxt, both of which inherit from common.
Then compile them as two independent modules.

Post your evaluation phase, its unlikely you will use both GXT and SmartGWT,
so you could simply get rid of one of the modules and continue work on
whatever framework you like.

--Sri



On 7 May 2010 15:32, nille  wrote:

> Hi!
>
> I'm having some quite serious problems with the GWT compiler. I'm
> working on a proof of concept application in order to determine
> whether or not GWT is suitable for another, larger project. So I have
> a "core" application and two frontends (GXT and SmartGWT respectively)
> that's "linked" into the core application using deferred binding. So
> in essence, I can switch between frontends by providing an HTTP
> parameter.
>
> Problem 1:
>
> When compiling my application all permutations are successfully
> compiled, but the compiler then hangs on "Compile of permutations
> succeeded". Nothing happens after that. Development mode works fine.
>
> Problem 2:
>
> In order to test whether or not GWT will work for "large" projects,
> I've generated a bunch of views just to expand the code base. I'm
> generating about 600 views and each view is displayed using
> GWT.runAsync. This works very well in development mode, but when
> compiling the application, the compiler runs out of memory when
> compiling the permutations. I've increased my memory to 1024Mb.
>
> I've partitioned the application into several modules - is it possible
> to "precompile" the modules independently? Any other ideas on how to
> get this up and running?
>
> When I'm running Smart GWT as a frontend I don't actually need to
> inherit the GXT module (which in turn inherits GXT) and vice versa. Is
> it possible to have "conditional inheritance"?
>
> I'm running MacOS 10.6.3, Java 1.6.0_17 and GWT 2.0.3.
>
> Thanks in advance,
> Nille
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT 2.0.3

2010-05-08 Thread Sripathi Krishnan
You cannot use java.io in your client side code. The jar file
common-1.0-SNAPSHOT.jar uses IO libraries, which isn't allowed.

--Sri


On 7 May 2010 16:42, Avinash  wrote:

> Hi All, I am working from migrating a GWT project from very old
> version 1.1.10 to the newer version.
> I am using GWT 2.0.3, gwt-maven-1.2, jdk1.5.0_11 and apache-
> maven-2.2.1.
> I am getting following error while compiling
>
> [INFO]Validating newly compiled units
> [INFO]   [ERROR] Errors in 'jar:file:/D:/projectName/common/target/
> common-1.0-SNAPSHOT.jar!/common/business/interfaces/TestFacade.java'
> [INFO]  [ERROR] Line 1341: No source code is available for
> type java.io.BufferedOutputStream; did you forget to inherit a
> required module?
> [INFO] [ERROR] Unexpected
> [INFO] java.lang.NullPointerException
>
> Can someone suggest what can be this issue and how to resolve it?
> Also if anyone used this kind of setup successfully, then inform the
> steps.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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: Jasper Help

2010-05-08 Thread Sripathi Krishnan
Without the stacktrace or error message, I'd say you are have Google App
Engine enabled. GAE does not allow you to use databases or open socket
connections. Try disabling GAE, its a preference in Eclipse.

--Sri



On 7 May 2010 23:46, bhargava  wrote:

> Hey Guys,
> I have integrated Jasper Reports on my netbeans platform and i am able
> to generate reports using the following code.
>
>  Map params = new HashMap();
>Connection conn =
> DriverManager.getConnection("databaseUrl", "userid","password");
>JasperReport jasperReport =
> JasperCompileManager.compileReport(reportSource);
>JasperPrint jasperPrint =
> JasperFillManager.fillReport(jasperReport, params, conn);
>JasperExportManager.exportReportToHtmlFile(jasperPrint,
> reportDest);
>JasperViewer.viewReport(jasperPrint);
>
> This stuff works perfect.
>
> But not i am trying to integrate Jasper with GWT.I have my server as
> glass fish server.
>
> I am getting the Connection object using the followind code.
>
>  public static Connection getConnection() {
>
>try {
>String JNDI = "JNDI name";
>InitialContext initCtx = new InitialContext();
>javax.sql.DataSource ds = (javax.sql.DataSource)
> initCtx.lookup(JNDI);
>Connection conn = (Connection) ds.getConnection();
>return conn;
>} catch (Exception ex) {
>ex.printStackTrace();
>}
>return null;
>}
>
> and then
>
> Map params = new HashMap();
> JasperReport jasperReport =
> JasperCompileManager.compileReport(reportSource);
>JasperPrint jasperPrint =
> JasperFillManager.fillReport(jasperReport, params, getConnection());
>JasperExportManager.exportReportToHtmlFile(jasperPrint,
> reportDest);
>JasperViewer.viewReport(jasperPrint);
>
> but i always get Error.I am implementing this on Server.I am having
> RPC calls to get this method to work when a button is clicked.
>
> Can you please help me how to work on this.(That is to integrate
> Jasper reports with GWT).
>
> I would highly appreciate any explanation with some code as i am just
> a beginner.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Hide/Show Table Row with UIBinder

2010-05-08 Thread Thomas Broyer


On 8 mai, 02:15, Craigo  wrote:
> Some browsers don't like:
> myTableRow.getStyle().setDisplay(Style.Display.BLOCK);
>
> This seems to work much better:
> myTableRow.getStyle().setProperty("display", "");
>
> Strange there isn't a constant value in Style.Display for blank.

myTableRow.getStyle().clearDisplay();

http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/dom/client/Style.html#clearDisplay()

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



piriti xml mapping

2010-05-08 Thread Fahim
Hi all,

I am using piriti framework in my GWT app for xml mapping. I have an
xml structure like this;


  
6480007
Test Package for Download Wizard

  
481291027
dead-fly-art-01
124146
  
  
481293027
dead-fly-art-03
99221
  

  



I am mapping the above xml to my pojo like this:

public class CourierPackage {

public interface CourierPackageReader extends
XmlReader {}
public static final CourierPackageReader XML =
GWT.create(CourierPackageReader.class);

@XmlField long id;
@XmlField String name;
@XmlField("contents/document") List packageContents;

}


I tried to read it like this in onResponseReceived:

List pkgs = CourierPackage.XML.readList(responseDoc,
"package");
CourierPackage pkg = pkgs.get(0);


Now what it is doing that it is reading the CourierPackage fields like
id, name correctly but it is not reading the contents in
packageContents List.

Any ideas what is wrong here.


Thanks,
Fahim



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



Jasper Help

2010-05-08 Thread bhargava
Hey Guys,
I have integrated Jasper Reports on my netbeans platform and i am able
to generate reports using the following code.

  Map params = new HashMap();
Connection conn =
DriverManager.getConnection("databaseUrl", "userid","password");
JasperReport jasperReport =
JasperCompileManager.compileReport(reportSource);
JasperPrint jasperPrint =
JasperFillManager.fillReport(jasperReport, params, conn);
JasperExportManager.exportReportToHtmlFile(jasperPrint,
reportDest);
JasperViewer.viewReport(jasperPrint);

This stuff works perfect.

But not i am trying to integrate Jasper with GWT.I have my server as
glass fish server.

I am getting the Connection object using the followind code.

 public static Connection getConnection() {

try {
String JNDI = "JNDI name";
InitialContext initCtx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)
initCtx.lookup(JNDI);
Connection conn = (Connection) ds.getConnection();
return conn;
} catch (Exception ex) {
ex.printStackTrace();
}
return null;
}

and then

Map params = new HashMap();
 JasperReport jasperReport =
JasperCompileManager.compileReport(reportSource);
JasperPrint jasperPrint =
JasperFillManager.fillReport(jasperReport, params, getConnection());
JasperExportManager.exportReportToHtmlFile(jasperPrint,
reportDest);
JasperViewer.viewReport(jasperPrint);

but i always get Error.I am implementing this on Server.I am having
RPC calls to get this method to work when a button is clicked.

Can you please help me how to work on this.(That is to integrate
Jasper reports with GWT).

I would highly appreciate any explanation with some code as i am just
a beginner.

Thanks

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



Re: jQuery with GWT

2010-05-08 Thread Paul Brown
The amazing Cromwellian kicked GQuery off but I think he's a bit strapped
for time at the moment.

Check out his Google IO 2009 presentation on the topic.

http://www.youtube.com/watch?v=sl5em1UPuoI

On 7 May 2010 15:48, "Tapas Adhikary"  wrote:

Thanks Daniel . Look like , somebody have already started writing the API to
integrate both. I would be more interested to know , if anybody have started
using the GwtQuery in their project and what's their opinion.

Thanks again.

- Tapas



On Fri, May 7, 2010 at 11:08 AM, daniel  wrote:
>
> http://code.google...

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



Running gwt app with custom context root

2010-05-08 Thread Antonio
I need to run my GWT application with custom context root.

When i run the project plugin start server with empty context root eg:
http://127.0.0.1:/MyApp.html?gwt.codesvr=127.0.0.1:9997

I need this:
http://127.0.0.1:/myapp/MyApp.html?gwt.codesvr=127.0.0.1:9997

The application must run on http://127.0.0.1:/myapp instead of
http://127.0.0.1:

I'm using GWT 2.0.3 and lastest plugin.

thx.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 404: could not find the greetServlet when putting the war file not in the tomcat's webapps folder

2010-05-08 Thread Tiago A. Silva
Correct is

   
   greetServlet
   /myproject/greet
 


to


   greetServlet
   /myproject/greet
 

2010/5/6 Mike Jiang 

> Thanks for the reply.
> the url should be corrected as
>
> http://localhost:8080/f1/f2/myproject.html
>
>  the original one
> was not right. Sorry for confusion.
>
> Changing the annotation @RemoteServiceRelativePath in the interface seemed
> only changing the relative path to the module, i.e., to myproject. Since the
> module is not under the webapps folder, but under webapps/f1/f2, the change
> would not reflect the structure. For example, if changing from the current
> one,
>
>  @remoteServicerelativePath("greet")
>
>  to
>
>  @remoteServicerelativePath("/f1/f2/myproject/greet")
>
> then should I change the servlet mapping from
>
>
>greetServlet
>/myproject/greet
>  
>
>
> to
>
> 
>greetServlet
>/*/*/myproject/greet
>  
>
> ?
>
>
> On Thu, May 6, 2010 at 2:09 PM, Sripathi Krishnan <
> sripathikrish...@gmail.com> wrote:
>
>> Change the annotation @RemoteServiceRelativePath in the interface
>> GreetingService.java
>>
>> --Sri
>>
>>
>> On 5 May 2010 21:51, Mike J  wrote:
>>
>>> Hi,
>>>   I am new for the GWT project. I have run a simple GWT app with the
>>> default setting. I deployed it on a Tomcat by simply dropping the
>>> wrapped war file into the webapps folder. The war file will be
>>> expanded to a folder automatically. No problem for everything. It
>>> worked as expected.
>>>
>>>   Now what I like to do is: instead of placing the war file into the
>>> default webapps folder, I would like to drop it to a sub folder f2
>>> under the webapps folder like,
>>> webapps/f1/f2
>>>
>>>Then I manually unzip the war file into a folder. No problem for
>>> that.
>>>
>>>When I loaded the page from the browser like,
>>>
>>>http://localhost:8080/myproject/f1/f2/myproject.html
>>>
>>>the page was loaded. But any RPC to the servlet,
>>> GreetingServiceImpl, would not be found. And the error is,
>>>
>>>HTTP STATUS: 404--/f1/f2/myproject/greet
>>>
>>>That is, could not find the servlet.
>>>
>>>What should I change in the GWT.XML or in the web.xml?
>>>
>>>in Web.xml:
>>>
>>>   
>>>greetServlet
>>>com.bp.myproject.server.GreetingServiceImpl>> servlet-class>
>>>  
>>>
>>>  
>>>greetServlet
>>>/myproject/greet
>>>  
>>>
>>>   in GWT.XML, there is nothing related to the servlet.
>>>
>>>   Thanks in advance,
>>>
>>>   Mike J
>>>
>>> --
>>> You received 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.
>

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

2010-05-08 Thread tchoa91
Hello world,

I confirm : ever if Eclipse is installed in "Program Files", one can't
use GWT or Apps features if one start Eclipse without Admin rights.
Eclipse's about tells plugins and SDK are installed, but they don't
show in UI.
When one restart Eclipse with Admin rights, Workspace is lost and
plugins and SDK are no longer installed.
Then, when Google tools are been re-installed in an Admin mode started
Eclipse, they are available if Eclipse is run with Admin rights.

Platform infos: self-design PC, Win7, all updates (system, java,
eclipse).
TAGS: GWT buttons disappear in eclipse

... GWT learning restarts ! :)

On 27 avr, 16:54, Stimpy  wrote:
> Yeah I did some tinkering the day after my post and found that if you
> haveEclipseinstalled in the Program Files directory and run it as
> Administrator everything works fine, but if not most of the plugins
> will fail to operate correctly. You must run it as the actual
> Administrator though, a user with local Administrative privileges will
> not work. As Jason mentioned if you installEclipseinto a folder in
> the users own directory structure then Administrative privilege might
> not be necessary, but I have not tested this yet.
>
> Thank you all for your help, I will try to do some more testing and
> see if I can come up with/confirm anymore workarounds for this bug.
>
> -Will
>
> On Apr 26, 11:45 am, Jason Parekh  wrote:
>
>
>
>
>
> > We've heard of similar strange behavior on Windows machines, and folks seem
> > to resolve it by installing and runningEclipseas an administrator.
>
> > We've also seen similar behavior on Linux that is caused 
> > byhttps://bugs.eclipse.org/bugs/show_bug.cgi?id=281510.  The workaround for
> > this is to download theEclipsezip file and just install it for your user.
>
> > jason
>
> > On Sun, Apr 25, 2010 at 9:15 PM, Stimpy  wrote:
> > > I just made a post about this a little while ago. I am having the same
> > > problem. Only difference is that mine was working for a while before
> > > it disappeared.
>
> > > -Will
>
> > > On Apr 23, 9:53 pm, Swamy  wrote:
> > > > I installed the GWT plug forEclipse(3.5, Galileo) using the
> > > > instructions on the web site. Things seemed to work.  However, I don't
> > > > see any option to create a Web Application Project via the menu File
> > > > ==> New.
>
> > > > Is there some way I can verify that theEclipseGWT plug-in did
> > > > install properly by looking at the file system?  I am using Windows
> > > > Vista.
>
> > > > FromEclipse, it seems that the installation did occur because if I
> > > > try to install the plug-in again, it declares that it has already been
> > > > installed!
>
> > > > I should mention that myEclipsehad the Blackberry plug-in already
> > > > installed when I tried to add the GWT plug-in.  Does that make a
> > > > difference?
>
> > > > Thanks for any 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-toolkit@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 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.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 
> > 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.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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-

GWT 2.0.3

2010-05-08 Thread Avinash
Hi All, I am working from migrating a GWT project from very old
version 1.1.10 to the newer version.
I am using GWT 2.0.3, gwt-maven-1.2, jdk1.5.0_11 and apache-
maven-2.2.1.
I am getting following error while compiling

[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 'jar:file:/D:/projectName/common/target/
common-1.0-SNAPSHOT.jar!/common/business/interfaces/TestFacade.java'
[INFO]  [ERROR] Line 1341: No source code is available for
type java.io.BufferedOutputStream; did you forget to inherit a
required module?
[INFO] [ERROR] Unexpected
[INFO] java.lang.NullPointerException

Can someone suggest what can be this issue and how to resolve it?
Also if anyone used this kind of setup successfully, then inform the
steps.

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

2010-05-08 Thread jMantyka
I am having the same problem. I cannot have the application engine
active(nor do I want it active) as I need a database on this system
and inetaddress is not on the white list.  Disabling the app engine
gives me this same error before the whole service starts up.  Am I
just missing a library for this, or is this a bigger issue?

On May 6, 12:45 pm, fomba collins  wrote:
> I discovered the source of my last erro posted on this forum. This was
> because I deactivated the application engine. Actually my application
> was generating an HTTP404 error on the browser and when I posted the
> problem to a forum, I was asked to deactivate the google application
> engine since it does not permit using databases. I deactivated and it
> worked. But later on with the engine deactivated, the application
> generates this error:
>
> Starting Jetty on port 
>    [WARN] failed org.mortbay.jetty.nio.selectchannelconnecto...@7109c4
> java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
> lang/Object;)V
>     at org.mortbay.io.nio.SelectorManager
> $SelectSet.(SelectorManager.java:306)
>     at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> 223)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at
> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
> 303)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at org.mortbay.jetty.Server.doStart(Server.java:233)
>
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at
> com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> 543)
>     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
>     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
>     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
>     at com.google.gwt.dev.DevMode.main(DevMode.java:275)
>    [WARN] failed selectchannelconnec...@127.0.0.1:
> java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
> lang/Object;)V
>     at org.mortbay.io.nio.SelectorManager
> $SelectSet.(SelectorManager.java:306)
>     at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> 223)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at
> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
> 303)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at org.mortbay.jetty.Server.doStart(Server.java:233)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at
> com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> 543)
>     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
>     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
>     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
>     at com.google.gwt.dev.DevMode.main(DevMode.java:275)
>    [WARN] failed ser...@13ad33d
> java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
> lang/Object;)V
>     at org.mortbay.io.nio.SelectorManager
> $SelectSet.(SelectorManager.java:306)
>     at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> 223)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at
> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
> 303)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at org.mortbay.jetty.Server.doStart(Server.java:233)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at
> com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> 543)
>     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
>     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
>     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
>     at com.google.gwt.dev.DevMode.main(DevMode.java:275)
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.mortbay.thread.Timeout.(Ljava/lang/Object;)V
>     at org.mortbay.io.nio.SelectorManager
> $SelectSet.(SelectorManager.java:306)
>     at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> 223)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at
> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
> 303)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at org.mortbay.jetty.Server.doStart(Server.java:233)
>     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> 39)
>     at
> com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> 543)
>     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
>     at com.google.gwt.dev.DevModeBase.startUp(DevMode

How to unit test a RemoteServiceServlet referencing a PersistenceManager

2010-05-08 Thread ingo
hello everyone,

i wrote a class extending the gwttestcase class that should test my
remoteserviceservlet. i added a couple test* methods to it. as long as
i do not instantiate the remoteserviceservlet that i actually want to
test i can run the tests successfully :-) but when the
remoteserviceservlet is instantiated i got the following error:

Caused by: javax.jdo.JDOFatalUserException: Duplicate PMF name
"transactions-optional" found in file:/Users/ingo/svn/honeycrm_all/
trunk/src/
META-INF/jdoconfig.xml and file:/Users/ingo/svn/honeycrm_all/trunk/war/
WEB-INF/classes/META-INF/jdoconfig.xml.
at javax.jdo.JDOHelper.getNamedPMFProperties(JDOHelper.java:1300)
at javax.jdo.JDOHelper.getPropertiesFromJdoconfig(JDOHelper.java:
1232)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
1079)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
914)
at crm.server.PMF.(PMF.java:7)
... 30 more

you can browse through my sources causing the problems here
http://code.google.com/p/honeycrm/source/browse/trunk/src/crm/
(especially 
http://code.google.com/p/honeycrm/source/browse/trunk/src/crm/client/test/ServiceTest.java).

if found this error in other mailinglists / forums as well without any
solutions. does anybody know how to fix this? thanks in advance!

kind regards,
ingo

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



GWT compiler issues

2010-05-08 Thread nille
Hi!

I'm having some quite serious problems with the GWT compiler. I'm
working on a proof of concept application in order to determine
whether or not GWT is suitable for another, larger project. So I have
a "core" application and two frontends (GXT and SmartGWT respectively)
that's "linked" into the core application using deferred binding. So
in essence, I can switch between frontends by providing an HTTP
parameter.

Problem 1:

When compiling my application all permutations are successfully
compiled, but the compiler then hangs on "Compile of permutations
succeeded". Nothing happens after that. Development mode works fine.

Problem 2:

In order to test whether or not GWT will work for "large" projects,
I've generated a bunch of views just to expand the code base. I'm
generating about 600 views and each view is displayed using
GWT.runAsync. This works very well in development mode, but when
compiling the application, the compiler runs out of memory when
compiling the permutations. I've increased my memory to 1024Mb.

I've partitioned the application into several modules - is it possible
to "precompile" the modules independently? Any other ideas on how to
get this up and running?

When I'm running Smart GWT as a frontend I don't actually need to
inherit the GXT module (which in turn inherits GXT) and vice versa. Is
it possible to have "conditional inheritance"?

I'm running MacOS 10.6.3, Java 1.6.0_17 and GWT 2.0.3.

Thanks in advance,
Nille

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

2010-05-08 Thread Tiago A. Silva
Pessoal, Desenvolvo projetos em GWT a mais ou menos 1 ano e meio, gostaria
de saber se alguém necessita de alguma ajuda, ou até mesmo me indicar para
trabalhar com gwt.

Abraços.

2010/5/6 kozura 

> Not knowing your reasoning for wanting to load two modules in a page,
> multiple modules can work as:
>
> - Separate pages, so loading second module completely takes over from
> the first
> - Within an iframe, same idea but can be loaded from within the first
> page
> - Code splitting, probably the best way to solve most reasons for
> wanting separate "modules" to work together
>
> If you mention why you want to use separate modules, can probably help
> you decide which way to go.
>
> On May 6, 12:57 am, monkey01  wrote:
> > I want to dynamically load another GWT module in one initial GWT
> > module, but it does not work. Here's what I tried.
> >
> > 1. I tried to static load both module in the hosting page with no
> > problem.
> >
> > 
> > .
> > 
> > 
> > .
> > 
> > 
> > .
> > ==
> >
> > 2. Then I tried to load module2 dynamically, it won't work. When I
> > click on the button, the whole page is wiped out, and the current page
> > comes to endless loading/waiting  status.
> > ===
> > 
> > 
> >
> > 
> > 
> > function loadModule2(){
> > var head = document.getElementsByTagName('head')[0];
> > script = document.createElement('script');
> > script.id = 'loadShellAppScript';
> > script.type = 'text/javascript';
> > script.src = /b/...Module2.nocache.js';
> > head.appendChild(script);
> >
> > }
> >
> > 
> >
> > click me
> >
> > =
> >
> > Any idea? Why a static js src works but dynamic load fails? What's the
> > best approach to dynamically load another module? Do I have to create
> > an iframe in order to load another gwt module? Any one tried that?
> >
> > All the files are serving at one server, and both modules work fine in
> > their own hosting page.
> >
> > Thanks.
> >
> > Yunfeng Hou
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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: Fileupload in Showcase isn't working

2010-05-08 Thread Ajay Chitre
Adding some more info...



In the debugger when I set a breakpoint in 'onInitialize' at this line:*

RootPanel.get().add(form); *

the form seems to be built properly as follows:


http://127.0.0.1:/showcase/myFormHandler"; target="FormPanel_1">Select a
file:Upload
File


But under firebug, the form shows up as this...

http://127.0.0.1:/showcase/myFormHandler"; enctype="multipart/form-data"
method="post">

So seems like there's something in the Showcase application framework that's
causing this.  Any ideas?



On Wed, May 5, 2010 at 8:01 AM, Something Something <
mailinglist...@gmail.com> wrote:

> Hello,
>
> I am writing a GWT application based on the 'Showcase' sample (
> http://gwt.google.com/samples/Showcase/Showcase.html).  I am trying to get
> the 'File Upload' feature to work.  I have changed the 'CwFileUpload' class
> as follows:
>
>   public Widget onInitialize() {
> // Create a FormPanel and point it at a service.
> *final FormPanel form = new FormPanel();*
> form.setAction(GWT.getModuleBaseURL() + "*myFormHandler*");
>
> // Because we're going to add a FileUpload widget, we'll need to set
> the
> // form to use the POST method, and multipart MIME encoding.
> form.setEncoding(FormPanel.ENCODING_MULTIPART);
> form.setMethod(FormPanel.METHOD_POST);
>
> // Create a vertical panel to align the content
> VerticalPanel vPanel = new VerticalPanel();
> form.setWidget(vPanel);
> // Add a label
> vPanel.add(new HTML(constants.cwFileUploadSelectFile()));
>
> // Add a file upload widget
> final FileUpload fileUpload = new FileUpload();
>  fileUpload.ensureDebugId("cwFileUpload");
> vPanel.add(fileUpload);
>
> // Add a button to upload the file
> Button uploadButton = new Button(constants.cwFileUploadButton());
> uploadButton.addClickHandler(new ClickHandler() {
>   public void onClick(ClickEvent event) {
> String filename = fileUpload.getFilename();
> if (filename.length() == 0) {
>   Window.alert(constants.cwFileUploadNoFileError());
> } else {
> //  Window.alert(constants.cwFileUploadSuccessful());
>   form.submit();
> }
>   }
> });
> vPanel.add(new HTML(""));
> vPanel.add(uploadButton);
>
> // Add an event handler to the form.
> form.addSubmitHandler(new SubmitHandler() {
>   @Override
>   public void onSubmit(SubmitEvent event) {
> if (fileUpload.getFilename().length() == 0) {
>   Window.alert("Must select a valid file");
>event.cancel();
> }
>   }
> });
>
> form.addSubmitCompleteHandler(new FormPanel.SubmitCompleteHandler() {
>   public void onSubmitComplete(SubmitCompleteEvent event) {
> // When the form submission is successfully completed, this
> // event is fired. Assuming the service returned a response of type
> // text/html, we can get the result text here (see the FormPanel
> // documentation for further explanation).
> Window.alert(event.getResults());
>   }
> });
> *RootPanel.get().add(form);*
>
> // Return the layout panel
> return vPanel;
>   }
>
>
> The code in *MyFormHandler *is given below (Note: This was directly copied
> from the Google Appengine FAQ page):
>
>   public void *doPost*(HttpServletRequest req, HttpServletResponse res)
>   throws ServletException, IOException {
> try {
>   ServletFileUpload upload = new ServletFileUpload();
>   res.setContentType("text/plain");
>
>   FileItemIterator iterator = upload.getItemIterator(req);
>   while (iterator.hasNext()) {
> // IT NEVER GETS IN THIS LOOP
> FileItemStream item = iterator.next();
> InputStream stream = item.openStream();
>
> if (item.isFormField()) {
>   LOG.warning("Got a form field: " + item.getFieldName());
> } else {
>   LOG.warning("Got an uploaded file: " + item.getFieldName() +
>   ", name = " + item.getName());
>
>   // You now have the filename (item.getName() and the
>   // contents (which you can read from stream).  Here we just
>   // print them back out to the servlet output stream, but you
>   // will probably want to do something more interesting (for
>   // example, wrap them in a Blob and commit them to the
>   // datastore).
>   int len;
>   byte[] buffer = new byte[8192];
>   while ((len = stream.read(buffer, 0, buffer.length)) != -1) {
> res.getOutputStream().write(buffer, 0, len);
>   }
> }
>   }
> } catch (Exception ex) {
>   throw new ServletException(ex);
> }
>   }
>
> When form is submitted, no "FileItems" (meaning form fields) are returned
> in the Request object.  I have tried moving the FormPanel to Showcase.java
> and tried several combinations, but nothing is working :(   Any ideas on
> debugging this further

GWT compiler out of the box

2010-05-08 Thread Gabe
I'd really like to use the gwt java-to-javascript compiler outside of
a project, and interface it with non-gwt javascript code.

I've read this is possible, but I've never found the process
accurately documented.  Has anyone done this?

Does google plan on making the compiler more robust and independent?
I'd love to cross compile java components into javascript without
having to build them into a full gwt app.

Thank you.

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



Re: Serializando classes Usando hibernate no GWT

2010-05-08 Thread Tiago Almeida gmail
Você Criou Entidades para o Client e para o Hibernate e as
Serializou...???  Você tem que fazer transferencia Via DTO, Data
Transfer Object,bom qualquer dúvida me manda e-mail tiago...@gmail.com

On 3 maio, 13:40, polica  wrote:
> Não consigo mostrar uma lista referente a pedidos cadastros,
> utilizando hibernate no GWT
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> 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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



1.7 to 2.0, GWT doesn't work any more

2010-05-08 Thread Navigateur
I was wondering if anyone's had the issue of nothing displaying on
their application when migrating from GWT 1.7 to 2.0? (The static html
shows, none of the GWT widgets show). I can get an alert box to
display onModuleLoad(), but nothing else.

If so, how were you able to fix it? Or does anybody have any
suggestions? I'm using GWTCanvas along with standard GWT widgets.
Could that be the problem? If so, how would I use GWTCanvas for 2.0?

I get no error messages, just a warning "Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl' "

Many thanks,
N

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