How to remove Space between disclosure panels

2010-12-21 Thread gandham satish
Hi All,

I am  trying to add 2 disclosure panels to main panel (vertical panel)
but the promblem is that I am gettign a space in between disclosure
panels even after I set the width properly. Here is the sample code

 SimplePanel simPanel = new SimplePanel();
 simPanel.setHeight(400px);
 simPanel.setWidth(1000px);

 DisclosurePanel disPanel1 = new DisclosurePanel(Requests);
 disPanel1.setContent(simPanel);
DisclosurePanel disPanel2 = new DisclosurePanel(Inbox);
 disPanel2.setContent(simPanel);


 VerticalPanel vPanel = new VerticalPanel();
 vPanel.add(disPanel1 );
 vPanel.add(disPanel2);
 vPanel.setSpacing(0);

I have added the above vertical panel in my DockPanel center. when I
open the disclosure panels then the space is getting adjusted but
whenever I close the panels I am seeing some space in between the
panels.

Is there anyway I can Place these panels together even in the close
position.

I appreciate your help.

Thanks,
Satish

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 is here!

2010-12-21 Thread zixzigma
one of the things that is great about RequestFactory 2.1.1,
is support for end-to-end testing (client to server calls),
without the need to use GWTTestCase. this is very important.
because GWTTestCase is very slow, I have a very powerful machine,
but it is still very slow, similar to JavaEE in-container testing.

However with the 2.1.1 release, there are many helper classes
that facilitate testing, inside JRE, you get instant results.

Isn't it wonderful ?
you get to test all the way from Client to Server, Asynchronous calls,
fetching data, all from JRE !
perfect for Integration/System testing.

I just hope to see some documentation, and basic samples,

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 remove Space between disclosure panels

2010-12-21 Thread zixzigma
use DockLayoutPanel,
and use your other panels within regions of DockLayoutPanel.


DockLayoutPanel, can have multiple north region, multiple west,
multiple east,
you can have DockLayoutPanels within DockLayoutPanels.

avoid using Vertical/Horizontal Panel, in favor of DockLayoutPanel/
FlowPanel/SimplePanel.

Vertical/Horizontal panels uses HTMl table underneath, wich many CSS
designers hate.
those other panels I mentioned, produce simple divs

an example of how to use DockLayoutPanel in the fashion I described
can be found in GWT Mail Example:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mail/src/com/google/gwt/sample/mail/client/Mail.ui.xml?r=9471

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Serve image from blob store

2010-12-21 Thread Subhrajyoti Moitra
Hello Ahmed,

http://anansu.blogspot.com/2010/12/upload-serve-and-search-images-using.html

Here's a small write-up and sources to a GWT+GAE+Eclipse project, using
BlobStore to store and serve images. This is meant for learning purpose
only.
Also this is not the only way you can do it. There are better ways most
probably.

Hope this helps.


Thanks,
Subhro.

On Tue, Dec 21, 2010 at 2:41 AM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

 ok thanks

 On Dec 20, 4:25 pm, Matthew Hill matt2...@gmail.com wrote:
  Try the Google App Engine group:
 
  https://groups.google.com/forum/#!forum/google-appenginehttps://groups.google.com/forum/#%21forum/google-appengine
 
  or the GAE Java group.

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 RequestFactory Strange Exception

2010-12-21 Thread zixzigma
I realized I was using the 2.1 style to create my RequestFactory

I came across this, while digging into code:

 * ServiceLayer serviceLayer = ServiceLayer.create();
 * SimpleRequestProcessor processor = new
SimpleRequestProcessor(serviceLayer);
 * EventBus eventBus = new SimpleEventBus();
 * MyRequestFactory f =
RequestFactoryMagic.create(MyRequestFactory.class);
 * f.initialize(eventBus, new InProcessRequestTransport(processor));

now I am going to experiment (in test mode) with this,
see if I am correct in my guess.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Serve image from blob store

2010-12-21 Thread zixzigma
I believe you are using an API that is restricted on GAE.
support for File/IO operations are very limited on GAE,
and when using third party libraries such as Apache Commons,
not all of their features is supported.
check GAE WhiteList to see what is supported.

Often you have to look for alternatives.
What might be very easy in JRE, requires some tricks to get it to work
on GAE.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



Modular rpc blues

2010-12-21 Thread Metronome / Basic
Hello

What seems to me great in GWT is that it's easy to build
client code and server code that can communicate through GWT-RPC.

What 's great too is that you can write modules
and your webapp can use those modules.

Then why is it so complicated ( is it possible ? ) to have a module with 
GWT-RPC code
( implementation and interfaces )
that could be used in a webapp

I tried many things in eclipse
I tried many things with maven
( gwt-maven-plugin : goal mergewebxml ) fails when web.xml refers to 
external module

still no success !

I wondered if there is such a project already done

Is there somewhere a jar , ready made , with GWT-RPC included that I could use 
as a reference ?

or is hopeless ?

thanks for reading , and thanks to people that have already tried to help me ( 
from previous posts )

Patrick

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: FileUpload - Widget - Not giving full path in FireFox

2010-12-21 Thread zixzigma
why do you want to sure the Path to a file ?
what if users move the file to another folder/directory ?
what if they delete the file ?

please explain what is it that you are intending to do.
there might be better alternatives.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: FileUpload - Widget - Not giving full path in FireFox

2010-12-21 Thread zixzigma
store*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 do you deal with dead EvenHandlers?

2010-12-21 Thread Thomas Broyer
Actually, because the EventHandler has a reference to the class that created 
it (in most cases, and it's true in your case), then as long as it is 
referenced by the EventBus, it won't be garbage collected, and neither will 
be its owner class. There's no dead event handler, only things that you 
no longer use but haven't destroyed, so they're still there, listening and 
handling events, without anyone to notice it (because your code no longer 
has any reference on them).
You really should clean after yourself; onLoad/onUnload on widgets might be 
a solution; but having a real lifecycle for your classes would be best (this 
is where MVP shines through, e.g. the start/onCancel/onStop methods of 
activities)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Serve image from blob store

2010-12-21 Thread Subhrajyoti Moitra
yes, u are right. Have to be careful about that on GAE.

For the common-libs, i am only using the file upload apis, which seems to be
allowed on GAE.
Also some utils from commons-lang lib, which are compatible.

Thanks,
Subhro.

On Tue, Dec 21, 2010 at 2:20 PM, zixzigma zixzi...@gmail.com wrote:

 I believe you are using an API that is restricted on GAE.
 support for File/IO operations are very limited on GAE,
 and when using third party libraries such as Apache Commons,
 not all of their features is supported.
 check GAE WhiteList to see what is supported.

 Often you have to look for alternatives.
 What might be very easy in JRE, requires some tricks to get it to work
 on GAE.

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 remove Space between disclosure panels

2010-12-21 Thread gandham satish
Hi zix,


Thanks for your quick reply.

As you mentioned I have added my 2 disclosure panels in a DockLayout
panel.But still I am seeing the spacing problem between the
panels.What I am expecting is that whenevr I close the first
disclosure panel then the second panel should occupy the remaining
space.Am I missing any width  setting here.

DisclosurePanel disPanel1 = new DisclosurePanel(Requests);
 disPanel1.setContent(simPanel);
DisclosurePanel disPanel2 = new DisclosurePanel(Inbox);
 disPanel2.setContent(simPanel);

DockLayoutPanel dockPanel = new DockLayoutPanel(Unit.PX);
 dockPanel.addNorth(disPanel1 ,150);
 dockPanel.add(disPanel2 );


DockLayoutPanel mainPanel = new DockLayoutPanel(Unit.PX);
 mainPanel .addNorth(Menu ,150);
 mainPanel .add(dockPanel );




Thanks,
Satish





On Dec 21, 1:24 pm, zixzigma zixzi...@gmail.com wrote:
 use DockLayoutPanel,
 and use your other panels within regions of DockLayoutPanel.

 DockLayoutPanel, can have multiple north region, multiple west,
 multiple east,
 you can have DockLayoutPanels within DockLayoutPanels.

 avoid using Vertical/Horizontal Panel, in favor of DockLayoutPanel/
 FlowPanel/SimplePanel.

 Vertical/Horizontal panels uses HTMl table underneath, wich many CSS
 designers hate.
 those other panels I mentioned, produce simple divs

 an example of how to use DockLayoutPanel in the fashion I described
 can be found in GWT Mail Example:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 RequestFactory Strange Exception

2010-12-21 Thread Henrik Schmidt
From the RequestFactory documentation:

Four special methods are required on all entities as they are used by
the RequestFactory servlet:
A no-arg constructor. This may be the implicit default constructor.
1. id_type getId() -- IDs can be String or Long
2. static entity_type findEntity(id_type id)
3. Integer getVersion()

You could argue that this means that you cannot easily make a separate
service and I believe you would be right. The only way to do this, I
believe, is to create a Locator for each proxy.

I asked the same question a couple of days ago. See
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/c929fb1d4239f7e0

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 , HelloMVP (Google provided example illustrating Activities Places) : Compile error. Stacktrace enclosed.

2010-12-21 Thread Thomas Broyer
Classes referenced from annotations have to be compiled for GWT to be able 
to process them from within generators (as is the case for @WithTokenizers 
on a PlaceHistoryMapper). GWT can work from *.java files only for everything 
else (AFAICT) but classes referenced from annotations.

So, you just have to javac all your *.java to *.class (actually, only the 
HellowPlace and GoodbyePlace here, but by compiling everything you're sure 
you don't miss anything when you add a class or change an annotation's 
value) and put them in the classpath for Compile.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Modular rpc blues

2010-12-21 Thread Thomas Broyer


On Tuesday, December 21, 2010 9:51:38 AM UTC+1, coelho wrote:

  Hello
  
 What seems to me great in GWT is that it's easy to build
 client code and server code that can communicate through GWT-RPC.
  
 What 's great too is that you can write modules
 and your webapp can use those modules.
  
 Then why is it so complicated ( is it possible ? ) to have a module with 
 GWT-RPC code
 ( implementation and interfaces )
 that could be used in a webapp


And by so complicated you mean adding half a dozen lines to your web.xml 
file, right?
 

 I tried many things in eclipse
 I tried many things with maven
 ( gwt-maven-plugin : goal mergewebxml ) fails when web.xml refers to 
 external module
  
 still no success !


Have a look at the cargo maven plugin (I haven't tried it though)

I wondered if there is such a project already done
  
 Is there somewhere a jar , ready made , with GWT-RPC included that I could 
 use as a reference ?
  
 or is hopeless ?


I believe that's what web-fragments in Servlets 3.0 are meant to solve:
http://java.sun.com/developer/technicalArticles/JavaEE/JavaEE6Overview_Part2.html#webfrags
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 remove Space between disclosure panels

2010-12-21 Thread Thomas Broyer
VerticalPanel are hardly necessary. Most of the time, a FlowPanel would work 
seamlessly. Give it a try (with no guarantee though, you'd have to first 
understand what this gap comes from, using browser developer tools such as 
Firebug or Web Inspector).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



rest / json command pattern implementation project

2010-12-21 Thread Raphael André Bauer
Hi,


in many projects large scale GWT apps the command pattern comes in handy.
It provides a central point for chaching, batching, retrying of flaky
connections - and also functionality for undo operations.

Great :)

But what about Command pattern for REST interfaces (possibly using
JSON)? There are some excellent options such as resy-gwt. But as
client side developer I am still used to my plain old command pattern.

I am not sure if anybody is interested, but I released an alpha
version of my rest (json) command pattern at google code. It is fully
functional, completed with testcases and can be built out of the box
using maven.


Any feedback would be appreciated :)


Thanks,


Cheers,


Raphael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: AbstractCell, is it possible to put ScrollPanel into cell?

2010-12-21 Thread vkrejcirik
Ok, thanks for reply ;)

On 18 pro, 17:50, John LaBanca jlaba...@google.com wrote:
 You cannot embed the ScrollPanel widget in a Cell, but you can wrap the
 table element in a div with a fixed height and set overflow to auto, which
 will add scrollbars if needed.
 sb.appendHtmlConstant(div style=\height:100px;overflow:auto;\);
 sb.appendHtmlConstant(table);

 Alternatively, you could use a multiple select box instead of checkboxes.
  It wouldn't include checkboxes, but it allows multiple selection.
 sb.appendHtmlConstant(select multiple=\multiple\ size=\3\);

 Thanks,
 John LaBanca
 jlaba...@google.com







 On Sat, Dec 18, 2010 at 5:06 AM, vkrejcirik vkrejci...@gmail.com wrote:
  Hi, I would like to put ScrollPanel into AbstractCell. Is it possible?

  I have creating html table now in render method. I would like to put
  there scroll panel with checkboxes, if it is possilbe. Thanks for all
  replies.

  private static class ContentWidgetCell extends
  AbstractCellContentWidget {

                 public ContentWidgetCell() {
                         // cell responds to change events.
                         super(change);
                 }

                �...@override
                 public void render(ContentWidget value, Object key,
  SafeHtmlBuilder
  sb) {
                         if (value != null) {

                                 if (value instanceof GenderWidget) {

                                         GenderWidget tempValue =
  (GenderWidget) value;

                                         sb.appendHtmlConstant(table);

                                         for (Gender g :
  tempValue.getGenders()) {

   sb.appendHtmlConstant(trtd valign=\top\);

   sb.appendHtmlConstant(input type=\checkbox\ /);

   sb.appendHtmlConstant(/tdtd);

                                                 // Display the name of
  gender
                                                 sb.appendHtmlConstant(div
  style=\padding-left:10px;\);

   sb.appendEscaped(g.getName());

   sb.appendHtmlConstant(/div);

   sb.appendHtmlConstant(/td/tr);
                                         }

                                         sb.appendHtmlConstant(/table);

                                 } else {
                                         sb.appendEscaped(value.getName());
                                 }
                         }
                 }
  ...

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



Junk characters in response payload

2010-12-21 Thread Abdullah Shaikh
Hi All,

I have 2 webapps, webapp1 gets the request but the gwt rpc service is
on webapp2, for this I have overridden the loadSerializationPolicy of
the RemoteServiceServlet and pointed it to correct .gwt.rpc file, but
the request fails and lands into onFailure method.

I am pasting request payload below incase if required. I don't know
what these numbers are, I think the response should only contain the
object to be passed.


//OK[163,2,-19,162,2,-17,162,2,-15,162,2,-13,161,2,-11,162,2,-9,161,2,-7,7,1,160,2,-19,159,2,-17,159,2,-15,159,2,-13,158,2,-11,159,2,-9,158,2,-7,7,1,157,2,-19,156,2,-17,156,2,-15,156,2,-13,155,2,-11,156,2,-9,155,2,-7,7,1,154,2,-19,153,2,-17,153,2,-15,153,2,-13,152,2,-11,153,2,-9,152,2,-7,7,1,151,2,-19,150,2,-17,150,2,-15,150,2,-13,149,2,-11,150,2,-9,149,2,-7,7,1,148,2,-19,147,2,-17,147,2,-15,147,2,-13,146,2,-11,147,2,-9,146,2,-7,7,1,145,2,-19,144,2,-17,144,2,-15,144,2,-13,143,2,-11,144,2,-9,143,2,-7,7,1,142,2,-19,141,2,-17,141,2,-15,141,2,-13,140,2,-11,141,2,-9,140,2,-7,7,1,139,2,-19,138,2,-17,138,2,-15,138,2,-13,137,2,-11,138,2,-9,137,2,-7,7,1,136,2,-19,135,2,-17,135,2,-15,135,2,-13,134,2,-11,135,2,-9,134,2,-7,7,1,133,2,-19,132,2,-17,132,2,-15,132,2,-13,131,2,-11,132,2,-9,131,2,-7,7,1,130,2,-19,129,2,-17,129,2,-15,129,2,-13,128,2,-11,129,2,-9,128,2,-7,7,1,127,2,-19,126,2,-17,126,2,-15,126,2,-13,125,2,-11,126,2,-9,125,2,-7,7,1,124,2,-19,123,2,-17,123,2,-15,123,2,-13,122,2,-11,123,2,-9,122,2,-7,7,1,121,2,-19,120,2,-17,120,2,-15,120,2,-13,119,2,-11,120,2,-9,119,2,-7,7,1,118,2,-19,117,2,-17,117,2,-15,117,2,-13,116,2,-11,117,2,-9,116,2,-7,7,1,115,2,-19,114,2,-17,114,2,-15,114,2,-13,113,2,-11,114,2,-9,113,2,-7,7,1,112,2,-19,111,2,-17,111,2,-15,111,2,-13,110,2,-11,111,2,-9,110,2,-7,7,1,109,2,-19,108,2,-17,108,2,-15,108,2,-13,107,2,-11,108,2,-9,107,2,-7,7,1,106,2,-19,105,2,-17,105,2,-15,105,2,-13,104,2,-11,105,2,-9,104,2,-7,7,1,103,2,-19,102,2,-17,102,2,-15,102,2,-13,101,2,-11,102,2,-9,101,2,-7,7,1,100,2,-19,99,2,-17,99,2,-15,99,2,-13,98,2,-11,99,2,-9,98,2,-7,7,1,97,2,-19,96,2,-17,96,2,-15,96,2,-13,95,2,-11,96,2,-9,95,2,-7,7,1,94,2,-19,93,2,-17,93,2,-15,93,2,-13,92,2,-11,93,2,-9,92,2,-7,7,1,91,2,-19,90,2,-17,90,2,-15,90,2,-13,89,2,-11,90,2,-9,89,2,-7,7,1,88,2,-19,87,2,-17,87,2,-15,87,2,-13,86,2,-11,87,2,-9,86,2,-7,7,1,85,2,-19,84,2,-17,84,2,-15,84,2,-13,83,2,-11,84,2,-9,83,2,-7,7,1,82,2,-19,81,2,-17,81,2,-15,81,2,-13,80,2,-11,81,2,-9,80,2,-7,7,1,79,2,-19,78,2,-17,78,2,-15,78,2,-13,77,2,-11,78,2,-9,77,2,-7,7,1,76,2,-19,75,2,-17,75,2,-15,75,2,-13,74,2,-11,75,2,-9,74,2,-7,7,1,73,2,-19,72,2,-17,72,2,-15,72,2,-13,71,2,-11,72,2,-9,71,2,-7,7,1,70,2,-19,69,2,-17,69,2,-15,69,2,-13,68,2,-11,69,2,-9,68,2,-7,7,1,67,2,-19,66,2,-17,66,2,-15,66,2,-13,65,2,-11,66,2,-9,65,2,-7,7,1,64,2,-19,63,2,-17,63,2,-15,63,2,-13,62,2,-11,63,2,-9,62,2,-7,7,1,61,2,-19,60,2,-17,60,2,-15,60,2,-13,59,2,-11,60,2,-9,59,2,-7,7,1,58,2,-19,57,2,-17,57,2,-15,57,2,-13,56,2,-11,57,2,-9,56,2,-7,7,1,55,2,-19,54,2,-17,54,2,-15,54,2,-13,53,2,-11,54,2,-9,53,2,-7,7,1,52,2,-19,51,2,-17,51,2,-15,51,2,-13,50,2,-11,51,2,-9,50,2,-7,7,1,49,2,-19,48,2,-17,48,2,-15,48,2,-13,47,2,-11,48,2,-9,47,2,-7,7,1,46,2,-19,45,2,-17,45,2,-15,45,2,-13,44,2,-11,45,2,-9,44,2,-7,7,1,43,2,-19,42,2,-17,42,2,-15,42,2,-13,41,2,-11,42,2,-9,41,2,-7,7,1,40,2,-19,39,2,-17,39,2,-15,39,2,-13,38,2,-11,39,2,-9,38,2,-7,7,1,37,2,-19,36,2,-17,36,2,-15,36,2,-13,35,2,-11,36,2,-9,35,2,-7,7,1,34,2,-19,33,2,-17,33,2,-15,33,2,-13,32,2,-11,33,2,-9,32,2,-7,7,1,31,2,-19,30,2,-17,30,2,-15,30,2,-13,29,2,-11,30,2,-9,29,2,-7,7,1,28,2,-19,27,2,-17,27,2,-15,27,2,-13,26,2,-11,27,2,-9,26,2,-7,7,1,25,2,-19,24,2,-17,24,2,-15,24,2,-13,23,2,-11,24,2,-9,23,2,-7,7,1,22,2,-19,21,2,-17,21,2,-15,21,2,-13,20,2,-11,21,2,-9,20,2,-7,7,1,19,2,-19,18,2,-17,18,2,-15,18,2,-13,17,2,-11,18,2,-9,17,2,-7,7,1,16,2,15,2,10,2,14,2,10,2,13,2,10,2,12,2,8,2,11,2,10,2,9,2,8,2,7,2,7,1,50,6,5,2,4,2,3,2,2,1,[java.util.HashMap/962170901,java.lang.String/2004016611,msg,success,payload,java.util.ArrayList/3821976829,categoryName,Category
Name:1,parentId,Category Type
1,websiteAccess,description,categoryType,parentType,productCategoryId,Product
Category Id 1,Category Name:2,Category Type 2,Product Category
Id 2,Category Name:3,Category Type 3,Product Category Id
3,Category Name:4,Category Type 4,Product Category Id
4,Category Name:5,Category Type 5,Product Category Id
5,Category Name:6,Category Type 6,Product Category Id
6,Category Name:7,Category Type 7,Product Category Id
7,Category Name:8,Category Type 8,Product Category Id
8,Category Name:9,Category Type 9,Product Category Id
9,Category Name:10,Category Type 10,Product Category Id
10,Category Name:11,Category Type 11,Product Category Id
11,Category Name:12,Category Type 12,Product Category Id
12,Category Name:13,Category Type 13,Product Category Id
13,Category Name:14,Category Type 14,Product Category Id
14,Category Name:15,Category Type 15,Product Category Id
15,Category Name:16,Category Type 16,Product Category Id
16,Category Name:17,Category Type 17,Product Category Id

Re: How to remove Space between disclosure panels

2010-12-21 Thread Ian Bambury
I seem to remember that you get this if the disclosure panel is empty
- disPanel1 is
empty since you add simPanel to it but then add simPanel to disPanel2

Ian

On 21 December 2010 10:27, Thomas Broyer t.bro...@gmail.com wrote:

 VerticalPanel are hardly necessary. Most of the time, a FlowPanel would
 work seamlessly. Give it a try (with no guarantee though, you'd have to
 first understand what this gap comes from, using browser developer tools
 such as Firebug or Web Inspector).

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


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: rest / json command pattern implementation project

2010-12-21 Thread Raphael André Bauer
On Tue, Dec 21, 2010 at 11:27 AM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
...
 I am not sure if anybody is interested, but I released an alpha
 version of my rest (json) command pattern at google code. It is fully
 functional, completed with testcases and can be built out of the box
 using maven.


A tiny detail was missing... The url... :
http://code.google.com/p/gwt-json-commandpattern/


Again - any feedback would be appreciated :)

Thanks!


Raphael




 Thanks,


 Cheers,


 Raphael


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: GIN MVP 2.1 Example

2010-12-21 Thread sheamus
See etienne's blog..

http://wanderingcanadian.posterous.com/

Both the multiple activity mappers example and the Hello MVP work
brilliantly.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 do you deal with dead EvenHandlers?

2010-12-21 Thread Jeff Schwartz
Hi Thomas,

Yes, that would explain it and thank you very much for your input.

About life cycle management, most of the classes in question are created
anonymously as in my original example with the
FluidTmpltDeletedGWTEvent.Handler. I guess I could keep a reference to the
returned EventHandler in the enclosing class and prior to assignment to it
check if the reference variable contains a valid reference (non null) and
call removeHandler if it does. The funny thing is I hardly ever see life
cycle management in JavaScript code, at least from my experience anyway, so
I guess i just perpetuated a bad practice. My bad :)

I started developing my latest application prior to the release of GWT's
native MVP implementation. When 2.1 was released I thought about refactoring
the application to use the native MVP noting that it held numerous benefits
but I hesitated and still do because GWT's native MVP implementation didn't
support DAOs (I am using Objectify) and it appeared to be a work in progress
both in terms of the framework itself and its documentation which I
regrettably think is quite bad.

I also believe that sometimes applications benefit more from tight coupling
of some of their components making for an all around leaner application
though obviously in general loose coupling should be the overall goal.

At some point I will probably bight the bullet and move to MVP but not until
I sense a little more maturity in the native implementation provided by GWT
and a better documentation set to go along with it.

Thanks again for shedding some light on and answering my question.

Jeff

On Tue, Dec 21, 2010 at 4:07 AM, Thomas Broyer t.bro...@gmail.com wrote:

 Actually, because the EventHandler has a reference to the class that
 created it (in most cases, and it's true in your case), then as long as it
 is referenced by the EventBus, it won't be garbage collected, and neither
 will be its owner class. There's no dead event handler, only things that
 you no longer use but haven't destroyed, so they're still there, listening
 and handling events, without anyone to notice it (because your code no
 longer has any reference on them).
 You really should clean after yourself; onLoad/onUnload on widgets might be
 a solution; but having a real lifecycle for your classes would be best (this
 is where MVP shines through, e.g. the start/onCancel/onStop methods of
 activities)

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




-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: rest / json command pattern implementation project

2010-12-21 Thread Gal Dolber
Looks nice! I'll check it out

On Tue, Dec 21, 2010 at 6:58 AM, Raphael André Bauer 
raphael.andre.ba...@gmail.com wrote:

 On Tue, Dec 21, 2010 at 11:27 AM, Raphael André Bauer
 raphael.andre.ba...@gmail.com wrote:
 ...
  I am not sure if anybody is interested, but I released an alpha
  version of my rest (json) command pattern at google code. It is fully
  functional, completed with testcases and can be built out of the box
  using maven.


 A tiny detail was missing... The url... :
 http://code.google.com/p/gwt-json-commandpattern/


 Again - any feedback would be appreciated :)

 Thanks!


 Raphael


 
 
  Thanks,
 
 
  Cheers,
 
 
  Raphael
 

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Dev Mode Font Size != Production Mode Font Size

2010-12-21 Thread Jeff Schwartz
Hi George,

Thank you very much for your input. You know, it could have. I also notice
that since the latest FF v3.6.13 upgrade (Windows Vista) I am not noticing
it any more so for now at least I will put this to rest.

Thanks again.

Jeff

On Mon, Dec 20, 2010 at 5:29 PM, George Georgovassilis 
g.georgovassi...@gmail.com wrote:

 Hello Jeff,

 Just checking: you havent't by accident enabled any zooming? Resetting
 the dev mode browser (Ctrl + 0) doesn't normalize the fonts back I
 guess?

 On Dec 17, 5:54 pm, Jeff Schwartz jefftschwa...@gmail.com wrote:
  Yes,, I can. I will do so later.
 
  On Dec 17, 2010 10:22 AM, Chris Conroy con...@google.com wrote:
 
  Jeff,
 
  Can you create a small reproduction case for this issue?
 
  On Tue, Dec 14, 2010 at 12:37 PM, Jeff Schwartz jefftschwa...@gmail.com
 
  wrote:
 
 
 
   Hi Chris,
 
  ...
 
  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit g...

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




-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Handling sessions in gwt multipage application

2010-12-21 Thread Brian Reilly
When the user logs in, store something in the HttpSession. Then, when
the next page loads and your entry point is invoked, make a GWT-RPC
call to check the session to see if the user is logged in and who they
are. You can access the session from a GWT-RPC service implementation
(subclass of AbstractRemoteServiceServlet) using:

getThreadLocalRequest().getSession()

You can store the user's preferred language in the session, too.

As for tutorials, I don't have any in mind, but I'm sure you could
find some examples by searching for GWT getThreadLocalRequest.

-Brian

On Mon, Dec 20, 2010 at 11:31 AM, Davor Peric davor.peric1...@gmail.com wrote:
 I'm new to gwt, and I need to handle sessions in the gwt multipage
 application I've built. I need to enable that the users stay logged in
 and the page language stays the same by navigating between pages. I've
 searched but couldn't find a good tutorail. Can someone give me some
 advice or a link to a good tutorial?

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: UiBinder or GWT Designer

2010-12-21 Thread Ice13ill
I believe that junaidp was expecting a more detailed answer :)

On Dec 20, 6:37 pm, Thomas Broyer t.bro...@gmail.com wrote:
 UiBinder is a feature of GWT that generates Java code from XML files to
 describe user interfaces.

 GWT Designer is a developer tool that allows you to generate Java code *
 and/or* UiBinder XML using a *designer* (RAD) rather than typing it by hand
 in a text editor.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: UiBinder or GWT Designer

2010-12-21 Thread Thomas Broyer
Er, he wanted to know the difference between them and which one would be 
better; and the answer is that they're not comparable.
Is Eclipse better than Java ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



KeyFactory.keyToString() and KeyFactory.stringToKey() emulation for gwt

2010-12-21 Thread Gal Dolber
Is there any safe way of emulating those methods?
I looked into the implementation(sorry), and doesn't look very nice:

   public static String keyToString(Key key)

{

if(!key.isComplete())

{

throw new IllegalArgumentException(Key is incomplete.);

} else

{

com.google.storage.onestore.v3.OnestoreEntity.Reference
reference = KeyTranslator.convertToPb(key);

return Base64.encodeWebSafe(reference.toByteArray(), false);

}

}


public static Key stringToKey(String encoded)

{

int modulo = encoded.length() % 4;

if(modulo != 0)

encoded = (new StringBuilder()).append(encoded).append(
.substring(modulo)).toString();

byte encodedBytes[] = encoded.getBytes();

byte decodedBytes[];

try

{

decodedBytes = Base64.decodeWebSafe(encodedBytes, 0,
encodedBytes.length);

}

catch(Base64DecoderException ex)

{

throw new IllegalArgumentException((new
StringBuilder()).append(Cannot
parse: ).append(encoded).toString(), ex);

}

com.google.storage.onestore.v3.OnestoreEntity.Reference reference =
new com.google.storage.onestore.v3.OnestoreEntity.Reference();

reference.parseFrom(decodedBytes);

return KeyTranslator.createFromPb(reference);

}

The other methods of KeyFactory are easy to emulate on gwt. It will be very
useful to have those two as well.

Thanks in advance.

+1 for an open-source jgae development code

-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



Developing GWT app on both mobile and desktop browsers

2010-12-21 Thread Ice13ill
I have a gwt application developed for desktop computer browsers and i
need to modify it's architecture so that widgets can adapt to mobile
screens. The app is using an MVC pattern (with some enhancements from
the MVP pattern, like events distributed through an event bus).
So i need some pointers or some articles to develop the app for mobile
browsers as well (that is, small screen devices).
This can be done by creating duplicate visual widgets (2 for each
widget lets say... one for small, one for large screen), or maybe by
dynamically loading another js gwt compiled code (i don't think this
is a solution since the app is pretty large).
I was thinking of adapting the app to the MVP pattern (one by one) and
maybe also using UiBinder (currently i don't use it because most of
the widgets load their inner data or inner widgets dynamically).
Also, gwt tutorials/documentation that can help creating/modifying the
architecture would be very appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 and DAOs

2010-12-21 Thread Sebastian
Further investigation has revealed that SimpleRequestProcessor call's
ServiceLayer#isLive() for every non-null domain object to check if
it's still there. Otherwise the write operation is set to DELETE.
IMO that's terrible: I don't want to do two entity manager/db lookups
for every find (even if it's aggressively cached). Using DAOs, I
don't even call remove() on my entities but on the DAO (and I call
removeById() -- I don't have a domain object in these situations!)

So providing a ServiceLayerDecorator with an overridden isLive()
method (returning always true) solves this part. But I still need the
findXxx method because of the check Henrik mentions (even if it's
never called).

I really appreciate the possibility to use DAOs and service locators
in 2.1.1 -- but unfortunately it's still not usable (for me). I don't
want data access methods in my domain models and I don't want
unnecessary db operations! And I don't want to provide a totally
redundant Locator for *every* domain model either...

Is there any way to avoid the check for the findXxx methods?

Sebastian

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Handling sessions in gwt multipage application

2010-12-21 Thread Subhrajyoti Moitra
One more possible way to accomplish this:

1. User sends login request to the server (with username and pass)
2. The server authenticates using whatever mechanism. On successful auth, it
generates a token or session id (not necessarily using HttpSession) and
send it back to the GWT client (most probably using GWT-RPC mechanism)

3. The UI now has a valid session id. For next set of application calls from
the UI , always sends the sesssion id to the server. So for example after
login,lets say u want to retrieve a list of model objects , the async call
for that will have a parameter of session id along with other parameters as
required by the call. This sessionid has to be validated each time before
executing the actual application logic at the server.
On session validation failure for any calls, the UI should be able to handle
the case and logout the user if required.
4. To implement a remember me scenario, store this sesssion id in the
browser cookie along with some expiration date/time. On a new request from
the browser, read this cookie value and re-validate it at the server.

This session id validation can also be performed by a filter on a J2EE
container.


http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ
http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications

Both these links have a lot of good info about GWT security and how to
implement them.

Thanks,
Subhro.


On Tue, Dec 21, 2010 at 5:22 PM, Brian Reilly brian.irei...@gmail.comwrote:

 When the user logs in, store something in the HttpSession. Then, when
 the next page loads and your entry point is invoked, make a GWT-RPC
 call to check the session to see if the user is logged in and who they
 are. You can access the session from a GWT-RPC service implementation
 (subclass of AbstractRemoteServiceServlet) using:

getThreadLocalRequest().getSession()

 You can store the user's preferred language in the session, too.

 As for tutorials, I don't have any in mind, but I'm sure you could
 find some examples by searching for GWT getThreadLocalRequest.

 -Brian

 On Mon, Dec 20, 2010 at 11:31 AM, Davor Peric davor.peric1...@gmail.com
 wrote:
  I'm new to gwt, and I need to handle sessions in the gwt multipage
  application I've built. I need to enable that the users stay logged in
  and the page language stays the same by navigating between pages. I've
  searched but couldn't find a good tutorail. Can someone give me some
  advice or a link to a good tutorial?
 
  --
  You received this message because you are subscribed to the Google Groups
 Google 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 
 

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: UiBinder or GWT Designer

2010-12-21 Thread Jeff Schwartz
I use UiBinder and like it a lot because it allows me to do my markup using
UiBinder's HTML like XML tags which, if you like to code in HTML, is a real
benefit over coding your interface using Java. I don't but I could pass off
any one of my UiBinder xml files to a designer and they wouldn't feel like
they are looking at something foreign as it very HTML like.

In GWT 2.1 there are a few issues that developers must bear in mind when
using UiBinder. The most in your face issue is that you cannot dynamically
add widgets directly to an HTMLPanel but instead must have the HTMLPanel
include a native HTML container to which you append widgets to as
demonstrated in the following UiBinder markup:

ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
xmlns:dp=urn:import:com.google.gwt.user.datepicker.client
.
.
.
g:HTMLPanel styleName={style.view}
.
.
.
g:HTMLPanel ui:field=salesTaxContainer
div id=addEditIPurchaseTaxContainer/
/g:HTMLPanel
.
.
.
/g:HTMLPanel
/ui:UiBinder

And in the following code snippet where a widget is added to the HTMLPanel :

salesTaxContainer.add(new
AddEditPurchaseTaxView(purchase),addEditIPurchaseTaxContainer);

This is a common coding pattern you will have to get used to when using
UiBinder and it is my understanding that this is being addressed in some
future release.

Jeff

On Tue, Dec 21, 2010 at 6:53 AM, Ice13ill andrei.fifi...@gmail.com wrote:

 I believe that junaidp was expecting a more detailed answer :)

 On Dec 20, 6:37 pm, Thomas Broyer t.bro...@gmail.com wrote:
  UiBinder is a feature of GWT that generates Java code from XML files to
  describe user interfaces.
 
  GWT Designer is a developer tool that allows you to generate Java code *
  and/or* UiBinder XML using a *designer* (RAD) rather than typing it by
 hand
  in a text editor.

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




-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: UiBinder or GWT Designer

2010-12-21 Thread Eric Clayberg
GWT Designer is a GUI design tool while UiBinder is an XML-based
framework for specifying GWT UIs. GWT Designer can generate GWT code
using Java or XML (UiBinder), so you can consider GWT Designer to be a
tool for using UiBinder. It would not be appropriate to compare/
contrast them (as has already been pointed out).

-Eric

On Dec 20, 7:45 am, junaidp juna...@gmail.com wrote:
 Hi ,
 I would like to know the difference in UiBinder and GWT Designer  like
 which one is better
 if  i'm using GWT Designer for my interface and not using any java
 code for the interface ,will i still be requiring UiBinder.
 Will there be any benefit of UiBinder over GWT Designer .

 Thanks
 Regards
 Junaid

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: GIN MVP 2.1 Example

2010-12-21 Thread Matthew Hill
These two posts were very helpful:

http://wanderingcanadian.posterous.com/hello-mvp-with-gin
http://wanderingcanadian.posterous.com/using-binding-annotations-with-display-areas

~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-tool...@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: UiBinder or GWT Designer

2010-12-21 Thread Matthew Hill
The true question he is probably asking is should he use a WYSIWYG tool or 
write the interface by hand.

My advice would be to try both. The latter will give you more flexibility.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Junk characters in response payload

2010-12-21 Thread Matthew Hill
I see these numbers a lot. I doubt they are junk.

I'd like to know what purpose they serve though.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: UiBinder or GWT Designer

2010-12-21 Thread Jeff Schwartz
If that is indeed the question he is asking then no one but himself can
answer it but perhaps he can come to an answer by asking himself the
following:

Am I knowledgeable in HTML and CSS and am I comfortable hand crafting my
markup? If he answers yes to this then perhaps he will prefer to use
UiBinder or Desginer/UiBinder. If he answers no to this then perhaps he
would prefer to use either Java or Designer/Java.

But like I said, no one can really answer that question except for himself.
We can only provide our opinions on what and why we prefer.

Jeff


On Tue, Dec 21, 2010 at 8:55 AM, Matthew Hill matt2...@gmail.com wrote:

 The true question he is probably asking is should he use a WYSIWYG tool or
 write the interface by hand.

 My advice would be to try both. The latter will give you more flexibility.

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




-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 + spring security

2010-12-21 Thread asianCoolz
I use gwt requestBuilder to query server result, if server-side spring
checked user is not authenticated, it will forward to form-login
login-page=/gwtapplication.html#!login   , but gwt is not
forwarded to that page.  see below


requestBuilder.setCallback(new RequestCallback() {

@Override
public void onError(final Request request, final Throwable
exception) {
resultCallback.onFailure(exception);
}

@Override
public void onResponseReceived(final Request request,
final Response response) {


if(response.getHeader(Content-
Type).toLowerCase().equals(text/html.toLowerCase()))
{


//response.getText() is
/**
  Expires Thu, 01 Jan 1970 00:00:00 GMT
  Set-Cookie JSESSIONID=1emk892yva1e9;Path=/
  Location http://127.0.0.1:/gwtapplication.html#!login
 Content-Length 0
 Server Jetty(6.1.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-tool...@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 + spring security

2010-12-21 Thread Travis Camechis
instead of using that I created my own custom Spring Security
SuccessHandlers and Failure Handlers that returns JSON back to the client.
 I then let the client handle the place management based on
success:true/false.  At this point I can also send credentials back in the
JSON as well.

On Tue, Dec 21, 2010 at 9:15 AM, asianCoolz second.co...@gmail.com wrote:

 I use gwt requestBuilder to query server result, if server-side spring
 checked user is not authenticated, it will forward to form-login
 login-page=/gwtapplication.html#!login   , but gwt is not
 forwarded to that page.  see below


 requestBuilder.setCallback(new RequestCallback() {

@Override
public void onError(final Request request, final Throwable
 exception) {
resultCallback.onFailure(exception);
}

@Override
public void onResponseReceived(final Request request,
final Response response) {


if(response.getHeader(Content-
 Type).toLowerCase().equals(text/html.toLowerCase()))
{


//response.getText() is
/**
  Expires Thu, 01 Jan 1970 00:00:00 GMT
  Set-Cookie JSESSIONID=1emk892yva1e9;Path=/
  Location http://127.0.0.1:/gwtapplication.html#!login
 Content-Length 0
 Server Jetty(6.1.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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: UiBinder or GWT Designer

2010-12-21 Thread a...@mechnicality.com
Totally agree with you comments, Jeff. I evaluated GWTDesigner because, generally speaking, I like 
RAD tools. However, I found it very slow to start - maybe a bug or something - but, being 
comparatively happy with XML, HTML and CSS I found that my workflow was smoother using UiBinder and 
it was much quicker to make changes and see what was happening. Also, I tend to use a lot of my own 
widgets and programmatically add and removed them from pages, and so the direct UiBinder approach 
made that easier.


I stress that these are my own personal opinions and  YMMV. I'm interested in 
other people's opinions.

Regards

Alan


On 12/21/2010 6:03 AM, Jeff Schwartz wrote:
If that is indeed the question he is asking then no one but himself can answer it but perhaps he 
can come to an answer by asking himself the following:


Am I knowledgeable in HTML and CSS and am I comfortable hand crafting my markup? If he answers yes 
to this then perhaps he will prefer to use UiBinder or Desginer/UiBinder. If he answers no to this 
then perhaps he would prefer to use either Java or Designer/Java.


But like I said, no one can really answer that question except for himself. We can only provide 
our opinions on what and why we prefer.


Jeff


On Tue, Dec 21, 2010 at 8:55 AM, Matthew Hill matt2...@gmail.com 
mailto:matt2...@gmail.com wrote:

The true question he is probably asking is should he use a WYSIWYG tool or 
write the interface
by hand.

My advice would be to try both. The latter will give you more flexibility.
-- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit

group.
To post to this group, send email to google-web-toolkit@googlegroups.com
mailto:google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
mailto:google-web-toolkit%2bunsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




--
*Jeff Schwartz*

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



HTTP Session Problem

2010-12-21 Thread skippy
I am using this in a serviceImpl class:

HttpSession session = getThreadLocalRequest().getSession();

Sometimes when a user has two tabs in IE opened to different logons to
different banks, the getSession() returns the wrong HTTP Session and
the user is able to see data from the wrong bank.

We are using GWT 2.0.4.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 RequestFactory Strange Exception

2010-12-21 Thread Matt Moriarity
@ProxyFor(value = Person.class, locator = PersonLocator.class)

then having a PersonLocator which implements LocatorPerson would fix this 
for you.

But in order to get your static service methods (besides just the find 
method), you need a ServiceLocator for your service:

@Service(value = PersonService.class, locator = MyServiceLocator.class)

I'm not sure if the locator for the service is necessary if it has a default 
constructor. We use Spring, so we have a service locator that just pulls the 
bean out of spring.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1 CELL TABLE

2010-12-21 Thread Hagar

bradr brad.rydzew...@... writes:

 
 To do this, you have to override the CellTable's default style.
 Because CellTable uses a CssResource, which ultimately gets obfuscated
 when you compile, you have to create your own implementation and pass
 it to the CellTable in the constructor.
 
 Here is how I did it:
 
 Step 1) Create your own implementation of the Resource
 
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.cellview.client.CellTable;
 import com.google.gwt.user.cellview.client.CellTable.Resources;
 public interface MyCellTableResources extends Resources {
 
   public MyCellTableResources INSTANCE =
   GWT.create(MyCellTableResources.class);
 
   /**
* The styles used in this widget.
*/
   @Source(CellTable.css)
   CellTable.Style cellTableStyle();
 }
 
 Step 2) Copy the CellTable.css file into your project (from gwt trunk)
 into the same package as your Resource implementation. Customize the
 css until it meets your style needs.
 
 Step 3) When you create an instance of the CellTable, give it your
 your custom CssResource:
 
myTable = new
 CellTableResource(Integer.MAX_VALUE,CellTableResources.INSTANCE);
 
 Hope that helps!
 
 On Oct 29, 11:55 am, bond daniele.re...@... wrote:
  Hi,
  is possibile to remove the box around the single cell that appears
  when I click on a cell?
 
  Thanks very much
 
  Best regards
 

Working example, based on bradr note:

1. Create new interface:
--
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.cellview.client.CellTable;

public interface CellTableResource extends Resources {

public CellTable.Resources INSTANCE =
GWT.create(CellTableResource.class);

/**
 * The styles used in this widget.
 */
@Source(style/CellTable.css)
CellTable.Style cellTableStyle();
}

2. Copy CellTable.css 

from: http://code.google.com/p/google-web-
toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/bikeshed/list/cli
ent/CellTable.css?r=8062
into the same directory (or subdirectory of CellTableResource).

3. Create your CellTable with the resource file:

CellTableContact table = new CellTableContact(20, 
CellTableResource.INSTANCE);



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: HTTP Session Problem

2010-12-21 Thread Jeff Schwartz
It would probably help to know if this is in dev or prod.

On Dec 21, 2010 9:22 AM, skippy al.leh...@fisglobal.com wrote:

I am using this in a serviceImpl class:

HttpSession session = getThreadLocalRequest().getSession();

Sometimes when a user has two tabs in IE opened to different logons to
different banks, the getSession() returns the wrong HTTP Session and
the user is able to see data from the wrong bank.

We are using GWT 2.0.4.

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Idea of RequestFactory

2010-12-21 Thread Matt Moriarity
You could add the with(address) to the findAll call:

requestFactory.personRequest().findAll().with(address).fire(...); 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



RequestFactory entity proxies can't be cloned.

2010-12-21 Thread Matt Moriarity
I posted this in gwt-contributors but I feel this might be the more 
appropriate group.

I'm attempting to switch to using RequestFactory instead of GWT-RPC 
and manually creating DTOs. It's been going pretty well, except I've hit 
one use-case that is just a brick wall.
 
I have a panel that is an EditorDocumentProxy which uses 
a RequestFactoryEditorDriver to handle the editing. One of the properties 
of DocumentProxy is another proxy, which I want to edit in a dialog box 
that shows when a button is clicked in the panel. The dialog is another 
Editor.
 
The problem is that anytime something changes in this dialog, I want 
to flush the editor, send the current values to the server for validation, 
and report any errors right away. This works fine, but the dialog box has 
a cancel button, which should revert any changes made in the dialog box.
 
I was able to do this before by storing the original value when it's 
set, and editing a clone while in the dialog box. But entity proxies can't 
be usefully cloned in any way that I currently see, so I'm at a loss as to 
how to get this behavior.
 
Any suggestions? I'm currently on GWT 2.1.1rc1, should be upgrading to 
2.1.1 soon.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: HTTP Session Problem

2010-12-21 Thread skippy
This is happining in production in a J2ee Struts like application.
(Sun Blueprint MVC)
Not Hosted mode.


On Dec 21, 8:35 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
 It would probably help to know if this is in dev or prod.

 On Dec 21, 2010 9:22 AM, skippy al.leh...@fisglobal.com wrote:

 I am using this in a serviceImpl class:

 HttpSession session = getThreadLocalRequest().getSession();

 Sometimes when a user has two tabs in IE opened to different logons to
 different banks, the getSession() returns the wrong HTTP Session and
 the user is able to see data from the wrong bank.

 We are using GWT 2.0.4.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubs­cr...@googlegroups.com
 .
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1 CELL TABLE

2010-12-21 Thread Owen Powell
Thanks hagar. 

I followed your instructions with two changes:

1. Added import import 
com.google.gwt.user.cellview.client.CellTable.Resources; the interface in 
Step 1.
2. I was getting an error regarding unobfuscated class names in my CSS file, 
so I appended cellTable to all the CSS classes (as per the recommendation 
of the compiler). 

Now I get the following error:

[ERROR] [amdb] - Deferred binding failed for 
'amdb.client.ui.table.CellTableResource'; expect subsequent failures
[DEBUG] [amdb] - Rebinding 
com.google.gwt.dom.client.StyleInjector.StyleInjectorImpl
[WARN] [amdb] - For the following type(s), generated source was never 
committed (did you forget to call commit()?)
[WARN] [amdb] - 
amdb.client.ui.table.CellTableResource_default_InlineClientBundleGenerator

If anyone has an idea, please let me know.

~Owen

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1 CELL TABLE

2010-12-21 Thread Owen Powell
My code (files are all in the same directory):

1. Interface

package amdb.client.ui.table;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.CellTable.Resources;

public interface CellTableResource extends Resources {

   public CellTable.Resources INSTANCE =
   GWT.create(CellTableResource.class);

   /**
* The styles used in this widget.
*/
   @Source(CellTable.css)
   CellTable.Style cellTableStyle();
}

2. CSS file (copy of the original CellTable style sheet, with cellTable 
appended to every style).

.cellTable {
  border: 1px solid #88b0f2;
}

.cellTableFirstColumn {
  
}

@sprite .cellTableFooter {
  gwt-image: 'cellTableFooterBackground';
  background-color: #b4d0f8;
  border-top: 1px solid #88b0f2;
  border-left: 1px solid #88b0f2;
  border-right: 1px solid #eef;
  padding: 0px 10px;
  text-align: left;
  color: #4b4a4a;
}

@sprite .cellTableHeader {
  gwt-image: 'cellTableHeaderBackground';
  background-color: #b4d0f8;
  border-bottom: 1px solid #88b0f2;
  border-left: 1px solid #88b0f2;
  border-right: 1px solid #eef;
  padding: 0px 10px;
  text-align: left;
  color: skyblue;
}

.cellTableCell {
  padding: 4px 10px;
}

.cellTableFirstColumnFooter {
  border-left: 0px;
}

.cellTableFirstColumnHeader {
  border-left: 0px;
}

.cellTableEvenRow {
  background-color: red;
}

.cellTableOddRow {
  background-color: red;
}

.cellTableHoveredRow {
  background-color: green;
}

@sprite .cellTableSelectedRow {
  gwt-image: 'cellTableSelectedBackground';
  background-color: #628cd5;
  color: white;
  height: auto;
  overflow: auto;
}

3. Call

CellTableT itemTable = new CellTableT(Integer.MAX_VALUE, 
CellTableResource.INSTANCE);

4. Error

[DEBUG] [amdb] - Rebinding amdb.client.ui.table.CellTableResource
[ERROR] [amdb] - Deferred binding failed for 
'amdb.client.ui.table.CellTableResource'; expect subsequent failures
[DEBUG] [amdb] - Rebinding 
com.google.gwt.dom.client.StyleInjector.StyleInjectorImpl
[WARN] [amdb] - For the following type(s), generated source was never 
committed (did you forget to call commit()?)
[WARN] [amdb] - 
amdb.client.ui.table.CellTableResource_default_InlineClientBundleGenerator
[ERROR] [amdb] - Unable to load module entry point class amdb.client.AmdbNew 
(see associated exception for details)
[ERROR] [amdb] - Failed to load module 'amdb' from user agent 'Mozilla/5.0 
(X11; U; Linux i686; en-US) AppleWebKit/534.10 (KHTML, like Gecko) 
Chrome/8.0.552.224 Safari/534.10' at localhost:40471

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



UiBinder and event bubbling

2010-12-21 Thread alab
Prior to UIBinder in gwt, I wrapped elements in a HTMPanel which
basically handled all the events for its child elements. So instead of
attaching an eventlistener to multiple widgets, I just attached it to
the parent container and used event bubbling. Can I do this in
UIBinder? I know in the backing class for the yourclass.ui.xml, you
can use UiHandler to handle event delegation but is this optimal? Am I
still adding multiple listeners or is GWT doing something behind the
scenes and attaching only 1 event handler.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



RPC Serialization Format

2010-12-21 Thread travemm
Hi,

I'm looking for details (references to code are fine) about how the
rpc messages are formatted. I'm doing penetration testing for a
client's GWT rpc servlets but cannot access their source or discuss
with their developers (black/grey box testing).

Looking at an rpc request it appears to be formated the following way:
#|#|#|URL|StrongHash|Class_Name|Method_Name|ARG1_Class_name|
ARG1_member1|...|ARG1_memberN|ARG2_Class_Name|ARG2_member1|...|
ARG2_memberN|#|#|#|#.|#|#|#

The first three #'s appear to be related to the request and number of
args, not %100 sure on this relation.
The last set of #s I'm very confused on what they do and mean.

I have the following use case that will probably result in a
successful penetration test for my client.

A request to method M1 sends and object with all the fields set to
NULL.
A request to method M2 sends the same object and some additional
objects, but with all the fields set to valid values.
I need to create a request to M1 with the same object sent to M2.
Since M2 also has additional arguments the RPC requests are rather
different and it isn't straight forward for me.

Of course through a hundred hours of reading GWT source I could figure
this out, but hopefully there is something simpler. I can request a
copy of the class file for the class I need to serialize and send to
M1, if that will allow me to make the request to M1 using GWT
interfaces.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 to debug service calls, which do not come through

2010-12-21 Thread ghost23
Hi,

i am using the newest version of GWT. I have a service with a bunch of
methods. Some work, some don't. The one,
that does not work, seems simply not being called on the server side.
If i put a breakpoint in the method of the service implementation
on the server side, it doesn't get called. But the AsyncCallback is
created on the client side.

Unfortunately there is no exception or anything being thrown. Do you
have any tips, how i could debug this?

Thank you and cheers
Sven

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



CellTable: Style cells differently wihtin a column

2010-12-21 Thread Thomas
Hi,

I have been searching through this forum and other places on the
internet to find examples of how to style cells differently within a
column - but without luck. I hope you can help me.

Here is my problem:

I have a CellTable showing a list of objects. A simplified example of
this object looks like this:

class MyQuote {
public String getQuoteName();
public String getQuoteType();
}

My problem is that I want to apply style A to the cell if quoteType is
X and apply style B to the cell if quoteType is Y. How can I do that?

I have tried by creating a custom column class (extends Column) and a
custom cell class (extends ClickableTextCell) but without luck. The
column class is aware of the MyQuote object and thereby both quoteName
and quoteType but if I apply the styling in the column class getValue
method - for example div class=AquoteName/div - the HTML gets
escaped. I have also tried to apply styling in the cells render method
but here I have only knowledge to the value being displayed, which is
quoteName, and not quoteType so I cannot determine the style class.

Regards,
Thomas.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



2.1.1 fails in SimpleRequestProcessor.processInvocationMessages when nothing to invoke

2010-12-21 Thread Cory Prowse
Hi,

I believe I've uncovered an error in version 2.1.1 of SimpleRequestProcessor 
when there are no invocations and only operations in a RequestMessage from the 
client (stacktrack at end of email).
I'm checking here before creating an issue.

I am using an editor on the client to modify a property, then flushing and 
firing.

So the RequestMessage from the client is:
---
{Operations=[{PropertyMap={title=150349-0 Title CHANGED}, 
ServerId=IjY1Zjg4ZjVlLWFlNDItNDcxYi04NGNkLWE2MWJmOGUxNzBjZCI=, 
Operation=UPDATE, Version=MQ==, 
TypeToken=au.projectx.gwt.request.ArticleProxy}]}
---

With the following stacktrace:
---
[#|2010-12-21T15:05:48.626+1100|SEVERE|glassfish3.0.1|com.google.gwt.requestfactory.server.RequestFactoryServlet|_ThreadID=28;_ThreadName=Thread-1;|Unexpected
 error
java.lang.NullPointerException
at 
com.google.gwt.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:414)
at 
com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:218)
at 
com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:125)
at 
com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
---

It seems to me that either SimpleRequestProcessor.processInvocationMessages() 
needs to cater for a null ListInvocationMessage or 
RequestMessage.getInvocations() should return an empty list instead of a null.

 -- Cory

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



RPC call from GWT gadgets

2010-12-21 Thread दीपक B
Hi all,
Has anyone tried  Calling a remote SOAP service from GWT Gadget.
The Call from the client side is unable to find the servlet.
Can anyone please help..

Thanks
Deepak

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



Plugin fails to connect to hosted mode server

2010-12-21 Thread Sethu
Hi,

When I try to run the GWTs sample application project in the hosted
mode on chrome, the static parts of the page load and then it throws
an error saying plug in fails to connect to the hosted mode web
server.

My system config is below:
OS: Windows 7 Home Premium (Windows firewall off, Kaspersky firewall
on)
JDK: java 6 update 23 (64 bit JVM)
Eclipse Helios: 64 bit
GWT SDK : 2.1

I have installed the 32 bit jdk and in the run configurations I am
ensuring that the JVM that its running on is 32 bit.

The same thing works on my other PC running windows XP on a 32 bit
JVM.

I am not sure what I am doing wrong. Could someone please help...

Thanks
Sethu

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 JUnit ServletContainerLauncher?

2010-12-21 Thread Kevin Aloisi
Is it possible to use a custom ServletContainerLauncher with a JUnit test?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 debug service calls, which do not come through

2010-12-21 Thread ghost23
hi again,

ok, my onFailure method was empty, never saw, what happened there. Now
i see, that i
have a serialization error. But it has no details about what the
concrete problem is.



On Dec 21, 4:09 pm, ghost23 sven.bu...@googlemail.com wrote:
 Hi,

 i am using the newest version of GWT. I have a service with a bunch of
 methods. Some work, some don't. The one,
 that does not work, seems simply not being called on the server side.
 If i put a breakpoint in the method of the service implementation
 on the server side, it doesn't get called. But the AsyncCallback is
 created on the client side.

 Unfortunately there is no exception or anything being thrown. Do you
 have any tips, how i could debug this?

 Thank you and cheers
 Sven

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: CellTable: Style cells differently wihtin a column

2010-12-21 Thread Subhrajyoti Moitra
Here some code snippet might help..


CellMyQuote qCell=new MyQuoteCell(click);//custom abstract cell defined
below.
ColumnMyQuote, MyQuote qCol=new ColumnMyQuote, MyQuote(qCell) {
@Override
public MyQuote getValue(MyQuote object) {

return object;
}
};


public class MyQuoteCell extends AbstractCellMyQuote {

public interface MyQuoteTemplate extends SafeHtmlTemplates{
@Template(div class=\style-a\{0}/div)
SafeHtml aDiv(String qn);
@Template(div class=\style-b\{0}/div)
SafeHtml bDiv(String qn);
}

private static MyQuoteTemplate template=null;

public MyQuoteCell(String... consumedEvents) {
super(consumedEvents);
if(template==null){
template=GWT.create(MyQuoteTemplate.class);
}

}

@Override
*public void render(MyQuote value, Object key, SafeHtmlBuilder sb) {**
if(value!=null){
if(A.equals(value.getQuoteType())){
sb.append(template.aDiv(value.getQuoteName()));
}else if(B.equals(value.getQuoteType())){
sb.append(template.bDiv(value.getQuoteName()));
}else{
//render a default one similar to above.
}

}

}*

}

this is untested code. -:P


Cheers,
Subhro.

On Tue, Dec 21, 2010 at 3:09 PM, Thomas t...@conscius.com wrote:

 Hi,

 I have been searching through this forum and other places on the
 internet to find examples of how to style cells differently within a
 column - but without luck. I hope you can help me.

 Here is my problem:

 I have a CellTable showing a list of objects. A simplified example of
 this object looks like this:

 class MyQuote {
public String getQuoteName();
public String getQuoteType();
 }

 My problem is that I want to apply style A to the cell if quoteType is
 X and apply style B to the cell if quoteType is Y. How can I do that?

 I have tried by creating a custom column class (extends Column) and a
 custom cell class (extends ClickableTextCell) but without luck. The
 column class is aware of the MyQuote object and thereby both quoteName
 and quoteType but if I apply the styling in the column class getValue
 method - for example div class=AquoteName/div - the HTML gets
 escaped. I have also tried to apply styling in the cells render method
 but here I have only knowledge to the value being displayed, which is
 quoteName, and not quoteType so I cannot determine the style class.

 Regards,
 Thomas.

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: DockLayoutPanel and StackLayoutPanel problems in IE7

2010-12-21 Thread mike b
So, I spent yesterday getting it to work in IE7 with unpredictable
results. Basically, I used DockPanel in my Layer 4 (from above).

This morning, re-re-reading the cryptic documentation on the website,
I found that I had not inherited from ResizeComposite. This was
actually plainly put, but I missed it somehow.  Note noted above is
that all of my Layers are my classes with the various LayoutPanels
in the initWidget().

Now I'm having predictable success with implementing in FF.  However,
I'm back to the same issue in IE7 nothing below Layer 4 will
display.

I'm also having to basically remove any VeritcalPanel or
HorizontalPanels from the app if they use any widget w/ implemented in
a div tag (like the ToggleButton) as the results are completely un-
predictable.

Does anyone know if upgrading to GWT 2.1.1 would help w/ this?

Thanks!!


On Dec 19, 10:49 pm, John LaBanca jlaba...@google.com wrote:
 If the LayoutPanels have an unbroken chain of ProvidesResize up to the
 RootLayoutPanel (as it looks like you've indicated they do), everything
 should work fine.  Can you provide a screen shot or a description of the
 actual error?  Or even better, a link?

 Thanks,
 John LaBanca
 jlaba...@google.com

 On Sun, Dec 19, 2010 at 10:52 AM, mike b mbaker.t...@gmail.com wrote:

  Hopefully someone can help with this issue.  I hvae been working on it
  for 3 days without success.  I am trying to get a StackLayoutPanel to
  display inside a DockLayoutPanel.

  GWT 2.1.0, mvp4g 1.2.0, GXT 2.2.1, standards mode, IE7

  Its actually a bit more complex than that...

  We have developed 4 stand alone modules that we are now integrating
  into a 5th Navigation Module.  3 of the original modules are in GXT
  and they display just fine.  The original GWT module was working
  perfectly using DockPanel and StackPanel.  However, I'm being forced
  to get rid of deprecation compiler warnings, so I need to move to
  DockLayoutPanels and StackLayoutPanels.  Now, my original GWT package
  no longer renders in IE7 when it is a child module to the Navigator.
  The bizarre thing is that it works in FF 3.6.10, but NOT IE7.

  I have searched the web extensively for a solution and have attempted
  many things to get it working:
  -set sizes on all panels
  -set the same Unit types on all panels (using PX right now)
  -using RootLayoutPanel (rather than RootPanel)

  Frustratingly, my original GWT Module still works fine when its not a
  child module to the Navigation module.

  Here's how I'm using the panels...

  Level 1 - Nav module - LayoutPanel (4 items, the 4th is a
  DockLayoutPanel)
  Level 2 - Nav module - DockLayoutPanel  (Center is another
  DockLayoutPanel, South is reserved for other add-ons)
  Level 3 - Child module - DockLayoutPanel (North is a TabBar, Center is
  a DockLayoutPanel)
  Level 4 - Child module - DockLayoutPanel (East has some widgets,
  Center is a StackLayoutPanel)
  Level 5 - Child module - StackLayoutPanel
     -each panel in the stack is a VerticalPanel or HorizontalPanel
  containing lists, buttons, and text entry fields.

  Strangely, when Level 4 and below is the old DockPanel and
  StackPanels, it all works great.

  Any ideas?  Thanks in advance

  -mike

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 Serialization Format

2010-12-21 Thread Sripathi Krishnan
Following blog posts should help you pen test your app. They aren't my posts
- but I have found them useful.

*a) RPC Format - *
http://www.gdssecurity.com/l/b/2009/10/08/gwt-rpc-in-a-nutshell/
*b) How RPC can be fuzzed* -
http://www.gdssecurity.com/l/b/2010/05/06/fuzzing-gwt-rpc-requests/
*c) How to enumerate all RPC methods* -
http://www.gdssecurity.com/l/b/2010/07/20/gwtenum-enumerating-gwt-rpc-method-calls/

You may also want to read through
de-gwthttp://code.google.com/p/degwt/wiki/HowDeGWTWorks
.

--Sri


On 21 December 2010 11:03, travemm trav.e...@gmail.com wrote:

 Hi,

 I'm looking for details (references to code are fine) about how the
 rpc messages are formatted. I'm doing penetration testing for a
 client's GWT rpc servlets but cannot access their source or discuss
 with their developers (black/grey box testing).

 Looking at an rpc request it appears to be formated the following way:
 #|#|#|URL|StrongHash|Class_Name|Method_Name|ARG1_Class_name|
 ARG1_member1|...|ARG1_memberN|ARG2_Class_Name|ARG2_member1|...|
 ARG2_memberN|#|#|#|#.|#|#|#

 The first three #'s appear to be related to the request and number of
 args, not %100 sure on this relation.
 The last set of #s I'm very confused on what they do and mean.

 I have the following use case that will probably result in a
 successful penetration test for my client.

 A request to method M1 sends and object with all the fields set to
 NULL.
 A request to method M2 sends the same object and some additional
 objects, but with all the fields set to valid values.
 I need to create a request to M1 with the same object sent to M2.
 Since M2 also has additional arguments the RPC requests are rather
 different and it isn't straight forward for me.

 Of course through a hundred hours of reading GWT source I could figure
 this out, but hopefully there is something simpler. I can request a
 copy of the class file for the class I need to serialize and send to
 M1, if that will allow me to make the request to M1 using GWT
 interfaces.

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: DockLayoutPanel and StackLayoutPanel problems in IE7

2010-12-21 Thread mike b
Also, this thread does not seem to be findable.

When I search for DockLayoutPanel StackLayoutPanel IE7 only one
result appears and its not this thread.

Thanks,
M

On Dec 21, 10:46 am, mike b mbaker.t...@gmail.com wrote:
 So, I spent yesterday getting it to work in IE7 with unpredictable
 results. Basically, I used DockPanel in my Layer 4 (from above).

 This morning, re-re-reading the cryptic documentation on the website,
 I found that I had not inherited from ResizeComposite. This was
 actually plainly put, but I missed it somehow.  Note noted above is
 that all of my Layers are my classes with the various LayoutPanels
 in the initWidget().

 Now I'm having predictable success with implementing in FF.  However,
 I'm back to the same issue in IE7 nothing below Layer 4 will
 display.

 I'm also having to basically remove any VeritcalPanel or
 HorizontalPanels from the app if they use any widget w/ implemented in
 a div tag (like the ToggleButton) as the results are completely un-
 predictable.

 Does anyone know if upgrading to GWT 2.1.1 would help w/ this?

 Thanks!!

 On Dec 19, 10:49 pm, John LaBanca jlaba...@google.com wrote:

  If the LayoutPanels have an unbroken chain of ProvidesResize up to the
  RootLayoutPanel (as it looks like you've indicated they do), everything
  should work fine.  Can you provide a screen shot or a description of the
  actual error?  Or even better, a link?

  Thanks,
  John LaBanca
  jlaba...@google.com

  On Sun, Dec 19, 2010 at 10:52 AM, mike b mbaker.t...@gmail.com wrote:

   Hopefully someone can help with this issue.  I hvae been working on it
   for 3 days without success.  I am trying to get a StackLayoutPanel to
   display inside a DockLayoutPanel.

   GWT 2.1.0, mvp4g 1.2.0, GXT 2.2.1, standards mode, IE7

   Its actually a bit more complex than that...

   We have developed 4 stand alone modules that we are now integrating
   into a 5th Navigation Module.  3 of the original modules are in GXT
   and they display just fine.  The original GWT module was working
   perfectly using DockPanel and StackPanel.  However, I'm being forced
   to get rid of deprecation compiler warnings, so I need to move to
   DockLayoutPanels and StackLayoutPanels.  Now, my original GWT package
   no longer renders in IE7 when it is a child module to the Navigator.
   The bizarre thing is that it works in FF 3.6.10, but NOT IE7.

   I have searched the web extensively for a solution and have attempted
   many things to get it working:
   -set sizes on all panels
   -set the same Unit types on all panels (using PX right now)
   -using RootLayoutPanel (rather than RootPanel)

   Frustratingly, my original GWT Module still works fine when its not a
   child module to the Navigation module.

   Here's how I'm using the panels...

   Level 1 - Nav module - LayoutPanel (4 items, the 4th is a
   DockLayoutPanel)
   Level 2 - Nav module - DockLayoutPanel  (Center is another
   DockLayoutPanel, South is reserved for other add-ons)
   Level 3 - Child module - DockLayoutPanel (North is a TabBar, Center is
   a DockLayoutPanel)
   Level 4 - Child module - DockLayoutPanel (East has some widgets,
   Center is a StackLayoutPanel)
   Level 5 - Child module - StackLayoutPanel
      -each panel in the stack is a VerticalPanel or HorizontalPanel
   containing lists, buttons, and text entry fields.

   Strangely, when Level 4 and below is the old DockPanel and
   StackPanels, it all works great.

   Any ideas?  Thanks in advance

   -mike

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 , HelloMVP (Google provided example illustrating Activities Places) : Compile error. Stacktrace enclosed.

2010-12-21 Thread Ferney
Sorry friends, but i don't understand GWT/MVP model.
I am a newbie and i consider GWT/MVP very dificult.

I need a good example with:
GWT/MVP, GAE, Request factory, Loggin, UIBinder,
and GWT/MVP, Request factory, loggin, UIBinder with other SQL database
(mysql or postgreSQL)

Thanks my friends...
(send or not send??? ok send...)

On 21 dic, 05:19, Thomas Broyer t.bro...@gmail.com wrote:
 Classes referenced from annotations have to be compiled for GWT to be able
 to process them from within generators (as is the case for @WithTokenizers
 on a PlaceHistoryMapper). GWT can work from *.java files only for everything
 else (AFAICT) but classes referenced from annotations.

 So, you just have to javac all your *.java to *.class (actually, only the
 HellowPlace and GoodbyePlace here, but by compiling everything you're sure
 you don't miss anything when you add a class or change an annotation's
 value) and put them in the classpath for Compile.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Plugin fails to connect to hosted mode server

2010-12-21 Thread a...@mechnicality.com
Please show us the stack trace 

Thanks




- Reply message -
From: Sethu writetose...@googlemail.com
Date: Tue, Dec 21, 2010 2:36 am
Subject: Plugin fails to connect to hosted mode server
To: Google Web Toolkit google-web-toolkit@googlegroups.com

Hi,

When I try to run the GWTs sample application project in the hosted
mode on chrome, the static parts of the page load and then it throws
an error saying plug in fails to connect to the hosted mode web
server.

My system config is below:
OS: Windows 7 Home Premium (Windows firewall off, Kaspersky firewall
on)
JDK: java 6 update 23 (64 bit JVM)
Eclipse Helios: 64 bit
GWT SDK : 2.1

I have installed the 32 bit jdk and in the run configurations I am
ensuring that the JVM that its running on is 32 bit.

The same thing works on my other PC running windows XP on a 32 bit
JVM.

I am not sure what I am doing wrong. Could someone please help...

Thanks
Sethu

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 and DAOs

2010-12-21 Thread Thomas Broyer


On Tuesday, December 21, 2010 1:25:18 PM UTC+1, Sebastian wrote:

 Further investigation has revealed that SimpleRequestProcessor call's 
 ServiceLayer#isLive() for every non-null domain object to check if 
 it's still there. Otherwise the write operation is set to DELETE. 
 IMO that's terrible: I don't want to do two entity manager/db lookups 
 for every find (even if it's aggressively cached). Using DAOs, I 
 don't even call remove() on my entities but on the DAO (and I call 
 removeById() -- I don't have a domain object in these situations!) 

 So providing a ServiceLayerDecorator with an overridden isLive() 
 method (returning always true) solves this part. But I still need the 
 findXxx method because of the check Henrik mentions (even if it's 
 never called). 

 I really appreciate the possibility to use DAOs and service locators 
 in 2.1.1 -- but unfortunately it's still not usable (for me). I don't 
 want data access methods in my domain models and I don't want 
 unnecessary db operations! And I don't want to provide a totally 
 redundant Locator for *every* domain model either... 

  

 Is there any way to avoid the check for the findXxx methods?


If you really want it, yes: override all the resolveXxx on a 
ServiceLayerDecorator to totally by-pass the stock ResolverServiceLayer 
(which calls the RequestFactoryInterfaceValidator).
See also: http://code.google.com/p/google-web-toolkit/issues/detail?id=5761
(method validated with the RequestFactoryMagic and InProcessRequestTransport 
in a unit-test; and deferred-binding generator does not look like it's 
making use of the validator)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 mobile

2010-12-21 Thread bruce
Can we use GWT for mobile web app development?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Plugin fails to connect to hosted mode server

2010-12-21 Thread Sethu
There isn't any. In the development mode, I dont see anything in red.
In the console of the started application there is nothing printed
either.  This is while running the sample project.
I have another project that I had developed which suffers from the
same problem. This project works fine on the PC that is running XP (32
bit). But when I move to the 64 bit win 7 machine, the server starts
up (i have a start up servlet that inialises stuff and logs to the
console). But when I go to the browser and try to connect, it throws
the failed to connect to the hosted mode error.
Actually, it fails to connect to any of the other servlets I had
written as well.


On Dec 21, 9:11 pm, a...@mechnicality.com a...@mechnicality.com
wrote:
 Please show us the stack trace

 Thanks

 - Reply message -
 From: Sethu writetose...@googlemail.com
 Date: Tue, Dec 21, 2010 2:36 am
 Subject: Plugin fails to connect to hosted mode server
 To: Google Web Toolkit google-web-toolkit@googlegroups.com

 Hi,

 When I try to run the GWTs sample application project in the hosted
 mode on chrome, the static parts of the page load and then it throws
 an error saying plug in fails to connect to the hosted mode web
 server.

 My system config is below:
 OS: Windows 7 Home Premium (Windows firewall off, Kaspersky firewall
 on)
 JDK: java 6 update 23 (64 bit JVM)
 Eclipse Helios: 64 bit
 GWT SDK : 2.1

 I have installed the 32 bit jdk and in the run configurations I am
 ensuring that the JVM that its running on is 32 bit.

 The same thing works on my other PC running windows XP on a 32 bit
 JVM.

 I am not sure what I am doing wrong. Could someone please help...

 Thanks
 Sethu

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread kevin

I need to write a method on a share class that only exists on the
server. Any change GWT has some way to annotate a method to be server-
side only?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Plugin fails to connect to hosted mode server

2010-12-21 Thread a...@mechnicality.com

Hmm...

Have you checked that port  (if that's what you are using) is blocked in 
the Windows firewall?

The times I've seen this there has been a networking problem such that the client can't reach the 
server. That would explain why it works on one m/c and not the other. I think the 32 bit vs 64 bit 
is a red herring - I use Win 7 X64 with a 64 bit JVM all the time and have no problems.


HTH

Alan


On 12/21/2010 8:37 AM, Sethu wrote:

There isn't any. In the development mode, I dont see anything in red.
In the console of the started application there is nothing printed
either.  This is while running the sample project.
I have another project that I had developed which suffers from the
same problem. This project works fine on the PC that is running XP (32
bit). But when I move to the 64 bit win 7 machine, the server starts
up (i have a start up servlet that inialises stuff and logs to the
console). But when I go to the browser and try to connect, it throws
the failed to connect to the hosted mode error.
Actually, it fails to connect to any of the other servlets I had
written as well.


On Dec 21, 9:11 pm, a...@mechnicality.coma...@mechnicality.com
wrote:

Please show us the stack trace

Thanks

- Reply message -
From: Sethuwritetose...@googlemail.com
Date: Tue, Dec 21, 2010 2:36 am
Subject: Plugin fails to connect to hosted mode server
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com

Hi,

When I try to run the GWTs sample application project in the hosted
mode on chrome, the static parts of the page load and then it throws
an error saying plug in fails to connect to the hosted mode web
server.

My system config is below:
OS: Windows 7 Home Premium (Windows firewall off, Kaspersky firewall
on)
JDK: java 6 update 23 (64 bit JVM)
Eclipse Helios: 64 bit
GWT SDK : 2.1

I have installed the 32 bit jdk and in the run configurations I am
ensuring that the JVM that its running on is 32 bit.

The same thing works on my other PC running windows XP on a 32 bit
JVM.

I am not sure what I am doing wrong. Could someone please help...

Thanks
Sethu

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



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@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: DockLayoutPanel and StackLayoutPanel problems in IE7

2010-12-21 Thread Alejandro D. Garin
Hi, I'm using the new layout panels and works very well for me. Can you make
a visual mock-up of your layout for the 5 levels?

thanks.

On Tue, Dec 21, 2010 at 1:00 PM, mike b mbaker.t...@gmail.com wrote:

 Also, this thread does not seem to be findable.

 When I search for DockLayoutPanel StackLayoutPanel IE7 only one
 result appears and its not this thread.

 Thanks,
 M

 On Dec 21, 10:46 am, mike b mbaker.t...@gmail.com wrote:
  So, I spent yesterday getting it to work in IE7 with unpredictable
  results. Basically, I used DockPanel in my Layer 4 (from above).
 
  This morning, re-re-reading the cryptic documentation on the website,
  I found that I had not inherited from ResizeComposite. This was
  actually plainly put, but I missed it somehow.  Note noted above is
  that all of my Layers are my classes with the various LayoutPanels
  in the initWidget().
 
  Now I'm having predictable success with implementing in FF.  However,
  I'm back to the same issue in IE7 nothing below Layer 4 will
  display.
 
  I'm also having to basically remove any VeritcalPanel or
  HorizontalPanels from the app if they use any widget w/ implemented in
  a div tag (like the ToggleButton) as the results are completely un-
  predictable.
 
  Does anyone know if upgrading to GWT 2.1.1 would help w/ this?
 
  Thanks!!
 
  On Dec 19, 10:49 pm, John LaBanca jlaba...@google.com wrote:
 
   If the LayoutPanels have an unbroken chain of ProvidesResize up to the
   RootLayoutPanel (as it looks like you've indicated they do), everything
   should work fine.  Can you provide a screen shot or a description of
 the
   actual error?  Or even better, a link?
 
   Thanks,
   John LaBanca
   jlaba...@google.com
 
   On Sun, Dec 19, 2010 at 10:52 AM, mike b mbaker.t...@gmail.com
 wrote:
 
Hopefully someone can help with this issue.  I hvae been working on
 it
for 3 days without success.  I am trying to get a StackLayoutPanel to
display inside a DockLayoutPanel.
 
GWT 2.1.0, mvp4g 1.2.0, GXT 2.2.1, standards mode, IE7
 
Its actually a bit more complex than that...
 
We have developed 4 stand alone modules that we are now integrating
into a 5th Navigation Module.  3 of the original modules are in GXT
and they display just fine.  The original GWT module was working
perfectly using DockPanel and StackPanel.  However, I'm being forced
to get rid of deprecation compiler warnings, so I need to move to
DockLayoutPanels and StackLayoutPanels.  Now, my original GWT package
no longer renders in IE7 when it is a child module to the Navigator.
The bizarre thing is that it works in FF 3.6.10, but NOT IE7.
 
I have searched the web extensively for a solution and have attempted
many things to get it working:
-set sizes on all panels
-set the same Unit types on all panels (using PX right now)
-using RootLayoutPanel (rather than RootPanel)
 
Frustratingly, my original GWT Module still works fine when its not a
child module to the Navigation module.
 
Here's how I'm using the panels...
 
Level 1 - Nav module - LayoutPanel (4 items, the 4th is a
DockLayoutPanel)
Level 2 - Nav module - DockLayoutPanel  (Center is another
DockLayoutPanel, South is reserved for other add-ons)
Level 3 - Child module - DockLayoutPanel (North is a TabBar, Center
 is
a DockLayoutPanel)
Level 4 - Child module - DockLayoutPanel (East has some widgets,
Center is a StackLayoutPanel)
Level 5 - Child module - StackLayoutPanel
   -each panel in the stack is a VerticalPanel or HorizontalPanel
containing lists, buttons, and text entry fields.
 
Strangely, when Level 4 and below is the old DockPanel and
StackPanels, it all works great.
 
Any ideas?  Thanks in advance
 
-mike
 
--
You received this message because you are subscribed to the Google
 Groups
Google Web Toolkit group.
To post to this group, send email to
 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this 

Re: Trying to split deserialization process after RPC call

2010-12-21 Thread Damien Picard
Thank you for your advices.

I think I will linearize the tree as a List by replacing the strong
reference link between an Option and its childs to a String meaning the id
(the id is an attribute) of the child options.

Then, I will serialize the option list to a json String with flexjson and
send it to the client over GWT-RPC.

On the client, I think that the json String deserialization will be done
quickly ; I've seen on StreamReader source code that the String
deserialisation does not lead to a lot of compute time because the HTTP
response is String itself. Then, I will deserialize this json String with
the eval() method, and I will try to map it to my Option type with a
JavaScript Overlay Types.

And, if there is a need to split deserialization into multiple deferred
command, I will split my json String into multiple json string before
evaluating this with eval(), and do the eval() on each sub-sequence json
string in a deferred command. Even if this split is not simple...

What do you think about this solution ?


2010/12/20 David Chandler drfibona...@google.com

 Following up on George's post, here's the DeRPC doc. You can find a
 little additional info by searching for DeRPC on the public issue
 tracker. DeRPC was created to help with large object graph
 serialization; however, DeRPC (NOT GWT-RPC) will likely be deprecated
 eventually in favor of RequestFactory.


 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideDeRPC
 http://code.google.com/p/google-web-toolkit/issues/list

 /dmc

 On Sun, Dec 19, 2010 at 3:43 AM, Damien Picard picard.dam...@gmail.com
 wrote:
  Hi,
 
  In a few words, I've got a problem with big object deserialization after
 an
  RPC call.
  On Internet Explorer, the browser ask me to interrupt the script because
 the
  deserialization process is too long.
 
  In fact, my RPC service returns a deep recursive tree, and some other
 data,
  where the Item is called Option :
 
  The generated FieldSerializer looks like :
 
  public static void
  deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader
  streamReader, Option instance) throws
  com.google.gwt.user.client.rpc.SerializationException{
  //The childs of this Option node, defining the tree
  setChildren(instance, (java.util.List) streamReader.readObject());
  //Some other atomic data
  (...)
 
}
 
  In my mind, the invocation of setChildren() involves that the childs
 Options
  are deserialized too. And, because of my tree is too deep, this
  deserialization process leeds to have a Would you like to interrupt the
  script ? in IE6/7.
 
  I think I could resolve this problem by adding a deferred command in this
  process :
 
  public static void
  deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader
  streamReader, Option instance) throws
  com.google.gwt.user.client.rpc.SerializationException{
  //The childs of this Option node, defining the tree
  Command c = new Command(){
  public void execute(){
 setChildren(instance, (java.util.List)
  streamReader.readObject());
  }
  }
  DeferredCommand.addPause();
  DeferredCommand.addCommand(c);
  //Some other atomic data
  (...)
 
}
 
  But, to do that, I have to modify the generator of this serializer, and
 i've
  not found where I can do that. So my questions are :
 
  Is it a good idea ?
  How can I modify /implement my own serializer generator for this tree ?
 
  P.S. : Furthermore, I will have to deal with asynchronism because of my
  deserialize method will returns before my tree will be totaly
 deserialized ;
  but I will work on this in a second step.
 
  Thank you.
 
  --
  Damien Picard
  Axeiya Services : http://axeiya.com/
  gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/
  Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html
 
  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 



 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 http://googlewebtoolkit.blogspot.com/

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




-- 
Damien Picard
Axeiya Services : http://axeiya.com/
gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/
Mon livre sur 

Re: Plugin fails to connect to hosted mode server

2010-12-21 Thread a...@mechnicality.com
Following my previous comment - you can easily check by using a windows command prompt and telnet 
, e.g.


telnet 127.0.0.1 

if the firewall is blocking it, you'll get a 'can't connect to server' error, otherwise the screen 
will go blank and you'll get a weird prompt (the gwt rpc connection doesn't print any kind of 
message.) Not very elegant, but its a quick and dirty check.


HTH again

Alan



On 12/21/2010 8:37 AM, Sethu wrote:

There isn't any. In the development mode, I dont see anything in red.
In the console of the started application there is nothing printed
either.  This is while running the sample project.
I have another project that I had developed which suffers from the
same problem. This project works fine on the PC that is running XP (32
bit). But when I move to the 64 bit win 7 machine, the server starts
up (i have a start up servlet that inialises stuff and logs to the
console). But when I go to the browser and try to connect, it throws
the failed to connect to the hosted mode error.
Actually, it fails to connect to any of the other servlets I had
written as well.


On Dec 21, 9:11 pm, a...@mechnicality.coma...@mechnicality.com
wrote:

Please show us the stack trace

Thanks

- Reply message -
From: Sethuwritetose...@googlemail.com
Date: Tue, Dec 21, 2010 2:36 am
Subject: Plugin fails to connect to hosted mode server
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com

Hi,

When I try to run the GWTs sample application project in the hosted
mode on chrome, the static parts of the page load and then it throws
an error saying plug in fails to connect to the hosted mode web
server.

My system config is below:
OS: Windows 7 Home Premium (Windows firewall off, Kaspersky firewall
on)
JDK: java 6 update 23 (64 bit JVM)
Eclipse Helios: 64 bit
GWT SDK : 2.1

I have installed the 32 bit jdk and in the run configurations I am
ensuring that the JVM that its running on is 32 bit.

The same thing works on my other PC running windows XP on a 32 bit
JVM.

I am not sure what I am doing wrong. Could someone please help...

Thanks
Sethu

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



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Applet Life Cycle not respected in IE browser family

2010-12-21 Thread shortpasta
I opened this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5788

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 mobile

2010-12-21 Thread Falcon
bruce, I currently am doing just that.

I'm having to make several of my own widgets as opposed to using some
of the built-in GWT widgets (and you may have to make your own
implementations of built-in widgets for certain platforms), and your
mobile targets will need decent JavaScript support (i.e. Blackberry 
4.6 isn't going to work) but it's definitely possible.

On Dec 21, 10:15 am, bruce bruce.gao@gmail.com wrote:
 Can we use GWT for mobile web app development?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: DockLayoutPanel and StackLayoutPanel problems in IE7

2010-12-21 Thread mike b
Gladly, the issue is solved... and its another user error.  It turns
out that I wasn't initializing the lowest level view before it was
attached to the Level 2 DockLayoutPanel.  I'm not sure why IE7 was
more picky about this FF.  ...but its working.




On Dec 21, 11:50 am, Alejandro D. Garin aga...@gmail.com wrote:
 Hi, I'm using the new layout panels and works very well for me. Can you make
 a visual mock-up of your layout for the 5 levels?

 thanks.

 On Tue, Dec 21, 2010 at 1:00 PM, mike b mbaker.t...@gmail.com wrote:
  Also, this thread does not seem to be findable.

  When I search for DockLayoutPanel StackLayoutPanel IE7 only one
  result appears and its not this thread.

  Thanks,
  M

  On Dec 21, 10:46 am, mike b mbaker.t...@gmail.com wrote:
   So, I spent yesterday getting it to work in IE7 with unpredictable
   results. Basically, I used DockPanel in my Layer 4 (from above).

   This morning, re-re-reading the cryptic documentation on the website,
   I found that I had not inherited from ResizeComposite. This was
   actually plainly put, but I missed it somehow.  Note noted above is
   that all of my Layers are my classes with the various LayoutPanels
   in the initWidget().

   Now I'm having predictable success with implementing in FF.  However,
   I'm back to the same issue in IE7 nothing below Layer 4 will
   display.

   I'm also having to basically remove any VeritcalPanel or
   HorizontalPanels from the app if they use any widget w/ implemented in
   a div tag (like the ToggleButton) as the results are completely un-
   predictable.

   Does anyone know if upgrading to GWT 2.1.1 would help w/ this?

   Thanks!!

   On Dec 19, 10:49 pm, John LaBanca jlaba...@google.com wrote:

If the LayoutPanels have an unbroken chain of ProvidesResize up to the
RootLayoutPanel (as it looks like you've indicated they do), everything
should work fine.  Can you provide a screen shot or a description of
  the
actual error?  Or even better, a link?

Thanks,
John LaBanca
jlaba...@google.com

On Sun, Dec 19, 2010 at 10:52 AM, mike b mbaker.t...@gmail.com
  wrote:

 Hopefully someone can help with this issue.  I hvae been working on
  it
 for 3 days without success.  I am trying to get a StackLayoutPanel to
 display inside a DockLayoutPanel.

 GWT 2.1.0, mvp4g 1.2.0, GXT 2.2.1, standards mode, IE7

 Its actually a bit more complex than that...

 We have developed 4 stand alone modules that we are now integrating
 into a 5th Navigation Module.  3 of the original modules are in GXT
 and they display just fine.  The original GWT module was working
 perfectly using DockPanel and StackPanel.  However, I'm being forced
 to get rid of deprecation compiler warnings, so I need to move to
 DockLayoutPanels and StackLayoutPanels.  Now, my original GWT package
 no longer renders in IE7 when it is a child module to the Navigator.
 The bizarre thing is that it works in FF 3.6.10, but NOT IE7.

 I have searched the web extensively for a solution and have attempted
 many things to get it working:
 -set sizes on all panels
 -set the same Unit types on all panels (using PX right now)
 -using RootLayoutPanel (rather than RootPanel)

 Frustratingly, my original GWT Module still works fine when its not a
 child module to the Navigation module.

 Here's how I'm using the panels...

 Level 1 - Nav module - LayoutPanel (4 items, the 4th is a
 DockLayoutPanel)
 Level 2 - Nav module - DockLayoutPanel  (Center is another
 DockLayoutPanel, South is reserved for other add-ons)
 Level 3 - Child module - DockLayoutPanel (North is a TabBar, Center
  is
 a DockLayoutPanel)
 Level 4 - Child module - DockLayoutPanel (East has some widgets,
 Center is a StackLayoutPanel)
 Level 5 - Child module - StackLayoutPanel
    -each panel in the stack is a VerticalPanel or HorizontalPanel
 containing lists, buttons, and text entry fields.

 Strangely, when Level 4 and below is the old DockPanel and
 StackPanels, it all works great.

 Any ideas?  Thanks in advance

 -mike

 --
 You received this message because you are subscribed to the Google
  Groups
 Google Web Toolkit group.
 To post to this group, send email to
  google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

 .
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  

Re: GWT for mobile

2010-12-21 Thread Sean
Just for poops and giggles I have tried my site out on my iPod Touch and I 
was surprised how much stuff works right out of the box. The one thing that 
I know doesn't work is Text Area, the iPhone doesn't realize it's a text 
input. I haven't tried to mess with it too much since this wasn't developed 
for mobiles, but a lot of stuff just works. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread Mauro Bertapelle
In the source tag of the module XML file you can specify the
subpackage associated with the classes you want GWT to compile.
You can even exclude some particular classes using a pattern based
filter:
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuidePathFiltering

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Exposing my GWT API via web/RESTful service - can it be done (easilyish)?

2010-12-21 Thread Sean
I have used GWTRPCCommLayer with much success. I have my normal GWT App on 
the web, and I also have a service running on my home PC that also calls 
some of my RPC functions to find status, keep things updated, etc., 

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



Re: google maps api

2010-12-21 Thread Eric Ayers
Did you see the Hello Maps sample from the AdsManager demo for the
gwt-google-apis version of the gwt-maps wrapper?

http://gwt.google.com/samples/hellomaps-1.1.0/HelloMaps.html#Ads%20Manager

On Mon, Dec 20, 2010 at 12:07 PM, pieceovcake bira...@gmail.com wrote:

 I'm using the google maps api to plot a point on a map.  Is there anyway to
 display adsense ads based the location?

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




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread A. Stevko
Are you referring to the  super-source tag for overriding one
implementation with another?


On Tue, Dec 21, 2010 at 9:41 AM, Mauro Bertapelle 
mauro.bertape...@gmail.com wrote:

 In the source tag of the module XML file you can specify the
 subpackage associated with the classes you want GWT to compile.
 You can even exclude some particular classes using a pattern based
 filter:

 http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuidePathFiltering

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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 Get Requests

2010-12-21 Thread bconoly
Ha, you caught me, but thanks that looks like it may be exactly what
we need.

On Dec 20, 5:02 pm, George Georgovassilis g.georgovassi...@gmail.com
wrote:
 To be precise, you haven't done _any_ research ;-)
 Try searching this group with RPC get [1]

 [1]https://groups.google.com/group/google-web-toolkit/search?group=googl...

 On Dec 20, 10:12 pm, bconoly bcon...@gmail.com wrote:

  Hey All,
     We're having issues with our apache servers, IE, and post requests
  currently and a solution that someone came up with was to change all
  GWT RPC requests in our apps to GET rather than POST requests.  To be
  honest I haven't done a lot of research into this but I was wondering
  if anyone knew off the top of their heads an easy way to do this?
  Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 Serialization Format

2010-12-21 Thread travemm
Perfect, thank you for pointing the way!

On Dec 21, 9:58 am, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 Following blog posts should help you pen test your app. They aren't my posts
 - but I have found them useful.

 *a) RPC Format - 
 *http://www.gdssecurity.com/l/b/2009/10/08/gwt-rpc-in-a-nutshell/
 *b) How RPC can be fuzzed* 
 -http://www.gdssecurity.com/l/b/2010/05/06/fuzzing-gwt-rpc-requests/
 *c) How to enumerate all RPC methods* 
 -http://www.gdssecurity.com/l/b/2010/07/20/gwtenum-enumerating-gwt-rpc...

 You may also want to read through
 de-gwthttp://code.google.com/p/degwt/wiki/HowDeGWTWorks
 .

 --Sri

 On 21 December 2010 11:03, travemm trav.e...@gmail.com wrote:

  Hi,

  I'm looking for details (references to code are fine) about how the
  rpc messages are formatted. I'm doing penetration testing for a
  client's GWT rpc servlets but cannot access their source or discuss
  with their developers (black/grey box testing).

  Looking at an rpc request it appears to be formated the following way:
  #|#|#|URL|StrongHash|Class_Name|Method_Name|ARG1_Class_name|
  ARG1_member1|...|ARG1_memberN|ARG2_Class_Name|ARG2_member1|...|
  ARG2_memberN|#|#|#|#.|#|#|#

  The first three #'s appear to be related to the request and number of
  args, not %100 sure on this relation.
  The last set of #s I'm very confused on what they do and mean.

  I have the following use case that will probably result in a
  successful penetration test for my client.

  A request to method M1 sends and object with all the fields set to
  NULL.
  A request to method M2 sends the same object and some additional
  objects, but with all the fields set to valid values.
  I need to create a request to M1 with the same object sent to M2.
  Since M2 also has additional arguments the RPC requests are rather
  different and it isn't straight forward for me.

  Of course through a hundred hours of reading GWT source I could figure
  this out, but hopefully there is something simpler. I can request a
  copy of the class file for the class I need to serialize and send to
  M1, if that will allow me to make the request to M1 using GWT
  interfaces.

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread kevin
I was hoping to do it within a class.

For instance, say have method a() only available on the server.


On Dec 21, 12:41 pm, Mauro Bertapelle mauro.bertape...@gmail.com
wrote:
 In the source tag of the module XML file you can specify the
 subpackage associated with the classes you want GWT to compile.
 You can even exclude some particular classes using a pattern based
 filter:http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrgan...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 debug service calls, which do not come through

2010-12-21 Thread cri
You are mostly likely trying to pass object from the server to the
client that are not serializable.

On Dec 21, 9:39 am, ghost23 sven.bu...@googlemail.com wrote:
 hi again,

 ok, my onFailure method was empty, never saw, what happened there. Now
 i see, that i
 have a serialization error. But it has no details about what the
 concrete problem is.

 On Dec 21, 4:09 pm, ghost23 sven.bu...@googlemail.com wrote:







  Hi,

  i am using the newest version of GWT. I have a service with a bunch of
  methods. Some work, some don't. The one,
  that does not work, seems simply not being called on the server side.
  If i put a breakpoint in the method of the service implementation
  on the server side, it doesn't get called. But the AsyncCallback is
  created on the client side.

  Unfortunately there is no exception or anything being thrown. Do you
  have any tips, how i could debug this?

  Thank you and cheers
  Sven

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread a...@mechnicality.com

Sorry for jumping in, but you could use:

public void yourMethod(...) {
   if (!GWT.isClient()) {
everything in your method.
}

}

The complier should then ignore everything inside the conditional.

However, it seems a bit of a kludge to exclude the whole method. Another option is sub-classing and 
have a server-side version which is a sub-class of your shared class - I've done that before and 
IMHO its a bit more elegant.


HTH

Alan




On 12/21/2010 10:36 AM, kevin wrote:

I was hoping to do it within a class.

For instance, say have method a() only available on the server.


On Dec 21, 12:41 pm, Mauro Bertapellemauro.bertape...@gmail.com
wrote:

In thesource  tag of the module XML file you can specify the
subpackage associated with the classes you want GWT to compile.
You can even exclude some particular classes using a pattern based
filter:http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrgan...



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

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



Re: Trying to split deserialization process after RPC call

2010-12-21 Thread A. Stevko
Wow Damien - I like it. Thanks for the tips.

On Tue, Dec 21, 2010 at 8:50 AM, Damien Picard picard.dam...@gmail.comwrote:

 Thank you for your advices.

 I think I will linearize the tree as a List by replacing the strong
 reference link between an Option and its childs to a String meaning the id
 (the id is an attribute) of the child options.

 Then, I will serialize the option list to a json String with flexjson and
 send it to the client over GWT-RPC.

 On the client, I think that the json String deserialization will be done
 quickly ; I've seen on StreamReader source code that the String
 deserialisation does not lead to a lot of compute time because the HTTP
 response is String itself. Then, I will deserialize this json String with
 the eval() method, and I will try to map it to my Option type with a
 JavaScript Overlay Types.

 And, if there is a need to split deserialization into multiple deferred
 command, I will split my json String into multiple json string before
 evaluating this with eval(), and do the eval() on each sub-sequence json
 string in a deferred command. Even if this split is not simple...

 What do you think about this solution ?


 2010/12/20 David Chandler drfibona...@google.com

 Following up on George's post, here's the DeRPC doc. You can find a
 little additional info by searching for DeRPC on the public issue
 tracker. DeRPC was created to help with large object graph
 serialization; however, DeRPC (NOT GWT-RPC) will likely be deprecated
 eventually in favor of RequestFactory.


 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideDeRPC
 http://code.google.com/p/google-web-toolkit/issues/list

 /dmc

 On Sun, Dec 19, 2010 at 3:43 AM, Damien Picard picard.dam...@gmail.com
 wrote:
  Hi,
 
  In a few words, I've got a problem with big object deserialization after
 an
  RPC call.
  On Internet Explorer, the browser ask me to interrupt the script because
 the
  deserialization process is too long.
 
  In fact, my RPC service returns a deep recursive tree, and some other
 data,
  where the Item is called Option :
 
  The generated FieldSerializer looks like :
 
  public static void
  deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader
  streamReader, Option instance) throws
  com.google.gwt.user.client.rpc.SerializationException{
  //The childs of this Option node, defining the tree
  setChildren(instance, (java.util.List) streamReader.readObject());
  //Some other atomic data
  (...)
 
}
 
  In my mind, the invocation of setChildren() involves that the childs
 Options
  are deserialized too. And, because of my tree is too deep, this
  deserialization process leeds to have a Would you like to interrupt the
  script ? in IE6/7.
 
  I think I could resolve this problem by adding a deferred command in
 this
  process :
 
  public static void
  deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader
  streamReader, Option instance) throws
  com.google.gwt.user.client.rpc.SerializationException{
  //The childs of this Option node, defining the tree
  Command c = new Command(){
  public void execute(){
 setChildren(instance, (java.util.List)
  streamReader.readObject());
  }
  }
  DeferredCommand.addPause();
  DeferredCommand.addCommand(c);
  //Some other atomic data
  (...)
 
}
 
  But, to do that, I have to modify the generator of this serializer, and
 i've
  not found where I can do that. So my questions are :
 
  Is it a good idea ?
  How can I modify /implement my own serializer generator for this tree ?
 
  P.S. : Furthermore, I will have to deal with asynchronism because of my
  deserialize method will returns before my tree will be totaly
 deserialized ;
  but I will work on this in a second step.
 
  Thank you.
 
  --
  Damien Picard
  Axeiya Services : http://axeiya.com/
  gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/
  Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html
 
  --
  You received this message because you are subscribed to the Google
 Groups
  Google Web Toolkit group.
  To post to this group, send email to
 google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 



 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 http://googlewebtoolkit.blogspot.com/

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 

Re: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread John LaBanca
The GWT compiler performs dead code elimination, so if you never call the
code from the client, it will not be compiled into javascript.  You can
create your own annotation if you want to annotate the method so other
people on your team know not to use it.

If you want the API to be technically correct, you could create a common
base class in your shared package and subclass it in your client and/or
server packages.
com.myapp.shared.CommonUtils
com.myapp.client.CommonClientUtils extends CommonUtils
com.myapp.server.CommonServerUtils extends CommonUtils


Thanks,
John LaBanca
jlaba...@google.com


On Tue, Dec 21, 2010 at 1:43 PM, a...@mechnicality.com 
a...@mechnicality.com wrote:

 Sorry for jumping in, but you could use:

 public void yourMethod(...) {
   if (!GWT.isClient()) {
everything in your method.
}

 }

 The complier should then ignore everything inside the conditional.

 However, it seems a bit of a kludge to exclude the whole method. Another
 option is sub-classing and have a server-side version which is a sub-class
 of your shared class - I've done that before and IMHO its a bit more
 elegant.

 HTH

 Alan





 On 12/21/2010 10:36 AM, kevin wrote:

 I was hoping to do it within a class.

 For instance, say have method a() only available on the server.


 On Dec 21, 12:41 pm, Mauro Bertapellemauro.bertape...@gmail.com
 wrote:

 In thesource  tag of the module XML file you can specify the
 subpackage associated with the classes you want GWT to compile.
 You can even exclude some particular classes using a pattern based
 filter:
 http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrgan...



 --
 Alan Chaney
 CTO and Founder, Mechnicality, Inc.
 www.mechnicality.com


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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread A. Stevko
I agree- if (!GWT.isClient()) {} is definitely going to be optimized out of
the js.

Even if you could mask out an entire method, how would you handle the server
side only includes needed to make it interesting?


On Tue, Dec 21, 2010 at 10:43 AM, a...@mechnicality.com 
a...@mechnicality.com wrote:

 Sorry for jumping in, but you could use:

 public void yourMethod(...) {
   if (!GWT.isClient()) {
everything in your method.
}

 }

 The complier should then ignore everything inside the conditional.

 However, it seems a bit of a kludge to exclude the whole method. Another
 option is sub-classing and have a server-side version which is a sub-class
 of your shared class - I've done that before and IMHO its a bit more
 elegant.

 HTH

 Alan





 On 12/21/2010 10:36 AM, kevin wrote:

 I was hoping to do it within a class.

 For instance, say have method a() only available on the server.


 On Dec 21, 12:41 pm, Mauro Bertapellemauro.bertape...@gmail.com
 wrote:

 In thesource  tag of the module XML file you can specify the
 subpackage associated with the classes you want GWT to compile.
 You can even exclude some particular classes using a pattern based
 filter:
 http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrgan...



 --
 Alan Chaney
 CTO and Founder, Mechnicality, Inc.
 www.mechnicality.com


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




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread kevin

Yes. I agree it will be optimized out but the problem is I need to use
a class thats only on the server. So the compiler says the class is
not in a module.



On Dec 21, 1:43 pm, a...@mechnicality.com a...@mechnicality.com
wrote:
 Sorry for jumping in, but you could use:

 public void yourMethod(...) {
     if (!GWT.isClient()) {
          everything in your method.
      }

 }

 The complier should then ignore everything inside the conditional.

 However, it seems a bit of a kludge to exclude the whole method. Another 
 option is sub-classing and
 have a server-side version which is a sub-class of your shared class - I've 
 done that before and
 IMHO its a bit more elegant.

 HTH

 Alan

 On 12/21/2010 10:36 AM, kevin wrote:

  I was hoping to do it within a class.

  For instance, say have method a() only available on the server.

  On Dec 21, 12:41 pm, Mauro Bertapellemauro.bertape...@gmail.com
  wrote:
  In thesource  tag of the module XML file you can specify the
  subpackage associated with the classes you want GWT to compile.
  You can even exclude some particular classes using a pattern based
  filter:http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrgan...

 --
 Alan Chaney
 CTO and Founder, Mechnicality, Inc.www.mechnicality.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



Writing to an XML file

2010-12-21 Thread Sebe
Hello everyone,
I'm new in GWT, and I can not solve a problem. I can not write to an
XML file. I tried to look at the documentation but I did not
understand much.
Someone can give me a hand?
Thank you for your cooperation!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Documentation 'Getting started with RequestFactory' is missing the 'inherits' point

2010-12-21 Thread Charles Joynson
Additional servlet mappings are required as well.

See http://code.google.com/p/google-web-toolkit/issues/detail?id=5787

On Nov 23, 4:47 am, Eric ericbo...@gmail.com wrote:
 What about servlet mappings in web.xml ?
 I'm looking at the expenses example and the web.xml contains entries
 for few servlets.
 Do we have to add the servlet mappings as well ?

 On Nov 23, 8F:21 am, Berzehk berz...@gmail.com wrote:







  It should mention the gwt.app.xml file should contain :
    inherits name='com.google.gwt.requestfactory.RequestFactory' /
  to work correctly. There is no mention of it in the document.. It's
  only appearing in the dynatablerf example.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Junk characters in response payload

2010-12-21 Thread Thomas Broyer
See http://twitter.com/welkaim/status/11129636918398976 (the goo.gl link 
points to a PowerPoint presentation)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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.



De-selecting a CellTable or CellView

2010-12-21 Thread Frank Mena
Looks like some of the behavior of CellTable and CellList has changed
between v2.1.0 and 2.1.1.

When you initially add data now, no item is selected.  After any item
is selected, there is no way to replace all the data in the table or
list without it also selecting the first item.  There is no method I
could find to do this.

If I replace the contents of the table, I do not want any item
selected automatically or I need a method that lets me turn this off.
Currently, the only way I can prevent this is to set
KeyboardSelectionPolicy to DISABLED.

Is there a way to disable auto-selection or to turn off a selection?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: RequestFactory entity proxies can't be cloned.

2010-12-21 Thread Thomas Broyer
IIUC, you should use 2 distinct RequestContext, creating a new 
RequestContext each time you open the dialog box. That way, when the use 
clicks cancel, you simply let the RequestContext be garbage collected, and 
any changes made to the object being scoped to a RequestContext would go 
away with it.
And of course, to make sure your object isn't already edited by your main 
editor (which would cause a crossing streams error if you try to edit it 
again in another RequestContext), if you display it here, make sure you 
annotate the editor with @Ignore and use a specific EditorDriver for the 
sub-editor where you'd do a display() instead of edit().

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: De-selecting a CellTable or CellView

2010-12-21 Thread John LaBanca
The logic changed slightly from 2.1.0 to 2.1.1 to try to make it respond
more naturally to use input, but there are a lot of special use cases.  Just
to make sure I understand correctly, this only happens when the
KeyboardSelectionPolicy is set to BOUND_TO_SELECTION and you remove the
selected item?  If you replace the data, but include the originally selected
item, it should remain selected.

It makes sense that if the selected item is lost, we should not reselect a
new item.  I created an issue to track this:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5790

Thanks,
John LaBanca
jlaba...@google.com


On Tue, Dec 21, 2010 at 2:12 PM, Frank Mena frankm...@gmail.com wrote:

 Looks like some of the behavior of CellTable and CellList has changed
 between v2.1.0 and 2.1.1.

 When you initially add data now, no item is selected.  After any item
 is selected, there is no way to replace all the data in the table or
 list without it also selecting the first item.  There is no method I
 could find to do this.

 If I replace the contents of the table, I do not want any item
 selected automatically or I need a method that lets me turn this off.
 Currently, the only way I can prevent this is to set
 KeyboardSelectionPolicy to DISABLED.

 Is there a way to disable auto-selection or to turn off a selection?

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 , HelloMVP (Google provided example illustrating Activities Places) : Compile error. Stacktrace enclosed.

2010-12-21 Thread zixzigma
are you suggesting we need to compile our custom annotations before
compiling other classes that use them ?

is this always the case ? or only if relying on generators ?


I encountered this problem when I defined my custom annotations,
which I used in conjunction with GIN BindingAnnotation.
and sometimes at initialization, I was getting exceptions,
suggesting the Annotations cannot be found, despite them being in
classpath.
(I noticed if I mvn clean, this happens, but on second run, it was
fine)

The annotations were not doing anything special,
just as markers for GIN Binding Annotations.


I thought it was Eclipse/Maven plugin problem, when I switched to
IntelliJ, everything worked just fine.
do you think the problem I had is related to scenario you described ?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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 2.1.1 RequestFactory Strange Exception

2010-12-21 Thread zixzigma

On Dec 21, 6:25 am, Matt Moriarity matt.moriar...@gmail.com wrote:

 But in order to get your static service methods (besides just the find
 method), you need a ServiceLocator for your service:


do all these methods have to be static ?
I thought the idea behind 2.1.1 was to get rid of static ?


I am a bit confused on what is meant by the term service methods.

Normally we have a Service Layer, and a Data Access Layer

Data Access Layer (all the DAOs), responsible for communicating with
persistent stores to find objects of a given type

findCustomerById, ByEmail, AllCustomers, AllCustomersWithCriteriaX
all of this goes into CustomerDAO

then you need a Service Layer, that uses many of these DAOs to satisfy
a use case.
PersonService, might use PersonDAO, AccountDAO, and more ..., performs
a business logic on them and take some action.

in RequestFactory 2.1.1, do you think the ServiceLayer and
ServiceLocator is just
for locating the DAOs or the Service objects as I described ?
(because in RequestFactory 2.1 even the DataAccess (DAOs) where inside
Entity class.

to achieve the complete isolation we need a ServiceLayer +
DataAccessLayer on top of our Entities.

with RF 2.1.1, can we specify just the Service method in GWT, and
leaving the job of dealing with DAOS to the Service object ?







 @ProxyFor(value = Person.class, locator = PersonLocator.class)

 then having a PersonLocator which implements LocatorPerson would fix this
 for you.

 @Service(value = PersonService.class, locator = MyServiceLocator.class)

 I'm not sure if the locator for the service is necessary if it has a default
 constructor. We use Spring, so we have a service locator that just pulls the
 bean out of spring.


I am planning to use it with Spring too.

in your case (spring), you need all 4 attributes ?

on PersonProxy we use @ProxyFor(EntityObject, EntityLocator)

on PersonService we use @Service(ServiceObject, ServiceObjectLocator)

so the EntityLocator is the DAO ? and ServiceLocator queries spring
context
to find the Service method to handle the EntityLocator ?

yet, all of these methods have to be static ?

Thank You

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread a...@mechnicality.com
Then you have to go the 'subclass' route - create a common (shared) interface and have 
implementations for server and client
You can superclass the common parts into a 'shared' (probably abstract) class.  Solves the service 
side import issues.


I've done that several times and it works just fine. It may even simplify your 
unit tests.

Alan


On 12/21/2010 11:05 AM, kevin wrote:

Yes. I agree it will be optimized out but the problem is I need to use
a class thats only on the server. So the compiler says the class is
not in a module.



On Dec 21, 1:43 pm, a...@mechnicality.coma...@mechnicality.com
wrote:

Sorry for jumping in, but you could use:

public void yourMethod(...) {
 if (!GWT.isClient()) {
  everything in your method.
  }

}

The complier should then ignore everything inside the conditional.

However, it seems a bit of a kludge to exclude the whole method. Another option 
is sub-classing and
have a server-side version which is a sub-class of your shared class - I've 
done that before and
IMHO its a bit more elegant.

HTH

Alan

On 12/21/2010 10:36 AM, kevin wrote:


I was hoping to do it within a class.
For instance, say have method a() only available on the server.
On Dec 21, 12:41 pm, Mauro Bertapellemauro.bertape...@gmail.com
wrote:

In thesourcetag of the module XML file you can specify the
subpackage associated with the classes you want GWT to compile.
You can even exclude some particular classes using a pattern based
filter:http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrgan...

--
Alan Chaney
CTO and Founder, Mechnicality, Inc.www.mechnicality.com



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@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: RequestFactory entity proxies can't be cloned.

2010-12-21 Thread Matt Moriarity
I can kind of see how your proposed solution would work, and I guess that 
could be done if necessary. I was trying to use separate request contexts, 
and got the aforementioned crossing streams error, but I was editing the 
whole document.

The solution you suggest is hardly ideal though, so I'm wondering if someone 
has another idea.

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



  1   2   >