Re: UI Binder

2009-01-12 Thread Johan Rydberg

Zakaluka skrev:

 The UI Binder is currently listed under the Post-1.6 timeframe.
 Seeing as how GWT 1.5.3 is the latest version out there and 1.6 will
 come out in the next 3 months, it'll probably be quite a while before
 we see UI Binder out in a stable form.

It would had been better if the GWT team hadn't said anything about
their internal work.  Then maybe something had popped up from the
community.  Now things are just dead in the sand, waiting for the holy
grail.

What happened to release often, release early?

Just put it in a branch.


--~--~-~--~~~---~--~~
You received 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 Google offer GWT consulting services?

2009-01-12 Thread Chris Marshall

Is there not a need for a gwt marketplace - you post the specification
for an application/component/service
and award the work to whoever offers the best mix of function/form/
price - with a rating system to help
online gwt developers to build a reputation?


On Jan 11, 5:19 am, David E. dve1...@gmail.com wrote:
 Does Google provides GWT consulting services and/or is there a Google
 approved list of GWT consulting companies?
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Grid setCellPadding setCellSpacing issue

2009-01-12 Thread Fred Janon
I am using GWT 1.5.3, I create a Grid and even though getCellPadding and
getCellSpacing both report 0 by default, when I set them both to 0, the
space between cells decreases. Am I missing something or is a known issue?

 int padding = grid.getCellPadding();
 int spacing = grid.getCellSpacing();
 GWT.log(ColorPicker createColorGrid: padding:  + padding + 
spacing:  + spacing, null); // padding 0 spacing 0
 // for some reason, even when the padding and spacing is
reported as 0, setting them to 0 decreases the space between cells.
 grid.setCellPadding(0);
 grid.setCellSpacing(0);

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: 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 sahil.dav...@gmail.com

 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 sahil.dav...@gmail.comwrote:

 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: Ibatis + GWT: No source code is available for type com.ibatis.dao.client.DaoManager; did you forget to inherit a required module?

2009-01-12 Thread heru

hi all,
i'm having problem to parsing data to client,
in case, i always using paginated list to query data,
how about gwt, are there some object type like paginated list in gwt ?
some like 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 Google offer GWT consulting services?

2009-01-12 Thread Gabor Szokoli

On Sun, Jan 11, 2009 at 4:19 AM, David E. dve1...@gmail.com wrote:

 Does Google provides GWT consulting services and/or is there a Google
 approved list of GWT consulting companies?

You can always just pop in to the local java users group mailing list,
wherever you live.
Local freelance consultants always hang out there.
That gives you the added benefit of evaluating applicants based on
their past contribution.


Gabor Szokoli

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



Keeping the header when scrolling

2009-01-12 Thread HB

Hey,
I have a FlexTable (its first row is a header row) embedded in a
ScrollPanel container.
Scrolling the scroll pane will cause the headers to move away.
Any idea how to keep the header even if the user is scrolling?
Well yes, I can create two FlexTables, one for the header and one for
the actual data and embed them in another panel but I'm asking if
there is an alternative way.
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use GWT RPC in OpenSocial

2009-01-12 Thread Eric Ayers
I've not done it with opensocial containers, but there is a trick in the
GadgetRPC sample that should help.  You will need to get the proxy URL for
your RPC using the method:

 
gadgets.io.getProxyUrl()http://code.google.com/apis/gadgets/docs/reference/#gadgets.io.getProxyUrl

The GadgetRPC sample is included in the download under the 'samples'
directory.

Note that  gwt-gadgets-1.0.1 does not support the opensocial 0.8 spec (is
that what you are using?) , only the legacy API.  I don't know that the
generated gadget.xml file is going to work for you without modification.

On Mon, Jan 12, 2009 at 1:56 AM, falcon_whiz sultan.yas...@gmail.comwrote:


 Hi,
  I have created an application using GWT and now I want to deploy
 this app in opensocial containers. The problem is how do I use the
 RPC's they are not working at the moment. Through Firebug I found that
 no request is being sent to the servlets. I am also using gwt-
 gadgets-1.0.1 api to generate the required xml file.
 



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



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

2009-01-12 Thread 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: Proxy class generation

2009-01-12 Thread Shawn Pearce
On Sun, Jan 11, 2009 at 09:25, Madhu CM madh...@gmail.com wrote:


 Hi all,
 I am new to GWT, and i like the way its been implemented.
 But i am struck up with something  I use simple application just
 to do RPC.
 when i do GWT.create() . where will be the proxy class generated ?
 is it done dynamically?dynamically create object for Async?? please
 explain about this .


I thought this was covered somewhere in the docs...  but anyway, its done at
compile time.  The GWT compiler examines call sites of GWT.create() and
generates the proxy class for the input type.  This is done based upon
generate-with rules and replace-with rules within the *.gwt.xml files used
by the application, or inherited by the application by the inherits rule in
those files.  GWT.create() itself is compiled out of the code; it doesn't
appear in the output JavaScript.  The call sites directly create an instance
of the proxy.

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



How does gwt1.5 support jdk1.5

2009-01-12 Thread Mark

I want to make a web tool base on gwt UI. Can you tell me does the
gwt1.5 support java.io? or any other external jars.

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



Re: 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 laieta.hip.hop...@gmail.com


 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: How does gwt1.5 support jdk1.5

2009-01-12 Thread David Hoffer
No, I wouldn't think GWT would support java.io.  GWT can only support what
JS can support.  Google for GWT emulation library I think you will find
there what classes/packages are supported.  Basically the big feature added
in 1.5 release was generics.

-Dave

On Mon, Jan 12, 2009 at 8:06 AM, Mark marksyl1...@gmail.com wrote:


 I want to make a web tool base on gwt UI. Can you tell me does the
 gwt1.5 support java.io? or any other external jars.

 If it support , what will I need to modify the xml file
 


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



GWT for SOA development

2009-01-12 Thread Paranoid Android

Hello. My project is about designing an online social network
application. I'm in a first stage of evaluating different
architectures and design alternatives. The user interface should be
made using GWT and the architecture should be a SOA and/or EDA.
Now, I'm new to all these technologies/architectures (i was used to
MVC using Struts ecc...) and I'm wondering if GWT is a suitable GUI
solution in a
architecture.. I find out the SOAFaces project but it's like in the
earlier stages of development and I instead I need a standard, adopted
and working solution.

Can someone give me some some tips to get started.. What kind of
technologies should I study? Is GWT ok for SOA and EDA?If not, is
there a set of technolgies which adapt well to an SOA architecture,
especially on the client (GUI) side?

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: How to attach a click listener to an existing SPAN element?

2009-01-12 Thread Jason Essington
That is correct!

Label will wrap either span or div elements. if you want to wrap other  
elements there may already be other widgets that work with them.

The only thing to be aware of is, if at sometime in the lifespan of  
your page you remove that element, or dispose of the widget, be sure  
to call RootPanel.detachNow(myLabel); to break the circular reference  
between GWT and DOM for that widget. This prevents a memory leak.

-jason

On Jan 11, 2009, at 12:31 AM, Fred Janon wrote:

 Aa, I knew there was something easier than subclassing...

 Here is it:

 in the Label class:

 static Label wrap(Element element)
   Creates a Label widget that wraps an existing div or  
 span element.

 Example:

 somewhere in my HTML file:

 span id='colorpicker3'span colorpicker3/span

 and in the GWT java code:

  Label spanLabel =  
 Label.wrap(Document.get().getElementById((colorpicker3)));
  spanLabel.addClickListener(new ClickListener()
  {
  public void  
 onClick(com.google.gwt.user.client.ui.Widget sender)
  {
  GWT.log(Label spanLabel onClick, null);
  };
  } );

 And I also found the InlineLabel based on a SPAN element.

 Fred

 On Sun, Jan 11, 2009 at 12:12, Fred Janon fja...@gmail.com wrote:
 Ian,

 Nothing was wrong in your suggestion, I just cannot modify the DOM  
 structure by adding an element for CSS reasons. My implementation  
 needs to be as unobtrusive as possible.

 Thanks

 Fred


 On Sun, Jan 11, 2009 at 11:01, Ian Bambury ianbamb...@gmail.com  
 wrote:
 What was wrong with the suggestion made in response to your previous  
 posting?


 Ian

 http://examples.roughian.com


 2009/1/11 Fred Janon fja...@gmail.com

 Hi,

 I need to add some functionality to an existing web page with a SPAN  
 element and add a click listener to it. The SPAN element is not  
 created with GWT. Is there a way to do that?

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

2009-01-12 Thread Jason Essington

Unfortunately, what you are asking is akin to wanting a step by step  
tutorial for building a whole neighborhood using a hammer ...

The thing is, GWT is just one component of a larger ecosystem, and you  
would need to identify the other parts as well. GWT is not a complete  
solution for building a large web application, you need other parts as  
well, and those decisions would dictate what would go into such a  
tutorial.

-jason

On Jan 11, 2009, at 8:34 AM, asianCoolz wrote:


 is such tutorial available?  i glanced through some of the existing,
 most will either teach you to create calculator, or explain about
 theory.  none of them actually teach you step by step to create web
 app with user login form, shopping cart..etc...

 can anyone recommend good 1.5 tutorials?
 


--~--~-~--~~~---~--~~
You received 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: KeyboardListener help

2009-01-12 Thread Alfred S

I know this won't bump the topic, but I still need some help with
this.  Even if someone just pastes a link a overlooked, that would be
great.

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 
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 for SOA development

2009-01-12 Thread gregor

Service Oriented Architectures are about connecting different systems
within an organisation together using, typically, SOAP. An SOA usually
uses a message hub, often called an Enterprise Service Bus, of some
kind to manage the connections and SOAP calls between systems. Axis is
the most famous open source ESB.

Event Driven Architecture an approach to SOA which is an alternative
to SOAP whereby instead of making direct SOAP RPC calls, systems
broadcast events that other systems may listen for (or subscribe to).
Usually it is derived from existing message hub functionality around
the publish/subscribe message model so existing message hub products
already support the basic functionality. The advantage is it reduces
coupling between systems within the SOA scope in the same way that
using the Observer/Observable pattern in GUI programming does.

If you are building a social networking site, it seems unlikely that
an SOA is what you are looking for since it is geared around
orchestrating complex business transactions between multiple systems
within an organisation, say 10 or 20 of them. If you are looking to
enable other web sites to access your services then I think the most
popular and efficient way to do that is to create and publish a JSON
interface. You could also publish a SOAP interface as well, but it is
unlikely to be as popular as JSON. But AFAIK this is not classified as
SOA, more mash-up support.

regards
gregor




On Jan 12, 3:37 pm, Paranoid Android paranoid.fa...@gmail.com wrote:
 Hello. My project is about designing an online social network
 application. I'm in a first stage of evaluating different
 architectures and design alternatives. The user interface should be
 made using GWT and the architecture should be a SOA and/or EDA.
 Now, I'm new to all these technologies/architectures (i was used to
 MVC using Struts ecc...) and I'm wondering if GWT is a suitable GUI
 solution in a
 architecture.. I find out the SOAFaces project but it's like in the
 earlier stages of development and I instead I need a standard, adopted
 and working solution.

 Can someone give me some some tips to get started.. What kind of
 technologies should I study? Is GWT ok for SOA and EDA?If not, is
 there a set of technolgies which adapt well to an SOA architecture,
 especially on the client (GUI) side?

 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: Getting java.net.SocketTimeoutException: Read timed out

2009-01-12 Thread paveltonev

Hello All,

  The situation on my side is very interesting:
  1) I have a backend ping service which follows for server
availability and receives information about new version of the
software, etc. etc. usually the transfered information here is just
some bytes.
  2) Regular service which on user interaction transfers about 1-2kb
per user click back and forth and just this service fails to connect
to the server.

  1) is working while 2) fails with this exception. Which is
interesting for me but let's continue. I tried to make a workaround of
the problem starting a timer which if 2) fails to connect to server
tries again and again and as a result I never succeed. It is
interesting that I have to reload the application to continue, is
there any workaround of this issue without application reload ? Can
somebody recommend another techniques for this problem, for example it
is interesting for me how GMail copes with the situation when there is
no connection and later restored ?

Best Regards,
Pavel Tonev
On 12 Ян, 15:26, JY chueny...@gmail.com wrote:
 I've had this problem since my production deployment in May last year.
 Receive about 10 such exceptions everyday. I've learnt to ignore them
 as the exceptions can be generated even when the user do not incur any
 loss of functionality. Observations in this thread is generally
 accurate though, ie. it happens only when there is an unstable
 connection.

 On Jan 11, 7:40 am, paveltonev pavelto...@gmail.com wrote:

  Hello All,
  I have same problem, using JBoss AS. The most interesting that this
  situation occurs only and ifonly I have a very big delay when tracing
  the route host i.e. something like 1400ms. I have tested my
  application from many locations in the world today but only from one
  where the connection seems to be unstable I had such a problem. Here
  are my connector settings:

  Connector port=8009 address=${jboss.bind.address}
           emptySessionPath=true enableLookups=false
  redirectPort=8443
           protocol=AJP/1.3 maxThreads=400
  connectionTimeout=60
           compression=force
          /

  Following the documentation 
  :http://www.jboss.org/file-access/default/members/jbossweb/freezone/do...
  it seems that keepAliveTimeout = connectionTimeout = 60 = 10 mins

  I have lost all the day fixing this problem but nothing can be done
  unfortunately. Any help is appreciated!

  Best Regards,
  Pavel Tonev

  On 5 Ян, 11:11, stephen.sm...@paretopartners.com

  stephen.sm...@paretopartners.com wrote:
   I had a similar problem and i eventually tracked it down to a looping
   rpc call.

   If you doing a very large request (or many in very quick succession)
   then you will have toreadthe apache docs and edit the settings in
   your web.xml (possibly keep alive) although with the default
   settings of 1min beforetimeoutthis is unlikely.

   Hope this helps,
   Steve

   On Jan 4, 10:51 pm, rakesh wagh rake...@gmail.com wrote:

Please provide more details on what you are doing. Are you getting
this error on client or server? How much time does your request waits?
Is it because of long executing methods? The error message clearly
reads that it is a timeoutexception. My guess is some operation on
server is taking more time than yourtimeout values set.

For a better answer, give us more  information.

Rakesh Wagh

On Jan 4, 12:45 am, tin nitingupta...@gmail.com wrote:

 Hi All,

 I occassionally get this exception when my app's page is getting
 downloaded in the broser. In my application, I make few rpc calls to
 fetch the data once the JSP is downloaded by the browser.

 Any help in this will greatly be appreciated. No concrete answer could
 be found for this on the internet but it seeems others have faced this
 problem too.

 Stack Trace:

java.net.SocketTimeoutException:Readtimedout
  at java.net.SocketInputStream.socketRead0(Native Method)
  at java.net.SocketInputStream.read(Unknown Source)
  at org.apache.coyote.http11.InternalInputBuffer.fill
 (InternalInputBuffer.java:747)
  at org.apache.coyote.http11.InternalInputBuffer
 $InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
  at org.apache.coyote.http11.filters.IdentityInputFilter.doRead
 (IdentityInputFilter.java:115)
  at org.apache.coyote.http11.InternalInputBuffer.doRead
 (InternalInputBuffer.java:712)
  at org.apache.coyote.Request.doRead(Request.java:427)
  at org.apache.catalina.connector.InputBuffer.realReadBytes
 (InputBuffer.java:283)
  at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:379)
  at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:
 298)
  at org.apache.catalina.connector.CoyoteInputStream.read
 (CoyoteInputStream.java:180)
  at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
 (RPCServletUtils.java:146)
  at 

No Image of Charts

2009-01-12 Thread King

Hello Guys,

I implemented, the example of gwt-ext charts from the web-site
http://www.gwt-ext.com/demo-charts/ the first example with the lines,
in to my projekt.

I only changed a few little things but now no image is visible ? why ?

If i copy the source code 1 to 1 alone in one projekt without my
porjekt the line chart exampe works

this is the source code, of the implemented version from the line
chart example

package se1.gwt.client;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.i18n.client.NumberFormat;
import com.gwtext.client.data.*;

import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.Viewport;
import com.gwtext.client.widgets.chart.yui.LineChart;
import com.gwtext.client.widgets.chart.yui.NumericAxis;
import com.gwtext.client.widgets.chart.yui.SeriesDefY ;
import com.gwtext.client.widgets.form.Label;
import com.gwtext.client.widgets.form.NumberField;
import com.gwtext.client.widgets.form.TextField;
import com.gwtext.client.widgets.grid.*;
import com.gwtext.client.widgets.grid.event.EditorGridListenerAdapter;
import com.gwtext.client.widgets.layout.VerticalLayout;


 public class Ansicht4 extends Composite /*implements EntryPoint*/ {

public Ansicht4() {

final Panel absolutePanel = new Panel();
initWidget(absolutePanel);
/*
final Label ansicht2Label = new Label(Ansicht2);
absolutePanel.add(ansicht2Label, 24, 0);
 Panel panel = new Panel();
 panel.setPaddings(15);

 panel.setLayout(new VerticalLayout(15));
*/
 MemoryProxy proxy = new MemoryProxy(getData());
 RecordDef recordDef = new RecordDef(
 new FieldDef[]{
 new StringFieldDef(month),
 new FloatFieldDef(rent),
 new FloatFieldDef(utilities)
 }
 );

 ArrayReader reader = new ArrayReader(recordDef);
 final Store store = new Store(proxy, reader);
 store.load();

 SeriesDefY[] seriesDef = new SeriesDefY[]{

 new SeriesDefY(Rent, rent),
 new SeriesDefY(Utilities, utilities)

};

 NumericAxis currencyAxis = new NumericAxis();
 currencyAxis.setMinimum(800);
 currencyAxis.setLabelFunction(formatCurrencyAxisLabel);
 final LineChart chart = new LineChart();
 chart.setTitle(Monthly Expenses);
 chart.setWMode(transparent);
 chart.setStore(store);
 chart.setSeries(seriesDef);
 chart.setXField(month);
 chart.setYAxis(currencyAxis);
 chart.setDataTipFunction(getDataTipText);
 chart.setExpressInstall(js/yui/assets/
expressinstall.swf);
 chart.setWidth(500);
 chart.setHeight(400);

 absolutePanel.add(chart);


 Renderer renderer = new Renderer() {
 public String render(Object value, CellMetadata
cellMetadata, Record record, int rowIndex, int colNum, Store store)
{
NumberFormat nf = NumberFormat.getCurrencyFormat();
 return nf.format(((Number) value).doubleValue());
 }
 };
 ColumnConfig monthConfig = new ColumnConfig(Month, month,
150, true);
 TextField monthField = new TextField();
 monthField.setSelectOnFocus(true);
 monthConfig.setEditor(new GridEditor(monthField));

 NumberField rentField = new NumberField();
 rentField.setSelectOnFocus(true);

 ColumnConfig rentConfig = new ColumnConfig(Rent, rent,
100, true);
 rentConfig.setEditor(new GridEditor(rentField));
 rentConfig.setRenderer(renderer);

 NumberField utilitiesField = new NumberField();
utilitiesField.setSelectOnFocus(true);

 ColumnConfig utilitiesConfig = new ColumnConfig(Utilities,
utilities, 100, true);
 utilitiesConfig.setEditor(new GridEditor(utilitiesField));
 utilitiesConfig.setRenderer(renderer);

 ColumnModel columnModel = new ColumnModel(new ColumnConfig[]
{
monthConfig,
 rentConfig,
 utilitiesConfig
 });

 EditorGridPanel grid = new EditorGridPanel();
 grid.setStore(store);
 grid.setClicksToEdit(1);
 grid.setColumnModel(columnModel);
 grid.setWidth(360);

 grid.addEditorGridListener(new EditorGridListenerAdapter()
{
 public void onAfterEdit(GridPanel grid, Record record,
String field, Object newValue, Object oldValue, int rowIndex, int
colIndex) {
 store.commitChanges();
 chart.refresh();
 }
 });

 absolutePanel.add(grid);

 Viewport viewport = new Viewport(absolutePanel);
 }

 private static Object[][] getData() {
 return 

Re: GWT for SOA development

2009-01-12 Thread Paranoid Android

Thank you.

I'm looking at SOA because the variouse features of the social
application should be implememente as remote services..
What I've to develop is the core of the social network..this core
needs to support functionalities that will be added as services in the
future.
Not every functionality will be exposed as a web service, anyway.

I read on many blogs and paper on the Web that SOA and EDA are not
alternatives, but complementary approaches (some refer to this as SOA
2.0, other as Event Driven SOA, etc..).
The interface should be aware of some events in the community and a
part of the tools, along with their GUI (for example a widget that
displays some kind of information for a friend, when he connects into
the network) must listen or at least be updated in response to these
events.

Now I'm a little bit confused, because my past experience of web
application developing was based on MVC model.
JSP interface, Struts as Application Controller and Hibernate as
persistence.

So, I'm wondering if the correct approach is to interact with remote
services in the model, in response of some kind of user interaction
with the GUI, then to update the view with the data etc..(like a
classic MVC approach, with the only difference that some of the
business logic is implemented into remote web services e.g. a Struts
Action that invoke a web service), or there is a more correct
approach, in which the interface itself can speak directly with web
services (something like SOAFaces, remote portlets, etc..).

I'm asking this beacuse there's a lot about SOA for the business
layer, but nothing about the potential advantages of SOA at the user
interface and I'm a newby in this field.

In few words: is the GUI independent from the SOA choice or is it also
exploitable in some ways from the GUI?

Thank you!





On Jan 12, 5:40 pm, gregor greg.power...@googlemail.com wrote:
 Service Oriented Architectures are about connecting different systems
 within an organisation together using, typically, SOAP. An SOA usually
 uses a message hub, often called an Enterprise Service Bus, of some
 kind to manage the connections and SOAP calls between systems. Axis is
 the most famous open source ESB.

 Event Driven Architecture an approach to SOA which is an alternative
 to SOAP whereby instead of making direct SOAP RPC calls, systems
 broadcast events that other systems may listen for (or subscribe to).
 Usually it is derived from existing message hub functionality around
 the publish/subscribe message model so existing message hub products
 already support the basic functionality. The advantage is it reduces
 coupling between systems within the SOA scope in the same way that
 using the Observer/Observable pattern in GUI programming does.

 If you are building a social networking site, it seems unlikely that
 an SOA is what you are looking for since it is geared around
 orchestrating complex business transactions between multiple systems
 within an organisation, say 10 or 20 of them. If you are looking to
 enable other web sites to access your services then I think the most
 popular and efficient way to do that is to create and publish a JSON
 interface. You could also publish a SOAP interface as well, but it is
 unlikely to be as popular as JSON. But AFAIK this is not classified as
 SOA, more mash-up support.

 regards
 gregor

 On Jan 12, 3:37 pm, Paranoid Android paranoid.fa...@gmail.com wrote:

  Hello. My project is about designing an online social network
  application. I'm in a first stage of evaluating different
  architectures and design alternatives. The user interface should be
  made using GWT and the architecture should be a SOA and/or EDA.
  Now, I'm new to all these technologies/architectures (i was used to
  MVC using Struts ecc...) and I'm wondering if GWT is a suitable GUI
  solution in a
  architecture.. I find out the SOAFaces project but it's like in the
  earlier stages of development and I instead I need a standard, adopted
  and working solution.

  Can someone give me some some tips to get started.. What kind of
  technologies should I study? Is GWT ok for SOA and EDA?If not, is
  there a set of technolgies which adapt well to an SOA architecture,
  especially on the client (GUI) side?

  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: Multiple web pages how-to

2009-01-12 Thread A Friend Of Yours

Sorry for late reply...

Can you put the exception and the code for changing contents here?

Omer Akhter

On Jan 11, 6:57 pm, Sahil Dave sahil.dav...@gmail.com wrote:
 On Sat, Jan 10, 2009 at 10:47 AM, A Friend Of Yours
 omer.akh...@gmail.comwrote:



  getSelectedItem is protected method. You can't access it unless you
  are extending MenuBar. So, it might not go that way. I guess you need
  a separate Command for each of the MenuItem.

  i am trying to use separate commands for each menu item, but i have to

 declare the simplePanel as final before using it inside the execute() of
 command.
 due to this, once a menu item set the simplePanel's contents, others are not
 able to overwrite it.
 An exception is also thrown in the GWT shell.

 is there a workaround for this or any other much better way in which i can
 create the functionality for the Navigation Menu?

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



Google Visualization and back-end java

2009-01-12 Thread Den

Hi all,

I have a db containing data on server side.  Currently, I use servlet
to read and display data to jsp page.
I would like to use Google Visualization to display this data, but
from what i understand,
   1 ) data can be retrieved by javascript (which I don't want to use)
   2 ) from Google Spreadsheet (which I don't have and don't wanna
use)

I would like to pass those information from my servlet to Google
Visualization.  How do I do that?
if that's not the right approach, then how can I pass information to
Google Visualization securely?

thank you all,
Den

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



Refreshing the Page

2009-01-12 Thread Sandy

Hi,

I am creating a web portal, I have required to refresh a page . Pls.
let me know , how can i refresh the GWT Page, when I am using
Window.Window.Location.reload()
any where in the portal its come back on the login screen. I have
required to refresh a page only.

Regards,
Sandeep

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



Really need help to get iframe current url and web page DOM (overcoming same origin policy)

2009-01-12 Thread style...@gmail.com

Dear all,

I'm working on a project utilizing GWT and GWT-Ext, has been progress
well until now where I hit a roadblock which potentially can render
the project useless.

I need to create an embedded web browser which has an address bar and
the ability to access the DOM of the current web page within my web
application. Using the Frame and IFrameElement objects in GWT and also
the ManagedIFramePanel from GWT-Ext user extension, I will get null
exception or access denied.

I realized this has to do with Javascript same origin policy where
iframe is restricted to same domain access. I tried some easier
workarounds from google search results but they don't work.

I have the following 2 questions:
- Does anyone have any workable solution to overcome this issue? No
matter how complicated it is, please share with me, really don't wish
to give up my project.

- Is there any alternative to iframe so that I can let users to surf
web pages within my web application? Or at the server side, I can do
something?

Big thanks in advance.

Regards,
Robin

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



Redirect to login page - result blank page

2009-01-12 Thread misqu23

Hi

I have three gwt apps in one war file. One of them is responsible only
for showing loging page with language and theme selection.

Loging is performed through j_security_check, when the loging page is
simply jsp page with j_username and j_password fields everything works
fine. JBoss redirects me to the login page and after successfull login
to the desired gwt app.

The problem occurs when the login page is written in gwt, after
redirect I get the blank page. I can't see the login form.
It seems that after redirect javascript from login page is not
executed.

I'd like to have login page written in gwt beacuse of the similar look
and feel to the other webapps (I use Ext GWT library).

Does anybody of you have similar problem ?
How can I fix this ?

Thanks

Martin


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



Problem extending SelectionScriptLinker

2009-01-12 Thread 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;

// Add external dependencies
startPos = selectionScript.indexOf(// __MODULE_STYLES_END__);
if (startPos != -1) {
for (StylesheetReference resource : artifacts
.find(StylesheetReference.class)) {
String text = 
generateStylesheetInjector(resource.getSrc());


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-5s=google-web-toolkit-doc-1-5t=DevGuideCreatingCustomWidgets
Regards.


2009/1/12 Kamlesh kkn...@gmail.com


 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;

// Add external dependencies
startPos = selectionScript.indexOf(//
 __MODULE_STYLES_END__);
if (startPos != -1) 

Re: Multiple web pages how-to

2009-01-12 Thread A Friend Of Yours

You might like to take a look at this:

http://www.softwaredesign.co.uk/gwt.html

Omer Akhter

On Jan 12, 10:13 pm, A Friend Of Yours omer.akh...@gmail.com wrote:
 Sorry for late reply...

 Can you put the exception and the code for changing contents here?

 Omer Akhter

 On Jan 11, 6:57 pm, Sahil Dave sahil.dav...@gmail.com wrote:

  On Sat, Jan 10, 2009 at 10:47 AM, A Friend Of Yours
  omer.akh...@gmail.comwrote:

   getSelectedItem is protected method. You can't access it unless you
   are extending MenuBar. So, it might not go that way. I guess you need
   a separate Command for each of the MenuItem.

   i am trying to use separate commands for each menu item, but i have to

  declare the simplePanel as final before using it inside the execute() of
  command.
  due to this, once a menu item set the simplePanel's contents, others are not
  able to overwrite it.
  An exception is also thrown in the GWT shell.

  is there a workaround for this or any other much better way in which i can
  create the functionality for the Navigation Menu?

  --
  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: Serialization problem

2009-01-12 Thread huma

Thank you for your answer!

I will see that information.

But what is your opinion about the error message This application is
out of date, please click the refresh button on your browser. .

I would like to know why I'm receveing that message.

Thank you!


On 12 Jan, 15:14, ganesh machkure gmachk...@gmail.com wrote:
 Hi,

 I would suggest you to go through Pro web 2.0 GWT Book. There author has
 given possible solution for PersistentSet, PersistenMap  and others
 serialization issue with GWT using HibernateFilter and writing a different
 ServerStreamSerializer class for that.

 -Ganesh



 On Mon, Jan 12, 2009 at 3:33 AM, huma hugo.m.marcel...@gmail.com wrote:

  Hi people.

  I've been developing an application with hibernate + spring + gwt, and
  i've come to a point where i need some help from you!

  I know that hibernate generates PersistentBag for Lists ( Hibernate
  implementation of List), and I need to serialize this lists. But I
  know that GWT doesn't support PersistentBag.

  So, and because i've read that we can implement a custom field
  serializer, i developed a PersistentBag_CustomFieldSerializer, like
  this:

  package org.hibernate.collection;

  import com.google.gwt.user.client.rpc.SerializationException;
  import com.google.gwt.user.client.rpc.SerializationStreamReader;
  import com.google.gwt.user.client.rpc.SerializationStreamWriter;

  /**
   * Custom field serializer for {...@link
  org.hibernate.collection.PersistentBag}.
   */
  public final class PersistentBag_CustomFieldSerializer {

     public static void deserialize(SerializationStreamReader
  streamReader, PersistentBag instance) throws SerializationException {
         int size = streamReader.readInt();
         for (int i = 0; i  size; ++i) {
             Object obj = streamReader.readObject();
             instance.add(obj);
         }
     }

     public static void serialize(SerializationStreamWriter
  streamWriter, PersistentBag instance) throws SerializationException {
         int size = instance.size();
         streamWriter.writeInt(size);
         for (Object o : instance) {
             streamWriter.writeObject(o);
         }
     }

  }

  With this development, the server serializes the instance, with no
  error, but the client return's a message saying
  This application is out of date, please click the refresh button on
  your browser.

  Could anyone provide with possible hints to solve this error.

  Best regards

  Hugo Marcelino

 --
 Thanks N Regards
 Ganesh Machkure
--~--~-~--~~~---~--~~
You received 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 and servlets

2009-01-12 Thread rsoto

Hello I have finish a simple app using gwt and gwt maps. What I
want to do now is t have an external java class that can access this
app and get some results from it. This will be the process:
1.- Route.class wants to access this app passing address A and address
B as parameters into the url
2.- The app will be then don some geocoding and will come with a
route, duration, distance and waypoints
3.- This information need to be passed back to the Route.class
Now I have Route.class and the app done, the final step is the one
that is missing.
Thank you in advance for any help provided.
rsoto
--~--~-~--~~~---~--~~
You received 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 and Business Intelligence.

2009-01-12 Thread Miroslav Genov

Hello ,
   I have a question regarding using of GWT for the creation of a
intranet system for business intelligence. Is GWT good for creation of
such application ?

   I know that the question is complex, but I'm asking it because I
don't know whether I'll have problems with the implementation of some of
the general purpose things that are main for such application. By main
things I mean: exporting types, charts, tabular structure visualization
and etc.

   I hope that there are people in this forum that are having such
experience.


Regards,
  Miroslav


   



--~--~-~--~~~---~--~~
You received 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 Sahil Dave
On Mon, Jan 12, 2009 at 4:15 PM, olivier FRESSE olivier.fre...@gmail.comwrote:

 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.


 nope i have just one version of java installed, not even gcj.



-- 
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: firefox bookmark gwt app not happenning...

2009-01-12 Thread Sumit Chandel
Hi Pady,

You shouldn't need to do anything explicit in your host page to make your
GWT application bookmarkable. My guess us that the bookmark problem might
have to do with a corrupted Firefox profile.

Could you try starting Firefox with a new profile and then bookmark the
application anew? Hopefully it would work, otherwise I would follow up with
the Firefox support group.

Creating a new Firefox profile:
http://support.mozilla.com/en-US/kb/Managing+profiles

Hope that helps,
-Sumit Chandel

On Wed, Jan 7, 2009 at 6:19 AM, padysr...@gmail.com padysr...@gmail.comwrote:



 I have a gwt app the link to which I would like to place in firefox
 bookmarks toolbar. I add it as a bookmark and it shows up fine. Then
 when i restart firefox it is gone. Do I have to add something in the
 default gwt html to make it bookmark'able ?

 Thx

 -- pady
 


--~--~-~--~~~---~--~~
You received 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: Multiple web pages how-to

2009-01-12 Thread Sahil Dave
On Mon, Jan 12, 2009 at 10:43 PM, A Friend Of Yours
omer.akh...@gmail.comwrote:


 Sorry for late reply...

 Can you put the exception and the code for changing contents here?


*code:*

final SimplePanel content = new SimplePanel();
MenuBar navMenu = new MenuBar(true);
MenuBar serviceMenu = new MenuBar();

Command cmdAbout = new Command() {
public void execute() {
content.add(new About());
}
};

Command cmdDesign = new Command() {
public void execute() {
content.add(new WebDesign());
}
};

navMenu.addItem(About Us, cmdAbout);
navMenu.addItem(Services, serviceMenu);
serviceMenu.addItem(design, cmdDesign);



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



I'm going with Seam and GWT......wish me luck..

2009-01-12 Thread dannydog

I've been doing Java development for over 10 years. Every year it
becomes more complicated and convoluted and less pleasurable. As I
apply for contracts I am presented with the following requirements:
Spring
Struts
Hibernate
TopLink
J2EE (and the 15 components that come with it that no recruiter can
possibly understand)
Websphere and all of the 27 add-ons that come with it
Eclipse
MyEclipse
YourEclipse
TheirEclipse
DOM
JDom
XDom
XML
XSL
XSLT
XPath
XHTML
XXX (used for Adult Sites)
SOA
Soap
HandSoap
Agile (sorry but experience with XP doesn't count)
JAVA EE 5
EJB 3
EJB - Session  Beans, Message Beans, Entity Beans, Refried XBeans
Weblogic
Tomcat
HTML
Ajax
Javascript
Flex
JSF
JSP
Tag Libraries
Oracle
MS SQL Server
SQL Server
MySQL
DBA
Stored Procedures
Refactoring
Design patterns I've never heard of (and I've read the Gang of Twelve
book).

And then there's all of the PHP stuff that I don't care about but are
'nice to have'.

And OF COURSE you must have AT LEAST 6 months experience with each of
them. So, in my mind, this is total insanity and I'm sick of it.

I'm between assignments at this time. I have Seam In Action and GWT In
Practice and 20 other Java  books for reference. I also want to use
REST when it's possible as well as JUnit and TextNG (with Seam),
Tomcat and Derby (and of course the requisite CSS). That's it.
Shouldn't that be enough for one human being?

Seam and GWT seem to be two up and coming technologies. I may  be
wrong and out of work for awhile but you have to draw the line
someplace, right? Flex is compelling but I think it's a fad. I don't
want to have to become a JavaScript expert - I've never liked it. It's
implementation is usually totally disorganized and the language has a
tendency to blow up in your face for no comprehensible reason.

After careful consideration of all of the above I may be wrong in my
choices. I plan to start a blog to share my experiences.

Wish me luck!

--~--~-~--~~~---~--~~
You received 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: Issue In Forum Type Of Application

2009-01-12 Thread Sumit Chandel
Hi tiru,

Have you tried taking a look at the PagingScrollTable widget in the GWT
Incubator project? You could load up the thread listings in the scroll table
and browse the list of threads page by page. If you wanted to select a
particular page you could do the page math on the server-side and then
select the appropriate page on the client based on the threads per page you
want to display. You could scroll the specific thread into view using the
DOM.scrollIntoView(element) method. This would mean that the elements you
add to the PagingScrollTable would need to have unique element ids.

PagingScrollTable:
http://code.google.com/docreader/#p=google-web-toolkit-incubator,gwt-incubator-1-5-wikis=google-web-toolkit-incubatort=PagingScrollTable

Hope that helps,
-Sumit Chandel

On Thu, Jan 8, 2009 at 3:04 AM, tiru tiru.all...@gmail.com wrote:



 Hi Guys,
 I was Just Developing A Forum Sort of application. my requirement i am
 using a paging table where  i display 10 post per page. i would get a
 id of the post which may exist in any one of the page. i need to go
 directly to the page where the post exist.
 as  a scenario let say a post exist in 4 page bottom. so when i click
 a link i should automatically go to the 4 page and to the bottom of
 the page. i do not get any widgets useful in gwt in this case. can any
 one sort me out


 thanks for the advices and help
 thank u,

 


--~--~-~--~~~---~--~~
You received 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: Programmatically Generating Physical Key

2009-01-12 Thread Sumit Chandel
Hi Anurag,

Thanks for clearing up your use case. I think Reinier guessed it right the
first time.

What you'll need to do to implement that kind of functionality is as he
suggested, using a violator pattern to access the list of keyboard listeners
and then firing onKeyPress for each of them. You can inspire yourself from
the example below, used to access the private StackPanel.setStackVisible()
method and visibleStack field through JSNI:

private native void violate(StackPanel stackPanel) /*-{
  stackpan...@com.google.gwt.user.client.ui.stackpanel
::setStackVisible(IZ)(stackpan...@com.google.gwt.user.client.ui.stackpanel::visibleStack,
false);
  stackpan...@com.google.gwt.user.client.ui.stackpanel::visibleStack = -1;
}-*/;

You would essentially do something similar, except to access the keyboard
listener collection instead. It seems like it might be generally useful to
create RichTextArea buttons that could issue key combinations for these kind
of rich text operations. If this sounds reasonable to you, feel free to add
it to the Issue Tracker so that others can track and star it based on
interest.

Issue Tracker:
http://code.google.com/p/google-web-toolkit/issues/list

Hope that helps,
-Sumit Chandel

On Wed, Jan 7, 2009 at 10:58 PM, Anurag Tripathi anurag...@gmail.comwrote:


 Thanks Sumit for getting back on this ! My scenario is something like
 this -
 On pressing Ctrl+z/Ctrl+y, browser performs Undo/Redo in RichTextArea,
 I want to support this functionality in Buttons, So my intention was
 rather than capturing onBrowserEvents(EventPreviews) just generate ctrl
 +z/ctrl+y programmatically on clicking on buttons and let them browser
 to handle. This will remove javascript quirks too.
 And I didn't find any undo/redo implemenations in RichTextArea.

 _Anurag

 On Jan 7, 1:11 pm, Reinier Zwitserloot reini...@gmail.com wrote:
  I assume you meant faking the pressing of a key on the keyboard.
 
  You can't do that directly, no, but you can sort-of call the
  keylisteners on any particular object.
 
  For example, let's say you have a TextBox instance called 'textBox',
  and you want to simulate pressing the 'X' button.
 
  You'll need to do two things:
 
  1) Simulate the effect of the X button on the textBox itself, which
  means updating the text inside by inserting an X at the current cursor
  position.
 
  2) Call all keyboardlisteners on textBox.
 
  #2 can be done with some technically nonsupported hackery - each
  implementation of SourcesKeyboardEvents in GWT at least has an
  internal private object of type 'KeyboardListeners', called
  'keyboardListeners'. While its private, you can still get at it via
  JSNI (look that up) which doesn't know about 'private' and thus allows
  it. Once you have the keyboardListeners, which is really just an
  ArrayList, you can loop through them and fire the appropriate call
  (e.g. onKeyPress) on all of them.
 
  The reason GWT doesn't support this directly is because javascript
  doesn't support it either. GWT isn't magic; it cannot make things that
  are impossible on the target platform possible.
 
  On Jan 2, 2:26 pm, Anurag Tripathi anurag...@gmail.com wrote:
 
   Can we programmatically generate physical keys in GWT ?
 
   Scenario : I want to generate some key on clicking in Button !
 
   If anyone has any idea on this, please let me know -
 
   _Anurag
 


--~--~-~--~~~---~--~~
You received 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: Support for server side redirect

2009-01-12 Thread Sumit Chandel
Hi Krishna,

I think that having GWT RPC handle server-side redirect may be a bit out of
scope for the GWT RPC subsystem. You could instead setup a standard servlet
to specifically handle server-side redirects and invoke it in the normal way
(using the RequestBuilder class, for example). Alternatively, you could
setup your application logic to handle the redirect on the client-side.

Hope that helps,
-Sumit Chandel

On Thu, Jan 8, 2009 at 10:04 PM, krishna krishnakum...@gmail.com wrote:



 Hi All,

 Does GWT RPC honor server side redirects? If no, can it be enhanced to
 support server side redirects?

 Regards,
 Krishna
 


--~--~-~--~~~---~--~~
You received 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: validation framework

2009-01-12 Thread Sumit Chandel
Hi Manish,

Also see Issue #343, which plans to address field validation on the
client-side and server-side in an upcoming release.

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

Hope that helps,
-Sumit Chandel

On Fri, Jan 9, 2009 at 2:33 AM, Martin martin.konz...@gmail.com wrote:


 we have some validation on the client side within our toools
 project ... it is a so called business object panel where you can put
 in attributes and rules ... check out http://toools.org

 On Jan 6, 2:52 pm, manish man2k1...@gmail.com wrote:
  Is there any framework which can validate the user inputs at the
  client side as well as server side?
 


--~--~-~--~~~---~--~~
You received 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 with apache tomcat

2009-01-12 Thread Sumit Chandel
Hi jamer,

I believe this problem has more to do with your Apache Tomcat configuration
than with GWT. I would recommend checking out the Apache Tomcat support
mailing list to seek more help with this issue.

http://tomcat.apache.org/lists.html

Hope that helps,
-Sumit Chandel

On Fri, Jan 9, 2009 at 5:04 AM, jamer jameragui...@gmail.com wrote:


 Hi group!
 I developed an application in GWT and when deployed in tomcat (Mac OS)
 I get the following breakdown.

 applicationDispatcher.allocateException=Except for booking space for
 servlet


 The same application to the deployment of Windows and Apache Tomcat is
 fine for me.
 Why might that be?
 


--~--~-~--~~~---~--~~
You received 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 for SOA development

2009-01-12 Thread Duong BaTien

On Mon, 2009-01-12 at 08:40 -0800, gregor wrote:
 Service Oriented Architectures are about connecting different systems
 within an organisation together using, typically, SOAP. An SOA usually
 uses a message hub, often called an Enterprise Service Bus, of some
 kind to manage the connections and SOAP calls between systems. Axis is
 the most famous open source ESB.
 
 Event Driven Architecture an approach to SOA which is an alternative
 to SOAP whereby instead of making direct SOAP RPC calls, systems
 broadcast events that other systems may listen for (or subscribe to).
 Usually it is derived from existing message hub functionality around
 the publish/subscribe message model so existing message hub products
 already support the basic functionality. The advantage is it reduces
 coupling between systems within the SOA scope in the same way that
 using the Observer/Observable pattern in GUI programming does.
 

Yes, Event Driven Architecture is what we are current investigating.
Currently, we are aware of two: one from Tibco with OpenAjax Push
(OpenAjax Hub and PageBus) and the other from Oracle Coherent. Please
share what you are working on especially in the context of Cloud
Computing using Google AppEngine and MapReduce.

 If you are building a social networking site, it seems unlikely that
 an SOA is what you are looking for since it is geared around
 orchestrating complex business transactions between multiple systems
 within an organisation, say 10 or 20 of them. If you are looking to
 enable other web sites to access your services then I think the most
 popular and efficient way to do that is to create and publish a JSON
 interface. You could also publish a SOAP interface as well, but it is
 unlikely to be as popular as JSON. But AFAIK this is not classified as
 SOA, more mash-up support.
 
Yes, JSONP looks very promising especially with GWT JavaScript Overlay.
It will be a long but potentially good road in cloud computing serives.

Regards
Duong Batien
DBGROUPS and BudhNet

 regards
 gregor
 
 
 
 
 On Jan 12, 3:37 pm, Paranoid Android paranoid.fa...@gmail.com wrote:
  Hello. My project is about designing an online social network
  application. I'm in a first stage of evaluating different
  architectures and design alternatives. The user interface should be
  made using GWT and the architecture should be a SOA and/or EDA.
  Now, I'm new to all these technologies/architectures (i was used to
  MVC using Struts ecc...) and I'm wondering if GWT is a suitable GUI
  solution in a
  architecture.. I find out the SOAFaces project but it's like in the
  earlier stages of development and I instead I need a standard, adopted
  and working solution.
 
  Can someone give me some some tips to get started.. What kind of
  technologies should I study? Is GWT ok for SOA and EDA?If not, is
  there a set of technolgies which adapt well to an SOA architecture,
  especially on the client (GUI) side?
 
  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: How to integrate Hibernate and GWT

2009-01-12 Thread Sumit Chandel
Hi Dessorry,

In terms of where to put your Hibernate code, you're most likely to get
useful replies and information on the Hibernate site and discussion forum:

Hibernate homepage:
http://www.hibernate.org/

About using your Hibernate objects in GWT - as you will discover by
searching threads in this forum about the subject, you normally can't use
Hibernate objects directly in GWT RPC because of the types used in Hibernate
that aren't supported by GWT's emulated JRE. However, you can always create
data transfer objects that mirror your Hibernate objects. These are regular
POJOs that obey the constraints of the emulated JRE. In addition to this and
other techniques you might find in a group search, you can also use the
Gilead library which is designed for the purpose of integrating Hibernate
with GWT.

Chances are that since you're just getting started out with GWT, there are
probably more than a few terms in the preceding paragraph that might have
you scratching your head. Check out the links below for more info and feel
free to post back if you have an additional questions.

GWT emulated JRE:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=RefJreEmulation

Gilead project:
http://noon.gilead.free.fr/gilead/

Hope that helps,
-Sumit Chandel

On Fri, Jan 9, 2009 at 3:15 AM, Martin martin.konz...@gmail.com wrote:


 if you want to take a look at a toplink JPA based solution, check out
 http://toools.org

 cheers

 On Dec 3 2008, 11:13 am, Dessorry niccolo.gianner...@gmail.com
 wrote:
  Hi,
  I'm trying to build my first GWT application; i would read data from a
  database and display it on a simple gwt page.
  I create in Eclipse my Web Dynamic Project.
  I put my POJO class in mypackage.server and the class with entrypoint
  in mypackage.client.
  I create a new GWT Remote Service with Eclipse.
  Now where must i put the hibernate code to access database?
  p.s.in mypackage.server there are hibernate.cfg.xml and pojo.hbm.xml
 
  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 add points in chart by clicking on different areas of it?

2009-01-12 Thread Sumit Chandel
Hi Saurabh,

Your best bet is to post this question to the Google Visualization API
group. Since the mapping in the GALGWT project is generally 1:1, you should
be able to get a solution there and code up the equivalent in your GWT
application.

Google Visualization API group:
http://groups.google.com/group/google-visualization-api

Cheers,
-Sumit Chandel

On Fri, Jan 9, 2009 at 4:53 AM, saurabh hirani saurabh.hir...@gmail.comwrote:


 Hi all,

 Thanks for developing a great product like GChart which integrates so
 easily with GWT and works like charm. I had a query - I want to draw a
 chart where I can click on any point along the x-y axis to determine
 the point cordinates in model units. Once I get that, I can do an
 addPoint() to add the point to the curve.

 I tried doing that in GChart but I did not find any methods through
 which I can handle a mouse click event to get the x-y cordinates in
 model units. I can get the cordinates by implementing an EventListener
 for the chart but those cordinates are of the browser window and in
 different units. So it does not help. How can we accomplish this in
 GChart?

 Also, as GChart is a subclass of widget, I can use widget's methods on
 it. But as Curve, Point are classes enclosed within GChart, I cannot
 use widget methods on it. Am I right in saying this?

 


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



Re: java.io.Serializable

2009-01-12 Thread Sumit Chandel
Hi Tomek,

Isaac is probably on the right path here. If you switched to GWT 1.5 and
changed the implementing type from IsSerializable to java.io.Serializable,
you would only receive the error messages talking about isSerializable if
the .gwt.rpc serialization policy file wasn't deployed or wasn't accessible.
The GWT RPC mechanism defaults to the IsSerializable convention if it can't
find the serialization policy file or if it can't find the serializable type
listed.

Hope that helps,
-Sumit Chandel

On Fri, Jan 9, 2009 at 10:02 AM, Isaac Truett itru...@gmail.com wrote:


 Are you deploying the gwt.rpc files from compilation? You should see
 an error about this before the SerializationException.


 On Fri, Jan 9, 2009 at 7:17 AM, tomekp tom...@mailinator.com wrote:
 
  hi,
  According to GWT documentation (http://code.google.com/support/bin/
  answer.py?hl=enanswer=78126), it should be possible to use
  java.io.Serializable instead of IsSerializable interface.
  But for me even the simpliest classes cannot be serialized when I
  switch from IsSerializable to Serializable.
  I checked that the automatically generated whitelist contains right
  entries. I checked the hosted and web mode.
  I always get the following exception:
 
  Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
  'ch.systemsx.cisd.openbis.generic.client.web.client.dto.X' was not
  assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did
  not have a custom field serializer.  For security purposes, this type
  will not be deserialized.
 at
 
 com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize
  (LegacySerializationPolicy.java:123)
 at
 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize
  (ServerSerializationStreamReader.java:490)
 at
 
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
  (AbstractSerializationStreamReader.java:61)
 at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
  $ValueReader$8.readValue(ServerSerializationStreamReader.java:131)
 at
 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue
  (ServerSerializationStreamReader.java:372)
 at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287)
 ... 35 more
 
  For some reason always the LegacySerializationPolicy class is used.
  I'm using GWT 1.5.
  Any ideas what can be wrong? Has anyone succeeded to use Serializable
  interface?
 
  Greetings
   Tomek
 
  
 

 


--~--~-~--~~~---~--~~
You received 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: java.io.Serializable

2009-01-12 Thread Sumit Chandel
Hi Arthur,

I'm curious about why java.io.Serialization wouldn't work using Spring MVC.
Did that occur when trying to work with Spring MVC directly (i.e. no other
third party library, such as GWT-SL)? I just want to make sure there wasn't
anything introduce by the switch to java.io.Serializable that would cause
unexpected problems with other frameworks.

Thanks,
-Sumit Chandel

On Sun, Jan 11, 2009 at 3:47 PM, Arthur Kalmenson arthur.k...@gmail.comwrote:


 If you're integrating with Spring MVC, I found problems using
 java.io.Serializable. Switching to IsSerializable fixed the problems.

 --
 Arthur Kalmenson



 On Fri, Jan 9, 2009 at 7:17 AM, tomekp tom...@mailinator.com wrote:
 
  hi,
  According to GWT documentation (http://code.google.com/support/bin/
  answer.py?hl=enanswer=78126), it should be possible to use
  java.io.Serializable instead of IsSerializable interface.
  But for me even the simpliest classes cannot be serialized when I
  switch from IsSerializable to Serializable.
  I checked that the automatically generated whitelist contains right
  entries. I checked the hosted and web mode.
  I always get the following exception:
 
  Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
  'ch.systemsx.cisd.openbis.generic.client.web.client.dto.X' was not
  assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did
  not have a custom field serializer.  For security purposes, this type
  will not be deserialized.
 at
 
 com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize
  (LegacySerializationPolicy.java:123)
 at
 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize
  (ServerSerializationStreamReader.java:490)
 at
 
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
  (AbstractSerializationStreamReader.java:61)
 at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
  $ValueReader$8.readValue(ServerSerializationStreamReader.java:131)
 at
 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue
  (ServerSerializationStreamReader.java:372)
 at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287)
 ... 35 more
 
  For some reason always the LegacySerializationPolicy class is used.
  I'm using GWT 1.5.
  Any ideas what can be wrong? Has anyone succeeded to use Serializable
  interface?
 
  Greetings
   Tomek
 
  
 

 


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



Re: GWT and Business Intelligence.

2009-01-12 Thread mikedshaf...@gmail.com

You're asking an incredibly broad question that can only be answered -
yes.

My best advice to you is to start working with GWT and build yourself
a prototype that will test some of your desired features.

If your development team is proficient in Java, then GWT will be
fairly easy.  You'll need to understand the dynamics of AJAX browser
development, and some understanding servlet containers, again this is
a browser based web application...you do need to know some of the
basics there.  If you or your team has done anything like Swing, then
GWT will feel very familiar, but browser based.

So again, you've asked a gigantic question that can really be answered
by saying yes, build yourself a prototype.

Later,
Shaffer

On Jan 12, 1:32 pm, Miroslav Genov mgenov.j...@gmail.com wrote:
 Hello ,
    I have a question regarding using of GWT for the creation of a
 intranet system for business intelligence. Is GWT good for creation of
 such application ?

    I know that the question is complex, but I'm asking it because I
 don't know whether I'll have problems with the implementation of some of
 the general purpose things that are main for such application. By main
 things I mean: exporting types, charts, tabular structure visualization
 and etc.

    I hope that there are people in this forum that are having such
 experience.

 Regards,
   Miroslav
--~--~-~--~~~---~--~~
You received 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 File prase

2009-01-12 Thread Mark

I want to make an file tree using gwt to prase the local dir , who can
help me ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Recommended GWT Maven plugin

2009-01-12 Thread 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: Recommended GWT Maven plugin

2009-01-12 Thread David Hoffer
I have used the first one (
http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/index.html)
with good results, I can't speak for the other one.

-Dave

On Mon, Jan 12, 2009 at 7:11 PM, Joshua Partogi joshua.j...@gmail.comwrote:


 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: Asynchronous calls to get HTTP files

2009-01-12 Thread Antoine Bruguier

Thank you everyone for your answer. I was quite aware to that calls
were asynchronous and from your replies it seems that it is the only
way. Somebody else on another forum, I found a way to use the
equivalent of function pointers (That was the other part of the
question).

http://stackoverflow.com/questions/122407/whats-the-nearest-substitute-for-a-function-pointer-in-java

Tony

On Jan 12, 7:58 am, Jason Essington jason.essing...@gmail.com wrote:
 perhaps this will explain it a bit better:

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 -jason
 On Jan 10, 2009, at 10:47 AM, AntoineBruguierwrote:



  Hello,

  I am a newbie with GWT so please bear with me. I would like to write
  some code that fetches some HTTP file. I have read the tutorials but
  they do not quite answer my question.

  OK, here's my code. It does something but not quite what I want. The
  entry point is the function isInputDataValid(). My problem is that it
  prints Step 1, then Step 2, then the content of the HTML page. I
  guess the fetching is done in another thread. That is not what I want,
  since I would like to return a specific boolean depending on the
  content of my page.

  I guess I could write the code inside the function PrintOut() but that
  is not so good. I am planning to fetch several pages and I would have
  to replicate the code several times. I could also use a mutex system,
  but that I haven't been able to find. Or maybe there's a ready example
  using another approach but I couldn't find it.

  Please point me toward the right information. I hope I was clear.

  Thanks,
  Tony
--~--~-~--~~~---~--~~
You received 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: RPC Error while running on Glassfish

2009-01-12 Thread GWTFan

You're right. I had to setup the permission for the application on the
server policy file.

It works now!

Thanks

On Jan 11, 4:11 am, Joe Cole profilercorporat...@gmail.com wrote:
 Looks like you have a permissions issue:
 Caused by: java.security.AccessControlException: access denied
 (java.lang.reflect.ReflectPermission suppressAccessChecks)

 I would check the glassfish docs on how to allow reflection for your
 servlets. Security must be turned off in the dev version.

 On Jan 11, 10:38 pm, Valavanur Man mramad...@gmail.com wrote:

  Has anyone faced similar issue? Can you please throw some light?

  On Jan 9, 2:38 pm,GWTFanvalavanur...@gmail.com wrote:

   We are using GWT 1.5.3.

   On Jan 9, 2:38 pm,GWTFanvalavanur...@gmail.com wrote:

I'm getting the following error while trying to run our application on
Glassfish High Availability server Version 9.1.

However the same application runs well on Glassfish Version 9.1
Developer edition.

Can anyone help?

[#|2009-01-09T14:32:37.858-0800|SEVERE|sun-appserver9.1|
javax.enterprise.system.container.web|
_ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=570535ce-
d13f-40a9-8ab3-6fec976c27e6;|WebModule[/Tims]Exception while
dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException:
java.lang.reflect.InvocationTargetException
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
 zeWithCustomSerializer
(ServerSerializationStreamWriter.java:696)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
 zeImpl
(ServerSerializationStreamWriter.java:659)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
 ze
(ServerSerializationStreamWriter.java:593)
        at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
 Object
(AbstractSerializationStreamWriter.java:129)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
 zeValue
(ServerSerializationStreamWriter.java:530)
        at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:
573)
        at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
(RPC.java:441)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:529)
        at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:164)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
738)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:
831)
        at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.security.SecurityUtil$1.run
(SecurityUtil.java:276)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:
517)
        at org.apache.catalina.security.SecurityUtil.execute
(SecurityUtil.java:309)
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege
(SecurityUtil.java:192)
        at
org.apache.catalina.core.ApplicationFilterChain.servletService
(ApplicationFilterChain.java:404)
        at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:290)
        at org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:271)
        at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:202)
        at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:632)
        at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:577)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
94)
        at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:206)
        at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:632)
        at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:571)
        at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:1080)
        at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:150)
        at 

Re: How to use GWT RPC in OpenSocial

2009-01-12 Thread falcon_whiz

Hi Eric,
 I tried the GadgetRPC sample but its returning with the following
exception :

com.google.gwt.user.client.rpc.StatusCodeException: html head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1/ titleError 405 HTTP method POST is not
supported by this URL/title /head bodyh2HTTP ERROR: 405/
h2preHTTP method POST is not supported by this URL/pre
pRequestURI=/gadgets/proxy/ppismalla href=http://
jetty.mortbay.org/Powered by Jetty:///a/small/i/pbr/ br/
br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/
 br/ br/ br/ br/ br/ br/ /body /html

I tried to deploy the application in igoogle and then in Shindig
server present on my machine but the result is same...
Can you please tell me whether I am doing something wrong during
deployment ??


On Jan 12, 6:32 pm, Eric Ayers zun...@google.com wrote:
 I've not done it with opensocial containers, but there is a trick in the
 GadgetRPC sample that should help.  You will need to get the proxy URL for
 your RPC using the method:

  gadgets.io.getProxyUrl()http://code.google.com/apis/gadgets/docs/reference/#gadgets.io.getPro...

 The GadgetRPC sample is included in the download under the 'samples'
 directory.

 Note that  gwt-gadgets-1.0.1 does not support the opensocial 0.8 spec (is
 that what you are using?) , only the legacy API.  I don't know that the
 generated gadget.xml file is going to work for you without modification.

 On Mon, Jan 12, 2009 at 1:56 AM, falcon_whiz sultan.yas...@gmail.comwrote:



  Hi,
   I have created an application using GWT and now I want to deploy
  this app in opensocial containers. The problem is how do I use the
  RPC's they are not working at the moment. Through Firebug I found that
  no request is being sent to the servlets. I am also using gwt-
  gadgets-1.0.1 api to generate the required xml file.

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Adding and Image to a Panel will not working for firefox and chrome

2009-01-12 Thread tr.x

Hello guys,

The following code does not seem to work on FF and Chrome, however
works without any problems in IE.

public void onModuleLoad()
{
Image
testImg = new Image(test.png);
testImg.setVisible( true );

AbsolutePanel
absPanel = new AbsolutePanel();
absPanel.add( testImg , 100, 100 );

RootPanel.get().add( absPanel );
}

Bypassing the panel and adding the image directly to the RootPanel
works fine on all browsers.

FireBug does not point to any errors and according to it, this is the
code generated:

div style=overflow: hidden; position: relative;
img class=gwt-Image src=test.png style=width: 200px; height:
200px; position: absolute; left: 100px; top: 100px;/
/div

Changing the panel from an absolute panel to any other panel i.e.
SimplePanel also does not seem to work.

If someone can please point me in the right direction as this problem
is driving me crazy!

Thanks in advance,

tr.x

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



javaongems

2009-01-12 Thread asianCoolz

1. hi. any similar library like javaongems with
abstractpagecoordinator and controller to ease page development
2. where can i find documentation, javadoc for javaongems that
explaining how to use each widget


--~--~-~--~~~---~--~~
You received 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 joshua.j...@gmail.com


 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: Problems with newline symbol in a TextArea (works in IE but not in Firefox)

2009-01-12 Thread alex.d

Use new HTML(1.1.1.1br1.1.1.2br1.1.1.) instead.

On 12 Jan., 16:14, olivier FRESSE olivier.fre...@gmail.com wrote:
 If I remember well, textarea uses \r\n as newline characters, whatever the
 platform/browser is

 2009/1/12 LFCPD laieta.hip.hop...@gmail.com



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



[gwt-contrib] [google-web-toolkit commit] r4424 - releases/1.6/user/src/com/google/gwt/user/client/ui

2009-01-12 Thread codesite-noreply

Author: e...@google.com
Date: Mon Jan 12 07:49:45 2009
New Revision: 4424

Modified:
releases/1.6/user/src/com/google/gwt/user/client/ui/ChangeListener.java
 
releases/1.6/user/src/com/google/gwt/user/client/ui/ChangeListenerCollection.java
 
releases/1.6/user/src/com/google/gwt/user/client/ui/SourcesChangeEvents.java

Log:
Adds updated @deprecated comments to change listeners to reflect that both  
change handler and value change handler are valid upgrade paths.
Reviewed by:fabbott

Modified:  
releases/1.6/user/src/com/google/gwt/user/client/ui/ChangeListener.java
==
--- releases/1.6/user/src/com/google/gwt/user/client/ui/ChangeListener.java 
 
(original)
+++ releases/1.6/user/src/com/google/gwt/user/client/ui/ChangeListener.java 
 
Mon Jan 12 07:49:45 2009
@@ -20,7 +20,10 @@
  /**
   * Event listener interface for 'change' events.
   *
- * @deprecated use {...@link com.google.gwt.event.dom.client.ChangeHandler}  
instead
+ * @deprecated we have now separated dom and logical change events. Use  
{...@link com.google.gwt.event.dom.client.ChangeHandler} if the
+ * change listener was triggered by a dom change event or
+ * {...@link  
com.google.gwt.event.logical.shared.ValueChangeHandler} if
+ * it was based on a logical event
   */
  @Deprecated
  public interface ChangeListener extends EventListener {
@@ -30,6 +33,12 @@
 * sending the event.
 *
 * @param sender the widget that has changed
+   *
+   * @deprecated use
+   * {...@link  
com.google.gwt.event.dom.client.ChangeHandler#onChange(com.google.gwt.event.dom.client.ChangeEvent)}
+   * if the change listener was triggered by a dom change  
event or
+   * {...@link  
com.google.gwt.event.logical.shared.ValueChangeHandler#onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)}
+   * if it was based on a logical event
 */
@Deprecated
void onChange(Widget sender);

Modified:  
releases/1.6/user/src/com/google/gwt/user/client/ui/ChangeListenerCollection.java
==
---  
releases/1.6/user/src/com/google/gwt/user/client/ui/ChangeListenerCollection.java

(original)
+++  
releases/1.6/user/src/com/google/gwt/user/client/ui/ChangeListenerCollection.java

Mon Jan 12 07:49:45 2009
@@ -23,7 +23,10 @@
   * type {...@link com.google.gwt.user.client.ui.ChangeListener}.
   *
   * @deprecated use codeaddDomHandler(myHandler,  
ChangeEvent.getType())/code
- * instead to manage handlers for your widget
+ * for dom based change events and use
+ * codeaddHandler(myHandler,  
ValueChangeEvent.getType())/code
+ * for logical change events instead to manage handlers for  
your
+ * widget
   */
  @Deprecated
  public class ChangeListenerCollection extends ArrayListChangeListener {

Modified:  
releases/1.6/user/src/com/google/gwt/user/client/ui/SourcesChangeEvents.java
==
---  
releases/1.6/user/src/com/google/gwt/user/client/ui/SourcesChangeEvents.java
 
(original)
+++  
releases/1.6/user/src/com/google/gwt/user/client/ui/SourcesChangeEvents.java
 
Mon Jan 12 07:49:45 2009
@@ -19,8 +19,13 @@
   * A widget that implements this interface sources the events defined by  
the
   * {...@link com.google.gwt.user.client.ui.ChangeListener} interface.
   *
- * @deprecated use {...@link  
com.google.gwt.event.dom.client.HasChangeHandlers}
- * instead
+ * @deprecated we have now separated dom and logical change events. Use
+ * {...@link com.google.gwt.event.dom.client.HasChangeHandlers}  
if the
+ * change listener was triggered by a dom change event or
+ * {...@link  
com.google.gwt.event.logical.shared.HasValueChangeHandlers}
+ * if it was based on a logical event
+ *
+ *
   */
  @Deprecated
  public interface SourcesChangeEvents {
@@ -29,7 +34,8 @@
 * Adds a listener interface to receive change events.
 *
 * @param listener the listener interface to add
-   * @deprecated use codeaddChangeHandler/code instead
+   * @deprecated use codeaddChangeHandler/code or
+   * codeaddValueChangeHandler/code instead
 */
@Deprecated
void addChangeListener(ChangeListener listener);

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit commit] r4425 - releases/1.6/user/src/com/google/gwt/user/client

2009-01-12 Thread codesite-noreply

Author: a...@google.com
Date: Mon Jan 12 08:01:01 2009
New Revision: 4425

Modified:
releases/1.6/user/src/com/google/gwt/user/client/Event.java

Log:
Fix up the javadoc for Event by removing mentions of AssertionError, which  
we
don't throw anymore.

patch by: ajr
review by: ecc
pointed out by: colesbury



Modified: releases/1.6/user/src/com/google/gwt/user/client/Event.java
==
--- releases/1.6/user/src/com/google/gwt/user/client/Event.java (original)
+++ releases/1.6/user/src/com/google/gwt/user/client/Event.java Mon Jan 12  
08:01:01 2009
@@ -34,19 +34,6 @@
   * from, and can be accessed in JavaScript code as expected. This is  
typically
   * done by calling methods in the {...@link com.google.gwt.user.client.DOM}  
class.
   * /p
- *
- * h3Event Attributes/h3
- * p
- * In hosted mode, most accessors (eg. eve...@link #getKeyCode()} and
- * {...@link Event#getButton()}) assert that the requested attribute is  
reliable
- * across all supported browsers.  This means that attempting to retrieve  
an
- * attribute for an {...@link Event} that does not support that attribute will
- * throw an {...@link AssertionError}.  For example, an {...@link Event} of 
type
- * {...@link Event#ONCLICK} will throw an {...@link AssertionError} if you  
attempt
- * to get the mouse button that was clicked using {...@link Event#getButton()}
- * because the mouse button attribute is not defined for {...@link  
Event#ONCLICK}
- * on Internet Explorer.
- * /p
   */
  public class Event extends JavaScriptObject {
/**
@@ -631,10 +618,6 @@
 * Gets the mouse x-position on the user's display.
 *
 * @return the mouse x-position
-   * @throws AssertionError if event type is not one of
-   *   {...@link Event#MOUSEEVENTS}, {...@link Event#ONMOUSEWHEEL},
-   *   {...@link Event#ONCLICK}, {...@link Event#ONDBLCLICK}, or
-   *   {...@link Event#ONCONTEXTMENU}
 */
public final int getScreenX() {
  return DOM.eventGetScreenX(this);

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Call for critical 1.6 bugs

2009-01-12 Thread Olivier Modica

Ray et al.,

You may be interested to know that at Lombardi we got GWTTestCases
running through Maven/Surefire and integrated into TeamCity. We still
had to deal with issue 
http://code.google.com/p/google-web-toolkit/issues/detail?id=1032
that is mentioned here but it didn't turn out to be a blocker. I
describe our solution here: http://development.lombardi.com/?p=380.

Olivier.

On Jan 7, 6:11 pm, Ray Cromwell cromwell...@gmail.com wrote:
 Well, my own wishlist includes Issue 
 #1032,http://code.google.com/p/google-web-toolkit/issues/detail?id=1032. It
 only effects Maven users, and is somewhat mitigated by the GWT maven
 plugin, but it is an annoyance because GWT unit tests cannot run
 inside of the standard maven test harness, which impacts
 down-the-chain tools like CI servers, report generators, etc.  For
 example, we use TeamCity as our CI build server, which keeps
 historical timeseries for each unit test, and provides graphs, even
 performance regression data, but because of #1032, we have to mock out
 alot of GWT and use TestCase instead of GwtTestCase. I don't know if
 this will be mitigated by OOPHM or Jetty inclusion.

 Java 1.6 support on OSX would be nice as well, but I assume this is
 pending OOPHM and the jettisoning of SWT.

 -Ray

 On Wed, Jan 7, 2009 at 2:48 PM, Scott Blum sco...@google.com wrote:
  Hi all,
  We've narrowed down the set of bugs we'd like to fix for GWT 1.6. Our plan
  is for a very short release cycle this time, which forces us to fix only a
  small set of bugs.  Of course, we don't want to miss anything critical.

  Here is the current set of Critical 1.6 bugs we intend to fix:
 http://code.google.com/p/google-web-toolkit/issues/list?can=2q=miles...

  If you know of some burning issue that we've missed, please use this thread
  to suggest bugs to add to this list, and explain why it's critically
  important.  The kinds of issues we consider to be critical include bugs that
  affect a large number of users, possible security issues, or bugs that
  cannot be worked around easily (such as GWT compiler crashes).
  Please DO NOT use this thread to debate whether any particular issue should
  be in our out.  We just want to collect a list of critical issues, and we
  will consider each suggestion individually.
  Thanks!
  Scott

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Do 0-timeout deferred commands need to wait for a timer tick?

2009-01-12 Thread Lex Spoon

I'd like to revive this thread from last month and argue for a different spec:

http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/99a70af45e06ed3d?pli=1

The question there was what a GWT Timer should do with a timeout of 0,
which is currently prohibited.  The thinking there was to mimick what
window.setTimeout does and use the minimum delay.  However, I agree
with this post by Eugene Lazutkin:

http://lazutkin.com/blog/2008/mar/23/javascript-edp-and-0ms-timeouts/

There is a lot of good use for having a mechanism for specifying a
callback that you want to run at the top of the event loop.  Eugene
argues that this is established practice for all kinds of very popular
GUI toolkits.  I would add that it's showing up in language designs
like Erlang and E.  This is a powerful tool for apps that are
architected around an event queue.

We can provide this facility, even though window.setTimeout doesn't do
what is necessary.  Here's a question, though: should the
functionality be provided in a new class, or would it be okay to make
Timer do it if the timeout is set to 0?  Updating Timer looks cleanest
to me..  However, it will occasionally trip up someone very
knowledgeable about browsers.  Such a person might out-clever
themselves by trying to use 0 to mean the minimum delay.

Opinions?

-Lex

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] C:\GWT_source\common.ant.xml:209: cannot launch command svn info

2009-01-12 Thread gregor

I'm trying to make a 1.6 build from trunk to test 1.6 and I got hit
with this which seems to emanate from macrodef name=gwt.getsvninfo
task in common.ant.xml. I use Tortoisesvn and I gather that it doesn't
qualify as a command line svn client and this is the problem. Can I
hack build.xml or common.ant.xml to get round this, or is there a
recommended svn download (windows for me) that won't interfere with
tortoise?

regards
gregor


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Do 0-timeout deferred commands need to wait for a timer tick?

2009-01-12 Thread Kelly Norton
Heh, I think I always have an opinion on Timers :-)
I think Timers should allow 0ms delays and I think we should also have a
mechanism for what is commonly called invokeLater. Here's why:

Timers should accept 0ms
I do think allowing 0ms is kind of wrong because browsers clamp at 10ms-15ms
and browser makers are always flirting with the idea of lowering the clamps
and occasionally something like Chrome shows up and actually does lower the
clamp. Suddenly that app that used to get called back every 10ms is getting
called back every 4ms and it's killing batteries on laptops and making my G5
fan spin up in a fury. But even if the developer had specified 1ms, it still
would've killed my batteries and given my G5 a workout. With the current set
of browsers, 0ms is no different from 1ms, 2ms...10ms. So if we were going
to make a stand and say 0ms is bad practice, we should've made our stand
stronger and not allowed any of the lower numbers. But allowing 1ms and not
0ms just makes people ask why we don't support this thing that is clearly
common practice in the browser.

We should have an invokeLater:
We actually have it, it's called DeferredCommand. Unfortunately, we let its
implementation get too gangled up with another feature called
IncrementalCommand and use of DeferredCommand now generates way too much
code. Many developers still use DeferredCommand when wanting to invokeLater.
After 1.4, I've seen many people avoid DeferredCommands (including myself)
in favor of a very simple method wrapping setTimeout around a GWT Command.
(I usually call my postCommand(Command)). So people are interested in the
semantics of invokeLater apart from Timers, but we may've blocked the
primary way to do that in GWT. I think we should lighten DeferredCommand so
it can continue to be our invokeLater.

/kel

On Mon, Jan 12, 2009 at 12:24 PM, Lex Spoon sp...@google.com wrote:

 I'd like to revive this thread from last month and argue for a different
 spec:


 http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/99a70af45e06ed3d?pli=1

 The question there was what a GWT Timer should do with a timeout of 0,
 which is currently prohibited.  The thinking there was to mimick what
 window.setTimeout does and use the minimum delay.  However, I agree
 with this post by Eugene Lazutkin:

 http://lazutkin.com/blog/2008/mar/23/javascript-edp-and-0ms-timeouts/

 There is a lot of good use for having a mechanism for specifying a
 callback that you want to run at the top of the event loop.  Eugene
 argues that this is established practice for all kinds of very popular
 GUI toolkits.  I would add that it's showing up in language designs
 like Erlang and E.  This is a powerful tool for apps that are
 architected around an event queue.

 We can provide this facility, even though window.setTimeout doesn't do
 what is necessary.  Here's a question, though: should the
 functionality be provided in a new class, or would it be okay to make
 Timer do it if the timeout is set to 0?  Updating Timer looks cleanest
 to me..  However, it will occasionally trip up someone very
 knowledgeable about browsers.  Such a person might out-clever
 themselves by trying to use 0 to mean the minimum delay.

 Opinions?

 -Lex




-- 
If you received this communication by mistake, you are entitled to one free
ice cream cone on me. Simply print out this email including all relevant
SMTP headers and present them at my desk to claim your creamy treat. We'll
have a laugh at my emailing incompetence, and play a game of ping pong.
(offer may not be valid in all States).

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: C:\GWT_source\common.ant.xml:209: cannot launch command svn info

2009-01-12 Thread Scott Blum
Just install a recent svn client, it shouldn't interfere.  Freeland, we
could also consider either making the successful execution of this task
optional, or even check SVNKit into TOOLS and using that to power the Ant
task.

On Mon, Jan 12, 2009 at 1:16 PM, gregor greg.power...@googlemail.comwrote:


 I'm trying to make a 1.6 build from trunk to test 1.6 and I got hit
 with this which seems to emanate from macrodef name=gwt.getsvninfo
 task in common.ant.xml. I use Tortoisesvn and I gather that it doesn't
 qualify as a command line svn client and this is the problem. Can I
 hack build.xml or common.ant.xml to get round this, or is there a
 recommended svn download (windows for me) that won't interfere with
 tortoise?

 regards
 gregor


 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit commit] r4429 - releases/1.6/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs

2009-01-12 Thread codesite-noreply

Author: sco...@google.com
Date: Mon Jan 12 12:13:17 2009
New Revision: 4429

Modified:
 
releases/1.6/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java

Log:
Sort  format.

Modified:  
releases/1.6/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java
==
---  
releases/1.6/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java   
 
(original)
+++  
releases/1.6/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/SvnInfo.java   
 
Mon Jan 12 12:13:17 2009
@@ -1,12 +1,12 @@
  /*
   * Copyright 2008 Google Inc.
- *
+ *
   * Licensed under the Apache License, Version 2.0 (the License); you may  
not
   * use this file except in compliance with the License. You may obtain a  
copy of
   * the License at
- *
+ *
   * http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT
   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -25,27 +25,29 @@
  import java.util.regex.Matcher;
  import java.util.regex.Pattern;

-
  /**
   * A Svn interface task, because the initial solution of exec and
- * propertyregex is unhappy in ant 1.6.5, and while that's old, it's not
- * quite too old for us to care.
+ * propertyregex is unhappy in ant 1.6.5, and while that's old, it's not  
quite
+ * too old for us to care.
   */
  public class SvnInfo extends Task {

// URL line from svn info output, selecting the very last term of the  
URL as
// the branch specifier
private static final String URL_REGEX  
= \\s*URL:\\s*https?://.*/([^/]*)\\s*;
-
-
+
+  private String fileprop;
+
+  private String outprop;
+
+  private String workdir;
+
public SvnInfo() {
  super();
}

@Override
public void execute() throws BuildException {
-String result;
-
  if (outprop == null) {
throw new BuildException(
svninfo task requires an outputproperty attribute);
@@ -62,34 +64,37 @@
  String revision = getSvnVersion(workDirFile);
  getProject().setNewProperty(outprop, branch + @ + revision);
  if (fileprop != null) {
-  getProject().setNewProperty(fileprop, branch + -
-  + revision.replaceAll(:, -));
+  getProject().setNewProperty(fileprop,
+  branch + - + revision.replaceAll(:, -));
  }
}

/**
-   * Establishes the property containing the SVN output string, bra...@rev.
-   * @param propname  Name of a property
+   * Establishes the directory used as the SVN workspace to fetch version
+   * information.
+   *
+   * @param srcdir workspace directory name
 */
-  public void setOutputProperty(String propname) {
-outprop = propname;
+  public void setDirectory(String srcdir) {
+workdir = srcdir;
}

/**
 * Establishes the property containing the SVN output string, bra...@rev.
-   * @param propname  Name of a property
+   *
+   * @param propname Name of a property
 */
public void setOutputFileProperty(String propname) {
  fileprop = propname;
}

/**
-   * Establishes the directory used as the SVN workspace to fetch version
-   * information about
-   * @param srcdir  workspace directory name
+   * Establishes the property containing the SVN output string, bra...@rev.
+   *
+   * @param propname Name of a property
 */
-  public void setDirectory(String srcdir) {
-workdir = srcdir;
+  public void setOutputProperty(String propname) {
+outprop = propname;
}

private String getSvnBranch(File workdir) {
@@ -98,24 +103,24 @@
  LineNumberReader svnout = runCommand(workdir, svn, info);
  try {
String line = svnout.readLine();
-
+
Pattern urlRegex = Pattern.compile(URL_REGEX);
while (line != null) {
  Matcher m = urlRegex.matcher(line);
-
+
  if (m.matches()) {
branchName = m.group(1);
if (branchName == null || .equals(branchName)) {
-throw new BuildException(svn info didn't get branch from URL  
line 
-+ line);
+throw new BuildException(
+svn info didn't get branch from URL line  + line);
}
break;
  }
  line = svnout.readLine();
}
  } catch (IOException e) {
-  throw new BuildException(svninfo cannot read svn info's output  
stream,
-  e);
+  throw new BuildException(
+  svninfo cannot read svn info's output stream, e);
  }
  return branchName;
}
@@ -127,8 +132,8 @@
  try {
line = svnout.readLine();
  } catch (IOException e) {
-  throw new BuildException(svninfo cannot read svnversion's output  
stream,
-  e);
+  throw new BuildException(
+  svninfo cannot read svnversion's output stream, e);
  }
  if (line == null || .equals(line)) {
throw new 

[gwt-contrib] [google-web-toolkit commit] r4428 - releases/1.6/dev/core/src/com/google/gwt/dev

2009-01-12 Thread codesite-noreply

Author: sco...@google.com
Date: Mon Jan 12 11:54:43 2009
New Revision: 4428

Modified:
releases/1.6/dev/core/src/com/google/gwt/dev/HostedMode.java

Log:
Just do a full link initially; fixes a problem where CSS/scripts was not  
being generated into the initial selection script.

Issue: 3264

Modified: releases/1.6/dev/core/src/com/google/gwt/dev/HostedMode.java
==
--- releases/1.6/dev/core/src/com/google/gwt/dev/HostedMode.java
(original)
+++ releases/1.6/dev/core/src/com/google/gwt/dev/HostedMode.javaMon Jan 
12  
11:54:43 2009
@@ -342,7 +342,7 @@
+ '; add servlet tags to your web.xml instead);
  }

-link(loadLogger, module, false);
+link(loadLogger, module);
} catch (UnableToCompleteException e) {
  // Already logged.
  return false;
@@ -396,7 +396,7 @@
  shouldRefreshPage = true;
  module = loadModule(getTopLogger(), module.getCanonicalName(),  
false);
}
-  link(getTopLogger(), module, true);
+  link(getTopLogger(), module);
return shouldRefreshPage;
  } catch (UnableToCompleteException e) {
// Already logged.
@@ -425,8 +425,8 @@
 *  the link, otherwise do not include them
 * @throws UnableToCompleteException
 */
-  private void link(TreeLogger logger, ModuleDef module,
-  boolean includePublicFiles) throws UnableToCompleteException {
+  private void link(TreeLogger logger, ModuleDef module)
+  throws UnableToCompleteException {
  // TODO: move the module-specific computations to a helper function.
  File moduleOutDir = new File(options.getWarDir(), module.getName());
  File moduleExtraDir = (options.getExtraDir() == null) ? null : new  
File(
@@ -436,10 +436,6 @@
  StandardLinkerContext linkerStack = new StandardLinkerContext(logger,
  module, options);
  linkerStacks.put(module.getName(), linkerStack);
-
-if (!includePublicFiles) {
-  linkerStack.getArtifacts().clear();
-}

  ArtifactSet artifacts = linkerStack.invokeLink(logger);
  linkerStack.produceOutputDirectory(logger, artifacts, moduleOutDir,

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit commit] r4432 - releases/1.6/dev/core/src/com/google/gwt/dev

2009-01-12 Thread codesite-noreply

Author: sco...@google.com
Date: Mon Jan 12 14:15:23 2009
New Revision: 4432

Modified:
releases/1.6/dev/core/src/com/google/gwt/dev/About.java

Log:
Ignore sentinel values in About computation.

Review by: fabbott (desk)

Modified: releases/1.6/dev/core/src/com/google/gwt/dev/About.java
==
--- releases/1.6/dev/core/src/com/google/gwt/dev/About.java (original)
+++ releases/1.6/dev/core/src/com/google/gwt/dev/About.java Mon Jan 12  
14:15:23 2009
@@ -42,11 +42,14 @@
  }

  GWT_SVNREV = props.getProperty(gwt.svnrev);
-if (GWT_SVNREV == null) {
+// Check for null or sentinel value (break up to avoid text replace)
+if (GWT_SVNREV == null || GWT_SVNREV.equals(@GWT_ + SVNREV@)) {
GWT_SVNREV = unknown;
  }
+
  GWT_VERSION_NUM = props.getProperty(gwt.version);
-if (GWT_VERSION_NUM == null) {
+// Check for null or sentinel value (break up to avoid text replace)
+if (GWT_VERSION_NUM == null || GWT_VERSION_NUM.equals(@GWT_  
+ VERSION@)) {
GWT_VERSION_NUM = 0.0.0;
  }
  GWT_VERSION = GWT_NAME +   + GWT_VERSION_NUM;

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit commit] r4430 - releases/1.6/user/src/com/google/gwt/user/tools

2009-01-12 Thread codesite-noreply

Author: sco...@google.com
Date: Mon Jan 12 13:36:00 2009
New Revision: 4430

Modified:
releases/1.6/user/src/com/google/gwt/user/tools/.classpathsrc
(contents, props changed)
releases/1.6/user/src/com/google/gwt/user/tools/App.launchsrc
(contents, props changed)
releases/1.6/user/src/com/google/gwt/user/tools/AppClassTemplate.javasrc
releases/1.6/user/src/com/google/gwt/user/tools/ApplicationCreator.java
 
releases/1.6/user/src/com/google/gwt/user/tools/RpcAsyncClientTemplate.javasrc  
  
(contents, props changed)
 
releases/1.6/user/src/com/google/gwt/user/tools/RpcClientTemplate.javasrc
(contents, props changed)
releases/1.6/user/src/com/google/gwt/user/tools/project.ant.xmlsrc

Log:
Working on updated app creation.

Modified: releases/1.6/user/src/com/google/gwt/user/tools/.classpathsrc
==
--- releases/1.6/user/src/com/google/gwt/user/tools/.classpathsrc   
(original)
+++ releases/1.6/user/src/com/google/gwt/user/tools/.classpathsrc   Mon Jan 
 
12 13:36:00 2009
@@ -1,9 +1,8 @@
  ?xml version=1.0 encoding=utf-8 ?
  classpath
 classpathentry kind=src path=src/
-   classpathentry kind=src path=test/
-   classpathentry kind=con  
path=org.eclipse.jdt.launching.JRE_CONTAINER/
 classpathentry kind=lib path=@gwtUserPath/
+   classpathentry kind=con  
path=org.eclipse.jdt.launching.JRE_CONTAINER/
 classpathentry kind=con  
path=org.eclipse.jdt.junit.JUNIT_CONTAINER/3/
 classpathentry kind=output path=war/WEB-INF/classes/
  @eclipseClassPathEntries

Modified: releases/1.6/user/src/com/google/gwt/user/tools/App.launchsrc
==
--- releases/1.6/user/src/com/google/gwt/user/tools/App.launchsrc   
(original)
+++ releases/1.6/user/src/com/google/gwt/user/tools/App.launchsrc   Mon Jan 
 
12 13:36:00 2009
@@ -3,15 +3,14 @@
  booleanAttribute key=org.eclipse.jdt.launching.DEFAULT_CLASSPATH  
value=false/
  stringAttribute key=org.eclipse.jdt.launching.MAIN_TYPE  
value=@shellClass/
  listAttribute key=org.eclipse.jdt.launching.CLASSPATH
-listEntry value=lt;?xml version=quot;1.0quot;  
encoding=quot;UTF-8quot;?gt;#13;#10;lt;runtimeClasspathEntry  
containerPath=quot;org.eclipse.jdt.launching.JRE_CONTAINERquot;  
javaProject=quot;@projectNamequot; path=quot;1quot;  
type=quot;4quot;/gt;#13;#10;/
-listEntry value=lt;?xml version=quot;1.0quot;  
encoding=quot;UTF-8quot;?gt;#13;#10;lt;runtimeClasspathEntry  
internalArchive=quot;/@projectName/srcquot; path=quot;3quot;  
type=quot;2quot;/gt;#13;#10;/
-listEntry value=lt;?xml version=quot;1.0quot;  
encoding=quot;UTF-8quot;?gt;#13;#10;lt;runtimeClasspathEntry  
id=quot;org.eclipse.jdt.launching.classpathentry.defaultClasspathquot;gt;#13;#10;lt;memento
  
project=quot;@projectNamequot;/gt;#13;#10;lt;/runtimeClasspathEntrygt;#13;#10;/
-listEntry value=lt;?xml version=quot;1.0quot;  
encoding=quot;UTF-8quot;?gt;#13;#10;lt;runtimeClasspathEntry  
externalArchive=quot;@gwtDevPathquot; path=quot;3quot;  
type=quot;2quot;/gt;#13;#10;/
+listEntry value=lt;?xml version=quot;1.0quot;  
encoding=quot;UTF-8quot;?gt;#10;lt;runtimeClasspathEntry  
containerPath=quot;org.eclipse.jdt.launching.JRE_CONTAINERquot;  
javaProject=quot;@projectNamequot; path=quot;1quot;  
type=quot;4quot;/gt;#10;/
+listEntry value=lt;?xml version=quot;1.0quot;  
encoding=quot;UTF-8quot;?gt;#10;lt;runtimeClasspathEntry  
internalArchive=quot;/@projectName/srcquot; path=quot;3quot;  
type=quot;2quot;/gt;#10;/
+listEntry value=lt;?xml version=quot;1.0quot;  
encoding=quot;UTF-8quot;?gt;#10;lt;runtimeClasspathEntry  
id=quot;org.eclipse.jdt.launching.classpathentry.defaultClasspathquot;gt;#10;lt;memento
  
project=quot;@projectNamequot;/gt;#10;lt;/runtimeClasspathEntrygt;#10;/
+listEntry value=lt;?xml version=quot;1.0quot;  
encoding=quot;UTF-8quot;?gt;#10;lt;runtimeClasspathEntry  
externalArchive=quot;@gwtDevPathquot; path=quot;3quot;  
type=quot;2quot;/gt;#10;/
  @eclipseExtraLaunchPaths
  /listAttribute
-stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS  
value=@vmargs -Xmx256M/
-stringAttribute key=org.eclipse.jdt.launching.PROGRAM_ARGUMENTS  
value=-out
-  war -startupUrl @startupUrl @moduleName/
+stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS  
value=-xmx2...@vmargs/
+stringAttribute key=org.eclipse.jdt.launching.PROGRAM_ARGUMENTS  
value=-startupUrl#10;@startupUrl @moduleName/
  stringAttribute key=org.eclipse.jdt.launching.PROJECT_ATTR  
value=@projectName/
  booleanAttribute key=org.eclipse.debug.core.appendEnvironmentVariables  
value=true/
  /launchConfiguration

Modified:  
releases/1.6/user/src/com/google/gwt/user/tools/AppClassTemplate.javasrc
==
---  
releases/1.6/user/src/com/google/gwt/user/tools/AppClassTemplate.javasrc
 
(original)
+++  

[gwt-contrib] [google-web-toolkit commit] r4427 - in releases/1.6/user: src/com/google/gwt/user/client/ui test/com/google/gwt/user/client/ui

2009-01-12 Thread codesite-noreply

Author: e...@google.com
Date: Mon Jan 12 11:38:08 2009
New Revision: 4427

Modified:
releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java
releases/1.6/user/test/com/google/gwt/user/client/ui/ImageTest.java

Log:
Fixed the wiring so LoadListener.onError will actually fire.
Review by:fabbott

Modified:  
releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java
==
---  
releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java
 
(original)
+++  
releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java
 
Mon Jan 12 11:38:08 2009
@@ -33,6 +33,7 @@
  import com.google.gwt.event.dom.client.HasAllKeyHandlers;
  import com.google.gwt.event.dom.client.HasChangeHandlers;
  import com.google.gwt.event.dom.client.HasClickHandlers;
+import com.google.gwt.event.dom.client.HasErrorHandlers;
  import com.google.gwt.event.dom.client.HasLoadHandlers;
  import com.google.gwt.event.dom.client.HasMouseDownHandlers;
  import com.google.gwt.event.dom.client.HasMouseMoveHandlers;
@@ -226,8 +227,10 @@
public static class Load extends ListenerWrapperLoadListener implements
LoadHandler, ErrorHandler {

-public static void add(HasLoadHandlers source, LoadListener listener) {
-  source.addLoadHandler(new Load(listener));
+public static S extends HasLoadHandlers  HasErrorHandlersvoid add(S  
source, LoadListener listener) {
+  Load l = new Load(listener);
+  source.addLoadHandler(l);
+  source.addErrorHandler(l);
  }

  public static void remove(Widget eventSource, LoadListener listener) {

Modified:  
releases/1.6/user/test/com/google/gwt/user/client/ui/ImageTest.java
==
--- releases/1.6/user/test/com/google/gwt/user/client/ui/ImageTest.java  
(original)
+++ releases/1.6/user/test/com/google/gwt/user/client/ui/ImageTest.java Mon  
Jan 12 11:38:08 2009
@@ -421,4 +421,34 @@
  assertEquals(16, image.getHeight());
  assertEquals(clipped, getCurrentImageStateName(image));
}
+
+
+  private int firedLoad;
+  private int firedError;
+  @SuppressWarnings(deprecation)
+  public void testLoadListenerWiring() {
+Image im = new Image();
+
+im.addLoadListener(new LoadListener() {
+
+  public void onError(Widget sender) {
+++firedError;
+  }
+
+  public void onLoad(Widget sender) {
+++firedLoad;
+  }
+});
+im.fireEvent(new LoadEvent() {
+  // Replaced by Joel's event firing when possible.
+});
+assertEquals(1, firedLoad);
+assertEquals(0, firedError);
+im.fireEvent(new ErrorEvent() {
+  // Replaced by Joel's event firing when possible.
+});
+assertEquals(1, firedLoad);
+assertEquals(1, firedError);
+  }
+
  }

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: C:\GWT_source\common.ant.xml:209: cannot launch command svn info

2009-01-12 Thread gregor

FYI - it appears I'm not alone in this

http://svn.haxx.se/users/archive-2008-10/0491.shtml



On Jan 13, 12:11 am, gregor greg.power...@googlemail.com wrote:
 Well, finding a windows command line svn client looks easier said
 than done. I've spent over an hour now trying to find a free one (I've
 got no use for it at the moment apart from this issue), and it's not
 at all clear that there is one that will do the job without messing
 about with 30 day trials for Syncro and the like.

 I'm sure I'll find a solution, but I'd just comment that this a real
 nuisance, and I think either making the svn task optional or handling
 it via SVNKit sounds like a very good idea to me.

 On Jan 12, 8:08 pm, Scott Blum sco...@google.com wrote:

  Just install a recent svn client, it shouldn't interfere.  Freeland, we
  could also consider either making the successful execution of this task
  optional, or even check SVNKit into TOOLS and using that to power the Ant
  task.

  On Mon, Jan 12, 2009 at 1:16 PM, gregor greg.power...@googlemail.comwrote:

   I'm trying to make a 1.6 build from trunk to test 1.6 and I got hit
   with this which seems to emanate from macrodef name=gwt.getsvninfo
   task in common.ant.xml. I use Tortoisesvn and I gather that it doesn't
   qualify as a command line svn client and this is the problem. Can I
   hack build.xml or common.ant.xml to get round this, or is there a
   recommended svn download (windows for me) that won't interfere with
   tortoise?

   regards
   gregor
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] RR: Implementation of SingleJsoImpl

2009-01-12 Thread BobV

The first round of coding is done.

Follow-up from 
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/5e180695145892d5


@Scott,
  Can you review the hosted-mode portions (dev/shell/*)?  There's also
a small tweak to GWTRunnerGenerator that traps un-logged exceptions
escaping when test cases are instantiated.

@Lex,
  Can you review the compiler portions (dev/jjs/*)?

About the only interesting code shared between the compiler and
hosted-mode is JSORestrictionsChecker in dev/javac/*.  It's like we're
shipping two products in one!

 svn merge -r4432:HEAD
https://google-web-toolkit.googlecode.com/svn/changes/bobv/jso_single_impl_r4432
.


-- 
Bob Vawter
Google Web Toolkit Team

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: C:\GWT_source\common.ant.xml:209: cannot launch command svn info

2009-01-12 Thread Ian Petersen

On Tue, Jan 13, 2009 at 4:10 PM, gregor greg.power...@googlemail.com wrote:

 Well, finding a windows command line svn client looks easier said
 than done. I've spent over an hour now trying to find a free one (I've
 got no use for it at the moment apart from this issue), and it's not
 at all clear that there is one that will do the job without messing
 about with 30 day trials for Syncro and the like.

Is there a reason you can't use one of the binaries listed here?
http://subversion.tigris.org/getting.html#windows

I'm pretty sure I've used http://www.sliksvn.com/en/download before.

Ian

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: C:\GWT_source\common.ant.xml:209: cannot launch command svn info

2009-01-12 Thread Freeland Abbott
I've actually never had trouble getting a command-line client, but that's
beside the point.
We can make no svn and also not compatible messages be non-blocking
errors, though as I mentioned that raises the question of whether anything
should be blocking... and if not, whether we're getting anything out of
branding desk builds anyway.  (That is, should be make it optional, or
remove it and let the build robot assert its value and everybody else not
brand at all?)

I'm negatively biased on SvnKit, mostly because of workspace compatibility:
if I use whatever-I-like to create my workspace, it'd have to be
compatible with the SvnKit from our tools checkout, right?  At if SvnKit
got over-eager to update my workspace, the other tool would then lose, yes?
 At least with, say, TortoiseSVN and my command-line svn, I got them both,
know about them, and can see why the problem exists.

I'm increasingly coming to think that all svninfo errors should be
non-blocking, with a non-default property for the robot to instead say no,
I really care.  And that'd likely mean that only robot builds would have
branding, in which case maybe we should just go there.


On Mon, Jan 12, 2009 at 10:25 PM, Ian Petersen ispet...@gmail.com wrote:


 On Tue, Jan 13, 2009 at 4:10 PM, gregor greg.power...@googlemail.com
 wrote:
 
  Well, finding a windows command line svn client looks easier said
  than done. I've spent over an hour now trying to find a free one (I've
  got no use for it at the moment apart from this issue), and it's not
  at all clear that there is one that will do the job without messing
  about with 30 day trials for Syncro and the like.

 Is there a reason you can't use one of the binaries listed here?
 http://subversion.tigris.org/getting.html#windows

 I'm pretty sure I've used http://www.sliksvn.com/en/download before.

 Ian

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] RR: Anonymous class mappings

2009-01-12 Thread Amit Manjhi
Hi John,

Please review the attached patch that builds and uses an anonymous class
mapping to deal with the compiler differences. I made all the changes you
suggested. In addition, I added another (necessary) condition that the map
should only be built for non-super-source units.

Regards,
Amit

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---

Index: 
dev/core/test/com/google/gwt/dev/javac/GeneratedClassnameComparatorTest.java
===
--- 
dev/core/test/com/google/gwt/dev/javac/GeneratedClassnameComparatorTest.java
(revision 0)
+++ 
dev/core/test/com/google/gwt/dev/javac/GeneratedClassnameComparatorTest.java
(revision 0)
@@ -0,0 +1,49 @@
+package com.google.gwt.dev.javac;
+
+import junit.framework.TestCase;
+
+import java.util.Arrays;
+
+/**
+ * 
+ * This class tests to see if the anonymous class names are sorted in the right
+ * order. For example, Foo$10 should be after Foo$2.
+ */
+public class GeneratedClassnameComparatorTest extends TestCase {
+
+  public void testBasicOrder() {
+int max = 15;
+String original[] = new String[max];
+String expected[] = new String[max];
+for (int i = 0; i  max; i++) {
+  String name = Foo$ + (i + 1);
+  original[i] = name;
+  expected[i] = name;
+}
+Arrays.sort(original, new GeneratedClassnameComparator());
+for (int i = 0; i  max; i++) {
+  assertEquals(index =  + i, expected[i], original[i]);
+}
+  }
+
+  public void testHierarchicalOrder() {
+String original[] = {
+Foo$1, Foo$1$1$1, Foo$1$2, Foo$2, Foo$2$1, Foo$3,};
+String expected[] = {
+Foo$1, Foo$2, Foo$3, Foo$1$2, Foo$2$1, Foo$1$1$1};
+Arrays.sort(original, new GeneratedClassnameComparator());
+for (int i = 0; i  original.length; i++) {
+  assertEquals(index =  + i, expected[i], original[i]);
+}
+  }
+
+  public void testMixedNames() {
+String original[] = {Foo, Foo$1, Foo$1xyz, Foo$2, Foo$xyz};
+String expected[] = {Foo, Foo$1, Foo$2, Foo$1xyz, Foo$xyz};
+Arrays.sort(original, new GeneratedClassnameComparator());
+for (int i = 0; i  original.length; i++) {
+  assertEquals(index =  + i, expected[i], original[i]);
+}
+  }
+
+}
Index: dev/core/test/com/google/gwt/dev/shell/GeneratedClassnameTest.java
===
--- dev/core/test/com/google/gwt/dev/shell/GeneratedClassnameTest.java  
(revision 0)
+++ dev/core/test/com/google/gwt/dev/shell/GeneratedClassnameTest.java  
(revision 0)
@@ -0,0 +1,27 @@
+package com.google.gwt.dev.shell;
+
+import junit.framework.TestCase;
+
+public class GeneratedClassnameTest extends TestCase {
+
+  /**
+   * Test if {...@link CompilingClassLoader#isClassnameGenerated(String)} works
+   * correctly.
+   */
+  public void testGeneratedClassnames() {
+String namesToAccept[] = {
+Test$1, Test$10, Test$Foo$1, Test$1$Foo, Test$10$Foo,
+$$345, Test$1$Foo$};
+String namesToReject[] = {Test1, $345, Test$2Foo, Test$Foo$1Bar};
+
+for (String name : namesToAccept) {
+  assertTrue(className =  + name +  should have been accepted,
+  CompilingClassLoader.isClassnameGenerated(name));
+}
+
+for (String name : namesToReject) {
+  assertFalse(className =  + name +  should not have been accepted,
+  CompilingClassLoader.isClassnameGenerated(name));
+}
+  }
+}
Index: dev/core/src/com/google/gwt/dev/javac/JsniCollector.java
===
--- dev/core/src/com/google/gwt/dev/javac/JsniCollector.java(revision 4439)
+++ dev/core/src/com/google/gwt/dev/javac/JsniCollector.java(working copy)
@@ -65,7 +65,7 @@
 private final String[] paramNames;
 private final String source;
 private final JsProgram program;
-
+
 private JsniMethodImpl(String name, String source, String[] paramNames,
 int line, String location, JsProgram program) {
   this.name = name;
@@ -133,10 +133,13 @@
   if (unit.getState() == State.COMPILED) {
 String loc = unit.getDisplayLocation();
 String source = unit.getSource();
+assert unit.getJsniMethods() == null;
+ListJsniMethod jsniMethods = new ArrayListJsniMethod();
 for (CompiledClass compiledClass : unit.getCompiledClasses()) {
-  assert compiledClass.getJsniMethods() == null;
-  collectJsniMethods(logger, loc, source, compiledClass, program);
+  jsniMethods.addAll(collectJsniMethods(logger, loc, source,
+  compiledClass, program));
 }
+unit.setJsniMethods(jsniMethods);
   }
 }
   }
@@ -144,8 +147,8 @@
   /**
* TODO: log real errors, replacing GenerateJavaScriptAST?
*/
-  private static void collectJsniMethods(TreeLogger logger, String loc,
-  String source,