GWT fileupload problem

2009-04-08 Thread arun.r...@gmail.com

Hi All,

I am getting multipart null even it is set (ENCODING_MULTIPART) on
client side.

-
My Code
-


1. GWT widget: FormHandle

RootPanel rootPanel = RootPanel.get();

final FormPanel form = new FormPanel();
rootPanel.add(form);
form.setAction(GWT.getModuleBaseURL()+"MyFormHandler");
form.setEncoding(FormPanel.ENCODING_MULTIPART);
form.setMethod(FormPanel.METHOD_POST);
.
.
.

panel.add(new Button("Submit", new ClickListener() {
public void onClick(Widget sender) {
form.submit();
}
}));

.
.
.

form.addFormHandler(new FormHandler() {
public void onSubmit(FormSubmitEvent event) {
service.fileUpload(new AsyncCallback(){
public void onFailure(Throwable caught) {
Window.alert("FileUpload Failure!!");
}

public void onSuccess(Object result) {
Window.alert("FileUpload Success!!");
}});
event.setCancelled(true);
}

public void onSubmitComplete(FormSubmitCompleteEvent event) {
Window.alert(event.getResults());
}
});

RootPanel.get().add(form)

2. Servlet:: MyFormHandlerImpl

public class MyFormHandlerImpl extends RemoteServiceServlet implements
MyFormHandler {

/**
*
*/
private static final long serialVersionUID = 1L;

@Override
public void fileUpload() {
System.out.println("0");
HttpServletRequest request = super.getThreadLocalRequest();
HttpServletResponse response = super.getThreadLocalResponse();

boolean isMultiPart =
FileUpload.isMultipartContent(request);//isMultipartContent(request)

String parentPath ="d:\\";

if (isMultiPart) {
System.out.println("3");
DiskFileUpload upload = new DiskFileUpload();
try {
List items = upload.parseRequest(request);
Iterator it = items.iterator();
while (it.hasNext()) {
FileItem item = (FileItem) it.next();
if(!item.isFormField()){
File fullFile = new File(item.getName());
File savedFile = new File(parentPath,fullFile.getName());
item.write(savedFile);
}
}
} catch (FileUploadException fUE) {
System.out.println("file not found");
} catch (Exception e){
System.out.println("unknown exception");
}
}

}
}


Can anybody tell me what i am missing here?
what could be done to resolve this error?

Thanks in advance for your help.

Arun.

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



Problems With AbsolutePanel inside of TabPanel

2009-04-08 Thread Carl

I am having issues displaying an AbsolutePanel inside a TabPanel -
nothing is displayed (as if I added a panel containing no widgets),
though I can view other tabs containing a SimplePanel for example.  I
have tried wrapping the AbsolutePanel in a VerticalPanel and a
SimplePanel to no success, and I have simply displayed the
AbsolutePanel on its own which works as expected.

Any ideas or suggestions?

Thanks,

Carl

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



Unit Testing in IntelliJ

2009-04-08 Thread matttai

Hi just wondering can anyone give a good example of how to setup and
run a unit test on GWT in IntelliJ? It would be much appreciated.
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE doesnt show my progress bar when the data loads in to my Grid

2009-04-08 Thread Suren

Hi Thomas,

Thanks for the reply. I am a stranger to IncrementalCommand. Anyway
let me check what is all about.

Thanks.
Suren

On Apr 8, 9:04 pm, Thomas Broyer  wrote:
> On 8 avr, 07:22, Suren  wrote:
>
>
>
>
>
> > Hi All,
>
> > I am loading 100x100 values into the cells of a Grid from the DB. Its
> > taking some time to show the Grid in IE.
>
> > So thought of showing a progress bar during that time instead of
> > showing blank page to the user.
>
> > So I am trying to display a progressbar.gif image during the data
> > load.
>
> > But the problem here is that, still the progressbar is not shown. Its
> > showing hourglass mouse cursor in the IE and showing nothing and looks
> > like the loading page.
>
> > what I am doing wrong here? do I need to have a seperate thread to
> > show the image??
>
> > Or instead of this approach, I expect if anything else is better way
> > of doing it from the group.
>
> IncrementalCommand is your new friend! ;-)
>
> In a few words: split your data loading algorithm and load "segments"
> at a time.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE doesnt show my progress bar when the data loads in to my Grid

2009-04-08 Thread Suren

Hi Vaibhav,

Thanks to your idea.

I implemented the same. But again the label now is not shown properly.
After few seconds again the page is busy with loading data. And the
entire page is goes off with blank with giving impression that
hanging.. and once the data is loaded I am getiting the Grid visible.

Still I cant prevent the impact of grid data loading while showing the
label.

Here is how I am dealing with it..
[code]
package com.ibsplc.idaho.thinclient.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.*;


public class Thinclient implements EntryPoint{

/**
 * This is the entry point method.
 */

Grid flexTable = new Grid(101,87);

final Label img = new Label();

public void onModuleLoad() {

flexTable.setVisible(false);
img.setStyleName("ProgressImage");
RootPanel.get().add(img);

final DBFetchAsync dbFetch = (DBFetchAsync) GWT.create
(DBFetch.class);

ServiceDefTarget endpoint = (ServiceDefTarget) dbFetch;
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() +
"DBFetch"); // for GWT eclipse launch

AsyncCallback asyncCallback = new AsyncCallback(){
public void onSuccess(Object result) {
try {

//here comes the code for Loading the 
data into the Grid...

//after data load is completed
RootPanel.get().remove(img); //removing 
the Label which has the
Progressbar image
flexTable.setVisible(true); //showin 
the Grid
RootPanel.get().add(flexTable); 
//Adding to the Root panel

} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
}

public void onFailure(Throwable caught) {
Window.alert("Failed to get quote " + 
caught.getMessage());
};
};

flexTable.addStyleName("FlexTable");
try {
dbFetch.setGridDataInfo(asyncCallback);
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
}
}

[/code]

Kindly advise whether its correct way of doing it. And how I can
achieve my requirement?

Thanks
Suren

On Apr 8, 6:01 pm, "vaibhav"  wrote:
> Hi,
> If you are using the GIF image using the image object you can not show the
> GIF image as the GIF image is divided in the frames. You need to set the
> image to a widget (recommended label) using the css.
>
> If you are setting the progress bar image on any widgets like label or panel
> through css then you need to set the size of the widgets. Typically the
> width and height in pixel. Do not forget to set the size in pixel.
>
> If you have set the pixel size too then after showing the image you need to
> relax the GUI using the timer. Like
>
> Show();
>
> Timer timer = new Timer(){
>
> Public void run(){
>
>     Do next task
>
> }
> };
>
> timer.schedule(1000);
>
> Show is the way to show the image in popup. Here you can use your own way to
> show GIF image and in timer run add your next logic to load the grid.
> Schedule it to 1000 ms and the work is done.
>
> Regards
> Vaibhav Saxena
>
>
>
> ---Original Message---
>
> From: alex.d
> Date: 4/8/2009 1:40:31 PM
> To: Google Web Toolkit
> Subject: Re: IE doesnt show my progress bar when the data loads in to my
>
> Grid
>
> You can't "start antother thread" from javascript. And though it's a
> singlethreaded environment your animation isn't "moving" probably
> because browser is busy with filling the data. You can show some
> static text "Loading..." and then load your data.
>
> On 8 Apr., 07:22, Suren  wrote:
> > Hi All,
>
> > I am loading 100x100 values into the cells of a Grid from the DB. Its
> > taking some time to show the Grid in IE.
>
> > So thought of showing a progress bar during that time instead of
> > showing blank page to the user.
>
> > So I am trying to display a progressbar.gif image during the data
> > load.
>
> > But the problem here is that, still the progressbar is not shown. Its
> > showing hourglass mouse cursor in the IE and showing nothing and looks
> > like the loading page.
>
> > what I am doing wrong here? do I need to have a seperate thread to
> > show the image??
>
> > Or instead of this approach, I expect if anything else is better way
> > 

Wrapping Around GData JS API With GWT

2009-04-08 Thread Bobby

I have two related questions.

1. I couldn't find a GData Library for GWT, did i miss it (i already
checked with the GData group)? I know GData has the Java API, but that
(probably) won't compile to JavaScript. However, GData also has a JS
API (the JS docs are here 
http://code.google.com/apis/gdata/jsdoc/1.8/index.html),
so at a minimum we could wrap the JS API in a very thin GWT library -
i'm wondering if this already exists or if it's planned as an addition
to the list of GWT Google API Libraries (http://code.google.com/
webtoolkit/googleapilibraries.html).

2. In the scenario where you have an existing JS library that you want
to make use of in GWT, what's the best, thinnest, way to to create a
Java wrapper to the JS library? For example, we could create a Java
class per JS class. The Java class could keep a reference to the
native JSObject, and define the same properties and methods that the
JS class provides but which delegate to the JS implementation via
JSNI. The problem with this is that after compiling to JS, we end up
with a JS wrapper around a JS object. Is there a better implementation
approach that will avoid this?

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



1.6.4 - duplicate onKeyDown events

2009-04-08 Thread jchimene

Hi,

Is anybody else seeing duplicate events with a (now deprecated)
KeyBoardListener?

I get duplicate events even when I replace the deprecated handler with
the 1.6 event version. The target/source widget IDs are the same for
both events.

The problem does not occur using the 1.5.3 library.

This is pretty simple stuff:
suggestBox.addKeyboardListener(new KeyboardListenerAdapter() {
public void onKeyDown(Widget sender, char keyCode, int modifiers) {
if (191 == (int)keyCode) { // question mark
GWT.log("help",null);
}
}
});

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



App engine app with gwt

2009-04-08 Thread Ryan Dewsbury

I just posted a gwt app on app engine along with source on my blog
here: http://rdews.com in case anyone needs a head start. It uses rpc
and jdo. Hope it's helpful.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



[Ask] Simple Form login with GWT

2009-04-08 Thread Leonardo Carreira

Dear All..

this is my first question in GWT forum..

i just have an simple question, how to make a simple form login with
GWT?..
could you give me a link for tutorial GWT step by step?..

thank's

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



Re: GWT Eclipse Plugin made by GWT Team?

2009-04-08 Thread Sumit Chandel
Hi Joseph,
Just in case you haven't heard:

http://code.google.com/eclipse/

Cheers :-)
-Sumit Chandel

On Thu, Apr 2, 2009 at 12:10 PM, Joseph M  wrote:

>
> Ive heard rumours about an Eclipse plugin made by the GWT Team.  I
> think I even saw a YouTube video of it in use (maybe from the Google I/
> O conference).
>
> When will this plugin be released into the wild.
>
>
> -Joseph
> >
>

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



Re: Possible bugs in generated JavaScript Code (GWT 1.4.60)

2009-04-08 Thread Sumit Chandel
Hi Mirko,
Please see replies to your questions inlined below.

QUESTION: Is it possible to define a file for 'unknwon' useragents?


It is possible for the GWT compiler to generate another permutation of your
application for additional user agents, but they would have to be known. You
can do this via a property provider. But first, I'm wondering which browsers
your clients are using such that the user agent couldn't be resolved.


> 2) Sometimes, even if the strongName is found, the loading of the file
> sometimes stopped. We fixed this by changing the generated function
> from
>
>  function maybeInjectFrame(){
>if (!scriptInjected && $doc.body) {
>  scriptInjected = true;
>  var iframe = $doc.createElement('iframe');
>  iframe.src = "javascript:''";
>  iframe.id = 'com.aod.GUI';
>  iframe.style.cssText = 'position:absolute;width:0;height:
> 0;border:none';
>  $doc.body.appendChild(iframe);
>  iframe.src = base + strongName;
>}
>  }
>
> and added an
>
>  $doc.location.href += '#';
>
> after the
>
>  iframe.src = base + strongName;
>
> line.
>
> QUESTION: Is this a known problem?


This is the first time I've heard of this problem. I think this could be
related to the browser that your clients are using. I'm wondering if it's in
the list of GWT supported browsers.

Cheers,
-Sumit Chandel


>
>
> Any ideas what happens here?
>
> Thanks for all responses
>
>Mirko
>
>
>
> >
>

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



Re: How to use classes in a module that are not part of any module?

2009-04-08 Thread TimOnGmail

Thanks Vitali...

I ended up having to move everything all over the place, separated out
my bean classes into interfaces, and applied them to both my existing
beans and the new, simplified ones to use for GWT.

Pain in the neck, but it almost works now... now I'm having another
problem, with regards to JAXB (will post again).

- Tim

On Apr 8, 11:55 am, Vitali Lovich  wrote:
> If you use classes that aren't part of the GWT emulated JRE or there isn't a
> module out there that emulates the functionality, obviously you can't do it
> (unless you decide to write the emulated classes yourself if they are even
> possible).
>
> On Wed, Apr 8, 2009 at 2:51 PM, TimOnGmail  wrote:
>
> > Hi Isaac...
>
> > I should make this even clearer.  My bean-like classes are scattered
> > throughout my codebase, and not concentrated in one place.  They many
> > are JAXB beans and import javax.xml classes, which appears to break
> > compilation in GWT.  I'll check into that here, perhaps others have
> > tried this.
>
> > Basically, I'm trying - as others have tried - to avoiding having to
> > do a lot of work merely to use classes that are simple beans, though
> > they may use certain unsupported packages (like the JAXB packages) and
> > annotations, etc.
>
> > It's *looking* like I may have to create a common interface, and
> > create my own beans and use BeanUtils to copy them on the server side,
> > unfortunately.
>
> > - Tim
>
> > On Apr 8, 5:34 am, Isaac Truett  wrote:
> > > Tim,
>
> > > "Making a module" means creating one XML file.
>
> > > src/com/mycompany/Domain.gwt.xml:
>
> > > 
> > >     
> > > 
>
> > > ... and done. Inherit that in your GWT app and, assuming that
> > > everything in com.mycompany.domain is GWT-compatible, you're set.
>
> > > - Isaac
>
> > > On Wed, Apr 8, 2009 at 1:49 AM, TimOnGmail  wrote:
>
> > > > Yes, just for testing purposes, before I actually need to compile
> > > > everything into JavaScript.
> > > > Both hierarchies are part of the same project, by the way, and I have
> > > > already added the non-module
> > > > hierarchies (both source and compiled) to the class path of the launch
> > > > configuration for the module.
> > > > But when I launch it I get lots of these kinds of things:
>
> > > > [ERROR] Line 16: No source code is available for type
> > > > com.on24.loadtest.management.AgentEntry; did you forget to inherit a
> > > > required module?
>
> > > > - Tim
>
> > > > On Apr 7, 10:15 pm, Vitali Lovich  wrote:
> > > >> If you're just trying to launch hosted mode, adding the other project
> > onto
> > > >> the build-path should be sufficient.  Have you actually tried this &
> > it
> > > >> didn't work?  You might also want to add the other project as being a
> > > >> dependancy of the GWT project (not necessary for it to work, but just
> > nicer
> > > >> from a behaviour of Eclipse perspective).
>
> > > >> However, I've never heard of anyone actually compiling the Java into
> > > >> javascript from eclipse - it's certainly possible, but it's not what
> > the
> > > >> default launch config does.
>
> > > >> On Wed, Apr 8, 2009 at 1:04 AM, TimOnGmail 
> > wrote:
>
> > > >> > Hi Vitali...
>
> > > >> > Well, I wasn't thinking of how to compile everything together in an
> > > >> > Ant script.
>
> > > >> > Rather, I was thinking of using the launch config that's created
> > when
> > > >> > you follow the "how to create a module" instructions, and use it to
> > > >> > launch the test, without doing any special build processing.  You
> > > >> > know, follow "how to" for Eclipse instructions, but rearrange the
> > > >> > locations of things or just modifying the single module I'm writing,
> > > >> > so that it drags in the other classes from the Eclipse src/ and bin/
> > > >> > folders.
>
> > > >> > Are you talking about creating a custom builder for the project?  I
> > > >> > already depend upon the default builder for my project.
>
> > > >> > - Tim
>
> > > >> > On Apr 7, 9:29 pm, Vitali Lovich  wrote:
> > > >> > > For development, yes.  Simply add the other project as a
> > dependancy.
>
> > > >> > > However, you can try fooling around with the classpath you provide
> > the
> > > >> > > compiler - maybe that will work.
>
> > > >> > >  > > >> > > classname="com.google.gwt.dev.Compiler">
> > > >> > >   
> > > >> > >     
> > > >> > >     
> > > >> > >   
> > > >> > >   
> > > >> > > 
>
> > > >> > > If it doesn't, you could always just maintain an ant task that
> > takes
> > > >> > those
> > > >> > > beans & packages them into a module.  No it's not ideal because of
> > the
> > > >> > > multiple locations you have to keep track of dependancies, but it
> > should
> > > >> > > work.
>
> > > >> > > On Tue, Apr 7, 2009 at 9:51 PM, TimOnGmail 
> > wrote:
>
> > > >> > > > I found some discussions of this here, but the answer always
> > seems to
> > > >> > > > be "you can't" (unless you make them part of a module, with a
> > common
> > > >> > > > parent, etc. etc., which I do not want to do).
>
> > > >> > >

[GEP] Unknown argument: -server

2009-04-08 Thread Isaac Truett

Preface: I see posts related to the plugin on this list and on GAE,
but I can't find an official support forum or issue tracker. If such a
thing does exist, do please redirect me there.

I'm using the plugin with two Eclipse projects. Same version of
Eclipse. Same workspace, even. One of them is working fine so far, the
other gives me this when I Run As -> Web Application:

WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
removed in a future release.
Use 'com.google.gwt.dev.HostedMode' instead.
(To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM arg.)
Unknown argument: -server
Google Web Toolkit 1.6.4

(GWTShell syntax help omitted)

I've searched the entire project for "-server" and can't find it
anywhere. It brings to mind the -server argument for java.exe but
there's nothing in the launch configuration's arguments tab, VM or
program. The other project, the one that works, gives the deprecation
warning but not the unknown argument error.

Anyone know where that errant argument might be coming from?

Thanks,
Isaac

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



Re: How can I combine 2 projects into one with gwt 1.6+?

2009-04-08 Thread yss...@gmail.com

Hi, Brandon

Have you found the solution ?
I have now same problem as yours.

If you've already have solution, could you share it for me please ?

thanks.
ysshir


On Apr 7, 11:47 am, branflake2267  wrote:
> Yea, I want to reuse the submodules as most as possible,  but I don't
> want to compile them into jars every time I make a change.  I am
> trying to figure out how to configure the compiler to use the other
> projects as if it where one big project.
>
> Thanks for your help.
> Brandon
>
> On Mar 26, 2:00 pm, Sumit Chandel  wrote:
>
> > Hi Brandon,
>
> > I'm not clear why you would need to compile the sub modules independently
> > from the main module. The GWT compiler performs a monolithic compilation for
> > each module it compiles, therefore the submodules would be completely
> > independent from the main module if they were compiled separately. It seems
> > like if you want to reuse those submodules, the best way would be to
> > reference them from your main project (linking source in Eclipse, for
> > example), and adding the submodules to your main GWT compilation target as
> > shown in the ant snippet.
>
> > If you have server-side classes that you want to compile separately and
> > include in the main project, you should probably set up a build target that
> > will javac those classes and copy them over to the main GWT project
> > directory. The gwtc target would then be dependent on that step before being
> > able to perform its own GWT compilation.
>
> > Putting into context of your next goals, 3. would be solved by what was
> > described in the last paragraph. 1. and 2. might not need to be explicit
> > goals since compiling separately probably won't be of much value for what I
> > think you're trying to do. Although I may have misundertstood the purposes
> > for goals 1 & 2.
>
> > Hope that helps,
> > -Sumit Chandel
>
> > On Sun, Mar 22, 2009 at 4:01 PM, branflake2267 
> > wrote:
>
> > > Hi Sumit Chandel,
>
> > > Thanks for taking the time to answer my questions!
>
> > > The Ant setup is heading in the right direction for me. I haven't
> > > figured out how to include other modules in ant. I have figured out
> > > how to include them in the debug configurations, and libraries in
> > > eclipse. I would prefer to use the jar, but I am building both modules
> > > actively, and compiling into a jar and including it would take longer
> > > to develop the project.
>
> > >http://code.google.com/p/gwt-examples/wiki/module_inherit-my docs so
> > > far in including gwt source modules/projects.
>
> > > Here are my projects I am experimenting on, and must figure out how to
> > > include them so I can move on.
>
> > >http://code.google.com/p/gwt-examples/source/browse/#svn/trunk/Naviga...project
>
> > >http://code.google.com/p/gwt-examples/source/browse/#svn/trunk/gwt-Sy...
> > > - common widgets
>
> > > My Goals:
> > > 1. configure ant to compile gwt like hosted mode - compile both the
> > > main module and the sub modules
> > > 2. copy the module to the main project
> > > 3. copy the compiled classes of the other project to the main module
>
> > > You guys are doing an excelent job with GWT!!!
> > > Thanks,
> > > Brandon
>
> > > On Mar 5, 1:34 am, Sumit Chandel  wrote:
> > > > Hi Brandon,
> > > > I think the typical way to reuse an existing GWT module in another is to
> > > > package that module into a JAR file (source included) and then refer to
> > > the
> > > > module from main project in its module XML file, as you did above. You
> > > would
> > > > then add that JAR to any launch or compilation scripts so that all
> > > > references would be resolved while running hosted mode or the GWT
> > > compiler.
> > > > In the same way, you would refer to this JAR in your ant build.xml file
> > > for
> > > > gwtc or hosted mode startup targets.
>
> > > > You could also refer to the GWT module's source folder and classpath
> > > > directly, as you did in your Eclipse configurations. This should also
> > > work
> > > > in Ant by defining the appropriate  element. Something like the
> > > > snippet below should do the trick:
>
> > > > 
> > > >     
> > > >       
> > > >     
> > > >   
>
> > > > 
> > > >      > > > classname="com.google.gwt.dev.Compiler">
> > > >       
> > > >         
> > > >         
> > > >         
> > > >       
> > > >       
> > > >       
> > > >     
> > > >   
>
> > > > This would be in addition to other path elements you would need to 
> > > > define
> > > to
> > > > build your project.
>
> > > > Hope that helps,
> > > > -Sumit Chandel
>
> > > > On Wed, Mar 4, 2009 at 8:23 AM, branflake2267  > > >wrote:
>
> > > > > How do I include the classpath for another module so ant will build?
>
> > > > > - My main module com.gawkat.gwt.Test
> > > > > - In Text.gwt.xml file I include " > > > > name='com.gawkat.gwt.Apple'/>"
> > > > > - I have added Apple projects classpath and src folder to Test Debug
> > > > > Configurations classpath and hosted mode will build the projects.
>
> > > > > So 

Re: Star project and RSS feed of releases

2009-04-08 Thread daniel

http://code.google.com/p/google-web-toolkit/

On 8 Apr., 23:15, Sam Halliday  wrote:
> Dear all,
>
> All Google Code projects have a "Star this" button on their front
> page, and an RSS feed for files. However, because GWT is "not really
> on Google Code", it misses these standard features. Where can I get an
> RSS feed of releases? (I already subscribe to the blog, which does
> this as a ... but I'm looking for RSS on just the files.

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



GWT expert needed

2009-04-08 Thread Randi

I need an Java/J2EE expert with significant experience working with
GWT for a government contract in Utah.  Other skills needed are
Struts, BEA Weblogic.

This position is expected to go 3 to 4 months with the possibility of
extending.  Candidates must be US Citizens working in or able to
relocate to Utah.

Please get in touch with me if you are interested.

Thanks!

Randi
801-676-7722
rthur...@smithjohnson.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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Robust (cross-browser) check for a specific keycode?

2009-04-08 Thread jchimene

Well, I found myself moving to 1.6 sooner rather than later - mostly
to take advantage of the Eclipse plug-in.

Yes, I could have stayed on 1.5 even with the plug-in, but it was a
slow news day.

So, I will take a look at the library

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



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread jchimene

Thanks folks!

The transition to 1.6 was relatively painless on my latest project. I
can see the WAR structure will be easier to deploy, even though I
don't (now) use server-side Java.

I had not intended to move to 1.6 so soon, but the Eclipse plug-in was
too good to resist.

Maybe I'll see you in May.

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



Re: Android Compatibility Isses with GWT (UI based, not RPC)

2009-04-08 Thread Thomas Broyer


Being very new to Android (read: I've launched the emulator and tried
our GWT app in it), I'll only answer a few of your questions.

On 8 avr, 18:22, Evan Ruff  wrote:
>
> 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an
> implementation to support HTML5 storage/cache issues in case of a non-
> gears enabled client. If not, is there a library anywhere that
> supports the encapsulation for GWT?

I'd love to add an HTML5 module to GWT-in-the-AIR with deferred
binding to use native HTML5 support, Gears or Adobe AIR. I haven't had
time to do that though (with the gain in productivity given by the
Google Plugin for Eclipse, that might appear a bit sooner than I'd
have previously expected).
http://code.google.com/p/gwt-in-the-air/

> 4. Focus Panel ClickListeners: When I click a focus panel, a orange
> circle shows up in the upper/left corner with what seems like a cursor
> in it? (http://i243.photobucket.com/albums/ff2/gte619n/
> selectBubble.png) Also seems like a non-trivial delay between the
> press and then a following action. Makes the app seem especially
> sluggish.

This is due to a limitation of WebKit that doesn't allow focusing
elements (even those with a tabIndex), so GWT adds a "hidden" textbox.
Unfortunately, the textbox isn't always hidden (you'll see the same
artifact if you use a Tree widget): the orange circle is the textbox
outline and it actually *is* a cursor/caret in it.
I don't know if this is fixed in recent WebKit builds but you can play
a bit with the deferred bindings to at least make focusable panels non-
focusable on Android (I don't know Android enough to know if focus
panels have a true added value in there)


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



ScrollPanel How to control?

2009-04-08 Thread sibopis...@googlemail.com

Hi, I was wondering if someone could tell me how to disable the
UP,DOWN, LEFT and RIGHT key when they are pressed. I'd like to control
the scrollPanel to be scrollable when it's needed not by default.
Exemple:
It should be scrollable by 10% of the list that's in inside of the
scrollPanel each time that Key Down is pressed.

Thank you very much in advanced.

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



Re: GWT 1.6 crashes in Host Mode under Vista

2009-04-08 Thread wynfo

I have the same problem with Vista SP1 and with the new GWT 1.6 and
Google Eclipse Plugin.

On 3 avr, 09:13, WadeC  wrote:
> I am already sucessfully running GWT 1.5 without any problems. I
> decided to try out the new release candidate of 1.6. I built the
> default project (with the webAppCreator) and didn't change anything.
> It runs fine under web mode - but under Host mode I get:
>
> "Navigation to the webpage was canceled "
>
> This is under Vista with SP1...
>
> Am I missing something obvious?
>
> WadeC
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Ant - copy output somewhere after compile

2009-04-08 Thread Sumit Chandel
Hi Milos,
If you've already generated the build.xml file for your project, you can
simply add a target to the build.xml file that copies the contents from the
output directory (which in GWT 1.6 would be war/, where
project_name is the name specified in the rename-to attribute of your module
XML file:

  ...

You can either change you're working directory from the previous www output
folder to the new war/testapp folder, or you can add another ant target to
copy the files over to the www your build / test configurations expect.

For example:



  



If you would prefer using your existing shell scripts, you could use those
too. They just need to be updated to use com.google.gwt.dev.HostedMode
instead of com.google.gwt.dev.GWTShell and com.google.gwt.dev.Compiler
instead of com.google.gwt.dev.GWTCompiler. See the link below for more
details.

GWT 1.6 Upgrade guide:
http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#Upgrading

Hope that helps,
-Sumit Chandel

2009/4/3 Miloš Ranđelović 

>
> Hi,
>
> I have just switched to GWT 1.6 from 1.5. As Ant is being used to
> compile the source code now, and I have never used Ant before, I have
> a small problem which I do not know how to solve:
>
> I have a GWT app with some PHP, so I'm using WAMP to test my app. In
> GWT 1.5, I have managed to set the cmd file to copy the compiled
> output to my www folder, and I would like to do the same with this
> build.xml file, but I don't have a clue how. Any help?
>
> 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Star project and RSS feed of releases

2009-04-08 Thread Sam Halliday

Dear all,

All Google Code projects have a "Star this" button on their front
page, and an RSS feed for files. However, because GWT is "not really
on Google Code", it misses these standard features. Where can I get an
RSS feed of releases? (I already subscribe to the blog, which does
this as a ... but I'm looking for RSS on just the files.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: opening new page

2009-04-08 Thread Tony Strauss

I'm not entirely sure that I understand your question.  If you have
different pages, you will need different modules (and so different
entry points).

By the way, I tend to agree with Ian's suggestion that you ditch
multiple pages and do everything within one GWT application.
Splitting the login from the rest of the application should not be
necessary unless you have more complicated requirements (such as, for
instance, loading up a different application based on the user, such
as one application for an admin and one for a normal user).

Tony
---
Tony Strauss
Designing Patterns, LLC
http://www.designingpatterns.com
http://blogs.designingpatterns.com

On Apr 8, 7:31 am, bhanu  wrote:
> This is the way only I also thought.
>
> 1. One url that is the main url for Login. And different modules for
> different pages. right?
> so I will get the different urls corresponding to different pages. for
> example.
>
> Login page. that is the entry point for the 
> application.http://localhost:/examples.Login/Login.html
> Welcome.jsp that is  the different module which I have to 
> create.http://localhost:/examples.Welcome/Welcome.html.
>
> When I click the login button I need to pass 
> thehttp://localhost:/examples.Welcome/Welcome.html. url .
>
> am i right?
>
> If it is this case, do I need to create this one as the entry point?
> Or only One entry point and remaining everything I can do
> in the Composite right?
>
> Please correct me If I am wrong.
>
> Thanks
> Bhanu lakshmi
>
> On Apr 7, 10:11 pm, Tony Strauss 
> wrote:
>
> > Just to be sure that I understand, you want two separate URLs and one
> > GWT application?  I don't think that you can satisfy both
> > requirements.  As far as I know, when you navigate to another page,
> > even if that page references the same application, a new instance of
> > the application will load on that page.
>
> > I can think of the following alternatives for you:
> > 1.) Only use one URL, as you've already found.
> > 2.) Use two separate GWT applications (and thus get two URLs).  You
> > can do this *and* share information between them, if you like.
> > Essentially, your login application, on successful login, would move
> > to another page, say welcome.jsp (using Window.Location.assign, for
> > instance).  welcome.jsp would contain another GWT application.  This
> > welcome.jsp GWT application either can:
> > a.) Do RPC to the server in order to get information about the user
> > (since the user now has a session on the server).
> > b.) Have the server fill in any necessary information via JSP
> > templating before being returned to the user.  See the Dictionary
> > class:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> > Tony
> > ---
> > Tony Strauss
> > Designing Patterns, 
> > LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com
>
> > On Apr 7, 8:32 am, bhanu  wrote:
>
> > > Hi
>
> > > My Intention is to create a small login and logout application. then
> > > once I got to know the concept and everything,
> > > I am planning to do quite big application in GWT. Because it seems to
> > > be very interesting.  Now I am using GWT 1.5.3 version.
>
> > > I am using Cypsal studio for creating modules. I have already created
> > > the module for Login screen.
> > > so now I have one Login.java and Login.gwt.xml and of course
> > > Login.html.
>
> > > Now the real problem starting for me.  I could run the application,
> > > and could validate the fields. But I dont know how to connect
> > > to the second page.
>
> > > Now what I wanted to test is , once the user click OK, it should be
> > > forwarded to next page(welcome page) with all session details. I can
> > > tell you in JSP point of view.Login.jsp contains the login form. once
> > > the user clicks ok, the form is redirected to welcome.jsp and shows
> > > his username. and one link for logout. This is how can I implements in
> > > GWT. One solution what I got is changing the 
> > > say for example. RootPanel.get("slot").add(welcome panel). But my url
> > > will always be the same. right?
>
> > > I request you to give a small idea regarding the page forwarding.
>
> > > Thanks
> > > Bhanu lakshmi
>
> > > On Apr 6, 11:53 pm, Tony Strauss 
> > > wrote:
>
> > > > In general, you need a module file (.gwt.xml) for each GWT module
> > > > (anything with onModuleLoad()).
>
> > > > Perhaps it would be best at this point if you posted your code and
> > > > described in more detail what you're doing.  Which GWT version?  Are
> > > > you testing in hosted mode?  With the embedded server?
>
> > > > Tony
> > > > ---
> > > > Tony Strauss
> > > > Designing Patterns, 
> > > > LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com
>
> > > > On Apr 5, 3:34 am, bhanu  wrote:
>
> > > > > Hi,
>
> > > > > Thanks sir for the reply.I need to use to use form.setAction
> > > > > ("newpage"); Because it has to bring the values from login page to
> > > > > newpage.
> > > > > when I used fo

Re: JSNI Special Character Problem

2009-04-08 Thread Thomas Broyer



On 8 avr, 21:44, lineman78  wrote:
> Hello all,
>
> I am currently working with using JAX-RS to retrieve data from my
> server in JSON format, and the default marshaller adds the '@' symbol
> to the beginning of variable names for attributes.  I am using the
> method of casting the JSON to a JavaScriptObject using the eval(json)
> function.  The problem is that the object looks like this:
>
> {
>   '@firstName':'Ted'
>
> }
>
> and I am using the native method to get the object:
>
> public final native String getFirstName()/*-{ return
> th...@firstname; }-*/;
>
> which of course gives an error because it is expecting a package
> name:variable after that @ symbol.  My question is if there is a way
> to escape the character so that the JSNI parser will ignore it and
> pass the literal, because we are having some issues getting JAX-RS to
> use a different JSON format.


th...@firstname isn't legal JavaScript either (not even talking about
JSNI here), except if you use E4X (which GWT doesn't support, and only
a few browsers do (maybe only Firefox?)).
The proper syntax would be this["@firstName"], and this should solve
your JSNI/GWTCompiler issue at the same time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread HommeDeJava

Wow!

Seems to be Christmas in April!

Fortunately, you have not made the announcement last week because we
thought it was a April 1st hoax!

Thanks a lot to all your great team!

Claude

On Apr 7, 11:57 pm, Bruce Johnson  wrote:
> Hi Folks!
>
> Exciting news today. Rather than attempting to describe everything here, let
> me point you to some blog posts that hopefully you will find interesting:
>
> GWT 1.6 and 
> friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
>
> Seriously this time, the new language on App Engine: 
> Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> Google Plugin for Eclipse -- Peanut Butter to Eclipse's 
> Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 crashes in Host Mode under Vista

2009-04-08 Thread Sumit Chandel
Hi WadeC,
Is the "Navigation to the webpage was canceled" an error message you're
seeing in the hosted mode browser window, the hosted mode console window, or
the Jetty logs? I've never seen that error message generated by hosted mode
before, so I'm guessing it's either in the Jetty logs or the embedded IE in
the hosted mode browser saying that navigation to the webpage was canceled.

In case of the latter, can you check that you didn't have any particular
firewalls running that may have blocked hosted mode from navigating to the
host HTML page, particularly if you were running with -noserver?

Hope that helps,
-Sumit Chandel

On Fri, Apr 3, 2009 at 12:13 AM, WadeC  wrote:

>
> I am already sucessfully running GWT 1.5 without any problems. I
> decided to try out the new release candidate of 1.6. I built the
> default project (with the webAppCreator) and didn't change anything.
> It runs fine under web mode - but under Host mode I get:
>
> "Navigation to the webpage was canceled "
>
> This is under Vista with SP1...
>
> Am I missing something obvious?
>
>
> WadeC
> >
>

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



Re: Google App Engine & GWT

2009-04-08 Thread Developer Dude

Runnable is simply an interface. A class may implement Runnable but
that does not mean the class will start another thread or be used by
another thread, only that it can be.

Personally, for me, much of the code I would write, would benefit from
threads and I regularly use them or use classes that use threads. I
suppose I could write code that didn't use threads so it would
specifically run in the app engine infrastructure, but that might
often mean that I would have to have one version of the code for the
app engine and another version to run elsewhere (on servers I control/
own/lease for example). At what point that I need the features of the
Google App Engine and they outweigh the convenience/flexibility of
running my apps on my own conventional servers - I don't know - but it
certainly caught my eye that I couldn't use threads.

On Apr 8, 5:15 am, Shawn Brown  wrote:
> No Threads?
>
> > A Java application cannot create a new java.lang.ThreadGroup nor a
> > new java.lang.Thread. These restrictions also apply to JRE classes that make
> > use of threads. For example, an application cannot create a
> > new java.util.concurrent.ThreadPoolExecutor, or a java.util.Timer. An
> > application can perform operations against the current thread, such
> > asThread.currentThread().dumpStack().
>
> What about runnable?
>
> Runnable is implemented by class Thread.
> Runnable provides the means for a class to be active while not
> subclassing Thread
>
> But...still, I think that it wouldn't work.
>
> Can anyone please confirm this?
>
> Shawn

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



JSNI Special Character Problem

2009-04-08 Thread lineman78

Hello all,

I am currently working with using JAX-RS to retrieve data from my
server in JSON format, and the default marshaller adds the '@' symbol
to the beginning of variable names for attributes.  I am using the
method of casting the JSON to a JavaScriptObject using the eval(json)
function.  The problem is that the object looks like this:

{
  '@firstName':'Ted'
}

and I am using the native method to get the object:

public final native String getFirstName()/*-{ return
th...@firstname; }-*/;

which of course gives an error because it is expecting a package
name:variable after that @ symbol.  My question is if there is a way
to escape the character so that the JSNI parser will ignore it and
pass the literal, because we are having some issues getting JAX-RS to
use a different JSON format.  Basically the overall structure of this
portion of the project follows that described here:
http://code.google.com/webtoolkit/tutorials/1.5/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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: compiler error in GWT 1.6 RC2

2009-04-08 Thread Sumit Chandel
Hi L Frohman,
Try allocating more memory to the GWT compiler process by passing in the
-Xss argument. For example, -Xss1024k might do the trick.

Also worth noting is that there is an issue open to make the compiler use
less stack (link below). In the meantime, adjusting the -Xss argument
appropriately should get you along.

Issue #3510:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3510

Hope that helps,
-Sumit Chandel

On Thu, Apr 2, 2009 at 11:47 AM, L Frohman  wrote:

>
> I am trying ot convert my GWT 1.5 project to 1.6. It ran OK in hosted mode
> in 1.6, but when I try to compile, I get the error below, in
> com.google.gwt.dev.Compiler.
> Has anybody seen this before?
>
>
> ---
>
> [java] Compiling module com.parvia.builder.Builder
> [java][ERROR] Unexpected internal compiler error
> [java] java.lang.StackOverflowError
> [java] at java.lang.Exception.(Exception.java:77)
> [java] at
>
> java.lang.reflect.InvocationTargetException.(InvocationTargetException.java:54)
> [java] at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown
> Source)
> [java] at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> [java] at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> [java] at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> [java] at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> [java] at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> [java] at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> [java] at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> [java] at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> [java] at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> [java] at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> [java] at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> [java] at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> [java] at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> [java] at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> [java] at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> [java] at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> [java] at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> [java] at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> [java] at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> [java] at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> [java] at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> [java] at java.util.ArrayList.writeObject(ArrayList.java:570)
> [java] at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown
> Source)
> [java] at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> [java] at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> [java] at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> [java] at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> [java] at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> [java] at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> [java] at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> [java] at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> [java] at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> [java] at java.util.ArrayList.writeObject(ArrayList.java:570)
> [java] at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown
> Source)
> [java] at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> [java] at
> java.io.ObjectOutputStream.writeSerialData(Objec

Re: How to use classes in a module that are not part of any module?

2009-04-08 Thread Vitali Lovich
If you use classes that aren't part of the GWT emulated JRE or there isn't a
module out there that emulates the functionality, obviously you can't do it
(unless you decide to write the emulated classes yourself if they are even
possible).

On Wed, Apr 8, 2009 at 2:51 PM, TimOnGmail  wrote:

>
> Hi Isaac...
>
> I should make this even clearer.  My bean-like classes are scattered
> throughout my codebase, and not concentrated in one place.  They many
> are JAXB beans and import javax.xml classes, which appears to break
> compilation in GWT.  I'll check into that here, perhaps others have
> tried this.
>
> Basically, I'm trying - as others have tried - to avoiding having to
> do a lot of work merely to use classes that are simple beans, though
> they may use certain unsupported packages (like the JAXB packages) and
> annotations, etc.
>
> It's *looking* like I may have to create a common interface, and
> create my own beans and use BeanUtils to copy them on the server side,
> unfortunately.
>
> - Tim
>
> On Apr 8, 5:34 am, Isaac Truett  wrote:
> > Tim,
> >
> > "Making a module" means creating one XML file.
> >
> > src/com/mycompany/Domain.gwt.xml:
> >
> > 
> > 
> > 
> >
> > ... and done. Inherit that in your GWT app and, assuming that
> > everything in com.mycompany.domain is GWT-compatible, you're set.
> >
> > - Isaac
> >
> > On Wed, Apr 8, 2009 at 1:49 AM, TimOnGmail  wrote:
> >
> > > Yes, just for testing purposes, before I actually need to compile
> > > everything into JavaScript.
> > > Both hierarchies are part of the same project, by the way, and I have
> > > already added the non-module
> > > hierarchies (both source and compiled) to the class path of the launch
> > > configuration for the module.
> > > But when I launch it I get lots of these kinds of things:
> >
> > > [ERROR] Line 16: No source code is available for type
> > > com.on24.loadtest.management.AgentEntry; did you forget to inherit a
> > > required module?
> >
> > > - Tim
> >
> > > On Apr 7, 10:15 pm, Vitali Lovich  wrote:
> > >> If you're just trying to launch hosted mode, adding the other project
> onto
> > >> the build-path should be sufficient.  Have you actually tried this &
> it
> > >> didn't work?  You might also want to add the other project as being a
> > >> dependancy of the GWT project (not necessary for it to work, but just
> nicer
> > >> from a behaviour of Eclipse perspective).
> >
> > >> However, I've never heard of anyone actually compiling the Java into
> > >> javascript from eclipse - it's certainly possible, but it's not what
> the
> > >> default launch config does.
> >
> > >> On Wed, Apr 8, 2009 at 1:04 AM, TimOnGmail 
> wrote:
> >
> > >> > Hi Vitali...
> >
> > >> > Well, I wasn't thinking of how to compile everything together in an
> > >> > Ant script.
> >
> > >> > Rather, I was thinking of using the launch config that's created
> when
> > >> > you follow the "how to create a module" instructions, and use it to
> > >> > launch the test, without doing any special build processing.  You
> > >> > know, follow "how to" for Eclipse instructions, but rearrange the
> > >> > locations of things or just modifying the single module I'm writing,
> > >> > so that it drags in the other classes from the Eclipse src/ and bin/
> > >> > folders.
> >
> > >> > Are you talking about creating a custom builder for the project?  I
> > >> > already depend upon the default builder for my project.
> >
> > >> > - Tim
> >
> > >> > On Apr 7, 9:29 pm, Vitali Lovich  wrote:
> > >> > > For development, yes.  Simply add the other project as a
> dependancy.
> >
> > >> > > However, you can try fooling around with the classpath you provide
> the
> > >> > > compiler - maybe that will work.
> >
> > >> > >  > >> > > classname="com.google.gwt.dev.Compiler">
> > >> > >   
> > >> > > 
> > >> > > 
> > >> > >   
> > >> > >   
> > >> > > 
> >
> > >> > > If it doesn't, you could always just maintain an ant task that
> takes
> > >> > those
> > >> > > beans & packages them into a module.  No it's not ideal because of
> the
> > >> > > multiple locations you have to keep track of dependancies, but it
> should
> > >> > > work.
> >
> > >> > > On Tue, Apr 7, 2009 at 9:51 PM, TimOnGmail 
> wrote:
> >
> > >> > > > I found some discussions of this here, but the answer always
> seems to
> > >> > > > be "you can't" (unless you make them part of a module, with a
> common
> > >> > > > parent, etc. etc., which I do not want to do).
> >
> > >> > > > Basically, I have this Eclipse project structure:
> >
> > >> > > > 1. src/com/mycompany/domain/... (serializable domain objects)
> >
> > >> > > > 2. gwt/[recommended structure]
> >
> > >> > > > I want the serializable domain objects in #1 available to the
> module
> > >> > > > in #2, WITHOUT HAVING TO MAKE #1 A MODULE.
> > >> > > > Seems like it should be doable, doesn't it?  But from what I've
> read
> > >> > > > here, it can't be done.
> >
> > >> > > > I also tried putting everything in #2 into the top level src/
> > >> 

Re: Center Root Panel

2009-04-08 Thread Vitali Lovich
The root panle is the body element.  You should add some kind of panel to
the root panel that is centered on the screen instead.  Then use CSS to
position it in the center.

On Wed, Apr 8, 2009 at 1:32 PM, Gonzalo Tirapegui Medina <
tecklasta...@gmail.com> wrote:

> Hi all:
>
> how can i center the main panel into the page ... i've been reading
> that this panel have an absolute position , in that case , should i get the
> screen resolution and add some padding to the component?
>
>
>
> thanks ... Gonzalo.
>
> >
>

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



Re: How to use classes in a module that are not part of any module?

2009-04-08 Thread TimOnGmail

Hi Isaac...

I should make this even clearer.  My bean-like classes are scattered
throughout my codebase, and not concentrated in one place.  They many
are JAXB beans and import javax.xml classes, which appears to break
compilation in GWT.  I'll check into that here, perhaps others have
tried this.

Basically, I'm trying - as others have tried - to avoiding having to
do a lot of work merely to use classes that are simple beans, though
they may use certain unsupported packages (like the JAXB packages) and
annotations, etc.

It's *looking* like I may have to create a common interface, and
create my own beans and use BeanUtils to copy them on the server side,
unfortunately.

- Tim

On Apr 8, 5:34 am, Isaac Truett  wrote:
> Tim,
>
> "Making a module" means creating one XML file.
>
> src/com/mycompany/Domain.gwt.xml:
>
> 
>     
> 
>
> ... and done. Inherit that in your GWT app and, assuming that
> everything in com.mycompany.domain is GWT-compatible, you're set.
>
> - Isaac
>
> On Wed, Apr 8, 2009 at 1:49 AM, TimOnGmail  wrote:
>
> > Yes, just for testing purposes, before I actually need to compile
> > everything into JavaScript.
> > Both hierarchies are part of the same project, by the way, and I have
> > already added the non-module
> > hierarchies (both source and compiled) to the class path of the launch
> > configuration for the module.
> > But when I launch it I get lots of these kinds of things:
>
> > [ERROR] Line 16: No source code is available for type
> > com.on24.loadtest.management.AgentEntry; did you forget to inherit a
> > required module?
>
> > - Tim
>
> > On Apr 7, 10:15 pm, Vitali Lovich  wrote:
> >> If you're just trying to launch hosted mode, adding the other project onto
> >> the build-path should be sufficient.  Have you actually tried this & it
> >> didn't work?  You might also want to add the other project as being a
> >> dependancy of the GWT project (not necessary for it to work, but just nicer
> >> from a behaviour of Eclipse perspective).
>
> >> However, I've never heard of anyone actually compiling the Java into
> >> javascript from eclipse - it's certainly possible, but it's not what the
> >> default launch config does.
>
> >> On Wed, Apr 8, 2009 at 1:04 AM, TimOnGmail  wrote:
>
> >> > Hi Vitali...
>
> >> > Well, I wasn't thinking of how to compile everything together in an
> >> > Ant script.
>
> >> > Rather, I was thinking of using the launch config that's created when
> >> > you follow the "how to create a module" instructions, and use it to
> >> > launch the test, without doing any special build processing.  You
> >> > know, follow "how to" for Eclipse instructions, but rearrange the
> >> > locations of things or just modifying the single module I'm writing,
> >> > so that it drags in the other classes from the Eclipse src/ and bin/
> >> > folders.
>
> >> > Are you talking about creating a custom builder for the project?  I
> >> > already depend upon the default builder for my project.
>
> >> > - Tim
>
> >> > On Apr 7, 9:29 pm, Vitali Lovich  wrote:
> >> > > For development, yes.  Simply add the other project as a dependancy.
>
> >> > > However, you can try fooling around with the classpath you provide the
> >> > > compiler - maybe that will work.
>
> >> > >  >> > > classname="com.google.gwt.dev.Compiler">
> >> > >   
> >> > >     
> >> > >     
> >> > >   
> >> > >   
> >> > > 
>
> >> > > If it doesn't, you could always just maintain an ant task that takes
> >> > those
> >> > > beans & packages them into a module.  No it's not ideal because of the
> >> > > multiple locations you have to keep track of dependancies, but it 
> >> > > should
> >> > > work.
>
> >> > > On Tue, Apr 7, 2009 at 9:51 PM, TimOnGmail  wrote:
>
> >> > > > I found some discussions of this here, but the answer always seems to
> >> > > > be "you can't" (unless you make them part of a module, with a common
> >> > > > parent, etc. etc., which I do not want to do).
>
> >> > > > Basically, I have this Eclipse project structure:
>
> >> > > > 1. src/com/mycompany/domain/... (serializable domain objects)
>
> >> > > > 2. gwt/[recommended structure]
>
> >> > > > I want the serializable domain objects in #1 available to the module
> >> > > > in #2, WITHOUT HAVING TO MAKE #1 A MODULE.
> >> > > > Seems like it should be doable, doesn't it?  But from what I've read
> >> > > > here, it can't be done.
>
> >> > > > I also tried putting everything in #2 into the top level src/
> >> > > > hierarchy, and put all the module support files in the top level of
> >> > > > the project, but I couldn't get it work that way, either.
>
> >> > > > So... as of today, is it at all possible to have 2 separate source
> >> > > > hierarchies, 1 of which contains a GWT module, the other of which
> >> > > > contains simple serializable beans, and have the module be aware of
> >> > > > the other classes?  I mean, they are there, they are serializable, 
> >> > > > the
> >> > > > source is available - why wouldn't it be possible to point the GWT
> >

Re: Android Compatibility Isses with GWT (UI based, not RPC)

2009-04-08 Thread Jason Parekh

On Wed, Apr 8, 2009 at 2:12 PM, Evan Ruff  wrote:
>
> Jason,
>
> I actually downloaded a January 7th image I found on the web. Do you
> know if that version has the Webkit/SquirrelFish updates in it?

Nope, sorry.

I know it's a lot of work, but building from the repo may be a good
idea (there's been a lot of change since early January).

jason

>
> Sorry if this thread has kinda gotten a little off the tracks, guys.
>
> E
>
> On Apr 8, 12:57 pm, Jason Parekh  wrote:
>> On Wed, Apr 8, 2009 at 12:22 PM, Evan Ruff  wrote:
>>
>> > Hey guys,
>>
>> > Little stream of conciseness here, sorry if this is a bit long/
>> > disjoined.
>>
>> > I was wondering if anyone had done any work with GWT and the Android
>> > Browser. While I'm getting basic functionality to work, the general
>> > speed, responsiveness and user experience seem very sluggish and,
>> > well, sorta bad. Another issue I'm having is locating a group to go to
>> > for support, examples and help. While I'm interested in GWT with
>> > Android, it seems that Android Developers Group is really only
>> > interested in native apps. Where to go for Browser specific help?
>>
>> I recommend the Android lists--some members of the Android browser
>> team monitor those lists (I don't think any of them monitor this
>> list).  Also, filing bugs on the tracker is always recommended.
>>
>> As for trying out cupcake, you can build an emulator running Cupcake
>> with the instructions athttp://source.android.com/download.
>>
>> jason
>>
>>
>>
>> > Anyways, some of the particulars I've run into:
>>
>> > What group to go to?
>>
>> > 1. Issues Controlling the viewport: No matter what I do, I can't seem
>> > to get proper control of the viewport. Editing the meta data, overflow
>> > CSS properties, insuring that the window's objects are small, etc. I'm
>> > continually getting white space borders and stuff like that. This
>> > causes weird finger behavior, especially allowing the user to browse
>> > into the white space.
>>
>> > 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an
>> > implementation to support HTML5 storage/cache issues in case of a non-
>> > gears enabled client. If not, is there a library anywhere that
>> > supports the encapsulation for GWT?
>>
>> > 3. MouseListeners: The OS seems to swallow up the MouseUp event in
>> > order to do detection of scroll/drag type stuff. I guess I understand
>> > why it does it for the drag type thing, but it never fires MouseUp
>> > even after the drag is done. Ehh... fair enough, I guess.
>>
>> > 4. Focus Panel ClickListeners: When I click a focus panel, a orange
>> > circle shows up in the upper/left corner with what seems like a cursor
>> > in it? (http://i243.photobucket.com/albums/ff2/gte619n/
>> > selectBubble.png) Also seems like a non-trivial delay between the
>> > press and then a following action. Makes the app seem especially
>> > sluggish.
>>
>> > 5. Image Loading/Display: Seems really slow. Even when doing
>> > background repositioning to flip sprites. Additionally, the images
>> > don't seem to load in any fixed order and method. Also seems to hang
>> > when loading images (http://i243.photobucket.com/albums/ff2/gte619n/
>> > selectBubble.png) I've attempted to get around this by doing Prefetch
>> > and such, but nothing seems to work. Seems like it needs to talk
>> > itself into refreshing the screen after loading finishes (even in
>> > localhost in the emulator)
>>
>> > 6. Visibility hide/show: Very sluggish in general.
>>
>> > 7. Scroll inside divs: Flat out doesn't support this. I guess the
>> > Cupcake release, bringing the browser up to Nov 2008 Webkit, should
>> > fix this but I still don't have any visibility into that release.
>>
>> > Has anyone compiled some best practices to use when building an
>> > Application for Android? Maybe even some widgets or JSNI breakouts to
>> > better manage the behavior and performance of the app?
>>
>> > Thanks!
>>
>> > Evan
> >
>

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



Re: Error installing google plugin for eclipse

2009-04-08 Thread Miguel Méndez
Good to know that resolved the issue.

On Wed, Apr 8, 2009 at 2:24 PM, Jose Diaz  wrote:

> Sorry The error is because in my preferences i am using JDK 1.4 by
> default.
>
> I change to jdk 1.6 and the problem was solved.
>
> Joe.
> www.joedayz.org
>
> On Wed, Apr 8, 2009 at 1:17 PM, Jose Diaz  wrote:
>
>> This is the information of my STS:
>>
>> SpringSource Tool Suite
>>
>> Version: 2.0.0
>>
>> (c) Copyright SpringSource 2007, 2009. All rights reserved.
>> Visit http://springsource.com/products/sts
>>
>> My ubuntu:
>>
>> Ubuntu 8.10 - the Intrepid Ibex - released in October 2008.
>>
>> Log:
>>
>>
>> !ENTRY org.eclipse.jdt.ui 4 10001 2009-04-08 13:17:19.818
>> !MESSAGE Internal Error
>> !STACK 1
>> Java Model Exception: Core Exception [code 0] Invocation of
>> com.google.gwt.user.tools.WebAppCreator failed. See the error log for more
>> details.
>> at
>> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50)
>> at
>> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
>> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
>> at
>> org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
>> at
>> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>> Caused by: org.eclipse.core.runtime.CoreException: Invocation of
>> com.google.gwt.user.tools.WebAppCreator failed. See the error log for more
>> details.
>> at
>> com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:48)
>> at
>> com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:376)
>> at
>> com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:204)
>> at
>> com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:202)
>> at
>> org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117)
>> at
>> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
>> at
>> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
>> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
>> at
>> org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
>> at
>> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>> !SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2009-04-08 13:17:19.819
>> !MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See
>> the error log for more details.
>>
>>
>>
>>
>>
>>
>>
>> 2009/4/8 Miguel Méndez 
>>
>> Was there a stack traced or more information in the failure?  What
>>> versions of eclipse, etc are involved?
>>>
>>> On Wed, Apr 8, 2009 at 1:43 PM, joedayz  wrote:
>>>

 I installed in Spring tool suite 2.0 the plugin.
 I work in ubuntu (linux).

 For I got it error:

 Invocation of com.google.gwt.user.tools.WebAppCreator failed.

 If someone can help with it.

 Please,

 Joe



>>>
>>>
>>> --
>>> Miguel
>>>
>>>
>>>
>>>
>>
>>
>> --
>> **
>> **
>> JOEDAYZ
>> Ing. Jose Diaz Diaz
>> www.joedayz.com
>> 4116200 ext 2527
>> 985419782
>> **
>> **
>>
>
>
>
> --
> **
> **
> JOEDAYZ
> Ing. Jose Diaz Diaz
> www.joedayz.com
> 4116200 ext 2527
> 985419782
> **
> **
>
> >
>


-- 
Miguel

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



Re: GWT dev on Windows and Linux

2009-04-08 Thread Marley

Thanks for the response.  I tried this but am still getting an error.
What is in your platform-libs zip?


On Apr 8, 8:33 am, Arthur Kalmenson  wrote:
> Do you have "" in your POM? It looks something like this:
>
>         
>                 
>                         gwt-dev-windows
>                         
>                                 windows
>                         
>                         
>                                 true
>                                 
>                                         Windows
>                                 
>                         
>                 
>                 
>                         gwt-dev-mac
>                         
>                                 mac
>                         
>                         
>                                 
>                                         mac
>                                 
>                         
>                 
>                 
>                         gwt-dev-linux
>                         
>                                 linux
>                         
>                         
>                                 
>                                         Linux
>                                 
>                         
>                 
>         
>
> Your gwt-dev dependency would look like this:
>
>                 
>                         com.google.gwt
>                         gwt-dev
>                         ${gwtVersion}
>                         ${platform}-libs
>                         zip
>                         provided
>                 
>
> Regards,
> --
> Arthur Kalmenson
>
> On Tue, Apr 7, 2009 at 1:02 PM, Marley  wrote:
>
> > I have a GWT project which I have been developing on my Windows XP
> > laptop.  An older desktop was laying around and I convinced my boss to
> > let me have it.   Amazing how quickly the XP installation on it
> > disappeared!
>
> > I checked out the code on my Linux box but can not compile it via the
> > Maven GWT plug-in or run it from within eclipse now.  Maven blows up
> > and Eclipse gives me a:
>
> > Plug-in org.maven.ide.eclipse.jdt was unable to load class
> > org.maven.ide.eclipse.jdt.internal.launch.MavenRuntimeClasspathProvider.
> > An error occurred while automatically activating bundle
> > org.maven.ide.eclipse.jdt (602).
>
> > What do i need to do differently on Linux than Windows?  Can I develop
> > the same project on both platforms?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Error installing google plugin for eclipse

2009-04-08 Thread Jose Diaz
Sorry The error is because in my preferences i am using JDK 1.4 by
default.

I change to jdk 1.6 and the problem was solved.

Joe.
www.joedayz.org

On Wed, Apr 8, 2009 at 1:17 PM, Jose Diaz  wrote:

> This is the information of my STS:
>
> SpringSource Tool Suite
>
> Version: 2.0.0
>
> (c) Copyright SpringSource 2007, 2009. All rights reserved.
> Visit http://springsource.com/products/sts
>
> My ubuntu:
>
> Ubuntu 8.10 - the Intrepid Ibex - released in October 2008.
>
> Log:
>
>
> !ENTRY org.eclipse.jdt.ui 4 10001 2009-04-08 13:17:19.818
> !MESSAGE Internal Error
> !STACK 1
> Java Model Exception: Core Exception [code 0] Invocation of
> com.google.gwt.user.tools.WebAppCreator failed. See the error log for more
> details.
> at
> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
> at
> org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> Caused by: org.eclipse.core.runtime.CoreException: Invocation of
> com.google.gwt.user.tools.WebAppCreator failed. See the error log for more
> details.
> at
> com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:48)
> at
> com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:376)
> at
> com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:204)
> at
> com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:202)
> at
> org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117)
> at
> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
> at
> org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> !SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2009-04-08 13:17:19.819
> !MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See
> the error log for more details.
>
>
>
>
>
>
>
> 2009/4/8 Miguel Méndez 
>
> Was there a stack traced or more information in the failure?  What versions
>> of eclipse, etc are involved?
>>
>> On Wed, Apr 8, 2009 at 1:43 PM, joedayz  wrote:
>>
>>>
>>> I installed in Spring tool suite 2.0 the plugin.
>>> I work in ubuntu (linux).
>>>
>>> For I got it error:
>>>
>>> Invocation of com.google.gwt.user.tools.WebAppCreator failed.
>>>
>>> If someone can help with it.
>>>
>>> Please,
>>>
>>> Joe
>>>
>>>
>>>
>>
>>
>> --
>> Miguel
>>
>>
>> >>
>>
>
>
> --
> **
> **
> JOEDAYZ
> Ing. Jose Diaz Diaz
> www.joedayz.com
> 4116200 ext 2527
> 985419782
> **
> **
>



-- 
**
**
JOEDAYZ
Ing. Jose Diaz Diaz
www.joedayz.com
4116200 ext 2527
985419782
**
**

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



Re: Error installing google plugin for eclipse

2009-04-08 Thread Miguel Méndez
Last question, is this a 64 machine?

On Wed, Apr 8, 2009 at 2:17 PM, Jose Diaz  wrote:

> This is the information of my STS:
>
> SpringSource Tool Suite
>
> Version: 2.0.0
>
> (c) Copyright SpringSource 2007, 2009. All rights reserved.
> Visit http://springsource.com/products/sts
>
> My ubuntu:
>
> Ubuntu 8.10 - the Intrepid Ibex - released in October 2008.
>
> Log:
>
>
> !ENTRY org.eclipse.jdt.ui 4 10001 2009-04-08 13:17:19.818
> !MESSAGE Internal Error
> !STACK 1
> Java Model Exception: Core Exception [code 0] Invocation of
> com.google.gwt.user.tools.WebAppCreator failed. See the error log for more
> details.
> at
> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
> at
> org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> Caused by: org.eclipse.core.runtime.CoreException: Invocation of
> com.google.gwt.user.tools.WebAppCreator failed. See the error log for more
> details.
> at
> com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:48)
> at
> com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:376)
> at
> com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:204)
> at
> com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:202)
> at
> org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117)
> at
> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
> at
> org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> !SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2009-04-08 13:17:19.819
> !MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See
> the error log for more details.
>
>
>
>
>
>
>
> 2009/4/8 Miguel Méndez 
>
>> Was there a stack traced or more information in the failure?  What
>> versions of eclipse, etc are involved?
>>
>> On Wed, Apr 8, 2009 at 1:43 PM, joedayz  wrote:
>>
>>>
>>> I installed in Spring tool suite 2.0 the plugin.
>>> I work in ubuntu (linux).
>>>
>>> For I got it error:
>>>
>>> Invocation of com.google.gwt.user.tools.WebAppCreator failed.
>>>
>>> If someone can help with it.
>>>
>>> Please,
>>>
>>> Joe
>>>
>>>
>>>
>>
>>
>> --
>> Miguel
>>
>>
>>
>>
>
>
> --
> **
> **
> JOEDAYZ
> Ing. Jose Diaz Diaz
> www.joedayz.com
> 4116200 ext 2527
> 985419782
> **
> **
>
>
> >
>


-- 
Miguel

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



Re: Error installing google plugin for eclipse

2009-04-08 Thread Jose Diaz
This is the information of my STS:

SpringSource Tool Suite

Version: 2.0.0

(c) Copyright SpringSource 2007, 2009. All rights reserved.
Visit http://springsource.com/products/sts

My ubuntu:

Ubuntu 8.10 - the Intrepid Ibex - released in October 2008.

Log:


!ENTRY org.eclipse.jdt.ui 4 10001 2009-04-08 13:17:19.818
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Core Exception [code 0] Invocation of
com.google.gwt.user.tools.WebAppCreator failed. See the error log for more
details.
at
org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
at
org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: Invocation of
com.google.gwt.user.tools.WebAppCreator failed. See the error log for more
details.
at
com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:48)
at
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:376)
at
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:204)
at
com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:202)
at
org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117)
at
org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
at
org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2009-04-08 13:17:19.819
!MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See
the error log for more details.







2009/4/8 Miguel Méndez 

> Was there a stack traced or more information in the failure?  What versions
> of eclipse, etc are involved?
>
> On Wed, Apr 8, 2009 at 1:43 PM, joedayz  wrote:
>
>>
>> I installed in Spring tool suite 2.0 the plugin.
>> I work in ubuntu (linux).
>>
>> For I got it error:
>>
>> Invocation of com.google.gwt.user.tools.WebAppCreator failed.
>>
>> If someone can help with it.
>>
>> Please,
>>
>> Joe
>>
>>
>>
>
>
> --
> Miguel
>
>
> >
>


-- 
**
**
JOEDAYZ
Ing. Jose Diaz Diaz
www.joedayz.com
4116200 ext 2527
985419782
**
**

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



Re: Android Compatibility Isses with GWT (UI based, not RPC)

2009-04-08 Thread Evan Ruff

Jason,

I actually downloaded a January 7th image I found on the web. Do you
know if that version has the Webkit/SquirrelFish updates in it?

Sorry if this thread has kinda gotten a little off the tracks, guys.

E

On Apr 8, 12:57 pm, Jason Parekh  wrote:
> On Wed, Apr 8, 2009 at 12:22 PM, Evan Ruff  wrote:
>
> > Hey guys,
>
> > Little stream of conciseness here, sorry if this is a bit long/
> > disjoined.
>
> > I was wondering if anyone had done any work with GWT and the Android
> > Browser. While I'm getting basic functionality to work, the general
> > speed, responsiveness and user experience seem very sluggish and,
> > well, sorta bad. Another issue I'm having is locating a group to go to
> > for support, examples and help. While I'm interested in GWT with
> > Android, it seems that Android Developers Group is really only
> > interested in native apps. Where to go for Browser specific help?
>
> I recommend the Android lists--some members of the Android browser
> team monitor those lists (I don't think any of them monitor this
> list).  Also, filing bugs on the tracker is always recommended.
>
> As for trying out cupcake, you can build an emulator running Cupcake
> with the instructions athttp://source.android.com/download.
>
> jason
>
>
>
> > Anyways, some of the particulars I've run into:
>
> > What group to go to?
>
> > 1. Issues Controlling the viewport: No matter what I do, I can't seem
> > to get proper control of the viewport. Editing the meta data, overflow
> > CSS properties, insuring that the window's objects are small, etc. I'm
> > continually getting white space borders and stuff like that. This
> > causes weird finger behavior, especially allowing the user to browse
> > into the white space.
>
> > 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an
> > implementation to support HTML5 storage/cache issues in case of a non-
> > gears enabled client. If not, is there a library anywhere that
> > supports the encapsulation for GWT?
>
> > 3. MouseListeners: The OS seems to swallow up the MouseUp event in
> > order to do detection of scroll/drag type stuff. I guess I understand
> > why it does it for the drag type thing, but it never fires MouseUp
> > even after the drag is done. Ehh... fair enough, I guess.
>
> > 4. Focus Panel ClickListeners: When I click a focus panel, a orange
> > circle shows up in the upper/left corner with what seems like a cursor
> > in it? (http://i243.photobucket.com/albums/ff2/gte619n/
> > selectBubble.png) Also seems like a non-trivial delay between the
> > press and then a following action. Makes the app seem especially
> > sluggish.
>
> > 5. Image Loading/Display: Seems really slow. Even when doing
> > background repositioning to flip sprites. Additionally, the images
> > don't seem to load in any fixed order and method. Also seems to hang
> > when loading images (http://i243.photobucket.com/albums/ff2/gte619n/
> > selectBubble.png) I've attempted to get around this by doing Prefetch
> > and such, but nothing seems to work. Seems like it needs to talk
> > itself into refreshing the screen after loading finishes (even in
> > localhost in the emulator)
>
> > 6. Visibility hide/show: Very sluggish in general.
>
> > 7. Scroll inside divs: Flat out doesn't support this. I guess the
> > Cupcake release, bringing the browser up to Nov 2008 Webkit, should
> > fix this but I still don't have any visibility into that release.
>
> > Has anyone compiled some best practices to use when building an
> > Application for Android? Maybe even some widgets or JSNI breakouts to
> > better manage the behavior and performance of the app?
>
> > Thanks!
>
> > Evan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: iText Causing GWT-RPC callback to fail. Need to send to HttpServletResponse?

2009-04-08 Thread flyingb...@gmail.com

Can we see how does your itext pdf look like? here is mine:
http://www.nabble.com/file/p17809870/DomesticApprovalS13371.pdf

On Apr 7, 10:50 pm, Carl Pritchett  wrote:
> Hi,
>
> You'll have to work out a token generation scheme. If you find a nice
> one, post it.
>
> Sessions will typically timeout (the timeout is app server dependent),
> but I also added session.invalidate() on login to ensure that the
> previous session is invalidated (e.g. two users usin the same
> browser).
>
> Carl.
>
> On Apr 8, 8:04 am, Superman859  wrote:> Thanks 
> Carl!  Your method worked fine.  It's almost fully implemented,
> > but the only question I have that remains is the proper way to
> > generate tokens.  I haven't ever had to generate them before - is
> > there an automatic way of generating unique tokens, or is generateToken
> > () a function I would write myself and have to ensure that each token
> > generated was unique?
>
> > For now, I just hard coded a random string into the code, which worked
> > well enough to see that the PDF did indeed open in a new window and
> > display as expected.
>
> > I will also need to figure out the session settings so that they are
> > invalidated properly, although I think I will need to do a bit more
> > reading on this.
>
> > // RPC code in the class which extends RemoteServiceServlet
> > public String generatePDF(ReportDO report, int id) {
>
> >                 // initialize new document for PDF
> >                 Document document = new Document();
>
> >                 // generate one time token that the client can use to 
> > retrieve the
> > PDF
> >                 String token = "258958395ai53";
>
> >                 // generate test PDF
> >                 try {
>
> >                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
> >                 PdfWriter.getInstance(document, baos);
> >                 document.open();
> >                 document.add(new Paragraph("Hello World!"));
> >                 document.close();
>
> >                 byte[] pdf = baos.toByteArray();
>
> >                 HttpServletRequest request = this.getThreadLocalRequest();
> >                 HttpSession session = request.getSession();
> >                 session.setAttribute(token, pdf);
>
> >                 }
> >                 catch (Exception e) {
> >                         
> > System.out.println("ReportServlet::generatePDF::Exception " +
> > e.getMessage());
> >                 }
>
> >                 return token;
>
> >         }
>
> > // standard servlet
> > public class PDFServlet extends HttpServlet {
>
> >         public void doGet(HttpServletRequest request, HttpServletResponse
> > response) throws IOException, ServletException {
>
> >                 // create output stream from byte array in session
> >                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
> >                 String token = request.getParameter("token");
> >                 byte[] pdf = (byte[]) 
> > request.getSession().getAttribute(token);
> >                 baos.write(pdf);
>
> >                 // setting some response headers
> >                 response.setHeader("Expires", "0");
> >                 response.setHeader("Cache-Control", "must-revalidate, 
> > post-check=0,
> > pre-check=0");
> >                 response.setHeader("Pragma", "public");
>
> >                 response.setContentType("application/pdf");
>
> >                 // content length is needed for MSIE
> >                 response.setContentLength(baos.size());
>
> >                 // write ByteArrayOutputStream to ServletOutputStream
> >                 ServletOutputStream out = response.getOutputStream();
> >                 baos.writeTo(out);
> >                 out.flush();
> >         }
>
> > }
>
> > // client side code section
> > ReportController.getInstance().generatePDF(report, id, new
> > AsyncCallback() {
>
> >                                         public void onFailure(Throwable 
> > caught) {
> >                                                 SC.say("Failed");
>
> >                                         }
>
> >                                         public void onSuccess(Object 
> > result) {
> >                                                 String token = (String) 
> > result;
> >                                                 
> > Window.open("PDFService?token=" + token, "_blank",
> > "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
>
> >                                         }
>
> >                                 });
> >                         }
> >                 });
>
> > On Apr 7, 1:04 am, Carl Pritchett  wrote:
>
> > > The simplest safest way I can think of is basically the same as other
> > > people have already stated in this thread.
> > > Using a token and storing data in the session means that the pdf data
> > > is unique to the user (as long as the session is invalidated
> > > properly).
>
> > > - Send an RPC call to generate the pdf (or 

Re: Android Compatibility Isses with GWT (UI based, not RPC)

2009-04-08 Thread Evan Ruff

Hey Jason,

Thanks for the tips. I've posted my note on the Android Developers
list so hopefully someone over there has already gone down this road.

As for the emulator tip, I've found some images and will be installing
them shortly. Sometimes I kind of forget what I'm working with and
just assume I've only got the device!

So yeah, after upgrading to the new Cupcake on the emulator... meh I'd
say no improvement :-(.

E



On Apr 8, 12:57 pm, Jason Parekh  wrote:
> On Wed, Apr 8, 2009 at 12:22 PM, Evan Ruff  wrote:
>
> > Hey guys,
>
> > Little stream of conciseness here, sorry if this is a bit long/
> > disjoined.
>
> > I was wondering if anyone had done any work with GWT and the Android
> > Browser. While I'm getting basic functionality to work, the general
> > speed, responsiveness and user experience seem very sluggish and,
> > well, sorta bad. Another issue I'm having is locating a group to go to
> > for support, examples and help. While I'm interested in GWT with
> > Android, it seems that Android Developers Group is really only
> > interested in native apps. Where to go for Browser specific help?
>
> I recommend the Android lists--some members of the Android browser
> team monitor those lists (I don't think any of them monitor this
> list).  Also, filing bugs on the tracker is always recommended.
>
> As for trying out cupcake, you can build an emulator running Cupcake
> with the instructions athttp://source.android.com/download.
>
> jason
>
>
>
> > Anyways, some of the particulars I've run into:
>
> > What group to go to?
>
> > 1. Issues Controlling the viewport: No matter what I do, I can't seem
> > to get proper control of the viewport. Editing the meta data, overflow
> > CSS properties, insuring that the window's objects are small, etc. I'm
> > continually getting white space borders and stuff like that. This
> > causes weird finger behavior, especially allowing the user to browse
> > into the white space.
>
> > 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an
> > implementation to support HTML5 storage/cache issues in case of a non-
> > gears enabled client. If not, is there a library anywhere that
> > supports the encapsulation for GWT?
>
> > 3. MouseListeners: The OS seems to swallow up the MouseUp event in
> > order to do detection of scroll/drag type stuff. I guess I understand
> > why it does it for the drag type thing, but it never fires MouseUp
> > even after the drag is done. Ehh... fair enough, I guess.
>
> > 4. Focus Panel ClickListeners: When I click a focus panel, a orange
> > circle shows up in the upper/left corner with what seems like a cursor
> > in it? (http://i243.photobucket.com/albums/ff2/gte619n/
> > selectBubble.png) Also seems like a non-trivial delay between the
> > press and then a following action. Makes the app seem especially
> > sluggish.
>
> > 5. Image Loading/Display: Seems really slow. Even when doing
> > background repositioning to flip sprites. Additionally, the images
> > don't seem to load in any fixed order and method. Also seems to hang
> > when loading images (http://i243.photobucket.com/albums/ff2/gte619n/
> > selectBubble.png) I've attempted to get around this by doing Prefetch
> > and such, but nothing seems to work. Seems like it needs to talk
> > itself into refreshing the screen after loading finishes (even in
> > localhost in the emulator)
>
> > 6. Visibility hide/show: Very sluggish in general.
>
> > 7. Scroll inside divs: Flat out doesn't support this. I guess the
> > Cupcake release, bringing the browser up to Nov 2008 Webkit, should
> > fix this but I still don't have any visibility into that release.
>
> > Has anyone compiled some best practices to use when building an
> > Application for Android? Maybe even some widgets or JSNI breakouts to
> > better manage the behavior and performance of the app?
>
> > Thanks!
>
> > Evan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



New version of Print.it

2009-04-08 Thread Freller


So here you can find the last version of Print.it. It works for both
1.4 and 1.5.
You can supply a DOCTYPE do be used to render the printing frame
and you can alter the way the printing frame is generated and printed
on slow machines,

http://code.google.com/p/gwt-print-it/source/browse/trunk/src/br/com/freller/tool/client/Print.java

/**
 * 
 *
 * Description:
 *
 *  Generic printing class
 *  Can be used to print the Window it self, DOM.Elements,
UIObjects (Widgets) and plain HTML
 *
 * Usage:
 *
 *  You must insert this iframe in your host page:
 *  
 *
 *  Window:
 *  Print.it();
 *
 *  Objects/HTML:
 *  Print.it(RootPanel.get("myId"));
 *  Print.it(DOM.getElementById("myId"));
 *  Print.it("Just Print.it()!");
 *
 *  Objects/HTML using styles:
 *  Print.it("", RootPanel.get("myId"));
 *  Print.it(" .newPage
{ page-break-after: always; } ",
 *  "HiBy");
 *
 *  Objects/HTML using styles and DocType:
 *  Print.it("http://www.w3.org/TR/html4/strict.dtd'>",
 *   "",
 *   RootPanel.get("myId"));
 *
 * OBS:
 *
 *  Warning: You can't use \" in your style String
 *
 *  Obs: If your machine is to slow to render the page and you
keep getting blank pages, change USE_TIMER to true and
 *   play with TIMER_DELAY
 *
 *  Obs: If you try to print Form elements, like TextArea and
ListBox they will show default status
 *
 * 
 */


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



Re: Error installing google plugin for eclipse

2009-04-08 Thread Miguel Méndez
Was there a stack traced or more information in the failure?  What versions
of eclipse, etc are involved?

On Wed, Apr 8, 2009 at 1:43 PM, joedayz  wrote:

>
> I installed in Spring tool suite 2.0 the plugin.
> I work in ubuntu (linux).
>
> For I got it error:
>
> Invocation of com.google.gwt.user.tools.WebAppCreator failed.
>
> If someone can help with it.
>
> Please,
>
> Joe
>
> >
>


-- 
Miguel

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



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Miguel Méndez
That is strange.  We'll track it internally.  Please let us know if it
happens again.

On Wed, Apr 8, 2009 at 1:51 PM, Jim  wrote:

>
> Yes.
>
> I am using the following version of ajdt and aspectj:
>
> Version: 1.5.3.200807141310
> AspectJ version: 1.6.1.2008070312
>
> Jim
>
> On Apr 8, 1:28 pm, Miguel Méndez  wrote:
> > Restarting a second time fixes it?
> >
> >
> >
> >
> >
> > On Wed, Apr 8, 2009 at 1:17 PM, Jim  wrote:
> >
> > > I am using Eclipse 3.3. I got this exception first time when I tried
> > > to run "web application" after I installed the plugin and restarted
> > > eclipse. However this exception goes away after I restarted my
> > > Eclipse.
> >
> > > Jim
> >
> > > On Apr 8, 1:03 pm, Miguel Méndez  wrote:
> > > > What version of eclipse are you using?  What version of ajdt?
> >
> > > > On Wed, Apr 8, 2009 at 11:41 AM, Jim  wrote:
> >
> > > > > I got the following exception:
> >
> > > > > Plug-in org.eclipse.ajdt.ui was unable to load class
> > > > >
> org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver.
> > > > > An error occurred while automatically activating bundle
> > > > > org.eclipse.ajdt.ui (33).
> >
> > > > > when I try to run "web application" from the project context menu
> > > > > after I create an web application based on the tutorial, I have
> ajdt
> > > > > installed in this box.
> >
> > > > > Jim Xie
> >
> > > > > On Apr 8, 9:43 am, Stan B  wrote:
> > > > > > Thank you, can't wait to dig in!
> >
> > > > > > Does the Google/GWT plugin for Eclipse create the service stubs
> > > (Async/
> > > > > > Sync/Impl classes) and modify the web.xml to add the servlet for
> you
> > > > > > like Cypal Studio?
> >
> > > > > > On Apr 7, 11:57 pm, Bruce Johnson  wrote:
> >
> > > > > > > Hi Folks!
> >
> > > > > > > Exciting news today. Rather than attempting to describe
> everything
> > > > > here, let
> > > > > > > me point you to some blog posts that hopefully you will find
> > > > > interesting:
> >
> > > > > > > GWT 1.6 and friends:
> > > > >
> http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f.
> > > ..
> >
> > > > > > > Seriously this time, the new language on App Engine:
> Javahttp://
> > > > > googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
> >
> > > > > > > Google Plugin for Eclipse -- Peanut Butter to Eclipse's
> > > > > Chocolatehttp://
> > > > > googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
> >
> > > > > > > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin
> > > teams-
> > > > > Hide quoted text -
> >
> > > > > > - Show quoted text -
> >
> > > > --
> > > > Miguel- Hide quoted text -
> >
> > > > - Show quoted text -
> >
> > --
> > Miguel- Hide quoted text -
> >
> > - Show quoted text -
> >
>


-- 
Miguel

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



Re: Reverse engineering

2009-04-08 Thread flyingb...@gmail.com

the source code is in the jar files. so in netbeans i can hit ctrl
+shift+b to go to the class it used

On Apr 8, 8:15 am, "fatjack1...@googlemail.com"
 wrote:
> Hi,
>
> Im wondering if there is an easy way to reverse engineer your code to
> produce class diagrams?
>
> Regards,
> Jack
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread flyingb...@gmail.com

I should go back in using eclipse for the project or osmething. I been
using netbeans with the gwt4nb but that havnt been updated to support
1.6

I dont really know how to write those config files to setup the new
debugger and stuff for netbeans

On Apr 8, 10:28 am, Miguel Méndez  wrote:
> Restarting a second time fixes it?
>
>
>
> On Wed, Apr 8, 2009 at 1:17 PM, Jim  wrote:
>
> > I am using Eclipse 3.3. I got this exception first time when I tried
> > to run "web application" after I installed the plugin and restarted
> > eclipse. However this exception goes away after I restarted my
> > Eclipse.
>
> > Jim
>
> > On Apr 8, 1:03 pm, Miguel Méndez  wrote:
> > > What version of eclipse are you using?  What version of ajdt?
>
> > > On Wed, Apr 8, 2009 at 11:41 AM, Jim  wrote:
>
> > > > I got the following exception:
>
> > > > Plug-in org.eclipse.ajdt.ui was unable to load class
> > > > org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver.
> > > > An error occurred while automatically activating bundle
> > > > org.eclipse.ajdt.ui (33).
>
> > > > when I try to run "web application" from the project context menu
> > > > after I create an web application based on the tutorial, I have ajdt
> > > > installed in this box.
>
> > > > Jim Xie
>
> > > > On Apr 8, 9:43 am, Stan B  wrote:
> > > > > Thank you, can't wait to dig in!
>
> > > > > Does the Google/GWT plugin for Eclipse create the service stubs
> > (Async/
> > > > > Sync/Impl classes) and modify the web.xml to add the servlet for you
> > > > > like Cypal Studio?
>
> > > > > On Apr 7, 11:57 pm, Bruce Johnson  wrote:
>
> > > > > > Hi Folks!
>
> > > > > > Exciting news today. Rather than attempting to describe everything
> > > > here, let
> > > > > > me point you to some blog posts that hopefully you will find
> > > > interesting:
>
> > > > > > GWT 1.6 and friends:
> > > >http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f.
> > ..
>
> > > > > > Seriously this time, the new language on App Engine: Javahttp://
> > > > googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> > > > > > Google Plugin for Eclipse -- Peanut Butter to Eclipse's
> > > > Chocolatehttp://
> > > > googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> > > > > > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin
> > teams-
> > > > Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > --
> > > Miguel- Hide quoted text -
>
> > > - Show quoted text -
>
> --
> Miguel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Jim

Yes.

I am using the following version of ajdt and aspectj:

Version: 1.5.3.200807141310
AspectJ version: 1.6.1.2008070312

Jim

On Apr 8, 1:28 pm, Miguel Méndez  wrote:
> Restarting a second time fixes it?
>
>
>
>
>
> On Wed, Apr 8, 2009 at 1:17 PM, Jim  wrote:
>
> > I am using Eclipse 3.3. I got this exception first time when I tried
> > to run "web application" after I installed the plugin and restarted
> > eclipse. However this exception goes away after I restarted my
> > Eclipse.
>
> > Jim
>
> > On Apr 8, 1:03 pm, Miguel Méndez  wrote:
> > > What version of eclipse are you using?  What version of ajdt?
>
> > > On Wed, Apr 8, 2009 at 11:41 AM, Jim  wrote:
>
> > > > I got the following exception:
>
> > > > Plug-in org.eclipse.ajdt.ui was unable to load class
> > > > org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver.
> > > > An error occurred while automatically activating bundle
> > > > org.eclipse.ajdt.ui (33).
>
> > > > when I try to run "web application" from the project context menu
> > > > after I create an web application based on the tutorial, I have ajdt
> > > > installed in this box.
>
> > > > Jim Xie
>
> > > > On Apr 8, 9:43 am, Stan B  wrote:
> > > > > Thank you, can't wait to dig in!
>
> > > > > Does the Google/GWT plugin for Eclipse create the service stubs
> > (Async/
> > > > > Sync/Impl classes) and modify the web.xml to add the servlet for you
> > > > > like Cypal Studio?
>
> > > > > On Apr 7, 11:57 pm, Bruce Johnson  wrote:
>
> > > > > > Hi Folks!
>
> > > > > > Exciting news today. Rather than attempting to describe everything
> > > > here, let
> > > > > > me point you to some blog posts that hopefully you will find
> > > > interesting:
>
> > > > > > GWT 1.6 and friends:
> > > >http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f.
> > ..
>
> > > > > > Seriously this time, the new language on App Engine: Javahttp://
> > > > googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> > > > > > Google Plugin for Eclipse -- Peanut Butter to Eclipse's
> > > > Chocolatehttp://
> > > > googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> > > > > > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin
> > teams-
> > > > Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > --
> > > Miguel- Hide quoted text -
>
> > > - Show quoted text -
>
> --
> Miguel- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Center Root Panel

2009-04-08 Thread Gonzalo Tirapegui Medina
Hi all:

how can i center the main panel into the page ... i've been reading that
this panel have an absolute position , in that case , should i get the
screen resolution and add some padding to the component?



thanks ... Gonzalo.

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



Re: Android Compatibility Isses with GWT (UI based, not RPC)

2009-04-08 Thread Jason Parekh

On Wed, Apr 8, 2009 at 12:22 PM, Evan Ruff  wrote:
>
> Hey guys,
>
> Little stream of conciseness here, sorry if this is a bit long/
> disjoined.
>
> I was wondering if anyone had done any work with GWT and the Android
> Browser. While I'm getting basic functionality to work, the general
> speed, responsiveness and user experience seem very sluggish and,
> well, sorta bad. Another issue I'm having is locating a group to go to
> for support, examples and help. While I'm interested in GWT with
> Android, it seems that Android Developers Group is really only
> interested in native apps. Where to go for Browser specific help?

I recommend the Android lists--some members of the Android browser
team monitor those lists (I don't think any of them monitor this
list).  Also, filing bugs on the tracker is always recommended.

As for trying out cupcake, you can build an emulator running Cupcake
with the instructions at http://source.android.com/download .

jason

>
> Anyways, some of the particulars I've run into:
>
> What group to go to?
>
> 1. Issues Controlling the viewport: No matter what I do, I can't seem
> to get proper control of the viewport. Editing the meta data, overflow
> CSS properties, insuring that the window's objects are small, etc. I'm
> continually getting white space borders and stuff like that. This
> causes weird finger behavior, especially allowing the user to browse
> into the white space.
>
> 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an
> implementation to support HTML5 storage/cache issues in case of a non-
> gears enabled client. If not, is there a library anywhere that
> supports the encapsulation for GWT?
>
> 3. MouseListeners: The OS seems to swallow up the MouseUp event in
> order to do detection of scroll/drag type stuff. I guess I understand
> why it does it for the drag type thing, but it never fires MouseUp
> even after the drag is done. Ehh... fair enough, I guess.
>
> 4. Focus Panel ClickListeners: When I click a focus panel, a orange
> circle shows up in the upper/left corner with what seems like a cursor
> in it? (http://i243.photobucket.com/albums/ff2/gte619n/
> selectBubble.png) Also seems like a non-trivial delay between the
> press and then a following action. Makes the app seem especially
> sluggish.
>
> 5. Image Loading/Display: Seems really slow. Even when doing
> background repositioning to flip sprites. Additionally, the images
> don't seem to load in any fixed order and method. Also seems to hang
> when loading images (http://i243.photobucket.com/albums/ff2/gte619n/
> selectBubble.png) I've attempted to get around this by doing Prefetch
> and such, but nothing seems to work. Seems like it needs to talk
> itself into refreshing the screen after loading finishes (even in
> localhost in the emulator)
>
> 6. Visibility hide/show: Very sluggish in general.
>
> 7. Scroll inside divs: Flat out doesn't support this. I guess the
> Cupcake release, bringing the browser up to Nov 2008 Webkit, should
> fix this but I still don't have any visibility into that release.
>
> Has anyone compiled some best practices to use when building an
> Application for Android? Maybe even some widgets or JSNI breakouts to
> better manage the behavior and performance of the app?
>
> Thanks!
>
> Evan
> >
>

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



Error installing google plugin for eclipse

2009-04-08 Thread joedayz

I installed in Spring tool suite 2.0 the plugin.
I work in ubuntu (linux).

For I got it error:

Invocation of com.google.gwt.user.tools.WebAppCreator failed.

If someone can help with it.

Please,

Joe

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



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Miguel Méndez
Restarting a second time fixes it?

On Wed, Apr 8, 2009 at 1:17 PM, Jim  wrote:

>
> I am using Eclipse 3.3. I got this exception first time when I tried
> to run "web application" after I installed the plugin and restarted
> eclipse. However this exception goes away after I restarted my
> Eclipse.
>
>
> Jim
>
> On Apr 8, 1:03 pm, Miguel Méndez  wrote:
> > What version of eclipse are you using?  What version of ajdt?
> >
> >
> >
> >
> >
> > On Wed, Apr 8, 2009 at 11:41 AM, Jim  wrote:
> >
> > > I got the following exception:
> >
> > > Plug-in org.eclipse.ajdt.ui was unable to load class
> > > org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver.
> > > An error occurred while automatically activating bundle
> > > org.eclipse.ajdt.ui (33).
> >
> > > when I try to run "web application" from the project context menu
> > > after I create an web application based on the tutorial, I have ajdt
> > > installed in this box.
> >
> > > Jim Xie
> >
> > > On Apr 8, 9:43 am, Stan B  wrote:
> > > > Thank you, can't wait to dig in!
> >
> > > > Does the Google/GWT plugin for Eclipse create the service stubs
> (Async/
> > > > Sync/Impl classes) and modify the web.xml to add the servlet for you
> > > > like Cypal Studio?
> >
> > > > On Apr 7, 11:57 pm, Bruce Johnson  wrote:
> >
> > > > > Hi Folks!
> >
> > > > > Exciting news today. Rather than attempting to describe everything
> > > here, let
> > > > > me point you to some blog posts that hopefully you will find
> > > interesting:
> >
> > > > > GWT 1.6 and friends:
> > >http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f.
> ..
> >
> > > > > Seriously this time, the new language on App Engine: Javahttp://
> > > googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
> >
> > > > > Google Plugin for Eclipse -- Peanut Butter to Eclipse's
> > > Chocolatehttp://
> > > googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
> >
> > > > > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin
> teams-
> > > Hide quoted text -
> >
> > > > - Show quoted text -
> >
> > --
> > Miguel- Hide quoted text -
> >
> > - Show quoted text -
> >
>


-- 
Miguel

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



"Content-Type must be 'text/plain' with 'charset=utf-8'" Error, But not an upgrade issue

2009-04-08 Thread Rasit OZDAS

Hi,

I've sent this post to a thread via googlegroups page, but it doesn't
exist in my "sent mails" folder and also in that page. So I had to
post here once more.

I'm getting the error in the title. I searched previous threads, all
saying that it's a 1.4 -> 1.5 issue.
But I actually never used 1.4. I started using GWT with version 1.5.3.

Any comments?

-- 
M. Raşit ÖZDAŞ

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



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Jim

I am using Eclipse 3.3. I got this exception first time when I tried
to run "web application" after I installed the plugin and restarted
eclipse. However this exception goes away after I restarted my
Eclipse.


Jim

On Apr 8, 1:03 pm, Miguel Méndez  wrote:
> What version of eclipse are you using?  What version of ajdt?
>
>
>
>
>
> On Wed, Apr 8, 2009 at 11:41 AM, Jim  wrote:
>
> > I got the following exception:
>
> > Plug-in org.eclipse.ajdt.ui was unable to load class
> > org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver.
> > An error occurred while automatically activating bundle
> > org.eclipse.ajdt.ui (33).
>
> > when I try to run "web application" from the project context menu
> > after I create an web application based on the tutorial, I have ajdt
> > installed in this box.
>
> > Jim Xie
>
> > On Apr 8, 9:43 am, Stan B  wrote:
> > > Thank you, can't wait to dig in!
>
> > > Does the Google/GWT plugin for Eclipse create the service stubs (Async/
> > > Sync/Impl classes) and modify the web.xml to add the servlet for you
> > > like Cypal Studio?
>
> > > On Apr 7, 11:57 pm, Bruce Johnson  wrote:
>
> > > > Hi Folks!
>
> > > > Exciting news today. Rather than attempting to describe everything
> > here, let
> > > > me point you to some blog posts that hopefully you will find
> > interesting:
>
> > > > GWT 1.6 and friends:
> >http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
>
> > > > Seriously this time, the new language on App Engine: Javahttp://
> > googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> > > > Google Plugin for Eclipse -- Peanut Butter to Eclipse's
> > Chocolatehttp://
> > googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> > > > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams-
> > Hide quoted text -
>
> > > - Show quoted text -
>
> --
> Miguel- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Miguel Méndez
What version of eclipse are you using?  What version of ajdt?

On Wed, Apr 8, 2009 at 11:41 AM, Jim  wrote:

>
> I got the following exception:
>
> Plug-in org.eclipse.ajdt.ui was unable to load class
> org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver.
> An error occurred while automatically activating bundle
> org.eclipse.ajdt.ui (33).
>
>
> when I try to run "web application" from the project context menu
> after I create an web application based on the tutorial, I have ajdt
> installed in this box.
>
> Jim Xie
>
> On Apr 8, 9:43 am, Stan B  wrote:
> > Thank you, can't wait to dig in!
> >
> > Does the Google/GWT plugin for Eclipse create the service stubs (Async/
> > Sync/Impl classes) and modify the web.xml to add the servlet for you
> > like Cypal Studio?
> >
> > On Apr 7, 11:57 pm, Bruce Johnson  wrote:
> >
> >
> >
> > > Hi Folks!
> >
> > > Exciting news today. Rather than attempting to describe everything
> here, let
> > > me point you to some blog posts that hopefully you will find
> interesting:
> >
> > > GWT 1.6 and friends:
> http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
> >
> > > Seriously this time, the new language on App Engine: Javahttp://
> googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
> >
> > > Google Plugin for Eclipse -- Peanut Butter to Eclipse's
> Chocolatehttp://
> googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
> >
> > > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams-
> Hide quoted text -
> >
> > - Show quoted text -
> >
>


-- 
Miguel

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



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Miguel Méndez
On Wed, Apr 8, 2009 at 9:43 AM, Stan B  wrote:

>
> Thank you, can't wait to dig in!
>
> Does the Google/GWT plugin for Eclipse create the service stubs (Async/
> Sync/Impl classes) and modify the web.xml to add the servlet for you
> like Cypal Studio?
>

We did not include that feature in this release, but we are considering it.


>
> On Apr 7, 11:57 pm, Bruce Johnson  wrote:
> > Hi Folks!
> >
> > Exciting news today. Rather than attempting to describe everything here,
> let
> > me point you to some blog posts that hopefully you will find interesting:
> >
> > GWT 1.6 and friends:
> http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
> >
> > Seriously this time, the new language on App Engine: Javahttp://
> googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
> >
> > Google Plugin for Eclipse -- Peanut Butter to Eclipse's Chocolatehttp://
> googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
> >
> > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams
>
> >
>


-- 
Miguel

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



Re: Trying to use server in another module

2009-04-08 Thread Ivan M

Sorry, too fast. I made it work including "x.gwtlogin" in "x.dt" as a
module with no entry point. I didn't need to copy the server classes,
so I have a single server as I wanted.

On 8 abr, 17:28, Ivan M  wrote:
> Hello all,
> I'm facing my first GWT development. I had the idea of developing a
> project with a module which I have called "x.gwtlogin". The server of
> this module can perform queries on a LDAP server. My idea is to have
> an instance of this module running in the application server and use
> its server from any other GWT application I develop.
> Let's say one of these applications is "x.dt". I have copied all
> "x.gwtlogin.client" classes that implement the server's interfance in
> this application, so now I have two client packages in the project:
>
> x.dt.client
> x.gwtlogin.client
>
> The problem is that when debugging in hosted mode wherever I try to
> use a "x.gwtlogin.client.Class" in a "x.dt.client.Class", I get the
> following error:
>
> [ERROR] Line 20: No source code is available for type
> x.gwtlogin.client.Class; did you forget to inherit a required module?
>
> I suppose the problem is that GWT is not compiling and including the
> classes in "x.gwtlogin.client" when building "x.dt.client". What can I
> do?. Is what I intend to do possible at all?.
>
> Thank you,
> Ivan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.5.3 upgrade problem with RPC

2009-04-08 Thread M. Rasit Ozdas

Hi,

I never used GWT 1.4. I started from GWT 1.5.3 directly.
But I get the same exception.
What would be the cause for that? Do you know anything about this?

On Mar 14, 11:05 am, 唐振坤  wrote:
> In the GWT docs, you need to change the Content-Type from "text/plain" to
> "text/x-gwt-rpc", and update your server with GWT 1.5 gwt-servlet.jar. It
> may be caused by still using the gwt-servlet.jar of GWT Version 1.4.
>
>  In GWT 1.5, the RPC content type was switched from "text/plain" to
> "text/x-gwt-rpc".
>
> If you receive this exception, then your server is still using a GWT 1.4
> gwt-servlet.jar.
>
> On Sat, Mar 14, 2009 at 3:00 PM, Ganesh  wrote:
>
> > Hi,
> > I have a small problem when I upgraded to 1.5.3(from 1.0.21) with RPC
>
> > Exception while dispatching incoming RPC call
> > javax.servlet.ServletException: Content-Type must be 'text/plain' with
> > 'charset=
> > utf-8' (or unspecified charset)
> >        at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.readPayloadAsUtf8
> > (RemoteServiceServlet.java:507)
>
> > I googled(http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/
> > FAQ_RPCContentTypeTextPlain ).. and made changes to shell/complile and
> > my server-side class path(the impl class). I use Geronimo
>
> > I am not able to get rid of the above exception... could someone help
> > me...

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



Re: Eclipse Plugin Compile Button & Stack Overflow

2009-04-08 Thread Miguel Méndez
On Wed, Apr 8, 2009 at 11:11 AM, Brian  wrote:

>
> Just installed the Google plugin for Eclipse, and hit the Compile
> button on my project.  It gave me a stack overflow error.
> Prior to using the plugin, I'd compile by hitting the Compile button
> in the hosted mode browser.  In the Run/Debug Eclipse configuration, I
> have -Xss4k & -Xmx256M
> Compiles worked fine with those flags and the Compile button from
> hosted mode.
>
> How do I set the Xss flag for use by the Compile button in the eclipse
> toolbar?  I tried putting it in the Advanced section, but this just
> informed me it wasn't an appropriate gwt compiler option.
>

The advanced section just passes the arguments to the GWT compiler.  There
is no way to bump those up right now.  We'll need to include this in the
next update of the plugin (still no timeframe on that).


>
> This isn't stopping me from doing anything, as I can still compile
> from hosted mode, just curious how to set it up.  I checked the plugin
> faq, but couldn't find anything there.
> >
>


-- 
Miguel

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



Android Compatibility Isses with GWT (UI based, not RPC)

2009-04-08 Thread Evan Ruff

Hey guys,

Little stream of conciseness here, sorry if this is a bit long/
disjoined.

I was wondering if anyone had done any work with GWT and the Android
Browser. While I'm getting basic functionality to work, the general
speed, responsiveness and user experience seem very sluggish and,
well, sorta bad. Another issue I'm having is locating a group to go to
for support, examples and help. While I'm interested in GWT with
Android, it seems that Android Developers Group is really only
interested in native apps. Where to go for Browser specific help?

Anyways, some of the particulars I've run into:

What group to go to?

1. Issues Controlling the viewport: No matter what I do, I can't seem
to get proper control of the viewport. Editing the meta data, overflow
CSS properties, insuring that the window's objects are small, etc. I'm
continually getting white space borders and stuff like that. This
causes weird finger behavior, especially allowing the user to browse
into the white space.

2. HTML5/Gears Wrappers: I was wondering if the Gears API has an
implementation to support HTML5 storage/cache issues in case of a non-
gears enabled client. If not, is there a library anywhere that
supports the encapsulation for GWT?

3. MouseListeners: The OS seems to swallow up the MouseUp event in
order to do detection of scroll/drag type stuff. I guess I understand
why it does it for the drag type thing, but it never fires MouseUp
even after the drag is done. Ehh... fair enough, I guess.

4. Focus Panel ClickListeners: When I click a focus panel, a orange
circle shows up in the upper/left corner with what seems like a cursor
in it? (http://i243.photobucket.com/albums/ff2/gte619n/
selectBubble.png) Also seems like a non-trivial delay between the
press and then a following action. Makes the app seem especially
sluggish.

5. Image Loading/Display: Seems really slow. Even when doing
background repositioning to flip sprites. Additionally, the images
don't seem to load in any fixed order and method. Also seems to hang
when loading images (http://i243.photobucket.com/albums/ff2/gte619n/
selectBubble.png) I've attempted to get around this by doing Prefetch
and such, but nothing seems to work. Seems like it needs to talk
itself into refreshing the screen after loading finishes (even in
localhost in the emulator)

6. Visibility hide/show: Very sluggish in general.

7. Scroll inside divs: Flat out doesn't support this. I guess the
Cupcake release, bringing the browser up to Nov 2008 Webkit, should
fix this but I still don't have any visibility into that release.

Has anyone compiled some best practices to use when building an
Application for Android? Maybe even some widgets or JSNI breakouts to
better manage the behavior and performance of the app?

Thanks!

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



Re: Deploying GWT applications on OSGi Equinox

2009-04-08 Thread gcr

Ian,

Have seen the article "Embedding an HTTP server in Equinox"?

If not give it a read and we can continue.  It explains how to do
without war file.

http://www.eclipse.org/equinox/server/http_in_equinox.php

On Apr 8, 2:41 am, lan  wrote:
> Yes I'm absolutely interested.
> I don't understand how you don't use a war file.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo

Yes, i did created an object class "Forum" at client side, and i've
just confirmed that the array from server side is null.

I've found out the problem with result set is we can do execute
queries one after another...so i changed the order of my result set
codes, that solves the problem.

Anyway, thanks a million for helping me through that database
connection and RPC declaring problem, i really appreciate that :D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE doesnt show my progress bar when the data loads in to my Grid

2009-04-08 Thread Thomas Broyer



On 8 avr, 07:22, Suren  wrote:
> Hi All,
>
> I am loading 100x100 values into the cells of a Grid from the DB. Its
> taking some time to show the Grid in IE.
>
> So thought of showing a progress bar during that time instead of
> showing blank page to the user.
>
> So I am trying to display a progressbar.gif image during the data
> load.
>
> But the problem here is that, still the progressbar is not shown. Its
> showing hourglass mouse cursor in the IE and showing nothing and looks
> like the loading page.
>
> what I am doing wrong here? do I need to have a seperate thread to
> show the image??
>
> Or instead of this approach, I expect if anything else is better way
> of doing it from the group.

IncrementalCommand is your new friend! ;-)

In a few words: split your data loading algorithm and load "segments"
at a time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Provide support for NavigableMap/NavigableSet implementation?

2009-04-08 Thread Mark Renouf

Hi, I was wondering if anyone has tried adding NavigableMap/
NavigableSet (From JDK 1.6), support for use in GWT?

Using the JRE emulation mechanism (super-source), it should be
possible to add the required interfaces then update GWT's TreeMap, to
implement NavigableMap. I've gotten part-way through this with a
SkipList but implementing all of the extra methods to return sub-views
is too much work. I realized it might be simpler to just extend
Google's version of TreeMap to add the Navigable code.

Any thoughts? I searched a bit, but nothing yet.

My main use case is finding a point in a sorted set, then efficiently
iterating in either direction. I've cooked up my own SkipListMap
implementation but I feel like I'm reinventing the wheel if I create
my own navigable interface, but the NavigableMap dictates a lot of
functionality I don't have time to implement myself either.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Connecting to database with eclipse

2009-04-08 Thread eggsy

Can you confirm (server side) that the array of objects isn't null?

If so this sounds like GWT might not be able to handle objects of type
Forum.

GWT can only handle objects declared under the client side packages
and wont be able to handle any database POJO object declared at server
level.

For some more background info:

http://www.dotnetguru2.org/bmarchesson/index.php?p=786&more=1&c=1&tb=1&pb=1

You'll need to create some form of client side DTO object
alternatively if you can move over to using Hibernate you can use a
package called Hibernate4GWT

I've also compiled a tutorial on this at:

http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-toolkit.html

That is part two of the tutorial with my DTO objects.



On Apr 8, 4:38 pm, Cryssyenddo  wrote:
> I solved the problem...I made a typo error at my impl class.
> I've made the corrections and it works now.
>
> I'm wondering, how should i call a service properly? In this piece of
> code below, i'm trying to get an array Forum object which the data i
> retrieved form my database and then i intend topopulate my panel with
> the buttons with each representing a forum.
>
> I've double checked that my database wasn't empty. But I kept hitting
> a null exception. So i'm wondering did i call the services the right
> way. Here are the two methods i used; first for calling the RPC to get
> all the forum records and the second method to populate the panel with
> forum buttons:
>
>  /**
>      * Method to retrieve list of forums from server
>      */
>     protected void getForums() {
>         if(services == null){
>                 services = (DiscussionBoardServiceAsync)GWT.create
> (DiscussionBoardService.class);
>         }
>
>         ServiceDefTarget serviceURL = (ServiceDefTarget) services;
>         String address = GWT.getModuleBaseURL()
> +"DiscussionBoardServices";
>         serviceURL.setServiceEntryPoint(address);
>
>         AsyncCallback callback = new AsyncCallback()
> {
>                         public void onFailure(Throwable caught) {
>                                 String details = caught.getMessage();
>                                 Window.alert(details);
>                         }
>                         public void onSuccess(Forum[] result) {
>                                 buildMainPage(result);
>                         }
>         };
>
>         services.getForums(user.getUserClass(), callback);
>     }
>
>     /**
>      * Method to build and display main page display contents
>      * @param receivedForumList
>      */
>     private void buildMainPage(Forum[] receivedForumList){
>         // Initialise all components
>         discussionBoardTitle = new Label("v-Care Discussion Board
> Title");
>         main_Panel = new VerticalPanel();
>         main_Selection = new HorizontalPanel();
>         forumList = new Forum[receivedForumList.length];
>         forumButtons = new Button[receivedForumList.length];
>
>         pageFlag = PAGE_MAIN;
>
>         forumButtonListsner = new ForumButtonListener();
>
>         main_Panel.setCellHorizontalAlignment(discussionBoardTitle,
> HasHorizontalAlignment.ALIGN_CENTER);
>
>         for(int i =0; i                 forumButtons[i] = new Button(receivedForumList[i].getForumName
> ());
>                 forumButtons[i].addClickListener(forumButtonListsner);
>                 forumButtons[i].setStyleName("forumButton");
>                 forumList[i] = receivedForumList[i];
>
>                 main_Selection.add(forumButtons[i]);
>         }
>
>         // If user is admin then insert admin options
>         if (userClass <= 2) {
>             // Create admin buttons
>             admin_AddForumButton = new Button("Add Forum");
>
>             // Add button listeners
>             admin_AddForumButton.addClickListener(this);
>
>             // Add admin options
>             main_Panel.insert(main_AdminOptions, 1);
>         }
>
>         RootPanel.get().clear();
>         RootPanel.get().add(main_Panel);
>     }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: CSS Style for single tabs of a TabBar

2009-04-08 Thread -Lord-67

Hi,

i didn't find out how to do it with DOM and i won't try any more
(thanks for this hint). Instead i was able to change the single tabs
due to setting the HTML as you told, but i wasn't able to set a CSS
style

The first solution sounds a bit like quick and dirty. I think i will
try the second one which sounds good to me. Pretty sophisticated work.
Thanks!

Greetings,
-Lord-67

On Apr 8, 3:13 pm, Ian Bambury  wrote:
> Hi,
> Don't use the DOM - Google might change the structure, that's what would
> break it.
>
> There are two possibilities:
>
> 1)
>
> Add HTML as the tab title
> When the enabled/disabled change happens, get it back and change the style
> class in the html string you get back and replace it (a simple replaceAll()
> would do).
>
> 2)
>
> Add a Label widget as the tab title
> Also add that label to an ArrayList (because there is no way to get it back
> from the tab, so you have to do it this way)
> When the enabled/disabled change happens, get the label from the ArrayList
> and do a setStyle() on it.
>
> The first way is kludgier, but simpler :-)
>
> Ian
>
> http://examples.roughian.com
>
> 2009/4/8 -Lord-67 <-lord...@web.de>
>
>
>
> > @Ian Bambury: Thanks, i will try it with DOM or else if that doesn't
> > work the second way with html, just not sure if i will be able to do
> > that on my own since i am not that experienced :-). DOM should be
> > possible because the tabs don't change, i just want some of them to be
> > disabled at a certain point and enabled later on ...
>
> > @alan m: No problem, i was just confused about your post, i am
> > thankful for every help i can get ;-). As Ian said it's not the whole
> > TabBar i want to access (set style to 'disabled'), it's a single tab.
> > I already managed to disable them (see other thread i cited in my
> > first post) but i am not able to change the style of those disabled
> > tabs.
>
> > Thanks guys for the help, i will let you know wheater i was successful
> > or not!
>
> > Greetings,
> > -Lord-67
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Jim

I got the following exception:

Plug-in org.eclipse.ajdt.ui was unable to load class
org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver.
An error occurred while automatically activating bundle
org.eclipse.ajdt.ui (33).


when I try to run "web application" from the project context menu
after I create an web application based on the tutorial, I have ajdt
installed in this box.

Jim Xie

On Apr 8, 9:43 am, Stan B  wrote:
> Thank you, can't wait to dig in!
>
> Does the Google/GWT plugin for Eclipse create the service stubs (Async/
> Sync/Impl classes) and modify the web.xml to add the servlet for you
> like Cypal Studio?
>
> On Apr 7, 11:57 pm, Bruce Johnson  wrote:
>
>
>
> > Hi Folks!
>
> > Exciting news today. Rather than attempting to describe everything here, let
> > me point you to some blog posts that hopefully you will find interesting:
>
> > GWT 1.6 and 
> > friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
>
> > Seriously this time, the new language on App Engine: 
> > Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> > Google Plugin for Eclipse -- Peanut Butter to Eclipse's 
> > Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams- Hide 
> > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo

I solved the problem...I made a typo error at my impl class.
I've made the corrections and it works now.

I'm wondering, how should i call a service properly? In this piece of
code below, i'm trying to get an array Forum object which the data i
retrieved form my database and then i intend topopulate my panel with
the buttons with each representing a forum.

I've double checked that my database wasn't empty. But I kept hitting
a null exception. So i'm wondering did i call the services the right
way. Here are the two methods i used; first for calling the RPC to get
all the forum records and the second method to populate the panel with
forum buttons:



 /**
 * Method to retrieve list of forums from server
 */
protected void getForums() {
if(services == null){
services = (DiscussionBoardServiceAsync)GWT.create
(DiscussionBoardService.class);
}

ServiceDefTarget serviceURL = (ServiceDefTarget) services;
String address = GWT.getModuleBaseURL()
+"DiscussionBoardServices";
serviceURL.setServiceEntryPoint(address);

AsyncCallback callback = new AsyncCallback()
{
public void onFailure(Throwable caught) {
String details = caught.getMessage();
Window.alert(details);
}
public void onSuccess(Forum[] result) {
buildMainPage(result);
}
};

services.getForums(user.getUserClass(), callback);
}

/**
 * Method to build and display main page display contents
 * @param receivedForumList
 */
private void buildMainPage(Forum[] receivedForumList){
// Initialise all components
discussionBoardTitle = new Label("v-Care Discussion Board
Title");
main_Panel = new VerticalPanel();
main_Selection = new HorizontalPanel();
forumList = new Forum[receivedForumList.length];
forumButtons = new Button[receivedForumList.length];

pageFlag = PAGE_MAIN;

forumButtonListsner = new ForumButtonListener();

main_Panel.setCellHorizontalAlignment(discussionBoardTitle,
HasHorizontalAlignment.ALIGN_CENTER);

for(int i =0; ihttp://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6: Where to save hibernate.cfg.xml and logback.xml?

2009-04-08 Thread hezjing
Thanks Toni.
I thought these configuration files has been taken into consideration in the
standard GWT 1.6 project directories.


On Wed, Apr 8, 2009 at 12:56 AM, Tony Strauss <
tony.stra...@designingpatterns.com> wrote:

>
> You might want to keep a version controlled src\conf directory that is
> separate from your build targets; before you build (or run hosted
> mode), you copy the source files into the build target directory (war
> \WEB-INF\classes in this case).
>
> I generally keep all of my build targets completely separate from my
> version-controlled source targets because:
> 1.) Cleaning is very simple and safe (just blow away the target
> directory).
> 2.) It's easy to tell the version control system what is and what is
> not meant to be version controlled (svn:ignore).
> 3.) This system can accommodate multiple build types if necessary (if,
> for instance, you have any platform-specific code).
>
> Tony
> ---
> Tony Strauss
> Designing Patterns, LLC
> http://www.designingpatterns.com
> http://blogs.designingpatterns.com
>
> On Apr 7, 9:40 am, hezjing  wrote:
> > Hi
> > With GWT 1.6, where do we save the hibernate.cfg.xml and logback.xml?
> > I normally save these files in war\WEB-INF\classes, but the generated
> Ant's
> > clean task will delete the classes directory.
> >
> > Where should we keep the configuration files without modifying the Ant's
> > clean task?
> >
> > --
> >
> > Hez
> >
>


-- 

Hez

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



Re: Can't compile with new 1.6 project

2009-04-08 Thread robbyb67

I have this problem too !
I am trying the Java-SDK for AppEngine which contains GWT 1.6.4.

On 8 Apr., 11:32, jeremyprioux  wrote:
> Hello,
>
> I was using 1.5 and Eclipse for my project and it worked fine (with
> some home made compiled script).
>
> As I wanted to upgrade to the last version, I installed the new
> Eclipse gwt plugin and created a new project.
>
> I think I succeed to import my 5 or 6 modules of my old project, as
> they are recognized while I want to use the "compile" tool from the
> gwt eclipse plugin.
>
> But... I can't compile, I've got an error with the very first module,
> something like :
> Compiling module fr..client.accueil
>    Computing all possible rebind results for
> 'fr..client.site.tab.accueil.HomeTabEntryPoint'
>       Rebinding fr..client.site.tab.accueil.HomeTabEntryPoint
>          Checking rule  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
>             [ERROR] Unable to find type
> 'fr..client.site.tab.accueil.HomeTabEntryPoint'
>                [ERROR] Hint: Previous compiler errors may have made
> this type unavailable
>                [ERROR] Hint: Check the inheritance chain from your
> module; it may not be inheriting a required module or a module may not
> be adding its source path entries properly
>
> I only inherit the com.google.gwt.user.User module, I verified that
> 'fr..client.site.tab.accueil.HomeTabEntryPoint' is right too (and
> in the directory src, which is the source folder), and gwt-user and
> gwt-dev are part of my librairies in my build path.
>
> I must have forgot something so thank you for helping me !

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



Re: How to create CSS style for disabled buttons

2009-04-08 Thread Ferdi

I have the same problem with textboxes: it does not work on IE6,
selectors are not supported. You need to define a specific class for
that style (disabled) and add that style to your component when it is
disabled. I am currently looking for a better way to do that.
One solution would consist to extend the component and manage a
"disabled" dependent style by overriding the setEnabled function.

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



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Stan B

Thank you, can't wait to dig in!

Does the Google/GWT plugin for Eclipse create the service stubs (Async/
Sync/Impl classes) and modify the web.xml to add the servlet for you
like Cypal Studio?

On Apr 7, 11:57 pm, Bruce Johnson  wrote:
> Hi Folks!
>
> Exciting news today. Rather than attempting to describe everything here, let
> me point you to some blog posts that hopefully you will find interesting:
>
> GWT 1.6 and 
> friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
>
> Seriously this time, the new language on App Engine: 
> Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> Google Plugin for Eclipse -- Peanut Butter to Eclipse's 
> Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams

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



Trying to use server in another module

2009-04-08 Thread Ivan M

Hello all,
I'm facing my first GWT development. I had the idea of developing a
project with a module which I have called "x.gwtlogin". The server of
this module can perform queries on a LDAP server. My idea is to have
an instance of this module running in the application server and use
its server from any other GWT application I develop.
Let's say one of these applications is "x.dt". I have copied all
"x.gwtlogin.client" classes that implement the server's interfance in
this application, so now I have two client packages in the project:

x.dt.client
x.gwtlogin.client

The problem is that when debugging in hosted mode wherever I try to
use a "x.gwtlogin.client.Class" in a "x.dt.client.Class", I get the
following error:

[ERROR] Line 20: No source code is available for type
x.gwtlogin.client.Class; did you forget to inherit a required module?

I suppose the problem is that GWT is not compiling and including the
classes in "x.gwtlogin.client" when building "x.dt.client". What can I
do?. Is what I intend to do possible at all?.

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



Re: debug freeze

2009-04-08 Thread Seven Reeds

Correct, the hosted mode log showed the "creation" of various widgets
but there was no "null pointer" messages.  I had sprinkled
"Window.alert()" messages all over the place to narrow down the issue
and eventually found the line.  Starring at the line made no sense
because it was a rational statement... except that I had not
initialized the object.  On a whim I stuck a try/catch block around
the line and it shouted out that the object was null.

go figure.

On Wed, Apr 8, 2009 at 4:08 AM, Vitali Lovich  wrote:
> And the hosted mode log didn't print any exceptions?  Weird.

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



Reverse engineering

2009-04-08 Thread fatjack1...@googlemail.com

Hi,

Im wondering if there is an easy way to reverse engineer your code to
produce class diagrams?

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



Eclipse Plugin Compile Button & Stack Overflow

2009-04-08 Thread Brian

Just installed the Google plugin for Eclipse, and hit the Compile
button on my project.  It gave me a stack overflow error.
Prior to using the plugin, I'd compile by hitting the Compile button
in the hosted mode browser.  In the Run/Debug Eclipse configuration, I
have -Xss4k & -Xmx256M
Compiles worked fine with those flags and the Compile button from
hosted mode.

How do I set the Xss flag for use by the Compile button in the eclipse
toolbar?  I tried putting it in the Advanced section, but this just
informed me it wasn't an appropriate gwt compiler option.

This isn't stopping me from doing anything, as I can still compile
from hosted mode, just curious how to set it up.  I checked the plugin
faq, but couldn't find anything there.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo

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



Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo

I've made the modifications to my codes, and yet the same error still
pop out...here's the modifications i've done:


package vCarePortal.client;

import java.sql.Date;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("DiscussionBoardServices")
public interface DiscussionBoardService extends RemoteService {

public Forum[] getForums(int forumAccessLevel);

public Topic[] getTopics(int forumID, int topicAccessLevel);

public Thread[] getThreads(int topicID, int threadAccessLevel);

public ThreadReply[] getDiscussionPosts(int threadID);

public Contributor getUser(String password, String userID);
--

As you suggested, I've seperated the sql queries from my impl class:


package vCarePortal.server;

import java.sql.Date;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import vCarePortal.client.Contributor;
import vCarePortal.client.DiscussionBoardService;
import vCarePortal.client.Topic;
import vCarePortal.client.Forum;
import vCarePortal.client.Thread;
import vCarePortal.client.ThreadReply;


public abstract class DiscusisonBoardServiceImpl extends
RemoteServiceServlet

implements DiscussionBoardService{


/**
 * Get information on all forums
 */
public Forum[] getForums(int forumAccessLevel) {

return QueryExecutor.getForums(forumAccessLevel);
}

/**
 * Get topics of selected forum
 */
public Topic[] getTopics(int forumID, int accessLevel){

return QueryExecutor.getTopics(forumID, accessLevel);
}

 
---
 Here's the connector class:



package vCarePortal.server;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class DatabaseConnector {

private static Statement stmt;
private static String url = "jdbc:mysql://cpcc-2009:3306/";
private static String db = "charityportal";
private static String driver = "com.mysql.jdbc.Driver";
private static String user = "root";
private static String password = "Abcd1234";
private static Connection connection;

public static Statement getConnection(){
try{

Class.forName(driver);
System.out.println("Driver loaded");

connection = DriverManager.getConnection(url
+db,user,password);
System.out.println("Database Connected");

stmt = connection.createStatement();
}
catch (Exception ex) {
ex.printStackTrace();
}
return stmt;
}

public static void closeConnection(){
try{
stmt.close();
connection.close();
}
catch(Exception e){
e.getMessage();
}

}
}
 

And then here's my gwt.xml file:



  
  

  


  
  

  
  

  
  






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



Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo

I've made the modifications to my codes, and yet the same error still
pop out...here's the modifications i've done:


package vCarePortal.client;

import java.sql.Date;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("DiscussionBoardServices")
public interface DiscussionBoardService extends RemoteService {

public Forum[] getForums(int forumAccessLevel);

public Topic[] getTopics(int forumID, int topicAccessLevel);

public Thread[] getThreads(int topicID, int threadAccessLevel);

public ThreadReply[] getDiscussionPosts(int threadID);

public Contributor getUser(String password, String userID);
--

As you suggested, I've seperated the sql queries from my impl class:


package vCarePortal.server;

import java.sql.Date;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import vCarePortal.client.Contributor;
import vCarePortal.client.DiscussionBoardService;
import vCarePortal.client.Topic;
import vCarePortal.client.Forum;
import vCarePortal.client.Thread;
import vCarePortal.client.ThreadReply;


public abstract class DiscusisonBoardServiceImpl extends
RemoteServiceServlet

implements DiscussionBoardService{


/**
 * Get information on all forums
 */
public Forum[] getForums(int forumAccessLevel) {

return QueryExecutor.getForums(forumAccessLevel);
}

/**
 * Get topics of selected forum
 */
public Topic[] getTopics(int forumID, int accessLevel){

return QueryExecutor.getTopics(forumID, accessLevel);
}

 
---
 Here's the connector class:



package vCarePortal.server;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class DatabaseConnector {

private static Statement stmt;
private static String url = "jdbc:mysql://cpcc-2009:3306/";
private static String db = "charityportal";
private static String driver = "com.mysql.jdbc.Driver";
private static String user = "root";
private static String password = "Abcd1234";
private static Connection connection;

public static Statement getConnection(){
try{

Class.forName(driver);
System.out.println("Driver loaded");

connection = DriverManager.getConnection(url
+db,user,password);
System.out.println("Database Connected");

stmt = connection.createStatement();
}
catch (Exception ex) {
ex.printStackTrace();
}
return stmt;
}

public static void closeConnection(){
try{
stmt.close();
connection.close();
}
catch(Exception e){
e.getMessage();
}

}
}
 

And then here's my gwt.xml file:



  
  

  


  
  

  
  

  
  






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



Re: Connecting to database with eclipse

2009-04-08 Thread eggsy

Next you need to have server side class something like this:

-
package com.company.server.gwt;
public class TeacherServiceImpl extends RemoteServiceServlet
implements TeacherService
{
   private static final long serialVersionUID = 1L;

public List getPupils(Integer teacherId)
{
List results = performYourServerSideAction();
return results;
}

}


---

Then in your GWT.xml file you need to link the server to the client
with servlet mappings like so:



Notice I use /teachers to map to my server side class.

Thats pretty much it. Your DB code that you have already shown us
should go on the server side either in your ServiceImpl class or
another server side bean (preferred)



On Apr 8, 3:36 pm, eggsy  wrote:
> Are you using GWT 1.4 or 1.5?
>
> If you are using 1.5 add the line:
>
> @RemoteServiceRelativePath("teachers")
>
> in the same place as where I have mine - replace teachers with
> whatever path you want for your servlet.
>
> next thing is how to call the servlet using RPC this should be done
> like so:
>
> TeacherServiceAsync teacherService = (TeacherServiceAsync) GWT.create
> (TeacherService.class);
>
> teacherService.getPupils(teacherId, new AsyncCallback>
> ()
> {
>
>     public void onFailure(Throwable caught)
>     {
>         // TODO Auto-generated method stub
>
>     }
>
>     public void onSuccess(List result)
>     {
>         // TODO         Do something with the result
>     }
>
>  });
>
> 
>
> You can see how my client side code matches up now - is this making
> sense so far and do you have something similar? This is how GWT RPC
> should be implemented client side.
>
> On Apr 8, 1:44 pm, Cryssyenddo  wrote:
>
> > package vCarePortal.client;
>
> > import java.sql.Date;
>
> > import com.google.gwt.user.client.rpc.RemoteService;
>
> > public interface DiscussionBoardService extends RemoteService {
>
> >         public Forum[] getForums(int forumAccessLevel);
>
> >         public Topic[] getTopics(int forumID, int topicAccessLevel);
>
> >         public Thread[] getThreads(int topicID, int threadAccessLevel);
>
> >         public ThreadReply[] getDiscussionPosts(int threadID);
>
> >         public Contributor getUser(String password, String userID);
>
> >         public int countThreads(int topicID);
>
> >         public int countThreadReplies(int threadID);
>
> >         public String[] getLatestThreadReply (int threadID);
>
> >         public String getImageURL (String imageID);
>
> >         public void createForum(String forumName, String forumDescription,
> > String userID, int accessLevel);
>
> >         public void modifyForum (int forumID, String forumName, String
> > forumDescription, int accessLevel);
>
> >         public void deteleForum (int forumID);
>
> >         public void createTopic (String topicTitle, String topicDescription,
> > int topicAccessLevel, String creatorID, int forumID);
>
> >         public void modifyTopic(int topicID, String topicName, String
> > topicDescription, int topicAccessLevel);
>
> >         public void deteleTopic (int topicID);
>
> >         public void addThread (String threadTitle, String threadDesc, int
> > threadAccessLevel, int threadCreatorID, int topicID);
>
> >         public void modifyThread(int threadID, String threadTilte, String
> > threadDescription, int threadAcessLevel);
>
> >         public void deleteThread(int threadID);
>
> >         public void addThreadReply(int threadID, int replierID, Date
> > replyTimestamp, String replyContent);
>
> >         public void modifyThreadReply(int threadReplyID, Date
> > modifyTimestamp, String replyContent);
>
> >         public void deleteThreadReply(int threadReplyID);
>
> > }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Connecting to database with eclipse

2009-04-08 Thread eggsy

Are you using GWT 1.4 or 1.5?

If you are using 1.5 add the line:

@RemoteServiceRelativePath("teachers")

in the same place as where I have mine - replace teachers with
whatever path you want for your servlet.

next thing is how to call the servlet using RPC this should be done
like so:

TeacherServiceAsync teacherService = (TeacherServiceAsync) GWT.create
(TeacherService.class);

teacherService.getPupils(teacherId, new AsyncCallback>
()
{

public void onFailure(Throwable caught)
{
// TODO Auto-generated method stub

}

public void onSuccess(List result)
{
// TODO Do something with the result
}

 });



You can see how my client side code matches up now - is this making
sense so far and do you have something similar? This is how GWT RPC
should be implemented client side.

On Apr 8, 1:44 pm, Cryssyenddo  wrote:
> package vCarePortal.client;
>
> import java.sql.Date;
>
> import com.google.gwt.user.client.rpc.RemoteService;
>
> public interface DiscussionBoardService extends RemoteService {
>
>         public Forum[] getForums(int forumAccessLevel);
>
>         public Topic[] getTopics(int forumID, int topicAccessLevel);
>
>         public Thread[] getThreads(int topicID, int threadAccessLevel);
>
>         public ThreadReply[] getDiscussionPosts(int threadID);
>
>         public Contributor getUser(String password, String userID);
>
>         public int countThreads(int topicID);
>
>         public int countThreadReplies(int threadID);
>
>         public String[] getLatestThreadReply (int threadID);
>
>         public String getImageURL (String imageID);
>
>         public void createForum(String forumName, String forumDescription,
> String userID, int accessLevel);
>
>         public void modifyForum (int forumID, String forumName, String
> forumDescription, int accessLevel);
>
>         public void deteleForum (int forumID);
>
>         public void createTopic (String topicTitle, String topicDescription,
> int topicAccessLevel, String creatorID, int forumID);
>
>         public void modifyTopic(int topicID, String topicName, String
> topicDescription, int topicAccessLevel);
>
>         public void deteleTopic (int topicID);
>
>         public void addThread (String threadTitle, String threadDesc, int
> threadAccessLevel, int threadCreatorID, int topicID);
>
>         public void modifyThread(int threadID, String threadTilte, String
> threadDescription, int threadAcessLevel);
>
>         public void deleteThread(int threadID);
>
>         public void addThreadReply(int threadID, int replierID, Date
> replyTimestamp, String replyContent);
>
>         public void modifyThreadReply(int threadReplyID, Date
> modifyTimestamp, String replyContent);
>
>         public void deleteThreadReply(int threadReplyID);
>
> }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and map viewer

2009-04-08 Thread Jason Essington

You have a couple of options ... If you are feeling ambitious, you  
could re-implement the viewer in pure GWT, or you could simply call  
into the viewer from GWT using JSNI.

http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface

-jason

On Apr 7, 2009, at 4:52 PM, toni wrote:

>
> Hello,
>
> I'm testing GWT for a future project that involves a maps server
> (mapguide open source). I'm thinking in GWT for the front end.
> Mapguide can be programmed with JSP for the backend but mapguide has a
> AJAX viewer and I'm not sure how to integrate the viewer and GWT.
>
> Does anyone try to do something like this?
>
> Thanks in advance.
>
> >


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



Re: Asynchronous communication from server to client

2009-04-08 Thread Lothar Kimmeringer

Vitali Lovich schrieb:
> Calls in GWT are always synchronously, independent of the way
> they are initiated. 
> 
> Actually, they are always asynchronous.

I meant asynchronous, I don't know why I wrote synchronous.

>  They are single threaded though
> if that's what you meant.

No, I simply wrote it wrong.


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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Proposal for a compiler optimization parameter allowing a cross-module communication scheme.

2009-04-08 Thread Vitali Lovich
Seems like your pattern is easily solved (I didn't look at your compiler
suggestion, so this isn't a comment about that).  Have your clients send a
timestamp in the RPC to the server.

The server then takes the highest timestamp & tells the client that it
doesn't need to listen to notifications & instead listen to some other
module.

Then for your central communication, you can use JSNI to transfer data
between modules, or, better yet, have 1 module that inherits the other
modules & can then provide them with a ServerEventsRouter to use.

On Wed, Apr 8, 2009 at 6:04 AM, Yann  wrote:

>
> ===
> Context information
> ===
>
> In order to handle server "push" events, I am using a pattern
> described and used in multiple places: a getEvents() RPC method waits
> for up to 30 seconds but returns as soon as an event is received.
>
> The issue is that this pattern eats a browser connection, so that if
> two GWT modules (loaded on a given page) do register to server events,
> the 2 allowed connections are wasted.
>
> Hence my desire to have a central events receiver/router in the
> browser and possibly several GWT modules listening to that router.
>
> ===
> In the router:
> ===
> public class ServerEventsRouter
> {
> 
>public static void addServerEventsListener( ServerEventListener
> listener )
>{
>// register the listener in a collection...
>}
> ...
>
>   private static native void createRegisteringFunction() /*-{
>$wnd.addServerEventsListener =
> @com.foo.gwt.ServerEventsRouter::addServerEventsListener(Lcom/foo/gwt/
> events/ServerEventListener;);
>}-*/;
>
> ...
>
> }
>
> The createRegisteringFunction() needs to be called first somehow...
>
> ===
> And then, in the client listener:
> ===
>
>private native void registerServerEventsListener
> ( ServerEventListener listener )/*-{
>$wnd.addServerEventsListener ( listener );
>}-*/;
>
> and
>
>   registerServerEventsListener( new ServerEventListener() {
>   public void onServerEvent( ServerEvent event ) {
>   GWT.log( "Received event", null );
>   });
>
>
> ===
> The Issue(s)
> ===
> However, as you might expect, this doesn't work. Well, it works for
> 'hello world' type of functions which not not require parameters...
> but the ServerEventListener parameter is not "marshalled" properly.
>
>
> A. In WEB mode
>
> The ServerEventListener interface is not implemented by any class in
> the router module, so that the dispatching function is optimized from:
>
>for ( ServerEvent event : events ) {
>for ( ServerEventListener listener : listeners ) {
>listener.onServerEvent( event );
>}
>}
>
>into something like:
>
>for (event$iterator = events.iterator(); event$iterator.hasNext
> ();) {
>dynamicCast(event$iterator.next_0(), 11);
>for (listener$iterator = $AbstractList$IteratorImpl(new
> AbstractList$IteratorImpl(), this$static.m_listeners); listener
> $iterator.i < listener$iterator.this$0.size_0();) {
>throwClassCastExceptionUnlessNull($next_1(listener
> $iterator));
>null.nullMethod();
>}
>}
>
>
> B. In HOSTED mode
>
> Presumably in order to match the behaviour of the WEB mode, the
> classes in the two modules are loaded from two different class
> loaders, so that the implementations of the ServerEventListener are
> not seen as such in the router module and any assignment generates a
> class cast exception.
>
>
> ===
> My proposal
> ===
>
> Instruct the compiler not to optimize out sub-classes of a specified
> type (here ServerEventListener), and have these classes loaded from a
> common upstream (i.e. "more global") class loader in Hosted Mode.
>
> >
>

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



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Brian

Nice.

On Apr 7, 11:57 pm, Bruce Johnson  wrote:
> Hi Folks!
>
> Exciting news today. Rather than attempting to describe everything here, let
> me point you to some blog posts that hopefully you will find interesting:
>
> GWT 1.6 and 
> friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
>
> Seriously this time, the new language on App Engine: 
> Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> Google Plugin for Eclipse -- Peanut Butter to Eclipse's 
> Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Asynchronous communication from server to client

2009-04-08 Thread petrus

Thanks for your advice! I'll try with comet.

On 8 Kwi, 13:08, Lothar Kimmeringer  wrote:
> petrus schrieb:
>
> > Is there a possibility in GWT to communicate asynchronously from
> > server to client?
>
> The term used in general for that is Server Push. A technique
> for that is called "Comet", so if you search "Comet GWT" with
> the search engine of your choice, you should come up with a
> couple of results.
>
> > The only solution which I've found is to use Timer as it's showed
> > therehttp://www.gwtapps.com/doc/html/com.google.gwt.user.client.Timer.html
> > , but then calls will be synchronous. What solution do you recommend?
>
> Calls in GWT are always synchronously, independent of the way
> they are initiated. But if you solve it using a Timer you should
> set a flag if a request is already in progress to make sure that
> only one requests happen at the same time.
>
> 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Asynchronous communication from server to client

2009-04-08 Thread Vitali Lovich
On Wed, Apr 8, 2009 at 7:08 AM, Lothar Kimmeringer wrote:

>
> petrus schrieb:
>
> > Is there a possibility in GWT to communicate asynchronously from
> > server to client?
>
> The term used in general for that is Server Push. A technique
> for that is called "Comet", so if you search "Comet GWT" with
> the search engine of your choice, you should come up with a
> couple of results.
>
> > The only solution which I've found is to use Timer as it's showed
> > there
> http://www.gwtapps.com/doc/html/com.google.gwt.user.client.Timer.html
> > , but then calls will be synchronous. What solution do you recommend?
>
Timers are best for scheduling period tasks like animation.  DeferredCommand
for background processing.

>
>
> Calls in GWT are always synchronously, independent of the way
> they are initiated.

Actually, they are always asynchronous.  They are single threaded though if
that's what you meant.  Anyways, GWT RPC is the way to invoke server code
(RequestBuilder for generic AJAX queries against JSON services & whatnot).
Give it your AsyncCallback which gets invoked when the call returns from the
server.


> But if you solve it using a Timer you should
> set a flag if a request is already in progress to make sure that
> only one requests happen at the same time.

Again - not the right pattern.  Do your call in the onFailure/onSuccess
methods of your callback.  That'll implicitly guarantee 1 outstanding call
at any time.

>
>
>
> 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Large GWT-application on mobile phones

2009-04-08 Thread Vitali Lovich
On Wed, Apr 8, 2009 at 9:54 AM, Lothar Kimmeringer wrote:

>
> Vitali Lovich schrieb:
> >
> > Android:
> >  - The browser coming with G1 is not able to do
> >   HTTP Basic Authentication (WTF?)
> >
> > That seems strange & unlikely given that it's Chrome (or at least some
> > kind of Webkit-based browser).  Try running your app in Chrome on the
> > desktop - does that work?  Do you have the latest updates on the phone?
>
> I don't have Chrome on the desktop (I don't agree with the terms of
> usage, so I'm not able to install it).

Would installing it in a temporary VM be ok?  Then you can just wipe the VM
afterwards.

The phone was updated about
> one month ago. The phone's message is quite clear:
> "Das Authentifizierungsschema fuer die Site wird nicht unterstuetzt."
> (The site's authentication-scheme is not supported)
>
> The server's response-header looks OK to me:
>
> $ telnet 127.0.0.1 9000
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> GET / HTTP/1.0
> Host: localhost
>
> HTTP/1.1 401 Unauthorized
> Date: Wed, 08 Apr 2009 13:44:31 GMT
> Server: IS/5.7.20_14442
> WWW-Authenticate: basic realm="HUB Admin Realm"
> Content-Type: text/html
> Content-Length: 1127
> Connection: close

I don't have much experience with the HTTP auth route - I tend to do the
authentication through the GWT RPC approach.

>
>
> > Mobile Safari:
> >  - Safari on an iPod touch 2G is showing the application after
> >   some while and crashes after doing some RPC-calls.
> >  - Safari on an iPhone 2G shows the application but instead
> >   of crashing, the browser fails to do RPC-calls after a while.
> >
> > Do you see these problems on the desktop version of Safari?
>
> No, the application is running smoothly there.

Are you sure that the RPC calls stop & that your app isn't crashing?  Try
this in your onModuleLoad:

new Timer() {
   public void run() {
 rpcServiceAsync.doRpcHeartbeat(System.currentTimeMillis(), new
AsyncCallback() {public void onFailure(Throwable cause){} public void
onSuccess(Void result){}});
   }
}.scheduleRepeating(5000);

where doRpcHeartbeat is an RPC invocation where you just log the timestamp
on the server or something.  That way you can be sure that you can tell if
suddenly RPC stops working (by the way, there's a limit to how many
concurrent outstanding AJAX calls you can make - could you be hitting this
limit?).

>
>
> >  The iPhone
> > & desktop versions are pretty much identical in the backend.  What do
> > you mean by crashes?
>
> When working with the application it suddenly vanishes in the same
> way it do when you press the "Main"-button. I never saw this behavior
> on other pages, so I assume that it's killed by the operating system
> because there is not enough memory and Safari wasn't able to free
> up enough ressources after being told so by the system (which lead
> to the kill of the application).

Are your phones jailbroken?  If so, there might be some performance monitors
you can run (at the very least you have top) to get a sense of why Safari
crashes (does Apple provide developer tools for determining why Safari
unloads the page?)

>
>
> So "crashing" might not be the correct term here but the user-
> experience is the same ;-)
>
> [Splitting GWT-application to reduce memory-consumption]
>
> > Build from trunk & use GWT.runAsync
> > .
>
> Looks good (meaning that I still can skip 1.5 and can go from
> 1.4.60 to 1.6 directly).

Not 1.6 - must be trunk.  Code splitting wasn't put into 1.6.  It's one of
the major featres that's going into 2.0 with OOPHM being another one.

>
>
> Two questions that I don't find answered in the page you linked:
>
> 1. My application is already modularized, every page allowing
> the administration of one particular "service" is a class
> derived from a superclass "AbstractServicePanel". When clicking
> on an entry in the list of services, a method is called that
> is evaluating the panel to be initialized:
>
>AbstractServicePanel panel = null;
>try{
>if (status.handlingName.equals("AS2Service")){
>panel = new As2ServicePanel();
>}
>else if (status.handlingName.equals("LogService")){
>panel = new LogServicePanel();
>}
>else if (status.handlingName.equals("authplain")){
>panel = new AuthServicePanel();
>}
>else if (status.handlingName.equals("commlogplain")){
>panel = new CommunicationLogServicePanel();
>}
> [etc]
>else if (status.handlingName.equals("AdminService")){
>panel = new AdminServicePanel();
>}
>}
>catch(Throwable t){
>callback.onFailure(t);
>return;
>}
>if (panel == null){
>panel = new UnimplementedPanel(status);
>}
>callback.onSuccess(panel);
>
> The callback removes a previously shown panel and adds the new
> one. Is it enou

Re: Large GWT-application on mobile phones

2009-04-08 Thread Lothar Kimmeringer

Vitali Lovich schrieb:
> 
> Android:
>  - The browser coming with G1 is not able to do
>   HTTP Basic Authentication (WTF?)
> 
> That seems strange & unlikely given that it's Chrome (or at least some
> kind of Webkit-based browser).  Try running your app in Chrome on the
> desktop - does that work?  Do you have the latest updates on the phone?

I don't have Chrome on the desktop (I don't agree with the terms of
usage, so I'm not able to install it). The phone was updated about
one month ago. The phone's message is quite clear:
"Das Authentifizierungsschema fuer die Site wird nicht unterstuetzt."
(The site's authentication-scheme is not supported)

The server's response-header looks OK to me:

$ telnet 127.0.0.1 9000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET / HTTP/1.0
Host: localhost

HTTP/1.1 401 Unauthorized
Date: Wed, 08 Apr 2009 13:44:31 GMT
Server: IS/5.7.20_14442
WWW-Authenticate: basic realm="HUB Admin Realm"
Content-Type: text/html
Content-Length: 1127
Connection: close

> Mobile Safari:
>  - Safari on an iPod touch 2G is showing the application after
>   some while and crashes after doing some RPC-calls.
>  - Safari on an iPhone 2G shows the application but instead
>   of crashing, the browser fails to do RPC-calls after a while.
> 
> Do you see these problems on the desktop version of Safari?

No, the application is running smoothly there.

>  The iPhone
> & desktop versions are pretty much identical in the backend.  What do
> you mean by crashes?

When working with the application it suddenly vanishes in the same
way it do when you press the "Main"-button. I never saw this behavior
on other pages, so I assume that it's killed by the operating system
because there is not enough memory and Safari wasn't able to free
up enough ressources after being told so by the system (which lead
to the kill of the application).

So "crashing" might not be the correct term here but the user-
experience is the same ;-)

[Splitting GWT-application to reduce memory-consumption]

> Build from trunk & use GWT.runAsync
> .

Looks good (meaning that I still can skip 1.5 and can go from
1.4.60 to 1.6 directly).

Two questions that I don't find answered in the page you linked:

1. My application is already modularized, every page allowing
the administration of one particular "service" is a class
derived from a superclass "AbstractServicePanel". When clicking
on an entry in the list of services, a method is called that
is evaluating the panel to be initialized:

AbstractServicePanel panel = null;
try{
if (status.handlingName.equals("AS2Service")){
panel = new As2ServicePanel();
}
else if (status.handlingName.equals("LogService")){
panel = new LogServicePanel();
}
else if (status.handlingName.equals("authplain")){
panel = new AuthServicePanel();
}
else if (status.handlingName.equals("commlogplain")){
panel = new CommunicationLogServicePanel();
}
[etc]
else if (status.handlingName.equals("AdminService")){
panel = new AdminServicePanel();
}
}
catch(Throwable t){
callback.onFailure(t);
return;
}
if (panel == null){
panel = new UnimplementedPanel(status);
}
callback.onSuccess(panel);

The callback removes a previously shown panel and adds the new
one. Is it enough to put the whole if-cascade into one GWT.runAsync
or do I have to do it for every if-statement if I want to let GWT
perform a deferred loading for each panel?

2. Is it possible to "unload" loaded parts? Otherwise I might be
able to run the application in the beginning but the longer the
application is used (i.e. the more panels are loaded and initialized),
the higher the likelyhood of running out of ressources will be.

> You may also want to ensure
> that you aren't leaving cycles in your references, thereby preventing
> garbage collection (i.e. when you remove a widget, remove it's listeners
> as well).

Is there a link to the GWT-documentation where this problem is
explained further? If I have a Panel, containing a button and
I add a ClickListener to that Button, do I really have to remove
that ClickListenner from the Button before removing the Panel?

> Since you're also dealing with the mobile space, you may want
> to make sure that when you hide a composite, you actually remove it from
> the page & then recreate it as necessary if it gets added back (unless
> it's really expensive).

I've got quite complex Dialog-boxes. How can I remove a Dialog-box?
At the moment I'm only calling hide().


Thanks and 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-Toolkit@googlegroups.c

Re: File Upload Problem with GWT And Java HttpServlet

2009-04-08 Thread Isaac Truett

If you're running in web mode or hosted mode with -noserver, you would
deploy class files to WEB-INF/classes. com.example.Foo would be
WEB-INF/classes/com/example/Foo.class, for example.


2009/4/8 Nickelnext :
>
> Hello everyone!
> sorry for the multiple posting, but this morning i updated everything
> to the 1.6, downloaded the eclipse plugin and so on.
> Now i'm getting another error:
>
> The code is the same as yesterday. What i get now is a message in the
> window.alert like this: "HTTP ERROR: 404 NOT_FOUND RequestURI=/
> provaupload2 MyFormHandler
> Powered by Jetty://"
>
> I really don't understand how and where gwt look for classes or paths.
> I configured the web.xml with the servlet like the old one. Where
> should i put the Servlet?
> And shall i compile it by myself or is gwt doing already?
>
> Sorry for this dumb questions but i really don't find an explanation
> anywhere.
>
> Thank you
> - Nickelnext
>
>
> >
>

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



Re: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread Jim

I just want to GWT community to know you CAN boost your productivity
by using Dreamsource ORM from 
http://dreamsource-orm.googlecode.com/files/dreamsource2_0_0_04062009_GWT_src.jar.
Dreamsource ORM is implemented to target GWT applications after the
first version is being used in production for more than three years.
It eliminates the problems you have when you use JPA or Hibernate. It
also provides JPA2.0 features in a simplest way.

Try it to see the difference.

Jim Xie

On Apr 7, 11:57 pm, Bruce Johnson  wrote:
> Hi Folks!
>
> Exciting news today. Rather than attempting to describe everything here, let
> me point you to some blog posts that hopefully you will find interesting:
>
> GWT 1.6 and 
> friends:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
>
> Seriously this time, the new language on App Engine: 
> Javahttp://googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> Google Plugin for Eclipse -- Peanut Butter to Eclipse's 
> Chocolatehttp://googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: CSS Style for single tabs of a TabBar

2009-04-08 Thread Ian Bambury
Hi,
Don't use the DOM - Google might change the structure, that's what would
break it.

There are two possibilities:

1)

Add HTML as the tab title
When the enabled/disabled change happens, get it back and change the style
class in the html string you get back and replace it (a simple replaceAll()
would do).

2)

Add a Label widget as the tab title
Also add that label to an ArrayList (because there is no way to get it back
from the tab, so you have to do it this way)
When the enabled/disabled change happens, get the label from the ArrayList
and do a setStyle() on it.

The first way is kludgier, but simpler :-)

Ian

http://examples.roughian.com


2009/4/8 -Lord-67 <-lord...@web.de>

>
> @Ian Bambury: Thanks, i will try it with DOM or else if that doesn't
> work the second way with html, just not sure if i will be able to do
> that on my own since i am not that experienced :-). DOM should be
> possible because the tabs don't change, i just want some of them to be
> disabled at a certain point and enabled later on ...
>
> @alan m: No problem, i was just confused about your post, i am
> thankful for every help i can get ;-). As Ian said it's not the whole
> TabBar i want to access (set style to 'disabled'), it's a single tab.
> I already managed to disable them (see other thread i cited in my
> first post) but i am not able to change the style of those disabled
> tabs.
>
> Thanks guys for the help, i will let you know wheater i was successful
> or not!
>
> Greetings,
> -Lord-67
> >
>

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



ImageBundle too wide to display in IE7 under Vista

2009-04-08 Thread markmccall

I recently encountered an issue where the contents of an ImageBundle
were not being displayed at all, but only under Vista and IE7.  Using
XP with IE6, IE7, FireFox 2, FireFox 3 the contents of the ImageBundle
displayed with no problems.  There are second hand reports that it
worked under Vista and IE8, but I have not seen it myself.

I ruled out file size as the limiting factor sense I have other
ImageBundles that worked properly, yet their file size was larger than
the offending ImageBundle.  After some experimenting it APPEARS that
IE7 under Vista imposes a limit of 2048 pixels for the width of a PNG
that is being displayed using the AlphaImageLoader Filter.  As soon as
the ImageBundle width exceeds 2048 pixels, it fails to appear.

The obvious work around was to break up the ImageBundle to reduce it's
width.

Has anybody else encountered this?  Is this something that I should
have already known about?

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



Re: Large GWT-application on mobile phones

2009-04-08 Thread Vitali Lovich
On Wed, Apr 8, 2009 at 8:38 AM, Lothar Kimmeringer wrote:

>
> Hello,
>
> today I tried to run my main GWT-application (administrative
> backend of a server-application) on an iPhone/iPod touch and
> a G1 with Android. At the moment the application is still
> compiled using GWT 1.4.60, so some issues might already be
> fixed with later versions.
>
> The following things I saw trying that:
>
> Android:
>  - The browser coming with G1 is not able to do
>   HTTP Basic Authentication (WTF?)

That seems strange & unlikely given that it's Chrome (or at least some kind
of Webkit-based browser).  Try running your app in Chrome on the desktop -
does that work?  Do you have the latest updates on the phone?

>
>  - RPC-calls using serializable classes lead to ArrayIndex-
>   OutOfBoundsExceptions on the server-side when using
>   serialized classes (seems to work with GWT 1.5.3 if I
>   followed threads here correctly).


>
> Mobile Safari:
>  - Safari on an iPod touch 2G is showing the application after
>   some while and crashes after doing some RPC-calls.
>  - Safari on an iPhone 2G shows the application but instead
>   of crashing, the browser fails to do RPC-calls after a while.

Do you see these problems on the desktop version of Safari?  The iPhone &
desktop versions are pretty much identical in the backend.  What do you mean
by crashes?

>
>
> I think the problems with Safari are a result of the size of the
> application (HTML-file) of more than 1MB. The application is
> in my eyes simply running out of memory.
>
> Before starting a migration from 1.4.60 to 1.5, should I wait
> for 1.6 and use LazyPanel or is there no effect at all if I
> have a huge HTML-file anyway? Or is there now a way to modularize
> the application, allowing to download parts of the application
> on demand instead of one big HTML-file being loaded at startup)?

Build from trunk & use
GWT.runAsync.
LazyPanel is more for drawing performance.  You may also want to ensure that
you aren't leaving cycles in your references, thereby preventing garbage
collection (i.e. when you remove a widget, remove it's listeners as well).
Since you're also dealing with the mobile space, you may want to make sure
that when you hide a composite, you actually remove it from the page & then
recreate it as necessary if it gets added back (unless it's really
expensive).

Uggh - I wish there were decent profiling tools for web development to break
down memory usage of webapps.

>
>
>
> 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Just getting started with GWT: how to wrap a native Java library?

2009-04-08 Thread Vitali Lovich
On Wed, Apr 8, 2009 at 8:52 AM, Arthur Kalmenson wrote:

>
> Hey Jake,
>
> I've never used the SWT Canvas, but if it's anything like the 
> tag, you might want to check out the GWTCanvas in the incubator:
>
> http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=GWTCanvas

GWT 1.6 includes Canvas from what I recall off the top of my head (or is
that only trunk?).

>
>
>
> Also, Vitali, there's a GWT library for accessing gears:
> http://code.google.com/p/gwt-google-apis/

I never meant to imply that there wasn't - just that it's not part of GWT &
probably never will be, especially given that HTML5 is an actual W3C
standard that browsers have already started implementing.

>
>
> Regards,
> --
> Arthur Kalmenson
>
>
>
> On Tue, Apr 7, 2009 at 3:35 PM, Jake  wrote:
> >
> > Isaac, thank you for the informed response, I believe that was exactly
> > what I was looking for.
> >
> > Best regards,
> >
> > Jake
> >
> > On Apr 7, 3:27 pm, Isaac Truett  wrote:
> >> Jake,
> >>
> >> You would have to create a class org.eclipse.swt.widgets.Canvas such
> >> that it is GWT-compatible. That means only using emulated JRE classes
> >> (String, collections, etc.). Any class required for the Canvas class
> >> API has to be implemented in a GWT-compatible manner as well. This
> >> transitive dependency is what really kills you. If you get to a point
> >> where you have to use a non-emulated JRE class (e.g., java.io.*
> >> (almost)), you're hosed (I believe this was essentially Ian's point).
> >>
> >> Assuming you manage to implement the entire API, you create a module
> >> file (gwt.xml) that includes the source you just wrote, inherit that
> >> module in your GWT app, and enjoy.
> >>
> >> For more on JRE emulation, see:
> >>
> >> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog.
> ..
> >>
> >> - Isaac
> >>
> >> On Tue, Apr 7, 2009 at 3:14 PM, Jake  wrote:
> >>
> >> > I feel like I'm not expressing myself clearly. Let's just focus on the
> >> > reduced case:
> >>
> >> > import org.eclipse.swt.widgets.Canvas;
> >>
> >> > public class foo {
> >>
> >> > }
> >>
> >> > Right now, if I try to run this through GWT, it will throw an error
> >> > because it can't compile Canvas and all of its dependencies. This is
> >> > to be expected. So what I would like is to roll my own Canvas class
> >> > which extends GWT's Widget class, and have that be used instead, but
> >> > in such a way that I don't have to touch the existing program's source
> >> > code.
> >>
> >> > Ian, you seem to be suggesting that I need to hack this into the
> >> > internals of GWT itself, and try to push it upstream. I feel like
> >> > there should be a way to do this without having modify GWT internals,
> >> > because this would allow certain applications (not all of them) that
> >> > leverage native GUI toolkits to be compiled directly to a browser-
> >> > based version, without having to port them to a GWT-friendly set of
> >> > libraries. This would be a very powerful feature, but it may not
> >> > exist. If I could just get confirmation on this, I would appreciate
> >> > it.
> >>
> >> > Thanks,
> >>
> >> > Jake
> >>
> >> > On Apr 7, 2:38 pm, Ian Bambury  wrote:
> >> >> GWT isn't Java. It just uses Java syntax so that Java books are
> useful, and
> >> >> things like Eclipse work for it.
> >> >> GWT code becomes JavaScript. It is never at any point Java.
> >>
> >> >> A very simple compiler might recognise '"Window.alert(" and translate
> it to
> >> >> '"document.alert("
> >>
> >> >> If you whole program consists of Window.alert("Hello"); then it will
> be OK.
> >> >> Anything else will fail.
> >>
> >> >> The Google team have emulated many other commands and structures, but
> not
> >> >> all of them: some are obscure and therefore not high enough up the
> priority
> >> >> list, and some are impossible because, like threading, JS just
> doesn't do
> >> >> that.
> >>
> >> >> It would be an impossible task to emulate every possible class in
> every Java
> >> >> library in existence. And would take for ever.
> >>
> >> >> So if it ain't emulated, it ain't gonna work because the compiler
> will issue
> >> >> a polite and rather technical version of 'WTF?'
> >>
> >> >> And just throwing any old java program into the GWT compiler is,
> pretty
> >> >> much, pointless.
> >>
> >> >> But if you really want to help Google and emulate
> rg.eclipse.swt.widgets.Canvas
> >> >> for GWT, then I'm sure they (and many others) will be eternally
> grateful for
> >> >> at least a week or two :-)
> >>
> >> >> If so, troll your little old lallies over to the very bonahttp://
> groups.google.com/group/Google-Web-Toolkit-Contributors
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received 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 
googl

Re: flexTable rows displayed in Viewport

2009-04-08 Thread Shivi

I load the images like this:-

Image img = new Image(url);
I don't want to use the ImageBundle because this is the point of the
project...you only load images as the user scrolls up or down ..slow
and fast etc.

I know about the paging toolbar solution but I need to implement this
using scrolling.
You can say this is my client's requirement (i.e the project's
supervisor's requirement).
The  reason I am trying to do this is because it is new and hasn't
really been seen in websites using AJAX.

So is there no way I could find out which images of the flexTable the
user can see?


Thanks a lot for your help.
Shivi

On Apr 7, 6:44 pm, Arthur Kalmenson  wrote:
> How are you loading the images? Are you retrieving them from the
> server one by one? That sounds like a lot of round trips, which is why
> ImageBundle was created. With ImageBundle, the images are downloaded
> once and cached forever (until the bundle is changed).
>
> I'm not sure how you would check to see which images the user can see,
> but you might want to look at a different solution. For these
> particular problems, a common solution is to implement some kind of
> paging solution. Thereby, you only load only a certain number of rows
> at a time, and people can page through them if they want additional
> results.
>
> P.S. Please reply to the group and not directly to me.
> --
> Arthur Kalmenson
>
> On Tue, Apr 7, 2009 at 10:20 AM,Shivi wrote:
> > hi
>
> > No I don't want to figure out if I need a scrollbar or not. I know my
> > scrollbar is viewable as I have a list of 100 items in a flexTable.
>
> > What I'm actually trying to achieve is this-
>
> >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> > I know the view port will be different from user to user but I can
> > make assumption that the  user's browser window is in the normal
> > maximised view.
>
> > As user scrolls down , depending on the rows that are visible in the
> > view -port I need to populate Images in the column of FlexTable .
>
> > so from a list of products(say 100 rows, left col shows images , right
> > col shows product information) in the flexTable  if the 50, 51 and 52
> > are visible to the user (in his view-port) and then if he scrolls down
> > fast and reaches the 70,71 and 72nd row of flexTable I want to display
> > those corresponding Images in the table.
>
> > I don;t want to display all Images in one go as the table is loaded.
> > This way i'm trying to save on network load.
>
> > Thanks
>
> > On Apr 7, 2:42 pm, Arthur Kalmenson  wrote:
> >> What are you trying to achieve here? What the user is able to view
> >> will depend on their resolution, the size of their browser window,
> >> etc. Are you trying to figure out if you need a scroll bar or not?
>
> >> --
> >> Arthur Kalmenson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Just getting started with GWT: how to wrap a native Java library?

2009-04-08 Thread Arthur Kalmenson

Hey Jake,

I've never used the SWT Canvas, but if it's anything like the 
tag, you might want to check out the GWTCanvas in the incubator:
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=GWTCanvas


Also, Vitali, there's a GWT library for accessing gears:
http://code.google.com/p/gwt-google-apis/

Regards,
--
Arthur Kalmenson



On Tue, Apr 7, 2009 at 3:35 PM, Jake  wrote:
>
> Isaac, thank you for the informed response, I believe that was exactly
> what I was looking for.
>
> Best regards,
>
> Jake
>
> On Apr 7, 3:27 pm, Isaac Truett  wrote:
>> Jake,
>>
>> You would have to create a class org.eclipse.swt.widgets.Canvas such
>> that it is GWT-compatible. That means only using emulated JRE classes
>> (String, collections, etc.). Any class required for the Canvas class
>> API has to be implemented in a GWT-compatible manner as well. This
>> transitive dependency is what really kills you. If you get to a point
>> where you have to use a non-emulated JRE class (e.g., java.io.*
>> (almost)), you're hosed (I believe this was essentially Ian's point).
>>
>> Assuming you manage to implement the entire API, you create a module
>> file (gwt.xml) that includes the source you just wrote, inherit that
>> module in your GWT app, and enjoy.
>>
>> For more on JRE emulation, see:
>>
>> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>>
>> - Isaac
>>
>> On Tue, Apr 7, 2009 at 3:14 PM, Jake  wrote:
>>
>> > I feel like I'm not expressing myself clearly. Let's just focus on the
>> > reduced case:
>>
>> > import org.eclipse.swt.widgets.Canvas;
>>
>> > public class foo {
>>
>> > }
>>
>> > Right now, if I try to run this through GWT, it will throw an error
>> > because it can't compile Canvas and all of its dependencies. This is
>> > to be expected. So what I would like is to roll my own Canvas class
>> > which extends GWT's Widget class, and have that be used instead, but
>> > in such a way that I don't have to touch the existing program's source
>> > code.
>>
>> > Ian, you seem to be suggesting that I need to hack this into the
>> > internals of GWT itself, and try to push it upstream. I feel like
>> > there should be a way to do this without having modify GWT internals,
>> > because this would allow certain applications (not all of them) that
>> > leverage native GUI toolkits to be compiled directly to a browser-
>> > based version, without having to port them to a GWT-friendly set of
>> > libraries. This would be a very powerful feature, but it may not
>> > exist. If I could just get confirmation on this, I would appreciate
>> > it.
>>
>> > Thanks,
>>
>> > Jake
>>
>> > On Apr 7, 2:38 pm, Ian Bambury  wrote:
>> >> GWT isn't Java. It just uses Java syntax so that Java books are useful, 
>> >> and
>> >> things like Eclipse work for it.
>> >> GWT code becomes JavaScript. It is never at any point Java.
>>
>> >> A very simple compiler might recognise '"Window.alert(" and translate it 
>> >> to
>> >> '"document.alert("
>>
>> >> If you whole program consists of Window.alert("Hello"); then it will be 
>> >> OK.
>> >> Anything else will fail.
>>
>> >> The Google team have emulated many other commands and structures, but not
>> >> all of them: some are obscure and therefore not high enough up the 
>> >> priority
>> >> list, and some are impossible because, like threading, JS just doesn't do
>> >> that.
>>
>> >> It would be an impossible task to emulate every possible class in every 
>> >> Java
>> >> library in existence. And would take for ever.
>>
>> >> So if it ain't emulated, it ain't gonna work because the compiler will 
>> >> issue
>> >> a polite and rather technical version of 'WTF?'
>>
>> >> And just throwing any old java program into the GWT compiler is, pretty
>> >> much, pointless.
>>
>> >> But if you really want to help Google and emulate 
>> >> rg.eclipse.swt.widgets.Canvas
>> >> for GWT, then I'm sure they (and many others) will be eternally grateful 
>> >> for
>> >> at least a week or two :-)
>>
>> >> If so, troll your little old lallies over to the very 
>> >> bonahttp://groups.google.com/group/Google-Web-Toolkit-Contributors
> >
>

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



Re: CSS Style for single tabs of a TabBar

2009-04-08 Thread -Lord-67

@Ian Bambury: Thanks, i will try it with DOM or else if that doesn't
work the second way with html, just not sure if i will be able to do
that on my own since i am not that experienced :-). DOM should be
possible because the tabs don't change, i just want some of them to be
disabled at a certain point and enabled later on ...

@alan m: No problem, i was just confused about your post, i am
thankful for every help i can get ;-). As Ian said it's not the whole
TabBar i want to access (set style to 'disabled'), it's a single tab.
I already managed to disable them (see other thread i cited in my
first post) but i am not able to change the style of those disabled
tabs.

Thanks guys for the help, i will let you know wheater i was successful
or not!

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



Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo

package vCarePortal.client;

import java.sql.Date;

import com.google.gwt.user.client.rpc.RemoteService;

public interface DiscussionBoardService extends RemoteService {

public Forum[] getForums(int forumAccessLevel);

public Topic[] getTopics(int forumID, int topicAccessLevel);

public Thread[] getThreads(int topicID, int threadAccessLevel);

public ThreadReply[] getDiscussionPosts(int threadID);

public Contributor getUser(String password, String userID);

public int countThreads(int topicID);

public int countThreadReplies(int threadID);

public String[] getLatestThreadReply (int threadID);

public String getImageURL (String imageID);


public void createForum(String forumName, String forumDescription,
String userID, int accessLevel);

public void modifyForum (int forumID, String forumName, String
forumDescription, int accessLevel);

public void deteleForum (int forumID);

public void createTopic (String topicTitle, String topicDescription,
int topicAccessLevel, String creatorID, int forumID);

public void modifyTopic(int topicID, String topicName, String
topicDescription, int topicAccessLevel);

public void deteleTopic (int topicID);

public void addThread (String threadTitle, String threadDesc, int
threadAccessLevel, int threadCreatorID, int topicID);

public void modifyThread(int threadID, String threadTilte, String
threadDescription, int threadAcessLevel);

public void deleteThread(int threadID);

public void addThreadReply(int threadID, int replierID, Date
replyTimestamp, String replyContent);

public void modifyThreadReply(int threadReplyID, Date
modifyTimestamp, String replyContent);

public void deleteThreadReply(int threadReplyID);
}

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



Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo

No, i don't have it. Here's my client side RPC interface:



package vCarePortal.client;

import java.sql.Date;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface DiscussionBoardServiceAsync {

public void getForums(int forumAccessLevel, AsyncCallback
callback);

public void getTopics(int forumID, int topicAccessLevel,
AsyncCallback callback);

public void getThreads(int topicID, int threadAccessLevel,
AsyncCallback callback);

public void getDiscussionPosts(int threadID, AsyncCallback callback);

public void getUser(String password, String userID,
AsyncCallback callback);

public void countThreads(int topicID, AsyncCallback
callback);

public void countThreadReplies(int threadID, AsyncCallback
callback);

public void getLatestThreadReply (int threadID, AsyncCallback callback);

public void getImageURL (String imageID, AsyncCallback
callback);


public void createForum(String forumName, String forumDescription,
String userID, int accessLevel, AsyncCallback callback);

public void modifyForum (int forumID, String forumName, String
forumDescription, int accessLevel, AsyncCallback callback);

public void deteleForum (int forumID, AsyncCallback callback);

public void createTopic (String topicTitle, String topicDescription,
int topicAccessLevel, String creatorID, int forumID,
AsyncCallback callback);

public void modifyTopic(int topicID, String topicName, String
topicDescription, int topicAccessLevel, AsyncCallback callback);

public void deteleTopic (int topicID, AsyncCallback callback);

public void addThread (String threadTitle, String threadDesc, int
threadAccessLevel, int threadCreatorID, int topicID,
AsyncCallback callback);

public void modifyThread(int threadID, String threadTilte, String
threadDescription, int threadAcessLevel, AsyncCallback
callback);

public void deleteThread(int threadID, AsyncCallback callback);

public void addThreadReply(int threadID, int replierID, Date
replyTimestamp, String replyContent, AsyncCallback callback);

public void modifyThreadReply(int threadReplyID, Date
modifyTimestamp, String replyContent, AsyncCallback callback);

public void deleteThreadReply(int threadReplyID, AsyncCallback
callback);
}

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



  1   2   >