Re: Can anyone provide a step by step maven + gwt mvp tutorial?

2010-05-05 Thread Manuel Carrasco Moñino
Hello,

- There is an outdated archetype which creates a very simple Gwt
project without tests nor RPCs. Unfortunately the generated pom.xml is
for old gwt versions and needs that you do a bunch of changes by hand.
  mvn archetype:generate  -DarchetypeGroupId=org.codehaus.mojo \
   -DarchetypeArtifactId=gwt-maven-plugin  -DarchetypeVersion=1.1 \
   -DgroupId=com.foo  -DartifactId=myApplication

- Lately I have sent a patch to gwt which adds the ability to generate
pom.xm to webAppCreator. But the patch is under review and it wont be
available until a new gwt version (in the case it is included).
http://gwt-code-reviews.appspot.com/397801/show

- So, I recommend you to get the pom.xml from a working application
and use it as a template for your project.
Some days ago, I  ported the google contacts example application in
order to use available libraries for MVP and add tests for all the
code. I think It should be a good point for starting your project:
http://gwt-workshop.googlecode.com/files/GwtWsMvpContacts.zip


Cheers
-Manolo




On Thu, May 6, 2010 at 12:45 AM, crojay78  wrote:
> Hi,
>
> now that I have a bit experience with gwt in mvp style, I am looking
> for an example for using maven as build tool for gwt, I found a few
> posts here and on other sources but nothing made it really clear for
> me. I have to say that I am new to maven.
>
> I installed maven and also installed the maven gwt eclipse plugin. I
> was able to create a project with the gwt archetype and configured it
> for eclipse with mvn eclipse:eclipse (both form the command line). The
> creation of a new maven project from inside eclipse does not work.
>
>
> So this is my situation. My aim is that I can create in a fast way a
> valid gwt project (this is possible now with the archetype). Then I
> have to do the changes so that I have an MVP project. Or does an
> archetype exist that creates an mvp like structure???
>
>
> So from this point I do not know how to proceed??? Can somebody show
> me how to work with this new project.
>
> How can I build it and use the developement mode in eclipse?
> Hopefully somebody can help me with that
>
>
> Best Regards
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT + GAE + Gadget Timestamp Converter Application

2010-05-05 Thread branflake2267
I forgot to post the GAE link

http://demogwtdatetimegae.appspot.com/

On May 5, 11:24 pm, branflake2267  wrote:
> I built a Google Web Toolkit application which can be quickly compiled
> for the Google App Engine and IGoogle Gadget. I made a source project
> then included it into a GAE and Gadget project so I didn't have to
> change compiling techniques depending on which I wanted to build it
> for. This actually ended up to be very easy to deploy the application
> this way.
>
> http://www.google.com/ig/directory?url=demogwtdatetimegadget.appspot
> - IGoogle Gadget
>
> http://gwt-examples.googlecode.com - Find the source in the DateTime
> Converter
>
> http://code.google.com/p/gwt-examples/wiki/project_Gadget - gadget
> examples
>
> Including projects is pretty easy after you do it a few times. It does
> take a few steps, but I find I save time in deployment of the
> applications and reduction in code footprint when I do several
> modules.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post 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.



GWT + GAE + Gadget Timestamp Converter Application

2010-05-05 Thread branflake2267
I built a Google Web Toolkit application which can be quickly compiled
for the Google App Engine and IGoogle Gadget. I made a source project
then included it into a GAE and Gadget project so I didn't have to
change compiling techniques depending on which I wanted to build it
for. This actually ended up to be very easy to deploy the application
this way.

http://www.google.com/ig/directory?url=demogwtdatetimegadget.appspot.com/demogwtdatetime_gadget/org.gonevertical.demo.client.DemoGwtDateTime_Gadget.gadget.xml
- IGoogle Gadget

http://gwt-examples.googlecode.com  - Find the source in the DateTime
Converter

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

Including projects is pretty easy after you do it a few times. It does
take a few steps, but I find I save time in deployment of the
applications and reduction in code footprint when I do several
modules.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2010-05-05 Thread markww
What version of GWT are you using Viliam, form.addFormPanel() doesn't
seem to exist anymore?

On Apr 27, 12:32 am, Viliam Durina  wrote:
> There is even a simpler solution without using JSNI at all. Set the
> form's action to just "javascript:;" and put the login logic to the
> form's submitHandler:
>
>   FormPanel form =
> FormPanel.wrap(Document.get().getElementById("login"), false);
>   form.setAction("javascript:;");
>
>   form.addFormPanel(new FormPanel() {
>      public void onSubmit(FormSubmitEvent event) {
>         // do some validation before submitting (non-empty fields)
>         // and call event.setCancelled(true) if needed.
>
>         // get the fields values and do your GWT-RPC call or
>         // RequestBuilder thing here.
>       }
>       public void onSubmitComplete(FormSubmitCompleteEvent event) {
>          // will never be called.
>       }
>    });
>
> Tested in IE8, firefox 3.5 and chrome 4.1 and chrome 5 beta, works in
> the first two, the last two don't offer to save the password.
> Confirmed with Thomas Broyer that the original solution does not work
> there either. Going to file a bug there.
>
> Viliam
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post 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: Export CSV from Client

2010-05-05 Thread Ramon Buckland
There is a way to achieve this ..

http://downloadify.info/


see below for a jQuery-ified example/

http://stackoverflow.com/questions/2226192/generate-some-xml-in-javascript-prompt-user-to-save-it

This uses a Flash .swf as the download conduit. tatical it seems but also
functional.

cheers
r,

On Wed, May 5, 2010 at 10:18 PM, flyingb...@gmail.com
wrote:

> to  save data as a file, you will need to passs the client data to
> server and server send back the data to download as a cvs.
>
> On May 5, 12:30 pm, "cho.cabot"  wrote:
> > I am trying to allow a user to download data he has manipulated in a
> > GWT application in CSV format by clicking a button.  I do not want to
> > have to go back to the server to create/download this CSV file since I
> > already have the data I need for the file in the client.  I did not
> > see a way to accomplish this in the GWT API, so I went the native
> > JavaScript route.  I created these methods:
> >
> > private native Object exportOpen() /*-{
> > var win = window.open("", "export", "");
> > var doc = win.document;
> > doc.open("text/csv", "replace");
> > return win;
> >
> > }-*/;
> >
> > private native void exportWrite(Object win, String line) /*-{
> > win.document.writeln(line);
> >
> > }-*/;
> >
> > private native void exportClose(Object win) /*-{
> > win.document.close();
> >
> > }-*/;
> >
> > And when a button is clicked, the following method is called:
> >
> > private void export() {
> > Object win = exportOpen();
> > // Actual code loops through data and writes lines, but for
> > example...
> > exportWrite(win, "TEST,TEST,TEST");
> > exportClose(win);
> >
> > }
> >
> > This code basically works, except for the fact that the output is just
> > displayed in a new browser window without prompting the user with the
> > open/save dialog, which is what I was after.
> >
> > Does anyone know how I can get the open/save dialog to be opened for
> > the user?  Or, is there a way to create and download this data in GWT
> > without using native JavaScript?
> >
> > Thanks for your help.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-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: Hosting the GWT JavaScript Files on a remote machine?

2010-05-05 Thread Jeff Chimene
On 05/05/2010 06:52 PM, Quu wrote:
>> You're probably running into the same origin policy. If possible, use a
>> bootstrap routine on the HTML page that loads from otakuvideo.com in a
>> frame.
> 
> this may sound strange, but how do I do that?
> 

One more point:

Take a look at
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/jsonp/client/JsonpRequestBuilder.html

You might need that instead

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Hosting the GWT JavaScript Files on a remote machine?

2010-05-05 Thread Jeff Chimene
On 05/05/2010 06:52 PM, Quu wrote:
>> You're probably running into the same origin policy. If possible, use a
>> bootstrap routine on the HTML page that loads from otakuvideo.com in a
>> frame.
> 
> this may sound strange, but how do I do that?
> 

My reply was not quite accurate w/r/t/ GWT

I'd start here
http://code.google.com/webtoolkit/doc/latest/FAQ_Server.html#What_is_the_Same_Origin_Policy,_and_how_does_it_affect_GWT?

and see if that gets you started.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Hosting the GWT JavaScript Files on a remote machine?

2010-05-05 Thread Quu
> You're probably running into the same origin policy. If possible, use a
> bootstrap routine on the HTML page that loads from otakuvideo.com in a
> frame.

this may sound strange, but how do I do that?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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 with GAE Blobstore

2010-05-05 Thread compuroad
I am trying to use GAE Blobstore with GWT. I have changed the sample
they have online:

http://code.google.com/appengine/docs/java/blobstore/overview.html

I replaced the jsp page with a GWT page (below). I replaced the call
to "<%= blobstoreService.createUploadUrl("/upload") %>" with a RPC
call which is initiated by "controller.getUploadURL("/index").

However I am getting the following error:

SEVERE: [127300268044] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
net.compuroad.cerrado.client.data.DataAccessService.getUploadURL(java.lang.String)'
threw an unexpected exception: java.lang.NoClassDefFoundError: com/
google/appengine/api/blobstore/BlobstoreServiceFactory

at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
360)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
546)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
166)

I have installed GAE SDK 1.3.3.1. Any ideas will be appreciated.

Thanks,

Wilson

//GWT page to upload the images:

public class ImagePage2 extends Page {

private String[] mediaList = {"Select
media","picture","video"};
private FileUpload upload = null;

private Controller controller = null;
private static CerradoConstants constants = null;

private  final FormPanel form = new FormPanel();
private VerticalPanel panel = new VerticalPanel();
private FlexTable table = new FlexTable();

private Button btnAddImage = new Button("Add Image");

private Button btnUpload = new Button("Upload");

private TextBox txtPropertyID = new TextBox();
private TextBox txtPropertyName = new TextBox();


/**
 * Constructor
 */
public ImagePage2(final Controller controller, final
CerradoConstants constants) {

this.constants = constants;
this.controller = controller;

// Create a FormPanel and point it at a service.
//form.setAction(GWT.getModuleBaseURL() +"Image");

// 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);
form.setWidget(panel);


btnAddImage.addClickHandler( new ClickHandler(){

@Override
public void onClick(ClickEvent event) {
  upload = new FileUpload();
  upload.setName("uploadForm");
upload.setSize("450px", "25px");
panel.add(upload);
}

});

btnUpload.addClickHandler( new ClickHandler(){

@Override
public void onClick(ClickEvent event) {
   /** This call initiates the RPC call
and generates the error **/
 controller.getUploadURL("/index");
}

});

   //The upload URL should come back from the RPC
call  controller.getUploadURL("/index") using this listener
 
controller.getData().addPropertyChangeListener("uploadURL", new
PropertyChangeListener(){

@Override
public void propertyChange(PropertyChangeEvent
event) {
String path = null;
if (event.getNewValue()!= null){
path = (String )
event.getNewValue();

Window.alert("Upload URL:
"+path);
form.setAction(path);
form.submit();

}


}


});

panel.add(btnAddImage);
panel.add(btnUpload);

// Add an event handler to the form.
   form.addFormHandler(new FormHandler() {

  @Override
  public void onSubmit(FormSubmitEvent event) {



  }

  public void onSubmitComplete(SubmitCompleteEvent event)
{

Window.alert(event.getResults());
  }

@Override
public void onSubmitComplete(FormSubmitCompleteEvent
event) {
// TODO Auto-generated method stub

Window.alert(event.getResults());

}

});

   // Add a 'submit' button.
panel.add(new Button( "Submit", new ClickListener() {

  public void onClick(Widget sender) {


 

Re: Hosting the GWT JavaScript Files on a remote machine?

2010-05-05 Thread Jeff Chimene
On 05/05/2010 06:36 PM, Quu wrote:
> Is it possible to remotely link to the GWT JavaScript in a page?
> 
> 
> for example... in the html page I need to put the following tag
>  
> 
> and it loads the code properly.
> 
> but if i try
> 
> 
> it does not work... the page itself loads, but none of the actual code
> executes.
> 

You're probably running into the same origin policy. If possible, use a
bootstrap routine on the HTML page that loads from otakuvideo.com in a
frame.

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



Hosting the GWT JavaScript Files on a remote machine?

2010-05-05 Thread Quu
Is it possible to remotely link to the GWT JavaScript in a page?


for example... in the html page I need to put the following tag
 

and it loads the code properly.

but if i try


it does not work... the page itself loads, but none of the actual code
executes.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Alternatives for gwt?

2010-05-05 Thread Christian Goudreau
Uh you consider GWT a librarie of widgets !?

Christian

On Wed, May 5, 2010 at 7:15 PM, Gal Dolber  wrote:

> did you tried the native ones? or doing it yourself?
>
> 2010/5/5 flyingb...@gmail.com 
>
> I am wondering are there good alternative libraries like smartgwt/gxt.
>>
>> I am looking for better libraries to code with if there are any.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post 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: Alternatives for gwt?

2010-05-05 Thread Gal Dolber
did you tried the native ones? or doing it yourself?

2010/5/5 flyingb...@gmail.com 

> I am wondering are there good alternative libraries like smartgwt/gxt.
>
> I am looking for better libraries to code with if there are any.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: How to prevent the big and specific file to be uploaded

2010-05-05 Thread Thomas Broyer


On 5 mai, 16:42, Guilherme Mussi  wrote:
> Hi Thomas,
>
> currently, such features are still a wonderful and distant dream for me, as
> i'm tied to crossbrowser's applications (so glad they don't use IE6
> anymore).

...hence my link to http://www.plupload.com which will use whatever it
can (HTML5, Silverlight, Flash, BrowserPlus) and fallback to
"HTML4" (where you couldn't check the size on the client-side)
otherwise.

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



Can anyone provide a step by step maven + gwt mvp tutorial?

2010-05-05 Thread crojay78
Hi,

now that I have a bit experience with gwt in mvp style, I am looking
for an example for using maven as build tool for gwt, I found a few
posts here and on other sources but nothing made it really clear for
me. I have to say that I am new to maven.

I installed maven and also installed the maven gwt eclipse plugin. I
was able to create a project with the gwt archetype and configured it
for eclipse with mvn eclipse:eclipse (both form the command line). The
creation of a new maven project from inside eclipse does not work.


So this is my situation. My aim is that I can create in a fast way a
valid gwt project (this is possible now with the archetype). Then I
have to do the changes so that I have an MVP project. Or does an
archetype exist that creates an mvp like structure???


So from this point I do not know how to proceed??? Can somebody show
me how to work with this new project.

How can I build it and use the developement mode in eclipse?
Hopefully somebody can help me with that


Best Regards

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



Re: How to determine if running on client or server?

2010-05-05 Thread Thomas Broyer


On 5 mai, 21:25, Sripathi Krishnan  wrote:
> Use if( GWT.isClient() ) in your code to decide if its client side or server
> side.
>
> See the class EscapeUtil for example 
> -http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...

Note that this means your server-side implementation must be
translatable to JS. If it isn't, then  is your friend.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Export CSV from Client

2010-05-05 Thread flyingb...@gmail.com
to  save data as a file, you will need to passs the client data to
server and server send back the data to download as a cvs.

On May 5, 12:30 pm, "cho.cabot"  wrote:
> I am trying to allow a user to download data he has manipulated in a
> GWT application in CSV format by clicking a button.  I do not want to
> have to go back to the server to create/download this CSV file since I
> already have the data I need for the file in the client.  I did not
> see a way to accomplish this in the GWT API, so I went the native
> JavaScript route.  I created these methods:
>
> private native Object exportOpen() /*-{
>         var win = window.open("", "export", "");
>         var doc = win.document;
>         doc.open("text/csv", "replace");
>         return win;
>
> }-*/;
>
> private native void exportWrite(Object win, String line) /*-{
>         win.document.writeln(line);
>
> }-*/;
>
> private native void exportClose(Object win) /*-{
>         win.document.close();
>
> }-*/;
>
> And when a button is clicked, the following method is called:
>
> private void export() {
>         Object win = exportOpen();
>         // Actual code loops through data and writes lines, but for
> example...
>         exportWrite(win, "TEST,TEST,TEST");
>         exportClose(win);
>
> }
>
> This code basically works, except for the fact that the output is just
> displayed in a new browser window without prompting the user with the
> open/save dialog, which is what I was after.
>
> Does anyone know how I can get the open/save dialog to be opened for
> the user?  Or, is there a way to create and download this data in GWT
> without using native JavaScript?
>
> Thanks for your help.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.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.



Alternatives for gwt?

2010-05-05 Thread flyingb...@gmail.com
I am wondering are there good alternative libraries like smartgwt/gxt.

I am looking for better libraries to code with if there are any.

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



Export CSV from Client

2010-05-05 Thread cho.cabot
I am trying to allow a user to download data he has manipulated in a
GWT application in CSV format by clicking a button.  I do not want to
have to go back to the server to create/download this CSV file since I
already have the data I need for the file in the client.  I did not
see a way to accomplish this in the GWT API, so I went the native
JavaScript route.  I created these methods:

private native Object exportOpen() /*-{
var win = window.open("", "export", "");
var doc = win.document;
doc.open("text/csv", "replace");
return win;
}-*/;

private native void exportWrite(Object win, String line) /*-{
win.document.writeln(line);
}-*/;

private native void exportClose(Object win) /*-{
win.document.close();
}-*/;

And when a button is clicked, the following method is called:

private void export() {
Object win = exportOpen();
// Actual code loops through data and writes lines, but for
example...
exportWrite(win, "TEST,TEST,TEST");
exportClose(win);
}

This code basically works, except for the fact that the output is just
displayed in a new browser window without prompting the user with the
open/save dialog, which is what I was after.

Does anyone know how I can get the open/save dialog to be opened for
the user?  Or, is there a way to create and download this data in GWT
without using native JavaScript?

Thanks for your help.

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



Re: How to determine if running on client or server?

2010-05-05 Thread Sripathi Krishnan
Use if( GWT.isClient() ) in your code to decide if its client side or server
side.

See the class EscapeUtil for example -
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/rpc/client/impl/EscapeUtil.java#27

--Sri



On 5 May 2010 20:29, stingermn  wrote:

> I have an interface, XYZ, which is implemented on the client side as
> class ClientXYZ and on the server side as class ServerXYZ.  I would
> like to have a common utility method, getXYZ(), which can be called
> from both client and server and will return either ClientXYZ or
> ServerXYZ depending on if the method is invoked on the client or
> server side.  Does anyone know if this is 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
> .
> 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 requestbuilder with asynchronous servlet 3.0

2010-05-05 Thread Michał Jabłoński
"this example"-it had to be link 
http://code.google.com/intl/pl-PL/webtoolkit/doc/latest/tutorial/JSON.html

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



GWT requestbuilder with asynchronous servlet 3.0

2010-05-05 Thread Michał Jabłoński
I have example project StockWatcher using requestbuilder to
communicate with servlet (this example). I want to make servlet
asynchronous. I have added the following lines to the doGet method:

final AsyncContext ac = request.startAsync();
ac.setTimeout(1 * 60 * 1000);
ac.addListener(new AsyncListener() {

@Override
public void onError(AsyncEvent arg0) throws IOException {
System.out.println("onError");
}

public void onComplete(AsyncEvent event) throws IOException {
System.out.println("onComplete");
queue.remove(ac);
}

public void onTimeout(AsyncEvent event) throws IOException {
System.out.println("onTimeout");
queue.remove(ac);
}

@Override
public void onStartAsync(AsyncEvent arg0) throws IOException {
System.out.println("onStartAsync");

}
});
queue.add(ac);
added asynchronous annotation: @WebServlet(asyncSupported=true) and
changed the rest of doGet method with:

PrintWriter out = ac.getResponse().getWriter();
out.println("Something");
out.flush();
Now there is nothing returning. What do I wrong? Have to change
something in client side? Glassfish 3 does not show any errors.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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 notify the client browser that the new build is deployed on the server

2010-05-05 Thread Michael W
Beside setting header, you may append revision number to nocache.js
such as nocache.js?revision=123
So you can change revision number dynamically when you have new
release.

Example: http://www.holidayinn.com


On Apr 27, 11:18 am, kozura  wrote:
> Check out the very bottom of this page, it describes the settings to
> use for apache to properly manage caching:
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...
>
> jk
>
> On Apr 26, 7:35 am, jchittoda  wrote:
>
>
>
> > Hi,
>
> > We are creating GWT based application. We used to deploy the new
> > builds on the server. Whenever we deploy the new builds on the server,
> > we have to tell our customers to clean their browser cache. Otherwise
> > customer's observe the unpredictable behaviors.
>
> > So please do let me know is there any feature/way to notify to the
> > client browser to clean/reload the cache.
>
> > Thanks & Regards,
> > Jitendra Chittoda
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post 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: Generator works on hosted mode but not on web mode

2010-05-05 Thread Mike S. Matsumoto
I just finish used the option:  -gen myGenClasses.
My MyServiceFactoryGenerated looks fine.


Should I merge myGenClasses directory with war/WEB-INF/classes or something
like that before deploy?

ty

On Wed, May 5, 2010 at 11:43 AM, Thomas Broyer  wrote:

>
>
> On May 5, 12:50 am, Mike  wrote:
> > Hi guys,
> >
> > I have the Generator bellow working perfectly on hosted mode inside
> > eclipse but now I'm trying generate one .war to deploy on tomcat. The
> > tomcat start normally without any error on log messages but my
> > Generator does nothing.
> >
> >  > class="br.com.mycompany.generator.PresenterFactoryGenerator">
> >  > class="br.com.mycompany.client.generator.PresenterService" />
> > 
> >
> > public interface PresenterService {
> >public Presenter newPresenter(Class class);
> >
> > }
> >
> > public class MyServiceFactory implements PresenterService {
> >public Presenter newPresenter(Class class) { return null }
> >
> > }
> >
> > public class PresenterFactoryGenerator extends Generator {
> >// at the end, creates a class to return dynamically any presenter
> > that I want  ;
> >
> > }
> >
> > PresenterService service = GWT.create(MyServiceFactory .class);
> > MyPresenter presenter = service.newPresenter( someClazz );
> >
> > My Presenter comes null on web mode. I took too long to realize this
> > because works perfectly inside Eclipse.
> >
> > PS: I have gwt-servlet.jar on my lib directory.
> >
> > Any help? I'm really lost here.
>
> Passing the -gen argument (e.g. "-gen gen") to the Compiler will
> output the generated files into the given directory ("gen" in my
> example) so you can explore what your generator outputs and eventually
> find out why it fails.
>
> Beware of using Class on the client side though... IMO, you'd
> better generate one method per specific class you need (public
> SomeClass newSomeClassPresenter() { ... }) instead of relying on
> Class.
> Compile in Pretty or Detailed style and look at the generated JS code.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post 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.
>
>


-- 
Mike Shigueru Matsumoto

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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 prevent the big and specific file to be uploaded

2010-05-05 Thread Stefan Bachert
Hi,

to my knowledge there is no way on the client side to check the size.
You could limit the size on server side.
I guess you use some library on server side. Check the docs

Stefan Bachert
http://gwtworld.de

On 5 Mai, 10:34, GWT Groups  wrote:
> Hello Friends
>
> I am back to ask a question, Friends I want some views from your side
> about that
> "How to prevent the big and specific file to be uploaded?"
>
> I want that prevent the pdf file to be uploaded.
>
> I don't know how to do it?
>
> Please help me
>
> Your friends
> Ankit
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post 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: How to determine if running on client or server?

2010-05-05 Thread kozura
Make a factory, in the client code initialize to a client-
implementation creating factory, and on the server to a server
factory.

Note that to pass it through RPC you'll need to use/convert to the
client side class.

On May 5, 8:59 am, stingermn  wrote:
> I have an interface, XYZ, which is implemented on the client side as
> class ClientXYZ and on the server side as class ServerXYZ.  I would
> like to have a common utility method, getXYZ(), which can be called
> from both client and server and will return either ClientXYZ or
> ServerXYZ depending on if the method is invoked on the client or
> server side.  Does anyone know if this is 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Best practice for general helper components?

2010-05-05 Thread jbdhl
There are often some helper components that are likely to be used all
across an app. Examples are:

   * a generalized error handler, e.g. to handle onFailure() from RPC
calls,

   * a generalized message display mechanism that can present messages
to the user in a generalized way, e.g. in a popup panel or in a DIV
dedicated to that purpose.

There are two designs of such components that I think both have some
advantages. Which design would you consider best practice?

1) Reach the component methods by firing events. Example:
   Error handler:
 eventBus.fireEvent(new Error(myException))
   Message displayer:
 eventBus.fireEvent(new Message("This is a message"))

   Pros: Seems very decoupled. The components them self can reach the
app (by firing new events). We can have multiple instances (even that
I can't see what multiple instances would be used for).
   Cons: Somewhat verbose syntax. Uses the eventBus (is this a con at
all?)

2) Reach the component methods as static methods. Example:
   Error handler:
   MyErrorHandler.handleError(myException)
   Message displayer:
   MessageDisplayer.display("This is a message")

   Pros: Simple syntax. Can use immediately, no need for making any
instances.
   Cons: The components them self cannot reach the app (e.g. by firing
new events). Cannot have multiple instances.

Which approach would you choose, and why?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: character encoding issues

2010-05-05 Thread David Given
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/05/10 22:11, undertow wrote:
> hello, i seem to be having issued with GWT and character encoding.  I
> have an Oracle database which stores strings with iso-8859-1
> encoding.  GWT does NOT support java's String.getBytes(), nor does it
> support new  String(byte[], encoding).
> 
> the question is, how do i get the string bytes from the database blob
> to the properly encoded string?

You need to convert the data from ISO-8859-1 to UTF-16 at the point
where your app touches Oracle --- that is, on the server.

GWT supports standard Java strings, which are UTF-16 (i.e. arrays of
16-bit Character values --- note that this is *not* Unicode!), but as
you've found it does support transcoding. Character conversion ideally
only happens when you do I/O on the string, via a Reader or a Writer,
and as all I/O on GWT is supposed to either happen on the server or else
use native Unicode they haven't implemented it.

I have on occasion managed to force non-UTF-16 data into a string, but
strictly only as a hack, and it always causes problems. If Oracle's API
is giving you such a string, then They Are Doing It Wrong...

[As an aside: I have managed to port huge chunks of java.io and java.nio
to run on GWT client-side, and I've also got the basic framework of
java.nio.charset, so it *is* possible to do character encoding
translation on the client... but I haven't found any sensibly small
encoding codecs yet, so I'm having to write my own slow buggy ones ---
so you probably don't want this approach.]

- -- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
│ --- Conway's Game Of Life, in one line of APL
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvhnDMACgkQf9E0noFvlzgkfwCfSgDz12nZN2AOLtiZw6qMh8Xz
yloAoIznv+9JGBozm20a3HDU56+IcL7D
=M+yG
-END PGP SIGNATURE-

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



beforeSelectionLost for FastTree

2010-05-05 Thread Subhrajyoti Moitra
Hello,
In com.google.gwt.widgetideas.client.FastTreeItem there is a method
beforeSelectionLost, that can be used to do something, before selection is
lost on a treeItem.

In com.google.gwt.gen2.complexpanel.client.FastTree how do i get
beforeSelectionLost??\

Thanks a lot in advance.
Subhro.

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



Re: How to use FastTree?

2010-05-05 Thread subhro
ok i figuired out what i was doing wrong.

navTree.getTreeRoot().addItem(); //to add new children to the root.

navTree.getChild(0).addItem(..);// to add to specific children.

instead of just navTree.addItem();

Thanks.
Subhro.

Subhrajyoti Moitra wrote:
> Hello All,
>
> I am using com.google.gwt.gen2.complexpanel.client.FastTree and
> com.google.gwt.gen2.complexpanel.client.FastTreeItem along with a UiBinder
> template for the first time.
>
> I cant seem to see new items that were added to the tree after the view is
> initalized.
>
> @UiField
> FastTree navTree;
> public NavigatorView() {
>  FastTree.injectDefaultCss();
> initWidget(binder.createAndBindUi(this));
>
>* //i am adding some items here. These are appearing fine and with
> proper events being handled.**
> navTree.addItem(new FastTreeItem("item 1"));*
> }
>
>
> public void setNavData(TreeData data){
>*navTree.addItem(new FastTreeItem("another new item.. 2"));//i cant see
> this happening. no new nodes appear on the tree.*
> }
>
> How can i "see" new items that are added to the tree? Please help. I have
> been struggling to figure this one out!!
>
> Thanks a lot.
>
> Subhro.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Could not get the encoding property.

2010-05-05 Thread Jeff Chimene
On 05/05/2010 07:32 AM, Thomas Broyer wrote:
> 
> 
> On May 5, 8:49 am, Manuel Carrasco Moñino  wrote:
>> Is it a bug in gwt uibinder?, if so you could open an issue.
> 
> It's not a bug in UiBinder. FormPanel.METHOD_POST and
> FormPanel.ENCODING_MULTIPART are just String constants, not enum
> values; or rather, FormPanel.setMethod() and FormPanel.setEncoding()
> take a String argument; so it's up to you to write the appropriate
> value in your *.ui.xml.
> Here, it should have been:
> 
> encoding="multipart/form-data">
> 

Is it unreasonable to expect orthogonal behavior when referencing such
contants?

e.g. compare  to 

I don't think it's unreasonable. It may be an enhancement as opposed to
a bug.

I think this issue has surfaced on the gwt-users list before.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Could not get the encoding property.

2010-05-05 Thread Manuel Carrasco Moñino
Clear enough.

Thanks for your explanation.
Manolo


On Wed, May 5, 2010 at 4:32 PM, Thomas Broyer  wrote:
>
>
> On May 5, 8:49 am, Manuel Carrasco Moñino  wrote:
>> Is it a bug in gwt uibinder?, if so you could open an issue.
>
> It's not a bug in UiBinder. FormPanel.METHOD_POST and
> FormPanel.ENCODING_MULTIPART are just String constants, not enum
> values; or rather, FormPanel.setMethod() and FormPanel.setEncoding()
> take a String argument; so it's up to you to write the appropriate
> value in your *.ui.xml.
> Here, it should have been:
>
>    encoding="multipart/form-data">
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: How To Simulate KeyPress

2010-05-05 Thread Thomas Broyer


On May 4, 9:43 pm, Lukas Laag  wrote:
> It is possible to generate events programmatically in JavaScript. This
> page gives a good overview of the topic, including key events (look
> for 'Manually firing events'):
>
> http://www.howtocreate.co.uk/tutorials/javascript/domevents.
>
> I do not know if generating a tab event like this in a JSNI method

you actually don't need JSNI: just use Document.get().createXxxEvent()
and DomEvent.fireNativeEvent().

> would solve your focus problem.

I doubt it would, otherwise people would have proposed it as a
workaround:
http://stackoverflow.com/questions/2398528/set-textbox-focus-in-mobile-safari

(note: according to "the web", it's a bug in WebKit)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: GTW - getting started (Eclipse+widnows7)

2010-05-05 Thread Isaac Truett
I am sorry to hear that you're having trouble working with GWT. Have you
followed the Getting Started with the GWT
SDK section
of the project's Google Code page?

If you're still having problems, perhaps you could describe in more detail
what is happening.

-- Isaac

On Sun, May 2, 2010 at 10:44 AM, clicko  wrote:

> Hi there,
>
> I am still trying to start building apps with google web toolkit. It's
> seams wery hard to me. I can't start project, I really don't know what
> is problem with this google web toolkit... I think that this should be
> wery easy to use. But I can't wrote my frst progra - hello world!
>
> I installed plugin (http://dl.google.com/eclipse/plugin/3.5).. I start
> new project, name is "myFrstHelloWorld"
>
> I go to "myFrstHelloWorld.client", and I see the three java files! For
> what is this, what is this example??? I rely don't know what should I
> do whit this. I try to delete GreetingService.java, adn
> GreetingServiceAsync.java, and I edit class in "myFirstHelloWorld.java
> (on onModuleLoad()" I delleted data's and try to wrote "Hello world"
> but not works, I realy don't know what should I do. I am not bot, Is
> this some kind of joke?
>
> 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.



How to determine if running on client or server?

2010-05-05 Thread stingermn
I have an interface, XYZ, which is implemented on the client side as
class ClientXYZ and on the server side as class ServerXYZ.  I would
like to have a common utility method, getXYZ(), which can be called
from both client and server and will return either ClientXYZ or
ServerXYZ depending on if the method is invoked on the client or
server side.  Does anyone know if this is 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Attaching my panels to preexisting divs?

2010-05-05 Thread Thomas Broyer


On May 4, 8:29 pm, markww  wrote:
> Hi Thomas,
>
> I started looking at doing this today, am kind of stuck though. It
> seems that the elements which implement wrap() are all a bit
> specialized - there seems to be a lot of code to support the wrap
> methods. Have you tried doing this for a plain , just wondering
> if this is going to be possible before I start messing around with the
> gwt framework stuff.

A wrap method is typically only 5 to 10 lines long, I wouldn't call
that "a lot of code".

> I thought more users would need a wrap() method for , because for
> those of us trying to merge gwt in with an existing website, it is
> extremely useful,

The "blessed" way of doing things with GWT is to get a RootPanel and
then add your widget as a child. Your MyPanel would then become a
child of the .

GWT can't give you a FlowPanel.wrap() because FlowPanel isn't supposed
to contain any other elements than the one it manages itself when
adding/removing child widgets.
There could be an HTMLPanel.wrap() for sure, but it wouldn't help you
here.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: What is the largest GWT program anyone is running?

2010-05-05 Thread Trevor Skaife
Each individual HTML file on my project unsplit is about 2.2 mb in
size.

Trevor

On May 4, 4:27 pm, Lothar Kimmeringer  wrote:
> Paul Stockley schrieb:
>
> > Even though we are going to use code splitting aggressively, I am
> > wondering at what point things just break due to the sheer amount of
> > javascript that is downloaded over time. The application we are
> > porting to GWT is very large and I am afraid at some point we will
> > break the browser (especially IE). Does anyone have any real world
> > experience with large GWT applications?
>
> My war-file is 6.6 MB and a single HTML-file was something over
> one MB of size. I now splitted it using deferred loading so it's
> now "only" 330 KB. The file before was too big to be loaded in
> an iPhone (Safari simply crashed bringing you back to the main
> page). The application is an administrative backend for an
> application server being used for integration projects.
>
> Regards, Lothar
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post 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: How to prevent the big and specific file to be uploaded

2010-05-05 Thread Guilherme Mussi
Hi Thomas,

currently, such features are still a wonderful and distant dream for me, as
i'm tied to crossbrowser's applications (so glad they don't use IE6
anymore).

Ankit,

I Strongly suggest you to take a look here:
http://code.google.com/p/gwtupload

I already used their components in some of my apps and it goes great.

Regards,


--
Guilherme Petterle Silveira Mussi

Conrad Caine Media Applications GmbH

Mobile: +55 53 91257012
Office: +55 53 30275721

"Any fool can know. The point is to understand." - Albert Einstein


On Wed, May 5, 2010 at 11:25 AM, Thomas Broyer  wrote:

>
>
> On May 5, 3:23 pm, Guilherme Mussi  wrote:
> > Yes, you are right. Both use flash for the upload (You can right-click on
> > "Attach a file" to check that).
> > Unfortunately, native browser support for uploading files is not as
> flexible
> > as one would like.
>
> But it's getting better!
> HTML5 defines a new .files property for  that gives
> you the file's name, size (in bytes) and content-type (as the browser
> would send it on the wire in the multipart/form-data).
> This is already implemented in Chrome 5 (beta and dev channels) and
> Firefox 3.0+
> http://www.w3.org/TR/html5/forms.html#dom-input-files
>
> And there's the FileAPI that's already implemented in Firefox 3.6 and
> gives you access to the files' *content*
> http://www.w3.org/TR/FileAPI/
>
> > If you are unable to use flash, i would recommend your servlet which will
> > receive the file to trown a exception or validation error (depending on
> your
> > implementation) when the bytes of the stream reached the maximum size.
>
> Whether you can use Flash (or BrowserPlus, or HTML5, or Silverlight,
> etc. [1]) or not, you should do that anyway.
>
> [1] http://www.plupload.com anyone willing to port it (or at least
> wrap it) to 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.



Re: Generator works on hosted mode but not on web mode

2010-05-05 Thread Thomas Broyer


On May 5, 12:50 am, Mike  wrote:
> Hi guys,
>
> I have the Generator bellow working perfectly on hosted mode inside
> eclipse but now I'm trying generate one .war to deploy on tomcat. The
> tomcat start normally without any error on log messages but my
> Generator does nothing.
>
>          class="br.com.mycompany.generator.PresenterFactoryGenerator">
>                  class="br.com.mycompany.client.generator.PresenterService" />
>         
>
> public interface PresenterService {
>    public Presenter newPresenter(Class class);
>
> }
>
> public class MyServiceFactory implements PresenterService {
>    public Presenter newPresenter(Class class) { return null }
>
> }
>
> public class PresenterFactoryGenerator extends Generator {
>    // at the end, creates a class to return dynamically any presenter
> that I want  ;
>
> }
>
> PresenterService service = GWT.create(MyServiceFactory .class);
> MyPresenter presenter = service.newPresenter( someClazz );
>
> My Presenter comes null on web mode. I took too long to realize this
> because works perfectly inside Eclipse.
>
> PS: I have gwt-servlet.jar on my lib directory.
>
> Any help? I'm really lost here.

Passing the -gen argument (e.g. "-gen gen") to the Compiler will
output the generated files into the given directory ("gen" in my
example) so you can explore what your generator outputs and eventually
find out why it fails.

Beware of using Class on the client side though... IMO, you'd
better generate one method per specific class you need (public
SomeClass newSomeClassPresenter() { ... }) instead of relying on
Class.
Compile in Pretty or Detailed style and look at the generated JS code.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Google Eclipse Plugin debug messages

2010-05-05 Thread Thomas Broyer


On May 4, 1:13 am, nadav  wrote:
> Hi all,
>
> I'm not sure if this has been asked before - if it has, I haven't
> found it.
>
> We're currently using Eclipse+GWT Plugin to debug our GWT 2.0
> application. This works fine, and I assume it's using GWT's DevMode
> internally to do its magic.
>
> Is there a way to see what flags/parameters are used when DevMode is
> called from within Eclipse? The reason I'm asking is because I'm
> trying to accomplish the same debugging capabilities using other IDEs,
> but I'm having trouble setting the flags right...
>
> Any help would be appreciated!

The latest version of the plugin updates the Arguments tab of the
launch config automatically, so you just have to copy/paste the
arguments (just remove the one about the "remote UI")

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: Could not get the encoding property.

2010-05-05 Thread Thomas Broyer


On May 5, 8:49 am, Manuel Carrasco Moñino  wrote:
> Is it a bug in gwt uibinder?, if so you could open an issue.

It's not a bug in UiBinder. FormPanel.METHOD_POST and
FormPanel.ENCODING_MULTIPART are just String constants, not enum
values; or rather, FormPanel.setMethod() and FormPanel.setEncoding()
take a String argument; so it's up to you to write the appropriate
value in your *.ui.xml.
Here, it should have been:

   

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



الحوار بين اثنين

2010-05-05 Thread ابو عوادkhmmd_abuawad
الحوار بين اثنين ليسة رسائل للمستخدمين او لنشر في المجموعة
ولاكن النص غير اللغة الام في الترجمة غير صحيحة
لم يفهمها غير لغتة وهذة فائدة للجميع الرسائل الحوارية للغة الام
ينطبق على الجميع المستخدمين او الكبار في اللغات الاكترونية

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: HTMLPanel getElementById() - Bug or docs error?

2010-05-05 Thread Thomas Broyer


On May 5, 2:25 pm, Ian Bambury  wrote:
> Hi,
>
> In the docs for HTMLPanel getElementById() it says:
>
> "Finds an element within this panel by its id."
>
> whereas in practice, the following
>
>         HTMLPanel panel = new HTMLPanel("");
>         Window.alert(panel.getElementById("id")==null ? "Not
> found":"Found");
>
> will alert 'Found' if there is an element with that ID somewhere else in the
> document. All getElementById() does is to temporarily attach the panel to
> the DOM (if it isn't already attached) and then do
>
> DOM.getElementById(id)
>
> Not what is says on the box.

Well, I'd say the doc could be clearer but it's not a bug per se.
You're supposed to know what you put into the HTMLPanel. If you're not
so sure, then it's up to you to check whether the returned element is
a child of the HTMLPanel
(panel.getElement().isOrHasChild(returnedElement))

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: How does one write a Unit test for MyClass extends RemoteServiceServlet ???

2010-05-05 Thread Eric


On May 5, 12:33 am, Mike  wrote:
> Hello
>
> Am trying to write tests for my code, and want to ensure that any
> class I write which extends RemoteServiceServlet;
> however, I'm not quite catching on to what I need to do in order to
> get a test to be runnable in that context...

Have the servlet do all its work in another class, and test that
class,
I guess. One project I was later assigned to had made a suboptimal
decision to do all the serious work of the application in Struts
Action
classes directly. Then, they tried to add web services, and now the
services had to create Struts beans and actions.  Don't go that way.

If you use a library like gwt-dispatcher, this is done for you
naturally.

Respectfully,
Eric Jablow

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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 prevent the big and specific file to be uploaded

2010-05-05 Thread Thomas Broyer


On May 5, 3:23 pm, Guilherme Mussi  wrote:
> Yes, you are right. Both use flash for the upload (You can right-click on
> "Attach a file" to check that).
> Unfortunately, native browser support for uploading files is not as flexible
> as one would like.

But it's getting better!
HTML5 defines a new .files property for  that gives
you the file's name, size (in bytes) and content-type (as the browser
would send it on the wire in the multipart/form-data).
This is already implemented in Chrome 5 (beta and dev channels) and
Firefox 3.0+
http://www.w3.org/TR/html5/forms.html#dom-input-files

And there's the FileAPI that's already implemented in Firefox 3.6 and
gives you access to the files' *content*
http://www.w3.org/TR/FileAPI/

> If you are unable to use flash, i would recommend your servlet which will
> receive the file to trown a exception or validation error (depending on your
> implementation) when the bytes of the stream reached the maximum size.

Whether you can use Flash (or BrowserPlus, or HTML5, or Silverlight,
etc. [1]) or not, you should do that anyway.

[1] http://www.plupload.com anyone willing to port it (or at least
wrap it) to 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: Dialog is hidden behind Earth Map

2010-05-05 Thread Chad
Thanks,

I'll most likely play around with this solution.

Chad

On May 4, 9:24 pm, El Mentecato Mayor 
wrote:
> A solution (kind of the third option you mentioned, but you don't have
> to hide the map completely unless you want to move the dialog around--
> on top of the map) is to use a "shimmer". Read it in this old thread,
> I use this method to get around this limitation with a Java applet:
>
> http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> On Apr 26, 8:36 pm, Chad  wrote:
>
>
>
>
>
> > Eric,
>
> > Thanks. So I guess I'm out of luck unless:
>
> >  * I change my UI layout so that the dialogs don't cover the map (or
> > get covered by the map in this case)
> >  * I swap map types before displaying any dialogs and change it back
> > after (when the Earth map type is being used)
> >  * I hide the map completely when I need to show a dialog (could be
> > done with no regard to map type)
>
> > Are there any other possible routes I haven't thought of here?
>
> > Thanks,
> > Chad
>
> > On Apr 26, 3:16 pm, Eric Ayers  wrote:
>
> > > Hmm.  I think this is because the Earth map type is actually a Flash 
> > > plugin.
>
> > > On Mon, Apr 26, 2010 at 3:40 PM, Chad  wrote:
> > > > I was able to find the earth div, but even setting the z-index on it
> > > > down seems to have no effect.
>
> > > > Anyone?
> > > > Chad
>
> > > > On Apr 26, 1:27 pm, Chad  wrote:
> > > >> Hi all,
>
> > > >> I have an application written in GWT 2.0.3 using GWT Maps 1.0.4. At
> > > >> times, I display a modal dialog (with the glass panel enabled). This
> > > >> works as expected if the map is displaying a normal map type (Map,
> > > >> Satellite, Hybrid, Terrain), but if the map is displaying an Earth
> > > >> map, the map stays on top of the dialog. The map is still usable, but
> > > >> the rest of the browser client area is grayed out (due to the glass
> > > >> panel) and the dialog itself is behind the map (the map covers most of
> > > >> the client area). I've tried setting the z-index of the map widget
> > > >> down and I've tried setting the z-index of the dialog up, but neither
> > > >> seem to make any difference.
>
> > > >> I tried to debug it in FF, but Firebug can't even select anything to
> > > >> do with the map as far as I can tell.
>
> > > >> Any Ideas?
>
> > > >> TIA,
> > > >> Chad
>
> > > >> --
> > > >> You received this message because you are subscribed to the Google 
> > > >> Groups "Google Web Toolkit" group.
> > > >> To post 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.
>
> > > --
> > > Eric Z. Ayers
> > > Google Web Toolkit, Atlanta, GA USA
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post 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 
> 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: new GWT MVP article (part 2)

2010-05-05 Thread Mike
Manolo,

I may be mistaken, but I wasn't able to "replicate" what you'd done.
Taking either the released .jar files for gwt-dispatch and gwt-
presenter, or having gotten the latest code from the repository --
either way, there were differences between what you'd coded and what
the library was providing (the concepts were all very clear, but the
details didn't match the libraries).  If the code matched all of the
libraries at a known state, I think it would be more useful.

Cheers
Mike

On May 4, 1:09 am, Manuel Carrasco Moñino  wrote:
> I'm using the latest code of gwt-presenter from svn, so if you don't
> use maven you should either compile gwt-presenter, or download the
> library 
> from:http://gwt-workshop.googlecode.com/svn/trunk/mavenrepo/net/customware...
>
> -Manolo
>
>
>
>
>
> On Tue, May 4, 2010 at 7:48 AM, Mike  wrote:
> >> You can download the project and play with it:
> >> svn checkouthttp://gwt-workshop.googlecode.com/svn/trunk/GwtWsMvpContacts
> >> GwtWsMvpContacts
> >> mvn clean test gwt:run package
>
> > Looks very interesting.  I've downloaded the project and imported to
> > Eclipse (don't have Maven yet).
>
> > First question:
>
> > The version of gwt-presenter that I downloaded from the Google Code
> > site doesn't appear to include this package:
> > net.customware.gwt.presenter.client.widget
>
> > Any ideas?
>
> > Cheers
> > Mike
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post 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: Newbie question: How does one write a Unit test for MyClass extends RemoteServiceServlet ???

2010-05-05 Thread Mike
Thanks,

But if I take your suggestion correctly -- that only allows me to test
the *use* of the Servlet, and not test the code in the Servlet
itself.  I want to try and test the servlet's code...

Cheers
Mike

On May 5, 12:31 am, rudolf michael  wrote:
> i guess that you need to mock it using jMock or easyMock, but i dont have a
> running example although i saw some unit tests for drools/jBPM where they
> use those mocking jars in order to simulate some context/DAO services.
>
> On Wed, May 5, 2010 at 7:33 AM, Mike  wrote:
> > Hello
>
> > Am trying to write tests for my code, and want to ensure that any
> > class I write which extends RemoteServiceServlet;
> > however, I'm not quite catching on to what I need to do in order to
> > get a test to be runnable in that context...
>
> > Any help is greatly appreciated (links, samples, explanation, etc).
>
> > Cheers
> > Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: bikeshed project

2010-05-05 Thread Thomas Broyer


On May 5, 3:42 pm, Diego Lovison  wrote:
> on trunk (svn) have one folder called bikeshed...
>
> its one project example?

As the name implies [1], it's where new features are being developped
"in the open":
 - Enterprise widgets (complete rewrite of the incubators
PagingScrollTable and the like)
 - data binding 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryPlusPaths
 - lightweight collections

Note that the current development seems to have moved over to /
branches/2.1/bikeshed instead of /trunk/bikeshed

[1] http://en.wikipedia.org/wiki/Bikeshed

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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-05 Thread Diego Lovison
usa o gilead

On 5 maio, 05:39, enTropy Fragment  wrote:
> First things first. You should write in english so people can understand you
> and help you. You should provide more technical info, instead or
> additionally to irrelevant data. Your problem may be realated to the
> Hibernate proxy. Try deactivating lazy objects
>
> 2010/5/3 polica 
>
> > 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 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.



bikeshed project

2010-05-05 Thread Diego Lovison
on trunk (svn) have one folder called bikeshed...

its one project example?
regards

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



Re: Ray Ryan, best practices and embracing asynchronicity

2010-05-05 Thread brendan
Sri - you make a lot of sense in all of this. I had trapped myself
into a certain way of thinking, and this was the right way out. Thanks
for taking the time. Very well argued.

On May 1, 7:14 pm, Sripathi Krishnan 
wrote:
> When you show a list of Persons on the browser, do you also show the last
> traded price of the Company that the Person works for? Obviously not. Then
> why would you want to send the entire Company object with the Person object?
>
> The browser just needs a few simple properties of a Person - personal
> details, company name, group name - and that's it. It doesn't care about the
> Group object or the Company object; it just needs certain values from them.
> But in your back-end java code, you need to be normalized. You really want
> to think of Companies and Groups as separate entities. And you really want
> to store the last traded price for every Company to perform some
> calculation.
>
> Point I am trying to make is that there is a clear distinction between *what
> the browser needs* (DTO) and *what the business needs* (domain objects).
> When you send JDO objects across the wire, you are sending your domain
> model. Its not what the browser wants, and that is a problem. Soon, you will
> have a presentational information in your domain model, and you will have
> restricted information being sent to the browser, and it will be a big mess.
>
> So, take a step back, and separate Domain objects from Presentation objects
> (or DTOs). Make your RPCs revolve around a particular view, and send all
> necessary information for that view in one RPC call. Note that now your
> Person would include company name and company id, but not the entire company
> object. Now, when the user clicks the company in the view, you make a RPC
> call to get company information (because you have company id). That's it.
> Works nicely, without having to make multiple calls.
>
> --Sri
>
> On 1 May 2010 20:53, kozura  wrote:
>
>
>
>
>
> > Doing this well depends on some form of centralized data retrieve
> > dispatch/caching.  You make calls to this centralized service to get
> > the objects by id that you are interested in.   It either finds them
> > in cache and can return them immediately, or adds them to a queue of
> > objects to retrieve.  After all requests have been made (ie on
> > DeferredCommand), a single request is sent to retrieve all objects of
> > all types needed.
>
> > As for updating on return, there's lots of ways.  You could use an
> > event bus to indicate all the objects where data is now available.
> > This could even be a single event instead of one for each object, and
> > the event handlers can ask if their objects of interest are now
> > available, avoiding multiple updates.  Alternatively, you can use the
> > current async callback mechanism, but with a way to consolidate - all
> > requests by Person X get resolved to a single callback.
>
> > Either of these require a bit of work to set up a robust centralized
> > service, but once done all the code around using it for well cached
> > fast object retrieval becomes pretty easy and automatic, nicely async,
> > and retrieves the minimum of data.  I've found it's well worth the
> > effort.  And likely some of these libraries out there have these
> > mechanisms built in.
>
> > jk
>
> > On Apr 29, 10:56 am, brendan  wrote:
> > > Another question beginning with the sentence "I watched Ray Ryan's
> > > talk":
>
> > > Firstly, great talk. Full of really useful ideas. But I have a
> > > dilemma.
>
> > > 1) On one hand, I want to follow the advice that says "go with the
> > > asynch flow". I'm happy to do that.
>
> > > 2) On the other hand, I also want to follow the advice that object
> > > graphs should be avoided and domain objects should really just contain
> > > ids of their related objects. In the case of lists, this is to avoid
> > > sending too much useless info over the wire. And for AppEngine users
> > > working with JDO, this is unavoidable in any case, for objects in an
> > > 'unowned' relationship with the top level object.
>
> > > The combination of these two pieces of advice leads me to a situation
> > > where I could really do with some advice on what is considered best
> > > practice. Imagine I have a domain object - call it Person - which has
> > > multiple related 'unowned' objects, e.g. Group, Company etc. I want to
> > > list a bunch of Persons on my GWT front end, but the display for each
> > > row requires data from the related objects (e.g. group name, company
> > > name). Following advice 2 above (or perhaps constrained by JDO), my
> > > User object has only the ids of the related Group and Company objects,
> > > and so after retrieving the list of Users from the server side, the
> > > User List Presenter must make a separate RPC call for each Group and
> > > Company object for each User. Let's pretend that because of smart
> > > caching this wasn't particularly expensive (arguable). I'm still left
> > > with the problem that 

Re: How to prevent the big and specific file to be uploaded

2010-05-05 Thread Guilherme Mussi
Yes, you are right. Both use flash for the upload (You can right-click on
"Attach a file" to check that).
Unfortunately, native browser support for uploading files is not as flexible
as one would like.

If you are unable to use flash, i would recommend your servlet which will
receive the file to trown a exception or validation error (depending on your
implementation) when the bytes of the stream reached the maximum size.

Regards

--
Guilherme Petterle Silveira Mussi

Conrad Caine Media Applications GmbH

Mobile: +55 53 91257012
Office: +55 53 30275721

"Any fool can know. The point is to understand." - Albert Einstein


On Wed, May 5, 2010 at 9:17 AM, mmoossen  wrote:

> i am also interested in a way to do that...
>
> there has to be a way, since gmail as well as youtube both check the
> file size limit before uploading...
> but most likely it is flash :(
>
> regards
> Michael
>
> On May 5, 1:38 pm, abhiram wuntakal  wrote:
> > Hey Ankit,
> >
> >   AFAIK, you wont get to know the size of the file unless you transfer it
> to
> > the server. But from the client side you can restrict the file extension
> by
> > extracting the file name as follows :
> >
> > final FileUpload upload = new FileUpload();
> > upload.setName("uploadFormElement");
> > absolutePanel.add(upload,8,37);
> > String fileNameVal = upload.getFilename();
> >
> >   You can put appropriate check to ensure that certain kind of files
> alone
> > can be uploaded.
> >
> >   HTH,
> >
> > Regards,
> > Abhi
> >
> >
> >
> > On Wed, May 5, 2010 at 2:04 PM, GWT Groups 
> wrote:
> > > Hello Friends
> >
> > > I am back to ask a question, Friends I want some views from your side
> > > about that
> > > "How to prevent the big and specific file to be uploaded?"
> >
> > > I want that prevent the pdf file to be uploaded.
> >
> > > I don't know how to do it?
> >
> > > Please help me
> >
> > > Your friends
> > > Ankit
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post 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-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.



HTMLPanel getElementById() - Bug or docs error?

2010-05-05 Thread Ian Bambury
Hi,

In the docs for HTMLPanel getElementById() it says:

"Finds an element within this panel by its id."

whereas in practice, the following

HTMLPanel panel = new HTMLPanel("");
Window.alert(panel.getElementById("id")==null ? "Not
found":"Found");

will alert 'Found' if there is an element with that ID somewhere else in the
document. All getElementById() does is to temporarily attach the panel to
the DOM (if it isn't already attached) and then do

DOM.getElementById(id)

Not what is says on the box.

Ian

http://examples.roughian.com

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



Re: How to prevent the big and specific file to be uploaded

2010-05-05 Thread mmoossen
i am also interested in a way to do that...

there has to be a way, since gmail as well as youtube both check the
file size limit before uploading...
but most likely it is flash :(

regards
Michael

On May 5, 1:38 pm, abhiram wuntakal  wrote:
> Hey Ankit,
>
>   AFAIK, you wont get to know the size of the file unless you transfer it to
> the server. But from the client side you can restrict the file extension by
> extracting the file name as follows :
>
>     final FileUpload upload = new FileUpload();
>         upload.setName("uploadFormElement");
>         absolutePanel.add(upload,8,37);
>         String fileNameVal = upload.getFilename();
>
>   You can put appropriate check to ensure that certain kind of files alone
> can be uploaded.
>
>   HTH,
>
> Regards,
> Abhi
>
>
>
> On Wed, May 5, 2010 at 2:04 PM, GWT Groups  wrote:
> > Hello Friends
>
> > I am back to ask a question, Friends I want some views from your side
> > about that
> > "How to prevent the big and specific file to be uploaded?"
>
> > I want that prevent the pdf file to be uploaded.
>
> > I don't know how to do it?
>
> > Please help me
>
> > Your friends
> > Ankit
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post 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 
> 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: How to prevent the big and specific file to be uploaded

2010-05-05 Thread abhiram wuntakal
Hey Ankit,

  AFAIK, you wont get to know the size of the file unless you transfer it to
the server. But from the client side you can restrict the file extension by
extracting the file name as follows :

final FileUpload upload = new FileUpload();
upload.setName("uploadFormElement");
absolutePanel.add(upload,8,37);
String fileNameVal = upload.getFilename();

  You can put appropriate check to ensure that certain kind of files alone
can be uploaded.

  HTH,

Regards,
Abhi


On Wed, May 5, 2010 at 2:04 PM, GWT Groups  wrote:

> Hello Friends
>
> I am back to ask a question, Friends I want some views from your side
> about that
> "How to prevent the big and specific file to be uploaded?"
>
> I want that prevent the pdf file to be uploaded.
>
> I don't know how to do it?
>
>
> Please help me
>
> Your friends
> Ankit
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post 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: Serializando classes Usando hibernate no GWT

2010-05-05 Thread enTropy Fragment
First things first. You should write in english so people can understand you
and help you. You should provide more technical info, instead or
additionally to irrelevant data. Your problem may be realated to the
Hibernate proxy. Try deactivating lazy objects

2010/5/3 polica 

> 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 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: Serialization problems with class from inherited module

2010-05-05 Thread Flueras Bogdan
Hi Hugo,
Your project layout seems fine at the first glance. I also have used a
similar configuration with 2 modules, one of them inherits the other
and also used a class from the base module into the inherited module
RPC as a return type.
Common problems which might be the cause of your pb:
Your  Contacto class
- doesn't have a default (no arg) constructor
- encapsulates some other classes which are not serializable (are you
using something like Lists etc. ?). Try removing all the members to
see if this is the case.

HTH

On May 4, 4:34 am, Hugo Vinícius  wrote:
> Hello,
>
> My application are divided in two modules. The module A  inherits
> module B, there's a Serializable class on module B used by a service
> on A as return value. When the service returns a list of object from
> that class the exception belows appears on log:
>
> 
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> 'br.ufrn.lcc.m4o.client.dominio.modelo.Contato' was not included in
> the set of types which can be serialized by this SerializationPolicy
> or its Class object could not be loaded. For security purposes, this
> type will not be serialized.: instance =
> br.ufrn.lcc.m4o.client.dominio.modelo.cont...@184be7d   at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> 610)    at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> 129)    at
> com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:
> 43)     at
> com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:
> 36)
> -
>
> Anyone knows any problems about using classes from inherited modules
> as return value from rpc calls? I'm using GWT 2.0, the second module
> is on my war's lib directory and contains .class and .java files, the
> java files are to the gwt compile recognise and compile to js. I'm
> using a supermodule that inherits from ones above. There isn't
> EntryPoint on module B.
>
> Hugo Vinícius
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post 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.



How to prevent the big and specific file to be uploaded

2010-05-05 Thread GWT Groups
Hello Friends

I am back to ask a question, Friends I want some views from your side
about that
"How to prevent the big and specific file to be uploaded?"

I want that prevent the pdf file to be uploaded.

I don't know how to do it?


Please help me

Your friends
Ankit

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



How to use FastTree?

2010-05-05 Thread Subhrajyoti Moitra
Hello All,

I am using com.google.gwt.gen2.complexpanel.client.FastTree and
com.google.gwt.gen2.complexpanel.client.FastTreeItem along with a UiBinder
template for the first time.

I cant seem to see new items that were added to the tree after the view is
initalized.

@UiField
FastTree navTree;
public NavigatorView() {
 FastTree.injectDefaultCss();
initWidget(binder.createAndBindUi(this));

   * //i am adding some items here. These are appearing fine and with
proper events being handled.**
navTree.addItem(new FastTreeItem("item 1"));*
}


public void setNavData(TreeData data){
   *navTree.addItem(new FastTreeItem("another new item.. 2"));//i cant see
this happening. no new nodes appear on the tree.*
}

How can i "see" new items that are added to the tree? Please help. I have
been struggling to figure this one out!!

Thanks a lot.

Subhro.

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



Re: Having problems with Gilead and hibernate integration in gwt

2010-05-05 Thread fomba collins
Thanks vkmanoj,
   I did that and the error disappeared. Now, the problem is that 
when I add the hibernate core library, in order to manage the DAOs and POJOs 
generated by the hibernate reverse Engineering, I instead have a HTTP 404 
error. Any help?
efsiken  
   
   

--- On Tue, 5/4/10, Mano  wrote:


From: Mano 
Subject: Re: Having problems with Gilead and hibernate integration in gwt
To: "Google Web Toolkit" 
Date: Tuesday, May 4, 2010, 12:27 PM


Just move your Connection class to the server folder. Classes in
server side can access the POJOs in client folder and whatever is
there in server folder, not the other way around. (Also remember that
client side code get converted into java script and the GWT emulator
supports only a subset of what JRE supports)
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsCompatibility.html
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html


On May 4, 4:21 am, efsiken  wrote:
> Hi,
>      I'm still new to gwt and so permit me if I speak what is not
> right. I started up a gwt project with amongst other packages, a
> client and a server package. Then I added the following gilead
> libraries to the build path:
>
> gilead4gwt-1.3.1.1665.jar
> gilead-core-1.3.1.1665.jar
> gilead4appengine-1.3.1.1665.jar
> gilead-hibernate-1.3.1.1665.jar
>
> Then I went to the project.gwt.xml file and added  name='net.sf.gilead.Gilead4Gwt'/>. Till this point, the program could
> compile and execute without errors. I then added hibernate
> capabilities to the project and with hibernate reverse engineering, I
> generated the pojos and DAOs which I sent to the server package. I
> dont know if up to this point, that is correct (I mean performing
> hibernate reverse engineering in gwt).
>
> I created a class (Connection.java) in the client package that uses
> the pojos and DAOs in the server package. When I run this class as a
> java application, it executes without any problem and prints the
> output on the console as expected. But when I compile the entire
> project, I have the following errors:
>
>  [ERROR] Errors in 'file:/C:/Projets/java/webtop/src/com/extjs/gxt/
> samples/desktop/client/widget/Connection.java'
>          [ERROR] Line 24: No source code is available for type
> com.extjs.gxt.samples.desktop.server.Evuti; did you forget to inherit
> a required module?
>          [ERROR] Line 26: No source code is available for type
> com.extjs.gxt.samples.desktop.server.Evlang; did you forget to inherit
> a required module?
>          [ERROR] Line 28: No source code is available for type
> com.extjs.gxt.samples.desktop.server.EvlangDAO; did you forget to
> inherit a required module?
>          [ERROR] Line 32: No source code is available for type
> com.extjs.gxt.samples.desktop.server.EvutiDAO; did you forget to
> inherit a required module?
>
> So I don't know the module I have to inherit or the source to be
> added. Please can someone help me out?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post 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.




  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post 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: HTTP ERROR: 404

2010-05-05 Thread fomba collins


Hi mram,
   I discovered that it was because I added the Hibernate core library. 
Does this prevent some files from being seen? The program executes well without 
this library but immediately I add this library to the build path it generates 
this error. Can I use gilead without this library? If so how can I do reverse 
engineering with gilead? I am using myeclipse6.5.
regards
efsiken   
   
   

--- On Tue, 5/4/10, mram  wrote:


From: mram 
Subject: Re: HTTP ERROR: 404
To: "Google Web Toolkit" 
Date: Tuesday, May 4, 2010, 12:37 PM


That happened to me twice. Just need to look if your project is
complete (.html, .css, web-inf, meta-inf, compiled code of client
side) inside the folder:
   /.metadata/.plugins/org.eclipse.wst.server.core/
tmp0/wtpwebapps/your_project_server

Maybe, the .html is missing there. Just copy the missing files there
and everything will function fine again!!



On 4 mayo, 17:19, efsiken  wrote:
> Hello,
>       I have been working on my project that was compiling and
> executing without any problems. No changes were to the program and
> suddenly, I could not have the output on the web browser but instead,
> the following error is shown:
>
> HTTP ERROR: 404
> Problem accessing /Webtop.html. Reason:
>
>     NOT_FOUND
>
> 
> Powered by Jetty://
>
> What can I do to resolve it?
>
> efsiken
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post 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.




  

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