icon and label as clickable anchor?

2010-12-22 Thread Magnus
Hi,

I have an image and a label, e. g. a house icon and a Home text.

Both should be clickable.

In addition, they should be horizontally centered.

How can I do this?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Metronome / Basic
Hello
Thanks for trying to help me !

One of my tries is : compile the maven-googlewebtoolkit2-sample
using gwt-maven-plugin
it was a three modules project war rpc and server
I reduced it to war server , by merging rpc and server

I join the pom and web.xml of the war


mvn package report

ERROR] Failed to execute goal 
org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:mergewebxml (default) on project 
maven-googlewebtoolkit2-sample-war: Unable to merge web.xml: 
NullPointerException - [Help 1]






  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 12:26 AM
  Subject: Re: Modular rpc blues


  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 servlet 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 servlet 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 horst.andrea...@googlemail.com




2010/12/21 Thomas Broyer t.bro...@gmail.com




  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.


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1170 / Base de données virale: 426/3328 - Date: 

Re: RPC call from GWT gadgets

2010-12-22 Thread दीपक B
Hi Eric,

If you can provide some sample for use then that will really help...

I appreciate your efforts in replying to me.


Regards,

Deepak

On Tue, Dec 21, 2010 at 9:00 PM, Eric Ayers zun...@google.com wrote:

 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 kd.deep2...@gmail.com 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-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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




-- 
दीपक
B.Tech. I.T
CoE,Pune

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Thomas Broyer


On Wednesday, December 22, 2010 12:59:16 AM UTC+1, zixzigma wrote:

 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 ?


Provide the right values so RF can do its magic ?

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 ?

 
Well, as always, it depends what you need and what you can do.

If you can implement a single Locator class that works for all your 
entities, then go with it; and otherwise make one for each entity.
For instance, if you have a base class for your entities that provides an ID 
and version, then you can easily cast any entity to that class to implement 
getId and getVersion, and you probably can implement getIdType by returning 
a fixed type.
You can clazz.newInstance() in the create() or use 
PersistenceManager#newInstace with JDO.
And you can easily find using the Class and ID with JPA using 
EntityManager#find(clazz,id), or with JDO using 
PersistenceManager#getObjectById(clazz,id).

Basically, you could very well have only one Locator class per id type.

Oh, and something to keep in mind: the Locator and *your services* instances 
(not the ServiceLocator instances though) are cached aggressively and reused 
for all subsequent requests, so make sure they are thread-safe !
(have a look at the ServiceLayerCache class to see all memoized methods)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Thomas Broyer
Oh! Given that I don't use GWT Designer, I'll uninstall it and see if it 
really is it. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Starting GWT dev mode within Eclipse causes Maven-managed resources to disappear

2010-12-22 Thread Thomas Broyer


On Tuesday, November 30, 2010 5:05:54 PM UTC+1, Thomas Broyer wrote:


 I'm lost. I'm very new to Eclipse WTP (a couple of weeks) and not much 
 less to Maven (5 months), so maybe it's just me; but really, I don't 
 understand why it worked, then deleted everything, then now works 
 again...


I forgot to reply after solving my issue: it was obviously a PEBKAC, a 
misunderstanding on my part.

1. I changed my client project to no longer be a packaging=war so 
m2eclipse doesn't make it a WTP project (so when I start the DevMode it 
doesn't try to publish the project); I'm using the maven-assembly-plugin 
to package the complied GWT app to a ZIP, that I then use as an overlay in 
my main war project.

2. I'm now using WTP with the Jetty WTP plugin, i.e. I no longer use the 
embedded server in DevMode.

I can now follow the recommendations from the GPE FAQ about working with WTP 
and Maven projects.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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, entityproxy has reference is always null

2010-12-22 Thread Thomas Broyer
By default, RF does not send related entities, you have to explicitly ask 
for them using the .with() on the client sie when making your request (in 
your case, something like: ctx.getListOfA().with(bproxy).fire(...))
See 
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships
 which 
says:

When querying the server, RequestFactory does not automatically populate 
relations in the object graph. To do this, use the with() method on a 
request and specify the related property name as a String

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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.



Saving state when redirecting to another url

2010-12-22 Thread Pablo G.F
Hello:

I´ve a project with GWT + Spring + Hibernate.  I have the next issue: i
´m redirecting from one page to another by Window.Location.assign from
the GWT subproject (after that, is the Spring controller which manages
the redirect). But now I wanna be able to return to last page and
save the state. I mean, I have a form which filters results into a
grid. Then I click a button which redirects me to another page. Then I
click a go back button in my new page (a gwt button, not the browser
one) and I want to see the same values I´ve used in the filters.

I´ve read a little about GWT history ,but I was told that the problem
is that  the controller which manages redirections is Spring's and not
GWT's.

Passing all values as parameters in the url is not an option, because
in some cases there are a lot of them.

Any idea?

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

2010-12-22 Thread Eric Ayers
Check out the Traveler sample code that is a part of the distribution:

http://code.google.com/p/gwt-google-apis/source/browse/#svn%2Ftrunk%2Fgadgets%2Fsamples

On Wed, Dec 22, 2010 at 4:47 AM, दीपक B kd.deep2...@gmail.com wrote:
 Hi Eric,

 If you can provide some sample for use then that will really help...

 I appreciate your efforts in replying to me.


 Regards,

 Deepak

 On Tue, Dec 21, 2010 at 9:00 PM, Eric Ayers zun...@google.com wrote:

 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 kd.deep2...@gmail.com 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.



 --
 दीपक
 B.Tech. I.T
 CoE,Pune

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post 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: can AutoBean detect changes ?

2010-12-22 Thread Thomas Broyer
FYI, RequestContext#isChanged in Requestfactory is implemented using 
AutoBeanUtils.diff() on the frozen version and the edited version of the 
object (see code in 
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext). I haven't 
checked, but I think messages are constructed using a similar mechanism.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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 with AsyncDataProvider - clear rows

2010-12-22 Thread Opal
Hi,

I use CellTable to display the data stored in db. Data are provided
using AsyncDataProvider. The last row that is displayed is an empty
row used to add the new entry to db. After adding the entry I download
the data from visible range again to refresh the view.

Here's how it's done:

public void redraw() {
mt.redraw(); //an instance of CellTable
madp.getMovies(mt.getVisibleRange().getStart(), mt.getPageSize()); //
an instance of AsyncDataProvider
}

The getMovies() method:
public void getMovies(final int offset, final int limit) {
AdminAsyncCallbackMovieResultDTO cb = new
AdminAsyncCallbackMovieResultDTO() {

@Override
public void onSuccess(MovieResultDTO result) {
if (result != null  result.getMovies() != null  !
result.getMovies().isEmpty()) {
updateRowCount(result.getSize(), true);
updateRowData(offset, result.getMovies());
} else {
updateRowCount(0, true);
}
}
};
AdminService.Async.service().getMovieResultDTO(offset, limit, cb);
}

There's one problem. The last row isn't refreshed and it holds the
entered data. This row is added to the list downloaded from db every
time the data are refresed. And it has null values cause I see it in
logs. How can I clean the cell table before it's repopulated?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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.



new window

2010-12-22 Thread Shiv shankar
HI all,


On module load in the entry point only a new browser window has to be
opened.
does any body know this, how to do? kindly help me out.



thanks in advance
-shivu

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: new window

2010-12-22 Thread Cesar Ruiz
And normally what does it do?. Im confused.

On 22 December 2010 13:37, Shiv shankar shivuc.8...@gmail.com wrote:

 HI all,


 On module load in the entry point only a new browser window has to be
 opened.
 does any body know this, how to do? kindly help me out.



 thanks in advance
 -shivu

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




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Andreas Horst
I just took a look at your configuration files.

Actually I can't tell much from just them especially since I don't have the
parent POM. Anyway I'm a bit confused about what you are trying to do.

Are you only trying to compile the sample project or are you trying to reuse
something of it? What exactly do you mean with project war rpc and server
or war server? A project that packages to a .war file (like GWT
applications) or a .war file you are trying to include via module
inheritance? I'm sorry but it's really not clear to me.

2010/12/22 Metronome / Basic metronome.ba...@worldonline.fr

  Hello
 Thanks for trying to help me !

 One of my tries is : compile the maven-googlewebtoolkit2-sample
 using gwt-maven-plugin
 it was a three modules project war rpc and server
 I reduced it to war server , by merging rpc and server

 I join the pom and web.xml of the war


 mvn package report

 ERROR] Failed to execute goal
 org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:mergewebxml (default) on project

 maven-googlewebtoolkit2-sample-war: Unable to merge web.xml:
 NullPointerException - [Help 1]







 - Original Message -
 *From:* Andreas Horst horst.andrea...@googlemail.com
 *To:* google-web-toolkit@googlegroups.com
 *Sent:* Wednesday, December 22, 2010 12:26 AM
 *Subject:* Re: Modular rpc blues

 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 
 herehttp://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html
  for
 details about the module descriptor, note the servlet 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 servlet 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 horst.andrea...@googlemail.com



 2010/12/21 Thomas Broyer t.bro...@gmail.com



 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-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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

Re: new window

2010-12-22 Thread Shiv shankar
Actually in that new window tab buttons play a role in majority, by
displaying graphs.
so i need a new window,
important thing is like presently running my code in local host
so area am getting is very less, thinking that if the new window gets opened
ill get
enough space.

thanks
-shiv

On Wed, Dec 22, 2010 at 6:09 PM, Cesar Ruiz crui...@gmail.com wrote:

 And normally what does it do?. Im confused.

 On 22 December 2010 13:37, Shiv shankar shivuc.8...@gmail.com wrote:

 HI all,


 On module load in the entry point only a new browser window has to be
 opened.
 does any body know this, how to do? kindly help me out.



 thanks in advance
 -shivu

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




 --
 Cesar Ruiz.

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


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



Re: StackLayoutPanel Behaving Strangely

2010-12-22 Thread Steve Moyer
Could it be a '' to end your opening UiBinder tag?

smoyer

On Dec 15, 3:11 am, Nirmal nirmaljpa...@gmail.com wrote:
 When using a *LayoutPanel inside a non-LayoutPanel; you need to explicitly
 set size of the LayoutPanel.

 Regards,
 Nirmal

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Glenn Davies
I have exactly the same problem on Vista 32-bit, Chrome (Stable
8.0.552.224), Java 6 u23, GWT 2.1.1.

I get the unable to connect dialog. There are no errors in the
Eclipse console - nothing at all, in fact, to indicate that anything
has connected.

The same application on the same machine works fine in Firefox. I
can't try IE - I've never been able to get the plugin to run properly
on it.

Glenn

On Dec 22, 2:41 am, Sethu writetose...@googlemail.com wrote:
 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 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.coma...@mechnicality.com
   wrote:
   Please show us the stack trace

   Thanks

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

   Hi,

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

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

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

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

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

   Thanks
   Sethu

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

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

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



GWT Tomcat 404 error RPC www.domain.com

2010-12-22 Thread kmemis
Hi,
I have successfully deployed a simple GWT RPC application to Tomcat
server. When I try http://my-public-ipaddress:8080/domain from my
browser it successfully makes RPC . But when I call www.domain.com it
gets 404 error after RPC. Here is my Tomcat server configuration:

  Host name=www.domain.com appBase=webapps/domain
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false debug=1 
 Context path=  docBase=. /
Aliasdomain.com/Alias
/Host

What could be the problem? I looked at the packets from wireshark.
While successful RPC browser sends POST with /domain/modulename/
service but during unsuccessful RPC it sends POST with /modulename/
service...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread pieceovcake
Yes i've seen these but all the example javascript v3.  I want to use the 
java maps api library from within a gwt application.  Thanks for you help.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Metronome / Basic
In fact I simply want to be able to use a jar containing GWT-RPC code in any 
webapp

As I had no succes with my code 

I tried to rely on maven-googlewebtoolkit2-sample
that is a HelloWorld RPC example with code in different modules.

here is the parent pom 

I did'nt change the code , I just modified the poms 

  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 1:52 PM
  Subject: Re: Modular rpc blues


  I just took a look at your configuration files.


  Actually I can't tell much from just them especially since I don't have the 
parent POM. Anyway I'm a bit confused about what you are trying to do.


  Are you only trying to compile the sample project or are you trying to reuse 
something of it? What exactly do you mean with project war rpc and server or 
war server? A project that packages to a .war file (like GWT applications) or 
a .war file you are trying to include via module inheritance? I'm sorry but 
it's really not clear to me.


  2010/12/22 Metronome / Basic metronome.ba...@worldonline.fr

Hello
Thanks for trying to help me !

One of my tries is : compile the maven-googlewebtoolkit2-sample
using gwt-maven-plugin
it was a three modules project war rpc and server
I reduced it to war server , by merging rpc and server

I join the pom and web.xml of the war


mvn package report

ERROR] Failed to execute goal 
org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:mergewebxml (default) on project 
maven-googlewebtoolkit2-sample-war: Unable to merge web.xml: 
NullPointerException - [Help 1]





 
  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 12:26 AM
  Subject: Re: Modular rpc blues


  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 servlet 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 servlet 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 horst.andrea...@googlemail.com




2010/12/21 Thomas Broyer t.bro...@gmail.com 




  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:
  

Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Roger Studner
Everytime I try to do GWT Dev mode (gwt 2.1) with Chrome on OSX, it gives me 
the Failed to connect to server error message

i've tried bindAddress 0.0.0.0 and a pile of other workarounds.

Anyone have this problem/success with this?

Note - works 100% of the time using firefox.. i'd just like to use Chrome (with 
or without speed tracer) for my GWT Dev mode.

Thanks
Roger

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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.



SmartGWT and Chrome vs Firefox

2010-12-22 Thread Roger Studner
When I try to start dev mode in firefox, things work perfectly.

When I try with Chrome, I get the Failed to connect to server and this 
exception appears in the browser
(note, nothing shows up in the dev mode window etc)

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:680)
Caused by: com.google.gwt.dev.shell.HostedModeException: Something other than a 
boolean was returned from JSNI method 
'@com.smartgwt.client.widgets.form.fields.FormItem::isCreated()': JS value of 
type JavaScript object(63), expected boolean
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:186)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:35)
at 
com.smartgwt.client.widgets.form.fields.FormItem.isCreated(FormItem.java)
at 
com.smartgwt.client.widgets.form.fields.FormItem.setAttribute(FormItem.java:3437)
at 
com.smartgwt.client.widgets.form.fields.FormItem.setType(FormItem.java:3752)
at com.smartgwt.client.widgets.form.fields.FormItem.(FormItem.java:79)
at com.smartgwt.client.widgets.form.fields.TextItem.(TextItem.java:76)
at 
com.smartgwt.client.widgets.form.fields.PasswordItem.(PasswordItem.java:76)
at com.informatica.cep.rpa.client.view.LoginView.(LoginView.java:29)
at 
com.informatica.cep.rpa.client.controller.LoginController.(LoginController.java:36)
at 
com.informatica.cep.rpa.client.controller.RootController.(RootController.java:34)
at 
com.informatica.cep.rpa.client.MyEntryPoint.onModuleLoad(MyEntryPoint.java:18)
... 9 more


Any thoughts?

Thanks,
Roger

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Eric Clayberg
The latter will give you more flexibility

I'm curious about this. In the Java case, GWT Designer's parser can
reverse engineer most hand-written code and its code generator can be
configured to match most coding styles. It is general quite forgiving
about manual refactoring and has nice support for UI factories, nested
composites, etc. Since the tool was designed to allow you to work back
and forth between the source and the design view (and always keep the
two in sync), I am wondering what flexibility is lost by using it
(even if you just use it to visualize and tweak what you have written
by hand). We are always interested in ideas for improving the tool, so
suggestions for making it more flexible are welcome.

In the cas of UiBinder which is much more constrained versus coding in
Java, our hope is that anything you could code by hand in the
UiBinder, you could also build using GWT Designer. Any areas where
this is not the case represent an opportunity for improvement on our
end. We first introduced basic support for UiBinder in September
(right after the tool was acquired by Google). Our latest v8.1.1
release from last week (in conjunction with GWT 2.1.1) has improved
our UiBinder support considerably.

-Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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 with AsyncDataProvider - clear rows

2010-12-22 Thread John LaBanca
Can you use CellTable#setVisibleRangeAndClearData() to clear the current
data and request the new data from the database?
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/view/client/HasData.html#setVisibleRangeAndClearData(com.google.gwt.view.client.Range,
boolean)
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/view/client/HasData.html#setVisibleRangeAndClearData(com.google.gwt.view.client.Range,
boolean)
Thanks,
John LaBanca
jlaba...@google.com


On Wed, Dec 22, 2010 at 7:25 AM, Opal maciek.op...@gmail.com wrote:

 Hi,

 I use CellTable to display the data stored in db. Data are provided
 using AsyncDataProvider. The last row that is displayed is an empty
 row used to add the new entry to db. After adding the entry I download
 the data from visible range again to refresh the view.

 Here's how it's done:

 public void redraw() {
mt.redraw(); //an instance of CellTable
madp.getMovies(mt.getVisibleRange().getStart(), mt.getPageSize());
 //
 an instance of AsyncDataProvider
 }

 The getMovies() method:
 public void getMovies(final int offset, final int limit) {
AdminAsyncCallbackMovieResultDTO cb = new
 AdminAsyncCallbackMovieResultDTO() {

@Override
public void onSuccess(MovieResultDTO result) {
if (result != null  result.getMovies() != null  !
 result.getMovies().isEmpty()) {
updateRowCount(result.getSize(), true);
updateRowData(offset, result.getMovies());
} else {
updateRowCount(0, true);
}
}
};
AdminService.Async.service().getMovieResultDTO(offset, limit, cb);
 }

 There's one problem. The last row isn't refreshed and it holds the
 entered data. This row is added to the list downloaded from db every
 time the data are refresed. And it has null values cause I see it in
 logs. How can I clean the cell table before it's repopulated?

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



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



Re: requestfactory, entityproxy has reference is always null

2010-12-22 Thread Mike
Thanks very much Broyer, i just miss the description in the doc. thanks

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



Re: UiBinder or GWT Designer

2010-12-22 Thread Eric Clayberg
In order to provide the WYSIWYG editing and rendering experience, GWT
Designer needs to start up the GWT dev mode the first time you access
it during a session. That does lead to a slow start (which is not
present in the companion tools for Swing and SWT), and is an area that
we are investigating. Once the tool is up and running, it should
respond quickly in the design mode.

-Eric

On Dec 21, 9:20 am, a...@mechnicality.com a...@mechnicality.com
wrote:
 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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: HTML Link Cell

2010-12-22 Thread John LaBanca
I recommend that you use SafeHtmlCell, and be careful to ensure that the
link is in fact safe.  Check out
SafeHtmlTemplateshttp://google-web-toolkit.googlecode.com/svn-history/r9089/javadoc/2.1/com/google/gwt/safehtml/client/SafeHtmlTemplates.html
to
generate a SafeHtml string from a potentially unsafe URL and user text.

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


On Tue, Dec 21, 2010 at 10:57 PM, GregD gre...@gmail.com wrote:

 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: UiBinder or GWT Designer

2010-12-22 Thread Eric Clayberg
At design time in GWT Designer, the runtime environment needed to
handle a live RPC call simply does not exist. If your UI is primarily
constructed dynamically based on the results of info available at
runtime, a static UI design tool like GTW Designer (or any UI builder
for that matter) would not be much help. If you have your UI
decomposed into reusable static pieces (Composites), it would be
helpful with those pieces, but not with the main UI as a whole.

-Eric

On Dec 21, 4:20 pm, Thad thad.humphr...@gmail.com wrote:
 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.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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.



putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Magnus
Hi,

I have two Anchor objects, an image and a label, and I would like to
put the label below the image.

The only way I know is to put a BR tag between them:

 add (new HTML (br));

But this results in to much vertical space, which I do not want.
I also tried p.

How can I put a newline without vertical space?

The two Anchor objects live in a FlowPanel.

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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 write an XML doc with GWT?

2010-12-22 Thread Sebe

By the Panel can retrieve values through the class and documents
XMLParser com.google.gwt.xml.client .*;

Now I would write / save to file. xml.

I tried with the class Transformer (not good because it's the books
javax.dom ..) and even with a BufferedReader raising exceptions.

Does anyone have an idea on how to implement it?

There would be very grateful ...

Sebe

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Matthew Hill
I thought that there wasn't a dev plugin for Chrome on OS 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: Plugin fails to connect to hosted mode server

2010-12-22 Thread Glenn Davies
...and it turns out that there's a simple answer.

We use a hosts file entry (e.g. app.local.com) which resolves to 127.0.0.1 
so we can use a development SSL certificate on all dev machines. Although 
this host is 127.0.0.1, you need to add app.local.com to the list of allowed 
hosts in the Chrome dev mode plugin as it seems the check is on the host 
name not the IP address to which the host name resolves - which is fair 
enough I suppose.

Glenn

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Thomas
Thanks for the response - I will try that.

/Thomas


On Dec 21, 4:44 pm, Subhrajyoti Moitra subhrajyo...@gmail.com wrote:
 Here some code snippet might help..

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

                     return object;
                 }
             };

 public class MyQuoteCell extends AbstractCellMyQuote {

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

     private static MyQuoteTemplate template=null;

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

     }

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

         }

     }*

 }

 this is untested code. -:P

 Cheers,
 Subhro.

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

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

  Here is my problem:

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

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

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

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

  Regards,
  Thomas.

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

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



Textarea with line numbers

2010-12-22 Thread Musicman75
Hello,

does anybody know if there's a possibility to add line numbers to a
testarea?
I have to create a code editor like this one:
http://alexgorbatchev.com/SyntaxHighlighter/manual/demo/

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: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Ben Imp
There are many ways of laying out a web page.  The simplest in your
case might be to add both widgets to a VerticalPanel that then lives
inside of that FlowPanel you mention.  You could then use CSS and make
the VerticalPanel have little to no space between its cells.

Another, and perhaps a more correct, way would be to give both of
those elements ids or distinct CSS classes and then use CSS
positioning.

http://www.w3schools.com/css/css_positioning.asp

-Ben

On Dec 22, 8:25 am, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 I have two Anchor objects, an image and a label, and I would like to
 put the label below the image.

 The only way I know is to put a BR tag between them:

      add (new HTML (br));

 But this results in to much vertical space, which I do not want.
 I also tried p.

 How can I put a newline without vertical space?

 The two Anchor objects live in a FlowPanel.

 Thanks
 Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: SmartGWT and Chrome vs Firefox

2010-12-22 Thread Chris Conroy
just guessing, but you could be hitting a different manifestation of this
bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=5778

On Wed, Dec 22, 2010 at 8:59 AM, Roger Studner rstud...@gmail.com wrote:

 When I try to start dev mode in firefox, things work perfectly.

 When I try with Chrome, I get the Failed to connect to server and this
 exception appears in the browser
 (note, nothing shows up in the dev mode window etc)

 java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:680)
 Caused by: com.google.gwt.dev.shell.HostedModeException: Something other
 than a boolean was returned from JSNI method
 '@com.smartgwt.client.widgets.form.fields.FormItem::isCreated()': JS value
 of type JavaScript object(63), expected boolean
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:186)
at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:35)
at
 com.smartgwt.client.widgets.form.fields.FormItem.isCreated(FormItem.java)
at
 com.smartgwt.client.widgets.form.fields.FormItem.setAttribute(FormItem.java:3437)
at
 com.smartgwt.client.widgets.form.fields.FormItem.setType(FormItem.java:3752)
at
 com.smartgwt.client.widgets.form.fields.FormItem.(FormItem.java:79)
at
 com.smartgwt.client.widgets.form.fields.TextItem.(TextItem.java:76)
at
 com.smartgwt.client.widgets.form.fields.PasswordItem.(PasswordItem.java:76)
at com.informatica.cep.rpa.client.view.LoginView.(LoginView.java:29)
at
 com.informatica.cep.rpa.client.controller.LoginController.(LoginController.java:36)
at
 com.informatica.cep.rpa.client.controller.RootController.(RootController.java:34)
at
 com.informatica.cep.rpa.client.MyEntryPoint.onModuleLoad(MyEntryPoint.java:18)
... 9 more


 Any thoughts?

 Thanks,
 Roger

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



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



Re: Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Chris Conroy
Matthew: There is a plugin as of a few weeks ago.

Roger: Do you see the GWT toolbox in the URL bar turn gray? If so this means
you have a permissions issue and you need to click the toolbox (or just go
directly to the extension's options page) to add the host.

On Wed, Dec 22, 2010 at 9:49 AM, Matthew Hill matt2...@gmail.com wrote:

 I thought that there wasn't a dev plugin for Chrome on OS X?

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


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



Re: Plugin fails to connect to hosted mode server

2010-12-22 Thread Sethu
Unfortunately I dont have an entry in my hosts file. I added a
localhost 127.0.0.1 for an extra measure and tried and still got the
same error.
Does anyone know why this is happening? The plug ins on chrome,
firefox, and IE all of them consistently give me the same error.


On Dec 22, 7:53 pm, Glenn Davies glennats...@gmail.com wrote:
 ...and it turns out that there's a simple answer.

 We use a hosts file entry (e.g. app.local.com) which resolves to 127.0.0.1
 so we can use a development SSL certificate on all dev machines. Although
 this host is 127.0.0.1, you need to add app.local.com to the list of allowed
 hosts in the Chrome dev mode plugin as it seems the check is on the host
 name not the IP address to which the host name resolves - which is fair
 enough I suppose.

 Glenn

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Roger Studner
Yeah, toolbox stays red/no permissions issue.. 

I did go ahead and add
localhost
localhost:9997
127.0.0.1
127.0.0.1:9997
etc
etc
before I figured there might just be a bug ;)

Roger



On Dec 22, 2010, at 10:17 AM, Chris Conroy wrote:

 Matthew: There is a plugin as of a few weeks ago.
 
 Roger: Do you see the GWT toolbox in the URL bar turn gray? If so this means 
 you have a permissions issue and you need to click the toolbox (or just go 
 directly to the extension's options page) to add the host.
 
 On Wed, Dec 22, 2010 at 9:49 AM, Matthew Hill matt2...@gmail.com wrote:
 I thought that there wasn't a dev plugin for Chrome on OS 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.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: SmartGWT and Chrome vs Firefox

2010-12-22 Thread Roger Studner
Certainly feels like this could be it

Roger

On Dec 22, 2010, at 10:15 AM, Chris Conroy wrote:

 just guessing, but you could be hitting a different manifestation of this 
 bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
 
 On Wed, Dec 22, 2010 at 8:59 AM, Roger Studner rstud...@gmail.com wrote:
 When I try to start dev mode in firefox, things work perfectly.
 
 When I try with Chrome, I get the Failed to connect to server and this 
 exception appears in the browser
 (note, nothing shows up in the dev mode window etc)
 
 java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at 
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at 
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at 
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:680)
 Caused by: com.google.gwt.dev.shell.HostedModeException: Something other than 
 a boolean was returned from JSNI method 
 '@com.smartgwt.client.widgets.form.fields.FormItem::isCreated()': JS value of 
 type JavaScript object(63), expected boolean
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
at 
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:186)
at 
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:35)
at 
 com.smartgwt.client.widgets.form.fields.FormItem.isCreated(FormItem.java)
at 
 com.smartgwt.client.widgets.form.fields.FormItem.setAttribute(FormItem.java:3437)
at 
 com.smartgwt.client.widgets.form.fields.FormItem.setType(FormItem.java:3752)
at com.smartgwt.client.widgets.form.fields.FormItem.(FormItem.java:79)
at com.smartgwt.client.widgets.form.fields.TextItem.(TextItem.java:76)
at 
 com.smartgwt.client.widgets.form.fields.PasswordItem.(PasswordItem.java:76)
at com.informatica.cep.rpa.client.view.LoginView.(LoginView.java:29)
at 
 com.informatica.cep.rpa.client.controller.LoginController.(LoginController.java:36)
at 
 com.informatica.cep.rpa.client.controller.RootController.(RootController.java:34)
at 
 com.informatica.cep.rpa.client.MyEntryPoint.onModuleLoad(MyEntryPoint.java:18)
... 9 more
 
 
 Any thoughts?
 
 Thanks,
 Roger
 
 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post 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.



request get header

2010-12-22 Thread asianCoolz
may i know is it possible to use  com.google.gwt.http.client.Request
to get  header(Location) , i tried with that but return null  ,but
for other property like 'content-type' i able to get

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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 force Spring to intercept RequestFactoryServlet

2010-12-22 Thread Ashton Thomas
Can you post your web.xml

On Dec 22, 1:56 am, zixzigma zixzi...@gmail.com wrote:
 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: Plugin fails to connect to hosted mode server

2010-12-22 Thread Chris Conroy
You don't need to add entries for localhost since those are allowed by
default.

When you get the error do you see the GWT toolbox turn gray? Click it, then
click Update Your Configuration. It will autofill the options page with
the host it detected and you can add it to your whitelist. Once added,
refresh and you should connect and see the toolbox turn red.

On Wed, Dec 22, 2010 at 10:18 AM, Sethu writetose...@googlemail.com wrote:

 Unfortunately I dont have an entry in my hosts file. I added a
 localhost 127.0.0.1 for an extra measure and tried and still got the
 same error.
 Does anyone know why this is happening? The plug ins on chrome,
 firefox, and IE all of them consistently give me the same error.


 On Dec 22, 7:53 pm, Glenn Davies glennats...@gmail.com wrote:
  ...and it turns out that there's a simple answer.
 
  We use a hosts file entry (e.g. app.local.com) which resolves to
 127.0.0.1
  so we can use a development SSL certificate on all dev machines. Although
  this host is 127.0.0.1, you need to add app.local.com to the list of
 allowed
  hosts in the Chrome dev mode plugin as it seems the check is on the host
  name not the IP address to which the host name resolves - which is fair
  enough I suppose.
 
  Glenn

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



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



Re: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Magnus
Hi,

I migrated my app to strict mode, i. e. not using quirks mode panels
like VerticalPanel.

Thank you for the second recommendation. I am not used to work with
CSS in detail. Which property should I use to position my anchors?

Thanks
Magnus

On Dec 22, 4:12 pm, Ben Imp benlee...@gmail.com wrote:
 There are many ways of laying out a web page.  The simplest in your
 case might be to add both widgets to a VerticalPanel that then lives
 inside of that FlowPanel you mention.  You could then use CSS and make
 the VerticalPanel have little to no space between its cells.

 Another, and perhaps a more correct, way would be to give both of
 those elements ids or distinct CSS classes and then use CSS
 positioning.

 http://www.w3schools.com/css/css_positioning.asp

 -Ben

 On Dec 22, 8:25 am, Magnus alpineblas...@googlemail.com wrote:

  Hi,

  I have two Anchor objects, an image and a label, and I would like to
  put the label below the image.

  The only way I know is to put a BR tag between them:

       add (new HTML (br));

  But this results in to much vertical space, which I do not want.
  I also tried p.

  How can I put a newline without vertical space?

  The two Anchor objects live in a FlowPanel.

  Thanks
  Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Chris Conroy
Roger,

Try launching Chrome from the command line (close all open windows that you
may have first). And see what the log reports.

Also, can you verify that you can telnet into your codeserver? e.g.

$ telnet 127.0.0.1 9997
Connected to 127.0.0.1.
Escape character is '^]'.
asdf
Connection closed by foreign host.

If you enter garbage input like I did here ('asdf') then the code server
should die with something like:
Connection received from mycomputer:54684
   [ERROR] Unrecognized command for client; closing connection
com.google.gwt.dev.shell.BrowserChannelException: Invalid message type 97
at
com.google.gwt.dev.shell.BrowserChannel$Message.readMessageType(BrowserChannel.java:1104)
 at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:378)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
 at java.lang.Thread.run(Thread.java:636)



On Wed, Dec 22, 2010 at 10:23 AM, Roger Studner rstud...@gmail.com wrote:

 Yeah, toolbox stays red/no permissions issue..

 I did go ahead and add
 localhost
 localhost:9997
 127.0.0.1
 127.0.0.1:9997
 etc
 etc
 before I figured there might just be a bug ;)

 Roger



 On Dec 22, 2010, at 10:17 AM, Chris Conroy wrote:

 Matthew: There is a plugin as of a few weeks ago.

 Roger: Do you see the GWT toolbox in the URL bar turn gray? If so this
 means you have a permissions issue and you need to click the toolbox (or
 just go directly to the extension's options page) to add the host.

 On Wed, Dec 22, 2010 at 9:49 AM, Matthew Hill matt2...@gmail.com wrote:

 I thought that there wasn't a dev plugin for Chrome on OS X?

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



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


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


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



gzippen all gwt output files?

2010-12-22 Thread Ed
I like to know how others gzip their gwt output files
I think you have the following options:
1) Let the webserver (in my case apache) zip all gwt files by using
mod_deflate (or mod_gzip) , just before they are send.
2) Gzip them yourself during the build and set the correct headers in
your webserver config (through mod_headers).

Option 1) is easy.
Option 2) might give some advantage, because you only have to gzip all
files once, but costs some extra work after gwt compilation and Header
configuraiton in you webserver.

Sooo, is it worth going for option 2) ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Roger Studner
Well, I definitely can telnet to 127.0.0.1

When I try to run it from command line:

/Applications/Google Chrome/Contents/MacOS/Google Chome.app  (not exactly whta 
it is, but you get the drfit)

it actually crashes with:
[1222/104209:FATAL:/b/build/slave/chrome-official-mac/build/src/base/mac_util.mm(226)]
 Check failed: bundle. Failed to load the bundle at /Applications/Google 
Chrome.app/Contents/MacOS/Versions/10.0.612.3/Google Chrome Framework.framework
Trace/BPT trap


Roger

On Dec 22, 2010, at 10:37 AM, Chris Conroy wrote:

 Roger,
 
 Try launching Chrome from the command line (close all open windows that you 
 may have first). And see what the log reports.
 
 Also, can you verify that you can telnet into your codeserver? e.g.
 
 $ telnet 127.0.0.1 9997
 Connected to 127.0.0.1.
 Escape character is '^]'.
 asdf
 Connection closed by foreign host.
 
 If you enter garbage input like I did here ('asdf') then the code server 
 should die with something like:
 Connection received from mycomputer:54684
[ERROR] Unrecognized command for client; closing connection
 com.google.gwt.dev.shell.BrowserChannelException: Invalid message type 97
   at 
 com.google.gwt.dev.shell.BrowserChannel$Message.readMessageType(BrowserChannel.java:1104)
   at 
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:378)
   at 
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
   at java.lang.Thread.run(Thread.java:636)
 
 
 
 On Wed, Dec 22, 2010 at 10:23 AM, Roger Studner rstud...@gmail.com wrote:
 Yeah, toolbox stays red/no permissions issue.. 
 
 I did go ahead and add
 localhost
 localhost:9997
 127.0.0.1
 127.0.0.1:9997
 etc
 etc
 before I figured there might just be a bug ;)
 
 Roger
 
 
 
 On Dec 22, 2010, at 10:17 AM, Chris Conroy wrote:
 
 Matthew: There is a plugin as of a few weeks ago.
 
 Roger: Do you see the GWT toolbox in the URL bar turn gray? If so this means 
 you have a permissions issue and you need to click the toolbox (or just go 
 directly to the extension's options page) to add the host.
 
 On Wed, Dec 22, 2010 at 9:49 AM, Matthew Hill matt2...@gmail.com wrote:
 I thought that there wasn't a dev plugin for Chrome on OS 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.
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post 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.



Re: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Ben Imp
That is kind of a tricky question to answer, as it kind of depends on
how you want to do your whole page.

The URL I posted above has interactive demos to show you how each of
them work, so you should be able to get a good idea of which one fits
your situation best.  Just play with them until you get a good feel
for how they should work.

Also, you needn't only use a VerticalPanel.  Any table based panel
would work.  VerticalPanel is just the simplest, since it only allows
a single column.

-Ben

On Dec 22, 9:37 am, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 I migrated my app to strict mode, i. e. not using quirks mode panels
 like VerticalPanel.

 Thank you for the second recommendation. I am not used to work with
 CSS in detail. Which property should I use to position my anchors?

 Thanks
 Magnus

 On Dec 22, 4:12 pm, Ben Imp benlee...@gmail.com wrote:

  There are many ways of laying out a web page.  The simplest in your
  case might be to add both widgets to a VerticalPanel that then lives
  inside of that FlowPanel you mention.  You could then use CSS and make
  the VerticalPanel have little to no space between its cells.

  Another, and perhaps a more correct, way would be to give both of
  those elements ids or distinct CSS classes and then use CSS
  positioning.

 http://www.w3schools.com/css/css_positioning.asp

  -Ben

  On Dec 22, 8:25 am, Magnus alpineblas...@googlemail.com wrote:

   Hi,

   I have two Anchor objects, an image and a label, and I would like to
   put the label below the image.

   The only way I know is to put a BR tag between them:

        add (new HTML (br));

   But this results in to much vertical space, which I do not want.
   I also tried p.

   How can I put a newline without vertical space?

   The two Anchor objects live in a FlowPanel.

   Thanks
   Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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.



Rebind result '...' must be a class on ImageResource

2010-12-22 Thread UseTheFork
Hi,

I am following the guidelines available at:
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#ImageResource
to create an image resource item:

public interface ApplicationImageBundle extends ImageResource {

public static final ApplicationImageBundle INSTANCE
= GWT.create(ApplicationImageBundle.class);

@Source(Logo)
ImageResource Logo();

}

I get the following error message at compile time:

Line 14:  Rebind result '...ApplicationImageBundle' must be a class

What am I doing wrong? I can't find much information by Googling!

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

2010-12-22 Thread Ben Imp
Opening a new window is as simple as a call to Window.open.  However,
since your GWT client keeps all of its state in javascript your new
window will know nothing of the old window.  You can pass some
arguments to this new window to get it in the right initial state, but
thats about it.

-Ben

On Dec 22, 7:00 am, Shiv shankar shivuc.8...@gmail.com wrote:
 Actually in that new window tab buttons play a role in majority, by
 displaying graphs.
 so i need a new window,
 important thing is like presently running my code in local host
 so area am getting is very less, thinking that if the new window gets opened
 ill get
 enough space.

 thanks
 -shiv

 On Wed, Dec 22, 2010 at 6:09 PM, Cesar Ruiz crui...@gmail.com wrote:
  And normally what does it do?. Im confused.

  On 22 December 2010 13:37, Shiv shankar shivuc.8...@gmail.com wrote:

  HI all,

  On module load in the entry point only a new browser window has to be
  opened.
  does any body know this, how to do? kindly help me out.

  thanks in advance
  -shivu

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

  --
  Cesar Ruiz.

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

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



gwt-maven-plugin 2.1.0-1 compilation error

2010-12-22 Thread Frank Bølviken
Hi,

I dont know if there is anyting I have missed. But I'm trying to
create a simple GWT project with the new gwt-maven-plugin.
I run the following command:
mvn archetype:generate
-DarchetypeRepository=repo1.maven.org
-DarchetypeGroupId=org.codehaus.mojo
-DarchetypeArtifactId=gwt-maven-plugin
-DarchetypeVersion=2.1.0-1

I input the following text:
Define value for property 'groupId': : com.test.hello
Define value for property 'artifactId': : gwt
Define value for property 'version': 1.0-SNAPSHOT:
Define value for property 'package': com.test.hello:
Define value for property 'module': : gwt

The project is created successfully. But when I try to gwt:compile it,
the following error arrives:
[INFO] Compiling module com.test.hello.gwt
[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 'file:/C:/PATH/gwt/src/main/java/com/
test/hello/client/gwt.java'
[INFO]  [ERROR] Line 35: GreetingServiceAsync cannot be
resolved to a type
[INFO]  [ERROR] Line 35: No source code is available for type
GreetingServiceAsync; did you forget to inherit a
required module?
[INFO]  [ERROR] Line 35: The method create(Class?) from the
type GWT refers to the missing type GreetingServic
eAsync
[INFO]  [ERROR] Line 37: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 37: No source code is available for type
Messages; did you forget to inherit a required mod
ule?
[INFO]  [ERROR] Line 37: The method create(Class?) from the
type GWT refers to the missing type Messages
[INFO]  [ERROR] Line 37: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 43: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 45: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 123: GreetingServiceAsync cannot be
resolved to a type
[INFO]Finding entry point classes
[INFO]   [ERROR] Unable to find type 'com.test.hello.client.gwt'
[INFO]  [ERROR] Hint: Previous compiler errors may have made
this type unavailable
[INFO]  [ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module o
r a module may not be adding its source path entries properly
[INFO]

[ERROR] BUILD ERROR
[INFO]


What am I missing here?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Daniel Simons
I think the css property you are looking for is display:block. You can assign 
this to your image or wrap your image in a div (divs have block display by 
default).

Daniel Simons

On Dec 22, 2010, at 9:57 AM, Ben Imp benlee...@gmail.com wrote:

 That is kind of a tricky question to answer, as it kind of depends on
 how you want to do your whole page.
 
 The URL I posted above has interactive demos to show you how each of
 them work, so you should be able to get a good idea of which one fits
 your situation best.  Just play with them until you get a good feel
 for how they should work.
 
 Also, you needn't only use a VerticalPanel.  Any table based panel
 would work.  VerticalPanel is just the simplest, since it only allows
 a single column.
 
 -Ben
 
 On Dec 22, 9:37 am, Magnus alpineblas...@googlemail.com wrote:
 Hi,
 
 I migrated my app to strict mode, i. e. not using quirks mode panels
 like VerticalPanel.
 
 Thank you for the second recommendation. I am not used to work with
 CSS in detail. Which property should I use to position my anchors?
 
 Thanks
 Magnus
 
 On Dec 22, 4:12 pm, Ben Imp benlee...@gmail.com wrote:
 
 There are many ways of laying out a web page.  The simplest in your
 case might be to add both widgets to a VerticalPanel that then lives
 inside of that FlowPanel you mention.  You could then use CSS and make
 the VerticalPanel have little to no space between its cells.
 
 Another, and perhaps a more correct, way would be to give both of
 those elements ids or distinct CSS classes and then use CSS
 positioning.
 
 http://www.w3schools.com/css/css_positioning.asp
 
 -Ben
 
 On Dec 22, 8:25 am, Magnus alpineblas...@googlemail.com wrote:
 
 Hi,
 
 I have two Anchor objects, an image and a label, and I would like to
 put the label below the image.
 
 The only way I know is to put a BR tag between them:
 
  add (new HTML (br));
 
 But this results in to much vertical space, which I do not want.
 I also tried p.
 
 How can I put a newline without vertical space?
 
 The two Anchor objects live in a FlowPanel.
 
 Thanks
 Magnus
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post 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: gzippen all gwt output files?

2010-12-22 Thread Thomas Broyer
3) add inherits name=com.google.gwt.precompress.Precompress/ to your 
gwt.xml and the GWT compilation will automatically GZip all emitted *.html, 
*.js and *.css (by default) as additional (by default) *.gz files; so you 
only have to have MultiViews enabled in Apache (or a similar setup that 
serves the *.gz file if it exists and the client accepts gzip encoded 
responses). Note that the DefaultServlet in Jetty (6 and 7) already does 
this, and it's turned on by default: 
http://jetty.codehaus.org/jetty/jetty-6/apidocs/org/mortbay/jetty/servlet/DefaultServlet.html
  
http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/servlet/DefaultServlet.html
It's similar to your option 2) but without the extra work after gwt 
compilation (and possibly without the extra configuration, depending on 
your server).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Thomas Broyer
You can use display:block on a CSS stylesheet, or wrap eahc Anchor (or only 
one of them actually) into a SimplePanel.

(btw the extra space comes from the HTML widget, which itself is a div, 
maybe try with an InlineHTML widget instead)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: Rebind result '...' must be a class on ImageResource

2010-12-22 Thread Thomas Broyer
Your interface should extend ClientBundle, not ImageResource.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-maven-plugin 2.1.0-1 compilation error

2010-12-22 Thread Metronome / Basic



You can create a simple project with the mvn achetype:generate
# 232 with maven 3




- Original Message - 
From: Frank Bølviken frank.bolvi...@gmail.com

To: Google Web Toolkit google-web-toolkit@googlegroups.com
Sent: Wednesday, December 22, 2010 5:33 PM
Subject: gwt-maven-plugin 2.1.0-1 compilation error



Hi,

I dont know if there is anyting I have missed. But I'm trying to
create a simple GWT project with the new gwt-maven-plugin.
I run the following command:
mvn archetype:generate
-DarchetypeRepository=repo1.maven.org
-DarchetypeGroupId=org.codehaus.mojo
-DarchetypeArtifactId=gwt-maven-plugin
-DarchetypeVersion=2.1.0-1

I input the following text:
Define value for property 'groupId': : com.test.hello
Define value for property 'artifactId': : gwt
Define value for property 'version': 1.0-SNAPSHOT:
Define value for property 'package': com.test.hello:
Define value for property 'module': : gwt

The project is created successfully. But when I try to gwt:compile it,
the following error arrives:
[INFO] Compiling module com.test.hello.gwt
[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 'file:/C:/PATH/gwt/src/main/java/com/
test/hello/client/gwt.java'
[INFO]  [ERROR] Line 35: GreetingServiceAsync cannot be
resolved to a type
[INFO]  [ERROR] Line 35: No source code is available for type
GreetingServiceAsync; did you forget to inherit a
required module?
[INFO]  [ERROR] Line 35: The method create(Class?) from the
type GWT refers to the missing type GreetingServic
eAsync
[INFO]  [ERROR] Line 37: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 37: No source code is available for type
Messages; did you forget to inherit a required mod
ule?
[INFO]  [ERROR] Line 37: The method create(Class?) from the
type GWT refers to the missing type Messages
[INFO]  [ERROR] Line 37: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 43: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 45: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 123: GreetingServiceAsync cannot be
resolved to a type
[INFO]Finding entry point classes
[INFO]   [ERROR] Unable to find type 'com.test.hello.client.gwt'
[INFO]  [ERROR] Hint: Previous compiler errors may have made
this type unavailable
[INFO]  [ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module o
r a module may not be adding its source path entries properly
[INFO]

[ERROR] BUILD ERROR
[INFO]


What am I missing here?

--
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.

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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3331 - Date: 22/12/2010



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

2010-12-22 Thread kevin

I was reading through the source and it looks like it's hard-coded to
a JettyLauncher. Anyone have any ideas how to initialize server side
objects in a Junit test?



On Dec 21, 9:30 am, Kevin Aloisi kalo...@gmail.com wrote:
 Is it possible to use a custom ServletContainerLauncher with a JUnit test?

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



Re: Rebind result '...' must be a class on ImageResource

2010-12-22 Thread UseTheFork
Problem solved. Many thanks Thomas, I was getting crazy !!!

On Dec 22, 5:42 pm, Thomas Broyer t.bro...@gmail.com wrote:
 Your interface should extend ClientBundle, not ImageResource.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-maven-plugin 2.1.0-1 compilation error

2010-12-22 Thread Frank Bølviken
When i tried that, I get:

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 18.320s
[INFO] Finished at: Wed Dec 22 17:55:54 CET 2010
[INFO] Final Memory: 7M/77M
[INFO]

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-
archetype-plugin:2
.0:generate (default-cli) on project standalone-pom: Template 'src/
main/resource
s/layer.xml' not in directory 'src/main/java' - [Help 1]
[ERROR]

On Dec 22, 5:42 pm, Metronome / Basic
metronome.ba...@worldonline.fr wrote:
 You can create a simple project with the mvn achetype:generate
 # 232 with maven 3







 - Original Message -
 From: Frank B lviken frank.bolvi...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Wednesday, December 22, 2010 5:33 PM
 Subject: gwt-maven-plugin 2.1.0-1 compilation error

  Hi,

  I dont know if there is anyting I have missed. But I'm trying to
  create a simple GWT project with the new gwt-maven-plugin.
  I run the following command:
  mvn archetype:generate
  -DarchetypeRepository=repo1.maven.org
  -DarchetypeGroupId=org.codehaus.mojo
  -DarchetypeArtifactId=gwt-maven-plugin
  -DarchetypeVersion=2.1.0-1

  I input the following text:
  Define value for property 'groupId': : com.test.hello
  Define value for property 'artifactId': : gwt
  Define value for property 'version': 1.0-SNAPSHOT:
  Define value for property 'package': com.test.hello:
  Define value for property 'module': : gwt

  The project is created successfully. But when I try to gwt:compile it,
  the following error arrives:
  [INFO] Compiling module com.test.hello.gwt
  [INFO]    Validating newly compiled units
  [INFO]       [ERROR] Errors in 'file:/C:/PATH/gwt/src/main/java/com/
  test/hello/client/gwt.java'
  [INFO]          [ERROR] Line 35: GreetingServiceAsync cannot be
  resolved to a type
  [INFO]          [ERROR] Line 35: No source code is available for type
  GreetingServiceAsync; did you forget to inherit a
  required module?
  [INFO]          [ERROR] Line 35: The method create(Class?) from the
  type GWT refers to the missing type GreetingServic
  eAsync
  [INFO]          [ERROR] Line 37: Messages cannot be resolved to a type
  [INFO]          [ERROR] Line 37: No source code is available for type
  Messages; did you forget to inherit a required mod
  ule?
  [INFO]          [ERROR] Line 37: The method create(Class?) from the
  type GWT refers to the missing type Messages
  [INFO]          [ERROR] Line 37: Messages cannot be resolved to a type
  [INFO]          [ERROR] Line 43: Messages cannot be resolved to a type
  [INFO]          [ERROR] Line 45: Messages cannot be resolved to a type
  [INFO]          [ERROR] Line 123: GreetingServiceAsync cannot be
  resolved to a type
  [INFO]    Finding entry point classes
  [INFO]       [ERROR] Unable to find type 'com.test.hello.client.gwt'
  [INFO]          [ERROR] Hint: Previous compiler errors may have made
  this type unavailable
  [INFO]          [ERROR] Hint: Check the inheritance chain from your
  module; it may not be inheriting a required module o
  r a module may not be adding its source path entries properly
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  

  What am I missing here?

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post 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.

  -
  Aucun virus trouv dans ce message.
  Analyse effectu e par AVG -www.avg.fr
  Version: 10.0.1170 / Base de donn es virale: 426/3331 - Date: 22/12/2010

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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 write an XML doc with GWT?

2010-12-22 Thread Jeff Chimene
On 12/22/2010 07:30 AM, Sebe wrote:
 
 By the Panel can retrieve values through the class and documents
 XMLParser com.google.gwt.xml.client .*;
 
 Now I would write / save to file. xml.

You cannot access the local filesystem in that way. You'll have to send
the file to your server, then send it to the client using a method that
will prompt the user to save the file.

Maybe I misunderstand the ... write/save ... clause? Are you even
getting to the point where you create the XML document?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-maven-plugin 2.1.0-1 compilation error

2010-12-22 Thread Frank Bølviken
I thought it was supposed to be simpler with the new gwt-maven-plugin
2.1.0-1 with eclipse etc.. :P

On Dec 22, 5:57 pm, Frank Bølviken frank.bolvi...@gmail.com wrote:
 When i tried that, I get:

 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 18.320s
 [INFO] Finished at: Wed Dec 22 17:55:54 CET 2010
 [INFO] Final Memory: 7M/77M
 [INFO]
 
 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-
 archetype-plugin:2
 .0:generate (default-cli) on project standalone-pom: Template 'src/
 main/resource
 s/layer.xml' not in directory 'src/main/java' - [Help 1]
 [ERROR]

 On Dec 22, 5:42 pm, Metronome / Basic







 metronome.ba...@worldonline.fr wrote:
  You can create a simple project with the mvn achetype:generate
  # 232 with maven 3

  - Original Message -
  From: Frank B lviken frank.bolvi...@gmail.com
  To: Google Web Toolkit google-web-toolkit@googlegroups.com
  Sent: Wednesday, December 22, 2010 5:33 PM
  Subject: gwt-maven-plugin 2.1.0-1 compilation error

   Hi,

   I dont know if there is anyting I have missed. But I'm trying to
   create a simple GWT project with the new gwt-maven-plugin.
   I run the following command:
   mvn archetype:generate
   -DarchetypeRepository=repo1.maven.org
   -DarchetypeGroupId=org.codehaus.mojo
   -DarchetypeArtifactId=gwt-maven-plugin
   -DarchetypeVersion=2.1.0-1

   I input the following text:
   Define value for property 'groupId': : com.test.hello
   Define value for property 'artifactId': : gwt
   Define value for property 'version': 1.0-SNAPSHOT:
   Define value for property 'package': com.test.hello:
   Define value for property 'module': : gwt

   The project is created successfully. But when I try to gwt:compile it,
   the following error arrives:
   [INFO] Compiling module com.test.hello.gwt
   [INFO]    Validating newly compiled units
   [INFO]       [ERROR] Errors in 'file:/C:/PATH/gwt/src/main/java/com/
   test/hello/client/gwt.java'
   [INFO]          [ERROR] Line 35: GreetingServiceAsync cannot be
   resolved to a type
   [INFO]          [ERROR] Line 35: No source code is available for type
   GreetingServiceAsync; did you forget to inherit a
   required module?
   [INFO]          [ERROR] Line 35: The method create(Class?) from the
   type GWT refers to the missing type GreetingServic
   eAsync
   [INFO]          [ERROR] Line 37: Messages cannot be resolved to a type
   [INFO]          [ERROR] Line 37: No source code is available for type
   Messages; did you forget to inherit a required mod
   ule?
   [INFO]          [ERROR] Line 37: The method create(Class?) from the
   type GWT refers to the missing type Messages
   [INFO]          [ERROR] Line 37: Messages cannot be resolved to a type
   [INFO]          [ERROR] Line 43: Messages cannot be resolved to a type
   [INFO]          [ERROR] Line 45: Messages cannot be resolved to a type
   [INFO]          [ERROR] Line 123: GreetingServiceAsync cannot be
   resolved to a type
   [INFO]    Finding entry point classes
   [INFO]       [ERROR] Unable to find type 'com.test.hello.client.gwt'
   [INFO]          [ERROR] Hint: Previous compiler errors may have made
   this type unavailable
   [INFO]          [ERROR] Hint: Check the inheritance chain from your
   module; it may not be inheriting a required module o
   r a module may not be adding its source path entries properly
   [INFO]
   
   [ERROR] BUILD ERROR
   [INFO]
   

   What am I missing here?

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post 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.

   -
   Aucun virus trouv dans ce message.
   Analyse effectu e par AVG -www.avg.fr
   Version: 10.0.1170 / Base de donn es virale: 426/3331 - Date: 22/12/2010

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: gzippen all gwt output files?

2010-12-22 Thread Ed
Cool Thomas, didn't know that...
Are their things about gwt you don't know ? :)...you keep suprising
me.
Thanks a lot...
I will have a look hot this works with the MultiViews in apache...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: icon and label as clickable anchor?

2010-12-22 Thread Thad
Both Image and Label have addClickHandler() methods.  You can use that.

I would align two objects in a VerticalPanel with the setVerticalAlignment() 
method.  However the docs 
(http://code.google.com/webtoolkit/doc/2.0/DevGuideUiPanels.html) say 
VerticalPanelhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/VerticalPanel.htmlcan
 usually be replaced by a simple 
FlowPanelhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/FlowPanel.html(since
 block-level elements will naturally stack up vertically).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Alberto
Hi Travis,

  Is there any way that you can provide examples of your solution?

Thanks !

On Dec 21, 8:19 am, Travis Camechis camec...@gmail.com wrote:
 instead of using that I created my own custom Spring Security
 SuccessHandlers and Failure Handlers that returns JSON back to the client.
  I then let the client handle the place management based on
 success:true/false.  At this point I can also send credentials back in the
 JSON as well.







 On Tue, Dec 21, 2010 at 9:15 AM, asianCoolz second.co...@gmail.com wrote:
  I use gwt requestBuilder to query server result, if server-side spring
  checked user is not authenticated, it will forward to form-login
  login-page=/gwtapplication.html#!login       , but gwt is not
  forwarded to that page.  see below

  requestBuilder.setCallback(new RequestCallback() {

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

            �...@override
             public void onResponseReceived(final Request request,
                     final Response response) {

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

                 //response.getText() is
                 /**
                   Expires Thu, 01 Jan 1970 00:00:00 GMT
                   Set-Cookie JSESSIONID=1emk892yva1e9;Path=/
                   Locationhttp://127.0.0.1:/gwtapplication.html#!login
                  Content-Length 0
                  Server Jetty(6.1.x)

                **/

                 }

             }
         });

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

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



Re: gwt + spring security

2010-12-22 Thread Travis Camechis
create a SuccessAuthenticationHandler and FailureAuthenticationHandler

public class AjaxSuccessAuthenticationHandler implements
AuthenticationSuccessHandler {

@Override
public void onAuthenticationSuccess(HttpServletRequest request,
HttpServletResponse response, Authentication authentication)
throws IOException, ServletException {
HttpServletResponseWrapper responseWrapper = new HttpServletResponseWrapper(
response);

Writer out = responseWrapper.getWriter();
MapString, Object authResponse = new HashMapString, Object();
authResponse.put(success, true);
authResponse.put(user, SecurityContextHolder.getContext()
.getAuthentication().getName());
ListString authorities = new ArrayListString();
for (GrantedAuthority auth : SecurityContextHolder.getContext()
.getAuthentication().getAuthorities()) {
authorities.add(auth.getAuthority());
}
authResponse.put(authorities, authorities);
ObjectMapper mapper = new ObjectMapper();
mapper.writeValue(out, authResponse);
out.close();

}

}


public class AjaxAuthenticationFailureHandler implements
AuthenticationFailureHandler {

@Override
public void onAuthenticationFailure(HttpServletRequest request,
HttpServletResponse response, AuthenticationException exception)
throws IOException, ServletException {
HttpServletResponseWrapper responseWrapper = new
HttpServletResponseWrapper(response);
Writer out = responseWrapper.getWriter();
out.write({ success: false, errors:{reason: 'Login failed. Try
again.'}} );
out.close();
}

}

And your spring Security Context File

beans:bean
class=org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
id=usernamePasswordAuthenticationFilter
beans:property name=authenticationManager ref=authenticationManager /
beans:property name=filterProcessesUrl value=/j_spring_security_check
/
beans:property name=authenticationSuccessHandler
ref=successHandler /
beans:property name=authenticationFailureHandler
ref=failureHandler /
/beans:bean

beans:bean id=successHandler
class=mil.jtcoic.tb.epik.bender.server.security.AjaxSuccessAuthenticationHandler
/

beans:bean id=failureHandler
class=mil.jtcoic.tb.epik.bender.server.security.AjaxAuthenticationFailureHandler
/
On Wed, Dec 22, 2010 at 12:20 PM, Alberto albya...@gmail.com wrote:

 Hi Travis,

  Is there any way that you can provide examples of your solution?

 Thanks !

 On Dec 21, 8:19 am, Travis Camechis camec...@gmail.com wrote:
  instead of using that I created my own custom Spring Security
  SuccessHandlers and Failure Handlers that returns JSON back to the
 client.
   I then let the client handle the place management based on
  success:true/false.  At this point I can also send credentials back in
 the
  JSON as well.
 
 
 
 
 
 
 
  On Tue, Dec 21, 2010 at 9:15 AM, asianCoolz second.co...@gmail.com
 wrote:
   I use gwt requestBuilder to query server result, if server-side spring
   checked user is not authenticated, it will forward to form-login
   login-page=/gwtapplication.html#!login   , but gwt is not
   forwarded to that page.  see below
 
   requestBuilder.setCallback(new RequestCallback() {
 
  @Override
  public void onError(final Request request, final Throwable
   exception) {
  resultCallback.onFailure(exception);
  }
 
  @Override
  public void onResponseReceived(final Request request,
  final Response response) {
 
  if(response.getHeader(Content-
   Type).toLowerCase().equals(text/html.toLowerCase()))
  {
 
  //response.getText() is
  /**
Expires Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie JSESSIONID=1emk892yva1e9;Path=/
Locationhttp://
 127.0.0.1:/gwtapplication.html#!login
   Content-Length 0
   Server Jetty(6.1.x)
 
 **/
 
  }
 
  }
  });
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



-- 
You received this message because you are subscribed to the 

Re: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Magnus
Hi,

display:block does the newline as wanted without vertical space, but
it removes the centering of my image. .-/

I made the image centered by adding text-align:center to the
surrounding panel...

Magnus

On Dec 22, 5:41 pm, Thomas Broyer t.bro...@gmail.com wrote:
 You can use display:block on a CSS stylesheet, or wrap eahc Anchor (or only
 one of them actually) into a SimplePanel.

 (btw the extra space comes from the HTML widget, which itself is a div,
 maybe try with an InlineHTML widget instead)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Magnus
Strict Mode:

Maybe I misunderstood something, but I learned that all table-based
layouts are bad for Strict Mode, i. e. VerticalPanel, HorizontalPanel,
but also FlexTable and so on...

Is this wrong?

Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-maven-plugin 2.1.0-1 compilation error

2010-12-22 Thread Coelho
though I don't know why but I 'v used this command with succes several times 
but I'v just tried it on 2 Pcs ( linux debian and windows xp ) with

the same error ?

I can still mvn package on existin projects !

Patrick

- Original Message - 
From: Frank Bølviken frank.bolvi...@gmail.com

To: Google Web Toolkit google-web-toolkit@googlegroups.com
Sent: Wednesday, December 22, 2010 6:13 PM
Subject: Re: gwt-maven-plugin 2.1.0-1 compilation error


I thought it was supposed to be simpler with the new gwt-maven-plugin
2.1.0-1 with eclipse etc.. :P

On Dec 22, 5:57 pm, Frank Bølviken frank.bolvi...@gmail.com wrote:

When i tried that, I get:

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 18.320s
[INFO] Finished at: Wed Dec 22 17:55:54 CET 2010
[INFO] Final Memory: 7M/77M
[INFO]

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-
archetype-plugin:2
.0:generate (default-cli) on project standalone-pom: Template 'src/
main/resource
s/layer.xml' not in directory 'src/main/java' - [Help 1]
[ERROR]

On Dec 22, 5:42 pm, Metronome / Basic







metronome.ba...@worldonline.fr wrote:
 You can create a simple project with the mvn achetype:generate
 # 232 with maven 3

 - Original Message -
 From: Frank B lviken frank.bolvi...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Wednesday, December 22, 2010 5:33 PM
 Subject: gwt-maven-plugin 2.1.0-1 compilation error

  Hi,

  I dont know if there is anyting I have missed. But I'm trying to
  create a simple GWT project with the new gwt-maven-plugin.
  I run the following command:
  mvn archetype:generate
  -DarchetypeRepository=repo1.maven.org
  -DarchetypeGroupId=org.codehaus.mojo
  -DarchetypeArtifactId=gwt-maven-plugin
  -DarchetypeVersion=2.1.0-1

  I input the following text:
  Define value for property 'groupId': : com.test.hello
  Define value for property 'artifactId': : gwt
  Define value for property 'version': 1.0-SNAPSHOT:
  Define value for property 'package': com.test.hello:
  Define value for property 'module': : gwt

  The project is created successfully. But when I try to gwt:compile it,
  the following error arrives:
  [INFO] Compiling module com.test.hello.gwt
  [INFO] Validating newly compiled units
  [INFO] [ERROR] Errors in 'file:/C:/PATH/gwt/src/main/java/com/
  test/hello/client/gwt.java'
  [INFO] [ERROR] Line 35: GreetingServiceAsync cannot be
  resolved to a type
  [INFO] [ERROR] Line 35: No source code is available for type
  GreetingServiceAsync; did you forget to inherit a
  required module?
  [INFO] [ERROR] Line 35: The method create(Class?) from the
  type GWT refers to the missing type GreetingServic
  eAsync
  [INFO] [ERROR] Line 37: Messages cannot be resolved to a type
  [INFO] [ERROR] Line 37: No source code is available for type
  Messages; did you forget to inherit a required mod
  ule?
  [INFO] [ERROR] Line 37: The method create(Class?) from the
  type GWT refers to the missing type Messages
  [INFO] [ERROR] Line 37: Messages cannot be resolved to a type
  [INFO] [ERROR] Line 43: Messages cannot be resolved to a type
  [INFO] [ERROR] Line 45: Messages cannot be resolved to a type
  [INFO] [ERROR] Line 123: GreetingServiceAsync cannot be
  resolved to a type
  [INFO] Finding entry point classes
  [INFO] [ERROR] Unable to find type 'com.test.hello.client..gwt'
  [INFO] [ERROR] Hint: Previous compiler errors may have made
  this type unavailable
  [INFO] [ERROR] Hint: Check the inheritance chain from your
  module; it may not be inheriting a required module o
  r a module may not be adding its source path entries properly
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  

  What am I missing here?

  --
  You received this message because you are subscribed to the Google 
  Groups

  Google Web Toolkit group.
  To post 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.

  -
  Aucun virus trouv dans ce message.
  Analyse effectu e par AVG -www.avg.fr
  Version: 10.0.1170 / Base de donn es virale: 426/3331 - Date: 
  22/12/2010


--
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.

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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 

Re: Modular rpc blues

2010-12-22 Thread Andreas Horst
Alright, now I get it!

To bundle RPC functionality in a reusable (.jar) GWT module you only need to
declare any RPC servlet in the module's module descriptor. That's all.
gwt:mergewebxml will create appropriate servlet mappings in the target
web.xml. It's really that easy.

Make sure the .jar really  contains the module descriptor (*.gwt.xml) and
that the RPC servlets are actually declared in it. If you try it with a
module that used to be an application and only declared its RPC servlets
directly in its web.xml you won't be able to use them via gwt:mergewebxml
AFAIK.

Check the contents of the .jar file. Does it contain the module descriptor?
Does the module descriptor contain servlet tags for the RPCs?

2010/12/22 Metronome / Basic metronome.ba...@worldonline.fr

  In fact I simply want to be able to use a jar containing GWT-RPC code in
 any webapp

 As I had no succes with my code

 I tried to rely on maven-googlewebtoolkit2-sample
 that is a HelloWorld RPC example with code in different modules.

 here is the parent pom

 I did'nt change the code , I just modified the poms


 - Original Message -
 *From:* Andreas Horst horst.andrea...@googlemail.com
 *To:* google-web-toolkit@googlegroups.com
 *Sent:* Wednesday, December 22, 2010 1:52 PM
 *Subject:* Re: Modular rpc blues

 I just took a look at your configuration files.

 Actually I can't tell much from just them especially since I don't have the
 parent POM. Anyway I'm a bit confused about what you are trying to do.

 Are you only trying to compile the sample project or are you trying to
 reuse something of it? What exactly do you mean with project war rpc and
 server or war server? A project that packages to a .war file (like GWT
 applications) or a .war file you are trying to include via module
 inheritance? I'm sorry but it's really not clear to me.

 2010/12/22 Metronome / Basic metronome.ba...@worldonline.fr

  Hello
 Thanks for trying to help me !

 One of my tries is : compile the maven-googlewebtoolkit2-sample
 using gwt-maven-plugin
 it was a three modules project war rpc and server
 I reduced it to war server , by merging rpc and server

 I join the pom and web.xml of the war


 mvn package report

 ERROR] Failed to execute goal
 org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:mergewebxml (default) on
 project
 maven-googlewebtoolkit2-sample-war: Unable to merge web.xml:
 NullPointerException - [Help 1]







   - Original Message -
 *From:* Andreas Horst horst.andrea...@googlemail.com
 *To:* google-web-toolkit@googlegroups.com
 *Sent:* Wednesday, December 22, 2010 12:26 AM
 *Subject:* Re: Modular rpc blues

 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 
 herehttp://www.gwtapps.com/doc/html/com.google.gwt..doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html
  for
 details about the module descriptor, note the servlet 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 servlet 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 horst.andrea...@googlemail.com



 2010/12/21 Thomas Broyer t.bro...@gmail.com



 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 

Re: Saving state when redirecting to another url

2010-12-22 Thread Pablo G.F
Up

On 22 dic, 11:43, Pablo G.F blay...@gmail.com wrote:
 Hello:

 I´ve a project with GWT + Spring + Hibernate.  I have the next issue: i
 ´m redirecting from one page to another by Window.Location.assign from
 the GWT subproject (after that, is the Spring controller which manages
 the redirect). But now I wanna be able to return to last page and
 save the state. I mean, I have a form which filters results into a
 grid. Then I click a button which redirects me to another page. Then I
 click a go back button in my new page (a gwt button, not the browser
 one) and I want to see the same values I´ve used in the filters.

 I´ve read a little about GWT history ,but I was told that the problem
 is that  the controller which manages redirections is Spring's and not
 GWT's.

 Passing all values as parameters in the url is not an option, because
 in some cases there are a lot of them.

 Any idea?

 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: Modular rpc blues

2010-12-22 Thread Coelho
I'll Check and let you know
sorry for the trouble

Patrick
  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 6:41 PM
  Subject: Re: Modular rpc blues


  Alright, now I get it!



  To bundle RPC functionality in a reusable (.jar) GWT module you only need to 
declare any RPC servlet in the module's module descriptor. That's all. 
gwt:mergewebxml will create appropriate servlet mappings in the target 
web.xml. It's really that easy.


  Make sure the .jar really  contains the module descriptor (*.gwt.xml) and 
that the RPC servlets are actually declared in it. If you try it with a module 
that used to be an application and only declared its RPC servlets directly in 
its web.xml you won't be able to use them via gwt:mergewebxml AFAIK.


  Check the contents of the .jar file. Does it contain the module descriptor? 
Does the module descriptor contain servlet tags for the RPCs?


  2010/12/22 Metronome / Basic metronome.ba...@worldonline.fr

In fact I simply want to be able to use a jar containing GWT-RPC code in 
any webapp

As I had no succes with my code 

I tried to rely on maven-googlewebtoolkit2-sample
that is a HelloWorld RPC example with code in different modules.

here is the parent pom 

I did'nt change the code , I just modified the poms 

  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 1:52 PM
  Subject: Re: Modular rpc blues


  I just took a look at your configuration files. 


  Actually I can't tell much from just them especially since I don't have 
the parent POM. Anyway I'm a bit confused about what you are trying to do.


  Are you only trying to compile the sample project or are you trying to 
reuse something of it? What exactly do you mean with project war rpc and 
server or war server? A project that packages to a .war file (like GWT 
applications) or a .war file you are trying to include via module inheritance? 
I'm sorry but it's really not clear to me.


  2010/12/22 Metronome / Basic metronome.ba...@worldonline.fr

Hello
Thanks for trying to help me !

One of my tries is : compile the maven-googlewebtoolkit2-sample
using gwt-maven-plugin
it was a three modules project war rpc and server
I reduced it to war server , by merging rpc and server

I join the pom and web.xml of the war


mvn package report

ERROR] Failed to execute goal 
org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:mergewebxml (default) on 
project 
maven-googlewebtoolkit2-sample-war: Unable to merge web.xml: 
NullPointerException - [Help 1]





 
  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 12:26 AM
  Subject: Re: Modular rpc blues


  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 servlet 
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 servlet 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 horst.andrea...@googlemail.com




2010/12/21 Thomas Broyer t.bro...@gmail.com 




  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.


best way to implement label for

2010-12-22 Thread Uberto Barbini
Hi

I have this in my uibindings:
gwt:Label
gwt:Textbox ui:field=name


and they are translated as:
div class=gwt-Label..
input type=text tabindex=0 class=gwt-TextBox ...

but I want to have this html (at least on modern browsers):
label for=userNameName:/label
input type=text id=userName/

which is the best way?


Uberto

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-maven-plugin 2.1.0-1 compilation error

2010-12-22 Thread Coelho

Somehow the plugin tha generates the 232 has been changed
( it asket for a version after the 232 and doesn't ask anymore )

You can build webapp for gwt with mvn archetype:generate
# 15
# 276
# 60
but 232 was the only one to generate a pom with gwt 2.1

you can probably change the version in 15 60 and 276

Patrick

- Original Message - 
From: Coelho metronome.ba...@worldonline.fr

To: google-web-toolkit@googlegroups.com
Sent: Wednesday, December 22, 2010 6:38 PM
Subject: Re: gwt-maven-plugin 2.1.0-1 compilation error


though I don't know why but I 'v used this command with succes several times
but I'v just tried it on 2 Pcs ( linux debian and windows xp ) with
the same error ?

I can still mvn package on existin projects !

Patrick

- Original Message - 
From: Frank Bølviken frank.bolvi...@gmail.com

To: Google Web Toolkit google-web-toolkit@googlegroups.com
Sent: Wednesday, December 22, 2010 6:13 PM
Subject: Re: gwt-maven-plugin 2.1.0-1 compilation error


I thought it was supposed to be simpler with the new gwt-maven-plugin
2.1.0-1 with eclipse etc.. :P

On Dec 22, 5:57 pm, Frank Bølviken frank.bolvi...@gmail.com wrote:

When i tried that, I get:

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 18.320s
[INFO] Finished at: Wed Dec 22 17:55:54 CET 2010
[INFO] Final Memory: 7M/77M
[INFO]

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-
archetype-plugin:2
.0:generate (default-cli) on project standalone-pom: Template 'src/
main/resource
s/layer.xml' not in directory 'src/main/java' - [Help 1]
[ERROR]

On Dec 22, 5:42 pm, Metronome / Basic







metronome.ba...@worldonline.fr wrote:
 You can create a simple project with the mvn achetype:generate
 # 232 with maven 3

 - Original Message -
 From: Frank B lviken frank.bolvi...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Wednesday, December 22, 2010 5:33 PM
 Subject: gwt-maven-plugin 2.1.0-1 compilation error

  Hi,

  I dont know if there is anyting I have missed. But I'm trying to
  create a simple GWT project with the new gwt-maven-plugin.
  I run the following command:
  mvn archetype:generate
  -DarchetypeRepository=repo1.maven.org
  -DarchetypeGroupId=org.codehaus.mojo
  -DarchetypeArtifactId=gwt-maven-plugin
  -DarchetypeVersion=2.1.0-1

  I input the following text:
  Define value for property 'groupId': : com.test.hello
  Define value for property 'artifactId': : gwt
  Define value for property 'version': 1.0-SNAPSHOT:
  Define value for property 'package': com.test.hello:
  Define value for property 'module': : gwt

  The project is created successfully. But when I try to gwt:compile it,
  the following error arrives:
  [INFO] Compiling module com.test.hello.gwt
  [INFO] Validating newly compiled units
  [INFO] [ERROR] Errors in 'file:/C:/PATH/gwt/src/main/java/com/
  test/hello/client/gwt.java'
  [INFO] [ERROR] Line 35: GreetingServiceAsync cannot be
  resolved to a type
  [INFO] [ERROR] Line 35: No source code is available for type
  GreetingServiceAsync; did you forget to inherit a
  required module?
  [INFO] [ERROR] Line 35: The method create(Class?) from the
  type GWT refers to the missing type GreetingServic
  eAsync
  [INFO] [ERROR] Line 37: Messages cannot be resolved to a type
  [INFO] [ERROR] Line 37: No source code is available for type
  Messages; did you forget to inherit a required mod
  ule?
  [INFO] [ERROR] Line 37: The method create(Class?) from the
  type GWT refers to the missing type Messages
  [INFO] [ERROR] Line 37: Messages cannot be resolved to a type
  [INFO] [ERROR] Line 43: Messages cannot be resolved to a type
  [INFO] [ERROR] Line 45: Messages cannot be resolved to a type
  [INFO] [ERROR] Line 123: GreetingServiceAsync cannot be
  resolved to a type
  [INFO] Finding entry point classes
  [INFO] [ERROR] Unable to find type 'com.test.hello.client..gwt'
  [INFO] [ERROR] Hint: Previous compiler errors may have made
  this type unavailable
  [INFO] [ERROR] Hint: Check the inheritance chain from your
  module; it may not be inheriting a required module o
  r a module may not be adding its source path entries properly
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  

  What am I missing here?

  --
  You received this message because you are subscribed to the Google 
  Groups

  Google Web Toolkit group.
  To post 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.

  -
  Aucun virus trouv dans ce message.
  Analyse effectu e par AVG -www.avg.fr
  Version: 

Re: Modular rpc blues

2010-12-22 Thread Andreas Horst
Don't worry.

I know this is not a trivial but nonetheless vital aspect of efficient
development of reusable GWT modules. I also think that these topics are not
well documented, at least at the time I found myself struggling with GWT
module inheritance (+ Maven).

2010/12/22 Coelho metronome.ba...@worldonline.fr

  I'll Check and let you know
 sorry for the trouble

 Patrick

 - Original Message -
 *From:* Andreas Horst horst.andrea...@googlemail.com
 *To:* google-web-toolkit@googlegroups.com
 *Sent:* Wednesday, December 22, 2010 6:41 PM
 *Subject:* Re: Modular rpc blues

 Alright, now I get it!

 To bundle RPC functionality in a reusable (.jar) GWT module you only need
 to declare any RPC servlet in the module's module descriptor. That's all.
 gwt:mergewebxml will create appropriate servlet mappings in the target
 web.xml. It's really that easy.

 Make sure the .jar really  contains the module descriptor (*.gwt.xml) and
 that the RPC servlets are actually declared in it. If you try it with a
 module that used to be an application and only declared its RPC servlets
 directly in its web.xml you won't be able to use them via gwt:mergewebxml
 AFAIK.

 Check the contents of the .jar file. Does it contain the module descriptor?
 Does the module descriptor contain servlet tags for the RPCs?

 2010/12/22 Metronome / Basic metronome.ba...@worldonline.fr

  In fact I simply want to be able to use a jar containing GWT-RPC code in
 any webapp

 As I had no succes with my code

 I tried to rely on maven-googlewebtoolkit2-sample
 that is a HelloWorld RPC example with code in different modules.

 here is the parent pom

 I did'nt change the code , I just modified the poms


  - Original Message -
 *From:* Andreas Horst horst.andrea...@googlemail.com
 *To:* google-web-toolkit@googlegroups.com
   *Sent:* Wednesday, December 22, 2010 1:52 PM
 *Subject:* Re: Modular rpc blues

 I just took a look at your configuration files.

 Actually I can't tell much from just them especially since I don't have
 the parent POM. Anyway I'm a bit confused about what you are trying to do.

 Are you only trying to compile the sample project or are you trying to
 reuse something of it? What exactly do you mean with project war rpc and
 server or war server? A project that packages to a .war file (like GWT
 applications) or a .war file you are trying to include via module
 inheritance? I'm sorry but it's really not clear to me.

 2010/12/22 Metronome / Basic metronome.ba...@worldonline.fr

  Hello
 Thanks for trying to help me !

 One of my tries is : compile the maven-googlewebtoolkit2-sample
 using gwt-maven-plugin
 it was a three modules project war rpc and server
 I reduced it to war server , by merging rpc and server

 I join the pom and web.xml of the war


 mvn package report

 ERROR] Failed to execute goal
 org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:mergewebxml (default) on
 project
 maven-googlewebtoolkit2-sample-war: Unable to merge web.xml:
 NullPointerException - [Help 1]







   - Original Message -
 *From:* Andreas Horst horst.andrea...@googlemail.com
 *To:* google-web-toolkit@googlegroups.com
 *Sent:* Wednesday, December 22, 2010 12:26 AM
 *Subject:* Re: Modular rpc blues

 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 
 herehttp://www.gwtapps.com/doc/html/com.google.gwt..doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html
  for
 details about the module descriptor, note the servlet 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 servlet 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 horst.andrea...@googlemail.com



 2010/12/21 Thomas Broyer t.bro...@gmail.com



 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 

Re: best way to implement label for

2010-12-22 Thread Gal Dolber
g:HTMLPanel
label for=nameName/label
gwt:Textbox ui:field=name name=name
/g:HTMLPanel

On Wed, Dec 22, 2010 at 2:51 PM, Uberto Barbini ube...@ubiland.net wrote:

 Hi

 I have this in my uibindings:
 gwt:Label
 gwt:Textbox ui:field=name


 and they are translated as:
 div class=gwt-Label..
 input type=text tabindex=0 class=gwt-TextBox ...

 but I want to have this html (at least on modern browsers):
 label for=userNameName:/label
 input type=text id=userName/

 which is the best way?


 Uberto

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




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

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

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



Re: best way to implement label for

2010-12-22 Thread Gal Dolber
PD: I think there is no Widget with underline label implementation

On Wed, Dec 22, 2010 at 3:00 PM, Gal Dolber gal.dol...@gmail.com wrote:

 g:HTMLPanel
 label for=nameName/label
 gwt:Textbox ui:field=name name=name
 /g:HTMLPanel


 On Wed, Dec 22, 2010 at 2:51 PM, Uberto Barbini ube...@ubiland.netwrote:

 Hi

 I have this in my uibindings:
 gwt:Label
 gwt:Textbox ui:field=name


 and they are translated as:
 div class=gwt-Label..
 input type=text tabindex=0 class=gwt-TextBox ...

 but I want to have this html (at least on modern browsers):
 label for=userNameName:/label
 input type=text id=userName/

 which is the best way?


 Uberto

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




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

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







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

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

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



Re: gwt-maven-plugin 2.1.0-1 compilation error

2010-12-22 Thread Frank Bølviken
I just dont understund why I cant use the gwt-maven-plugin 2.1.0-1,
which comes with gwt 2.1.0 and is easily integrated with eclipse etc?
Can you please try and run that command, and give me your findings?

Frank

On Dec 22, 6:54 pm, Coelho metronome.ba...@worldonline.fr wrote:
 Somehow the plugin tha generates the 232 has been changed
 ( it asket for a version after the 232 and doesn't ask anymore )

 You can build webapp for gwt with mvn archetype:generate
 # 15
 # 276
 # 60
 but 232 was the only one to generate a pom with gwt 2.1

 you can probably change the version in 15 60 and 276

 Patrick







 - Original Message -
 From: Coelho metronome.ba...@worldonline.fr
 To: google-web-toolkit@googlegroups.com
 Sent: Wednesday, December 22, 2010 6:38 PM
 Subject: Re: gwt-maven-plugin 2.1.0-1 compilation error

 though I don't know why but I 'v used this command with succes several times
 but I'v just tried it on 2 Pcs ( linux debian and windows xp ) with
 the same error ?

 I can still mvn package on existin projects !

 Patrick

 - Original Message -
 From: Frank B lviken frank.bolvi...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Wednesday, December 22, 2010 6:13 PM
 Subject: Re: gwt-maven-plugin 2.1.0-1 compilation error

 I thought it was supposed to be simpler with the new gwt-maven-plugin
 2.1.0-1 with eclipse etc.. :P

 On Dec 22, 5:57 pm, Frank B lviken frank.bolvi...@gmail.com wrote:
  When i tried that, I get:

  [INFO] BUILD FAILURE
  [INFO]
  
  [INFO] Total time: 18.320s
  [INFO] Finished at: Wed Dec 22 17:55:54 CET 2010
  [INFO] Final Memory: 7M/77M
  [INFO]
  
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-
  archetype-plugin:2
  .0:generate (default-cli) on project standalone-pom: Template 'src/
  main/resource
  s/layer.xml' not in directory 'src/main/java' - [Help 1]
  [ERROR]

  On Dec 22, 5:42 pm, Metronome / Basic

  metronome.ba...@worldonline.fr wrote:
   You can create a simple project with the mvn achetype:generate
   # 232 with maven 3

   - Original Message -
   From: Frank B lviken frank.bolvi...@gmail.com
   To: Google Web Toolkit google-web-toolkit@googlegroups.com
   Sent: Wednesday, December 22, 2010 5:33 PM
   Subject: gwt-maven-plugin 2.1.0-1 compilation error

Hi,

I dont know if there is anyting I have missed. But I'm trying to
create a simple GWT project with the new gwt-maven-plugin.
I run the following command:
mvn archetype:generate
-DarchetypeRepository=repo1.maven.org
-DarchetypeGroupId=org.codehaus.mojo
-DarchetypeArtifactId=gwt-maven-plugin
-DarchetypeVersion=2.1.0-1

I input the following text:
Define value for property 'groupId': : com.test.hello
Define value for property 'artifactId': : gwt
Define value for property 'version': 1.0-SNAPSHOT:
Define value for property 'package': com.test.hello:
Define value for property 'module': : gwt

The project is created successfully. But when I try to gwt:compile it,
the following error arrives:
[INFO] Compiling module com.test.hello.gwt
[INFO] Validating newly compiled units
[INFO] [ERROR] Errors in 'file:/C:/PATH/gwt/src/main/java/com/
test/hello/client/gwt.java'
[INFO] [ERROR] Line 35: GreetingServiceAsync cannot be
resolved to a type
[INFO] [ERROR] Line 35: No source code is available for type
GreetingServiceAsync; did you forget to inherit a
required module?
[INFO] [ERROR] Line 35: The method create(Class?) from the
type GWT refers to the missing type GreetingServic
eAsync
[INFO] [ERROR] Line 37: Messages cannot be resolved to a type
[INFO] [ERROR] Line 37: No source code is available for type
Messages; did you forget to inherit a required mod
ule?
[INFO] [ERROR] Line 37: The method create(Class?) from the
type GWT refers to the missing type Messages
[INFO] [ERROR] Line 37: Messages cannot be resolved to a type
[INFO] [ERROR] Line 43: Messages cannot be resolved to a type
[INFO] [ERROR] Line 45: Messages cannot be resolved to a type
[INFO] [ERROR] Line 123: GreetingServiceAsync cannot be
resolved to a type
[INFO] Finding entry point classes
[INFO] [ERROR] Unable to find type 'com.test.hello.client..gwt'
[INFO] [ERROR] Hint: Previous compiler errors may have made
this type unavailable
[INFO] [ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module o
r a module may not be adding its source path entries properly
[INFO]

[ERROR] BUILD ERROR
[INFO]


What am I missing here?

--
You received this message 

Re: How to add column titles for widget CellBrowser?

2010-12-22 Thread Y2i
I would also be interested to learn how to add headers to CellBrowser
columns without adding dummy header data items inside sub-classes of
the AbstractDataProvider.

Thank you in advance.

On Nov 26, 5:30 am, Łukasz Bachman lukaszbach...@gmail.com wrote:
 Hi guys,
 we are struggling with adding some header toCellBrowser. There is
 nothing in API which would support that, also we did try extending
 baseCellBrowserto get our hands on some protected content but no
 luck there either.
 Did anyone manage to find the solution?

 Regards,
 Łukasz

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Matthew Hill
I get the connection error too. It works just fine in Firefox.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: 2.1.1 fails in SimpleRequestProcessor.processInvocationMessages when nothing to invoke

2010-12-22 Thread Andy
Yep, I'm attempting to do the same thing and am having the same
problems. However, by adding the following lines of code seems to fix
the issue:

if (invlist == null) {
  return;
}

On Dec 20, 8:34 pm, Cory Prowse c...@prowse.com wrote:
 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.reques 
 tfactory.server.RequestFactoryServlet|_ThreadID=28;_ThreadName=Thread-1;|Un 
 expected error
 java.lang.NullPointerException
         at 
 com.google.gwt.requestfactory.server.SimpleRequestProcessor.processInvocati 
 onMessages(SimpleRequestProcessor.java:414)
         at 
 com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleR 
 equestProcessor.java:218)
         at 
 com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleR 
 equestProcessor.java:125)
         at 
 com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFa 
 ctoryServlet.java:118)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
 ---

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

  -- Cory

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



Re: DockLayoutPanel inside UiBinder requires height=100%

2010-12-22 Thread Ryan Rathsam
Hi Jeff,

Thank you thank you thank you. I've been searching on and off for the
past 2-3 days for this information. Couldn't figure out why the
DockLayoutPanel refused to show up, tried futzing with the CSS to no
avail. You have helped restore a bit of sanity to this whole process.

Thanks again,

Ryan

On Nov 4, 9:29 pm, Jeff Schnitzer j...@infohazard.org wrote:
 This may save someone the ~4 hours it cost me:

 Can't figure out why yourDockLayoutPaneldoesn't render when you
 place it anywhere except *directly* inside a RootLayoutPanel?  It
 needs height=100%:

 g:FlowPanel
         g:DockLayoutPanelunit=PX height=100%
                 ...
         /g:DockLayoutPanel
 /g:FlowPanel

 Without this height, DockLayoutPanels inside any other widget
 (including nested DockLayoutPanels) collapse to 0.

 Today sucked.

 Jeff

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Eric Ayers
This library contains google maps v2 bindings:

http://code.google.com/p/gwt-google-apis/

v3 bindings haven't been released yet

On Wed, Dec 22, 2010 at 8:40 AM, pieceovcake bira...@gmail.com wrote:
 Yes i've seen these but all the example javascript v3.  I want to use the
 java maps api library from within a gwt application.  Thanks for you help.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post 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: DockLayoutPanel inside UiBinder requires height=100%

2010-12-22 Thread Thomas Broyer
See 
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Recipes 
Using 
a LayoutPanel without RootLayoutPanel
See also 
http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideUiPanels.html#Resize
 which 
says The purpose of these two interfaces is to form an unbroken hierarchy 
between all widgets that implement RequiresResize and the RootLayoutPanel, 
which listens for any changes (such as the browser window resizing) that 
could affect the size of widgets in the hierarchy.
(note that there's a link from the RootLayoutPanel description in the same 
doc: This panel is a singleton that serves as a root container to which all 
other layout panels should be attached (see RequiresResize and 
ProvidesResize below for details))
So it really *is* documented.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: HTML Link Cell

2010-12-22 Thread Greg Dougherty
Hi John,

Why SafeHtmlCell rather than AbstractCell?  I did it in AbstractCell,
and it works, but I'm certainly happy to hear how it could work
better.

Thanks for the pointer to SafeHtmlTemplates.  I'll have to look in to
them.

Greg

On Dec 22, 8:17 am, John LaBanca jlaba...@google.com wrote:
 I recommend that you use SafeHtmlCell, and be careful to ensure that the
 link is in fact safe.  Check out
 SafeHtmlTemplateshttp://google-web-toolkit.googlecode.com/svn-history/r9089/javadoc/2
 to
 generate a SafeHtml string from a potentially unsafe URL and user text.

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

 On Tue, Dec 21, 2010 at 10:57 PM, GregD gre...@gmail.com wrote:
  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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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



Flextable with a locked in position header row despite scrolling

2010-12-22 Thread Sunit Katkar
I have a flextable. Its inside a scrollpanel because the number of rows is
more than what can be shown at a time. So user has to scroll up and down to
view all contents.

Now is there a way where I can keep the header row locked in its original
position while rest of the rows are scrolled up and down?

I have seen such tables with some javascript widgets, and I think in
SmartGWT too. However, I want to do this with  GWT.

Is it possible? Any hints?


- Sunit Katkar
http://sunitkatkar.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.



Re: can AutoBean detect changes ?

2010-12-22 Thread zixzigma
AutoBean documentation states that
AutoBeanUtils.diff() performs a shallow comparison.

is this enough ?
if we have a graph of AutoBean/EntityProxies,
with 3 level of connections/references,

both AutoBean/and EntityProxies are only shallow compared ?

is this the desired behaviour all the time,
or is there a way/need to change this default behaviour ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: Flextable with a locked in position header row despite scrolling

2010-12-22 Thread ciosbel
The simplest thing (keeping you original idea) is to use a flextable
for the header and a flextable (with no header) for the content.
See for example http://gwt.google.com/samples/Mail/Mail.html
Code
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.1/samples/mail/src/com/google/gwt/sample/mail/client/MailList.ui.xml?r=9478
Maybe you can even still use one flextable and play around with fixed
positioning of the first row, but its hacky.

But it's a dummy example, if you need to interact or simply manage
displayed content (paging/caching/...) i suggest to use a different
widget, like
CellTable (http://gwt.google.com/samples/Showcase/Showcase.html#!
CwCellTable)
or
PagingScrollTable from the incubator suite (http://
collectionofdemos.appspot.com/demo/
com.google.gwt.gen2.demo.scrolltable.PagingScrollTableDemo/
PagingScrollTableDemo.html)

The latter will be supressed in a future release of gwt, so keep it in
mind.

ciosbel.
On 22 Dic, 22:56, Sunit Katkar sunitkat...@gmail.com wrote:
 I have a flextable. Its inside a scrollpanel because the number of rows is
 more than what can be shown at a time. So user has to scroll up and down to
 view all contents.

 Now is there a way where I can keep the header row locked in its original
 position while rest of the rows are scrolled up and down?

 I have seen such tables with some javascript widgets, and I think in
 SmartGWT too. However, I want to do this with  GWT.

 Is it possible? Any hints?

 - Sunit Katkarhttp://sunitkatkar.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.



Centering an image in a SimplePanel

2010-12-22 Thread UseTheFork
Hi,

What is the best way to put an image at the center of a SimplePanel? I
am looking for a code example.

Should I try to use a HTMLPanel instead of a SimplePanel? If yes how?

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: Centering an image in a SimplePanel

2010-12-22 Thread UseTheFork
I forgot to mention: I use Uibinder.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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.



Custom Maps

2010-12-22 Thread Alberto
Hi everybody!

I need an example about the creation of a Custom Map with Google Maps
1.1 Library...
I want to create a custom map with my pictures...

I was reading
Class MapType (http://gwt-google-apis.googlecode.com/svn/javadoc/maps/
1.1/com/google/gwt/maps/client/MapType.html)

and

Class TileLayer (http://gwt-google-apis.googlecode.com/svn/javadoc/
maps/1.1/com/google/gwt/maps/client/TileLayer.html)

but I'need an example to see how they works...

Can anyone help me with a little example?

Thank You very much!

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

2010-12-22 Thread zixzigma
Thank You,

You can find the files here:

web.xml:
http://paste.pocoo.org/show/308623/

applicationContext.xml :
http://paste.pocoo.org/show/308625/


webmvc-config.xml:
http://paste.pocoo.org/show/308626/

My JavaCode:
http://paste.pocoo.org/show/308639/

this code lives on the server side,
using RequestFactory mechanism, the call from the GWT Client,
ends up accessing this class (SpringServiceLocator), (through
RequestFactoryServlet)
to get hold of a Bean, this Bean is then used to perform the service
required to fulfill client's request.
and then hand in the result to RequestFactoryServlet to get it back to
the client

this class' responsibility is to lookup Spring's Application Context,
to find the Bean, and pass it to
RequestFactoryServlet.
this is done through look up of Spring's ApplicationContext.

The problem comes from GWT's RequestFactoryServlet taking full
control.

GWT's RequestFactoryServlet:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/requestfactory/server/RequestFactoryServlet.html

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?com/google/gwt/requestfactory/server/package-summary.html


just to clarify,
I am not using GWT-RPC,
I am using RequestFactory mechanism,
which uses RequestFactoryServlet.

my Spring applicationContext.xml
is correctly configured, when I perform a programmatic look-up
using : ClassPathXmlApplicationContext, it works, also
when unit-testing server-side spring code in isolation.

however, when trying to do end-to-end integration testing within
JRE and GWTTestCase, when the client call from GWT client reaches the
Server
(using RequestFactoryServlet),
it would naturally be Spring's turn to take over,
and I expected the ApplicationContext being automatically initialized,
because DispatcherServlet supposed to be the first Servlet to take
control,

BUT the client call directly goes to GWT's RequestFactoryServlet.
and Spring's applicationContext never gets initialized.

the @Autowired ApplicationContext remains Null, and result in NPE.

in the service method if I programmatically initialize
ApplicationContext,
through ClassPathXmlApplicationContext, AppContext gets loaded, and
everything works.

But this is strange, Normally one does not need to manually initialize
Spring's context in a service method.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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 force Spring to intercept RequestFactoryServlet

2010-12-22 Thread zixzigma
GWT's RequestFactoryServlet source code:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java

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



Re: How do you deal with dead EvenHandlers?

2010-12-22 Thread Jeff Schwartz
Hi Thomas,

I hope you don't mind me following up again on this topic but after
implementing onUnload to remove event handlers (which worked, of course) I
realized that this approach is inappropriate for my application. The reason
is that my application is basically modeless - meaning that I can remove a
widget from the dom and hold onto the widget object via a reference, replace
the widget in the dom with another widget and at some future time restore
the widget that I removed.

Here's a use case for such a scenario: Composite A which is a singleton is
created and once attached to the dom it will remain attached for the
lifetime of the application. Composite A is a view of a list of data models
and when the user selects a data model to edit from the list Composite A
hides itself and then shows a sub view which is Composite B that allows
editing of the data model's attributes. Composite B has numerous list box
widgets that contain values that can be created from other Compsosite views
in the application. At some point the user needs to select a value from one
of these list boxes but the value doesn't exist so the user switches to a
different view, Compsite Z, which replaces Composite A by removing it from
the dom and inserting itself into the dom. While in Composite Z's view the
user adds a new value. Once she saves the value Composite Z will fire off an
event notifying that a new value now exists which Composite B handles even
though at the time it handles the event it is not attached to the dom. The
user then switches back to view Composite B which replaces Composite Z by
removing it from the dom and adding itself back to the dom and in the list
box the user now sees the new value which Composite B added to it when it
handled the event that Composite Z had fired.

As the above use case demonstrates, my application is extremely modeless and
is very similar to a desktop application in that regard. In order to get
onUnload to work for my use case required that Composite B check a boolen
attribute which is only set to true when the user actually closes Composite
B which sets the boolean to true and if true actually calls removeHandler.

Do you think the current GWT implementation of MVP would be appropriate and
be able to handle my use case of using modeless views as described above?

Thanks in advance,
Jeff

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

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

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




-- 
*Jeff Schwartz*

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



Re: How to force Spring to intercept RequestFactoryServlet

2010-12-22 Thread Ashton Thomas
Okay, well it looks like you have your RequestFactory configured
directly in your web.xml which is bypassing Spring. Forgiving me if I
am off or telling you something you already know as I am new to
Spring. But in the web.xml below, You configure both Request Factory
and Application(Dispatcher). You will have to remove the
RequestFactory mapping and have the Application/Dispatcher catch the
requests right?

In one of my public repos I have a Spring configuration that forwards
all GWT-RPC request through Spring. I would imagine you set up the
RequestFactory servlet the same way: https://github.com/ashtonthomas/beans

https://github.com/ashtonthomas/beans/tree/master/war/WEB-INF

where in the: 
https://github.com/ashtonthomas/beans/blob/master/war/WEB-INF/spring-servlet.xml
You just have the below where it filters all gwtRequest to a
requestFactory bean set up in the Appconfig

Again, sorry if this is not what you are looking for or what you
already know

bean id=urlMapping
class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
property name=mappings
value
/**/gwtRequest=gwtRequestDispatcher

/**/register.rpc=registerDispatcher
/**/beans.rpc=beansDispatcher

/value
/property
/bean


bean id=gwtRequestDispatcher
class=com.billy.bob.server.request.GwtRpcDispatcher
property name=remoteService
ref bean=requestFactory/
/property
/bean


-

   servlet
servlet-nameApplication/servlet-name
servlet-
classorg.springframework.web.servlet.DispatcherServlet/servlet-
class
init-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/spring/webmvc-config.xml/param-
value
/init-param
load-on-startup1/load-on-startup
/servlet

servlet
servlet-namerequestFactory/servlet-name
servlet-
classcom.google.gwt.requestfactory.server.RequestFactoryServlet/
servlet-class
/servlet


servlet-mapping
servlet-nameApplication/servlet-name
url-pattern//url-pattern
/servlet-mapping

servlet-mapping
servlet-namerequestFactory/servlet-name
url-pattern/gwtRequest/url-pattern
/servlet-mapping



On Dec 22, 6:08 pm, zixzigma zixzi...@gmail.com wrote:
 GWT's RequestFactoryServlet source code:

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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: Custom Maps

2010-12-22 Thread Eric Ayers
Did you try the HelloMaps sample code in the library?

See source in com.google.gwt.maps.sample.hellomaps.client.CustomMapTypeDemo

http://code.google.com/p/gwt-google-apis/source/browse/?r=1533#svn%2Ftrunk%2Fmaps%2Fsamples%2Fhellomaps%2Fsrc%2Fcom%2Fgoogle%2Fgwt%2Fmaps%2Fsample%2Fhellomaps%2Fclient


On Wed, Dec 22, 2010 at 5:57 PM, Alberto sturialb...@gmail.com wrote:
 Hi everybody!

 I need an example about the creation of a Custom Map with Google Maps
 1.1 Library...
 I want to create a custom map with my pictures...

 I was reading
 Class MapType (http://gwt-google-apis.googlecode.com/svn/javadoc/maps/
 1.1/com/google/gwt/maps/client/MapType.html)

 and

 Class TileLayer (http://gwt-google-apis.googlecode.com/svn/javadoc/
 maps/1.1/com/google/gwt/maps/client/TileLayer.html)

 but I'need an example to see how they works...

 Can anyone help me with a little example?

 Thank You very much!

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



doPost mit RequestBuilder

2010-12-22 Thread sipungora
Hi,

das ist die einfachste doPost Methode:

public static void doPost(String url, String postData) {
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
url);
try {
Request response = builder.sendRequest(postData, new
RequestCallback() {

public void onError(Request request, Throwable 
exception) {
logger.debug(doPost failed...);
}

public void onResponseReceived(Request request, 
Response response)
{
logger.debug(doPost:  + 
STATUS_CODE_OK +  OK);
}
});
} catch (RequestException e) {
Window.alert(Failed to send the request:  + 
e.getMessage());
}
}

Ich mach's mit doPost(myUrl,param1=aparam2=b);

Auf der Serverseite kommt request, aber alle Parameter sind null.

protected void doPost(HttpServletRequest _req, HttpServletResponse
_resp)
throws ServletException, IOException
{
PrintWriter writer = _resp.getWriter();
String param1 = _req.getParameter(param1);
writer.println(param1 =  + param1);
String param2 = _req.getParameter(param2);
writer.println(param2 =  + param2);
...
}

Was mach ich falsch?

Viellen Dank im Voraus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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.



Multiple Token Parameters

2010-12-22 Thread Matthew Hill
Hi.

How can I support passing multiple parameters to my activities via the 
token, e.g. query string style? I can do it, but not in a clean way that 
doesn't require code repetition.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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.



Row ids in PagingScrollTable

2010-12-22 Thread Steve Moyer
I've successfully implemented a PagingScrollTable (from the GWT-
Incubator project) in our application but need to mark each row with
an identifier.  My initial attempt was to place an additional column
at the end of the table and set its maximum width to zero, but that
never completely disappears ... it does suit the purpose of allowing
me to determine the record(s) that was/were selected.

Is there some way of assigning an identifier to a row ... perhaps even
using an id attribute on the tr element?

Thanks, smoyer

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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 MVP and handlers

2010-12-22 Thread sunny...@gmail.com
Hi everyone,

Before 2.1 I created an application that use the old MVP
architecture of having models, views and presenters. This worked quite
well. I'm migrating this application to use the 2.1 MVP framework now.
I've made some progress but am still getting my head around it.

This has hit me so far: in my old code, the presenter was responsible
for setting the listeners/handlers on the view/eventbus respectively.
Where appropriate handlers would be removed when the view changed so
that events are not handled more than once. (eg, I destroy my login
window once login succeeds, and I also remove the eventbus
LoginSucceededEvent handler, so after logging out there aren't two of
them listening on the eventbus)

Here is the start method of the apps' login activity:
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
LoginView view = clientFactory.getLoginView();  // just one instance
bindView(view);   // eg, view.getButton().addClickHandler(...
bindEvents(view, eventBus);   // eg, eventBus.addHandler(
panel.setWidget(view.asWidget());
}

The LoginView is reused from the ClientFactory as the documentation
suggests. This raises two questions:

1) I would like to keep the GUI bindings outside the UI code (just as
I did in the old code where it was in the presenter). But since the
documentation suggests using a single instance of a the views, here I
would be adding more and more listeners each time the activity is
initialised (as they are in the ActivityMapper). The HelloMVP example
has the binding code in the view and allows the view to communicate
with the activity. Can this be avoided? It would help in keeping the
UI code strictly to UI and presentation. Short of implementing a
method on all views that clear its listeners I cannot think of a
better way (I would still think this to be cumbersome - its not
something you'd normally do)

2) Similar issue with eventbus handlers - I can't wrap the eventbus in
a ResettableEventBus as I don't want to wipe all handlers off the
eventbus, nor do I want to have to manually deal with each handler in
onStop of the Activity.

I could have static fields in the activity to determine whether the
binding has already been done, but that would eliminate the
possibility of a view that might for whatever reason need to be re-
created each time.

Am I looking for a generic answer around the current 2.1 MVP framework
where it doesn't exist?


thanks
Sunny

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post 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-22 Thread Sethu
Hi Chris,

I did what you told me. I added both 127.0.0.1 and localhost to the
allowed hosts in the GWT plugin of chrome. Actually it says you need
to add one only if you are doing some cross machine debugging. I am
connecting from localhost only.

Not sure what more to do. I have started up tomcat within eclipse and
pointed the war folder to it and I am somehow working with it. I need
to deploy the code everytime to test and no it does not help in
debugging client code.

Sethu

On Dec 22, 8:32 pm, Chris Conroy con...@google.com wrote:
 You don't need to add entries for localhost since those are allowed by
 default.

 When you get the error do you see the GWT toolbox turn gray? Click it, then
 click Update Your Configuration. It will autofill the options page with
 the host it detected and you can add it to your whitelist. Once added,
 refresh and you should connect and see the toolbox turn red.







 On Wed, Dec 22, 2010 at 10:18 AM, Sethu writetose...@googlemail.com wrote:
  Unfortunately I dont have an entry in my hosts file. I added a
  localhost 127.0.0.1 for an extra measure and tried and still got the
  same error.
  Does anyone know why this is happening? The plug ins on chrome,
  firefox, and IE all of them consistently give me the same error.

  On Dec 22, 7:53 pm, Glenn Davies glennats...@gmail.com wrote:
   ...and it turns out that there's a simple answer.

   We use a hosts file entry (e.g. app.local.com) which resolves to
  127.0.0.1
   so we can use a development SSL certificate on all dev machines. Although
   this host is 127.0.0.1, you need to add app.local.com to the list of
  allowed
   hosts in the Chrome dev mode plugin as it seems the check is on the host
   name not the IP address to which the host name resolves - which is fair
   enough I suppose.

   Glenn

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

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



  1   2   >