Re: "gwt-servlet.jar" being deleted at each Eclipse startup after upgrading to gwt 2.0

2010-01-01 Thread John OConner
I found the culprit. The eclipse plugin preferences file explicity
names gwt-servlet.jar as a file that it must copy to the web-inf/lib
directory. So I assume that SVN (and for me it is Perforce) see that
action as an attempted delete as well. I resolved this myself by
removing that file from web-inf/lib and just letting the plugin have
its way. I tried deleting the offending line from the preferences
file, but the plugin insisted on replacing that line on startup. Odd,
if an application *insists* on a very specific setting regardless of
user intentions or my own preferences, why put the setting in an
external preferences file to begin with?

Regards,
John O'Conner


On Dec 31 2009, 7:05 pm, Jeff Schnitzer  wrote:
> I have this exact same problem... it's quite annoying.
>
> It also sometimes happens with GAE jars.  Every time I restart Eclipse
> I have to go through my projects and revert any deleted jars.
>
> Jeff
>
>
>
> On Wed, Dec 30, 2009 at 5:53 PM, itwip.81  wrote:
> > Dear Sir/Madam,
>
> > I have encountered a problem after upgrading from GWT 1.7 to 2.0. I
> > did uninstall all of the previous GWT SDKs, AppEngine and plugin
> > before I install the new 2.0 plugin. I am using Subversion/subclipse
> > for version control in our eclipse project. However, the "gwt-
> > servlet.jar" has been marked as being deleted (according to subversion
> > - red cross) every time I start up eclipse since I upgrade to gwt 2.0.
> > So, now i will need to revert the deletion every time I reopen the
> > project before commiting anything. Have anyone experience this before?
> > Does anyone know the soultion to solve this annoying problem.
>
> > PS: It seems like GWT 2.0 plugin is trying to replace the 2.0 gwt-
> > servlet.jar with any existing gwt-servlet.jar in our project folder
> > after the upgrade. But it is wrong to repeat this process everytime i
> > reopen the project.
>
> > Best regards,
>
> > Martin
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: MVP Article... Source Code?

2010-01-01 Thread Thomas Broyer

On Jan 1, 1:16 am, Daniel Simons  wrote:
> I would be interested to know, for those that have studied the Hupa Project,
> and now the Contacts Project, what do you think is the more appropriate way
> of handling the Back/Forward browser button actions.  Both methods seem to
> have there own flaws, for instance, as a project gets larger, the method in
> the Contacts Project of AppController handling value changes could quickly
> grow to an unmanageable level.  On the other hand, the design used in the
> Hupa Project where each presenter has an onPlaceRequest(PlaceRequest
> request) method, limits the History token creation to the Presenter.bind()
> method.

I haven't studied either the Contacts sample or Hupa project, but
here's what my PlaceManager is doing:
 - an HistoryMapper is injected in the ctor and maps history tokens to
Place objects, and Place objects to history tokens (I have a bunch of
utility classes to compose an HistoryMapper composed of other
HistoryMapper instances: using the chain of responsibility pattern,
based on prefix matching, etc.)
 - PlaceManager fires a PlaceChangeEvent whenever a History
ValueChangeEvent is fired (i.e. back/forward browser buttons
management); it has an explicit navigateTo(Place) method that to set
the current Place, fire a PlaceChangeEvent and update the current
history token using History.newItem(mapper.stringify(place), false)
(see below for details); that way, PlaceManager is the *only* object
that ever works with the History class.
 - presenters *explicitly* register PlaceChangeEvent on the
PlaceManager
 - navigation is "vetoable" (*even* browser-generated navigation,
*and* Window.onClosing) to allow for "you haven't saved your changes,
do you really want to leave this screen?" scenario; this is done with
a vetoable PlaceChangingEvent being dispatched before the
PlaceChangeEvent take place (this is why I have an explicit navigateTo
method, instead of firing events directly on the EventBus)
 - Place is just an interface, with no method; you create classes
implementing it (such as ContactsListPlace and ContactsDetailsPlace, I
even have enums that implement the interface) and generally use
"instanceof" in your PlaceChangingHandler and PlaceChangeHandler
impls. You can have a ContactsPlace as the base class for
ContactsListPlace and ContactsDetailsPlace to setup the "screen" for
the "contacts module" (this correspond to a "tab" in our app),
whichever exact "screen" from this module is "invoked" (this is very
useful for the "main presenter" to highlight/select the
 appropriate tab, for instance; then the tab widget uses the more
"precise" ContactsListPlace and ContactsDetailsPlace to choose which
presenter/widget to use)

Everything is explicit, and the mapping of history tokens to Place
objects is completely disconnected from the presenters (they only deal
with Place objects); and using the utility classes, this mapping is
modular and easier to maintain (for instance, we have one
HistoryMapper per "module" --which can be composed of other mappers
already-- and compose them using prefix matching in a global mapper to
be passed to the PlaceManager.

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: MVP Article... Source Code?

2010-01-01 Thread Jeff Chimene
On 01/01/2010 08:59 AM, Thomas Broyer wrote:
> 
> On Jan 1, 1:16 am, Daniel Simons  wrote:
>> I would be interested to know, for those that have studied the Hupa Project,
>> and now the Contacts Project, what do you think is the more appropriate way
>> of handling the Back/Forward browser button actions.  Both methods seem to
>> have there own flaws, for instance, as a project gets larger, the method in
>> the Contacts Project of AppController handling value changes could quickly
>> grow to an unmanageable level.  On the other hand, the design used in the
>> Hupa Project where each presenter has an onPlaceRequest(PlaceRequest
>> request) method, limits the History token creation to the Presenter.bind()
>> method.
> 
> I haven't studied either the Contacts sample or Hupa project, but
> here's what my PlaceManager is doing:
>  - an HistoryMapper is injected in the ctor and maps history tokens to
> Place objects, and Place objects to history tokens (I have a bunch of
> utility classes to compose an HistoryMapper composed of other
> HistoryMapper instances: using the chain of responsibility pattern,
> based on prefix matching, etc.)
>  - PlaceManager fires a PlaceChangeEvent whenever a History
> ValueChangeEvent is fired (i.e. back/forward browser buttons
> management); it has an explicit navigateTo(Place) method that to set
> the current Place, fire a PlaceChangeEvent and update the current
> history token using History.newItem(mapper.stringify(place), false)
> (see below for details); that way, PlaceManager is the *only* object
> that ever works with the History class.
>  - presenters *explicitly* register PlaceChangeEvent on the
> PlaceManager
>  - navigation is "vetoable" (*even* browser-generated navigation,
> *and* Window.onClosing) to allow for "you haven't saved your changes,
> do you really want to leave this screen?" scenario; this is done with
> a vetoable PlaceChangingEvent being dispatched before the
> PlaceChangeEvent take place (this is why I have an explicit navigateTo
> method, instead of firing events directly on the EventBus)
>  - Place is just an interface, with no method; you create classes
> implementing it (such as ContactsListPlace and ContactsDetailsPlace, I
> even have enums that implement the interface) and generally use
> "instanceof" in your PlaceChangingHandler and PlaceChangeHandler
> impls. You can have a ContactsPlace as the base class for
> ContactsListPlace and ContactsDetailsPlace to setup the "screen" for
> the "contacts module" (this correspond to a "tab" in our app),
> whichever exact "screen" from this module is "invoked" (this is very
> useful for the "main presenter" to highlight/select the
>  appropriate tab, for instance; then the tab widget uses the more
> "precise" ContactsListPlace and ContactsDetailsPlace to choose which
> presenter/widget to use)
> 
> Everything is explicit, and the mapping of history tokens to Place
> objects is completely disconnected from the presenters (they only deal
> with Place objects); and using the utility classes, this mapping is
> modular and easier to maintain (for instance, we have one
> HistoryMapper per "module" --which can be composed of other mappers
> already-- and compose them using prefix matching in a global mapper to
> be passed to the PlaceManager.

Thanks for the detailed post, Thomas.

--

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




Re: problemas con Hibernate y gilead no compatible con gwt 2.0

2010-01-01 Thread Richard Berger
Had the same problem - the following post was very helpful:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/ca5722230f14f54e/408301beba6a2bf4?lnk=raot

RB

On Dec 30 2009, 12:08 pm, marcelomos 
wrote:
> GRAVE: WebModule[/gwt20lab2hibernate]Exception while dispatching
> incoming RPC call
> java.lang.NoSuchMethodError:
> com.google.gwt.user.server.rpc.RPCRequest.(Ljava/lang/reflect/
> Method;[Ljava/lang/Object;Lcom/google/gwt/user/server/rpc/
> SerializationPolicy;)V
>         at com.google.gwt.user.server.rpc.RPCCopy_GWT15.decodeRequest
> (RPCCopy_GWT15.java:278)
>         at com.google.gwt.user.server.rpc.RPCCopy.decodeRequest
> (RPCCopy.java:136)
>         at net.sf.gilead.gwt.PersistentRemoteService.processCall
> (PersistentRemoteService.java:143)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
> (RemoteServiceServlet.java:224)
>         at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 754)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 847)
>         at org.apache.catalina.core.StandardWrapper.service
> (StandardWrapper.java:1523)
>         at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:279)
>         at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:188)
>         at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:641)
>         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
> 97)
>         at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
> (PESessionLockingStandardPipeline.java:85)
>         at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:185)
>         at org.apache.catalina.connector.CoyoteAdapter.doService
> (CoyoteAdapter.java:332)
>         at org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:233)
>         at com.sun.enterprise.v3.services.impl.ContainerMapper.service
> (ContainerMapper.java:165)
>         at com.sun.grizzly.http.ProcessorTask.invokeAdapter
> (ProcessorTask.java:791)
>         at com.sun.grizzly.http.ProcessorTask.doProcess
> (ProcessorTask.java:693)
>         at com.sun.grizzly.http.ProcessorTask.process
> (ProcessorTask.java:954)
>         at com.sun.grizzly.http.DefaultProtocolFilter.execute
> (DefaultProtocolFilter.java:170)
>         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter
> (DefaultProtocolChain.java:135)
>         at com.sun.grizzly.DefaultProtocolChain.execute
> (DefaultProtocolChain.java:102)
>         at com.sun.grizzly.DefaultProtocolChain.execute
> (DefaultProtocolChain.java:88)
>         at com.sun.grizzly.http.HttpProtocolChain.execute
> (HttpProtocolChain.java:76)
>         at com.sun.grizzly.ProtocolChainContextTask.doCall
> (ProtocolChainContextTask.java:53)
>         at com.sun.grizzly.SelectionKeyContextTask.call
> (SelectionKeyContextTask.java:57)
>         at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork
> (AbstractThreadPool.java:330)
>         at com.sun.grizzly.util.AbstractThreadPool$Worker.run
> (AbstractThreadPool.java:309)
>         at java.lang.Thread.run(Thread.java:619)

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Error in JDBC call

2010-01-01 Thread Anoop John
Download mysql-connector-java-5.1.5-bin.jar and put into the lib
folder

On Jan 1, 4:14 am, Sripathi Krishnan 
wrote:
> You have probably enabled Google App Engine for your project. Disable it
> (its a setting in eclipse), and things should run fine.
>
> You could also be missing the mysql driver jar files in your classpath, but
> I assume you have taken care of that.
>
> --Sri
>
> 2009/12/31 Abhay Singh 
>
>
>
> > Hi
>
> > I am trying to connect Mysql database but getting this error(DB part
> > is in server side code, which get invoked through RPC)
>
> > The server is running athttp://localhost:8080/
> > Call Failed
> > Dec 31, 2009 7:07:16 AM com.google.apphosting.utils.jetty.JettyLogger
> > warn
> > WARNING: Nested in javax.servlet.ServletException: init:
> > java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
> >        at java.lang.Class.getDeclaredConstructors0(Native Method)
> >        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
> >        at java.lang.Class.getConstructor0(Class.java:2671)
> >        at java.lang.Class.newInstance0(Class.java:321)
> >        at java.lang.Class.newInstance(Class.java:303)
> >        at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> >        at org.mortbay.jetty.servlet.ServletHolder.getServlet
> > (ServletHolder.java:339)
> >        at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > 463)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1093)
> >        at
> > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> > (TransactionCleanupFilter.java:43)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1084)
> >        at com.google.appengine.tools.development.StaticFileFilter.doFilter
> > (StaticFileFilter.java:121)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1084)
> >        at org.mortbay.jetty.servlet.ServletHandler.handle
> > (ServletHandler.java:360)
> >        at org.mortbay.jetty.security.SecurityHandler.handle
> > (SecurityHandler.java:216)
> >        at org.mortbay.jetty.servlet.SessionHandler.handle
> > (SessionHandler.java:181)
> >        at org.mortbay.jetty.handler.ContextHandler.handle
> > (ContextHandler.java:712)
> >        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > 405)
> >        at
> > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> > (DevAppEngineWebAppContext.java:54)
> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> > (HandlerWrapper.java:139)
> >        at com.google.appengine.tools.development.JettyContainerService
> > $ApiProxyHandler.handle(JettyContainerService.java:313)
> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> > (HandlerWrapper.java:139)
> >        at org.mortbay.jetty.Server.handle(Server.java:313)
> >        at
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> > 506)
> >        at org.mortbay.jetty.HttpConnection$RequestHandler.content
> > (HttpConnection.java:844)
> >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
> >        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> >        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> >        at org.mortbay.io.nio.SelectChannelEndPoint.run
> > (SelectChannelEndPoint.java:396)
> >        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> > (BoundedThreadPool.java:442)
> > Dec 31, 2009 7:07:16 AM com.google.apphosting.utils.jetty.JettyLogger
> > warn
> > WARNING: /sample/greet
> > java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
> >        at java.lang.Class.getDeclaredConstructors0(Native Method)
> >        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
> >        at java.lang.Class.getConstructor0(Class.java:2671)
> >        at java.lang.Class.newInstance0(Class.java:321)
> >        at java.lang.Class.newInstance(Class.java:303)
> >        at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> >        at org.mortbay.jetty.servlet.ServletHolder.getServlet
> > (ServletHolder.java:339)
> >        at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > 463)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1093)
> >        at
> > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> > (TransactionCleanupFilter.java:43)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1084)
> >        at com.google.appengine.tools.development.StaticFileFilter.doFilter
> > (StaticFileFilter.java:121)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1084)
> >        at org.mortbay.jetty.servlet.ServletHandler.handle
> > (ServletHandler.java:360)
> >        at

Re: Get the real path of application

2010-01-01 Thread Anoop John
You will get the real path from "HttpServletRequest". Use
request.getRealPath("/"). This will work.

On Dec 31 2009, 9:10 pm, Esdras Dzul Mijangos 
wrote:
> Hi, i have a problem, i need get the path of application, for ejample,
> in jsf i can do it:
>
> FacesContext context = FacesContext.getCurrentInstance();
> ServletContext servletcont = (ServletContext)
> context.getExternalContext().getContext();
>
> public Class Classx{
>    public void  someMethod(){
>            servletcont.getRealPath("/");
>           // this method return the path of application
>          // i.e: /home/user/NetBeansProjects/Mercurio/build/web
>    }
>
> }
>
> But in GWT, i don't know how do it. Thanks for you support.

--

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




Re: FileUpload widget path name

2010-01-01 Thread Anoop John
Hello Shivi. I already faced many issues with the file upload. I moved
to gwtupload. This file name issue will be resolved by using this
For more info go http://code.google.com/p/gwtupload/

On Dec 31 2009, 8:43 pm, El Mentecato Mayor 
wrote:
> 1) As far as I remember, you won't be able to get the full path to the
> filename in all browsers on the client side.  You can do it on the
> server-side (in your servlet).
> 2) I don't think you will be able to do that (assuming your G: drive
> is either mapped to a unix directory using samba maybe, or to another
> windows directory). The form of the path name will depend on the OS of
> the client that sends the files and in your case, I don't think
> there's a way for the browser to know that "G:\abc.psr" corresponds to
> "/home/aa20/abc.psr".
>
> On Dec 30, 6:15 am, Shivi  wrote:
>
>
>
> > Hi
>
> > I am trying to use the FileUpload widget and when I call the
> > getFileName() method it returns me the filename without the path name
> > in firefox.
>
> > If I try the same in IE the method returns the filename along with the
> > path.
>
> > e.g: If I browse and select file abc.psr in G: drive .  getFileName()
> > returns abc.psr in firefox and returns G:\abc.psr in IE.
>
> > I would always like to get the path name along with the file name .
> > How can I achieve this?
>
> > Ques2) Is it possible for me to get the unix pathname with a file name
> > instead of Windows? I am using Windows but instead of G:\abc.psr  I
> > would like to see /home/aa20/abc.psr
>
> > Thanks for your 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: Customizing RichTextArea with insertHtml in GWT 2.0

2010-01-01 Thread Trevis
I feel like i must be missing something obvious but i'm not seeing any
convenience method to get the selected text. Seems too obvious to be
an oversight. Any help would be much appreciated.

Trevis

On Dec 31 2009, 9:26 am, Trevis  wrote:
> I'd like to create a custom rich text aera. I think I I've got a fair
> handle on how it works from playing with the showcase RichTextToolbar
> source code. The Formatter.insertHtml method seems like it will get
> almost exactly what i need. But, there is one critical peice of the
> puzzle I have yet to solve.  I need to grab the text that the user has
> selected to make the HTML inserts  work he way I need them to.
>
> Am I missing it? How can I get the selected text?

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Customizing RichTextArea with insertHtml in GWT 2.0

2010-01-01 Thread Anoop John
Hi Tevis,
If u want customize your text area you should use RichTextArea and a
toolbar for changing the font,color , creating a link etc. This tool
bar is freely available in 
http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText.
Note that the code is available in gwt samples.

On Jan 1, 11:07 pm, Trevis  wrote:
> I feel like i must be missing something obvious but i'm not seeing any
> convenience method to get the selected text. Seems too obvious to be
> an oversight. Any help would be much appreciated.
>
> Trevis
>
> On Dec 31 2009, 9:26 am, Trevis  wrote:
>
>
>
> > I'd like to create a custom rich text aera. I think I I've got a fair
> > handle on how it works from playing with the showcase RichTextToolbar
> > source code. The Formatter.insertHtml method seems like it will get
> > almost exactly what i need. But, there is one critical peice of the
> > puzzle I have yet to solve.  I need to grab the text that the user has
> > selected to make the HTML inserts  work he way I need them to.
>
> > Am I missing it? How can I get the selected text?

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Customizing RichTextArea with insertHtml in GWT 2.0

2010-01-01 Thread Anoop John
Tevis Please see the post below.

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



On Jan 1, 11:07 pm, Trevis  wrote:
> I feel like i must be missing something obvious but i'm not seeing any
> convenience method to get the selected text. Seems too obvious to be
> an oversight. Any help would be much appreciated.
>
> Trevis
>
> On Dec 31 2009, 9:26 am, Trevis  wrote:
>
>
>
> > I'd like to create a custom rich text aera. I think I I've got a fair
> > handle on how it works from playing with the showcase RichTextToolbar
> > source code. The Formatter.insertHtml method seems like it will get
> > almost exactly what i need. But, there is one critical peice of the
> > puzzle I have yet to solve.  I need to grab the text that the user has
> > selected to make the HTML inserts  work he way I need them to.
>
> > Am I missing it? How can I get the selected text?

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Upload not working in server

2010-01-01 Thread Anoop John
Hello tomasm, thanx for the information. request.getRealPath
("uploads") will not work in the linux machine. I moved into another
method, thats works fine.

On Dec 29 2009, 12:46 pm, tomasm  wrote:
> If the folder "uploads" exists inside a war file I won't be supprised
> if request.getRealPath("uploads") returns null, and you get a NPE. The
> javadoc [1] for getRealPath says
>    "[...] This method returns null  if the servlet container cannot
> translate the virtual path to a real path for any reason (such as when
> the content is being made available from a .war archive)."
>
> 1.http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.ht...
>
> On Dec 28, 9:16 am, Anoop  wrote:
>
>
>
> > ---
> > A nullpointer exception occurred at the line "File
> > fileup = new File(request.getRealPath("uploads"));" in server side.
> > The folder "uploads" in existing in the uploaded war file. Please let
> > me know how to resolve this issue.

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Customizing RichTextArea with insertHtml in GWT 2.0

2010-01-01 Thread Trevis
Hey thanks,

I've seen that post which was what turned me on to RichTextToolbar
when i started to research this a couple of days ago.  It looks great
and will definitely be the inspiration for how i create mine. The
problem is i want to do custom functionality that the raw Formatter
object doesn't supply.  (custom youtube and embeding and a few more
things) which i can do just perfectly with insertHTML.  The problem
is, i want to grab the text that the user has highlighted so that i
can use it when i insert the custom html but the API doesnt seem to
expose it.  The custom RichTextToolbar implementation just calls
methods on RichTextArea and never actual seem to touch the selected
text directly. It just calls things like
RichTextArea.Formatter.createLink... which hands wrapping the selected
text internally.

I just wrote a hack work around for the time being so that i can
progress to other work but i'm still convinced that a getSelectedText
method exists somewhere.  If it doesnt, it certainly should.

Here's the workaround that i just came up with:

  private String crazyGetSelectedText(RichTextArea
rta) {
final String MARKER = "http://trevsmarker.com";;
rta.getFormatter().createLink(MARKER);
String withMarker = rta.getHTML();

int markerIndex = withMarker.indexOf(MARKER);
int beginIndex = withMarker.indexOf('>', 
markerIndex)+1;
int endIndex = withMarker.indexOf('<', 
beginIndex);
String selected = 
withMarker.substring(beginIndex, endIndex);

rta.getFormatter().removeLink();
return selected;
}

That seems to get the job done but how horribly inefficient is that
solution?

Trevis

On Jan 1, 12:11 pm, Anoop John  wrote:
> Tevis Please see the post below.
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> On Jan 1, 11:07 pm, Trevis  wrote:
>
> > I feel like i must be missing something obvious but i'm not seeing any
> > convenience method to get the selected text. Seems too obvious to be
> > an oversight. Any help would be much appreciated.
>
> > Trevis
>
> > On Dec 31 2009, 9:26 am, Trevis  wrote:
>
> > > I'd like to create a custom rich text aera. I think I I've got a fair
> > > handle on how it works from playing with the showcase RichTextToolbar
> > > source code. The Formatter.insertHtml method seems like it will get
> > > almost exactly what i need. But, there is one critical peice of the
> > > puzzle I have yet to solve.  I need to grab the text that the user has
> > > selected to make the HTML inserts  work he way I need them to.
>
> > > Am I missing it? How can I get the selected text?

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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.0 jdo / jpa enhanced classes in App engine / Data Nucleus used for GWT-RPC calls to client side

2010-01-01 Thread sridhar vennela
Do you have any sample code of login app?

thanks

On Thu, Dec 31, 2009 at 5:34 AM, marcelomos wrote:

> hola he usado HIbernate + jPA con mysql y si tengo problemas de
> serializacion con la version 2.0 gwt veo que persiste el problema asi
> que sigo trabajando con la version 1.7 gwt, las librerias GILEAD
> soportan solo la version 1.7 gwt.
>
> estoy esperando la proxima version para la solucion de comunicacion
> RPC.
>
> saludos
>
> On 31 dic, 08:37, GWTCurious  wrote:
> > I guess I posted this question on the wrong day. :-) Has anybody the
> > answer?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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.




addDomHandler method is protected, how to add DomHandler without overriding widget ?

2010-01-01 Thread fvisticot
My objective is allow moving, rotating and resizing any GWT widget
with fingers...

I have successfully created and instanciated a new DOMImplIphone to
manage touch and gesture events.
I have overrided a widget (button or panel)  to add dedicated
add<>Handler method. Those methods are calling the addDomHandler
method.
I can now successfully move, resize and rotate this specific overrided
widget !

Now, i would like to have a "generic widget wrapper" that allow
resizing the wrapped widget.
Idea was to create a WidgetWrapper(Widget widget) and add in this
wrapped all the methods to set handlers.

My pb is that the  addDomHandler is protected... so i can not wrap my
widget !!

Any solution to avoid overriding all the widgets that i want to move/
resize ?

--

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




GWT and Eclipse not working

2010-01-01 Thread shooty
Hi All,

I tried everything, but the eclipse plugin is not working together
with the GWT SDK.
I installed newest JDK, GWT and tried several eclipse versions. I also
installed the newest appengine.

The behavior is always the same. Eclipse is compiling the project and
is quiting with an error popup but no further details:

An exception stack trace is not available.

eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86



I am desperate, any ideas?
Also my browsers cannot connect to eclipse on port 9997?
Please help and thank you!
S

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 use web.xml to authenticate a access to a single page

2010-01-01 Thread Dave
(Newbie) I have a web page that I want to authenticate users before
they are allowed to access the page. I set the authentication
parameters in the web.xml but it's not working. I use a hyperlink to
get this page. The address of this page in the browser is
http://somewebsite.appspot.com/#page. Fragments of my web.xml is
below. What am i doing wrong?


  ...

  

/*/page


*


CONFIDENTIAL




--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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-servlet.jar" being deleted at each Eclipse startup after upgrading to gwt 2.0

2010-01-01 Thread Jeff Schnitzer
Amazingly, you're right.  The solution is to ignore the message,
*don't* revert your files back, and restart Eclipse again.  The plugin
deletes the files the first time, then recreates them the second...
and since the new files are identical to the old, svn is happy.

Jeff

On Fri, Jan 1, 2010 at 12:18 AM, John OConner  wrote:
> I found the culprit. The eclipse plugin preferences file explicity
> names gwt-servlet.jar as a file that it must copy to the web-inf/lib
> directory. So I assume that SVN (and for me it is Perforce) see that
> action as an attempted delete as well. I resolved this myself by
> removing that file from web-inf/lib and just letting the plugin have
> its way. I tried deleting the offending line from the preferences
> file, but the plugin insisted on replacing that line on startup. Odd,
> if an application *insists* on a very specific setting regardless of
> user intentions or my own preferences, why put the setting in an
> external preferences file to begin with?
>
> Regards,
> John O'Conner
>
>
> On Dec 31 2009, 7:05 pm, Jeff Schnitzer  wrote:
>> I have this exact same problem... it's quite annoying.
>>
>> It also sometimes happens with GAE jars.  Every time I restart Eclipse
>> I have to go through my projects and revert any deleted jars.
>>
>> Jeff
>>
>>
>>
>> On Wed, Dec 30, 2009 at 5:53 PM, itwip.81  wrote:
>> > Dear Sir/Madam,
>>
>> > I have encountered a problem after upgrading from GWT 1.7 to 2.0. I
>> > did uninstall all of the previous GWT SDKs, AppEngine and plugin
>> > before I install the new 2.0 plugin. I am using Subversion/subclipse
>> > for version control in our eclipse project. However, the "gwt-
>> > servlet.jar" has been marked as being deleted (according to subversion
>> > - red cross) every time I start up eclipse since I upgrade to gwt 2.0.
>> > So, now i will need to revert the deletion every time I reopen the
>> > project before commiting anything. Have anyone experience this before?
>> > Does anyone know the soultion to solve this annoying problem.
>>
>> > PS: It seems like GWT 2.0 plugin is trying to replace the 2.0 gwt-
>> > servlet.jar with any existing gwt-servlet.jar in our project folder
>> > after the upgrade. But it is wrong to repeat this process everytime i
>> > reopen the project.
>>
>> > Best regards,
>>
>> > Martin
>>
>> > --
>>
>> > You received this message because you are subscribed to the Google Groups 
>> > "Google Web Toolkit" group.
>> > To post to this group, send email to google-web-tool...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > google-web-toolkit+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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.0 jdo / jpa enhanced classes in App engine / Data Nucleus used for GWT-RPC calls to client side

2010-01-01 Thread Jeff Schnitzer
Skip JDO/JPA and use something like
http://code.google.com/p/objectify-appengine/ which uses *real* POJOs
for your domain objects.  They will transfer through GWT-RPC just
fine.

Jeff

On Fri, Dec 25, 2009 at 11:10 AM, GWTCurious  wrote:
> I have seen some messages mentioning that with gwt 2.0 it is possible
> now to transfer jdo domain objects on app engine / data nucleus to the
> client side using standard gwt-rpc mechanism. But I could not find any
> information regarding this in GWT documentation. So I would like to
> know whether this works fine for a production application without
> problems? and also if this is limited to JDO and does not support JPA
> or we could also use JPA app engine domain objects with gwt-rpc?
> I have been using GILEAD with JPA+ hibernate + MySQL for this and so
> far encountered no problems. Gilead site mentions that it now supports
> JPA + app engine but it cautions this feature is experimental and
> should not be used for production applications. Does anyone using 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.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: SuggestBox with server side update and UrlFetch Service

2010-01-01 Thread Ajax-Gadgets
Okay, I figured it out myself, again it had to do with sloppy coding.
When getting the JSONArray I was assuming the the second element in
name would be the "Result" I want to
retrieve.  This was the case running in development but not the case
when I deployed it.  So instead I will just retrieve by "Result".

Brian

On Dec 31 2009, 9:09 am, Ajax-Gadgets  wrote:
> Hello,
>
> I was wonder if anyone has implemented the SuggestBox with server side
> update using the following 
> codehttp://groups.google.kg/group/google-web-toolkit/browse_thread/thread
> I updated the ItemSuggestionImpl.java below to retrieve my suggestion
> box values using Url Fetch Service.  This works great in
> the development environment but when I deploy it to
> lensticker.appspot.com it no long returns item suggestions.  I would
> suspect that it has something to do with Url Fetch I just don't know
> what the issue is.
>
> Thanks
>
> Brian
>
> public class ItemSuggestServiceImpl extends RemoteServiceServlet
> implements ItemSuggestService {
>
>         private static final String startingURL = "http://d.yimg.com/
> autoc.finance.yahoo.com/autoc?query=";
>         private static final String endingURL =
> "&callback=YAHOO.Finance.SymbolSuggest.ssCallback";
>
>         public SuggestOracle.Response getSuggestions(SuggestOracle.Request
> req) {
>
>         SuggestOracle.Response resp = new SuggestOracle.Response();
>
>         // Create a list to hold our suggestions (pre-set the length
> to the limit specified by the request)
>         List suggestions = null;
>
>         if (req.getQuery().length() == 0) {
>                 suggestions = new ArrayList(0);
>         }
>
>         try {
>
>                 URLFetchService fetcher =
> URLFetchServiceFactory.getURLFetchService();
>                 URL url = new URL(String.format("%s%s%s", startingURL,
> req.getQuery(), endingURL));
>
>                 HTTPRequest fetchreq = new HTTPRequest(url);
>
>                 HTTPResponse fetchresp = fetcher.fetch(fetchreq);
>
>                 byte[] bytes = fetchresp.getContent();
>
>            String line = new String(bytes);
>
>             line = line.replace("YAHOO.Finance.SymbolSuggest.ssCallback
> (", "");
>             line = line.replace(")", "");
>
>             JSONObject json = new JSONObject(line);
>
>             String[] name = JSONObject.getNames(json);
>
>             json = json.getJSONObject(name[0]);
>
>             name = JSONObject.getNames(json);
>
>             JSONArray jArray = json.getJSONArray(name[1]);
>
>             suggestions = new ArrayList(jArray.length());
>
>             for(int i=0; i < jArray.length(); i++) {
>
>                JSONObject j = jArray.getJSONObject(i);
>                String sSymbol = j.getString("symbol");
>                String sName = j.getString("name");
>                String sExch = j.getString("exch");
>                String sType = j.getString("type");
>                String sTypeDisp = "";
>                String sExchDisp = "";
>
>                if ((sType.compareTo("S")) == 0)
>                {
>                    sExchDisp = j.getString("exchDisp");
>                }
>                else
>                {
>                   try {
>                     sTypeDisp = j.getString("typeDisp");
>                   } catch (Exception se) {
>                           sTypeDisp = sType;
>                   }
>                }
>
>                String sDisplay = "";
>
>                String format = "%1$-6s %2$-20s %3$-8s";
>
>                if ((sType.compareTo("S")) == 0)
>                {
>                    sDisplay = String.format(format, sSymbol, sName,
> sExchDisp);
>                }
>                else {
>                    sDisplay = String.format(format, sSymbol, sName,
> sTypeDisp + "-" + sExch);
>                }
>
>                suggestions.add(new ItemSuggestion(sDisplay, sSymbol));
>             }
>        } catch (MalformedURLException e) {
>                 //log.info(e.getMessage());
>         } catch (IOException ex2) {
>                 //log.info(ex2.getMessage());
>         } catch (JSONException ex3) {
>                 //log.info(ex3.getMessage());
>         }
>
>         // Now set the suggestions in the response
>         resp.setSuggestions(suggestions);
>
>         // Send the response back to the client
>         return resp;
>     }
>
>
>
> }

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: addDomHandler method is protected, how to add DomHandler without overriding widget ?

2010-01-01 Thread Thomas Broyer

On Jan 1, 10:08 pm, fvisticot  wrote:
> My objective is allow moving, rotating and resizing any GWT widget
> with fingers...
>
> I have successfully created and instanciated a new DOMImplIphone to
> manage touch and gesture events.
> I have overrided a widget (button or panel)  to add dedicated
> add<>Handler method. Those methods are calling the addDomHandler
> method.
> I can now successfully move, resize and rotate this specific overrided
> widget !
>
> Now, i would like to have a "generic widget wrapper" that allow
> resizing the wrapped widget.
> Idea was to create a WidgetWrapper(Widget widget) and add in this
> wrapped all the methods to set handlers.
>
> My pb is that the  addDomHandler is protected... so i can not wrap my
> widget !!
>
> Any solution to avoid overriding all the widgets that i want to move/
> resize ?

public class WidgetWrapper extends Composite implements HasMoveEvents,
HasResizeEvents {
   public WidgetWrapper(Widget widget) {
  initWidget(widget);
   }

   ...

;-)

--

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




Easiest method to add a class to the bottom of a TagPanel?

2010-01-01 Thread darkflame
I wish to dynamically change a class in the bottom part of a Tag
panel.
(the bit that normally has "gwt-TabPanelBottom").

Any ideas? I tried navigating the dom but got rather confused.
Basically I want to change the background behind it, without altering
the background of a header.
And I want to do it ver a class so the images can be specified outside
the code.


--

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




Re: addDomHandler method is protected, how to add DomHandler without overriding widget ?

2010-01-01 Thread fvisticot
Thank you for your answer but it is not exactly what i woulk like...
The events should be the new events i have created and registered with
my DomImpl. (TouchStartEvent, TouchEndEvent)..and not HasMoveEvent,
HasResizeEvents...

What i would like to do:
It seems that i really need to do the widget.addDomHandler call...


public class TouchWidgetWrapper extends SimplePanel (or Composite) {
protected Widget widget;
public TouchWidgetWrapper(Widget widget) {
add(widget);
this.widget = widget;
this.setStyleName("noSelect");

}

public HandlerRegistration addTouchStartHandler(TouchStartHandler
handler) {
return widget.addDomHandler(handler, TouchStartEvent.getType
()); //not possible addDomHandler is protected)...
}

public HandlerRegistration addTouchMoveHandler(TouchMoveHandler
handler) {
return widget.addDomHandler(handler, TouchMoveEvent.getType());
}

public HandlerRegistration addTouchEndHandler(TouchEndHandler
handler) {
return widget.addDomHandler(handler, TouchEndEvent.getType());
 }

public HandlerRegistration addTouchCancelHandler(TouchCancelHandler
handler) {
return widget.addDomHandler(handler, TouchCancelEvent.getType());
}

public HandlerRegistration addGestureStartHandler(GestureStartHandler
handler) {
return widget.addDomHandler(handler, GestureStartEvent.getType
());
}

public HandlerRegistration addGestureEndHandler(GestureEndHandler
handler) {
return addDomHandler(handler, GestureEndEvent.getType());
}

public HandlerRegistration addGestureChangeHandler
(GestureChangeHandler handler) {
return widget.addDomHandler(handler, GestureChangeEvent.getType
());
}
}

//TouchStartEvent:
public class TouchStartEvent extends DomEvent {


  private static final Type TYPE = new
Type("touchstart", new TouchStartEvent());

  public static Type getType() {
return TYPE;
  }

  protected TouchStartEvent() {
  }

  @Override
  public final Type getAssociatedType() {
return TYPE;
  }

  @Override
  protected void dispatch(TouchStartHandler handler) {
handler.onTouchStart(this);
  }

}

//TouchStartHandler:
public interface TouchStartHandler extends EventHandler {
  void onTouchStart(TouchStartEvent event);
}

HasTouchStartHandlers:
public interface HasTouchStartHandlers extends HasHandlers {
public HandlerRegistration addTouchStartHandler(TouchStartHandler
handler);
}













On 2 jan, 00:49, Thomas Broyer  wrote:
> On Jan 1, 10:08 pm, fvisticot  wrote:
>
>
>
>
>
> > My objective is allow moving, rotating and resizing any GWT widget
> > with fingers...
>
> > I have successfully created and instanciated a new DOMImplIphone to
> > manage touch and gesture events.
> > I have overrided a widget (button or panel)  to add dedicated
> > add<>Handler method. Those methods are calling the addDomHandler
> > method.
> > I can now successfully move, resize and rotate this specific overrided
> > widget !
>
> > Now, i would like to have a "generic widget wrapper" that allow
> > resizing the wrapped widget.
> > Idea was to create a WidgetWrapper(Widget widget) and add in this
> > wrapped all the methods to set handlers.
>
> > My pb is that the  addDomHandler is protected... so i can not wrap my
> > widget !!
>
> > Any solution to avoid overriding all the widgets that i want to move/
> > resize ?
>
> public class WidgetWrapper extends Composite implements HasMoveEvents,
> HasResizeEvents {
>    public WidgetWrapper(Widget widget) {
>       initWidget(widget);
>    }
>
>    ...
>
> ;-)

--

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