Re: Using PNG fails compilation on Linux

2009-02-04 Thread olivier FRESSE
No issue on my side either.

Maybe your PNG file is corrupted.
The exception shows an End Of File...
This can happen with a ftp transfert in text mode for example.
Can you open the picture on Linux without issues or warning (with your
browser, gimp, ... )
If ImageMagick is installed, you can use "identify myimg.png"

Regards.
O.


2009/2/4 Jeremiah Elliott 

>
> I use png files all the time, and build under linux with no issues.
> Any chance this is a case issue?
>
> On 2/3/09, Salman Hemani  wrote:
> >
> > Hello everyone,
> >
> > I am using 1.5.3 and although everything works fine on Windows, our
> > compile fails on Linux due to the exception pasted below. I found the
> > following post that discusses the same error although the tmp
> > directory is not our issue (unless I am missing something here).
> >
> > Here is the related post:
> >
> >
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/1a9d962a11f4f030/605bd4253dedfe17?lnk=gst&q=linux+png#605bd4253dedfe17
> >
> > Does anyone know why using PNG fails the compilation on Linux? Is this
> > a known issue? Our temporary work around is to use GIF instead of
> > PNG.
> >
> > Compilation trace:
> >
> >  [echo] Compiling com.mycompany.myproject.MyProject
> >  [java] Compiling module com.mycompany.myproject.MyProject
> >  [java] java.io.EOFException
> >  [java] at javax.imageio.stream.ImageInputStreamImpl.readFully
> > (ImageInputStreamImpl.java:330)
> >  [java] at java.io.DataInputStream.readUTF
> > (DataInputStream.java:565)
> >  [java] at javax.imageio.stream.ImageInputStreamImpl.readUTF
> > (ImageInputStreamImpl.java:309)
> >  [java] at
> > com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk
> > (PNGImageReader.java:443)
> >  [java] at
> > com.sun.imageio.plugins.png.PNGImageReader.readMetadata
> > (PNGImageReader.java:647)
> >  [java] at com.sun.imageio.plugins.png.PNGImageReader.readImage
> > (PNGImageReader.java:1309)
> >  [java] at com.sun.imageio.plugins.png.PNGImageReader.read
> > (PNGImageReader.java:1579)
> >  [java] at javax.imageio.ImageIO.read(ImageIO.java:1400)
> >  [java] at javax.imageio.ImageIO.read(ImageIO.java:1364)
> >  [java] at
> > com.google.gwt.user.rebind.ui.ImageBundleBuilder.addImage
> > (ImageBundleBuilder.java:391)
> >  [java] at
> > com.google.gwt.user.rebind.ui.ImageBundleBuilder.assimilate
> > (ImageBundleBuilder.java:303)
> >  [java] at
> > com.google.gwt.user.rebind.ui.ImageBundleGenerator.generateImplClass
> > (ImageBundleGenerator.java:301)
> >  [java] at
> > com.google.gwt.user.rebind.ui.ImageBundleGenerator.generate
> > (ImageBundleGenerator.java:159)
> >  [java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize
> > (RuleGenerateWith.java:51)
> >  [java] at com.google.gwt.dev.shell.StandardRebindOracle
> > $Rebinder.tryRebind(StandardRebindOracle.java:116)
> >  [java] at com.google.gwt.dev.shell.StandardRebindOracle
> > $Rebinder.rebind(StandardRebindOracle.java:61)
> >  [java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind
> > (StandardRebindOracle.java:166)
> >  [java] at com.google.gwt.dev.GWTCompiler
> > $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers
> > (GWTCompiler.java:195)
> >  [java] at
> >
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
> > (WebModeCompilerFrontEnd.java:128)
> >  [java] at com.google.gwt.dev.jdt.AbstractCompiler
> > $CompilerImpl.process(AbstractCompiler.java:150)
> >  [java] at org.eclipse.jdt.internal.compiler.Compiler.compile
> > (Compiler.java:392)
> >  [java] at com.google.gwt.dev.jdt.AbstractCompiler
> > $CompilerImpl.compile(AbstractCompiler.java:84)
> >  [java] at com.google.gwt.dev.jdt.AbstractCompiler
> > $CompilerImpl.compile(AbstractCompiler.java:180)
> >  [java] at com.google.gwt.dev.jdt.AbstractCompiler
> > $CompilerImpl.access$400(AbstractCompiler.java:70)
> >  [java] at com.google.gwt.dev.jdt.AbstractCompiler.compile
> > (AbstractCompiler.java:493)
> >  [java] at
> >
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations
> > (WebModeCompilerFrontEnd.java:73)
> >  [java] at
> > com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.
> > (JavaToJavaScriptCompiler.java:277)
> >  [java] at com.google.gwt.dev.GWTCompiler.distill
> > (GWTCompiler.java:353)
> >  [java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
> > 564)
> >  [java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
> > 554)
> >  [java] at com.google.gwt.dev.GWTCompiler.main
> > (GWTCompiler.java:214)
> >  [java] Scanning for additional dependencies: file:/home/nightly/
> > coreIII/main/src/webui/MyProject/src/com/mycompany/myproject/client/
> > ClientManager.java
> >  [java]Computing all possible rebind results for
> > 'com.my

Re: JVM crash in hosted mode

2009-01-28 Thread olivier FRESSE
never seen that...
What's your GWT version, and can you post the log trace ?

2009/1/27 Florian 

>
> Hello everyone,
> Whenever I try to run or debug my JVM crashes when GWT development
> browser tries to access a https page. Probably the credentials are
> missing butt a crash seems to be a rather odd reaction to that...
> Anybody ever noticed some similar problems?
>
> best regards
> Florian
>
> >
>

--~--~-~--~~~---~--~~
You received 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/debug a widget and use 2 different Java packages in the same project?

2009-01-16 Thread olivier FRESSE
Hi,
Put your widget code in a jar file, and use it as a module in your test
code.

http://code.google.com/support/bin/answer.py?answer=55197&topic=10211


2009/1/16 Fred Janon 

> Hi,
>
> I am developing a widget that I would like to package in a jar for use in
> GWT projects. I created a new project for my widget, wrote the code and
> debugged it in its own project. Now I want to create a test project (in a
> different Java package) and be able to still modify/debug my widget without
> having to build a jar every time. Basically the question is: can we work in
> an Eclipse project with 2 different Java packages, one for the application,
> one for a widget under development. I would be the same as modying the GWT
> code in a client project. I am using GWT 15.3 and Eclipse.
>
> Thanks
>
> Fred
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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: HTML to String does not respond to events

2009-01-13 Thread olivier FRESSE
when you add the html code, you loose all the JScript generated by GWT
to manage the click listener.
So the behavior is normal.

For the solution I'm not sure to understand what you're trying to do :-)
Maybe a composite with a top panel playing the header role and a center one
to manage added widgets ?


2009/1/13 Michel 

>
> Hi,
>
> In the header of a DialogBox I want to put an image that when is
> clicked, the Dialog is closed. My code is the following one:
>
> final Image closeWindowImg = new Image();
> closeWindowImg.setSize("13pt", "13pt");
> closeWindowImg.addClickListener(new ClickListener() {
>public void onClick(final Widget sender) {
>System.out.println("img clicked!");
>hide();
>}
> });
>
> //String x = html_close.toString();
> String x = closeWindowImg.getElement().getInnerHtml();
>
> String h = " Reload
> Network " + x + "";
> setHTML(header);
>
> But when I click on the image, anything happens. How can I do to close
> the DialogBox by clicking on the image? I need to put the image using
> HTML because it must be in the header of the DialogBox, so inserting
> the image as an image widget doesn't work for me.
>
> Any idea?
>
> Thank you very much!
> >
>

--~--~-~--~~~---~--~~
You received 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: Recommended GWT Maven plugin

2009-01-12 Thread olivier FRESSE
we're curently using http://code.google.com/p/gwt-maven/ , so far, so good
:-)

2009/1/13 Joshua Partogi 

>
> Hi all,
>
> What is the recommended GWT plugin for Maven?
> * http://code.google.com/p/gwt-maven/ or
> * http://mojo.codehaus.org/gwt-maven-plugin/
>
> For those who has done their research, feedback are highly
> appreciated.
>
> Thank you very much 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: Problem extending SelectionScriptLinker

2009-01-12 Thread olivier FRESSE
Extending a GWT component is not a good idea.
It's better to use a composite to create the component that fit your needs.
Take a look at
http://code.google.com/intl/fr/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideCreatingCustomWidgets
Regards.


2009/1/12 Kamlesh 

>
> Hi,
>
> I am a newbie in GWT. I have tried extending the SelectionScriptLinker
> class to apply stylesheet based on some condition. But after
> successful compilation of the code, when I run the main html file it
> appears to go in infinite loop. The browser keeps on trying opening
> the html, but it could not open it. Following is my code:
>
>
> ---
> @LinkerOrder(LinkerOrder.Order.PRIMARY)
> public class StyleSheetLinker extends SelectionScriptLinker {
>
>@Override
>protected String generateStylesheetInjector(String stylesheetUrl) {
>if (stylesheetUrl.endsWith("styles1.css")) {
>System.out.println("Using different style
> styles2.css");
>stylesheetUrl = "styles2.css";
>}
>String hrefExpr = "'" + stylesheetUrl + "'";
>if (isRelativeURL(stylesheetUrl)) {
>hrefExpr = "base + " + hrefExpr;
>}
>
>return "if (!__gwt_stylesLoaded['"
>+ stylesheetUrl
>+ "']) {\n   "
>+ "  var l = $doc.createElement('link');
> \n  "
>+ "  __gwt_stylesLoaded['"
>+ stylesheetUrl
>+ "'] = l;\n "
>+ "  l.setAttribute('rel', 'stylesheet');
> \n "
>+ "  l.setAttribute('href', "
>+ hrefExpr
>+ ");\n"
>+ "
>  $doc.getElementsByTagName('head')[0].appendChild(l);
> \n "
>+ "}\n";
>}
>
>@Override
>public ArtifactSet link(TreeLogger logger, LinkerContext context,
>ArtifactSet artifacts) throws
> UnableToCompleteException {
>ArtifactSet toReturn = new ArtifactSet(artifacts);
>
>for (CompilationResult compilation : toReturn
>.find(CompilationResult.class)) {
>System.out.println("calling doEmitCompilation");
>toReturn.add(doEmitCompilation(logger, context,
> compilation));
>}
>
>toReturn.add(emitSelectionScript(logger, context,
> artifacts));
>
>return toReturn;
>}
>
>@Override
>protected EmittedArtifact emitSelectionScript(TreeLogger logger,
>LinkerContext context, ArtifactSet artifacts)
>throws UnableToCompleteException {
>
>DefaultTextOutput out = new DefaultTextOutput(true);
>
>// Emit the selection script in a function closure.
>out.print("(function () {");
>out.newlineOpt();
>String bootstrap = generateSelectionScript(logger, context,
> artifacts);
>bootstrap = context.optimizeJavaScript(logger, bootstrap);
>out.print(bootstrap);
>out.print("})();");
>out.newlineOpt();
>
>byte[] selectionScriptBytes = Util.getBytes(out.toString());
>return emitBytes(logger, selectionScriptBytes,
> context.getModuleName
> ()
>+ ".nocache.js");
>}
>
>@Override
>protected String generateSelectionScript(TreeLogger logger,
>LinkerContext context, ArtifactSet artifacts)
>throws UnableToCompleteException {
>
>StringBuffer selectionScript;
>try {
>selectionScript = new StringBuffer(Utility
>
>  .getFileFromClassPath(getSelectionScriptTemplate(logger,
>context)));
>} catch (IOException e) {
>logger.log(TreeLogger.ERROR,
>"Unable to read selection script
> template", e);
>throw new UnableToCompleteException();
>}
>
>replaceAll(selectionScript, "__MODULE_FUNC__", context
>.getModuleFunctionName());
>replaceAll(selectionScript, "__MODULE_NAME__",
> context.getModuleName
> ());
>
>int startPos;
>
> 

Re: Problems with newline symbol in a TextArea (works in IE but not in Firefox)

2009-01-12 Thread olivier FRESSE
If I remember well, textarea uses \r\n as newline characters, whatever the
platform/browser is


2009/1/12 LFCPD 

>
> Hi all,
>
> In my application I insert a newline symbol in a textArea like
> follows:
>
> TextArea ta = new TextArea();
> ta.setText("1.1.1.1\n1.1.1.2\n1.1.1.3");
>
> And in IE it appears like follows inside the TextArea (and is correct
> like this):
> 1.1.1.1
> 1.1.1.2
> 1.1.1.3
>
> Later, in my application I have to read the content of this textArea
> and recognize separately each line, and I do it by the \n symbol.
>
> In IE it works perfectlky (it founds three elements), but not in
> Firefox, it seams like Firefox doesn't know the \n symbol. I've been
> looking around but I didn't find anything.
>
> Can you help me, please?
>
> 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: Unable to open web app in hosted mode

2009-01-12 Thread olivier FRESSE
Hard to help you with so few informations :-)
Anyway, it looks like you're using linux.
I don't know what's your distro, but first, check your java installation.
You hava a JDK installed in /home/sahil/jdk1.6.0, but you may have other JDK
(different versions)
installed elsewhere.
If you have a JAVA_HOME defined, a LD_LIBRARY_PATH or even a simple PATH,
whatever in your environement which can result
in a mix of JDK at runtime, you may have this kind of errors.


2009/1/11 Sahil Dave 

> Does anyone know what this error is..?
> whenever i create a new project, the default files run perfectly fine in
> hosted mode.
>
>
>
> On Sat, Jan 10, 2009 at 12:55 AM, Sahil Dave wrote:
>
>> Hi..
>>
>> i am getting the following errors in console while trying to open web app
>> in hosted mode
>>
>> Locking assertion failure.  Backtrace:
>> #0 /usr/lib/libxcb-xlib.so.0 [0xb4c4f7c7]
>> #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb4c4f891]
>> #2 /usr/lib/libX11.so.6(_XReply+0x254) [0xb4feb494]
>> #3 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e4722e]
>> #4 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e25ed7]
>> #5 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e26188]
>> #6
>> /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f)
>> [0xb0e2648f]
>> #7 [0xb5c9868e]
>> #8 [0xb5c90e9d]
>> #9 [0xb5c90e9d]
>> #10 [0xb5c8e207]
>> #11 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
>> #12 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x63057d8]
>> #13 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x6209510]
>> #14
>> /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b)
>> [0x625f38b]
>> #15
>> /home/sahil/jdk1.6.0/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
>> [0xb7ca996d]
>> #16 [0xb5c9868e]
>> #17 [0xb5c90d37]
>> #18 [0xb5c8e207]
>> #19 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
>> Locking assertion failure.  Backtrace:
>> #0 /usr/lib/libxcb-xlib.so.0 [0xb4c4f7c7]
>> #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb4c4f96e]
>> #2 /usr/lib/libX11.so.6 [0xb4fea619]
>> #3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb4fe0666]
>> #4 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e25189]
>> #5 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e253d5]
>> #6 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e26239]
>> #7
>> /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f)
>> [0xb0e2648f]
>> #8 [0xb5c9868e]
>> #9 [0xb5c90e9d]
>> #10 [0xb5c90e9d]
>> #11 [0xb5c8e207]
>> #12 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
>> #13 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x63057d8]
>> #14 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x6209510]
>> #15
>> /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b)
>> [0x625f38b]
>> #16
>> /home/sahil/jdk1.6.0/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
>> [0xb7ca996d]
>> #17 [0xb5c9868e]
>> #18 [0xb5c90d37]
>> #19 [0xb5c8e207]
>>
>>
>> Does anyone know how to resolve this.
>>
>> --
>> Sahil
>>
>
>
>
> --
> Sahil
>
> MCA(SE)
> USIT
> GGSIPU, Kashmere Gate
> Delhi
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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: step by step to build entire web app with gwt1.5

2009-01-12 Thread olivier FRESSE
You can also consider buying some GWT books.
Most of them are built on top of a sample application


2009/1/12 saurabh hirani 

>
> You can pick up some of the web app parts from these tutorials. I
> don't think any of them deal with building a login based web app
> directly but in bits and pieces they can give you the direction that
> you might need:
>
> In the order of preference:
>
>
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=GettingStartedTutorial
> http://www.ibm.com/developerworks/java/library/j-ajax4/
> http://www.softwaredesign.co.uk/gwt.html
>
> I think that if you have created the sample stockwatcher of google,
> you will cover most of the ground required for creating a basic app
> and you can build on that.
>
>
> regards,
> Saurabh.
> >
>

--~--~-~--~~~---~--~~
You received 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: Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread olivier FRESSE
is com.sun.dmt.admin.server.login.LoginServiceImpl in the classpath of the
hosted browser ?
If you use the Tomcat instance of the hosted browser, that should be enough.


2009/1/9 joe young 

>
> I'm having trouble calling RPC in shell hosted mode.
>
> Currently I have a simple login page that use rpc to validate the user/
> password.  And when I tried running with shell hosted mode, it always
> give me an onFailure() Error "ERROR"
>  final AsyncCallback callback = new AsyncCallback() {
>public void onSuccess(Object result) {
>// take the result coming from the server
>boolean ok = Boolean.valueOf(result.toString
> ()).booleanValue();
>if (ok) {
>MessageBox.alert("Success", "Successfully logged
> in!");
>} else {
>MessageBox.alert("Invalid", "Your User/Password
> combination is incorrect.");
>}
>}
>public void onFailure(Throwable caught) {
>MessageBox.alert("Error", "ERROR:");
>}
>};
>
> From the error log, i got the following 3 errors.
> ---
> [INFO] StandardContext[]Marking servlet LoginService as unavailable
> ---
> [WARN] StandardContext[]Error loading WebappClassLoader
>  delegate: false
>  repositories:
> --> Parent Classloader:
> sun.misc.launcher$appclassloa...@1372a1a
>  com.sun.dmt.admin.server.login.LoginServiceImpl
> java.lang.ClassNotFoundException:
> com.sun.dmt.admin.server.login.LoginServiceImpl
>at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1340)
>at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1189)
>at org.apache.catalina.core.StandardWrapper.loadServlet
> (StandardWrapper.java:964)
>at org.apache.catalina.core.StandardWrapper.allocate
> (StandardWrapper.java:687)
>at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:144)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.StandardContextValve.invokeInternal
> (StandardContextValve.java:198)
>at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:152)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:137)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:118)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:102)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> 929)
>at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> 160)
>at org.apache.coyote.http11.Http11Processor.process
> (Http11Processor.java:799)
>at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>at org.apache.tomcat.util.net.TcpWorkerThread.runIt
> (PoolTcpEndpoint.java:577)
>at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:683)
>at java.lang.Thread.run(Thread.java:619)
> ---
> [WARN] StandardWrapperValve[LoginService]: Allocate exception for
> servlet LoginService
> javax.servlet.ServletException: Wrapper cannot find servlet class
> com.sun.dmt.admin.server.login.LoginServiceImpl or a class it depends
> on
>at org.apache.catalina.core.StandardWrapper.loadServlet
> (StandardWrapper.java:974)
>at org.apache.catalina.core.StandardWrapper.allocate
> (StandardWrapper.java:687)
>at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:144)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.StandardContextValve.invokeInternal
> (StandardContextValve.java:198)
>at org.apache.catalina.c

Re: Suggestions for creating a menu

2009-01-09 Thread olivier FRESSE
menu.addItem(...) returns the created MenuItem instance, ie the one added in
the menu.

MenuItem aboutUsItem = menu.addItem("About Us", cmd);

and then
 if(menu.getSelectedItem() == aboutUsItem)
should work.




2009/1/9 Sahil Dave 

>
>
> On Fri, Jan 9, 2009 at 8:00 PM, olivier FRESSE 
> wrote:
>
>> Maybe a menu bar ?
>> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/MenuBar.html
>> :-)
>>
>>
> > yes, i am using the menu bar. i want to create a single command reference
> and resolve all menu selections in it. for this i am trying to use the
> menubar's getSelectedItem() method. but what shud i check the returned item
> against...??
>
> *code:*
>
> MenuBar menu = new MenuBar();
> menu.addItem("About Us", cmd);
>
> Command cmd = new Command() {
>   public void execute() {
>   if(menu.getSelectedItem() == ?)
>   decPanel.setWidget(new MenuData());
>   }
>  };
>
>
> --
> Sahil
>
> MCA(SE)
> USIT
> GGSIPU, Kashmere Gate
> Delhi
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Suggestions for creating a menu

2009-01-09 Thread olivier FRESSE
Maybe a menu bar ?
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/MenuBar.html
:-)


2009/1/9 Sahil Dave 

> hi..
>
> if i want to create a main menu for my web application, what all widgets
> can i use to achieve this..?
>
> thanx and regards
>
> --
> Sahil
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Unable to run GWT + Flash on 64bit Linux

2009-01-09 Thread olivier FRESSE
The hosted comes with its ownMozilla distrib.
In your GWT folder, you have a mozilla-1.7.12/ folder.
and a "plugins" subfolder

I just did a :~/dev/gwt-linux-1.5.3/mozilla-1.7.12$ cp
/usr/lib/firefox/plugins/libflashplayer.so plugins/
and flash works.
However, I'm in a 32 bits version of Ubuntu.

regards.

PS :  in GWT home, the mozilla-hosted-browser.conf files makes me think that
it can reuse an existing mozilla installation.
Didn't try so far...


2009/1/8 googelybear 

>
> update: I copied the 32bit version of the libflashplayer.so to
> ~/.mozilla/plugins but it still no luck :-(
>
> Would it work if I was able to somehow install a 32bit version of
> firefox? Does the hosted mode browser use firefox?
> >
>

--~--~-~--~~~---~--~~
You received 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 get the String value from project html file to entry point class

2009-01-09 Thread olivier FRESSE
You're almost done :-)

You can't use
 @com.mantra.draw2d.Home.client:: checkLogin()()
in you handwritten javascript.

this notation can only be used from JSNI methods.

but as you did in your class, you can exposes these methods :

  private static native void checkLogin(Home x)/*-{


 $wnd.checkLogin = function(){

 x...@com.mantra.draw2d.home.
>
> client.Home::UserLogin()();
>  };


In you HTML, do :

function cheLogin(){
alert("GWT Call");
   checkLogin()
>
>
>alert("GWT Call");
> }


This should work.

O.




2009/1/9 rajesh_ch 

>
> Thanks for reply.
>
> My Entry point class :
>
> package com.mantra.draw2d.Home.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.Cookies;
> import com.google.gwt.user.client.Element;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.ClickListener;
> import com.google.gwt.user.client.ui.RootPanel;
> import com.google.gwt.user.client.ui.Widget;
>
> /**
>  * Entry point classes define onModuleLoad().
>  */
> public class Home implements EntryPoint {
>
>public void onModuleLoad() {
>
>   checkLogin(this);
>
>}
>
>public void UserLogin(){
>Window.alert("User Login");
>}
>
>
>private static native void checkLogin(Home x)/*-{
>
>
>  $wnd.checkLogin = function(){
>
>  x...@com.mantra.draw2d.home.client.home::UserLogin()();
>  };
>}-*/;
> }
>
>
>
> And My Html file is:
>
> 
> 
> 
> Insert title here
> 
>
> function cheLogin(){
> alert("GWT Call");
>@com.mantra.draw2d.Home.client:: checkLogin()()
>alert("GWT Call");
> }
>
>
>
> 
> 
>
> 
>
> 
> 
>
>
>
>
> My goal is call gwt menthod from javascript application.
>
> I written this classes,but i am unable to call UserLogin method from
> java script application.
>
> Is there any problem in my code?
>
>
>
> Please help me to fix this issue.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Jan 9, 9:47 am, "olivier FRESSE"  wrote:
> > Yes you can :
> >
>
>
>
> > http://code.google.com/intl/fr/docreader/#p=google-web-toolkit-doc-1-...
> >
> > 2009/1/9 rajesh_ch 
> >
> >
> >
> > > Hai,Thanks for quick reply.
> >
> > > i am trying to call one of the GWT method from outside application.
> >
> > > Like , i have to check whether user logged in or not.
> >
> > > i written a method to check whether user logged in or not,but i need
> > > to call this method from outside my gwt application.
> >
> > > is it possible to call gwt method outside application? i want to call
> > > my gwt method from javascript.
> >
> > > Thank u
> >
> > > On Jan 8, 6:49 pm, "olivier FRESSE"  wrote:
> > > > This is not very clear.
> > > > Are you trying to manage user authentication in a GWT application ?
> > > > If yes, what kind of authentication do you want to manage. Simple web
> > > based
> > > > one, using ACEGI,?
> >
> > > > 2009/1/8 rajesh_ch 
> >
> > > > > Hai All,
> >
> > > > > I have one requirement like, i need to get the string data from
> > > > > project html file to entry point class.
> >
> > > > > like say i project html file is Home.html .From this html file i
> need
> > > > > to pass string value to entry point
> > > > > class.
> >
> > > > > In entry point , i need to get that value and check whether user
> > > > > logged in or not.
> >
> > > > > If user logged in i need to call different java class with this
> > > > > parameter.
> >
> > > > > if user not logged in , i have to show login form then i need to
> call
> > > > > different java class with this parameter.
> >
> > > > > Please help me to work on this.
> >
> > > > > Thank u
> >
> > > > > Best Regards
> > > > > Rajesh
> >
>

--~--~-~--~~~---~--~~
You received 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 get the String value from project html file to entry point class

2009-01-08 Thread olivier FRESSE
Yes you can :

http://code.google.com/intl/fr/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaFromJavaScript



2009/1/9 rajesh_ch 

>
> Hai,Thanks for quick reply.
>
>
> i am trying to call one of the GWT method from outside application.
>
> Like , i have to check whether user logged in or not.
>
> i written a method to check whether user logged in or not,but i need
> to call this method from outside my gwt application.
>
> is it possible to call gwt method outside application? i want to call
> my gwt method from javascript.
>
>
>
> Thank u
>
>
> On Jan 8, 6:49 pm, "olivier FRESSE"  wrote:
> > This is not very clear.
> > Are you trying to manage user authentication in a GWT application ?
> > If yes, what kind of authentication do you want to manage. Simple web
> based
> > one, using ACEGI,?
> >
> > 2009/1/8 rajesh_ch 
> >
> >
> >
> > > Hai All,
> >
> > > I have one requirement like, i need to get the string data from
> > > project html file to entry point class.
> >
> > > like say i project html file is Home.html .From this html file i need
> > > to pass string value to entry point
> > > class.
> >
> > > In entry point , i need to get that value and check whether user
> > > logged in or not.
> >
> > > If user logged in i need to call different java class with this
> > > parameter.
> >
> > > if user not logged in , i have to show login form then i need to call
> > > different java class with this parameter.
> >
> > > Please help me to work on this.
> >
> > > Thank u
> >
> > > Best Regards
> > > Rajesh
> >
>

--~--~-~--~~~---~--~~
You received 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 get the String value from project html file to entry point class

2009-01-08 Thread olivier FRESSE
This is not very clear.
Are you trying to manage user authentication in a GWT application ?
If yes, what kind of authentication do you want to manage. Simple web based
one, using ACEGI,?



2009/1/8 rajesh_ch 

>
> Hai All,
>
> I have one requirement like, i need to get the string data from
> project html file to entry point class.
>
> like say i project html file is Home.html .From this html file i need
> to pass string value to entry point
> class.
>
> In entry point , i need to get that value and check whether user
> logged in or not.
>
> If user logged in i need to call different java class with this
> parameter.
>
> if user not logged in , i have to show login form then i need to call
> different java class with this parameter.
>
>
> Please help me to work on this.
>
> Thank u
>
> Best Regards
> Rajesh
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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 get the list box value in gwt

2009-01-08 Thread olivier FRESSE
When you fill your listbox, use the following method :

*addItem
*(java.lang.String item, java.lang.String value)



*getSelectedIndex
*() returns the selected index. Or -1 if nothing is selected...

then you have a couple of methods to retrieve the otem text or the value
text.

*getItemText
*(int index)
*getValue
*(int index)

regards.

2009/1/7 rajasekhar 

>
> Hi All,
>
>  How to get the selected list box value.I have to display
> field is username and value is email. when username is selected I need
> to get  value as email id . Please help me on this regard.
>
>
>
>
> Regards,
> Rajasekhar
> >
>

--~--~-~--~~~---~--~~
You received 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: Panel not clearing?

2009-01-05 Thread olivier FRESSE
You should use an Image widget instead of setText.

something like

*Image image = new Image();
*

*image.setUrl("'http://www.vella-gulf.navy.mil/Site%20Images/under_construction.jpg";);
*

*// Use image.addLoadListener(...) to manage loading errors

bioText.add(image);
*

regards,
O.


2009/1/3 jwei512 

>
> Hey, so right now I'm having this unusual problem with one of the
> panels I made and I don't quite understand what's happening. Here's my
> code:
>
> bioText = new Panel();
> bioText.setAutoScroll(true);
> String sampleURL = " />";
> bioText.setHtml(sampleURL);
>
> ToolbarButton bioNew = new ToolbarButton("New Page");
> bioNew.addListener(new ButtonListenerAdapter() {
>public void onClick(Button button, EventObject e) {
>bioText.clear();
>}
> });
>
> Toolbar editBio = new Toolbar();
> editBio.addButton(bioNew);
>
> So basically I click the button on the toolbar and the panel is
> supposed to clear but it doesn't. This is weird because within the
> same class I do the same identical set of commands just using a
> different toolbar and clearing a different panel and it works fine.
>
> Any ideas?
>
> >
>

--~--~-~--~~~---~--~~
You received 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 reset FileUpload?

2009-01-05 Thread olivier FRESSE
it may depend of the way your form is built,
but you can call reset() on the form object in javascript.
This means that you need a JSNI call.

A file input can be accessed in JS for security reason, but reseting the
form will clear it. And all the inputs of the form...


2009/1/5 fother 

>
> I need reset the FileUpload..
> In my form when I submit the form I need clear all fields..
>
> it's possible?
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Extra pixels above image when added to popup panel

2009-01-05 Thread olivier FRESSE
You can use a tool like firebug to analyze the generated DOM.
Maybe it's a result of a CSS style.
regards

2009/1/4 falcon_whiz 

>
> Hi all,
>  I am using the lates release of gwt (gwt-windows-1.5.3). now the
> problem is that whenever I am adding an image to a popup panel the
> size of the popup panel increases by few extra pixels on top of the
> image. on the sides and on the bottom the popup panel adjusts to the
> size of the image. What can be the problem??
>
> Regards
> Yasser
> >
>

--~--~-~--~~~---~--~~
You received 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: Form submit

2008-12-24 Thread olivier FRESSE
Well,If you nedd to retrieve post data in a servlet, just manage it in

 public void doPost(HttpServletRequest request,
 HttpServletResponse response)

...

request.getParameter("name")

...

where name is the name of your HTML input.


Olivier.


2008/12/24 Daniele B 

>
> Hi.
> I'm a newbie of GWT and not speaking english very well.
> I have this portion of code of my thesis application:
>
> [...]
> private FileUpload fileUpload = new FileUpload();
>private FormPanel formUpload = new FormPanel();
>private Button loadButton = new Button("Load new image");
>private Button addButton = new Button("Add new category");
>private Label l = new Label();
>
>public WebPhotoGalleryMenuPanel(){
>
>//fileUpload.setName(" imageUpload");
>formUpload.setEncoding(FormPanel.ENCODING_MULTIPART);
>formUpload.setMethod(FormPanel.METHOD_POST);
>formUpload.setAction(GWT.getModuleBaseURL()+"UploadPhoto");
>
>submit.addClickListener(this);
> [...]
>
> photoInfoPanel.add(new Label("Enter category: "));
>TextBox categoryTextBox = new TextBox();
>
>photoInfoPanel.add( categoryTextBox);
>photoInfoPanel.add(new Label("Enter photo name: "));
>photoInfoPanel.add(new TextBox());
>photoInfoPanel.add(fileUpload);
>photoInfoPanel.add(submit);
>photoInfoPanel.add(cancel);
>photoInfoPanel.setSpacing(3);
>
>photoInfoContainer.add( photoInfoPanel);
>
>formUpload.setWidget( photoInfoContainer);
>
> When user click on submit button, the form is submitted to UploadPhoto
> servlet.
>
> How can I do get text of categoryTextBox on servlet?
> Thanks.
>
> Sorry fo my english!
>
> Daniele.
>
> --~--~-~--~~-- --~---~--~~
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to Google-Web-Toolkit@googlegroups.com
> To unsubscribe from this group, send email to Google-Web-Toolkit+
> unsubscr...@googlegroups.com
> For more options, visit this group at http://groups.google.com/
> group/Google-Web-Toolkit?hl=en
> -~--~~~~--~~--~--~---
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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 cancel file uploading from client side

2008-12-19 Thread olivier FRESSE
I'm afraid you can't do that beacause of the JS  security restriction...
Except by clicking on the "Stop" button of the browser

2008/12/19 jazzka 

>
> Is there any good ways to cancel file uploading from client side. I am
> using FileUpload with FormPanel and when the user open file from
> "Choose file" dialog it's automaticly start loading file to server
> side. If the file is really big and user have low upstream the loading
> will take too much time and I want offer cancel functionality.
>
> // fileUpload onEvent
> public void onEvent(Event event)
> {
>String file = fileUpload.getFilename();
>if(!file.equals(""))
>{
>
>formPanel.submit();
>
>}
>
> }
>
> // FormPanel onSubmit
> public void onSubmit(FormSubmitEvent event)
> {
>// Show loading and Cancel now
> }
>
> public void onSubmitComplete(FormSubmitCompleteEvent event)
> {
>// Hide loading and Cancel and show ok if success
> }
>
> How can I cancel form submission/file uploading?
>
> >
>

--~--~-~--~~~---~--~~
You received 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: cannot execute /usr/bin/firefox.

2008-12-19 Thread olivier FRESSE
Maybe a silly question, but does /usr/bin/firefox. exists ?

There is an environment var called GWT_EXTERNAL_BROWSER which drives the
external browser used by the GWTShell.
But I'm not sure to understand what you're trying to do.
Do you want to launch the hosted browser, or just open an URL from NB ?

I'm using NB 6.5 with an Ubuntu 8.1 distro.
Attached is a pic of my NB conf  for firefox.

Regards.

2008/12/19 Venkat 

>
> Hi,
>
> i tried to run a GWT program using netbeans in Linux , i am getting
> err like this
>
>
> "cannot execute /usr/bin/firefox. check external browser
> configuration, its the error comes in netbeans"
>
> I googled and got reference from this web site
>
> http://www.nabble.com/Cannot-execute--usr-bin-firefox--NB-6.0-M10--td11481241.html
> , but its vain i tried both option like this -new-window {URL}" as the
> argument. and -new-tab {URL}" as the argument.
>
> Please help me
>
> Regards,
> Venkat
>
> >
>

--~--~-~--~~~---~--~~
You received 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: long in GWT 1.5

2008-12-18 Thread olivier FRESSE
long is not usable "as is" . JScript doesn't have a matching type...
see
http://code.google.com/intl/fr/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideMarshaling


2008/12/18 Kathy 

>
> Hello,
>
> I'm having problems to use long values in GWT 1.5. I'm using a lot of
> JSNI methods, and I need to pass longs into or out of these methods.
> As long as I don't need to change the long values in the JSNI methods
> I pass them with the type Long. But if I call a RPC method with a Long
> value retrieved from a JSNI method I always get an exception
>
> "TypeError parts is undefined"
>
> when the parameter of the rpc method is of type long and a
>
> "com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> java.lang.ClassNotFoundException:
> com.google.gwt.core.client.JavaScriptObject"
>
> when I'm using Long instead of the primitive type.
>
> Can someone tell me what I'm doing wrong? Which type must I use when
> passing long values to rpc method which are retrieved from JSNI
> methods?
>
> 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: HOW TO ENHANCE WEBPAGE TO GWT FROM ALREADY EXISTING SITE IN HTML AND JAVA SCRIPT

2008-12-18 Thread olivier FRESSE
Embedding GWT in existing pages :

Pretty easy, just use DIVs tags with ids in your HTML and inclulde the
needed scripts generated by the GWT compiler





then in your GWT module, do :

 RootPanel.get("gwtArea").add(...)

The content of the div is now managed by GWT.



using CSS is easy as GWT use it a lot. But a tool like firebug will save
hours :-)

And calling JScript is easy too, by using JSNI.




2008/12/18 V.Ashok 

>
> Hi All,
>
> I want to use GWT with the pre existing Web Pages , could some one
> guide me on this how do i go about it ?
>
> The scanerio is : I will be having HTMLs , CSS, JAVA SCRIPTS from the
> already existing web site now i need to enhance the website using
> GWT ? is it possible to do 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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Reading POST parameters on GWT app

2008-12-17 Thread olivier FRESSE
The client side of GWT won't help you.
The server side is the GWT RPC mechanism, and it won't help you a lot too.
It depends  of the server technology.
If you're in a java world, best would be to rely on a servlet. They are
indeed made to manage such things  :-)

you would have something like that, with a "ManagePostServlet" :

1 : the submit :

  http://localhost:/servlet/ManagePostServlet
">
  User Name 
   



2 : Handling the Post data


 public void  doPost ( HttpServletRequest  req, HttpServletResponse  res )

throws ServletException, IOException {

..

// Get the parameter.
   // store it in a context, or do what you want with it :-)

req.getParameter("prefered");
..

3: Redirect/Forward to a GWT page

Once you've retrieved the post data, you can go to GWT page.
Do a forward or a redirect (it depends of what your pages do... see
http://www.javapractices.com/topic/TopicAction.do?Id=181 )

The servlet can store data in the session for example.

Once you've reached a GWT page, you can use a classical GWT service
(which is a servlet in fact...) to retrieve these data.



008/12/17 Yair Ohayon 

> Great , that's exactly what i want to do.
> How do i parse that parameters on the server ?
> Maybe this example will clearify what i am searching for
> some web site
> ...
>   http://localhost:/com.startup.strhandle/strhandle.html";>
>   User Name 
>
>  ...
> Action is my gwt app ,
> After submitting , the browser display the strhandle.html and i want to
> access the post params , in this example param "prefered".
>
> Is this impossible too ?
>
>
>
>
>
> On Wed, Dec 17, 2008 at 9:19 PM, Jason Essington <
> jason.essing...@gmail.com> wrote:
>
>>
>> Correct, you cannot read the post parameters from the client, as they
>> don't really exist.
>>
>> An HTTP post supplies the post parameters as the content of the
>> request (server) and they are no longer available when the response is
>> returned (client)
>>
>> you would have to parse the parameters on the server, and somehow
>> embed them in your response.
>>
>> -jason
>>
>> On Dec 17, 2008, at 12:12 PM, Croc wrote:
>>
>> >
>> > Someone please...?
>> >
>> >
>> > On Dec 16, 10:40 pm, Croc  wrote:
>> >> Hi All,
>> >> I am new to gwt and didn't find how to read post paramters in GWT
>> >> App.
>> >> meaning that i have an html page with uses some input fields (pure
>> >> html 0 no java script) and this html is redirecting to my gwt app , i
>> >> need to read those paramters on the GWT app  and respond.
>> >>
>> >> I can readt the GET params by using
>> >>  Window.Location.getParameterMap();
>> >>
>> >> but i can't seem to find a way to read POST .
>> >> tries dictionary - but the html is with no scripts so it won't help
>> >> me.
>> >>  anyone please?
>> > >
>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received 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 integrated with JSF

2008-12-17 Thread olivier FRESSE
It's easy to mix both.

you just need an interceptor... and a few tricks :-)


Take a look at this excellent post :
http://weblogs.java.net/blog/caroljmcdonald/archive/2008/01/sample_applicat_4.html

( and
http://weblogs.java.net/blog/caroljmcdonald/archive/2007/07/sample_applicat_1.html
  the first link is an update to the latest versions of Seam & glassfish )

Once you've discovered the power of seam, you can't live without it :-)

O.


2008/12/17 William Dutton 

> thankyou for the reply.
>
> what i'm working on is made from woodstock widgets from netbeans with jsf,
> we have ejb3 persistent objects so we could go via the ejb3 route, we just
> need some items to talk to the the database entities to change them, the
> jsf/woodstock components are written with alot of boolean switches to turn
> on and off parts of the really large pages. i'm talking about 3-4 large
> tables of information.
>
> there is a menu system made with woodstock plugins. tho due to the
> complexity of the pages, they are quite hard to get in the correct position
> in all browsers.
>
> i wonder how difficult getting seam into the mix or ejb3 is going to be?
>
> On Wed, Dec 17, 2008 at 6:47 PM, olivier FRESSE 
> wrote:
>
>> I'm quite overloaded this week, so I won't have too much time to make a
>> detailed answer :-(
>>
>> From my understanding G4JSF is dead and replaced by ajax4jsf, which is
>> quite different.
>> It makes no use of GWT.
>>
>> If you want a clean and powerful way of keeping state in a GWT/Jsf mixed
>> appication ,
>> seam is really a nice answer.
>>
>> You can really use seam as a "glue" between facelets pages and GWT
>> modules.
>>
>> Basicaly, seam provides "components" (beans in fact) , which can be used
>> from GWT modules and from JSF pages.
>> From a facelet view, it's really easy to get values and call methods with
>> EL.
>>
>> From GWT, seam remoting enables the use of seam components instead of OOTB
>>  GWT services.
>>
>> I hope to get some tme to make a little example. It's not easy to extract
>> a sample from my current project...
>>
>>
>>
>>
>> I do agree that it's not easy to see the light in all these frameworks...
>> but here is the solution I use I' don't know if it's the best, but
>> well it works for me.
>>
>> We use EJB3 & Glassfish.
>>
>>
>>
>>
>>
>>
>> 2008/12/14 will.dutt 
>>
>>
>>> The jboss doc link gives heaps of food for thought.
>>>
>>> Just wondering, am i correct to say that G4JSF became ajax4jsf which
>>> then became richfaces ?
>>>
>>> This kinda makes it quite confusing when i have jsf and gwt and no
>>> idea what i can use to glue it together :P
>>>
>>> An example would be very helpful :) on the seam application, and maybe
>>> on the other ways of pulling information. :)
>>>
>>> I have used spring in the past, tho not starting out and it already
>>> had a very structured hierarchy and as i'm a fresh out of uni, and
>>> this is mostly a green feilds type project, there is way to many
>>> technologies to look at and yet not enough time in the day. :/
>>>
>>> The jsf website that i'm now working on had a pre existing database
>>> backend in oracle.  The developer before me used netbeans out of the
>>> box features to generate a brand new interface to the oracle database.
>>> (can't remember the backend infrastructure, will find out in the
>>> morning when i'm at work)
>>>
>>> The simple stuff is done and now its to the hard stuff.
>>>
>>> i have thought of doing through GWT DOM objects, but i would like a
>>> cleaner way of keeping state, the application will be doing big edits
>>> to the database backend if they apply the changes they make and i
>>> would like to allow any not pre-commited changes to either linger till
>>> out of session of save for next session which means that GWT DOM
>>> object pulling for the id/keys won't do.
>>>
>>>
>>> Google group discussions seems to be quite nice, tho i do miss the
>>> spell check feature that is in gmail. :)
>>>
>>> On Dec 14, 5:50 pm, "olivier FRESSE"  wrote:
>>> > Hi will,
>>> > I work on a project where we use GWT, seam and facelet. The server is a
>>> > glassfish one.
>>> > Seam is a great framework, and I really see it as a great enhancemen

Re: GWT integrated with JSF

2008-12-17 Thread olivier FRESSE
I'm quite overloaded this week, so I won't have too much time to make a
detailed answer :-(

>From my understanding G4JSF is dead and replaced by ajax4jsf, which is quite
different.
It makes no use of GWT.

If you want a clean and powerful way of keeping state in a GWT/Jsf mixed
appication ,
seam is really a nice answer.

You can really use seam as a "glue" between facelets pages and GWT modules.

Basicaly, seam provides "components" (beans in fact) , which can be used
from GWT modules and from JSF pages.
>From a facelet view, it's really easy to get values and call methods with
EL.

>From GWT, seam remoting enables the use of seam components instead of OOTB
 GWT services.

I hope to get some tme to make a little example. It's not easy to extract a
sample from my current project...




I do agree that it's not easy to see the light in all these frameworks...
but here is the solution I use I' don't know if it's the best, but well
it works for me.

We use EJB3 & Glassfish.






2008/12/14 will.dutt 

>
> The jboss doc link gives heaps of food for thought.
>
> Just wondering, am i correct to say that G4JSF became ajax4jsf which
> then became richfaces ?
>
> This kinda makes it quite confusing when i have jsf and gwt and no
> idea what i can use to glue it together :P
>
> An example would be very helpful :) on the seam application, and maybe
> on the other ways of pulling information. :)
>
> I have used spring in the past, tho not starting out and it already
> had a very structured hierarchy and as i'm a fresh out of uni, and
> this is mostly a green feilds type project, there is way to many
> technologies to look at and yet not enough time in the day. :/
>
> The jsf website that i'm now working on had a pre existing database
> backend in oracle.  The developer before me used netbeans out of the
> box features to generate a brand new interface to the oracle database.
> (can't remember the backend infrastructure, will find out in the
> morning when i'm at work)
>
> The simple stuff is done and now its to the hard stuff.
>
> i have thought of doing through GWT DOM objects, but i would like a
> cleaner way of keeping state, the application will be doing big edits
> to the database backend if they apply the changes they make and i
> would like to allow any not pre-commited changes to either linger till
> out of session of save for next session which means that GWT DOM
> object pulling for the id/keys won't do.
>
>
> Google group discussions seems to be quite nice, tho i do miss the
> spell check feature that is in gmail. :)
>
> On Dec 14, 5:50 pm, "olivier FRESSE"  wrote:
> > Hi will,
> > I work on a project where we use GWT, seam and facelet. The server is a
> > glassfish one.
> > Seam is a great framework, and I really see it as a great enhancement to
> > JSF.
> > It provides many components, including "Seam Remoting".
> > Seam Remoting allows a remote access to seam components,using Ajax.
> > And you can replace GWT Services by Remoting calls...
> > This allows you to easily share data between JSF/Facelet pages and GWT
> > modules via
> > Seam contexts.
> >
> > see :
> http://docs.jboss.com/seam/2.1.1.CR2/reference/en-US/html_single/#gwt
> >
> > Of course, this may mean deep modifications in your project.
> > If you wan to integrate a simple GWT module in a page and read hidden
> input
> > values
> > from the page I see 2 solutions :
> >
> > JSNI : Allows you to call JScript in the page.
> >
> > GWT DOM object : Allows you to manipulate DOM objects.
> >
> > I'll find  a sample  and post it there :-)
> >
> > O.
> >
> > 2008/12/13 will.dutt 
> >
> >
> >
> > > i've been look around for anything that was happening with these 2
> > > great components. sadly the g4jsf is a dead end :(.
> >
> > > i've got a JSF website that is now hitting the boundaries of what is
> > > possible in a static html refresh browser and needs GWT badly.
> >
> > > does anyone have any good examples of integrating GWT components to
> > > pull information from the page its placed on and rpc the rest of the
> > > content it needs?
> >
> > > i can place a GWT compenent on the page with div's which is good, but
> > > i'm having trouble getting information from the page (eg ID that link
> > > to a database). what is the command to do that?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: Clear path in a FileUpload object.

2008-12-16 Thread olivier FRESSE
Maybe you can reset the form where the file input is ?

2008/12/16 Dominik Erbsland 

>
> Pity! so I will have to do it differently.
> thanks for the info!
>
>
> On Dec 16, 2:29 pm, "Isaac Truett"  wrote:
> > JavaScript can't set the content of a file input for security reasons.
> > Instead you could remove your used FileUpload and replace it with a
> > new one.
> >
> > On Tue, Dec 16, 2008 at 7:27 AM, Dominik Erbsland 
> wrote:
> >
> > > I wanted to clear the path in a FileUpload object after a file has
> > > been uploaded. I could not find out which method will do so.
> > > how can I do that?
> >
> > > thanks for a hint.
> > > dominik
> >
>

--~--~-~--~~~---~--~~
You received 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: J2EE and debug in hosted mode

2008-12-15 Thread olivier FRESSE
I don't think so...

-noserver only removes the GWT embedded tomcat which manages the GWT RPC
mechanism.
I'm afraid you'll still have 2 java processes.
One for the client, one for the server... In fact, the GWTShell plays the
role of the browser.

I'don't see how it could be possible to embed the GWTShell process in the
J2EE one.

Regards,



2008/12/14 gregor 

>
> The simplest is to run hosted mode with the -noserver flag. Then you
> deploy your EAR with your Ant script once and run & debug your GWT
> client code in hosted mode just hitting the refresh button as you go.
>
> On Dec 14, 5:01 pm, Bandesz  wrote:
> > I wrote it wrong, not the debug is the problem, I just want to run the
> > enterprise application (EJB+Web) in Hosted Mode, I wrote debugging
> > because hosted mode runs if I debug the web application.
> >
> > If I understand correctly, the build-gwt.xml is responsible for the
> > hosted mode. If I run the ent. app., the build.xml simply compiles the
> > EJB and the Web project, makes an EAR package, and starts glassfish in
> > debug mode.
> >
> > So how can I write a build file which runs the whole application in
> > gwt hosted mode?
> >
> > This is a bottleneck in my development, because the deploy time is now
> > more than 1 minute. If I could use as I wrote it, the hosted mode
> > shows the changes in couple of seconds, and the autodeploy on the
> > server side is just seconds.
> >
> > Bandesz
> >
> > On Dec 14, 5:49 pm, "olivier FRESSE"  wrote:
> >
> > > When you run in hosted mode, you have 2 java processes running.
> > > The glassfish one, and the GWT shell.
> > > Debugging the glassfish side is easy, it comes OOTB in Netbeans.
> >
> > > Debugging the client side is quite easy too.
> > > You just need to change the way the GWTShell is launched :
> >
> > > java  *-Xdebug
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
> > > * -Xmx256M -cp
> > >
> "$APPDIR/src:$APPDIR/bin:/home/ofe/dev/gwt-linux-1.5.3/gwt-user.jar:/home/ofe/dev/gwt-linux-1.5.3/gwt-dev-linux.jar"
> > > com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@"
> > > ext.test.MyAppli/MyAppli.html;
> >
> > > next you can attach the netbeans debugger to the Shell.
> >
> > > Is it what you're looking for ?
> >
> > > O.
> >
> > > 2008/12/14 Bandesz 
> >
> > > > Thx for the answer, but I need an exact howto, how can I debug the
> > > > whole J2EE application with Hosted Mode using Glassfish and Netbeans.
> >
> > > > As I said, I searched a lot and haven't found a good description.
> >
> > > > Bandesz
> >
> > > > On Dec 8, 4:34 am, gregor  wrote:
> > > > > couple of approaches
> >
> > > > > 1) Simply use -noserver option. You need a build script to deploy
> your
> > > > > RPC servlets and your EJB layer to Glassfish on demand and activate
> > > > > remote debugging to make this work effectively, but lots of people
> do
> > > > > it this way. See
> >
> > > > >
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
> >
> > > > > 2) You can run your RPC servlets in hosted mode Tomcat instance
> > > > > leaving your session beans on Glassfish with a bit more work. You
> need
> > > > > to use trad JNDI to try for a local reference to your session
> beans,
> > > > > and if that fails go for the remote reference instead. I don't
> think
> > > > > the new annotation stuff works for this.That way you get a local
> ref
> > > > > in production and a remote one in dev from the same code. If you
> use
> > > > > the ServiceLocator pattern it makes this easier.
> >
> > > > > On Dec 7, 2:26 pm,Bandesz wrote:
> >
> > > > > > I'm developing a J2EE application with GWT using NetBeans 6.5,
> > > > > > Glassfish v2.
> >
> > > > > > If I debugging only the web project, I can't use any Session
> Beans
> > > > > > from EJB project, becase I get "Cannot resolve reference
> Unresolved
> > > > > > Ejb-Ref..." error. I tried in every way to make 
> tags
> > > > > > in web.xml (or in ejb-jar.xml), but the error stays. (I see now
> that
> > > > > > it's a dead end)
> >
> > > > > > If I debugging the enterpise project, everythings works except
> the
> > > > > > hosted mode.
> >
> > > > > > I searched a lot, but I can't make this work, please help.
> >
> > > > > > Thanks,
> > > > > >  Bandesz
> >
>

--~--~-~--~~~---~--~~
You received 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: J2EE and debug in hosted mode

2008-12-14 Thread olivier FRESSE
When you run in hosted mode, you have 2 java processes running.
The glassfish one, and the GWT shell.
Debugging the glassfish side is easy, it comes OOTB in Netbeans.

Debugging the client side is quite easy too.
You just need to change the way the GWTShell is launched :

java  *-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
* -Xmx256M -cp
"$APPDIR/src:$APPDIR/bin:/home/ofe/dev/gwt-linux-1.5.3/gwt-user.jar:/home/ofe/dev/gwt-linux-1.5.3/gwt-dev-linux.jar"
com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@"
ext.test.MyAppli/MyAppli.html;

next you can attach the netbeans debugger to the Shell.

Is it what you're looking for ?

O.

2008/12/14 Bandesz 

>
> Thx for the answer, but I need an exact howto, how can I debug the
> whole J2EE application with Hosted Mode using Glassfish and Netbeans.
>
> As I said, I searched a lot and haven't found a good description.
>
> Bandesz
>
> On Dec 8, 4:34 am, gregor  wrote:
> > couple of approaches
> >
> > 1) Simply use -noserver option. You need a build script to deploy your
> > RPC servlets and your EJB layer to Glassfish on demand and activate
> > remote debugging to make this work effectively, but lots of people do
> > it this way. See
> >
> > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
> >
> > 2) You can run your RPC servlets in hosted mode Tomcat instance
> > leaving your session beans on Glassfish with a bit more work. You need
> > to use trad JNDI to try for a local reference to your session beans,
> > and if that fails go for the remote reference instead. I don't think
> > the new annotation stuff works for this.That way you get a local ref
> > in production and a remote one in dev from the same code. If you use
> > the ServiceLocator pattern it makes this easier.
> >
> > On Dec 7, 2:26 pm,Bandesz wrote:
> >
> > > I'm developing a J2EE application with GWT using NetBeans 6.5,
> > > Glassfish v2.
> >
> > > If I debugging only the web project, I can't use any Session Beans
> > > from EJB project, becase I get "Cannot resolve reference Unresolved
> > > Ejb-Ref..." error. I tried in every way to make  tags
> > > in web.xml (or in ejb-jar.xml), but the error stays. (I see now that
> > > it's a dead end)
> >
> > > If I debugging the enterpise project, everythings works except the
> > > hosted mode.
> >
> > > I searched a lot, but I can't make this work, please help.
> >
> > > Thanks,
> > >  Bandesz
> >
> >
> >
>

--~--~-~--~~~---~--~~
You received 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 integrated with JSF

2008-12-13 Thread olivier FRESSE
Hi will,
I work on a project where we use GWT, seam and facelet. The server is a
glassfish one.
Seam is a great framework, and I really see it as a great enhancement to
JSF.
It provides many components, including "Seam Remoting".
Seam Remoting allows a remote access to seam components,using Ajax.
And you can replace GWT Services by Remoting calls...
This allows you to easily share data between JSF/Facelet pages and GWT
modules via
Seam contexts.

see : http://docs.jboss.com/seam/2.1.1.CR2/reference/en-US/html_single/#gwt

Of course, this may mean deep modifications in your project.
If you wan to integrate a simple GWT module in a page and read hidden input
values
from the page I see 2 solutions :

JSNI : Allows you to call JScript in the page.

GWT DOM object : Allows you to manipulate DOM objects.

I'll find  a sample  and post it there :-)

O.

2008/12/13 will.dutt 

>
> i've been look around for anything that was happening with these 2
> great components. sadly the g4jsf is a dead end :(.
>
> i've got a JSF website that is now hitting the boundaries of what is
> possible in a static html refresh browser and needs GWT badly.
>
> does anyone have any good examples of integrating GWT components to
> pull information from the page its placed on and rpc the rest of the
> content it needs?
>
> i can place a GWT compenent on the page with div's which is good, but
> i'm having trouble getting information from the page (eg ID that link
> to a database). what is the command to do that?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: Does GWT depend on OS?

2008-12-12 Thread olivier FRESSE
The war can be corrupted in the transfer from windows to the unix server.
For example, an FTP transfer in ascii mode...
as a war is a jar file, you can test it with jar -tvf myfile.war.


2008/12/12 MAK 

>
> I have a strange experience, that a GWT application (war file) is
> running when it is deployed on Windows machine, copied the war file to
> tomcat's webapps. But when it is deployed to FreeBSD machine, it
> doesn't work properly Everything seems perfect, database url, and
> servlet paths but when the same application is deployed to a
> Solaris machine. It starts working again ...
>
> Does GWT application depend on OS?
>
> >
>

--~--~-~--~~~---~--~~
You received 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: GWTShell and facelet.

2008-12-12 Thread olivier FRESSE
Yes, all the needed scripts are here.
It seems that the GWTShell doesn't find the needed data to start of the GWT
java mode.
Really strange.

2008/12/12 acc 

>
> Hi Olivier,
>
> Have you added a  to include the nocache.js bootstrap file in
> your JSF JSP?
>
> -alex
>
> On Dec 10, 7:57 am, "olivier FRESSE" <olivier.fre...@gmail.com> wrote:
> > I'm not sure that it's the issue.
> > From my understanding, the noserver mode is really useful when you wan't
> to
> > use
> > GWT RPC.
> > I've made a network capture to see what's going on between the server and
> > the hosted browser,
> > and I've seen "good" html, ie JSF tags are translated by the servlet.
> >
> > But for some reasons, GWTShell doesn't "see" the GWT JScript, and doesn't
> > start to work with the java code.
> > Sadly, I have no traces or error at all.
> >
> > 2008/12/9 acc <a...@google.com>
> >
> >
> >
> > > Hi Olivier,
> >
> > > The hosted mode embedded Tomcat server isn't configured with a JSF
> > > servlet out of the box, and hence wouldn't be able to handle the
> > > *.faces mapping.  Are you using hosted mode with the embedded Tomcat
> > > server, or with your own server using the -noserver option? If it's
> > > the former, you should run hosted mode with the -noserver option and
> > > use the same server that you use when you work in web mode.
> >
> > > Here's an FAQ on how to setup hosted mode with the -noserver option:
> >
> > ><a  rel="nofollow" href="http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog">http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog</a>.
> ..
> >
> > > -alex
> >
> > > On Dec 9, 3:25 am, "olivier FRESSE" <olivier.fre...@gmail.com> wrote:
> > > > Hmm no, I have a <script> tag.
> > > > I'm still digging :-)
> > > > O.
> >
> > > > 2008/12/9 Sumit Chandel 
> >
> > > > > Hi Olivier,
> >
> > > > > Can you double-check to make sure that you're not using an empty
> > > 
> > > > > tag to reference your GWT bootstrap script? I..e, <script
> > > > > src="com.google.app.MyModule.nocache.js" /> versus <script
> > > > > src="com.google.app.MyModule.nocache.js">? The empty
> script
> > > tag has
> > > > > been known to cause issues in hosted mode, and is also known to
> cause
> > > > > problems in IE 6/7 if I remember correctly.
> >
> > > > > Hope that helps,
> > > > > -Sumit Chandel
> >
> > > > > On Fri, Dec 5, 2008 at 3:05 AM, olivier 
> > > wrote:
> >
> > > > >> Hi,
> > > > >> I'm facing a strange issue.
> >
> > > > >> I'm using GWT within a facelet page.
> >
> > > > >> This means that I have the following URL
> >
> > > > >>http://myserver:8080/MyApp/conf/test.faces
> >
> > > > >> "test.faces" is resolved to "test.xtml" by the servlet.
> >
> > > > >> Compiled mode works fine. But in hosted mode, the module is not
> > > > >> loaded. No errors, no traces, nothing. However, the static HTML is
> > > > >> displayed !
> > > > >> I tried the verbose mode, but it didn't help.
> >
> > > > >> Any clue ? :-)
> >
>

--~--~-~--~~~---~--~~
You received 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: GWTShell and facelet.

2008-12-10 Thread olivier FRESSE
I'm not sure that it's the issue.
>From my understanding, the noserver mode is really useful when you wan't to
use
GWT RPC.
I've made a network capture to see what's going on between the server and
the hosted browser,
and I've seen "good" html, ie JSF tags are translated by the servlet.


But for some reasons, GWTShell doesn't "see" the GWT JScript, and doesn't
start to work with the java code.
Sadly, I have no traces or error at all.



2008/12/9 acc <[EMAIL PROTECTED]>

>
> Hi Olivier,
>
> The hosted mode embedded Tomcat server isn't configured with a JSF
> servlet out of the box, and hence wouldn't be able to handle the
> *.faces mapping.  Are you using hosted mode with the embedded Tomcat
> server, or with your own server using the -noserver option? If it's
> the former, you should run hosted mode with the -noserver option and
> use the same server that you use when you work in web mode.
>
> Here's an FAQ on how to setup hosted mode with the -noserver option:
>
>
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer
>
> -alex
>
> On Dec 9, 3:25 am, "olivier FRESSE" <[EMAIL PROTECTED]> wrote:
> > Hmm no, I have a  tag.
> > I'm still digging :-)
> > O.
> >
> > 2008/12/9 Sumit Chandel <[EMAIL PROTECTED]>
> >
> > > Hi Olivier,
> >
> > > Can you double-check to make sure that you're not using an empty
> 
> > > tag to reference your GWT bootstrap script? I..e, <script
> > > src="com.google.app.MyModule.nocache.js" /> versus <script
> > > src="com.google.app.MyModule.nocache.js">? The empty script
> tag has
> > > been known to cause issues in hosted mode, and is also known to cause
> > > problems in IE 6/7 if I remember correctly.
> >
> > > Hope that helps,
> > > -Sumit Chandel
> >
> > > On Fri, Dec 5, 2008 at 3:05 AM, olivier <[EMAIL PROTECTED]>
> wrote:
> >
> > >> Hi,
> > >> I'm facing a strange issue.
> >
> > >> I'm using GWT within a facelet page.
> >
> > >> This means that I have the following URL
> >
> > >>http://myserver:8080/MyApp/conf/test.faces
> >
> > >> "test.faces" is resolved to "test.xtml" by the servlet.
> >
> > >> Compiled mode works fine. But in hosted mode, the module is not
> > >> loaded. No errors, no traces, nothing. However, the static HTML is
> > >> displayed !
> > >> I tried the verbose mode, but it didn't help.
> >
> > >> Any clue ? :-)
> >
>

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Capabilities of GWT interfacing with Java applets

2008-12-10 Thread olivier FRESSE
GWTAI looks promising too :
http://code.google.com/p/gwtai/




2008/12/9 Alfred S <[EMAIL PROTECTED]>

>
> The information looks to be all there!  I was able to successfully
> experiment a bit with it.
>
> Thanks!
> ~Alfred
>
> On Dec 9, 12:45 pm, Shawn Pearce <[EMAIL PROTECTED]> wrote:
> > To answer your question, yes.
> >
> > Look at JSNI and JavaScriptObject in the GWT documentation:
> >
> > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
> >
> > On Tue, Dec 9, 2008 at 09:37, Alfred S <[EMAIL PROTECTED]> wrote:
> >
> > > Hello All,
> >
> > > I'm interested in using GWT for a project, but I have some questions.
> > > I'm working on a proof of concept to try to answer them on my own, but
> > > I thought it couldn't hurt to ask the group as well.
> >
> > > The client-side requirements for this project include two Java
> > > applets.  These applets need to communicate to the UI (which will
> > > hopefully be generated by GWT).  The one applet needs to receive
> > > unsolicited messages.  The second applet needs to be able receive
> > > unsolicited messages AND send messages to the client/UI.  From what I
> > > understand, the applets can communicate with the browser through
> > > JavaScript methods.
> >
> > > My question then becomes, can GWT engage in two-way communications
> > > with this JavaScript method (which will in turn talk to the applet)?
> > > Where would this/these JavaScript method(s) live in the project-space?
> >
> > > It might be helpful to know that I have used GWT on another project
> > > already, so I know a fair amount going into this one.  (I'm also going
> > > to try and leverage GWT-Ext for their data grids).
> >
> > > Thanks,
> > > ~Alfred
> >
>

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to share work between Java developers and HTML/CSS designers?

2008-12-09 Thread olivier FRESSE
I fully agree with this way of working.
We've been able to work with web designer with a very similar way of
working.
Our GWT components are very simple, and all the style is managed by CSS.
I think that it's really important to keep in mind that GWT is not a Swing
API in disguise :-)


2008/12/9 Nizam <[EMAIL PROTECTED]>

>
> After I started this thread, a new article has come up on the GWT blog
> which talks about how the folks at studyblue.com approached the
> styling issue. Here is the link to the post:
>
> http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchange-your-style.html
>
>
> On Dec 6, 10:02 am, Chii <[EMAIL PROTECTED]> wrote:
> > I think the underlying issue here is that the paradym of gwt
> > programming is not the same as the traditional web-app development,
> > where the coder hands to the designer a bunch of "variables" to which
> > the designer inserts into a template (velocity, freemarker, jsp, you
> > name it).
> >
> > GWT brings to the table the developer as a UI creator. The designer no
> > longer makes the product, but actually designs the blue-print, and
> > that blue print is followed by the developer. I.e., the developer now
> > needs to know about DOM, CSS and HTML (though not to the extend that a
> > designer might). GWT tries to abstract html from making a web UI.
> > Thats my 2 cents anyway.
> >
> > On Dec 3, 4:36 pm,Nizam<[EMAIL PROTECTED]> wrote:
> >
> > > Are there any best practices in bringing together a multi-disciplinary
> > > team of Java developers and HTML/CSS designers in developing a
> > > commercial GWT application? Our Java guys cannot do CSS and our HTML/
> > > CSS guys prefer working in DreamWeaver. I haven't seen any material
> > > that talks about the team collaboration aspect. Any thoughts?
> >
>

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTShell and facelet.

2008-12-09 Thread olivier FRESSE
Hmm no, I have a  tag.
I'm still digging :-)
O.


2008/12/9 Sumit Chandel <[EMAIL PROTECTED]>

> Hi Olivier,
>
> Can you double-check to make sure that you're not using an empty 
> tag to reference your GWT bootstrap script? I..e,