Re: Cannot run GWT starter application

2010-12-21 Thread sunitkatkar
Its a problem if you run in Chrome latest version. See this thread,

http://stackoverflow.com/questions/4454939/google-web-toolkit-starter-application-not-working

On Dec 15, 9:35 pm, Chris  wrote:
> Hello All,
>
> I am trying to set Google Web Toolkit up on my system and have been
> following the guide 
> athttp://code.google.com/webtoolkit/doc/latest/tutorial/create.html
> to get some experience with the system. I have had some problems
> though. When I run the program in development mode the page takes
> close to 10 seconds to load, and the send button does not do anything.
>
> The output of the console is
>
> Initializing AppEngine server
> Logging to JettyLogger(null) via
> com.google.apphosting.utils.jetty.JettyLogger
> Successfully processed D:\Chris\Documents\My Dropbox\workspace
> \StockWatcher\war\WEB-INF/appengine-web.xml
> Successfully processed D:\Chris\Documents\My Dropbox\workspace
> \StockWatcher\war\WEB-INF/web.xml
> The server is running athttp://localhost:/
> [WARN] No file found for: /favicon.ico
>
> And the output of the "Development Mode" is
>
> [WARN] [stockwatcher] JSNI method
> '@com.google.gwt.user.client.impl.windowimpl::initWindowCloseHandler()'
> returned a value of type JavaScript object(9) but was declared void;
> it should not have returned a value at all
>
> [WARN] [stockwatcher] JSNI method
> '@com.google.gwt.user.client.impl.domimplstandard::initEventSystem()'
> returned a value of type JavaScript object(193) but was declared void;
> it should not have returned a value at all
>
> Any ideas about what is causing these problems and how to fix them? I
> know that I can add a file "favicon.ico" to \war to take care of the
> one warning, but I havn't had any luck with the others.
>
> I have experienced the problem on both Eclipse 3.6 and 3.6 (I
> uninstalled and reinstalled both Eclipse and the plugin/SDK's). I am
> running Windows 7 Professional x64.
>
> Note: Using the same tutorial on my laptop (Ubuntu 10.10 32 bit)
> everything works great.

-- 
You received 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 force Spring to intercept RequestFactoryServlet

2010-12-21 Thread zixzigma
the default URL for RequestFactoryServlet is /gwtRequest.

I have configured Spring, I have ContextLoaderListener and
DispatcherServlet,
they suppose to be the first to get initialized (bootstrapping
application context)

however, I notice GWT client connects "directly" to /gwtRequest

is there anyway to change this behaviour ?

I think about writing a Filter, but when the DispatcherServlet is not
invoked,
probably neither will the Servlet Filter.

I have conducted my experiments in test environment with JRE and
GWTTestCase,
in both cases the Server call is directly to the
RequestFactoryServlet,
and Spring's DispatcherServlet is completely ignored.

why is that, and how to change it ?

especially when adding Spring security filter.

if running in production mode, it might work,
because it would be within the container i guess, but I am not sure.

I would like to see some suggestions and feedback on this.

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: rest / json command pattern implementation project

2010-12-21 Thread zixzigma
Thank you Raphael,
What a great project.

can you please explain some of your stragies
for implementing "caching" and "batching" ?

some tips/high level overview of how you are going to design them ?

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.



can AutoBean detect changes ?

2010-12-21 Thread zixzigma
can AutoBean detect changes made to an object ?
(the same way EntityProxy/RF work?)

lets say a Widget presents a list of items to a user, to edit,
user starts editing only one or two field out of 10 fields.
can AutoBean detect the fields that have been changed,
so that only the changes are sent to the server for update ?

or is it only an encoder/decoder from JSON to Bean like objects and
vice versa ?

-- 
You received 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, entityproxy has reference is always null

2010-12-21 Thread Mike
hi all:
suppose we have two entity proxy that has an reference relationship:
class AProxy
{
BProxy getBproxy();
}
class Bproxy
{
   String getName();
...
}

in UI, there is a list table used to display Aproxy,  one column is 
BproxyName, but it is always null. seem when i fetch all A Entity in server 
side, it can also fetch B entity, but at the client side, getBproxy() just 
return null.
how can i solve this problem?
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: Append child Widget to parent Widget.. !! click handler of child Widget is not working .. ??

2010-12-21 Thread Santosh kumar
Hi, Amir

Thank you for your reply ... !!
Its working. i just added the code *RootPanel.get("divId").add(simplePanel);
*

  Button button = new Button();
  button.getElement().setAttribute("id", "buttonId");
  SimplePanel simplePanel = new SimplePanel();
  simplePanel.getElement().setAttribute("id", "childPanelId");
  FlexTable flexTable = new FlexTable();
  Button buttonInFlexTable = new Button();
  buttonInFlexTable.addClickHandler(new ButtonInFlexTableHandler());
  flexTable.setWidget(0, 0, buttonInFlexTable);
  simplePanel.add(flexTable);
  *RootPanel.get("divId").add(simplePanel);*

DOM.getElementById("buttonId").getParentElement().appendChild(simplePanel.getElement());


On Sat, Dec 18, 2010 at 12:53 PM, Santosh kumar  wrote:

> Hi,
>
> Button button = new Button();
> button.getElement().setAttribute("id", "buttonId");
> SimplePanel simplePanel = new SimplePanel();
> simplePanel.getElement().setAttribute("id", "childPanelId");
> FlexTable flexTable = new FlexTable();
> Button buttonInFlexTable = new Button();
> buttonInFlexTable.addClickHandler(new ButtonInFlexTableHandler());
> flexTable.setWidget(0, 0, buttonInFlexTable);
> simplePanel.add(flexTable);
>
> DOM.getElementById("buttonId").getParentElement().appendChild(simplePanel.getElement());
> -
> -
> -
> -
> public class ButtonInFlexTableHandler implements ClickHandler {
>
>   @Override
>   public void onClick(ClickEvent event) {
> Window.alert("Hello ..!");
>   }
> }
>
> According to this code, it should display the window alert message. But
> onClick of buttonInFlexTable button is not working !!
>
> Please, any help is appreciated .. Thank you ..!!
>
>
> --
> Thanks & Regards
>
> *S a n t o s h  k u m a r . k
>
> *
>



-- 
Thanks & Regards

*S a n t o s h  k u m a r . k

*

-- 
You received 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 zixzigma
Two great open-source projects I came across today are:

RestyGWT
http://restygwt.fusesource.org/documentation/index.html

GWT-JSON-CommandPattern
http://code.google.com/p/gwt-json-commandpattern/

they are pretty straight forward with clean API.

-- 
You received 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 Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-12-21 Thread zixzigma
similar problem, dating back to 2006 !
http://maven.40175.n5.nabble.com/Keep-getting-quot-Class-not-found-quot-when-running-debugging-JUnit-tests-td133309.html

there are many more, still unresolved !

-- 
You received 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 Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-12-21 Thread zixzigma
I had similar problem like Chris.

the problem was Eclipse/M2Eclipse conflict.

M2EClipse would overwrite Eclipse classpath, and
things would work and stop working at random.
especially after mvn clean.

It also affects JUnit,
if you google Eclipse Maven JUnit ClassNotFound,
you come across many issues that are still open

this is nothing new, many posts dating back to 2008 with the same
problem.
many hacks were proposed and I tried them all for two days,
with no luck, I then switched to IntelliJ and everything worked just
fine right away.

the reason I kept pushing for two days to make Eclipse work,
was to take advantage of CodePro Analytix, but unfortunately it is
only available for Eclipse,
and Clover by Atlassian is , well, pricey :")


http://jira.codehaus.org/browse/MECLIPSE-132
https://issues.sonatype.org/browse/MNGECLIPSE-2121
http://rbtech.blogspot.com/2009/09/eclipse-galileo-javalangclassnotfoundex.html
http://blog.andrewbeacock.com/2008/11/classnotfoundexception-when-running.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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-12-21 Thread Chris


On Nov 28, 2:38 pm, Rajeev Dayal  wrote:

> Yes, such resources will be wiped out. What's actually happening here is
>
> that GPE is using WTP's "smart publish" functionality to publish J2EE
> modules  to the target/ directory.
>
> So, in the source of launching, GPE performs a WTP publish. The WTP publish
> will copy any J2EE modules that it knows about over to the target/
> directory, which means that all of your resources in src/main/webapp will be
> copied over properly. If you're got Maven's integration with WTP installed,
> then the target/WEB-INF/lib directory will contain all of the libraries that
> are in the runtime scope which are defined in your pom.xml file.
>
> However, the publish is a "smart" one - so if any resources to be published
> already exist in the target/ directory and are unchanged, the copy of that
> file is not performed. In addition, if any resources are found in the
> target/ directory that the publisher did not mean to create, then they are
> deleted.
>
> In the next version of GPE, I think we'll consider either:
>
> 1) Allow the user to specify which folders should remain untouched during a
> smart publish
> 2) Switch over to a "full publish" - that will leave resources that are
> unknown alone.
>

Hi Rajeev, after working with Eclipse, Maven, and GPE 1.4 I've noticed
a few more things:

I'm now working with STS 2.5 (and ... some GWT) and Maven, and I'm
still running into the same problem.   My original problem seems to be
more of a Maven/Eclipse interaction issue.  Eclipse-clean !=
mvn:clean, and sometimes publishing an app to a Spring tc server in
Eclipse (and, btw, to the Jetty server in GPE) it fails to copy over
resources in target/ that mvn:package is supposed to copy over.

Lesson learned: be sure if you ever do a mvn:clean to do an Eclipse
project clean, and rebuild from Eclipse (and a GWT compile) before
doing a mvn:package .  This should keep the two environments in sync,
and the right things should copy over.

I'd rather not suffer a 12-permutation (&tc) GWT compile if I don't
have to, so I hope your recommendations bear fruit.

Thanks,
- C

-- 
You received 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: Return permutation directly from the server without selection script.

2010-12-21 Thread Matthew Hill
Okay, but now what?

How do I get the GWT compiler to produce a single JS file per permutation 
which can be embedded without a selection script?

e.g. 

Re: Starting GWT dev mode within Eclipse causes Maven-managed resources to disappear

2010-12-21 Thread Chris
On Nov 30, 11:05 am, Thomas Broyer  wrote:
> On 30 nov, 16:42, Thomas Broyer  wrote:
>
> > I just faced that very same issue, and a coworker too!
>
> Forgot to precise: I'm on Win XP Pro SP3, my coworker is on Ubuntu
> 10.10; same configuration otherwise (Eclipse, m2eclipse, GPE)



> NullPointerException. I re-start the server, launch the DevMode:
> exception still there!
> Restarting Eclipse fixes it.

I'm now working with STS 2.5 (and ... some GWT) and Maven, and I'm
still running into the same problem.   My original problem seems to be
more of a Maven/Eclipse interaction issue.  Eclipse-clean !=
mvn:clean, and sometimes publishing an app to a Spring tc server in
Eclipse fails to copy over resources in target/ that mvn:package
is supposed to copy over.

Lesson learned: be sure if you ever do a mvn:clean to do an Eclipse
project clean, and rebuild from Eclipse before doing a mvn:package
(and GWT compile, if stale).  This should keep the two environments in
sync, and the right things should copy over.

-- 
You received 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: Last eclipse plugin update bugs

2010-12-21 Thread Gal Dolber
I finally discover where the problem came from!!

It is coming from GwtDesignerPlugin. After uninstalling all works ok.

Sorry about the bad advertising...

On Mon, Dec 20, 2010 at 5:47 AM, Gal Dolber  wrote:

> Had to split my projects in two... one for the main code and one for the
> tests :S.
> I still don't understand why the plugin's code isn't open source, I will
> love to put hands on it
>
>
> On Mon, Dec 20, 2010 at 5:01 AM, Thomas Broyer  wrote:
>
>> Oh, you're right, it's not fixed in 1.4.1 (I had "build automatically"
>> unchecked last time, I think that's why GPE didn't flag the classes as "in
>> error").
>> And yes, there's no switch, and it's a bit annoying!
>>
>> --
>> You received 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.
>>
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>


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



HTML Link Cell

2010-12-21 Thread GregD
I would like to create a Column of Cells (for a CellTable) where each
cell displays an HTML link (the link will send information to an
application running on the user's machine (the app is IGV)) that it
gets from the row data.

Can SafeHtml be used for such a link?

Should I extend SafeHtmlCell, or do I need to extend AbstractCell?

TIA,

Greg

-- 
You received 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: Overlay types implementing server side model interfaces

2010-12-21 Thread Javier

Any hints on this topics?

I read on another post (http://groups.google.com/group/google-web-
toolkit/browse_thread/thread/483ba17ccc5eb639/4b5bac6a2c69f309?
hl=en&lnk=gst&q=Overlay+types+implementing+server+side
+model#4b5bac6a2c69f309) that "there's work in progress to add a
"lightweight
collections" module to GWT: compiles to much lighter weight JS code
than java.util.* collections and are still usable in a JVM (unlike
JsArray). "

-- 
You received 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
Hi Alan,

Thanks for helping..

I tried telnetting and it was successful. I tried  and I got a
blank screen. I also tried 9997 and I got some weird characters
printed on the screen.
I tried deleting the directories under the war created by GWT,
restarted the server - same response
I tried deleting the classes under web-inf, restarted the server -
same response

I changed the debug level to All and got a warning saying no
favicon.ico. I put an icon file in there and then I got a 200. The
icon also appears on the tab image on Chrome. But the plugin fails to
connect never goes!

Sethu

On Dec 21, 9:50 pm, "a...@mechnicality.com" 
wrote:
> 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.com"
> > wrote:
> >> Please show us the stack trace
>
> >> Thanks
>
> >> - Reply message -
> >> From: "Sethu"
> >> Date: Tue, Dec 21, 2010 2:36 am
> >> Subject: Plugin fails to connect to hosted mode server
> >> To: "Google Web Toolkit"
>
> >> 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: Working Example of TabLayoutPanel with UIBinder?

2010-12-21 Thread starmandell
hi, i was wondering if you could help me. you wrote the code...


> > In your example just do this:
>
> >
> > 
> > test
> > 
> >
> >
> > 
> > 
> > 

and i have just that. but i keep getting a runtime exception when im debugging.
this is the exact code i have


http://dl.google.com/gwt/DTD/xhtml.ent";>
 
 
  


  
 test
 


 
 
 
 


it says...[ERROR] Generator 'com.google.gwt.uibinder.rebind.UiBinderGenerator'
threw an exception while rebinding[directory and filename ]
-- exception: DOMException

ive been stuck at this for so long. i really have no idea what to do.
im very new to this gwt. im trying to make a multiple tabbed panel.
thank you so much.


Paul Stockley  writes:

> 
> I was going to also suggest you make sure you add it to the
> RootLayoutPanel. However, I thought the documentation was pretty clear
> on this. You can add a TabLayoutPanel to something other than the
> RootLayoutPanel as long as you set an explicit size on the
> TabLayoutPanel. This is very useful if you want to add tabs in a
> DialogBox.
> 




-- 
You received 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 Frank Mena
Thanks for the workaround.  It only works if you override the
setRowData() method with the following body:


setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);
super.setRowData(start, values);
Scheduler.get().scheduleDeferred(new ScheduledCommand()
{

  @Override
  public void execute()
  {

 
setKeyboardSelectionPolicy(KeyboardSelectionPolicy.BOUND_TO_SELECTION);
  }
});


On Dec 21, 11:24 am, John LaBanca  wrote:
> 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  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.com > 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.



Re: GWT 2.1.1 RequestFactory Strange Exception

2010-12-21 Thread zixzigma
Thank you, it all makes sense now.

However what you described is how GWT RF uses those details
to do its magic behind the scenes.

I am not clear what our responsibility is then ?
What should go inside the Locator ?

>From the code I posted,
http://paste.pocoo.org/show/308153/

I don't know what I should put in there.

I have a ServiceLocator ( one per application),
that locates Services. those Services are independent from GWT RF,
they can connect to persistent stores, do whatever they want.
and return a retult/perform action that is expected by RequestContext.

and what you described for Locators
@ProxyFor(value=PersonEntity, locator=EntityLocator)
public interface PersonProxy {


from your explanation I understood why Locator is important,
but what should we/the developers put in it ?
and do we need one per Entity or one per Application ?

sorry I repeated myself, I am still a bit confused :" )

-- 
You received 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
I've implemented onUnload to call removeHandler for the HandlerRegistration
instance returned from SimpleEventBus.addHandler and it works perfectly.
Thanks for pointing me in the right direction.

By the way, Thomas, I was also wrong about my Composite's orphaned
EventHandler not throwing an exception. It obviously (head slap lol) does.

 Thanks so much.

Jeff

On Tue, Dec 21, 2010 at 4:07 AM, Thomas Broyer  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.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: GWT 2.1.1 RequestFactory Strange Exception

2010-12-21 Thread Thomas Broyer
The getId method is used generate a "stable id" that's transmitted to the 
client so that the object can be identified when it's later updated, and the 
find() method (see below) can be called with the appropriate identifier. You 
don't have to define a getId() in your EntityProxy, and if you do, it'll be 
resolved as a property, not by calling getId.
The getVersion method is used to send to the client the version of the 
object it "knows about", so that when it send it back to the the server 
(generally with changes), the server can quickly bail if it knows that the 
server-side version is different (i.e. getVersion is called to send the 
version to the client, and also at the very beginning of the server-side 
processing to check that the version known by the client is not out-dated, 
i.e. an optimistic lock). It's also used, just before returning to the 
client, to detect if a given object has been changed by the service methods 
(RF then generates the appropriate payload in the response so that an UPDATE 
event is dispatched on the client-side)

The find method is called to update the domain entity when you send one from 
the client to the server (RF will actually only send deltas of your changes, 
not the whole object, that's (one of) the point(s) of RF), e.g. to pass it 
to a persist() service method.

The create method is called when you send to the server an object that you 
RequestContext#create()-d on the client-side.

The isLive method is called for each object sent over the wire on a given 
request (from client to server and from server to client) to possibly 
generate the payload in the response so that a DELETE event is dispatched 
client-side.

Finally, getDomainType is useless, it's never called.

-- 
You received 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 Andreas Horst
Another question just coming to my mind:

Where in the inherited module are you declaring the RPC servlet?

If you declare it in the inherited module's web.xml then make sure the Maven
GWT plugin parameter "webXml" properly points to it (Not sure how one would
do this - never did it myself - especially since  inherited modules usually
come as a .jar. If so does yours include the web.xml?).

If you declare it in the inherited module's module descriptor (a.k.a.
*.gwt.xml) all should be fine. Hence I assume you do not declare it
there? Look 
here
for
details about the module descriptor, note the  tag.

My 2cents: Use the second option.

Why? Because obviously your inherited module realizes functionality that is
to be reused. It is hence some sort of library and not (only?) an
application or even a .war packed web application. All our inherited modules
are _library_ modules, they don't get deployed on an _application_ server on
their own. Now if one of those features functionality through RPC (we have
some of those) we thankfully use the above mentioned  tag in the
module descriptor and let the Maven GWT plugin do its job. IMHO on the one
hand a web.xml does not belong into a common not "runnable" module and on
the other one a (.war packed) application is not best suitable for
inheriting functionality.

Regards

2010/12/21 Andreas Horst 

>
>
> 2010/12/21 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?
>>
>>
>
> Actually the goal gwt:mergewebxml is really ALL you need (believe me, we
> use it just like that for exactly what you are trying to). Please clarify
> what you mean with "web.xml refers to external module". I assume either your
> web.xml gets or already is troubled or your POM is not configured properly.
>
>
>>  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.
>>
>


-- 
Andreas Horst
Schwicheldtstraße 23, 38704 Liebenburg
Tel. +49 (0)170 4162251, mailto:horst.andrea...@googlemail.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: GWT 2.1.1 RequestFactory Strange Exception

2010-12-21 Thread zixzigma
Thank you guys for the tips.
I got it to work!
Thank you very much !

I noticed a VERY STRANGE behaviour.

following your suggestion, I declared:

@ProxyFor(MyPersonEntity, EntityLocator)
PersonProxy

@Service(MyPersonService, MyServiceLocator)
PersonService


I noticed when methods in PersonService are declared "static",
ServiceLocator is "bypassed", and is NEVER used by RequestFactory to
look up "PersonService"
RF directly goes to PersonService.
This was strange, because what is the point of ServiceLocator then, if
it is going to be bypassed ?

to force RF to go through ServiceLocator, you have to remove "static"
from your Service methods.

This is where things get even more STRANGE:

if I do not define a Locator,
I get exceptions complaining PersonRequest did not pass validation.

however if I define a Locator (by extending Locator Interface)
I then have to implement bunch of methods: find/create/getId/
getVersion

I return NULL from all methods, and it still works !

why is that? and why we are forced to define a Locator, if we already
have a Service defined ?
my Locator does nothing !

you can see the code here:
http://paste.pocoo.org/show/308153/


from the debug statements, I see these methods being invoked:
[1022][INFO ][main][EntityLocator::22] - #EntityLocator
constructor called 
[1022][INFO ][main][EntityLocator:getId:45] - # get Id
#
[1023][INFO ][main][EntityLocator:getVersion:57] - ### get
Version ###

however, I returned null for all of them,
still the client receives the correct Id/Version as I set in my
PersonService#find method.

could someone from GWT Team please explain.

I am beginning to love the new RequestFactory, 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: Modular rpc blues

2010-12-21 Thread Andreas Horst
2010/12/21 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?
>
>

Actually the goal gwt:mergewebxml is really ALL you need (believe me, we use
it just like that for exactly what you are trying to). Please clarify what
you mean with "web.xml refers to external module". I assume either your
web.xml gets or already is troubled or your POM is not configured properly.


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

-- 
You received 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 + PlaceController: No @Inject or default constructor found

2010-12-21 Thread Jeff Larsen
You could also create a @Provides method for your PlaceController. 

-- 
You received 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 + PlaceController: No @Inject or default constructor found

2010-12-21 Thread Tobias
I had the same problem with several GWT classes and simply created a 
subclass with an @Inject constructor for each of them.

Regards,
Tobias

-- 
You received 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 Thad
While I have not yet tried UIBinder on a problem in my environment, I
did try GWT Designer.  Very quickly I went back to coding my UI by
hand.

My interface is largely shaped by the results of calls to a database
via a clearly defined API.  That means I make a lot of GWT RPC calls
and act on the results, results that can vary widely.  GWT Designer
does not (or at least 2 years ago did not) support RPC calls.
Designer's recommendation was to write local routines to simulate the
call.  I found that approach unsatisfactory--it was both slow, and
prone to error. After all what better way to try out real world data
than by pointing at a real-world system?

By the time UIBinder was introduced I was too far along to go back and
retro fit it.  Now that my app is in release, I'm ready to take
another look at UIBinder, especially in relation to new GWT 2.1 stuff
like cell widgets.

On Dec 21, 8:55 am, Matthew Hill  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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Facing some problems after switching to GWT 2.1 from GWT 2.0.4

2010-12-21 Thread Thomas Broyer
Let me re-state it (once more): there was a bug in versions before 2.1.0, 
where you couldn't tell whether the user pressed the down arrow or the left 
parenthesis (or something like that).
GWT 2.1 fixes that bug, but then it exposes a more "low level" behavior 
where you directly get what the browser gives you; and Firefox has a really 
odd behavior (not to mention that it's different depending on the platform).
I believe it *cannot* be fixed while keeping the KeyDown/KeyPress dychotomy; 
only a higher-level API (such as what's in Google's Closure Library) could.

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


On Tuesday, December 21, 2010 8:27:45 PM UTC+1, zixzigma wrote:
>
> are you suggesting we need to compile our custom annotations before 
> compiling other classes that use them ?
>

I mean you have to "javac" classes that are *referenced* from annotations 
(in this case, the PlaceTokenizer classes referenced from @WithTokenizers; 
that'd be true also of your service, domain object, locator or service 
locator with RequestFactory, unless you use @ServiceName and @ProxyForName).
Otherwise, GWT can work with only the *.java files, without the *.class.
 

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

AFAICT, only when generators read the annotations (i.e. when the 
PlaceHistoryMapperGenerator calls getAnnotation(WithTokenizers.class))
 

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

GIN is a bit special, it works directly from the compiled classes, never 
from the *.java files (which also means it won't see your "super-source" 
versions of classes)

>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 + PlaceController: No @Inject or default constructor found

2010-12-21 Thread Matthew Hill
Do I need to wrap PlaceController?

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



GIN + PlaceController: No @Inject or default constructor found

2010-12-21 Thread Matthew Hill
Hi.

I'm trying to inject a PlaceController instance but I get this error:

No @Inject or default constructor found for class 
com.google.gwt.place.shared.PlaceController

-- 
You received 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 and event bubbling

2010-12-21 Thread Thomas Broyer


On Tuesday, December 21, 2010 1:48:11 PM UTC+1, alab wrote:
>
> 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?


Yes, UiBinder is only generating Java code from the XML, Java code that you 
could write by hand.
 

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


For the time being, each UiHandler method generates an appropriate 
EventHandler (anonymous) class that's attached to the appropriate widgets. 
In the future, it might do smarter things, but not yet.

Pro tip: use the "-gen" command-line argument to DevMode or Compiler so you 
can read the generated Java code.

-- 
You received 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 Thomas Broyer
Sessions are maintained by a cookie, and cookies are global to a browser, 
not local to a tab. Your user will probably experience issues with most (if 
not all) other webapps out there.
(there's really nothing specific to GWT actually)

-- 
You received 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
in RequestFactory 2.1.1 documentations (source code),
there are many references to Domain and Domain Environment,

I am unclear what is meant by Domain Environment.
is it on the server side where RequestFactory work stops and our work
begins ?

it helps if the documentaton clarify the vocabulary,
Locator, Service, ServiceLocator, Domain, Domain Environment,
ServiceLayer

is ServiceLayer a DAO layer or a true Service Layer.

ServiceLayer vs Domain Environment ? what is the distinction between
the two ?

-- 
You received 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: Facing some problems after switching to GWT 2.1 from GWT 2.0.4

2010-12-21 Thread Casey
I too was using KeyPressEvent in 2.0.4 and it was working perfectly
but when I upgraded to 2.1.1 it stopped working. Based on Brian
Reilly's comment I changed the event to KeyDownHandler and the
comparison to event.getNativeKeyCode() == RETURN_KEY and it's back to
working again. So even though the workaround worked, I do believe that
this is a bug since it used to work in 2.0.4.

On Dec 3, 6:38 am, Brian Reilly  wrote:
> I fiddled with this quite a bit a while back, and I just upgraded to 2.1 so
> I panicked when I read this. However, I just tested in Safari and Firefox
> (both on Mac) and everything still works.
>
> The key, as Dominic mentioned, is to handle KEY_ENTER in a handler for
> KeyDownEvent instead of KeyPressEvent. Actually, I also just noticed that
> I'm not using event.getCharCode(). I'm
> using event.getNativeEvent().getKeyCode(). In fact, looking at the JavaDoc
> for KeyCode, it says, "Contains the native key codes ...", so that gives me
> some confidence that getting the key code from the native event is the way
> to go.
>
> I suspect that it's the combination of using KeyDownEvent
> and event.getNativeEvent().getKeyCode(). Character codes are probably more
> to represent printable characters. While you could consider a new line a
> printable character, the enter key doesn't translate to a new line in all
> input contexts. I suspect you're in one of those contexts (if you're trying
> to add some behavior for it), so it makes sense that you want the native
> event in this case instead of whatever character it would be interpreted as.
>
> -Brian
>
> On Fri, Dec 3, 2010 at 7:57 AM, aditya sanas <007aditya.b...@gmail.com>wrote:
>
> > hi dominic,
>
> > I m receiving key press event in all the browser the thing that i have
> > noticed which doesn't work in GWT 2.1 is -
>
> >  *if(event.getCharCode()==KeyCodes.KEY_ENTER){ *
>
> > the o/p of event.getCharCode() in GWT 2.1 is nothing not even 0 so i cnt
> > compare it with KeyCodes.KEY_ENTER
>
> > i had tried one more new method that has been introduced in GWT 2.1 which
> > getUnicodeCode() which gives 0 whenever i presses ENTER but this is not the
> > right because i m getting 0 even when i m pressing any arrow key.
>
> > how to figure this out...?
>
> > --
> > Aditya
>
> > On Fri, Dec 3, 2010 at 5:46 PM, dominic jansen 
> > wrote:
>
> >> hi aditya,
>
> >> i ve noticed that there are different behaviours for the
> >> KeyPressHandler for each browser (e.g. for me the safari browser did
> >> not recognize the keypressevent).
>
> >> maybe you can use the KeyDownHandler or KeyUpHandler instead of the
> >> KeyPressHandler. this worked for me
>
> >> best, dom
>
> >> 2010/12/3 Aditya <007aditya.b...@gmail.com>:
> >> > Hi,
>
> >> > I have updated my GWT version to 2.1 and faced some of the problems
> >> > regarding textbox' key press handlers...
>
> >> > the code which works completely fine in previous version is
>
> >> >                       txtPassword.addKeyPressHandler(new
> >> > KeyPressHandler() {
> >> >                       @Override
> >> >                       public void onKeyPress(KeyPressEvent event) {
>
> >>  if(event.getCharCode()==KeyCodes.KEY_ENTER){
> >> >                                     // some processing here to send
> >> > username password to server
> >> >                               }
> >> > // class closures.
>
> >> > whenever user presses an ENTER key the code from 'if' condition gets
> >> > executed but this does nt work in GWT 2.1
> >> > is there any other way to perform this validation to know user has
> >> > striked ENTER or not...?
>
> >> > Thanks,
> >> > Aditya
>
> >> > --
> >> > You received 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.
>
> >  --
> > You received 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 t

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.



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.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 Bertapelle
wrote:

In thetag 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: GWT 2.1.1 RequestFactory Strange Exception

2010-12-21 Thread zixzigma

On Dec 21, 6:25 am, Matt Moriarity  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 Locator 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: 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: 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  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.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: 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.



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: 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.



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  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  wrote:
>
>
>
>
>
>
>
> > It should mention the gwt.app.xml file should contain :
> >   
> > 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: 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" 
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 Bertapelle
> > wrote:
> >> In the  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: 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 Bertapelle
>> wrote:
>>
>>> In the  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.
>
>


-- 
-- 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 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 Bertapelle
>> wrote:
>>
>>> In the  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.
>
>

-- 
You received 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 wrote:

> 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 
>
> 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 
>> 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.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 unsubscr

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 Bertapelle
wrote:

In the  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: 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  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  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 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 
wrote:
> In the  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: RPC Serialization Format

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

On Dec 21, 9:58 am, Sripathi Krishnan 
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-gwt
> .
>
> --Sri
>
> On 21 December 2010 11:03, travemm  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.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 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 
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  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: 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   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  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.
>
>


-- 
-- 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: 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  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.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: 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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread Mauro Bertapelle
In the  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: 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: 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"  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  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  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  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 
> > 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.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 po

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  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: 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: 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.com"
wrote:

Please show us the stack trace

Thanks

- Reply message -
From: "Sethu"
Date: Tue, Dec 21, 2010 2:36 am
Subject: Plugin fails to connect to hosted mode server
To: "Google Web Toolkit"

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

> 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 
> 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.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.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-ckedito

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

-- 
You received 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...@googl

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.com"
wrote:

Please show us the stack trace

Thanks

- Reply message -
From: "Sethu"
Date: Tue, Dec 21, 2010 2:36 am
Subject: Plugin fails to connect to hosted mode server
To: "Google Web Toolkit"

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.



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 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" 
wrote:
> Please show us the stack trace
>
> Thanks
>
> - Reply message -
> From: "Sethu" 
> Date: Tue, Dec 21, 2010 2:36 am
> Subject: Plugin fails to connect to hosted mode server
> To: "Google Web Toolkit" 
>
> 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.



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: 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.



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" 
Date: Tue, Dec 21, 2010 2:36 am
Subject: Plugin fails to connect to hosted mode server
To: "Google Web Toolkit" 

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 , 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  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: 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  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  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  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.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-gwt
.

--Sri


On 21 December 2010 11:03, travemm  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.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  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  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.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: CellTable: Style cells differently wihtin a column

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


Cell qCell=new MyQuoteCell("click");//custom abstract cell defined
below.
Column qCol=new Column(qCell) {
@Override
public MyQuote getValue(MyQuote object) {

return object;
}
};


public class MyQuoteCell extends AbstractCell {

public interface MyQuoteTemplate extends SafeHtmlTemplates{
@Template("{0}")
SafeHtml aDiv(String qn);
@Template("{0}")
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  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 "quoteName" - 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.
>
>

-- 
You received 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  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: RPC call from GWT gadgets

2010-12-21 Thread Eric Ayers
You need to use the Gadgets Io feature so your network calls are routed
through the gadget container proxy.
On Dec 21, 2010 10:27 AM, "दीपक B"  wrote:
>
>
> 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.

-- 
You received 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 List 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.



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 "quoteName" - 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.



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.



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.



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



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

CellTable itemTable = new CellTable(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.



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: 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  wrote:
> It would probably help to know if this is in dev or prod.
>
> On Dec 21, 2010 9:22 AM, "skippy"  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.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.



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 Editor 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: 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.



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"  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.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 CELL TABLE

2010-12-21 Thread Hagar

bradr  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
> CellTable(Integer.MAX_VALUE,CellTableResources.INSTANCE);
> 
> Hope that helps!
> 
> On Oct 29, 11:55 am, bond  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:

CellTable table = new CellTable(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: 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 Locator 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.



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: 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 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
.
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.




--
*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.



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  wrote:

> I use gwt requestBuilder to query server result, if server-side spring
> checked user is not authenticated, it will forward to  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.
>
>

-- 
You received 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 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: 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  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.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: 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.



  1   2   >