Re: The RequestFactory ValidationTool must be run for the RequestFactory type
encountered the same issue today, solved by changing the directory name from .apt_generated to .apt_generated1 Seems like that forces a revalidation. Prashant On 17-Apr-2012, at 1:08 AM, Felipe Stanham wrote: I Know this is old but I just got stuck with the same problem. Did you ever got around this and solved it? I'm really frustrated, I've tried everything I knew of, everything any blog speaks of and still no validation run! PLEASE HELP!!! On Sunday, January 15, 2012 12:32:56 AM UTC-2, TULC wrote: I'm still stuck on this. Some projects I've ported to 2.4 now work, but others still just won't budge. I have tried all the additional steps, but my *DeobfuscatorBuilder.java just won't appear in those projects (event thought the .apt_generated folder does, and is replaced if I change the name). I have noticed some (though not all) of those projects are now giving me the error build.properties does not exist, which may or may not be related. I'm frustrated to the point I'm considering ditching GWT altogether; I haven't been able to proceed with any GWT development since the 2.4 upgrade. Like the man said, I'm good, really I am, but I just can't figure this one out, and it really shouldn't be this hard. Thanks for the breaking change. Evan On Dec 14 2011, 12:12 pm, dparish dpar...@gmail.com wrote: I had the same problem. There are two other possible reasons you see this: 1. Your java compliance level in the project is set to 1.5 2. Your classes are already compiled. I don't know why, but touching the my RequestContext classes had NO affect until I deleted the classes that were compiled before I added annotations. Now it all works just fine. Attention Google: This stuff is w tooo complicated. I'm good. really I am, but this is just misdirection at it's worst. On Nov 20, 5:47 pm, oerten25 ozgur.er...@gmail.com wrote: I've been getting the same error and tried the things mentioned in the discussion without any luck. Finally i realised that i don't have the apt_generated folder. So i changed the generated source directory option to something other than apt_generated in Annotation Processing setting. That fixed it. On Oct 2, 11:29 pm, TULC evan.a.te...@gmail.com wrote: I just get the sameerroras posted by Eric at the beginning of the thread, but I have copied/pasted the full dump below. Thomas, I'm not sure what you mean about the .apt_generated being in my build path? Thanks for the help, guys... Evan Console: log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.Js pRuntimeContext). log4j:WARN Please initialize the log4j system properly. log4j:WARN Seehttp://logging.apache.org/log4j/1.2/faq.html#noconfig for more in fo. 03/10/2011 8:24:49 AM com.google.web.bindery.requestfactory.server.RequestFactor yServlet doPost SEVERE: Unexpectederror java.lang.RuntimeException: TheRequestFactoryValidationToolmustberunfor th e com.google.gwt.sample.dynatablerf.shared.DynaTableRequestFactory RequestFactor y type at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator $Builder.load(Deob fuscator.java:59) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.updateDeo b fuscator(ResolverServiceLayer.java:43) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveRe q uestFactory(ResolverServiceLayer.java:176) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR e questFactory(ServiceLayerDecorator.java:172) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR e questFactory(ServiceLayerDecorator.java:172) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR e questFactory(ServiceLayerDecorator.java:172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(S e rviceLayerCache.java:233) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.resolveReque s tFactory(ServiceLayerCache.java:198) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process ( SimpleRequestProcessor.java:207) at
Re: Redirecting to jsp
Not sure if the following is the most elegant way, but it will work as we have done this in our app. I am assuming you want to post to a URL from GWT client to another domain different from your server ( say to a payment gateway which is why we did this). 1) In your Window.open you call a JSP. Initially you make a HTTP GET to the JSP with all the parameters. 2) In the JSP, accept all the GET parameters and create a FORM with your HTTP GET parameters masqueraded as hidden fields. 3) In the JSP, have a BODY onload='submitForm()' 4) The submitform javascript should do document.formname.submit(); So, the final user experience is, user clicks a button, it opens a new window, a HTTP-GET happens, target JSP spews out a HTML form and a couple of lines of javascript to do the form submit on load. So, a form submit happens. Your GWT APP is unaffected as it is running on a different host page/window. Hope this helps.. Best Regards Prashant On Sat, Feb 26, 2011 at 11:17 PM, Deepak Singh deepaksingh...@gmail.comwrote: Any help on this pls. On Fri, Feb 25, 2011 at 8:58 PM, Deepak Singh deepaksingh...@gmail.comwrote: Hi, In my celltable, i have one button column. In the fieldAdapter(), i am opening a new window using Window.open( url, _blank, ); It opens a new window withe the url using the http get() method. I want to open this window with http post() method. How can i acheive this ? I think it is not possible at the client side using java script, so i though it to redirect to a jsp as follows HttpServletRequest req = getThreadLocalRequest(); HttpServletResponse res = getThreadLocalResponse(); res.addHeader(Referer, http://www.domain.com;); try { res.sendRedirect(param); } catch (IOException e) { e.printStackTrace(); } but this does not work. Nothing happens when i click the button. How it is possible to redirect to a jsp page from gwt? 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. -- 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 CellWidgets contain custom composite widgets ?
We have extended the AbstractCell and did the following. Have a widget created using UiBinder XML for the content of a cell. In the render method, instantiate the widget, set the data and getHTML. Once you get HTML, it is business as usual. You can also respond to the events inside the widget by overriding onBrowserEvent. We only had anchors inside the widget, so we listened to click events and responded it to it by delegating the event to presenters. This approach eliminated having to write HTML mark up in Java code. Not sure if this is the answer you are looking for. Prashant On Wed, Feb 2, 2011 at 4:10 AM, zixzigma zixzi...@gmail.com wrote: after investigating CompositeCell or directly extending AbstractCell, it is my understanding that to create custom cell, the only option at the moment is to embed HTML markup in the render method as below. in other words, we cannot create a custom composite widget with UiBinder, and add it to the cell. am I correct on this ? @Override public void render(Context context, Contact value, SafeHtmlBuilder sb) { /* * Always do a null check on the value. Cell widgets can pass null to * cells if the underlying data contains a null, or if the data arrives * out of order. */ if (value == null) { return; } // Add a checkbox. If the contact is a favorite, the box will be checked. sb.appendHtmlConstant(tabletrtd valign=\top\); if (favorites.contains(value)) { sb.appendHtmlConstant(input type=\checkbox\ checked=checked/); } else { sb.appendHtmlConstant(input type=\checkbox\ /); } sb.appendHtmlConstant(/tdtd); // Display the name in big letters. sb.appendHtmlConstant(div style=\size:200%;font-weight:bold;\); sb.appendEscaped(value.name); sb.appendHtmlConstant(/div); // Display the address in normal text. sb.appendHtmlConstant(div style=\padding-left:10px;\); sb.appendEscaped(value.address); sb.appendHtmlConstant(/div); sb.appendHtmlConstant(/td/tr/table); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 CellWidgets contain custom composite widgets ?
Sorry, I should have been more clearer. Its not getHTML as I had stated. Should have said getInnerHtml(). Your custom widget need not implement HasHTML. Instead, its basically a standard UiBinder based composite with public methods to set the required data to be rendered ( not the markup just the data like any other setters/getters of a view ). Your markup is inside the UIBinder XML. Once you set the data, you can call getElement().getInnerHTML() on the composite to get the HTML equivalent of the composite. One more improvement (more lightweight I guess) over the above approach is, You need not extend the UiBinder widget from Composite. You can just have a reference to a Widget inside the UiBinder Java file. Initialize this reference to the object returned from createAndBindUi. In this case, you will have to call widget.getElement().getInnerHtml() for the HTML equivalent. Hope this helps. Prashant On Wed, Feb 2, 2011 at 10:20 AM, zixzigma zixzi...@gmail.com wrote: Thank You. Prashant, I am following your suggestion, I am a bit unclear about this part of your comment: set the data and getHTML should my custom widget implement HasHTML ? http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/HasHTML.html could you please explain that part a bit more ? I see that HasHTML has methods setHTML getText that I need to implement. do you think I need to put html markup in this setHTML ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 CellWidgets contain custom composite widgets ?
From what I know (hope others can comment/correct): You get influence rendering in the render method of a cell. If your click event, updates the table in some fashion that leads to re-rendering of the table then you should get the control to render method of the cell. Based on a conditional logic inside the render method, should be able to plug in a different widget HTML in the same cell area ( should work, never tried ). Prashant On Wed, Feb 2, 2011 at 11:54 AM, zixzigma zixzi...@gmail.com wrote: THANK YOU! it worked !! what a wonderful solution ! one other question, in your experience, - do you think it is possible to change a cell once it's rendered ? for example, implement onClick event, in a way that upon a click, another widget is added to the currently displayed row. I am trying to implement something similar to this: http://code.google.com/p/google-web-toolkit/updates/list which is basically a celltable, when you click on a row, the row expands. I am not asking for the solution, although any tips are really appreciated, I want to know if it is possible with CellTable. Thank you for the solution you offered. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Places and URL
Please check if you have initialized the place system correctly. Refer: http://tbroyer.posterous.com/gwt-21-places-part-ii IMO, This excellent article has everything that you need to know to get started with Places. Extracting the pieces that may be relevant for you: - @WithTokenizers(FooPlaceTokenizer.class, BarPlaceTokenizer.class) interface MyPlaceHistoryMapper extends PlaceHistoryMapper { } PlaceHistoryMapper historyMapper = GWT.create(MyPlaceHistoryMapper.class); PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper); historyHandler.register(placeController, eventBus, defaultPlace); - Good Luck Prashant On Tue, Nov 16, 2010 at 2:37 AM, vehdra music veh...@gmail.com wrote: I'm trying to learn how to use GWT 2.1 MVP framework. I maded 2 places, for example: public class MyProfile extends Place { public static class Tokenizer implements PlaceTokenizerMyProfile { public MyProfile getPlace(String token) { return new MyProfile(); } public String getToken(MyProfile place) { return Hello World; } } } But i don't know why, when i try to go to a place, my history doesn't changes (i mean my url in the browser) clientFactory.getPlaceController().goTo(new MyProfile()); What i am missing that my code doesn't append #MyProfile to my browser url when i call the goTo() method? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Property 'gwt.logging' not found
Try set-property name='gwt.logging.enabled' value='TRUE' / *and not* set-property name='gwt.logging' value='ENABLED' / Regards Prashant On Wed, Nov 10, 2010 at 7:14 PM, John bradley.r...@gmail.com wrote: I'm trying to switch from gwt-log over to the new logging in 2.1, but I'm getting an error at compile time: Loading inherited module 'com.google.gwt.logging.Logging' Module 'com.google.gwt.logging.Logging' has already been loaded and will be skipped [ERROR] Property 'gwt.logging' not found [ERROR] Failure while parsing XML in my *.gwt.xml file I have: inherits name=com.google.gwt.logging.Logging / set-property name='gwt.logging' value='ENABLED' / set-property name='gwt.logging.logLevel' value='ALL' / set-property name='gwt.logging.consoleHandler' value='ENABLED' / From what I could tell, that should be all the setup I need ... has anyone else experienced this? I am missing just missing something? Thanks in advance! John -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: uibinder and nested layout
In our application, we have a top level UiBinder which sets the layout, with the content as a LayoutPanel which has a ui:field assigned to it. This ui:field is used as a container for another ui:binder xml for the content.. (and the same thing can apply to other areas of the layout as well). We use classic MVP which passes the container to the appropriate presenters when it is time for display. The presenter sets the view to the container. So in essence, there is no nesting, but a definition of the container, which is set at a different place in the application. Prashant On Tue, Nov 9, 2010 at 10:29 PM, Sachin Dole sachin.d...@gmail.com wrote: Hello, I have a requirement for an HTML page with a top horizontal header bar, a large middle panel that will itself contain the left navigation column, a middle content panel and a right side margin for showing Associated content. At the bottom is a footer with its own content. To lay this out, I want to use UiBinder. How do I nest UiBinder fields? In other words, how to refer to @UiFields that are declared not in the main outer page class but in classes that are @UiFields of the main page class? Is it even possible to nest UI classes into one layout? Thank you list! Sachin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: class HorizontalPanel has no appropriate setUifield() method
In your UiBinder XML file seems like you have a typo - Change *uifield *to * ui:field* ** * * *Thanks* Prashant On Mon, Oct 11, 2010 at 10:51 AM, Giuseppe Sacco eppes...@gmail.com wrote: Hi all, I am using uiBinder for the first time and I got an error message I cannot understand. The message is class HorizontalPanel has no appropriate setUifield() method and it appear on this code Diapo.ui.xml !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui !-- ui:style/ui:style -- g:VerticalPanel g:DeckPanel ui:field=pannelloCentrale/g:DeckPanel g:ScrollPanel uifield=pannelloAnteprime g:HorizontalPanel uifield=pannelloOrizzontale/ g:HorizontalPanel /g:ScrollPanel /g:VerticalPanel /ui:UiBinder Diapo.java (first lines) public class Diapo extends Composite implements RequestCallback { private static DiapoUiBinder uiBinder = GWT.create(DiapoUiBinder.class); @UiField DeckPanel pannelloCentrale; @UiField ScrollPanel pannelloAnteprime; @UiField HorizontalPanel pannelloOrizzontale; //... } What does the message means? Since it report a problem about HorizontalPanel class, does this means I can only use HorizontalPanel in uiBinder when I don't care about UiFields? How can I get a reference to the created horizontal panel? Thank you very much, Giuseppe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Layout issue in GWT...
Let me share what I have experienced. You can use a HTMLPanel - which has a flow layout just like native rendering of HTML. You dont need to use the Label widget in that case. g:HTMLPanel Search : g:TextBox g:Button /g:HTMLPanel This avoids the unnecessary widget ( the lesser the widgets faster your app). Also, I usually use a One of the LayoutPanels - ( DockLayoutPanel especially ) as a top level layout system added to RootLayoutPanel. Inside the panel, use HTMLPanel as top level widget. This I found to have a good consistent look and feel across browsers ( Firefox and Chrome for sure - IE not so sure). Hope this helps. Prashant On 15-08-2010 00:24, Thamizharasu S wrote: Hi, Layout in GWT is seems to little bit complex from my perspective. I created one sample search page which contains on the following components, HorizontalLayoutPanel -Label -TextBox -Button This simple layout is not as common in all the browsers. For example, this layout looks somehow perfect in FF browser. But in Chrome, the textbox and button control is aligned properly. Can anyone help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SuggestBox + UiBinder question...
The way I normally do this: In the Corresponding view class, @UiField(provided = true)SuggestBox suggestbox; In the constructor, before the initWidget() call, instantiate the suggestbox the way you want it. Prashant On 14-08-2010 00:13, Thamizharasu S wrote: Hi All, I have a problem with SuggestBox with UiBinder. I have created a SuggestBox control using ui.xml binder file. How could I define the 'MultiWordSuggestOracle' object with my suggestBox object which is defined in the xml. Any idea? - Thamizharasu S -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder xml definition reference: HELP...
Not sure if there is such a documentation, however, one rule is that whenever a widget has a method say setName ( set methods), you can use name= in the UIBinder XML file for that widget. May be someone else can give a better answer. Prashant On 13-08-2010 23:34, Thamizharasu S wrote: Hi All, Where can I find the full list of property reference for UiBinder controls in xml file? For example, any GWT elements can be bind with UiBinder. Sometimes it is confusing to identify the correct property name and some available values. Can any one point to identify it for my reference? - Thamizharasu S -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Displaying date in format dd/mm/yy
See if this helps http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/i18n/client/DateTimeFormat.html Thanks Prashant On 11-08-2010 12:49, Santosh kumar wrote: Hi, After rpc cal i am getting the date from datastore which was stored in some of the kind, but i want to display that date in the format dd/mm/yy and the time also. Please can anyone help me to make over this task. -- Thanks Regards *S a n t o s h k u m a r . k* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: VerticalPanel inside ScrollPanel inside StackPanel - no scrollbars?
Not sure abt the ScrollPanel but, I have also found out ( the hard way) VerticalPanel ( table based ) does not work well with layout panels (div based) .. Try using a DockLayoutPanel - with all widgets added to the north - instead... may be worth a try. - Prashant On 21-07-2010 10:58, Magnus wrote: Hi Prashant, I have done everything you said, with some losings, but also without success (scrollbars): - I changed the StackPanel into a StackLayoutPanel - then, the CSS padding (10px) has no effect anymore (the stack is aligned directly at the left edge, without space, but ok) - I added overflow:auto to the inner CSS container, which is a VerticalPanel - but there is no scrollbar... Why doesn't ScrollPanel work here? Magnus On Jul 21, 5:32 am, Prashant Hegdeprashant.he...@gmail.com wrote: The way I would go about doing this is as follows, see if this works for you or gives any hints: 0. Make sure you are in STANDARDS mode. 1. Use StackLayoutPanel and add it to your parent LayoutPanel ( mixing StackPanel with a DockLayoutPanel gives unpredictable results - so some one has said I have found out the hard way ) 2. Set the width and height to 100% 3. For the container widget ( FlowPanel / HTMLPanel ) you add to the StackLayoutPanel, put a CSS overflow: auto. This indicates that if whatever the container contains grows beyond the container then a scroll bar is shown. If you have a container within a container, and overflow setting should be on the right container - just above the element whose overflow you want to control. Firebug usually helps me figure out this. Review the container hierarchy using Firebug to make sure that there are no intermediate containers which makes your setting ineffective. Hope this helps. On 21-07-2010 05:34, Magnus wrote: Hi, I want to show the contents of a log file inside a StackPanel. The log file itself is a class LogPanel based on a VerticalPanel. Because the log file grows, I added an intermediate ScrollPanel (see code below). The problem: The ScrollPanel never shows scrollbars. Instead, it grows as the LogPanel grows, beyond the size of the containing StackPanel. I would like the ScrollPanel to occupy all available space within the StackPanel and to show scrollbars, when the inner LogPanel gets bigger. The demo of the StackPanel class in the GWT showcase application assumes that there is enough room for the contents. Can you help? Thanks! Magnus - public class MyStackPanel extends StackPanel { public MyStackPanel () { super (); setSize(100%,100%); // we are in the west edge of a DockLayoutPanel } public void add (LogPanel log) { ScrollPanel p = new ScrollPanel (); p.add(log); add (p,Log); p.setSize (100%,100%); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: create hyperlink using GWT
How about using Anchor widget? Prashant On 21-07-2010 07:25, Lu wrote: Hi, After getting a bunch of urls from the sever side, I want to dispay them in the format of hyperlinks on the client side. In this case, I didn't use history at all so I choose to use 'new HTML()'. tableLeft.setWidget(index, 0, new HTML(a href='www.google.com'text/ a)); If I do like this, the address of url will become 'http:// 127.0.0.1:/www.google.com' rather than the one i want. How can I fix that? Thanks, Lu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: VerticalPanel inside ScrollPanel inside StackPanel - no scrollbars?
The way I would go about doing this is as follows, see if this works for you or gives any hints: 0. Make sure you are in STANDARDS mode. 1. Use StackLayoutPanel and add it to your parent LayoutPanel ( mixing StackPanel with a DockLayoutPanel gives unpredictable results - so some one has said I have found out the hard way ) 2. Set the width and height to 100% 3. For the container widget ( FlowPanel / HTMLPanel ) you add to the StackLayoutPanel, put a CSS overflow: auto. This indicates that if whatever the container contains grows beyond the container then a scroll bar is shown. If you have a container within a container, and overflow setting should be on the right container - just above the element whose overflow you want to control. Firebug usually helps me figure out this. Review the container hierarchy using Firebug to make sure that there are no intermediate containers which makes your setting ineffective. Hope this helps. On 21-07-2010 05:34, Magnus wrote: Hi, I want to show the contents of a log file inside a StackPanel. The log file itself is a class LogPanel based on a VerticalPanel. Because the log file grows, I added an intermediate ScrollPanel (see code below). The problem: The ScrollPanel never shows scrollbars. Instead, it grows as the LogPanel grows, beyond the size of the containing StackPanel. I would like the ScrollPanel to occupy all available space within the StackPanel and to show scrollbars, when the inner LogPanel gets bigger. The demo of the StackPanel class in the GWT showcase application assumes that there is enough room for the contents. Can you help? Thanks! Magnus - public class MyStackPanel extends StackPanel { public MyStackPanel () { super (); setSize(100%,100%); // we are in the west edge of a DockLayoutPanel } public void add (LogPanel log) { ScrollPanel p = new ScrollPanel (); p.add(log); add (p,Log); p.setSize (100%,100%); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Client session
The way I would do is to define a application event (eg. LocationEventLocationHandler) handler encapsulating whatever data (ex. co ordinates) that you need to send and fire the event. First presenter fires the event when the mouse is clicked. Second Presenter handles the event and takes appropriate action. Regards Prashant On 16-07-2010 03:41, munna kaka wrote: You wrote that On Thu, Jul 15, 2010 at 11:36 AM, Feldman, Nir (48Upper) nir.feld...@hp.com mailto:nir.feld...@hp.com wrote: Sharing of data is threw the bus. You should have your display expose mouseClickedEvent. The presenter should capture it and fire it to the bus. The secondPresenter should get the event and notify the second display on whatever required. Plz let me know that how first presenter can send data (say user clicked item id in first display or any data) to second presenter? Above is the question, I really need answer..thanks in advance... -Original Message- From: google-web-toolkit@googlegroups.com mailto:google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com mailto:google-web-toolkit@googlegroups.com] On Behalf Of Stefan Bachert Sent: Thursday, July 15, 2010 6:02 PM To: Google Web Toolkit Subject: Re: Client session Hi, I am not sure what you mean with client side sessions? Do you mean to pass the HttpSession (maybe just the id) to the client side? But for what reason? It is already there. Either due to url-rewriting or by cookie. Stefan Bachert http://gwtworld.de http://gwtworld.de/ On 9 Jul., 19:48, mk munna.kaka.ch...@gmail.com mailto:munna.kaka.ch...@gmail.com wrote: How to implement a client side session ( and any best practices to implement them). Is it to just create a static variable ? How do two different MVP widgets share MODEL data (i.e. user input data). How do two different MVP widgets share VIEW data ( for example if display of one widget is dependent on mouse click location of second widget, than how do two widgets share view information i.e. mouse click location). Again, all widgets are designed using MVP and send events using EventBus. -- 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 mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dynamic UI rendering using GWT
You don't get the benefits of the UiBinder for your dynamically generated pages. I have used UiBinder in a twisted way. Create a base user interface using UIBinder with ALL widgets that you will ever need on the page. Based on the run time data, hide/remove from parent the unwanted widgets. Ofcourse it depends on the application as to whether this design is feasible. Prashant -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting a 503 Error.
Probably your server has exited following a exception during initialization Does the console show some exceptions ? On 03-06-2010 04:12, ike wrote: Hey... I am using the plugin for Eclipse. There are no errors in my code according to Eclipse, but when I run the code, it gives me a screen like this: HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/In2Solar.html Powered by jetty:// Is there someplace I could look to find out what is happening??? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Module not loaded on app engine
Pls check your web.xml entries if it is properly configured for url pattern admin http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideImplementingServices Regards Prashant On 30-04-2010 08:22, Vik wrote: Hie Any help on this one plz? Thankx and Regards Vik Founder www.sakshum.com http://www.sakshum.com www.sakshum.blogspot.com http://www.sakshum.blogspot.com On Wed, Apr 28, 2010 at 8:17 AM, Vik vik@gmail.com mailto:vik@gmail.com wrote: Hie Thanks when u pointed i could see it in console... here is how my class looks like: package vik.sakshum.sakshumweb.client.service; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(admin) public interface AdminDashBoardService extends RemoteService{ String getUserName() throws Exception; String addDistt(String state, String distt) throws Exception ; } so it has this RemoteServiceRelativePath annotation. Now strange why i m getting this error on GAE. Thankx and Regards Vik Founder www.sakshum.com http://www.sakshum.com www.sakshum.blogspot.com http://www.sakshum.blogspot.com On Tue, Apr 27, 2010 at 11:39 PM, Sripathi Krishnan sripathikrish...@gmail.com mailto:sripathikrish...@gmail.com wrote: I am seeing this error in firebug *Error: uncaught exception: com.google.gwt.user.client.rpc.ServiceDefTarget$NoServiceEntryPointSpecifiedException: Service implementation URL not specified * Please check if the class vik.sakshum.sakshumweb.client.service.AdminDashBoardService has the @RemoteServiceRelativePath annotation. --Sri On 27 April 2010 22:26, Vik vik@gmail.com mailto:vik@gmail.com wrote: Hie Thanks a lot for replying.. Below are the answers: Does the login module work on GAE? If so, what's different about the two? Yes it works... i think login module is the default one created by gwt when u create a project. Can you access the admindashboard without going through the login? I can do that in dev mode in eclipse but on GAE it renders as a blank page: http://sakshumweb20.appspot.com/ui/page/AdminDashBoard.jsp Are you running firebug in firefox? Is the page empty, or is the content there but just not visible? Yes. What i see is: div height=100% width=100% id=adminDashBoard/div What's the network traffic look like, any errors there? Looks fine to me.. I mean no errors in that. Have you put debug log statements in admindashboard's onModuleLoad to see if it ever even gets called? Compare with similar log statements in your working login app? Yeah i tried putting sop but does not get printed in any of the module. But the log statements get printed well in the submit method of login popup button. In adminDashboard onModuleLoad I am calling a service method. In this service method i dont see anything gettting printed. So this kinda confirms that in case ofr AdminDashBoard onModuleLoad is not getting called at all. So surely that something is different in envrionements as it works as it is on eclipse but not in case of GAE. Thankx and Regards Vik Founder www.sakshum.com http://www.sakshum.com www.sakshum.blogspot.com http://www.sakshum.blogspot.com On Tue, Apr 27, 2010 at 8:20 PM, kozura koz...@gmail.com mailto:koz...@gmail.com wrote: You need to give more info about the problem and what you've done to try to debug. There's many things that have to work to get a deployed app to work, and many more that can go wrong. You say your app works in Dev mode, but not when deployed to GAE? Just off the top of my head (and not being a user of GAE): Does the login module work on GAE? If so, what's different about the two? Can you access the admindashboard without going through the login? Are you running firebug in firefox? Is the page empty, or is the content there but just not visible? What's the network traffic look like, any errors there? Have you put debug log statements in admindashboard's onModuleLoad to
Re: Can someone brief out about MVP
Here is a good starting point http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html Prashant On 29-03-2010 11:10, sridevi macherla wrote: Hi, Can someone brief out about Model View Presenter architecture... Thanks Sri -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IE7 - StackLayoutPanel ( works fine in FF chrome )
Carlo, Thanks for the pointer. Somehow my google searches missed this link. Yes! the solution mentioned in thread works! (Issue#1). In fact it not only solved the SuggestionBox popup issues but also the popups created using PopupPanel ( unlike what is mentioned in the thread). Issue#2 still remains. I do have a HTMLPanel with a lot of table (no divs) elements to align the code, and I use GWT widgets in it. I will try replacing them the raw HTML with GWT widgets.. ( I hate do this, as I was taking advantage of UiBinder features to mix HTML and GWT) Thanks again. Prashant On 09-03-2010 03:26, Carlo wrote: This sounds like it is the same as this issue here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/6ce497dde344702b/f2482d43e508aa71?lnk=gstq=carlo+layoutfwc=2 Unfortunately I don't know that it has been resolved. -Carlo On Mar 7, 11:27 am, Prashant Hegdeprashant.he...@gmail.com wrote: Hello , I have an app which works fine in Chrome FF, but facing a couple of issues in IE7. - I am using Standards Mode!DOCTYPE html - GWT 2.0.3 on Windows - I am using RootLayoutPanel Issues: 1. Whenever a popup (created using PopupPanel ) is displayed, the background goes blank (and reappears after the popup is hidden). 2. I have ag:TabLayoutPanel, and in one of the tabs, I have a g:StackLayoutPanel inside ag:Layer. In IE7, the tab with the StackLayoutPanel gets collapsed to the top of the tab, and becomes unusable. Any clues / direction ? Thanks for any help. Regards Prashant -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
IE7 - StackLayoutPanel ( works fine in FF chrome )
Hello , I have an app which works fine in Chrome FF, but facing a couple of issues in IE7. - I am using Standards Mode !DOCTYPE html - GWT 2.0.3 on Windows - I am using RootLayoutPanel Issues: 1. Whenever a popup (created using PopupPanel ) is displayed, the background goes blank (and reappears after the popup is hidden). 2. I have a g:TabLayoutPanel, and in one of the tabs, I have a g:StackLayoutPanel inside a g:Layer. In IE7, the tab with the StackLayoutPanel gets collapsed to the top of the tab, and becomes unusable. Any clues / direction ? Thanks for any help. Regards Prashant -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best Practices for MVP with Composite Template View ( Header + Content + Nav + Footer) + UiBinder
I am using a similar strategy and it works just fine. I suspect it may be a problem with your DockLayoutPanel sizing. Please check if the sizes are 100%, also give the panel a border for debugging to see how your layout looks... If it helps, I have listed my UiBinder file. ui:style .layout { border-width:1px; border-style:solid; width: 100%; height: 100%; } .mainlayout { width: 100%; height: 100%; position:relative; top:2em; left: 2em; } /ui:style g:DockLayoutPanel styleName='{style.mainlayout}' unit='EM' g:north size='2' unit=EM g:FlowPanel ui:field=header/ /g:north g:center g:ScrollPanel styleName='{style.layout}' g:FlowPanel ui:field=content/ /g:ScrollPanel /g:center g:south size=1 unit=EM g:FlowPanel ui:field=footer/ /g:south /g:DockLayoutPanel /ui:UiBinder -- Prashant On 19-02-2010 09:50, digitalsam007 wrote: Hello, I have been trying to implement the MVP pattern in my new GWT app. I have followed the Contacts example app and it seems to be quite straightforward. In there, the controller passes the root panel(container) to every presenter in its go method. And these presenters add the respective view(Display) to the container. However, in my case I have to use a template with Header, footer, Navigation and Content. Something quite similar to the Mail sample app found in the GWT SDK. I tried to create a wrapper view class and its corresponding Presenter and included all the 4 diffrent views viz header, footer, nav and content in it ( WrapperView.ui.xml). I provided extra methods in the WrapperView that can return HasWidgets for each of the segments in the page like this - HasWidgets getHeaderContainer() HasWidgets getContentContainer() HasWidgets getFooterContainer() HasWidgets getNavContainer() In the WrapperView.ui.xml , i added a dockLayoutPanel which inturn contains each of these containers ( each container elemensta re in turn SimplePanel components which contains the actual widgets for Header, footer...etc) g:DockLayoutPanel unit='EM' g:north size='5' miab:HeaderContainerView ui:field='headerContainer' / /g:north g:center miab:ContentContainerView ui:field='contentContainer' / /g:center g:south size=2 miab:FooterContainerView ui:field='footerContainer' / /g:south /g:DockLayoutPanel So, the first time when the module loads and the AppController.go method is invoked I trigget the history with a new tocket eg Home. This invokes the valueChanged method and in that I create the WrapperView (if not already created; yes i maintain a reference to this object in AppController) and present it on screen. Then, I call the views getContentContainer method and try to add the content directly to that in another presenter. I do not pass the topmost container this time. Logically it should work and the content area must be refreshed with the respective Views when diffrent presenter presents it. But unfortunately I cannot achieve what I want to yet. So, could anyone of you provide me with some ideas or may share with me the best way of achieving this usecase? Any help in this regard will be highly appreciated Regards Sam -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel doesn't work
Try setting the height of TabLayoutPanel as 100% Also, to debug Panel positioning layout issues it may also help to set a border-width border-style ... ( that has worked for me most of the times) Hope this helps Prashant On 11-02-2010 10:34, Kevin Qiu wrote: I used this code from GWT's TabLayoutPanel documentation, created a UiBinder widget, added it to RootLayoutPanel, but all I got is a almost-blank page with the word able on the top-left corner... g:TabLayoutPanel barUnit='PX' barHeight='3' g:tab g:header size='7'bHTML/b header/g:header g:Labelable/g:Label /g:tab g:tab g:customHeader size='7' g:LabelCustom header/g:Label /g:customHeader g:Labelbaker/g:Label /g:tab /g:TabLayoutPanel I am already using standards mode (this is my doctype:!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd;) I wonder what's going on here? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: AppController or PlaceManager
I had the pleasure of reading the article as well. Although I was slightly disappointed that the source code was not shared fully in the article, the concept is nicely explained, and the code can be developed based on the snippets in the article. At a high level, the AppController is a class that contains code that does not belong the the view, model or the presenter. The version of the AppController that I have has the following: a) It implements ValueChangeHandler interface to act as a handler of history changed events. b) It accepts the RPC Service the event bus as the constructor arguments to be able to pass on these objects to the presenters that it will instantiate. c) It has a go(HasWidgets) method which gets called by the module entry point class. This initiates everything in the app - such as firing the default history token(which in turn calls the onValueChange). I also have the code to add the AppController to the history as a listener in this function itself. d) Most important of it all - atleast the thing I liked most - is the onValueChange method. This method gets called whenever History stack changes. This allows you to manage history view transitions in your app. For ex: public void onValueChange(ValueChangeEventString event) { String token = event.getValue(); if(token!=null) { if(token.equals(registersmart)) { RegisterSmartPresenter presenter = new RegisterSmartPresenter(rpcService,eventBus,new RegisterSmartView()); presenter.go(container); }else if(token.equals(userhome)) { UserHomePresenter presenter = new UserHomePresenter(rpcService,eventBus,new UserHomeView()); presenter.go(container); } } } Hope this helps. Regards On Tue, Dec 29, 2009 at 11:29 PM, jpnet jprichard...@gmail.com wrote: I really liked the article, but it's useless without the source code. -JP On Dec 29, 7:55 am, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Anyone ? On Tue, Dec 29, 2009 at 2:45 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: I went through http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur.. ., I am confused, does AppController as mentioned in the article does the same that can be done by gwt-presenter's PlaceManager ? If yes, should I go with AppController or PlaceManager ? As I am new to GWT, I understood the gwt-presenter, but I couldn't get how the AppController as described in the above link works ? Thanks, Abdullah -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.