Re: GWT integrated with JSF
The jboss doc link gives heaps of food for thought. Just wondering, am i correct to say that G4JSF became ajax4jsf which then became richfaces ? This kinda makes it quite confusing when i have jsf and gwt and no idea what i can use to glue it together :P An example would be very helpful :) on the seam application, and maybe on the other ways of pulling information. :) I have used spring in the past, tho not starting out and it already had a very structured hierarchy and as i'm a fresh out of uni, and this is mostly a green feilds type project, there is way to many technologies to look at and yet not enough time in the day. :/ The jsf website that i'm now working on had a pre existing database backend in oracle. The developer before me used netbeans out of the box features to generate a brand new interface to the oracle database. (can't remember the backend infrastructure, will find out in the morning when i'm at work) The simple stuff is done and now its to the hard stuff. i have thought of doing through GWT DOM objects, but i would like a cleaner way of keeping state, the application will be doing big edits to the database backend if they apply the changes they make and i would like to allow any not pre-commited changes to either linger till out of session of save for next session which means that GWT DOM object pulling for the id/keys won't do. Google group discussions seems to be quite nice, tho i do miss the spell check feature that is in gmail. :) On Dec 14, 5:50 pm, "olivier FRESSE" wrote: > Hi will, > I work on a project where we use GWT, seam and facelet. The server is a > glassfish one. > Seam is a great framework, and I really see it as a great enhancement to > JSF. > It provides many components, including "Seam Remoting". > Seam Remoting allows a remote access to seam components,using Ajax. > And you can replace GWT Services by Remoting calls... > This allows you to easily share data between JSF/Facelet pages and GWT > modules via > Seam contexts. > > see :http://docs.jboss.com/seam/2.1.1.CR2/reference/en-US/html_single/#gwt > > Of course, this may mean deep modifications in your project. > If you wan to integrate a simple GWT module in a page and read hidden input > values > from the page I see 2 solutions : > > JSNI : Allows you to call JScript in the page. > > GWT DOM object : Allows you to manipulate DOM objects. > > I'll find a sample and post it there :-) > > O. > > 2008/12/13 will.dutt > > > > > i've been look around for anything that was happening with these 2 > > great components. sadly the g4jsf is a dead end :(. > > > i've got a JSF website that is now hitting the boundaries of what is > > possible in a static html refresh browser and needs GWT badly. > > > does anyone have any good examples of integrating GWT components to > > pull information from the page its placed on and rpc the rest of the > > content it needs? > > > i can place a GWT compenent on the page with div's which is good, but > > i'm having trouble getting information from the page (eg ID that link > > to a database). what is the command to do that? --~--~-~--~~~---~--~~ You received 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: Problem with GWT RPC call with List of DTO objects
Have you tried: public interface MyService extends RemoteService { List getNames(); } && public class MyServlet extends RemoteServiceServlet implements MyService { public List getNames() { List rs = new ArrayList(); TempDTO dto1 = new TempDTO(); dto1.setName("A1"); dto1.setCondition("Set"); rs.add(dto1); return rs; } } On Dec 13, 8:52 pm, Cris wrote: > Hi > My requirement is as below. > 1. I have a DTO as below with setters and getters for the same > package com.gwt.sample.client.data > > public class TempDTO implements IsSerializable > { > private String name; > private String condition; > } > > 2. My RPC stuff is as below > package com.gwt.sample.client > public interface MyService extends RemoteService > { > List getNames(); > } > > package com.gwt.sample.client > public interface MyServiceAsync > { > void getNames(AsyncCallback async); > } > > 3. Servlet is > public class MyServlet extends RemoteServiceServlet implements > MyService > { > public List getNames() > { > List rs = new ArrayList(); > TempDTO dto1 = new TempDTO(); > dto1.setName("A1"); > dto1.setCondition("Set"); > rs.add(dto1); > return rs; > } > } > > When made a request to this MyServlet I am getting strange error in > browser "Could not complete the operation due to error c00ce514 > number:" > This error message is (throwable.getMessage()) is displaying in > onFailure() method. > > The same code is working fine if I pass List of strings. The problem > is only with List of DTOs. > > Please, can anyone help me. > > Thansk, > Cris --~--~-~--~~~---~--~~ You received 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 event model
Hello , I use DOM.seteventlistener in my application. This method will be remove ? Thanks On 13 déc, 13:58, Mike wrote: > Great, thanks for the info! > > On Dec 12, 3:59 am, Sumit Chandel wrote: > > > Hi Mike, > > > As Adam mentioned, the new event system you discovered in trunk is indeed > > for GWT 1.6, following the design details explained in the link he posted > > above. > > > The new event system should solve some of the problems in the current Event > > system (as detailed in the doc), including the use case you mentioned in > > your first post. While the upcoming GWT 1.6 event system will be quite > > different from the current model in a breaking way, the change should lead > > to drastically improved performance and ease of development. > > > Hope that helps, > > -Sumit Chandel > > > On Mon, Dec 8, 2008 at 11:17 AM, Adam T wrote: > > > > It's for the version 1.6 event system: > > > >http://code.google.com/p/google-web-toolkit-incubator/wiki/ProposedEv... > > > > //Adam > > > > On 8 Dec, 17:06, Mike wrote: > > > > Hi all, > > > > > Today i was browsing the latest source code for GWT and i saw that > > > > many event-related classes have been deprecated. (E.g. CLickListener > > > > and SourcesClickEvents.) Is a major refactoring of the event mechanism > > > > forthcoming? > > > > > (I was trying to figure out how the GWT event model works, i.e. i was > > > > wondering what the rock-bottom source for GWT events is and how they > > > > are `injected' into java. I discovered that GWT events are fired after > > > > handling browser events. In my opinion, this is not clearly explained > > > > in the GWT documentation. I worked an example, you can find it on my > > > > blog whatmovesmike.blogspot.com .) > > > > > Bye, Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
Why the form isn't getting submitted?
Hey, I'm trying to use FormPanel to submit values to a servlet: + form = new FormPanel(); form.setAction("/webcontext/command"); form.setMethod(FormPanel.METHOD_POST); form.setEncoding(FormPanel.ENCODING_URLENCODED); form.addFormHandler(this); // controls table is created with FlexTable controlsTable = new FlexTable(); form.setWidget(controlsTable); groupName = new Label("Group name:"); group = new TextBox(); group.setName("groupName"); submit = new Button("Create Group"); submit.addClickListener(this); cancel = new Button("Cancel"); cancel.addClickListener(this); // Then I'm adding the labels and form's controls to the controlsTable public void onClick(Widget sender) { if (sender == submit) form.submit(); else this.hide(true); } ++ But when clicking on "Create Group" button, no request is made to the servlet (proofed by FireBug and the debugger). Why my for isn't getting submitted? 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-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: Why the form isn't getting submitted?
Well, it turned out that I have to add the FormPanel to the main panel... On Dec 14, 4:16 pm, LoneWolf wrote: > Hey, > I'm trying to use FormPanel to submit values to a servlet: > + > form = new FormPanel(); > form.setAction("/webcontext/command"); > form.setMethod(FormPanel.METHOD_POST); > form.setEncoding(FormPanel.ENCODING_URLENCODED); > form.addFormHandler(this); > // controls table is created with FlexTable controlsTable = > new FlexTable(); > form.setWidget(controlsTable); > groupName = new Label("Group name:"); > group = new TextBox(); > group.setName("groupName"); > submit = new Button("Create Group"); > submit.addClickListener(this); > cancel = new Button("Cancel"); > cancel.addClickListener(this); > > // Then I'm adding the labels and form's controls to the controlsTable > > public void onClick(Widget sender) { > if (sender == submit) > form.submit(); > else > this.hide(true); > } > ++ > But when clicking on "Create Group" button, no request is made to the > servlet (proofed by FireBug and the debugger). > Why my for isn't getting submitted? > 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-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 modify RichTextArea
I try to modify the functionallity of the RichTextArea Wdiget. As you know it is possible to format text as bold for instance, which wraps the selected text with my text. Is it possible to format text by wrapping my own tags, like: my text. Or is there a way to get cursor position and selection? Then I can use setHTML() and getHTML(). --~--~-~--~~~---~--~~ You received 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: J2EE and debug in hosted mode
Thx for the answer, but I need an exact howto, how can I debug the whole J2EE application with Hosted Mode using Glassfish and Netbeans. As I said, I searched a lot and haven't found a good description. Bandesz On Dec 8, 4:34 am, gregor wrote: > couple of approaches > > 1) Simply use -noserver option. You need a build script to deploy your > RPC servlets and your EJB layer to Glassfish on demand and activate > remote debugging to make this work effectively, but lots of people do > it this way. See > > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog... > > 2) You can run your RPC servlets in hosted mode Tomcat instance > leaving your session beans on Glassfish with a bit more work. You need > to use trad JNDI to try for a local reference to your session beans, > and if that fails go for the remote reference instead. I don't think > the new annotation stuff works for this.That way you get a local ref > in production and a remote one in dev from the same code. If you use > the ServiceLocator pattern it makes this easier. > > On Dec 7, 2:26 pm,Bandesz wrote: > > > I'm developing a J2EE application with GWT using NetBeans 6.5, > > Glassfish v2. > > > If I debugging only the web project, I can't use any Session Beans > > from EJB project, becase I get "Cannot resolve reference Unresolved > > Ejb-Ref..." error. I tried in every way to make tags > > in web.xml (or in ejb-jar.xml), but the error stays. (I see now that > > it's a dead end) > > > If I debugging the enterpise project, everythings works except the > > hosted mode. > > > I searched a lot, but I can't make this work, please help. > > > Thanks, > > Bandesz > > --~--~-~--~~~---~--~~ You received 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: J2EE and debug in hosted mode
Well, that depends on your IDE and your app server, and unfortunately I use Intellij and JBoss. In JBoss the magic command is: set JAVA_OPTS=-Xdebug - Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS % which is in the JBoss startup script. I then set up a debug session within IDEA that starts up JBoss inside IDEA and connects to it for debugging purposes on port 8787 (IDEA conveniently knows how to do this). Then I start the GWT module in hosted mode also in debug. As a result the whole stack is running in debug and break points can be set anywhere. It looks like you can do a very similar thing with netbeans/glassfish: http://weblogs.java.net/blog/arungupta/archive/2007/06/debug_applicati.html I think you actually end up with two separate debug sessions, one for your GWT app in hosted mode, and a second remote debug session for what you have deployed on the app server. However this makes no practical difference to debugging - GWT calls your server as per normal and execution will halt at break points wherever they are in the stack. regards gregor On Dec 14, 3:27 pm, Bandesz wrote: > Thx for the answer, but I need an exact howto, how can I debug the > whole J2EE application with Hosted Mode using Glassfish and Netbeans. > > As I said, I searched a lot and haven't found a good description. > > Bandesz > > On Dec 8, 4:34 am, gregor wrote: > > > couple of approaches > > > 1) Simply use -noserver option. You need a build script to deploy your > > RPC servlets and your EJB layer to Glassfish on demand and activate > > remote debugging to make this work effectively, but lots of people do > > it this way. See > > >http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog... > > > 2) You can run your RPC servlets in hosted mode Tomcat instance > > leaving your session beans on Glassfish with a bit more work. You need > > to use trad JNDI to try for a local reference to your session beans, > > and if that fails go for the remote reference instead. I don't think > > the new annotation stuff works for this.That way you get a local ref > > in production and a remote one in dev from the same code. If you use > > the ServiceLocator pattern it makes this easier. > > > On Dec 7, 2:26 pm,Bandesz wrote: > > > > I'm developing a J2EE application with GWT using NetBeans 6.5, > > > Glassfish v2. > > > > If I debugging only the web project, I can't use any Session Beans > > > from EJB project, becase I get "Cannot resolve reference Unresolved > > > Ejb-Ref..." error. I tried in every way to make tags > > > in web.xml (or in ejb-jar.xml), but the error stays. (I see now that > > > it's a dead end) > > > > If I debugging the enterpise project, everythings works except the > > > hosted mode. > > > > I searched a lot, but I can't make this work, please help. > > > > Thanks, > > > Bandesz --~--~-~--~~~---~--~~ You received 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: J2EE and debug in hosted mode
When you run in hosted mode, you have 2 java processes running. The glassfish one, and the GWT shell. Debugging the glassfish side is easy, it comes OOTB in Netbeans. Debugging the client side is quite easy too. You just need to change the way the GWTShell is launched : java *-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n * -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/home/ofe/dev/gwt-linux-1.5.3/gwt-user.jar:/home/ofe/dev/gwt-linux-1.5.3/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" ext.test.MyAppli/MyAppli.html; next you can attach the netbeans debugger to the Shell. Is it what you're looking for ? O. 2008/12/14 Bandesz > > Thx for the answer, but I need an exact howto, how can I debug the > whole J2EE application with Hosted Mode using Glassfish and Netbeans. > > As I said, I searched a lot and haven't found a good description. > > Bandesz > > On Dec 8, 4:34 am, gregor wrote: > > couple of approaches > > > > 1) Simply use -noserver option. You need a build script to deploy your > > RPC servlets and your EJB layer to Glassfish on demand and activate > > remote debugging to make this work effectively, but lots of people do > > it this way. See > > > > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog... > > > > 2) You can run your RPC servlets in hosted mode Tomcat instance > > leaving your session beans on Glassfish with a bit more work. You need > > to use trad JNDI to try for a local reference to your session beans, > > and if that fails go for the remote reference instead. I don't think > > the new annotation stuff works for this.That way you get a local ref > > in production and a remote one in dev from the same code. If you use > > the ServiceLocator pattern it makes this easier. > > > > On Dec 7, 2:26 pm,Bandesz wrote: > > > > > I'm developing a J2EE application with GWT using NetBeans 6.5, > > > Glassfish v2. > > > > > If I debugging only the web project, I can't use any Session Beans > > > from EJB project, becase I get "Cannot resolve reference Unresolved > > > Ejb-Ref..." error. I tried in every way to make tags > > > in web.xml (or in ejb-jar.xml), but the error stays. (I see now that > > > it's a dead end) > > > > > If I debugging the enterpise project, everythings works except the > > > hosted mode. > > > > > I searched a lot, but I can't make this work, please help. > > > > > Thanks, > > > Bandesz > > > > > > > --~--~-~--~~~---~--~~ You received 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: J2EE and debug in hosted mode
I wrote it wrong, not the debug is the problem, I just want to run the enterprise application (EJB+Web) in Hosted Mode, I wrote debugging because hosted mode runs if I debug the web application. If I understand correctly, the build-gwt.xml is responsible for the hosted mode. If I run the ent. app., the build.xml simply compiles the EJB and the Web project, makes an EAR package, and starts glassfish in debug mode. So how can I write a build file which runs the whole application in gwt hosted mode? This is a bottleneck in my development, because the deploy time is now more than 1 minute. If I could use as I wrote it, the hosted mode shows the changes in couple of seconds, and the autodeploy on the server side is just seconds. Bandesz On Dec 14, 5:49 pm, "olivier FRESSE" wrote: > When you run in hosted mode, you have 2 java processes running. > The glassfish one, and the GWT shell. > Debugging the glassfish side is easy, it comes OOTB in Netbeans. > > Debugging the client side is quite easy too. > You just need to change the way the GWTShell is launched : > > java *-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n > * -Xmx256M -cp > "$APPDIR/src:$APPDIR/bin:/home/ofe/dev/gwt-linux-1.5.3/gwt-user.jar:/home/ofe/dev/gwt-linux-1.5.3/gwt-dev-linux.jar" > com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" > ext.test.MyAppli/MyAppli.html; > > next you can attach the netbeans debugger to the Shell. > > Is it what you're looking for ? > > O. > > 2008/12/14 Bandesz > > > > > Thx for the answer, but I need an exact howto, how can I debug the > > whole J2EE application with Hosted Mode using Glassfish and Netbeans. > > > As I said, I searched a lot and haven't found a good description. > > > Bandesz > > > On Dec 8, 4:34 am, gregor wrote: > > > couple of approaches > > > > 1) Simply use -noserver option. You need a build script to deploy your > > > RPC servlets and your EJB layer to Glassfish on demand and activate > > > remote debugging to make this work effectively, but lots of people do > > > it this way. See > > > >http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog... > > > > 2) You can run your RPC servlets in hosted mode Tomcat instance > > > leaving your session beans on Glassfish with a bit more work. You need > > > to use trad JNDI to try for a local reference to your session beans, > > > and if that fails go for the remote reference instead. I don't think > > > the new annotation stuff works for this.That way you get a local ref > > > in production and a remote one in dev from the same code. If you use > > > the ServiceLocator pattern it makes this easier. > > > > On Dec 7, 2:26 pm,Bandesz wrote: > > > > > I'm developing a J2EE application with GWT using NetBeans 6.5, > > > > Glassfish v2. > > > > > If I debugging only the web project, I can't use any Session Beans > > > > from EJB project, becase I get "Cannot resolve reference Unresolved > > > > Ejb-Ref..." error. I tried in every way to make tags > > > > in web.xml (or in ejb-jar.xml), but the error stays. (I see now that > > > > it's a dead end) > > > > > If I debugging the enterpise project, everythings works except the > > > > hosted mode. > > > > > I searched a lot, but I can't make this work, please help. > > > > > Thanks, > > > > Bandesz > > --~--~-~--~~~---~--~~ You received 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: How to have a layered panel?
All, I managed to add the GlassPanel with little effort and for the most part is looks great. I was about to ask how to get it to not disappear upon click but figured it out before i could post the message :). Thanks all. You've been a great help. In case anyone was interested, I'm using it within a tabbed panel when one tab is active with some static variable that controls the editable nature of either tab. Although of course, the parent panel of the GlassPanel should be AbsolutePanel. Thanks Suri On Dec 11, 6:17 am, "Litty Preeth" wrote: > Hey Make sure that the contents of the popup is put into a ScrollPanel. Coz > if you disable the window scrolling and the popup size goes beyond the > screen size then the overflowing popup area will get hidden. > > - Litty > > On Thu, Dec 11, 2008 at 2:13 AM, rakesh wagh wrote: > > > Yup glasspanel is really handy. Do remember to turn off the > > scrollbars... they could mess up the page big time! > > Window.enableScrolling(false); > > > On Dec 9, 12:32 am, Petrus Pelser wrote: > > > The component in the incubator is called a GlassPanel and it works > > > really well. Though I did have some issues with the blur event in IE, > > > but I could easily fix it by catching and ignoring the onBlur() call. > > > > Suri wrote: > > > > Hi Rakesh, Isaac & Litty > > > > Thanks for the replies. Since I'm currently already using the > > > > incubator jar for a table, I'll first attempt Isaac's suggestion which > > > > seems least effort-consuming at the moment. If i do need to create my > > > > own panel, I'll try both of your suggestions and update everyone on > > > > the results. > > > > > Thanks a bunch all. You guys are really great help in this forum. > > > > > On Dec 8, 3:11 pm, rakesh wagh wrote: > > > > >> Correction to my earlier post: > > > >> Use PopupPanel, not AbsolutePanel. > > > >> I just tried this code in a class that extends DialogBox: > > > >> @Override > > > >> public void show() { > > > >> mask.setPixelSize(Window.getClientWidth(), > > Window.getClientHeight > > > >> ()); > > > >> mask.setPopupPosition(0, 0); > > > >> mask.setWidget(new Label("test")); > > > >> mask.setStyleName("trans-bg"); > > > >> mask.show(); > > > >> super.hide(); > > > >> super.show(); > > > >> } > > > >> @Override > > > >> public void hide() { > > > >> mask.hide(); > > > >> super.hide(); > > > >> } > > > > >> .trans-bg{ > > > >> background-color: black; > > > >> filter: alpha(opacity=50); > > > >> -moz-opacity: .5; > > > > >> } > > > > >> And I am able to show a translucent background to any of my dialog > > > >> box! > > > > >> Rakesh Wagh > > > > >> On Dec 8, 9:37 am, rakesh wagh wrote: > > > > >>> if you are trying to do this on your own, you will probably need a > > > >>> absolute panel that is placed on the screen based on the screen size > > > >>> (0, 0, max clientx, max clienty). Select a proper style: color and > > > >>> transparency. Now just put your widget or popup on top of this panel. > > > >>> This way the z index of your translucent panel will be between the > > > >>> main screen and your visible widget. > > > > >>> You might also have to put a screen resize handler to resize the size > > > >>> of your panel. > > > > >>> I think the gwt incubator has a ready to use widget. > > > > >>> Rakesh Wagh > > > > >>> On Dec 6, 11:04 pm, Suri wrote: > > > > Hey all, > > > In GWT how would we create a layered panel/widget that basically > > acts > > > like a semi-opaque screen for the stuff below it. Sort of looking > > like > > > the screen is in a disabled mode. Thanks for any ideas. > > > > Suri > > > > -- > > > Petrus Pelser > > > Software Developer, CTO > > > Codewave (http://www.codewave.co.za) > > > mailto:pet...@codewave.co.za > > > Cell: +27 79 522 6463 > > > --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
how to implement history mechanism for tree structure
Hi All, Please let me know how to impelement history mechanism for tree structure,I am using border layout panel (header,west ,central parts ) ,in west side part tree structure is implemented,When I click on the tree button central part is refreshing.I need same thing with history mechanism also(back,forward buttons).Give me any help on this regard. Thanks & Regards, Rajasekhar --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Error in RPC : Regarding Serialization
Helllo, Am trying to return arraylist object fron server to client via RPC but am getting following error : [WARN] StandardContext[]Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:696) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at com.google.gwt.dev.shell.GWTShellServlet.service (GWTShellServlet.java:289) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: 160) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt (PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:683) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException: null 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.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:678) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.jav
Generators and Generics
I have to write a generator whose marker interface has a generic typeMy marker interface will be like this: public interface MyInterface { } the subinterfaces will provide a type for that parameter, like: public interface MySubInterface extends MyInterface { } and then I will call: MySubInterface = GWT.create(MySubInterface.class); Inside the generator, how can I find out what type was used on T parameter? (Customer, in this case) --~--~-~--~~~---~--~~ You received 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: Error in RPC : Regarding Serialization
The problem is: Caused by: com.google.gwt.user.client.rpc.SerializationException: Type '[Ljava.lang.String;' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. which probably indicates there is nothing in any of your RPC service interface declarations that mentions String specifically, so it is not included in the RPC "white list". Are you declaring the ArrayList like this: ArrayList myService(...) { ArrrayList myList = new ArrayList(); . return myList; } If not then this will probably make the problem go away. On Dec 14, 6:16 pm, prat wrote: > Helllo, > > Am trying to return arraylist object fron server to client via RPC but > am getting following error : > > [WARN] StandardContext[]Exception while dispatching incoming RPC call > com.google.gwt.user.client.rpc.SerializationException: > java.lang.reflect.InvocationTargetException > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer > (ServerSerializationStreamWriter.java:696) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl > (ServerSerializationStreamWriter.java:659) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize > (ServerSerializationStreamWriter.java:593) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject > (AbstractSerializationStreamWriter.java:129) > at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter > $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue > (ServerSerializationStreamWriter.java:530) > at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) > at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess > (RPC.java:441) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:529) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > (RemoteServiceServlet.java:164) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > (RemoteServiceServlet.java:86) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at com.google.gwt.dev.shell.GWTShellServlet.service > (GWTShellServlet.java:289) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (ApplicationFilterChain.java:237) > at org.apache.catalina.core.ApplicationFilterChain.doFilter > (ApplicationFilterChain.java:157) > at org.apache.catalina.core.StandardWrapperValve.invoke > (StandardWrapperValve.java:214) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardContextValve.invokeInternal > (StandardContextValve.java:198) > at org.apache.catalina.core.StandardContextValve.invoke > (StandardContextValve.java:152) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardHostValve.invoke > (StandardHostValve.java:137) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.valves.ErrorReportValve.invoke > (ErrorReportValve.java:118) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:102) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardEngineValve.invoke > (StandardEngineValve.java:109) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: > 929) > at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: > 160) > at org.apache.coyote.http11.Http11Processor.process > (Http11Processor.java:799) > at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt > (PoolTcpEndpoint.java:577) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > (ThreadPool.java:683) > at java.lang.Thread.run(Unknown Source) > C
Re: J2EE and debug in hosted mode
The simplest is to run hosted mode with the -noserver flag. Then you deploy your EAR with your Ant script once and run & debug your GWT client code in hosted mode just hitting the refresh button as you go. On Dec 14, 5:01 pm, Bandesz wrote: > I wrote it wrong, not the debug is the problem, I just want to run the > enterprise application (EJB+Web) in Hosted Mode, I wrote debugging > because hosted mode runs if I debug the web application. > > If I understand correctly, the build-gwt.xml is responsible for the > hosted mode. If I run the ent. app., the build.xml simply compiles the > EJB and the Web project, makes an EAR package, and starts glassfish in > debug mode. > > So how can I write a build file which runs the whole application in > gwt hosted mode? > > This is a bottleneck in my development, because the deploy time is now > more than 1 minute. If I could use as I wrote it, the hosted mode > shows the changes in couple of seconds, and the autodeploy on the > server side is just seconds. > > Bandesz > > On Dec 14, 5:49 pm, "olivier FRESSE" wrote: > > > When you run in hosted mode, you have 2 java processes running. > > The glassfish one, and the GWT shell. > > Debugging the glassfish side is easy, it comes OOTB in Netbeans. > > > Debugging the client side is quite easy too. > > You just need to change the way the GWTShell is launched : > > > java *-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n > > * -Xmx256M -cp > > "$APPDIR/src:$APPDIR/bin:/home/ofe/dev/gwt-linux-1.5.3/gwt-user.jar:/home/ofe/dev/gwt-linux-1.5.3/gwt-dev-linux.jar" > > com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" > > ext.test.MyAppli/MyAppli.html; > > > next you can attach the netbeans debugger to the Shell. > > > Is it what you're looking for ? > > > O. > > > 2008/12/14 Bandesz > > > > Thx for the answer, but I need an exact howto, how can I debug the > > > whole J2EE application with Hosted Mode using Glassfish and Netbeans. > > > > As I said, I searched a lot and haven't found a good description. > > > > Bandesz > > > > On Dec 8, 4:34 am, gregor wrote: > > > > couple of approaches > > > > > 1) Simply use -noserver option. You need a build script to deploy your > > > > RPC servlets and your EJB layer to Glassfish on demand and activate > > > > remote debugging to make this work effectively, but lots of people do > > > > it this way. See > > > > >http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog... > > > > > 2) You can run your RPC servlets in hosted mode Tomcat instance > > > > leaving your session beans on Glassfish with a bit more work. You need > > > > to use trad JNDI to try for a local reference to your session beans, > > > > and if that fails go for the remote reference instead. I don't think > > > > the new annotation stuff works for this.That way you get a local ref > > > > in production and a remote one in dev from the same code. If you use > > > > the ServiceLocator pattern it makes this easier. > > > > > On Dec 7, 2:26 pm,Bandesz wrote: > > > > > > I'm developing a J2EE application with GWT using NetBeans 6.5, > > > > > Glassfish v2. > > > > > > If I debugging only the web project, I can't use any Session Beans > > > > > from EJB project, becase I get "Cannot resolve reference Unresolved > > > > > Ejb-Ref..." error. I tried in every way to make tags > > > > > in web.xml (or in ejb-jar.xml), but the error stays. (I see now that > > > > > it's a dead end) > > > > > > If I debugging the enterpise project, everythings works except the > > > > > hosted mode. > > > > > > I searched a lot, but I can't make this work, please help. > > > > > > Thanks, > > > > > Bandesz --~--~-~--~~~---~--~~ You received 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: Problem with GWT RPC call with List of DTO objects
Read: http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideSerializableTypes And in general read: http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideRemoteProcedureCalls On Dec 13, 9:52 pm, Cris wrote: > Hi > My requirement is as below. > 1. I have a DTO as below with setters and getters for the same > package com.gwt.sample.client.data > > public class TempDTO implements IsSerializable > { > private String name; > private String condition; > } > > 2. My RPC stuff is as below > package com.gwt.sample.client > public interface MyService extends RemoteService > { > List getNames(); > } > > package com.gwt.sample.client > public interface MyServiceAsync > { > void getNames(AsyncCallback async); > } > > 3. Servlet is > public class MyServlet extends RemoteServiceServlet implements > MyService > { > public List getNames() > { > List rs = new ArrayList(); > TempDTO dto1 = new TempDTO(); > dto1.setName("A1"); > dto1.setCondition("Set"); > rs.add(dto1); > return rs; > } > } > > When made a request to this MyServlet I am getting strange error in > browser "Could not complete the operation due to error c00ce514 > number:" > This error message is (throwable.getMessage()) is displaying in > onFailure() method. > > The same code is working fine if I pass List of strings. The problem > is only with List of DTOs. > > Please, can anyone help me. > > Thansk, > Cris --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
can we disable the default scrollbar in HorizontalSplitPanel
I am using a horizontalSplitPanel to divide my window into two parts- left part has fixed width while the right one occupies the entire remaining space. I want to hide the fact that i have used SplitPanel by removing the default scrollbars the appear whenever the inner panels go out of size and disabling resizing capability of the splitPanel. Is there a way to achieve it? I definitely need a way to remove the scrollbars. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Request Builder problem
Hi guys, I have searched the forum and couldn't find the solution. Here is my code. public class Getter { private String url = "php/Main.php"; //fix url never changes private RequestBuilder builder = null; private String result = null; public Getter() { builder = new RequestBuilder(RequestBuilder.POST, URL.encode(url)); } public String getData(int id, final String section){ String param = "nId="; param += Integer.toString(id); param +="&"; param +="sectionName="; param += section; builder.setHeader("Content-Type", "application/x-www-form- urlencoded"); try { builder.sendRequest(param,new RequestCallback(){ public void onError(Request request, Throwable exception) { calxx("error"); } public void onResponseReceived(Request request, Response response) { calxx(response.getText()); Window.alert("-"+response.getText()); TemoStorage.temp = response.getText(); } }); } catch (RequestException e) { // TODO Auto-generated catch block e.printStackTrace(); } GWT.log(TemoStorage.temp, null); return TemoStorage.temp; } private void calxx(String kk){ result = kk; } } TemoStorage.temp is static string field. now, when I call the method getData from the other class. I get the window alert displaying the apropriat server message. But this method return null. GWT log also says null. How do I return apropriat "server message" with this method. 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-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 -~--~~~~--~~--~--~---
vertical alignment doesnt work while horizontal alignment does
I am creating a vertical panel which contains 3 panels in it. now i want the topmost panel to always remain at the topmost region touching the top of the window. Similarly the bottommost panel should remain at the bottom touching the lowest part of the window. the middle panel should occupy the entiore remainn=ng space between these two. I tried using vertical alignment in CSS as well in GWT code somewhat like vertical-align: top; // for top window vertical-align: bottom; //for bottom window It doesnt work as expected. AM i doing it wrong? is there a way to do it using CSS ??? --~--~-~--~~~---~--~~ You received 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: can we disable the default scrollbar in HorizontalSplitPanel
AFAIK there is no way you can disable the internal ScrollPanels in HSP. HSP internally puts each widget (left & right) inside a ScollPanel automatically for you, and if either left of right widgets grow they will kick in, end of. HSP is also declared final, so it is impossible to extend the class to attempt to modify this behaviour. If you want to completely disable HSP resizing (i.e you do not want the user to able to move the splitter) why use HSP? Why not use a 2 cell HorizontalPanel with a fixed left cell size and the right 100% width? On Dec 14, 10:32 am, aragorn wrote: > I am using a horizontalSplitPanel to divide my window into two parts- > left part has fixed width while the right one occupies the entire > remaining space. I want to hide the fact that i have used SplitPanel > by removing the default scrollbars the appear whenever the inner > panels go out of size and disabling resizing capability of the > splitPanel. Is there a way to achieve it? I definitely need a way to > remove the scrollbars. --~--~-~--~~~---~--~~ You received 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: vertical alignment doesnt work while horizontal alignment does
I think you need to work with VP.setCellHeight(widget,height). The basic technique is to set the the top and bottom widgets to say 1% height and the middle one 100% which will minimize the height of top and bottom depending on contents and middle will fill out the rest. Or you can give a hard pixel height value to top and bottom and 100% to middle. On Dec 14, 10:23 am, aragorn wrote: > I am creating a vertical panel which contains 3 panels in it. now i > want the topmost panel to always remain at the topmost region touching > the top of the window. Similarly the bottommost panel should remain at > the bottom touching the lowest part of the window. the middle panel > should occupy the entiore remainn=ng space between these two. I tried > using vertical alignment in CSS as well in GWT code somewhat like > vertical-align: top; // for top window > vertical-align: bottom; //for bottom window > > It doesnt work as expected. AM i doing it wrong? is there a way to do > it using CSS ??? --~--~-~--~~~---~--~~ You received 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: Problem with GWT RPC call with List of DTO objects
It's odd that the RPC documentation still talks about typeArgs. I've just double checked, and I have systematically removed all typeArg statements relating to RPC parameters/return values from the last project I upgraded to 1.5.3. All now replaced with 1.5. syntax and it works fine. My assumption is that specifying the type for collections in 1.5 syntax (i.e. List) means the GWT compiler uses that info in the same way it used to rely on typeArg tags. I sincerely hope I'm right about that..but those docs have got me worried. On Dec 14, 12:24 pm, "HT(dk)" wrote: > Read:http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-... > > And in general > read:http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-... > > On Dec 13, 9:52 pm, Cris wrote: > > > Hi > > My requirement is as below. > > 1. I have a DTO as below with setters and getters for the same > > package com.gwt.sample.client.data > > > public class TempDTO implements IsSerializable > > { > > private String name; > > private String condition; > > } > > > 2. My RPC stuff is as below > > package com.gwt.sample.client > > public interface MyService extends RemoteService > > { > > List getNames(); > > } > > > package com.gwt.sample.client > > public interface MyServiceAsync > > { > > void getNames(AsyncCallback async); > > } > > > 3. Servlet is > > public class MyServlet extends RemoteServiceServlet implements > > MyService > > { > > public List getNames() > > { > > List rs = new ArrayList(); > > TempDTO dto1 = new TempDTO(); > > dto1.setName("A1"); > > dto1.setCondition("Set"); > > rs.add(dto1); > > return rs; > > } > > } > > > When made a request to this MyServlet I am getting strange error in > > browser "Could not complete the operation due to error c00ce514 > > number:" > > This error message is (throwable.getMessage()) is displaying in > > onFailure() method. > > > The same code is working fine if I pass List of strings. The problem > > is only with List of DTOs. > > > Please, can anyone help me. > > > Thansk, > > Cris --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Why are GWT JavaScript objects not enumerable?
Dear All, First, thanks for all your hard work on GWT. It really is a fantastic framework! Is there a reason why GWT-compiled JavaScript objects are not 'reflectable' like regular JavaScript objects are? When I do (in JavaScript): for( var s in obj ) { alert( obj[s] ); } I don't see any properties or actions for GWT-compiled objects, but I do for regular JavaScript objects. I don't much understand the 'var s in obj' technique, but it seems it should be able to reflect GWT objects? For example, when I do... alert( obj[ '@org.foo.Foo::myMethod()' ] ); ...then I CAN reflect the method okay? Regards, Richard. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
open a listbox programmatically...
I have to show a listbox programmatically ( as I let the user rearrange the order of the items ). I tried the following code but i get an exception... public static native void fireClickListener(ListBox list) /*-{ var cl = li...@com.google.gwt.user.client.ui.focuswidget::clickListeners; c...@com.google.gwt.user.client.ui.clicklistenercollection::fireClick (Lcom/google/gwt/user/client/ui/Widget;)(list); }-*/; [ERROR] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: JavaScript TypeError exception: 'null' is null or not an object at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 481) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid (ModuleSpace.java:270) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid (JavaScriptHost.java:137) Maybe the "cl" referring to the clickListeners is not correct...any ideas appreciated. Thx -- pady --~--~-~--~~~---~--~~ You received 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 integrated with JSF
the backend is Oracle TopLink On Dec 14, 9:22 pm, "will.dutt" wrote: > The jboss doc link gives heaps of food for thought. > > Just wondering, am i correct to say that G4JSF became ajax4jsf which > then became richfaces ? > > This kinda makes it quite confusing when i have jsf and gwt and no > idea what i can use to glue it together :P > > An example would be very helpful :) on the seam application, and maybe > on the other ways of pulling information. :) > > I have used spring in the past, tho not starting out and it already > had a very structured hierarchy and as i'm a fresh out of uni, and > this is mostly a green feilds type project, there is way to many > technologies to look at and yet not enough time in the day. :/ > > The jsf website that i'm now working on had a pre existing database > backend in oracle. The developer before me used netbeans out of the > box features to generate a brand new interface to the oracle database. > (can't remember the backend infrastructure, will find out in the > morning when i'm at work) > > The simple stuff is done and now its to the hard stuff. > > i have thought of doing through GWT DOM objects, but i would like a > cleaner way of keeping state, the application will be doing big edits > to the database backend if they apply the changes they make and i > would like to allow any not pre-commited changes to either linger till > out of session of save for next session which means that GWT DOM > object pulling for the id/keys won't do. > > Google group discussions seems to be quite nice, tho i do miss the > spell check feature that is in gmail. :) > > On Dec 14, 5:50 pm, "olivier FRESSE" wrote: > > > Hi will, > > I work on a project where we use GWT, seam and facelet. The server is a > > glassfish one. > > Seam is a great framework, and I really see it as a great enhancement to > > JSF. > > It provides many components, including "Seam Remoting". > > Seam Remoting allows a remote access to seam components,using Ajax. > > And you can replace GWT Services by Remoting calls... > > This allows you to easily share data between JSF/Facelet pages and GWT > > modules via > > Seam contexts. > > > see :http://docs.jboss.com/seam/2.1.1.CR2/reference/en-US/html_single/#gwt > > > Of course, this may mean deep modifications in your project. > > If you wan to integrate a simple GWT module in a page and read hidden input > > values > > from the page I see 2 solutions : > > > JSNI : Allows you to call JScript in the page. > > > GWT DOM object : Allows you to manipulate DOM objects. > > > I'll find a sample and post it there :-) > > > O. > > > 2008/12/13 will.dutt > > > > i've been look around for anything that was happening with these 2 > > > great components. sadly the g4jsf is a dead end :(. > > > > i've got a JSF website that is now hitting the boundaries of what is > > > possible in a static html refresh browser and needs GWT badly. > > > > does anyone have any good examples of integrating GWT components to > > > pull information from the page its placed on and rpc the rest of the > > > content it needs? > > > > i can place a GWT compenent on the page with div's which is good, but > > > i'm having trouble getting information from the page (eg ID that link > > > to a database). what is the command to do that? --~--~-~--~~~---~--~~ You received 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: open a listbox programmatically...
I see that the clickListenerCollection is null. I am wondering how the popup is displayed since the listbox is created using a DOM.createSelect. So it is the browser handling this click event - so there is no way then to programatically force the click ? -- pady --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Suggestions for improving GWT group
I would find this group more useful and would participate more if there were "sub-groups" of some kind. I see similar "newbie" questions over and over again, or questions about the same topic repeated many times. Searching is NOT a solution. Searching might be OK, if you are just looking for the answer to a problem and you hope someone else has already expressed the problem in the same way that you would and it has been answered, BUT ... if I am browsing through looking to help by answering a few questions, I don't want to wade through the same stuff over and over again. I also see no current way in which useful answers are retained. So kind of categorization would be useful. ? Major catagories ? Experience level ? Tags ? Votes --~--~-~--~~~---~--~~ You received 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: Suggestions for improving GWT group
sub forums would be nice or more discussion forums, as the front page of gwt group is mostly full of stickies. :/ On Dec 15, 11:12 am, Not Ken Shabby wrote: > I would find this group more useful and would participate more if > there were "sub-groups" of some kind. I see similar "newbie" questions > over and over again, or questions about the same topic repeated many > times. Searching is NOT a solution. Searching might be OK, if you are > just looking for the answer to a problem and you hope someone else has > already expressed the problem in the same way that you would and it > has been answered, BUT ... if I am browsing through looking to help by > answering a few questions, I don't want to wade through the same stuff > over and over again. I also see no current way in which useful answers > are retained. So kind of categorization would be useful. ? Major > catagories > ? Experience level > ? Tags > ? Votes --~--~-~--~~~---~--~~ You received 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: Generators and Generics
I don't know the answer to your question - I'm guessing generic markers are not possible? But, I simplified a similar problem by launching the generator on the "real type" - in your case Customer; you can still extend your implementation of MySubSubSubInterface in the generator. :) On Dec 14, 11:31 pm, "Magno Machado" wrote: > I have to write a generator whose marker interface has a generic typeMy > marker interface will be like this: > > public interface MyInterface { > > } > > the subinterfaces will provide a type for that parameter, like: > public interface MySubInterface extends MyInterface { > > } > > and then I will call: > MySubInterface = GWT.create(MySubInterface.class); > > Inside the generator, how can I find out what type was used on T parameter? > (Customer, in this case) --~--~-~--~~~---~--~~ You received 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: Event/Listener???
That's exactly how listeners work. Let's say you have a Button, TextBox and a Label. Each time the Button is pressed, you want the Label to display the text in the TextBox. You would do some like the following: TextBox text = new TextBox(); Label display = new Label(); Button button = new Button(); // now you need to add the listeners button.addClickListener(new ClickListener() { onClick(Widget arg0) { display.setText(text.getText()); } }); RootPanel.add(text); RootPanel.add(display); RootPanel.add(button); Keep in mind that if you want the TextBox and the Label to be accessible from the anonymous inner class, you'll need to make them fields or final (they can't be local variables). -- Arthur Kalmenson On Sat, Dec 13, 2008 at 4:26 PM, jbroquefere wrote: > > just a little problem, i WONT have to use static method... > I wanted to do something like, in awt/swt, when i fire an event in a > class, and i listen to it in an other. > Is thre a way to create listeners/event ? > > On 13 déc, 21:45, jbroquefere > wrote: >> Thank's a lot, exactly what i need. >> I just had to seek a little more >> >> On 13 déc, 19:47, "mikedshaf...@gmail.com" >> wrote: >> >> > Take a look inside the mail application that is included with GWT. >> > It's in /samples directory. It's a great example of exactly what >> > you're describing. >> >> > It's also here: >> >> >http://code.google.com/webtoolkit/examples/ >> >> > Later, >> >> > Shaffer >> >> > On Dec 13, 9:46 am, jbroquefere >> > wrote: >> >> > > Hello, >> > > my question is simple : How could I call an action when, for exemple, >> > > i click on a TreeNode? >> > > The situation is 2 class, a tree in the first one, an empty panel in >> > > the second one. when i clik on a node, i want to open a Window, or >> > > Panel, or Portlet, or, etc... in the empty panel (that is done by a >> > > functio in the empty panel' class). but i dont know how to do. maybe >> > > using event? > > > --~--~-~--~~~---~--~~ You received 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 event model
step3331, As Thomas said, those methods will be deprecated in 1.6 and removed in 2.0. -- Arthur Kalmenson On Sun, Dec 14, 2008 at 7:44 AM, step3...@yahoo.fr wrote: > > Hello , > > I use DOM.seteventlistener in my application. This method will be > remove ? > > Thanks > > On 13 déc, 13:58, Mike wrote: >> Great, thanks for the info! >> >> On Dec 12, 3:59 am, Sumit Chandel wrote: >> >> > Hi Mike, >> >> > As Adam mentioned, the new event system you discovered in trunk is indeed >> > for GWT 1.6, following the design details explained in the link he posted >> > above. >> >> > The new event system should solve some of the problems in the current Event >> > system (as detailed in the doc), including the use case you mentioned in >> > your first post. While the upcoming GWT 1.6 event system will be quite >> > different from the current model in a breaking way, the change should lead >> > to drastically improved performance and ease of development. >> >> > Hope that helps, >> > -Sumit Chandel >> >> > On Mon, Dec 8, 2008 at 11:17 AM, Adam T wrote: >> >> > > It's for the version 1.6 event system: >> >> > >http://code.google.com/p/google-web-toolkit-incubator/wiki/ProposedEv... >> >> > > //Adam >> >> > > On 8 Dec, 17:06, Mike wrote: >> > > > Hi all, >> >> > > > Today i was browsing the latest source code for GWT and i saw that >> > > > many event-related classes have been deprecated. (E.g. CLickListener >> > > > and SourcesClickEvents.) Is a major refactoring of the event mechanism >> > > > forthcoming? >> >> > > > (I was trying to figure out how the GWT event model works, i.e. i was >> > > > wondering what the rock-bottom source for GWT events is and how they >> > > > are `injected' into java. I discovered that GWT events are fired after >> > > > handling browser events. In my opinion, this is not clearly explained >> > > > in the GWT documentation. I worked an example, you can find it on my >> > > > blog whatmovesmike.blogspot.com .) >> >> > > > Bye, Mike > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-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 implement history mechanism for tree structure
Have a historyListener in the class having the reference to borderlayoutpanel. Then onCLick of the tree button u can fire History.newItem("sometoken") In the onHistoryChange() you check for the token and refresh the central panel accordingly. Hope this helps. - Litty Preeth On Sun, Dec 14, 2008 at 11:23 PM, rajasekhar wrote: > > Hi All, > > Please let me know how to impelement history > mechanism for tree structure,I am using border layout panel > (header,west ,central parts ) ,in west side part tree structure is > implemented,When I click on the tree button central part is > refreshing.I need same thing with history mechanism also(back,forward > buttons).Give me any help on this regard. > > > Thanks & Regards, > Rajasekhar > > > --~--~-~--~~~---~--~~ You received 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: can we disable the default scrollbar in HorizontalSplitPanel
I tried using a horizontal panel as a main panel with wisth and height to 100%. Inside it i created two different verticalpanels. The one on left hand side has fixed width set to 233 pixels using css. Now the right child panel should occupy the remainng space in the screen. I tried setting width to 100% in css as well as in gwt code. It doesnt work. By default a panel occupies only the space its content requires. So an empty panel doesnt have much width even if it occupies the entire height. Inside the rightside panel i have to use 2 child widgets which occupy entire width. How should i got about it?Is there a way to get window dimesnions in css so that i can calculate the width in pixels in the css itself? On Dec 15, 2:10 am, gregor wrote: > AFAIK there is no way you can disable the internal ScrollPanels in > HSP. HSP internally puts each widget (left & right) inside a > ScollPanel automatically for you, and if either left of right widgets > grow they will kick in, end of. HSP is also declared final, so it is > impossible to extend the class to attempt to modify this behaviour. > > If you want to completely disable HSP resizing (i.e you do not want > the user to able to move the splitter) why use HSP? Why not use a 2 > cell HorizontalPanel with a fixed left cell size and the right 100% > width? > > On Dec 14, 10:32 am, aragorn wrote: > > > I am using a horizontalSplitPanel to divide my window into two parts- > > left part has fixed width while the right one occupies the entire > > remaining space. I want to hide the fact that i have used SplitPanel > > by removing the default scrollbars the appear whenever the inner > > panels go out of size and disabling resizing capability of the > > splitPanel. Is there a way to achieve it? I definitely need a way to > > remove the scrollbars. --~--~-~--~~~---~--~~ You received 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: vertical alignment doesnt work while horizontal alignment does
I have tried it. The middle panel actually doesnt occupy the entire height since it is empty. The bottom panel also doesnt really stay at the bottommost part of the window as it follows the middle panel. I want the top panel to occupt certain fixed pixel height. The middle and bottom panel should occupy the remaing space which i would soecify in percentage in css. How do i go about it? On Dec 15, 2:15 am, gregor wrote: > I think you need to work with VP.setCellHeight(widget,height). The > basic technique is to set the the top and bottom widgets to say 1% > height and the middle one 100% which will minimize the height of top > and bottom depending on contents and middle will fill out the rest. Or > you can give a hard pixel height value to top and bottom and 100% to > middle. > > On Dec 14, 10:23 am, aragorn wrote: > > > I am creating a vertical panel which contains 3 panels in it. now i > > want the topmost panel to always remain at the topmost region touching > > the top of the window. Similarly the bottommost panel should remain at > > the bottom touching the lowest part of the window. the middle panel > > should occupy the entiore remainn=ng space between these two. I tried > > using vertical alignment in CSS as well in GWT code somewhat like > > vertical-align: top; // for top window > > vertical-align: bottom; //for bottom window > > > It doesnt work as expected. AM i doing it wrong? is there a way to do > > it using CSS ??? --~--~-~--~~~---~--~~ You received 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: Error in RPC : Regarding Serialization
Hello gregor, Thanks alot for ur relay. but i dint understand the solution completly. am trying to return arraylist with "string array" objects in it . and i have implemented "IsSerializable" on client side but even thn its not working. On Dec 15, 12:10 am, gregor wrote: > The problem is: > > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type > '[Ljava.lang.String;' was not included in the set of types which can > be serialized by this SerializationPolicy or its Class object could > not be loaded. For security purposes, this type will not be > serialized. > > which probably indicates there is nothing in any of your RPC service > interface declarations that mentions String specifically, so it is not > included in the RPC "white list". Are you declaring the ArrayList like > this: > > ArrayList myService(...) { > > ArrrayList myList = new ArrayList(); > . > return myList; > > } > > If not then this will probably make the problem go away. > > On Dec 14, 6:16 pm, prat wrote:> Helllo, > > > Am trying to return arraylist object fron server to client via RPC but > > am getting following error : > > > [WARN] StandardContext[]Exception while dispatching incoming RPC call > > com.google.gwt.user.client.rpc.SerializationException: > > java.lang.reflect.InvocationTargetException > > at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer > > (ServerSerializationStreamWriter.java:696) > > at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl > > (ServerSerializationStreamWriter.java:659) > > at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize > > (ServerSerializationStreamWriter.java:593) > > at > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject > > (AbstractSerializationStreamWriter.java:129) > > at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter > > $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) > > at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue > > (ServerSerializationStreamWriter.java:530) > > at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) > > at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess > > (RPC.java:441) > > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > > (RPC.java:529) > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > > (RemoteServiceServlet.java:164) > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > > (RemoteServiceServlet.java:86) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > at com.google.gwt.dev.shell.GWTShellServlet.service > > (GWTShellServlet.java:289) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > > (ApplicationFilterChain.java:237) > > at org.apache.catalina.core.ApplicationFilterChain.doFilter > > (ApplicationFilterChain.java:157) > > at org.apache.catalina.core.StandardWrapperValve.invoke > > (StandardWrapperValve.java:214) > > at org.apache.catalina.core.StandardValveContext.invokeNext > > (StandardValveContext.java:104) > > at org.apache.catalina.core.StandardPipeline.invoke > > (StandardPipeline.java:520) > > at org.apache.catalina.core.StandardContextValve.invokeInternal > > (StandardContextValve.java:198) > > at org.apache.catalina.core.StandardContextValve.invoke > > (StandardContextValve.java:152) > > at org.apache.catalina.core.StandardValveContext.invokeNext > > (StandardValveContext.java:104) > > at org.apache.catalina.core.StandardPipeline.invoke > > (StandardPipeline.java:520) > > at org.apache.catalina.core.StandardHostValve.invoke > > (StandardHostValve.java:137) > > at org.apache.catalina.core.StandardValveContext.invokeNext > > (StandardValveContext.java:104) > > at org.apache.catalina.valves.ErrorReportValve.invoke > > (ErrorReportValve.java:118) > > at org.apache.catalina.core.StandardValveContext.invokeNext > > (StandardValveContext.java:102) > > at org.apache.catalina.core.StandardPipeline.invoke > > (StandardPipeline.java:520) > > at org.apache.catalina.core.StandardEngineValve.invoke > > (StandardEngineValve.java:109) > > at org.apache.catalina.core.StandardValveContext.invokeNext > > (StandardValveContext.java:104) > > at org.apache.catalina.core.StandardPipeline.invoke > > (StandardPipeline.java:520) > > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: > > 929) > > at > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.j
Centerpanel doesnt show widgets
Hi all, I have this strange problem : I have a main panel which is borderpanel . When i set html for the center panel i see the changes, Howeve, when i add a widget (onclick event) ithe widget is not seen in the center panel. Have an idea? Here is the module load : public void onModuleLoad() { /** * START - Define RPC service callback for future ajax requests */ ServiceDefTarget endpoint = (ServiceDefTarget) serviceAsync; // String moduleRelativeURL = GWT.getModuleBaseURL() + "../ includes.php"; String moduleRelativeURL = "http://localhost/idlogger_v8/ includes.php"; endpoint.setServiceEntryPoint(moduleRelativeURL); /** * END - Define RPC service callback for future ajax requests */ //Main panel to add to root view Panel panel = new Panel(); panel.setBorder(false); panel.setPaddings(15); panel.setLayout(new FitLayout()); Panel borderPanel = new Panel(); borderPanel.setLayout(new BorderLayout()); Panel northPanel = new Panel(); Image img = new Image("images/header_icon.jpg"); img.setWidth("315"); northPanel.add(img); northPanel.setHeight(72); northPanel.setWidth(450); borderPanel.add(northPanel, new BorderLayoutData (RegionPosition.NORTH)); //add south panel Panel southPanel = new Panel(); southPanel.setHtml("south panel"); southPanel.setHeight(100); southPanel.setCollapsible(true); southPanel.collapse(true); southPanel.setTitle("South"); BorderLayoutData southData = new BorderLayoutData (RegionPosition.SOUTH); southData.setMinSize(100); southData.setMaxSize(200); southData.setMargins(new Margins(0, 0, 0, 0)); southData.setSplit(true); borderPanel.add(southPanel, southData); BorderLayoutData westData = new BorderLayoutData (RegionPosition.WEST); westData.setSplit(true); westData.setMinSize(175); westData.setMaxSize(400); westData.setMargins(new Margins(35, 5, 0, 5)); westData.setCMargins(new Margins(35, 5, 5, 5)); borderPanel.add(getWestMenuPanel(), westData); centerPanel = new Panel(); centerPanel.setHtml("center panel"); borderPanel.add(centerPanel, new BorderLayoutData (RegionPosition.CENTER)); panel.add(borderPanel); Viewport viewport = new Viewport(panel); } --~--~-~--~~~---~--~~ You received 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 and existing project
Hi, guys! I need some help... I have existing application, client-side is based on HTML, CSS, JS. But I would use _SOME_ GWT features, do not making whole GUI based on GWT. For example, I have existing fields and buttons on pages. And I would like to make GWT-based fields validation and GWT-Ext popups How to do it? --~--~-~--~~~---~--~~ You received 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: How to modify RichTextArea
Maybe it is possible to do this by using the setHTML() method: myRichTextArea.setHTML("This text is colored red..."); 2008/12/14 luttkens > > I try to modify the functionallity of the RichTextArea Wdiget. As you > know it is possible to format text as bold for instance, which wraps > the selected text with my text. > > Is it possible to format text by wrapping my own tags, like: STYLE="font-size:12px">my text. > Or is there a way to get cursor position and selection? Then I can use > setHTML() and getHTML(). > > > > > --~--~-~--~~~---~--~~ You received 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 and existing project
Hi, As per my latest experience, same thing ihave done. what you need to do that u create a separate GWT project with your new stuffs and then compiled that with xs-linker. Now, you deploy the compiled source to your server in a jar or war form. then, load the GWT project , you can get the all neccesaary information for loading from this link i.e http://developerlife.com/tutorials/?p=231 Plz let us know if you have any difficulties. Regards, Manish - Original Message - From: "Dmytro Mantula AKA DieZ" To: "Google Web Toolkit" Sent: Monday, December 15, 2008 11:19 AM Subject: GWT and existing project > > Hi, guys! I need some help... > > I have existing application, client-side is based on HTML, CSS, JS. > But I would use _SOME_ GWT features, do not making whole GUI based on > GWT. > > For example, I have existing fields and buttons on pages. > And I would like to make GWT-based fields validation and GWT-Ext > popups How to do it? > > > --~--~-~--~~~---~--~~ You received 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: how to implement history mechanism for tree structure
Hi Preeth, I have a doubt ,when I click on the tree button , calling getSearchResult(String id) function and refreshing the central panel with the result.Let me know I need to call the getSearchResult(String id) function in onHistoryChage() with new token.Normally in jsp clicking back button the call will not go to the server.Please can you exaplain me with small example. Regards, Rajasekhar --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---