Saturday, April 30, 2011

Re: GWT doesn't work in eclipse

What is GAE and how do I add it?

On Apr 28, 6:53 pm, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
> 'com.google.appengine.tools.development.gwt.AppEngineLauncher'
> java.lang.ClassNotFoundException:
>
> Add GAE to your classpath
>
> 2011/4/28 Uri Even-Chen <urievenc...@gmail.com>
>
>
>
>
>
>
>
> > I upgraded GWT to the latest version (2.2.0), but I can't run my
> > project (created with GWT 2.1.0). I receive this error:
>
> > --------------------------------------------------------------------------- --------------------------------------------------------------
> > Unable to load server class
> > 'com.google.appengine.tools.development.gwt.AppEngineLauncher'
> > java.lang.ClassNotFoundException:
> > com.google.appengine.tools.development.gwt.AppEngineLauncher
> >        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:247)
> >        at
> > com.google.gwt.dev.DevMode$ArgHandlerServer.setString(DevMode.java:
> > 111)
> >        at
> > com.google.gwt.util.tools.ArgHandlerString.handle(ArgHandlerString.java:
> > 26)
> >        at com.google.gwt.util.tools.ToolBase.processArgs(ToolBase.java:238)
> >        at
> > com.google.gwt.dev.ArgProcessorBase.processArgs(ArgProcessorBase.java:
> > 29)
> >        at com.google.gwt.dev.DevMode.main(DevMode.java:303)
> > Google Web Toolkit 2.2.0
>
> > --------------------------------------------------------------------------- --------------------------------------------------------------
>
> > I don't know which SDK to install, I have a few files calles gwt-
> > user.jar . I tried all of them but it doesn't work.
>
> > Thanks,
> > Uri Even-Chen.
>
> > --
> > You received 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+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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

Re: GWT Not Working for Higher Screen Resolutions

Oops, wrong topic. I am very sorry, I got crossed posted in the
digest.


On Apr 30, 8:24 pm, Tim Goeke <tim.go...@gmail.com> wrote:
> I disagree, the issue only shows in FF4, so your point is invalid.
>
> On Apr 29, 1:08 pm, Trevor Skaife <tska...@gmail.com> wrote:
>
>
>
>
>
>
>
> > That wouldn't have anything to do with GWT. It would have everything
> > to do with the styles and what html has been created by GWT, which you
> > programmed. Best thing to do is to inspect the page in the browser to
> > see what is causing the page to not look right. Then you should be
> > able to figure out what panel or table you need to change in order for
> > you page to flow correctly.
>
> > On Apr 28, 3:53 am, Lakshitha <lkarunara...@gmail.com> wrote:
>
> > > Hello Everyone,
>
> > > I have an application developed using GWT.
> > > For screen resolutions higher than 1400x1050, panels are not alligning
> > > properly.
>
> > > Any idea why this is happening ?

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

Re: GWT Not Working for Higher Screen Resolutions

I disagree, the issue only shows in FF4, so your point is invalid.

On Apr 29, 1:08 pm, Trevor Skaife <tska...@gmail.com> wrote:
> That wouldn't have anything to do with GWT. It would have everything
> to do with the styles and what html has been created by GWT, which you
> programmed. Best thing to do is to inspect the page in the browser to
> see what is causing the page to not look right. Then you should be
> able to figure out what panel or table you need to change in order for
> you page to flow correctly.
>
> On Apr 28, 3:53 am, Lakshitha <lkarunara...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello Everyone,
>
> > I have an application developed using GWT.
> > For screen resolutions higher than 1400x1050, panels are not alligning
> > properly.
>
> > Any idea why this is happening ?

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

Re: DialogBox.center does not center correctly

On Apr 30, 8:49 pm, Qian Qiao <qian.q...@gmail.com> wrote:

> Why do you use an absolute panel inside a dialogbox the first place?

I use the AbsolutePanel to reproduce the problem.

In fact, it's a RichTextArea, which I wanted to make bigger.

Magnus

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: getting seesion in client class

server maintains application-state, sessions. client doesn't have anything to do with it. if you want to deal with session stuffs at client code, it must me something conceptional wrong here

On Sat, Apr 30, 2011 at 12:04 PM, Stefan Ollinger <Stefan.Ollinger@gmx.de> wrote:
You need to create the session explicitely on the Server Side. Servlet filters are nice for this, since you can map them to wildcard urls.

Regards,
Stefan


Am 30.04.2011 10:20, schrieb Vik:

Hie

How to get a handle to session or create if session is not existing in entry point class ? Plz advise


Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org
--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

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


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

HasDataEditor + CellTable

Hi all,
I'm looking for a good example howto write an editor for a CellTable.

I understand that I need to use the HasDataEditor of ListEditor but I
can't find anything about it..

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

Re: Very simple GWT Canvas Demo

Link to my GWT HTML5 stuff: http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Very simple GWT Canvas Demo

I thought I'd share my very simple GWT canvas demo. I made this to show that uploading in base64 was broken at the moment.

http://demogwtcanvas.appspot.com - Demo
http://code.google.com/p/gwt-examples/source/browse/trunk/DemoGwtCanvas/src/org/gonevertical/democanvas/client/UploadImage.java - source code for it
http://code.google.com/p/gwt-examples/source/browse/trunk/DemoGwtCanvas/src/org/gonevertical/democanvas/client/ImageUtils.java

Brandon Donnelson
http://gwt-examples.googlecode.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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Do you think to release handlers ?

You'd generally add it in onAttach/onLoad and remove it in onDetach/onUnload.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: DialogBox.center does not center correctly

On Sat, Apr 30, 2011 at 13:06, Magnus <alpineblaster@googlemail.com> wrote:
> In Firebug, I found that the outer DialogBox has its original
> (smaller) size, and that this part of it is centered correctly.
>
> However, the inner AbsolutePanel, which was sized much bigger than the
> DialogBox by my code, is aligned as if it were not resized, i. e. its
> left border equals the DialogBox left border, and its right border is
> out of the screen.
>
> After that I tried to resize the DialogBox itself, but this resulted
> in graphic errors, i. e. the corners of the DialogBox are disturbed...
>
> What can I do?
>
> Magnus

Why do you use an absolute panel inside a dialogbox the first place?


--
Proper software development is like female orgasm. Some claim it's a
myth, others try very hard to make it happen but don't know how, and
most magazines, books and videos showing it are showing faked ones.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Do you think to release handlers ?

I just realized that I never called removeHandler() on some of handler that I was using.

HandlerRegistration h = Window.addResizeHandler(new ResizeHandler() {
@Override public void onResize(ResizeEvent event) { height = event.getHeight(); width = event.getHeight(); } });
In the case of a composite that need to get a resize event, I suppose that we have to call h.removeHandler() in the onClose() method isn't it ? Or is there an automatic behaviour to release it ?
I know that it is automatic when using a Resettable event bus from activity but it is becausde it is managed by the ActivityManager.

Where is the best place to release a resize handler in a composite ?

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

Unable to get result object from Service layer

Hi All,

I am trying to get the result object from service layer through
handler, i am getting this error

"org.springframework.transaction.UnexpectedRollbackException:
Transaction rolledback because it has been marked as rollback-only"

Service layer code is :

public VerifyDataResult verifyData(VerifyData data) {

VerifyDataResult result = new VerifyDataResult ();

try {

ClientCase newClientCase = data.getClientCase();

Case newCase = new Case();

newCase.setDecinum(newClientCase.getDecinum());

newCase.setCaseNumber(newClientCase.getCaseNumber() !=
null ? newClientCase.getCaseNumber() : 0);

ccdbManager.checkDecinum(newCase);

} catch (DecinumException decinumException) {

result.setDuplicate(true);

log.debug("Duplicate Decinum exist >>> "+
decinumException.getMessage());

log.debug("Result value >>> "+ result);

// throw new DecinumException("Duplicate Decinum exist ");

} catch(Exception e){

log.debug("Duplicate Decinum exception in PMS >>> "+
e.getMessage());

}

return result;

}

Handler Code:

public VerifyDataResult execute(VerifyData action, ExecutionContext
context) throws ActionException {

VerifyDataResult result = new VerifyDataResult ();

try {

result = payloadModelService.verifyData(action);

log.debug("after setting of Duplicate Decinum
value ..."+result.isDuplicate());

} catch (DecinumException e) {

log.debug("Exception at execute....................
"+e.getMessage());

e.printStackTrace();

throw new ActionException(e.getMessage());

}catch(Exception e){

log.debug("verify decinum values =
"+result.isDuplicate());

log.debug("Duplicate Exception >>> "+e.getMessage());

e.printStackTrace();

}

log.debug("Before returning result >>> " +result);

return result;

}

Ever time the result is getting set to False even if the result is
being set to true in our service layer. Can you please suggest.


Thanks in advance.
Deb.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: DialogBox.center does not center correctly

In Firebug, I found that the outer DialogBox has its original
(smaller) size, and that this part of it is centered correctly.

However, the inner AbsolutePanel, which was sized much bigger than the
DialogBox by my code, is aligned as if it were not resized, i. e. its
left border equals the DialogBox left border, and its right border is
out of the screen.

After that I tried to resize the DialogBox itself, but this resulted
in graphic errors, i. e. the corners of the DialogBox are disturbed...

What can I do?

Magnus

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Offline map functionallity GWT

Hi, is there any way to obtain offline map functionallity for a GWT
application?
We are using GWT 2.1 with gwtmaps module from google apis, but the map
goes away as soon as our computer goes offline. we need to implement
some kind of offline functionallity.

Thanks in advance,
Ana

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Aw: GWT Visualization Performance/Optimization

We were using 5 scatter charts each of them displaying around 2000 points and it worked pretty well and it didn't really take long to render it (maybe a sec oder so).

The Google Visualization scatter charts use SVG which doesn't scale that well with increasing number of objects. 
If performance is really important you can try to use a scatterplot which is based on canvas. 
We successfully switched from the google visualization scatter charts to dygraph (http://dygraphs.com/). Dygraph is based on cavnas and performs really good and hase also zooming and other useful features. 
They even support Google Visualization DataTable as datasource. 

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Data-binding, Konckout.js

I've recently seen Knockout.js presentation at MIX 11 and it looks
amazing. It removes all boilerplate code around data-binding and looks
really amazing!!! We do have a lot of development in both GWT and
Silverlight, and Silverlight data-binding is probably the only
advantage left (and we really miss it when switch to GWT and write
data oriented applications). And it looks like Knockout.js could give
same experience, if it would be integrated into GWT.

Is there are any plans to integrate Knockout.js into GWT? Or maybe
make same binding experience in GWT by it's own?

Best regards,
Artem

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Does GWT 2.2 Canvas support transparency like GWTCanvas?

http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas

2011/4/30 Magnus <alpineblaster@googlemail.com>
Hi,

where can I find a minimal example of using the GWT Canvas?

Magnus

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--


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

Re: Does GWT 2.2 Canvas support transparency like GWTCanvas?

Hi,

where can I find a minimal example of using the GWT Canvas?

Magnus

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Friday, April 29, 2011

DialogBox.center does not center correctly

Hi,

I have a problem with centering a DialogBox.

I create it, add some widgets (the size of which I set at the same
time!), and call center:
(Pseudecode)

DialogBox d = new DialogBox ();
AbsolutePanel t = new AbsolutePanel();
t.setSize("1000px","700px");
d.add(t);
d.center();

However, the DialogBox is not centered correctly. It's placed too much
to the right. (If its size is smaller, it's placed too much to the
left. #-))

I wondered if i should call forceLayout, but there is no such method
in DialogBox.

What can I do?

Thanks
Magnus

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Does GWT 2.2 Canvas support transparency like GWTCanvas?

Please ignore.  The rgba(...) string approach works.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Does GWT 2.2 Canvas support transparency like GWTCanvas?

I tried using an rgba(...) string.  This works with Firefox but not Chrome, Safari, nor Opera.

So GWT 2.2 Canvas doesn't support colors with alpha values?  How come GWTCanvas does?

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Does GWT 2.2 Canvas support transparency like GWTCanvas?

CssColor doesn't have an alpha value like Color does with GWTCanvas.

So how do I handle transparency with GWT 2.2 Canvas?

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Controlled shutdown of dev mode in Eclipse

Hi

Does anyone know a way to get Jetty to shutdown in a more orderly fashion? When you press the red
square in the Development Mode UI, it just stops dead - consequently some of my server shutdown
scripts don't run.

I'd like to be able to detect the servlet context listener contextDestroyed event.

TIA

Alan

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

Re: How do I use Tomcat rather than built-in in Development mode

On Apr 29, 2:01 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> Read the doc? ;-)http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...
> The "noserver" in GPE can be set by unchecking the "run built-in server" box
> in the "server" tab of the Web Application launcher configuration

Thanks! It took a little finagling with the arguments list to get it
all right but now it works
like a charm. All my overrides in server.xml are overriding as they
should and life is good (or
at least a little easier).

~ Rob

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

@UiFactory resource injection

http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_an_external_resource

shows how to use @UiFactory to provide a ClientBundle instance and
indicates

"You can make resources available to your template via the <ui:with>
element, but at the cost of having them instantiated for you."

If <ui:with> element is specified along with @UiFactory, does GWT
resort to using the factory method, or will it invoke GWT.create on
the type specified <ui:with>?


--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: How to update CellTable's Header Cell based on action in data table

You might be looking for the CellTable#redrawHeaders() method. In your SelectionHandler, you would update the internal value of your Header (whatever is returned by its getValue method) and then redrawHeaders() to update the display.
(just an idea, never ever tried)

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Many injections of same css

Using <ui:style src="..."/> you're creating a new CssResource (each time) with @Source("resources/global.css"). The rules in global.css are processed for each CssResource and generate different obfuscated class names (this is important as each CssResource could add other rules for the same class names, and you wouldn't want conflicts between your CssResources).
If you want to share definitions, you should use a single CssResource, either one that you reuse (e.g. include in a ClientBundle, and then use that bundle using <ui:with> in UiBinder), a @Shared one that you inherit from (use <ui:style type="..."/> to point to it or an interface that extends it), or an @ImportedWithPrefix CssResource that you then @Import in another CssResource (or <ui:style import="..."/> in a UiBinder template).

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT and PS3

I rewrote the whole property provider, forcing PS3 pick up IE6
implementation, so even sample GWT have not being executed

<property-provider name="user.agent"><![CDATA[
var ua = navigator.userAgent.toLowerCase();
var makeVersion = function(result) {
return (parseInt(result[1]) * 1000) + parseInt(result[2]);
};

if (ua.indexOf("opera") != -1) {
return "opera";
} else if (ua.indexOf("webkit") != -1) {
return "safari";
} else if (ua.indexOf("msie") != -1) {
if (document.documentMode >= 8) {
return "ie8";
} else {
var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua);
if (result && result.length == 3) {
var v = makeVersion(result);
if (v >= 6000) {
return "ie6";
}
}
}
}
else if (ua.indexOf("playstation") != -1) {
return "ie6";
}
else if (ua.indexOf("gecko") != -1) {
var result = /rv:([0-9]+)\.([0-9]+)/.exec(ua);
if (result && result.length == 3) {
if (makeVersion(result) >= 1008)
{
return "gecko1_8";
}
}
return "gecko";
}
return "unknown";
]]></property-provider>

Any other inputs to consider is highly appreciated.

On Apr 28, 4:27 pm, Excell <anton.fedo...@gmail.com> wrote:
> user.agent for PS3 is Mozilla/5.0 (PLAYSTATION 3; 1.00)
>
> so, do you mean that I have to add something like that
>
> <property-provider name="mobile.user.agent"><![CDATA[
>   {
>     var ua = window.navigator.userAgent.toLowerCase();
>     if (ua.indexOf('playstation') != -1) { return 'ie6'; }
>   }
> ]]></property-provider>
>
> or am I missing something here?
>
> On Apr 20, 6:39 am, jhulford <jhulf...@gmail.com> wrote:
>
>
>
> > The user agent detection is defined in the UserAgent.gwt.xml module
> > definition file (http://code.google.com/p/google-web-toolkit/source/
> > browse/trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml).  You can
> > actually override that provider in your own module file by making your
> > own <property-provider name="user.agent"> in it.  If you figure out
> > what the PS3's user agent is and map it to any of the user agents that
> > are currently utilized in GWT.  That won't mean everything will
> > necessarily work if the PS3 browser doesn't actual work like the
> > browser you're mapping it to, but it will get you past the hump of
> > getting the PS3 browser to run your GWT code.
>
> > On Apr 19, 7:45 pm, Excell <anton.fedo...@gmail.com> wrote:
>
> > > Is anyone achieve loading GWT compiled app in PlayStation 3 (Netfront)
> > > browser. I have tried to compile IE6 only permutation, but PS3 did not
> > > pick it up. Any suggestions?

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

Re: How do I use Tomcat rather than built-in in Development mode

Read the doc? ;-)
The "noserver" in GPE can be set by unchecking the "run built-in server" box in the "server" tab of the Web Application launcher configuration

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

How do I use Tomcat rather than built-in in Development mode

Hi,

Code that I'm writing has to talk to a number of different servers and
I have test servers that replicate the production servers the code
will eventually interact with. Especially with regard to long term
maintenance, I would rather not have to change the various DB, LDAP,
etc pointers every time I move a copy into production. All the
pertinent pointers (URLs, etc) are stored as context parameters in
web.xml and with Tomcat in server.xml I can override the various of
the context parameters on my development station so I point to my test
servers and no changes would then be required when I move the code
into production.

So my question is: how do I configure GWT (the Eclipse plugin) to use
the locally installed Tomcat rather than the built-in server. Or is
there a better was to accomplish the above while still using the built-
in server?

Thanks,

Rob Tanner
Linfield College

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Deferred Binding error when upgrading to GWT 2.0.0

gwt-maven-plugin 2.2 is not compatible with gwt 2.0

But I did try upgrading gwt to 2.2.0 and used the 2.2.0 plugin as
well. I still received the same error.

I believe the issue lies in a change in GWT.create() in post 2.0
versions of GWT. Somehow the generated proxy is not able to locate the
RemoteServiceServlet. In our environment the RemoteServiceServlet is
implemented by a Stripes ActionBean that extends the Servlet.

In pre 2.0 implementations this was not an issue.

On Apr 29, 8:44 am, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
> You must upgrade to gwt-maven-plugin - 2.2
>
> 2011/4/29 stockloser <kde...@gmail.com>
>
> > I've finally hit a wall on trying to resolve this error and decided to
> > post here to reach out for some advice/help.
>
> > I have a GWT 1.5.3 application that works with Stripes 1.4.2
> > framework. In that configuration, the application compiles/runs
> > successfully. However, I am attempting to upgrade the application to
> > GWT 2.2.0 and have been running into the Deferred Binding compile
> > error in all post GWT 2.0 versions. I did not receive the error in any
> > of the pre 2.0 versions.
>
> > My setup is the following:
>
> > gwt-maven-plugin - 1.2
> > gwt - 2.0
> > stripes - 1.4.2
>
> > The specific error I receive when compiling using the maven plugin is:
>
> > [INFO]    [ERROR] Errors in 'jar:file:/C:/Users/Kevin/.m2/repository/
> > mil/whs/eccs/eccs-commons-client/4.0/eccs-commons-client-4.0-
> > sources.jar!/mil/whs/eccs/model/gwt/organization/service/
> > GwtOrganizationServiceWrapper.java'
> > [INFO]       [ERROR] Line 19:  Failed to resolve
> > 'mil.whs.eccs.model.gwt.organization.service.GwtOrganizationService'
> > via deferred binding
> > [INFO]    [ERROR] Cannot proceed due to previous errors
>
> > The application has 7 GWT modules in the POM. The really bizarre part
> > of this whole issue is that the error appears randomly. Sometimes all
> > 7 compile with no errors, other times, 5 compile, and sometimes it
> > fails before the first compile. So it is hard to imagine it is
> > actually a deferred binding exception and not something else.
>
> > I am wondering if it could be an issue between GWT 2.0 and stripes but
> > I am not sure. I would appreciate any help in resolving this issue.
>
> > --
> > You received 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+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

How to update CellTable's Header Cell based on action in data table

Hey everyone! I have a question that I cannot seem to find the right
answer to. I'm using a 2 cell tables, one for a fixed header with one
row that scrolls with the other which holds my main data rows.
Basically, I want to implement a tri-state checkbox in one of the
column headers. I was successfully able to create a new
TriStateCheckboxCell that extends AbstractCell and it is wrapped by a
Header<Enum>. Using this class I render either an unchecked input
(checkbox) when no rows in the main table are selected, a checked
input when all the rows in the main table are selected, or an img that
represents an intermediate state of a checkbox when only some of the
rows in the main table are selected. Using a ValueUpdater I can
select all or none of the rows in the main table when the Header's
TriStateCheckboxCell is clicked. All of this works fine. My problem
comes when the user selects a row in the main table and I want to set
the Header's checkbox to the intermediate state. This calls for me to
update or re-render the contents of the Header Cell when the selection
model has been changed. So in my SelectionModel's
SelectionChangeEvent onSelectionChange method I need to update the
cell. This would involve calling it's onBrowserEvent or setValue
method, both of which take the parent Element as a parameter. Only,
Cell does not contain a reference to or extend the Element class. The
problem is that in order to re-render the Cell, I need it's parent
Element. Obtaining this Element is not straightforward to me. I was
able to get it by manually traversing the DOM via the
CellTable.getElement and going down, however this is not ideal. Is
there other methodology that I am not aware of? Am I thinking about
this the wrong way? 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: http error:503

Hey you should probably check your web.xml file in the war folder.
There must be some error in your servlet or servlet-mapping tag

On Apr 29, 9:37 pm, katew523 <katew...@gmail.com> wrote:
> I have just started using GWT and i am getting this error every time i
> run my application on the web browser
> plz help
>
> HTTP ERROR: 503
> SERVICE_UNAVAILABLE
> RequestURI=/gwtproj.html
>
> Powered by jetty://

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re : Re: move or not to move to Firefox 4 for GWT development



Le vendredi 29 avril 2011 17:55:08 UTC+2, Tim Goeke a écrit :
Furthermore, when hitting return, the char code returned is zero, not
13 as expected.  These seem to be some significant flaws in early
testing.

That one is a known "issue" (it's a Firefox issue that GWT does not take care of): http://code.google.com/p/google-web-toolkit/issues/detail?id=5558 

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Many injections of same css

In many ui binder files I have

<ui:style field='global' src='resources/global.css'/>

If I have 20 ui binder files all referencing this global.css file I
end up with 20 copies of global.css injected into the html. How to
stop GWT from injecting global.css 20 times?

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Not Working for Higher Screen Resolutions

That wouldn't have anything to do with GWT. It would have everything
to do with the styles and what html has been created by GWT, which you
programmed. Best thing to do is to inspect the page in the browser to
see what is causing the page to not look right. Then you should be
able to figure out what panel or table you need to change in order for
you page to flow correctly.

On Apr 28, 3:53 am, Lakshitha <lkarunara...@gmail.com> wrote:
> Hello Everyone,
>
> I have an application developed using GWT.
> For screen resolutions higher than 1400x1050, panels are not alligning
> properly.
>
> Any idea why this is happening ?

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

Re: Dev mode in ie8/vista32 - always see "Development Mode requires the Google Web Toolkit Developer Plugin"

FYI I have a related stack overflow question here...

http://stackoverflow.com/questions/5786312/troublshooting-guide-for-gwt-plugin

On Apr 29, 11:39 am, Benju <b...@fastcastmedia.com> wrote:
> When I try to use dev mode on my machien with ie8/vista32 I
> continually see
>
> "Development Mode requires the Google Web Toolkit Developer
> Plugin" (the download plugin option).  I was prompted once to "allow
> addon to run" via the security bar but no longer and nothing loads.
>
> How do I troubleshoot this?  I have triedhttp://gwt.google.com/missing-plugin/MissingPlugin.html
> but it did not work at all.  I am on GWT 2.2.0 via maven central.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Dev mode in ie8/vista32 - always see "Development Mode requires the Google Web Toolkit Developer Plugin"

When I try to use dev mode on my machien with ie8/vista32 I
continually see

"Development Mode requires the Google Web Toolkit Developer
Plugin" (the download plugin option). I was prompted once to "allow
addon to run" via the security bar but no longer and nothing loads.

How do I troubleshoot this? I have tried http://gwt.google.com/missing-plugin/MissingPlugin.html
but it did not work at all. I am on GWT 2.2.0 via maven central.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT Visualization Performance/Optimization

I've been using the Google Visualization XY Scatter Chart. We want to
graph several thousand points on the chart. I've run several
experiments now by setting up the DATA Table with various block sizes
of data. The problem is that once there are more than a hundred
points it takes a very long time to render the graph. I tried 2000
points and the browser locked up.

What can I do to solve this problem? Compiler Optimization?


--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: http error:503

What do you see in the server console log?

On Fri, Apr 29, 2011 at 12:37 PM, katew523 <katew523@gmail.com> wrote:
I have just started using GWT and i am getting this error every time i
run my application on the web browser
plz help

HTTP ERROR: 503
SERVICE_UNAVAILABLE
RequestURI=/gwtproj.html

Powered by jetty://

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Session timeouts

See http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/

/dmc

On Fri, Apr 29, 2011 at 12:59 PM, Vik <vik.ceo@gmail.com> wrote:
Hie

How to detect session timeout and show a pop to user to relogin? My app is GWT +GAE.


Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Session timeouts

Hie

How to detect session timeout and show a pop to user to relogin? My app is GWT +GAE.


Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Trying to send image to server

On 4/29/2011 9:17 AM, Patssay wrote:
> Hi,
>
> Thanks.
> So I should have the Email class in the shared folder?
Yes
> Also should the module.gwt.xml file be updated?
Yes - it should have:

<source path='shared' />

it it.

But mainly, you need to make sure that your server-side classpath contains the file, because the
server must be able to instantiate it.

That's what your original error seemed to imply. GWT de-serializes classes on the server by looking
for the classname as a string in the RPC payload and then doing a 'Class.forName'. Thus the class
must be available to the server classloader. To be honest, I don't understand why yours isn't if you
are using eclipse, because the typical GWT project setup adds all the classes in the src folder to
the classpath. Are you getting this problem when you are running under the debugger in Eclipse? or
only when you deploy. If its the later, you should check that the *client* and *shared* .class files
are present under WEB-INF/war/classes folder.

HTH

Alan


> Actually I am trying to implement the functionality of sending email
> from my gwt application.
> I have the functionality up and running on the server. All it needs is
> the
> email addresses from the client and the image that should be sent from
> the client to the server.
> Hence the need for class email which has all these attributes
> enclosed.
> From what I read gwt allows the user defined classes to be sent to the
> server provided they are serialized.
> Really appreciate your help.
>
> Cheers,
> Sayali
>
> On Apr 29, 8:36 am, Alan Chaney<a...@mechnicality.com> wrote:
>> You need to make sure that your client class is in the *server's* classpath. The exception below
>> indicates that its not.
>>
>> I make it a practice to have a 'shared' package hierarchy parallel to my client packages and ensure
>> that:
>>
>> A. shared is declared in the module gwt.xml file
>>
>> B. shared is also available to the server C/P
>>
>> HTH
>>
>> Alan
>>
>> On 4/29/2011 6:25 AM, Patssay wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> Hi,
>>> I am trying to send an image from client to server.
>>> I have used ImageResources on client side to load images.
>>> but now i want to send the image to server side and send mail
>>> from the server side?
>>> I tried creating class on client side and made it seriablizable.
>>> but it throws errors.
>>> aused by: java.lang.ClassNotFoundException:
>>> umd.hci.greetingcardmaker.client.Email
>>> at java.lang.ClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at
>>> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java :
>>> 352)
>>> at
>>> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java :
>>> 337)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Unknown Source)
>>> at
>>> com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName(RPC.java:
>>> 700)
>>> at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:290)
>>> ... 22 more
>>> Email is my defined client side class.
>>> Thanks
>>> Sayali
>> --
>> Alan Chaney
>> CTO and Founder, Mechnicality, Inc.www.mechnicality.com


--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

http error:503

I have just started using GWT and i am getting this error every time i
run my application on the web browser
plz help

HTTP ERROR: 503
SERVICE_UNAVAILABLE
RequestURI=/gwtproj.html

Powered by jetty://

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

mvp complex model

usually, the model in mvp is the DTO, in case the model is complex,
for example, when the validation of user input is elaborate, do you
put the validation methods in the DTO, or the presenter, or another
group of dedicated model behavior classes?

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Application works locally, but not from remote server?

Bob, someone else on the forum recently had an issue with GoDaddy hosting, too. If you want to try to debug, have a look at 


Otherwise may I recommend Google App Engine? ;-)

/dmc

On Fri, Apr 29, 2011 at 11:42 AM, Bob Wirka <bobwirka@gmail.com> wrote:
Karl,

Don't mean to pester, but interestingly the subdirectory setup works on one of my local machines running Boa (a small web server).

So, *some* web servers can handle the subfolder location.

Thanks again,

Bob

On Thu, Apr 28, 2011 at 5:56 PM, Karl Meiser <karldotm@gmail.com> wrote:
Bob,

Does your hosting service provide Tomcat or something similar? The HTML won't just work by itself unfortunately.

I can try to help you more but I need more information.

Karl

On Thu, Apr 28, 2011 at 1:32 PM, BobWirka <bobwirka@gmail.com> wrote:
I've created a GWT Java Application from the wizard (the one with the
Click Me! button). It compiles, and if I open the html file from
Firefox, all is good; the button appears as does the popup dialog box
when the button is clicked.

However, when the files are ftp'd to my web hosting service the button
does not appear. The web page is found and loaded, but the GWT button
does not display.

Windows Internet Explorer behaves the same way.

Google Chrome will not even display the button locally, though the
page does load.

There are no elements in the html <body>, as I'd like to generate a
purely javaScript html element to be a part of a larger html page.

Would anyone know why this may be happening? I've transferred the
whole war directory to the web host, but no luck yet.

Thanks,

Bob Wirka

--

You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


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

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



--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Trying to send image to server

Hi,

Thanks.
So I should have the Email class in the shared folder?
Also should the module.gwt.xml file be updated?

Actually I am trying to implement the functionality of sending email
from my gwt application.
I have the functionality up and running on the server. All it needs is
the
email addresses from the client and the image that should be sent from
the client to the server.
Hence the need for class email which has all these attributes
enclosed.
From what I read gwt allows the user defined classes to be sent to the
server provided they are serialized.
Really appreciate your help.

Cheers,
Sayali

On Apr 29, 8:36 am, Alan Chaney <a...@mechnicality.com> wrote:
> You need to make sure that your client class is in the *server's* classpath. The exception below
> indicates that its not.
>
> I make it a practice to have a 'shared' package hierarchy parallel to my client packages and ensure
> that:
>
> A. shared is declared in the module gwt.xml file
>
> B. shared is also available to the server C/P
>
> HTH
>
> Alan
>
> On 4/29/2011 6:25 AM, Patssay wrote:
>
>
>
>
>
>
>
>
>
> > Hi,
>
> > I am trying to send an image from client to server.
> > I have used ImageResources on client side to load images.
> > but now i want to send the image to server side and send mail
> > from the server side?
>
> > I tried creating class on client side and made it seriablizable.
> > but it throws errors.
>
> > aused by: java.lang.ClassNotFoundException:
> > umd.hci.greetingcardmaker.client.Email
> >    at java.lang.ClassLoader.findClass(Unknown Source)
> >    at java.lang.ClassLoader.loadClass(Unknown Source)
> >    at java.lang.ClassLoader.loadClass(Unknown Source)
> >    at
> > org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java :
> > 352)
> >    at
> > org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java :
> > 337)
> >    at java.lang.Class.forName0(Native Method)
> >    at java.lang.Class.forName(Unknown Source)
> >    at
> > com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName(RPC.java:
> > 700)
> >    at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:290)
> >    ... 22 more
>
> > Email is my defined client side class.
>
> > Thanks
> > Sayali
>
> --
> Alan Chaney
> CTO and Founder, Mechnicality, Inc.www.mechnicality.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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: move or not to move to Firefox 4 for GWT development

I am using FF4 on Mac OS X (in development mode) and I have found that
text entry boxes are broken. When setting input focus, the
StockWatcher application does not set focus to the text box.
Furthermore, when hitting return, the char code returned is zero, not
13 as expected. These seem to be some significant flaws in early
testing.

I have not had a chance to try FF4 under Windows.

On Mar 23, 10:46 am, Jeff Chimene <jchim...@gmail.com> wrote:
> On 03/23/2011 07:52 AM, Jens wrote:
>
> > I did it today and so far it works. Just make sure FF4 installs the
> > latest GWT Plugin.
>
> I did find that I had to remove the plugin & reinstall via the "missing
> plugin" page. But, it might have been a quirk of the moment, as there
> was an active session.
>
> Noticeably faster.
>
> Linux AMD-64

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: com.google.gwt.user.client.rpc.SerializationException

Hi,
 
Check that your Hibernate files are placed in the src folder as Dolly had mentioned.
We were working on a similar project and got similar error
 
Also confirm if your RPC service method can return a List as you are getting an error in List coz for our project we colud return only a string object as returning a list gave errors
 
Furthermore, writing a Query in hibernate and GWT is slightly different.I am sending you an example of my server side query,check if you find it useful:

Query query=session.createQuery("select Empname from Addmemberserv where Empname like :param1 and Passwd like :param2");

              query.setString("param1", input1);

              query.setString("param2", input2);

    

 Addmemberserv is my table name input1 and input2 are my textboxes

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Application works locally, but not from remote server?

Karl,

Don't mean to pester, but interestingly the subdirectory setup works on one of my local machines running Boa (a small web server).

So, *some* web servers can handle the subfolder location.

Thanks again,

Bob

On Thu, Apr 28, 2011 at 5:56 PM, Karl Meiser <karldotm@gmail.com> wrote:
Bob,

Does your hosting service provide Tomcat or something similar? The HTML won't just work by itself unfortunately.

I can try to help you more but I need more information.

Karl

On Thu, Apr 28, 2011 at 1:32 PM, BobWirka <bobwirka@gmail.com> wrote:
I've created a GWT Java Application from the wizard (the one with the
Click Me! button). It compiles, and if I open the html file from
Firefox, all is good; the button appears as does the popup dialog box
when the button is clicked.

However, when the files are ftp'd to my web hosting service the button
does not appear. The web page is found and loaded, but the GWT button
does not display.

Windows Internet Explorer behaves the same way.

Google Chrome will not even display the button locally, though the
page does load.

There are no elements in the html <body>, as I'd like to generate a
purely javaScript html element to be a part of a larger html page.

Would anyone know why this may be happening? I've transferred the
whole war directory to the web host, but no luck yet.

Thanks,

Bob Wirka

--

You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


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

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

Re: GWT 2.1 vs GWT 2.2 and this forum

If you look at recent participation, sure, I guess they're all working hard to be ready for I/O (2 weeks from now!), and they've all been working very hard for the whole past year (places and activities, Cell widgets, request factory, editor framework, safehtml!).
John Labanca however regularly answers about Cell widgets, and Eric Clayberg about the GPE and GWT Designer.
There's a LOT of activity in the GWT-Contributors group though, they're all working very hard (and recently, the Orkut team has been contributing very actively to UiBinder fwiw).
People in charge of "public relations" (i.e. developer advocates, like David Chandler) are maybe more than others busy preparing I/O.
Philippe Beaudoin having joined Google this week <https://profiles.google.com/philippe.beaudoin/posts/PaMzvBmHEVs> maybe he'll dedicate some time to the GWT community (I mean, in addition to the GWTP one); but he'll probably not be working on GWT, so maybe not... (who knows?)

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Application works locally, but not from remote server?

Karl,

The application is under the root, too; so you can go to http://www.rtcworks.com/TestModule.html and see it working.

Bob

On Thu, Apr 28, 2011 at 5:56 PM, Karl Meiser <karldotm@gmail.com> wrote:
Bob,

Does your hosting service provide Tomcat or something similar? The HTML won't just work by itself unfortunately.

I can try to help you more but I need more information.

Karl

On Thu, Apr 28, 2011 at 1:32 PM, BobWirka <bobwirka@gmail.com> wrote:
I've created a GWT Java Application from the wizard (the one with the
Click Me! button). It compiles, and if I open the html file from
Firefox, all is good; the button appears as does the popup dialog box
when the button is clicked.

However, when the files are ftp'd to my web hosting service the button
does not appear. The web page is found and loaded, but the GWT button
does not display.

Windows Internet Explorer behaves the same way.

Google Chrome will not even display the button locally, though the
page does load.

There are no elements in the html <body>, as I'd like to generate a
purely javaScript html element to be a part of a larger html page.

Would anyone know why this may be happening? I've transferred the
whole war directory to the web host, but no luck yet.

Thanks,

Bob Wirka

--

You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


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

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

Re: Application works locally, but not from remote server?

Karl,

I'm hosted by GoDaddy; it's their Linux host, and I don't know which http server they're running. I do not have any server-side cgi capabilities (I've got the basic package).

What I tried to do was put the GWT application in a folder under the root of my ftp area:

/
  |
  |
  /cgi
     
TestModule.html
     
TestModule.css
      /com.TestModule
         com.
TestModule.nocache.js
         <other stuff from war>

So, I'd direct my browser to "www.rtcworks.com/cgi/TestModule.html". The browser would find the html, but not the javascript.

If the files are moved to the root directory:

/
  |
  |
  
TestModule.html
  
TestModule.css
   /com.
TestModule
     com.TestModule.nocache.js
      <other stuff from war>

The whole thing works.

Since my application is in the "com" package in my Eclipse project, I'm wondering if there's a problem associated with the package path?

I've tried changing the html link from <script language="javascript" src="com.TestModule/com.TestModule.nocache.js"></script> to <script language="javascript" src="cgi/com.TestModule/com.TestModule.nocache.js"></script> (and other variations of path), but without success. It's up there now, so you could actually go to rtcworks.com/cgi/TestModule.html and see it misbehaving.

I'd just like to understand this so I can partition my host data and reduce clutter.

Thanks again for your response.

Best regards,

Bob Wirka

On Thu, Apr 28, 2011 at 5:56 PM, Karl Meiser <karldotm@gmail.com> wrote:
Bob,

Does your hosting service provide Tomcat or something similar? The HTML won't just work by itself unfortunately.

I can try to help you more but I need more information.

Karl

On Thu, Apr 28, 2011 at 1:32 PM, BobWirka <bobwirka@gmail.com> wrote:
I've created a GWT Java Application from the wizard (the one with the
Click Me! button). It compiles, and if I open the html file from
Firefox, all is good; the button appears as does the popup dialog box
when the button is clicked.

However, when the files are ftp'd to my web hosting service the button
does not appear. The web page is found and loaded, but the GWT button
does not display.

Windows Internet Explorer behaves the same way.

Google Chrome will not even display the button locally, though the
page does load.

There are no elements in the html <body>, as I'd like to generate a
purely javaScript html element to be a part of a larger html page.

Would anyone know why this may be happening? I've transferred the
whole war directory to the web host, but no luck yet.

Thanks,

Bob Wirka

--

You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


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

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

Synchronizing editor data

I am using GWT 2.2.0 with RequestFactory and the Editor framework.
What is the recommended way to keep to 2 editors in sync with a shared
proxy object attribute (the same object attribute is displayed in 2
editors)? I tried the following but ran into a few issues:

Using RequestFactoryEditorDriver I have an Editor that contains a
TabPanel with 2 tabs and contains 2 sub-editors (one for each tab).
Each sub-editor has a TextBox editor that edits MyProxy.xyz. I tried
the following:

- added a ValueChangeHandler for the TextBox on tab 1,
onValueChange update the proxy object attribute with the value in the
TextBox and then fire an EntityProxyChange UPDATE event on the
eventBus.

- Have the sub-editor on tab 2 implement ValueAwareEditor and
subscribe() via the EditorDelegate.

This seems to work. The TextBox on the second tab was updated with the
value entered in the TextBox on the first tab. However there are a
couple of side effects:

1) When the sub-editor gets the event from the eventBus, it internally
fires a RequestFactory call to find the proxy by id from the database.
It seems that it should not need to do this but rather just refresh
the editors with the fully populated proxy object in memory. This is
why I am questioning if I am using the right approach of creating
EntityProxyChange events and subscribing.

2) Was getting an IllegalStateException: A request is already in
progress exception why I tried to do an update request later on. It
was due to a SubscriptionReceiver getting called as a result of the
update response via the EntityProxyChange UPDATE event. The
SubscriptionReceiver was referening to the current
RequestFactoryEditorDelegate that had the RequestContext from the
update request that was just fired and is now locked. OnSuccess() in
the Receiver() was not called yet so I was not able to call edit() on
the driver which would create a new RequestFactoryEditorDelegate with
a new RequestContext passed in. To get around this I removed the
handler on the sub-editor in the flush() method since I did not need
to handle the event at that point. Again, seems like my approach is
more complicated than it should be.

Question 1) Is there a better way to do this, essentially flush and
refresh the editors without making a request to the server? Am I
missing something?

Question 2) I followed this same pattern with a display only CellTable
editor as part of the sub-editor, but it did not get updated when the
proxy event was sent. Is there something that needs to be done to
support the CellTable? The data was initially set correctly in the
CellTable by the driver, but it does not get updated like the other
editors.

public class SubEditor2 extends Composite implements
ValueAwareEditor<MyProxy>{

private CellTable<SomeProxy> table = new CellTable<SomeProxy>();

// this does not get refreshed correctly but is initially displayed
correctly
@Path("someProxyList")
HasDataEditor<SomeProxy> tableEditor = HasDataEditor.of(table);

private TextBox textBox2 = new TextBox();

// this gets refreshed correctly
@Path("xyz")
final HasTextEditor xyzEditor = HasTextEditor.of(textBox2);

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