Re: How to transmit POJOs from server side to client side

2009-04-07 Thread Guy Rouillier



On Apr 7, 5:31 am, Mathieu BONIFACE  wrote:
> Hello all,
>
> I would like to know if it is possible in my application to transmit some
> entities/pojo in server side from the entity manager to the client side
> (GWT) and how could i do that ?

Take a look at Gilead: http://noon.gilead.free.fr/gilead/
--~--~-~--~~~---~--~~
You received 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.log doesn't generate messages to console

2009-04-06 Thread Guy Rouillier



On Mar 30, 5:33 pm, Ian Bambury  wrote:
> Mmm,
> Well, It works for me in 1.5 and 1.6
>
> I'd suggest that you start again from scratch, or if you like, I can zip you
> up a copy which works for me.
>

Ian, thanks very much for staying with this.  I finally figured this
out.  After trying your suggestion with no change in results (still no
log messages showing), I took a look at the default launch
configuration.  It has -logLevel=ERROR.  changing this to INFO shows
the output of GWT.log.

I apologize for wasting your time. Hopefully, this email thread will
help someone else.
--~--~-~--~~~---~--~~
You received 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.log doesn't generate messages to console

2009-03-30 Thread Guy Rouillier

On Mar 30, 8:37 am, Ian Bambury  wrote:
> Is the playground project using GXT?
> If it is, I'd try cutting it out and seeing what happens.
>
> If it isn't, try posting some code.

Ian, thanks, I am using GXT.  I ripped all that out, and still no
messages are showing.  I've got this reduced to a single "Hello,
world" application.  Looks like we are not permitted to attach files
here, so here is the source.  I really don't remember, but I think
this was generated via MyEclipse with GWT Designer:

[CODE]
package com.masergy.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
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.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.Composite;


/**
 * Entry point classes define onModuleLoad().
 */
public class ImageViewer extends Composite implements EntryPoint {
   private VerticalPanel pagePanel = new VerticalPanel();
   private Button clickMeButton;

   public void onModuleLoad() {
  String aVersion = GWT.getVersion();
  GWT.log("ImageViewer.onModuleLoad GWT version: " + aVersion,
null);

  RootPanel rootPanel = RootPanel.get();
  pagePanel.setSpacing(10);
  pagePanel.setWidth("735px");

  rootPanel.add(pagePanel);

  clickMeButton = new Button();
  pagePanel.add(clickMeButton);
  clickMeButton.setText("Version: " + aVersion);
  clickMeButton.addClickListener(new ClickListener() {
 public void onClick(Widget sender) {
GWT.log("ImageViewer clickMeButton.onClick", null);
Window.alert("Hello, GWT World!");
 }
  });
   }
}
[/CODE]

And here is the gwt.xml file:

[CODE]






[/CODE]

Appreciate any pointers.
--~--~-~--~~~---~--~~
You received 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: Why not use applets?

2009-03-29 Thread Guy Rouillier



On Mar 29, 9:46 pm, Rakesh  wrote:
> oops, forgot to mention: javafx is such a wrong initiative and waste
> of time energy and resources in wrong direction!

Care to expand on why you think so?  Why is JavaFX more a waste of
time than, say, Silverlight?
--~--~-~--~~~---~--~~
You received 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.log doesn't generate messages to console

2009-03-29 Thread Guy Rouillier

Sorry, forgot to mention I'm using GWT 1.5.3.  Scott, thanks for the
pointer.  Since our real projects are employing GWT successfully, I'll
just stick with that.  Would be nice to figure out why this playground
app doesn't work, though.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT.log doesn't generate messages to console

2009-03-28 Thread Guy Rouillier

I work with GWT (and GXT) from within MyEclipse.  We have 2 large
production apps with a server component, and GWT.log works fine with
them.  Then I have a small, no function app with no server component
that I use to test out some UI things - my playground app.  GWT.log
messages do not show up in the console for this playground app.  If I
force an error, those error messages show up in the console.  If I
call GWT.getVersion() and put the result into a GUI element, I'm
seeing the correct version string.

I found a forum message reporting this behavior back in 2007 but no
response.  Any ideas on why GWT.log doesn't work for this small app?
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: Suggestion: GWT port to Desktop

2008-10-26 Thread Guy Rouillier

ross wrote:

> Limiting your
> desktop application to run on a JRE equivalent to that which is
> emulated by the GWT will by quite funny.  Let's do the time warp baby
> 

Ross, you are thinking too narrowly.  Think of a single code base.  When 
it runs on the desktop, it has access to local file system and other OS 
facilities.  When it runs in a browser like GWT does today, it degrades 
nicely and only loses minimal functionality.  Write once, run anywhere.

But if you'd rather not expand your horizons, that's fine.  Different 
strokes for different folks, as they say.

-- 
Guy Rouillier

--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-10-22 Thread Guy Rouillier

Jaco Van Staden wrote:
>  From what I can see this runs in Python.  Is there perhaps one that 
> allows your GWT code to run with the Java language?

No, that's an idea the original poster was suggesting.  Purely 
hypothetical at this point.

> 
> As for the mobile applications...  I was wondering whether there would 
> be a port for GWT to Android or some kind of toolkit which compile to 
> both Android and GWT? 

Not necessary.  GWT becomes pure Javascript.  As long as the browser on 
Android can run Javascript, it can run GWT.

> 
> On Thu, Oct 23, 2008 at 1:36 AM, Guy Rouillier <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
> 
> Jaco Van Staden wrote:
>  > Hi...  I just picked up on this thread.  How does this work and where
>  > can I read more about this project?  Is there a way to have GWT code
>  > running on mobile apps?
>  >
>  > Looking forward to hearing from you :)
> 
> Rather than copy the previous messages here, I'll just point you to the
> threads which you can read from the archives:
> 
> ANN: Pyjamas 0.3 Released
> Suggestion: GWT port to Desktop
> 
> And here are some links the original author provided:
> 
> http://pyjd.org for Pyjamas-Desktop
> http://pyjs.org for Pyjamas
> 
> 
> For your last question, GWT is (clever) Javascript.  If your mobile
> browser has the necessary Javascript support, GWT should run there.
> 
> --
> Guy Rouillier
> 
> 
> 
> 
> 
> -- 
> Kind Regards
> 
> Jaco van Staden
> Cell:  +27 (0)82 7712294
> 
> > 


-- 
Guy Rouillier

--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-10-22 Thread Guy Rouillier

Jaco Van Staden wrote:
> Hi...  I just picked up on this thread.  How does this work and where 
> can I read more about this project?  Is there a way to have GWT code 
> running on mobile apps?
> 
> Looking forward to hearing from you :)

Rather than copy the previous messages here, I'll just point you to the 
threads which you can read from the archives:

ANN: Pyjamas 0.3 Released
Suggestion: GWT port to Desktop

And here are some links the original author provided:

 http://pyjd.org for Pyjamas-Desktop
 http://pyjs.org for Pyjamas


For your last question, GWT is (clever) Javascript.  If your mobile 
browser has the necessary Javascript support, GWT should run there.

-- 
Guy Rouillier

--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-10-17 Thread Guy Rouillier

Ian Bambury wrote:
> I'm obviously missing something here...
> 
> I have a requirement to build an Ajax web site. To make the coding 
> easier, I use GWT so I can write in Java.
> 
> i'm advocating running _native_ java - because all of the javascript
> is replaced
> 
> 
> You are suggesting that I write it in the GWT subset of Java, compile it 
> to JavaScript, take the JavaScript, convert that JavaScript into to Java 
> once again, and then run it as a desktop app. And since you are banging 
> on about pyjamas, it must go through a Python incarnation at some stage, 
> but I'm not sure where that fits in.
> 
> *If* that is right, then I have 2 questions:
> 
> 1) Where did the web site go? (And how do I get paid for it)
> 
> 2) If I don't actually need a web site, and it all ends up as Java, why 
> didn't I just write it in Java in the first place?
> 
> I haven't read this right, have I?

I known nothing about pyjamas, but I'm intrigued about what lkcl has 
been discussing.  What he has done (and is suggesting could be done with 
GWT) is to have a browser-based application (via a Java->Javascript 
translater like GWT) and a desktop application (via a direct Java 
runtime) derived from the *same* codebase.

Why bother, you ask?  For your mobile or infrequent users, perhaps a 
browser-based solution is preferable.  At the same time, people who sit 
in front of a stationary desktop system may prefer the look and feel of 
a desktop application.  With the pyjamas approach, you can satisfy both 
constituents with a single set of code.

-- 
Guy Rouillier

--~--~-~--~~~---~--~~
You received 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: Database Connection Parameters in web.xml

2008-10-09 Thread Guy Rouillier

Muhannad wrote:
> Hi,
> 
> I'm about to build a GWT application, communicating with the server
> using RPC, and get access to MySQL database. Actually, I don't want to
> hard-code the database connection parameters, instead I want to put
> them in web.xml and get the values at runtime. Would you please tell
> me how could I do that? How could I get access to web.xml parameters?

What is your runtime environment?  Under Tomcat, the common way to 
handle database connections is to create connection pools as a resource, 
then in your code just obtain a connection from the pool.  Your code 
doesn't need to know the actual pool configuration, nor should it care.

-- 
Guy Rouillier

--~--~-~--~~~---~--~~
You received 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: I am not a JAVA developer

2008-10-07 Thread Guy Rouillier

SID wrote:
> Dear experts,
> 
> I have come across this GWT recently and I need to know more about it
> and its usage. I need to develop some intranet applications like
> Contact Manager, Activity Manager, Some workflow for ESS (like leave
> request, business travel request, etc), and some other modules.
> 
> In the past, I have been using ASP.NET for application developments. I
> have never used JAVA for any of my applications.
> 
> If I decide to use GWT and JAVA, how much time will it take to learn
> and use it for my this project? Will it be tough? Do you think it is a
> good idea to use GWT for my current requirement?
> 
> Though I have never used, but I have learned C, C++ during my studies.

Well, you are biting off a very large chunk at once.  We just finished 
our first GWT application, and we are pretty seasoned Java developers. 
The app is pretty simple, and it still took us about 2 months to figure 
out how we wanted to standardize our approach.  I suppose since you'll 
be doing this yourself, you won't have much discussion on building a 
platform for your company.  But still, just understanding the concepts 
new to GWT is quite a challenge.  In our case, we are persisting data to 
a relation DB, so we had to figure out how to retrieve that, transform 
it into something GWT could use, serialize to browser, etc.  All 
standard GWT stuff, but quite a learning curve.

Since you've never written programs in C++ either, I'd say you should 
probably give yourself 6 months for your first Java/GWT app.

-- 
Guy Rouillier

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