display GWT Highcharts with data of the Database
Hello , i want to dispaly a PIE charts , and i want to get the data informations from a database , please if someone know how to connect Highcharts to Database , or if you have an example project , it will helps me too much . thanks best regards -- You received 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: GWT UI Layout
How about the LayoutPanel? The advantage of LayoutPanel is that it can animate smoothly between states. On Tuesday, June 12, 2012 7:10:19 AM UTC+2, Santosh wrote: > > We wanted to design a layout in GWT which has quite a lot of small > small sections on screen. Basically it has a left menu, header, > footer, main content area with lot of sub sections which can be closed > by user in case if he does not want to see them. Then remaining > content section should get adjusted automatically. We are using GWT > Platform. I am in doubt, whether DockLayoutPanel suits for this or > not, because, it has to be must more flexible. Apart from that, I > didnt get any good layout examples. Can we achieve this using GWT > panels or we have to manually do it using div in module html file? > -- 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/-/zMOvAtvbVXMJ. 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.
make a transparent image with gwt or css have you an idea ?
-- Assiya EL Master Qualité du Logiciel Plz consider environment - Only print this if necessary -- You received 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.
setVisible issues with Firefox, then display: none !important
Hello, about to deploy to production an evolution of a project, customer calls and says "hidding icons fails in Firefox". What? Firebug to the rescue says the icons have a nice "display: none" after I call setVisible(false). Changing by hand to display: none !important works and I accept it as a solution (did I say that I start holidays on friday evening and kitesurfing sounds a better idea than coding in a cybercafe?) I tried a custom setVisibilitat method that does setVisible and getElement().getStyle().setProperty("display","none !important") if needed, but this fails, see generated JavaScript for details: function $setVisibilitat(this$static, visible){ var style; // This is setVisible(false); this$static.element.style.display = visible?'':'none'; if (!visible) { // This is Style style=getElement().getStyle(); style.setProperty("display","none !important"); style = this$static.element.style; style['display'] = 'none !important'; } } The if ( !visible) above executes but fails and leaves display:none. I wonder whether the reason is this difference this$static.element.style.display = versus style = this$static.element.style; style['display'] = Notice the dot property against the array property. Sorry, what? Did I hear someone talking about setDisplay(Display d)? Well, according to this the enum does not cover the !important thing: http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/dom/client/Style.Display.html So far, a good solution will be managing some way of programatically setting the !important bit, but my Google mojo wasn't able to find it. Ideas are welcome. In the end, I think I could have defined some sytle that has the display: none !important, but don't like adding that many styles and (don't tell anybody) I programatically got the style, looked for display: none and added in place !important, keeping all other style properties. Works. Holidays. Kitesurf :) -- You received 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: GWT UI Layout
Does layoutpanel give that kind of flexibility to build complex structures? I heard this is the simplest panel upon which others are built On Jun 12, 3:35 pm, Thomas Broyer wrote: > How about the LayoutPanel? > The advantage of LayoutPanel is that it can animate smoothly between states. > > > > > > > > On Tuesday, June 12, 2012 7:10:19 AM UTC+2, Santosh wrote: > > > We wanted to design a layout in GWT which has quite a lot of small > > small sections on screen. Basically it has a left menu, header, > > footer, main content area with lot of sub sections which can be closed > > by user in case if he does not want to see them. Then remaining > > content section should get adjusted automatically. We are using GWT > > Platform. I am in doubt, whether DockLayoutPanel suits for this or > > not, because, it has to be must more flexible. Apart from that, I > > didnt get any good layout examples. Can we achieve this using GWT > > panels or we have to manually do it using div in module html file? -- You received 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: display GWT Highcharts with data of the Database
Hello, For beginning, you can try to following this tutorial : http://www.moxiegroup.com/moxieapps/gwt-highcharts/quickstart.jsp Dominique. On 12 juin, 10:37, alaa aadil wrote: > Hello , > > i want to dispaly a PIE charts , and i want to get the data > informations from a database , > > please if someone know how to connect Highcharts to Database , or if > you have an example project , it will helps me too much . > > thanks > > best regards -- You received 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: GWT UI Layout
I have built complex structures using LayoutPanel, gives much flexibility. Also as Thomas said, you can animate transitions. By example: public void setDefaultLayout () { ... ... mainLayout.setWidgetLeftWidth (logo, 0, TCP 100, TCP); mainLayout.setWidgetTopHeight (logo, 0, PCT, NORTH_HEIGHT, PX); mainLayout.setWidgetLeftWidth (navigation, 0, TCP 100, TCP); mainLayout.setWidgetTopHeight (navigation, NORTH_HEIGHT, PX 38, PX); ... ... mainLayout.animate (500); } You are responsible for positioning the internal widget or panels. A.U.S Cristian Rinaldi 2012/6/12 Santosh > Does layoutpanel give that kind of flexibility to build complex > structures? I heard this is the simplest panel upon which others are > built > > On Jun 12, 3:35 pm, Thomas Broyer wrote: > > How about the LayoutPanel? > > The advantage of LayoutPanel is that it can animate smoothly between > states. > > > > > > > > > > > > > > > > On Tuesday, June 12, 2012 7:10:19 AM UTC+2, Santosh wrote: > > > > > We wanted to design a layout in GWT which has quite a lot of small > > > small sections on screen. Basically it has a left menu, header, > > > footer, main content area with lot of sub sections which can be closed > > > by user in case if he does not want to see them. Then remaining > > > content section should get adjusted automatically. We are using GWT > > > Platform. I am in doubt, whether DockLayoutPanel suits for this or > > > not, because, it has to be must more flexible. Apart from that, I > > > didnt get any good layout examples. Can we achieve this using GWT > > > panels or we have to manually do it using div in module html file? > > -- > You received 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. > > -- You received 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: Revisiting cross-site requests: CORS and development mode
On Monday, June 11, 2012 4:15:04 AM UTC-4, Thomas Broyer wrote: > > Er, I'm puzzled. If you use Dev Mode's embedded server to serve your data, > then you don't hit the SOP, right? and thus you don't need CORS? Or have I > missed something obvious? > Not quite, dev mode's server feeds the application but the data comes from somewhere else. (It's actually a jersey-guice servlet on my EC2 instance - first year free!) I want to be able to test the application locally, but using remote data. Ultimately, one of the things I was trying to determine is whether or not it makes sense to use the same "get data" approach for all cases. So, for now, I ended up using JSONP for everything. I don't particularly feel that's ideal, though. Adding a servlet filter to add the header sounds easy, though. I'll try that and see how it works out. -- 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/-/GpSP3oCQoS0J. 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: GWT UI Layout
Will try to use and see if it can help. Thanks On Jun 12, 5:41 pm, Cristian Rinaldi wrote: > I have built complex structures using LayoutPanel, gives much flexibility. > Also as Thomas said, you can animate transitions. > > By example: > public void setDefaultLayout () { > ... > ... > mainLayout.setWidgetLeftWidth (logo, 0, TCP 100, TCP); > mainLayout.setWidgetTopHeight (logo, 0, PCT, NORTH_HEIGHT, PX); > > mainLayout.setWidgetLeftWidth (navigation, 0, TCP 100, TCP); > mainLayout.setWidgetTopHeight (navigation, NORTH_HEIGHT, PX 38, PX); > ... > ... > mainLayout.animate (500); > > } > > You are responsible for positioning the internal widget or panels. > > A.U.S Cristian Rinaldi > > 2012/6/12 Santosh > > > > > > > > > Does layoutpanel give that kind of flexibility to build complex > > structures? I heard this is the simplest panel upon which others are > > built > > > On Jun 12, 3:35 pm, Thomas Broyer wrote: > > > How about the LayoutPanel? > > > The advantage of LayoutPanel is that it can animate smoothly between > > states. > > > > On Tuesday, June 12, 2012 7:10:19 AM UTC+2, Santosh wrote: > > > > > We wanted to design a layout in GWT which has quite a lot of small > > > > small sections on screen. Basically it has a left menu, header, > > > > footer, main content area with lot of sub sections which can be closed > > > > by user in case if he does not want to see them. Then remaining > > > > content section should get adjusted automatically. We are using GWT > > > > Platform. I am in doubt, whether DockLayoutPanel suits for this or > > > > not, because, it has to be must more flexible. Apart from that, I > > > > didnt get any good layout examples. Can we achieve this using GWT > > > > panels or we have to manually do it using div in module html file? > > > -- > > You received 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. -- You received 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: Having domain objects implement EntityProxy - bad idea?
Wow, I'm embarrassed to say that I have always assumed that an interface can only extend a single interface, because that's the way that it works for classes. There's no reason it should be that way, though, and it makes life a lot easier to know that it's possible. I would have done it this way originally over a year ago had I known this! Thanks, Ryan On Tuesday, June 12, 2012 2:53:55 AM UTC-4, Thomas Broyer wrote: > I can't see any reason it wouldn't work, but I think you'd rather extract > an interface, implemented by your domain object, and extended by your proxy > (in addition to EntityProxy). > > interface Domain { /* getters and setters */ } > > class DomainImpl implements Domain { … } > > interface DomainProxy extends Domain, EntityProxy { … } > > In case you were wondering, this approach has been proven to work. > One exception is currently if your Domain interface references another > interface (as opposed to "simple value types"), where you'd face > http://code.google.com/p/google-web-toolkit/issues/detail?id=5926 > This issue will be fixed in GWT 2.5.1, which we expect to release by the > end of the summer. > > On Monday, June 11, 2012 9:35:02 PM UTC+2, Ryan McFall wrote: >> >> One of the things I don't like about the design of the RequestFactory >> is the fact that client-side proxies need to extend EntityProxy; I >> think I understand why this is needed, but it makes it more difficult >> to write code that can operate on both proxies and actual domain >> objects. >> >> One way of getting around this is to have the domain objects implement >> the proxy interface. This means that the domain objects must >> implement EntityProxy, giving a stableId method that shouldn't >> actually be called, but allows utility code to treat proxies and >> domain objects in the same way. >> >> Before going down this route, I'm wondering if there are reasons it >> won't work that I haven't thought about. >> >> Thanks! >> Ryan > > > On Monday, June 11, 2012 9:35:02 PM UTC+2, Ryan McFall wrote: >> >> One of the things I don't like about the design of the RequestFactory >> is the fact that client-side proxies need to extend EntityProxy; I >> think I understand why this is needed, but it makes it more difficult >> to write code that can operate on both proxies and actual domain >> objects. >> >> One way of getting around this is to have the domain objects implement >> the proxy interface. This means that the domain objects must >> implement EntityProxy, giving a stableId method that shouldn't >> actually be called, but allows utility code to treat proxies and >> domain objects in the same way. >> >> Before going down this route, I'm wondering if there are reasons it >> won't work that I haven't thought about. >> >> Thanks! >> Ryan > > -- 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/-/f8stn8zYlUMJ. 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.
Trying to understand how RF picks the domain objects to compose a request to a service
Hello all, I'm having a weird scenario in my application, and I guess that if I could understand better how RF picks the domain objects instances it will provide to a service, maybe I could understand what's going on. Here's my scenario: I have an Editor. The domain class A has a property B which is another domain entity. In the editor there's a ValueListBox. Use cases: * If I just load the editor and hit submit without touching anything, everything works nicely. * If I change the value of B by picking another entity in the ValueListBox, it also works nicely. * If I change the value of B as above, but before submitting I change my mind and return the ValueListBox to its original value, RF will send to my service an object A whose property B is a non-initialized Hibernate proxy, linked to a closed session. That will result in a LazyInitializationException. In the other two cases, it was sending me an instance of B, not a hibernate proxy. Can somebody kindly help me understand how RF composes my object A after receiving the request payload? Where is it getting this uninitialized proxy from? Thank you, -- Tiago Rinck Caveden -- You received 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: Trying to understand how RF picks the domain objects to compose a request to a service
How are the acceptable values of the ValueListBox populated? The difference between scenarios 1 and 3 is that in the former the value is not changed (stored in a field in setValue, returned as-is from getValue), while in the latter it is set to the equivalent value from the list of acceptable values. It might be related to http://code.google.com/p/google-web-toolkit/issues/detail?id=7189 but it depends how you setup your Hibernate sessions. With RF, you're supposed to use the OpenSessionInView paradigm, and then use one transaction per service method. On Tuesday, June 12, 2012 3:54:32 PM UTC+2, Tiago wrote: > > Hello all, > > I'm having a weird scenario in my application, and I guess that if I could > understand better how RF picks the domain objects instances it will provide > to a service, maybe I could understand what's going on. > > Here's my scenario: > > I have an Editor. The domain class A has a property B which is > another domain entity. > In the editor there's a ValueListBox. > > Use cases: > * If I just load the editor and hit submit without touching anything, > everything works nicely. > * If I change the value of B by picking another entity in the > ValueListBox, it also works nicely. > * If I change the value of B as above, but before submitting I change my > mind and return the ValueListBox to its original value, RF will send to my > service an object A whose property B is a non-initialized Hibernate proxy, > linked to a closed session. That will result in a > LazyInitializationException. In the other two cases, it was sending me an > instance of B, not a hibernate proxy. > > Can somebody kindly help me understand how RF composes my object A after > receiving the request payload? Where is it getting this uninitialized proxy > from? > > Thank you, > -- > Tiago Rinck Caveden > > -- 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/-/MD2ZmbOiTF4J. 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.
CellTable Selection
Just wondering how to select a row in a CellTable and have it displayed I mean let's say a Table with 100 Rows displaying rows 1-15 of 100 if I select row 20 that is not visible how to make the table show the selection probably very simple ... but... Thanks Patrick -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: Trying to understand how RF picks the domain objects to compose a request to a service
On Tuesday, June 12, 2012 4:17:23 PM UTC+2, Thomas Broyer wrote: > > How are the acceptable values of the ValueListBox populated? A request is done specifically for that. The list of acceptable values is properly initialized on the server side before returning it to the client side. > The difference between scenarios 1 and 3 is that in the former the value > is not changed (stored in a field in setValue, returned as-is from > getValue), while in the latter it is set to the equivalent value from the > list of acceptable values. > I suspected this. But the proxy that's being saved in B is not the same instance that was returned by the request I said above, which was used to populate the acceptable values. I verified that with the debugger. And it should be initialized if it was the same object of the list anyway. > It might be related to > http://code.google.com/p/google-web-toolkit/issues/detail?id=7189 but it > depends how you setup your Hibernate sessions. > I'm not touching any other field.. sure it's related? Maybe another detail that might make some difference is that B is an abstract class. The subproxies to the concrete classes present in the ValueListBox are all properly defined in BProxy's @ExtraTypes annotation. Don't know if that might mess things up... > With RF, you're supposed to use the OpenSessionInView paradigm, and then > use one transaction per service method. > Hum, I don't use OpenSessionInView, but regardless, the uninitialized proxy B must be set to A before my view method is called. Even if it was OpenSessionInView, the proxy comes from a previous session... right? Thanks Thomas for your help! -- 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/-/IMGgtZHYP3cJ. 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: CellTable Selection
If you know you selected the 20th object, then you know you want to display the second page. If you use a SimplePager, you can then call setPage(1) (first page is numbered 0); otherwise call setVisibleRange(15, 15) on your CellTable. There are other variations, depending on how you feed the data to the CellTable. On Tuesday, June 12, 2012 4:44:01 PM UTC+2, coelho wrote: > > Just wondering how to select a row in a CellTable and have it displayed > > I mean let's say a Table with 100 Rows displaying rows 1-15 of 100 > > if I select row 20 that is not visible > > how to make the table show the selection > > probably very simple ... but... > > Thanks > > Patrick > -- 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/-/0xY8UxneqmAJ. 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 check whether the email or website is real website or email
could any one provide me the solution to validate whether the given email or website is real or not? -- 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/-/ISDphwhpFIUJ. 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 check whether the email or website is real website or email
That question has nothing to do with GWT, so this is the wrong place to post it. Decide what you mean by "validate" and "real" and google the question. On Jun 12, 8:11 am, lucky wrote: > could any one provide me the solution to validate whether the given email > or website is real or not? -- You received 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.
UiBinder as Cell widget
Hi All, I have an UIBinder widget. I created a custom cell by extending AbstractCell as follows public class ActivityCell extends AbstractCell { @Override public void render(com.google.gwt.cell.client.Cell.Context context, EachActivity value, SafeHtmlBuilder sb) { if (value == null) { return; } sb.appendHtmlConstant(value.getElement().getInnerHTML()); } } where is a uibinder widget. There are buttons and anchors inside this uibinder. When added to celltable as a column, this gets rendered perfectly. But the event does not get fired when clicking on the buttons and Anchors of UIBinder. Is there any solution ? Help appreciated. 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.
Using GWTTestCase to test GWT-RPC
Just getting started with GWTTestCase. I'd like to create some tests that include testing of the backend. Having trouble getting a basic GWTTestCase running. Here is what it looks like: public class Test2 extends GWTTestCase { @Override public String getModuleName() { return "com.test.app.MyApp"; } public void testTwo() { System.out.println( "Test2 starting." ); BoneStationServiceAsync bssrv = GWT.create( BoneStationService.class ); FindScansCountCallback findScansCountCallback = new FindScansCountCallback(); bssrv.findScansCnt( "Bar%", null, null, null, null, null, null, -1, findScansCountCallback ); delayTestFinish( 1 ); System.out.println( "Test2 ending." ); } /** * */ private class FindScansCountCallback extends AuthAsyncCallback { public void onFail( Throwable caught ) { assert false; caught.printStackTrace(); } public void onSuccess( Integer results ) { System.out.println( results ); finishTest(); } } } -- 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/-/xQFOv4yyP1AJ. 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.
GWTTestCase and GWT-RPC
I'm having trouble getting a basic GWTTestCase running with a simple GWT-RPC. Here is what it looks like. What am I doing wrong. Note that when the test is run the callbacks onFailure() is called with a 404 error detail. public class Test2 extends GWTTestCase { @Override public String getModuleName() { return "com.test.app.MyApp"; } public void testTwo() { System.out.println( "Test2 starting." ); MyServiceAsync srv = GWT.create( MyService.class ); DoitCallback doitCallback = new DoitCallback(); srv.doit( doitCallback ); delayTestFinish( 1 ); System.out.println( "Test2 ending." ); } /** * */ private class DoitCountCallback extends AsyncCallback { public void onFailure( Throwable caught ) { assert false; caught.printStackTrace(); } public void onSuccess( String results ) { System.out.println( results ); finishTest(); } } } -- 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/-/d5bw02eeynAJ. 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.
Help with GWTTestCase and GWT-RPC
I'm having trouble getting a basic GWTTestCase running with a simple GWT-RPC. Here is what it looks like. What am I doing wrong. Note that when the test is run the callback's onFailure() is called with a 404 error detail. public class Test2 extends GWTTestCase { @Override public String getModuleName() { return "com.test.app.MyApp"; } public void testTwo() { System.out.println( "Test2 starting." ); MyServiceAsync srv = GWT.create( MyService.class ); DoitCallback doitCallback = new DoitCallback(); srv.doit( doitCallback ); delayTestFinish( 1 ); System.out.println( "Test2 ending." ); } /** * */ private class DoitCallback extends AsyncCallback { public void onFailure( Throwable caught ) { assert false; caught.printStackTrace(); } public void onSuccess( String results ) { System.out.println( results ); finishTest(); } } } -- 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/-/iuSTL_IYjVUJ. 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: UiBinder as Cell widget
UiBinder does not handle Cell widget events. You probably want to use the upcoming Uibinder for Cells functionality (a.k.a. UiRenderer). It will be part of 2.5, but it is available in trunk, for the time being. No documentation yet, but there is a design document here: https://docs.google.com/document/d/1Oo_imxskoGX5O9l9LhHDtJ0yJkHvNTNQqU3dkkekZYI/edit On Tuesday, June 12, 2012 1:01:59 PM UTC-4, Deepak Singh wrote: > > Hi All, > > I have an UIBinder widget. > I created a custom cell by extending AbstractCell as follows > > public class ActivityCell extends AbstractCell { > > @Override > public void render(com.google.gwt.cell.client.Cell.Context context, > EachActivity value, SafeHtmlBuilder sb) { > if (value == null) { > return; > } > sb.appendHtmlConstant(value.getElement().getInnerHTML()); > } > } > > where is a uibinder widget. > > There are buttons and anchors inside this uibinder. > > When added to celltable as a column, this gets rendered perfectly. But the > event does not get fired when clicking on the buttons and Anchors of > UIBinder. > > Is there any solution ? > > Help appreciated. > > > > Thanks > Deepak Singh > -- 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/-/RRQwlufNri0J. 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: Help with GWTTestCase and GWT-RPC
Figured it out. Needed to add this to the module.gwt.xml file on order for the service servlet to run. Found this out here: http://stackoverflow.com/questions/8158818/gwt-getting-404-in-gwttestcase-when-trying-to-make-an-ajax-call -- 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/-/q4VyOH1g-M4J. 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.
Server side equivalent of RpcRequestBuilder
Hi, I'm using an RpcRequestBuilder to add a session id header to the http request being made to the server. Now, what I wanted was to on the *server* side, get the request and before it get's executed (call the method), check if the session is valid. How can I accomplish this? My biggest problem is understanding the full workflow (classes involved) of a GWT-RPC request, so I really don't know which class to create/extend/define. Any help is good help :) 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.
GWT & Spring Security
I'd like to get feedback on the best way to secure GWT apps with Spring Security. I read several existing blogs about this online but they are all (that I have found) quite old at this point. Specifically what's the best way with GWT 2.4 and Spring Security 3.1? Or is there a better way other than Spring Security? -- You received 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.
Designing for testability with MVP and Activities and Places
Here is a simple example that I'm working on. Input would be appreciated. I'm sure there are different approaches, but I'm having trouble finding one and having a particular issue with the level of granularity of testing. I know one answer, in advance, will be to not use GWTTestCase. I will heed that. But the example below represents a simpler situation where GWTTestCase will likely be needed. So, how would one do this with GWTTestCase (assuming the actual case I'll be testing for is a good candidate for GWTTestCase)? I have a basic search form. It has fields on it like: first name, last name, etc. There is also a Find button. When the Find button is pressed, a list of people matching the criteria appear. Each row in the list (CellTable) has person's name, date of birth, address, etc. Many items are links (Hyperlinks). For example, the person's name is a Hyperlink that, when clicked, goes to a new screen showing the person details. Basic CRUD stuff. There is a presenter, defined by the view. public interface PersonSearchView extends IsWidget { public void setPresenter( Presenter listener ); public void setData( Vector psinfos ); ... public interface Presenter { /** * Find people that match certain criteria. * * @return */ void findPersons( String firstname, String lastname, int sortBy, int start, int cnt ); /** * Navigate to a new Place in the browser. */ void goTo( Place place ); } } The PersonSearchActivity implements the Presenter. public class PersonSearchActivity extends AbstractActivity implements PersonSearchView.Presenter { ... public void findPersons( String firstname, String lastname, int sortBy, int start, int cnt ) { MyServiceAsync srv = GWT.create( MyService.class ); PersonSearchCallback personSearchCallback = new PersonSearchCallback (); srv .findPersons( firstname, lastname, sortBy, start, cnt, personSearchCallback ); } private class PersonSearchCallback extends AsyncCallback> { public void onFail( Throwable caught ) { caught.printStackTrace(); } public void onSuccess( Vector results ) { clientFactory.getPersonSearchView().setData( results ); } } } The PersonSearchViewImpl has a bunch of test fields on it (firstname, lastname, find button, etc) and calls the activities method to actually do work. public class PersonSearchViewImpl extends ResizeComposite implements PersonSearchView { interface Binder extends UiBinder { } private static final Binder binder = GWT.create( Binder.class ); @UiField TextBox firstname; @UiField TextBox lastname; @UiField Button findButton; /** * Handle Search button - do the search. */ @UiHandler( "findButton" ) protected void onFindButtonClick( ClickEvent event ) { ... listener.findPersons( firstname, lastname, sortby, start, cnt ); ... } } A couple of questions regarding a test I'd like to perform. Let's assume that testing occurs with a live database (and GWT-RPC). I know that contest of the database and what should be returned for certain queries. I'd like to run tests that execute certain queries and make sure they appear in the table (at certain positions). 1) How would I test the clicking within the results. For example, each person's name appears (per row) as a Hyperlink in the results. This is implemented in a CellTable with Hyperlinks. Normal behavior is that when the Hyperlink is clicked, GWT goes to the new place. There is no notification to the activity. I suppose a ClickHandler could be added, but it would have no usefulness other than testing. Would it be better to not use a Hyperlink (maybe a Label with a click handler) and add a selectPerson() method to the Presenter. Then the activity could test the selection and handle the advancing to the new Place? 2) I've seen a technique where a Display interface is created within the Presenter. It contains a list of HasText and HasClickHandlers that conceptually define the View. It seems pretty fine grained. Of course, this has the same issue related to Hyperlinks. Anway, I'd appreciate feedback on various approaches. -- 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/-/EW14INAHCXIJ. 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 check whether the email or website is real website or email
Here i need to check whether this website or email exist or not? -- 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/-/tcoe42e0x4MJ. 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.