Re: java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.rf.test.client.ApplicationRequestFactory RequestFactory type

2012-04-29 Thread laxman lingampally
thanks a lot,

error is resolved,

thank you very much.

Thanks & Regards
laxman

On Mon, Apr 30, 2012 at 1:13 AM, Jens  wrote:

> Starting with GWT 2.4 you have to configure an annotation processor for
> RequestFactory. Its not mentioned in the official documentation yet but you
> can found information about it at:
> http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
>
> -- J.
>
> Am Sonntag, 29. April 2012 21:24:03 UTC+2 schrieb laxman lingampally:
>
>> Hi all.
>>
>> Please help me.
>>
>> i am created Gwt Web application using GWT RequestFactory ,but when
>> ever i am run the application then
>>
>> getting below error: why?
>>
>> java.lang.RuntimeException: The RequestFactory ValidationTool must be
>> run for the com.rf.test.client.**ApplicationRequestFactory
>> RequestFactory type
>>
>> please tell me  anybady
>>
>> Thanks in Advace.
>> Thanks&Regards
>> Laxman
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/dARsMlZLgjsJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: ListDataProvider vs AsyncDataProvider

2012-04-29 Thread Robert W
ListDataProvider  with view creates only  item renderer count neccesary to 
fill view. You can override simple pager to implement eg constant row count 
com.google.gwt.view.client.HasRows in while searching

On Sunday, April 29, 2012 8:08:08 AM UTC+2, tong123123 wrote:
>
> in a search page, assume the result return many record like 8000 records, 
> and in the simplepager, each page display only 10 records, if using 
> ListDataProvider, the 8000 records will be sent to client at once time and 
> then render the celtable with all 8000 records in one time, the result is 
> static.
> if using AsyncDataProvider, each time the server only sent 10 records to 
> client.
> 1) so AsyncDataProvider response is much faster, is this correct?
> 2) but how about if the user press the "last button" in the simplepager 
> when the celltable using AsyncDataProvider? the speed is still similar to 
> get the first page? that is, it only fetch records from 7990 to 8000 
> records only, bypass all the others (record before 7990)?
> 3) assume user input criteria fieldA = "XXX", if using asyncDataProvider, 
> while searching, other user may enter record which fulfill the criteria 
> fieldA = "XXX", so the total number of records in simpepager is continually 
> changing? and so the first ten records in first page is keep continually 
> changing?
> 4) anyway, in my case (searching with result return thousands records), 
> AsyncDataProvider is more suitable then using ListDataProvider?
>
> thanks
>
>

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



Re: How to build text trimming cell for GWT DataGrid

2012-04-29 Thread Robert W
If you extend AbstractCell there is access to your model and cell state 
(view,edit). There you can count chars, traverse dom that suit your needs 

On Sunday, April 29, 2012 2:45:59 PM UTC+2, benb wrote:
>
> Hi, 
>
> I'm looking for examples for building a text-trimming cell for GWT 
> DataGrid. 
> I want the cell to have fixed width and height, and if text is longer 
> - ellipsis (...) will appear. 
> The complete text will appear on editing / on tool tip. 
>
> In my current DataGrid, the text is automatically wrapped and the row 
> height grows. I want to avoid that and to keep fixed row height. 
>
> Can someone help? 
>
> Thanks, 
> Ben


On Sunday, April 29, 2012 2:45:59 PM UTC+2, benb wrote:
>
> Hi, 
>
> I'm looking for examples for building a text-trimming cell for GWT 
> DataGrid. 
> I want the cell to have fixed width and height, and if text is longer 
> - ellipsis (...) will appear. 
> The complete text will appear on editing / on tool tip. 
>
> In my current DataGrid, the text is automatically wrapped and the row 
> height grows. I want to avoid that and to keep fixed row height. 
>
> Can someone help? 
>
> Thanks, 
> Ben

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



Postgress Connection error

2012-04-29 Thread Vrushali Patil
Hi,
I am getting error when I am trying to connect to Postgresql database
from my program. The code I have written is on server side. And I have
added postgres.sql.jar in run configurations build path. I am not able
to figure out the solution. I have tried using other java classes like
BaseDatasource, etc but getting errors there too.

Program -

public Connection makeDatabaseConn(){
try{
Class.forName("org.postgresql.Driver");

String url = 
"jdbc:postgresql://localhost:5432/my_db";
con = DriverManager.getConnection(url, 
"postgres",
"password");
con.setAutoCommit(true);

}catch( Exception e )
{
  e.printStackTrace();
}

 return con;

}


Error -

org.postgresql.util.PSQLException: Your security policy has prevented
the connection from being attempted.  You probably need to grant the
connect java.net.SocketPermission to the database server host and port
that you wish to connect to.
at org.postgresql.Driver.connect(Driver.java:282)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
com.csre.mtp.agro.Sensorwebapp.server.PollingServiceImpl.makeDatabaseConnection(PollingServiceImpl.java:
252)
at
com.csre.mtp.agro.Sensorwebapp.server.PollingServiceImpl.populateDatabase(PollingServiceImpl.java:
204)
at
com.csre.mtp.agro.Sensorwebapp.server.PollingServiceImpl.readfsxml(PollingServiceImpl.java:
177)
at
com.csre.mtp.agro.Sensorwebapp.server.PollingServiceImpl.getdata(PollingServiceImpl.java:
86)
at
com.csre.mtp.agro.Sensorwebapp.server.PollingServiceImpl.getMeasurements(PollingServiceImpl.java:
60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
112)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
569)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
60)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
78)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:369)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
15

How to find that an element is now in view on the screen

2012-04-29 Thread Deepak Singh
Hi,

Suppose i have an HtmlPanel or a DivElement and i want to know that while
scrolling up/down, this particular element is  viewable on the screen by
user.

It should not be out of sight even if attached to the DOM.

Thanks
Deepak Singh

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



Re: java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.rf.test.client.ApplicationRequestFactory RequestFactory type

2012-04-29 Thread Jens
Starting with GWT 2.4 you have to configure an annotation processor for 
RequestFactory. Its not mentioned in the official documentation yet but you 
can found information about it 
at: 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation

-- J.

Am Sonntag, 29. April 2012 21:24:03 UTC+2 schrieb laxman lingampally:
>
> Hi all. 
>
> Please help me. 
>
> i am created Gwt Web application using GWT RequestFactory ,but when 
> ever i am run the application then 
>
> getting below error: why? 
>
> java.lang.RuntimeException: The RequestFactory ValidationTool must be 
> run for the com.rf.test.client.ApplicationRequestFactory 
> RequestFactory type 
>
> please tell me  anybady 
>
> Thanks in Advace. 
> Thanks&Regards 
> Laxman 
>
>

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



java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.rf.test.client.ApplicationRequestFactory RequestFactory type

2012-04-29 Thread laxman lingampally
Hi all.

Please help me.

i am created Gwt Web application using GWT RequestFactory ,but when
ever i am run the application then

getting below error: why?

java.lang.RuntimeException: The RequestFactory ValidationTool must be
run for the com.rf.test.client.ApplicationRequestFactory
RequestFactory type

please tell me  anybady

Thanks in Advace.
Thanks&Regards
Laxman

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



Re: EventBus Vs HandlerManger

2012-04-29 Thread Michael Allan
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/event/shared/HandlerManager.html

I've inferred that EventBus is for centralized dispatch, while
HandlerManager is for widget-specific dispatch and backward
compatibility with legacy code.  (It looks like a half finished
transition.  We might be stuck with it till someone volunteers to
clean it up.)

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/


Adio said:
> Hi everyone. Can someone tell me what is the difference between
> EventBus and HandlerManager ? and when to use eachone of them ?
> To me they are do the same task ... !
> 
> Thank you a lot .

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



Re: Set the default timezone of the application

2012-04-29 Thread Joseph Lust
Snehil,
 
A similar question was asked earlier this week. Basically java.util.Date 
does not have a Timezone, but Javascript date does. To get around this you 
need a custom date serializer.

See the 
postfrom
 earlier this week.



Sincerely,
Joseph 

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



Re: How to build text trimming cell for GWT DataGrid

2012-04-29 Thread Jens
Apply CSS to your cell:

white-space: nowrap;
overflow:hidden;
text-overflow: ellipsis;

-- J.


Am Sonntag, 29. April 2012 14:45:59 UTC+2 schrieb benb:
>
> Hi, 
>
> I'm looking for examples for building a text-trimming cell for GWT 
> DataGrid. 
> I want the cell to have fixed width and height, and if text is longer 
> - ellipsis (...) will appear. 
> The complete text will appear on editing / on tool tip. 
>
> In my current DataGrid, the text is automatically wrapped and the row 
> height grows. I want to avoid that and to keep fixed row height. 
>
> Can someone help? 
>
> Thanks, 
> Ben

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



How to build text trimming cell for GWT DataGrid

2012-04-29 Thread benb
Hi,

I'm looking for examples for building a text-trimming cell for GWT
DataGrid.
I want the cell to have fixed width and height, and if text is longer
- ellipsis (...) will appear.
The complete text will appear on editing / on tool tip.

In my current DataGrid, the text is automatically wrapped and the row
height grows. I want to avoid that and to keep fixed row height.

Can someone help?

Thanks,
Ben

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



Re: Is google-appengine is necessary for RequestFactory

2012-04-29 Thread Thomas Broyer

On Saturday, April 28, 2012 9:53:52 AM UTC+2, saurabh saurabh wrote:
>
> Hi all, 
> I am taking chances for RequestFactory for a module this time and it 
> hasn't been any fun. I am using eclipse helios. 
> Project is using GWT, Spring, Hibernate. 
> To be precise I have validator-api-1.0.0.GA.jar, hibernate- 
> validator.jar, requestfactory-apt.jar in build-path and have checked 
> 'annotation processing'. 
>

You don't need requestfactory-apt in your build path; but you need to add 
it to the "factory path".
See 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation

Also, note that Eclipse's annotation processing is really buggy (to say the 
least), so you might have to clean your project, remove the .apt_generated 
folder, rename the output folder in the eproject properties, or similar 
incantations from time to time.

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



Re: Preventing selection event propagation

2012-04-29 Thread ALB-PSP-DV1
I have done a workaround in the BeforeSelectionEvent . I'm cancelling
the event at the start of the onBeforeSelection() and then reselecting
the same tab if
the user clicks "Yes" button in the confirmation window.

With this workaround everything seems to be working as expected.

Thanks Ashwin and Jens.


On Apr 29, 1:51 pm, ALB-PSP-DV1  wrote:
> Thank you for your suggestions. I tried the solution suggested by
> Jens.
>
> I have a confirmation window to be first displayed on tabselection,
> and only on click of "No" button in the confirmation window the 
> tabselectionshould be cancelled.
> Currently both BeforeSelectionEvent  and SelectionEvent are invoked
> since I can performeventcancel() on "No" button.
>
> On Apr 27, 6:02 pm, Jens  wrote:
>
>
>
>
>
>
>
> > Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its
> > only a logicaleventfired by GWT and not a nativeeventfired by the
> > browser. Thats why you don't have a stopPropagation() / preventDefault()
> > method.
>
> > But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() and the
> > BeforeSelectionEvent contains a cancel() method which should cancel the
> > upcomingselection. This should help you to solve your problem.
>
> > -- J.
>
> > Am Freitag, 27. April 2012 13:45:19 UTC+2 schrieb ALB-PSP-DV1:
>
> > > Our application has two tabs. On selecting the tabs we have to display
> > > a confirmation window(dialog box). Depending on whether user clicks
> > > "Yes" or "No" button in the confirmation window, the tabselection
> > >eventshould proceed or stop.
>
> > > I know we haveevent.stopPropagation() method for clickevent. However
> > > there is no such method forselectionevent.
>
> > > Is there any work around to stop the propagation of theselection
> > >event. Any help is much appreciated.
>
> > > Thanks in advance.

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



Re: Preventing selection event propagation

2012-04-29 Thread ALB-PSP-DV1
I have done a workaround in the BeforeSelectionEvent . I'm cancelling
the event at the start of the event and then reselecting the tab if
the user clicks "No" button in the confirmation window.

With this workaround everything seems to be working as expected.

Thanks Ashwin and Jens.


On Apr 29, 1:51 pm, ALB-PSP-DV1  wrote:
> Thank you for your suggestions. I tried the solution suggested by
> Jens.
>
> I have a confirmation window to be first displayed on tabselection,
> and only on click of "No" button in the confirmation window the 
> tabselectionshould be cancelled.
> Currently both BeforeSelectionEvent  and SelectionEvent are invoked
> since I can performeventcancel() on "No" button.
>
> On Apr 27, 6:02 pm, Jens  wrote:
>
>
>
>
>
>
>
> > Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its
> > only a logicaleventfired by GWT and not a nativeeventfired by the
> > browser. Thats why you don't have a stopPropagation() / preventDefault()
> > method.
>
> > But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() and the
> > BeforeSelectionEvent contains a cancel() method which should cancel the
> > upcomingselection. This should help you to solve your problem.
>
> > -- J.
>
> > Am Freitag, 27. April 2012 13:45:19 UTC+2 schrieb ALB-PSP-DV1:
>
> > > Our application has two tabs. On selecting the tabs we have to display
> > > a confirmation window(dialog box). Depending on whether user clicks
> > > "Yes" or "No" button in the confirmation window, the tabselection
> > >eventshould proceed or stop.
>
> > > I know we haveevent.stopPropagation() method for clickevent. However
> > > there is no such method forselectionevent.
>
> > > Is there any work around to stop the propagation of theselection
> > >event. Any help is much appreciated.
>
> > > Thanks in advance.

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



Re: Preventing selection event propagation

2012-04-29 Thread ALB-PSP-DV1


On Apr 27, 4:45 pm, ALB-PSP-DV1  wrote:
> Our application has two tabs. On selecting the tabs we have to display
> a confirmation window(dialog box). Depending on whether user clicks
> "Yes" or "No" button in the confirmation window, the tab selection
> event should proceed or stop.
>
> I know we have event.stopPropagation() method for click event. However
> there is no such method for selection event.
>
> Is there any work around to stop the propagation of the selection
> event. Any help is much appreciated.
>
> Thanks in advance.

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



Re: Preventing selection event propagation

2012-04-29 Thread ALB-PSP-DV1
Thank you for your suggestions. I tried the solution suggested by
Jens.

I have a confirmation window to be first displayed on tab selection,
and only on click of "No" button in the confirmation window the tab
selection should be cancelled.
Currently both BeforeSelectionEvent  and SelectionEvent are invoked
since I can perform event cancel() on "No" button.


On Apr 27, 6:02 pm, Jens  wrote:
> Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its
> only a logical event fired by GWT and not a native event fired by the
> browser. Thats why you don't have a stopPropagation() / preventDefault()
> method.
>
> But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() and the
> BeforeSelectionEvent contains a cancel() method which should cancel the
> upcoming selection. This should help you to solve your problem.
>
> -- J.
>
> Am Freitag, 27. April 2012 13:45:19 UTC+2 schrieb ALB-PSP-DV1:
>
>
>
>
>
>
>
>
>
> > Our application has two tabs. On selecting the tabs we have to display
> > a confirmation window(dialog box). Depending on whether user clicks
> > "Yes" or "No" button in the confirmation window, the tab selection
> > event should proceed or stop.
>
> > I know we have event.stopPropagation() method for click event. However
> > there is no such method for selection event.
>
> > Is there any work around to stop the propagation of the selection
> > event. Any help is much appreciated.
>
> > Thanks in advance.

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



EventBus Vs HandlerManger

2012-04-29 Thread Adio
Hi everyone. Can someone tell me what is the difference between
EventBus and HandlerManager ? and when to use eachone of them ?
To me they are do the same task ... !

Thank you a lot .

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