Re: GWT encoding problem
Don't think in terms of encoding individual characters, just save the file in UTF-8 format from any text editor that allows you to select the character set. But, FWIW, é is U+00E9 (C3A9 in UTF-8). On Sep 21, 11:37 pm, Thomas Van Driessche wrote: > Then how do i escape an é? > It is very possible that's the problem... > > On Sep 21, 5:24 pm, Hilco Wijbenga wrote: > > > > > On 21 September 2010 07:26, Thomas Van Driessche > > > wrote: > > > Hi, > > > > I have a problem that my values out of my properties files are not > > > well displayed on the page in utf8. > > >http://download.oracle.com/javase/6/docs/api/java/util/Properties.html > > (note the text about InputStream using ISO 8859-1). That *might* be > > it. > > > > This is already done: > > > > > > > > > And the files in eclipse are saved using UTF-8. > > > > I tried to watch the files in the war file (build using maven), but i > > > can't seem to find them back there? > > > unzip -l xyz.war will tell you what's inside the WAR. > > > > Because when i build i get the following warning: > > > > [WARNING] Using platform encoding (Cp1252 actually) to copy filtered > > > resources, > > > i.e. build is platform dependent! > > >http://maven.apache.org/general.html#encoding-warning > > > But this is just a warning, it doesn't stop Maven from copying the > > resources. -- 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 encoding problem
Then how do i escape an é? It is very possible that's the problem... On Sep 21, 5:24 pm, Hilco Wijbenga wrote: > On 21 September 2010 07:26, Thomas Van Driessche > > wrote: > > Hi, > > > I have a problem that my values out of my properties files are not > > well displayed on the page in utf8. > > http://download.oracle.com/javase/6/docs/api/java/util/Properties.html > (note the text about InputStream using ISO 8859-1). That *might* be > it. > > > This is already done: > > > > > > And the files in eclipse are saved using UTF-8. > > > I tried to watch the files in the war file (build using maven), but i > > can't seem to find them back there? > > unzip -l xyz.war will tell you what's inside the WAR. > > > Because when i build i get the following warning: > > > [WARNING] Using platform encoding (Cp1252 actually) to copy filtered > > resources, > > i.e. build is platform dependent! > > http://maven.apache.org/general.html#encoding-warning > > But this is just a warning, it doesn't stop Maven from copying the resources. -- 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: command pattern, anon innerclass & serialization exception
forgot one more interface for invoke the service public interface GwtActionService extends RemoteService { T execute(Action action); } On Sep 21, 11:22 pm, Mike Wyszinski wrote: > wondering why this results in a serialization exception(running it in > debugger-> com.google.gwt.dev.GWTShell) > code snippets below > > I really like just needing to deal with the onSucceded() in my > presenter code > and leaving the onfailure,lookup & invocation code in the action. > This way i can easily re-use the AddEmail > and just specialize the onSuceeded() code to update whichever display > i happen to be working on. > > should this approach work? > > //= > // Command pattern with some centrallized error handling > //= > public interface Response extends IsSerializable {} > public interface Action extends IsSerializable {} > > public abstract class BaseAction implements > Action,AsyncCallback { > public abstract void invoke(); > public abstract void onSucceded(T value); > > @Override > public void onFailure(Throwable error) { > //based onExceptiontype do something(irrelevant here) > } > @Override > public void onSuccess(T value) { > try { > onSucceded(value); > } catch (RuntimeException error) { > onFailure(error); > } > } > > } > > public class AddEmailAction extends BaseAction { > private static final long serialVersionUID = 1L; > protected String email; > public AddEmailAction() { > } > public AddEmailAction(String email) { > this.email = email; > } > > @Override > public void invoke() { > //note: i initialize the rpc service in the entrypoint class > EntryPoint.RPCSERVICE.execute(this, this); > } > > public String getEmail() { > return email; > } > > public void setEmail(String email) { > this.email = email; > } > > } > > // > //in the presentation tier, I try to invoke it > // > class XYZPresenter{ > > private void handleAddEmail(final String email){ > new AddEmailAction(email){ > @Override > public void onSucceded(AddEmailResponse value) { > display.addEmail(email); > } > }.invoke(); <-ends up triggering - > > >com.google.gwt.user.client.rpc.SerializationException > } > } -- 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.
command pattern, anon innerclass & serialization exception
wondering why this results in a serialization exception(running it in debugger-> com.google.gwt.dev.GWTShell) code snippets below I really like just needing to deal with the onSucceded() in my presenter code and leaving the onfailure,lookup & invocation code in the action. This way i can easily re-use the AddEmail and just specialize the onSuceeded() code to update whichever display i happen to be working on. should this approach work? //= // Command pattern with some centrallized error handling //= public interface Response extends IsSerializable {} public interface Action extends IsSerializable {} public abstract class BaseAction implements Action,AsyncCallback { public abstract void invoke(); public abstract void onSucceded(T value); @Override public void onFailure(Throwable error) { //based onExceptiontype do something(irrelevant here) } @Override public void onSuccess(T value) { try { onSucceded(value); } catch (RuntimeException error) { onFailure(error); } } } public class AddEmailAction extends BaseAction { private static final long serialVersionUID = 1L; protected String email; public AddEmailAction() { } public AddEmailAction(String email) { this.email = email; } @Override public void invoke() { //note: i initialize the rpc service in the entrypoint class EntryPoint.RPCSERVICE.execute(this, this); } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } } // //in the presentation tier, I try to invoke it // class XYZPresenter{ private void handleAddEmail(final String email){ new AddEmailAction(email){ @Override public void onSucceded(AddEmailResponse value) { display.addEmail(email); } }.invoke(); <-ends up triggering - >com.google.gwt.user.client.rpc.SerializationException } } -- 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 Designer not available ...
textBox widget error: I'm run into problem with textBox in the new GWT StockWatcher tutorial using GWT 2.1.M3 on Ubuntu 10.4, Eclipse 3.6. textBox widget can't be added to Horizontal Panel or any panel. Other widgets (label, button...) and panels are working fine. Can you please verify the error. Thank you, Jim On Sep 1, 5:21 pm, Eric Clayberg wrote: > Yes. We announced that we were planning to support UiBinder in the > GWTDesigneruser forum quite awhile ago. > > -Eric > > On Sep 1, 9:30 am, Magno Machado wrote: > > > > > Does Google plan to implement UiBinder support on GWTDesigner? > > > It wasn't on the Instantiations roadmap (AFAIK) -- 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: Why is getOffsetWidth/getOffsetHeight returning 0 even after onLoad is called for LayoutPanel children?
Did you check if you have the issue on all browsers: I have it on Webkit based browsers (Safari + Chrome) but not on IE and FF. didier On Sep 22, 12:43 am, Damon Lundin wrote: > On Sep 21, 5:21 pm, Gal Dolber wrote: > > > try with onAttach() > > The method onLoad is called by onAttach so overiding onAttach won't > change anything not to mention the fact that the doc for onAttach says > "It is strongly recommended that you override {...@link #onLoad()} or > {...@link #doAttachChildren()} instead of this method". > > On Sep 21, 5:35 pm, Thomas Broyer wrote: > > > How about implementing RequiresResize and doing the job in onResize()? > > That doesn't help because onResize isn't called automatically when the > widgets are initially constructed, only when a browser initiates a > resize event. However I have tried exactly what you suggest by > putting the code I am having trouble with in a RequiresResize.onResize > method and am calling that method in onLoad (so the sizing happens on > both resize and when the widget is initially created). The method > getOffsetWidth still returns 0. I also tried manually calling > onResize on the RootLayoutPanel at the end of my onModuleLoad with the > same result. Only a DeferredCommand seems to result in getOffsetWidth > not returning 0. -- 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.
serializing classes in GWT w/o source code
Hello! So, I have a GWT app that uses a domain object model from another project library within our company. This domain object model is distributed as a library file and no sources are normally available. The domain object model is serialized and all that is good so, my IDE does not complain about wiring everything together as a GWT project, however, when i try to compile with gwt, I get an error message [ERROR] Line 38: No source code is available for type com.g.nfl.download.model.Attribute; did you forget to inherit a required module? It looks like gwt compiler is looking for source code - understandable. However, I dont have it! So how do I still use the pre- compiled class? If there is no way, I guess I will need to break down this domain object model into Strings and primitives and then pass that over rpc in gwt... that wont be so cool, but it can work. Has anyone else faced this? How to get it working? Appreciate it! Best, 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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RootLayoutPanel adds extra divs which makes it unusable. Why?
Thomas- can you elaborate on what each's purpose is... I've been wondering about the diff... thanks! -r On Sep 21, 9:56 am, Thomas Broyer wrote: > On Sep 21, 5:33 pm, "marius.andreiana" > wrote: > > > > > > > Hi, > > > In an app I was using RootLayoutPanel as it seems to be the new gwt > > 2.0 way of using panels. > > > It generates 3 extra divs, which, besides too much markup, they also > > introduce some problems with onclick events being passed to various > > elements. I've found similar complaints from others, > > e.g.http://www.devcomments.com/RootPanel-vs-RootLayoutPanel-at197454.htm > > > Going back to RootPanel removes extra divs and issues. > > The only difference between the two in docs is: > > "This panel automatically calls RequiresResize.onResize() on itself > > when initially created, and whenever the window is resized." > > > So what's the actual purpose of RootLayoutPanel? Are the extra divs > > really necessary? > > RootLayoutPanel is a container that takes up all the visible area and > always resizes to cover the whole viewport. > Other than that, it's a LayoutPanel, so it wraps all its children > within a div to be able to accurately manage their position and size > in all supported browsers. And it creates an additional, hidden, div > (two in the case of IE6) as a way to measure EMs and EXs in pixels. > So, yes, those divs are necessary. > But RootLayoutPanel and RootPanel are not interchangeable, they have > distinct purposes. -- 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: Why is getOffsetWidth/getOffsetHeight returning 0 even after onLoad is called for LayoutPanel children?
On Sep 21, 5:21 pm, Gal Dolber wrote: > try with onAttach() The method onLoad is called by onAttach so overiding onAttach won't change anything not to mention the fact that the doc for onAttach says "It is strongly recommended that you override {...@link #onLoad()} or {...@link #doAttachChildren()} instead of this method". On Sep 21, 5:35 pm, Thomas Broyer wrote: > How about implementing RequiresResize and doing the job in onResize()? That doesn't help because onResize isn't called automatically when the widgets are initially constructed, only when a browser initiates a resize event. However I have tried exactly what you suggest by putting the code I am having trouble with in a RequiresResize.onResize method and am calling that method in onLoad (so the sizing happens on both resize and when the widget is initially created). The method getOffsetWidth still returns 0. I also tried manually calling onResize on the RootLayoutPanel at the end of my onModuleLoad with the same result. Only a DeferredCommand seems to result in getOffsetWidth not returning 0. -- 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: Why is getOffsetWidth/getOffsetHeight returning 0 even after onLoad is called for LayoutPanel children?
On 21 sep, 23:13, Damon Lundin wrote: > I am attempting to use the new GWT LayoutPanels and unfortunately they > are causing me some grief. We are using the layout panels > (RootLayoutPanel, DockLayoutPanel, LayoutPanel, etc) to arrange the > overall layout of the panel. Then, the children of one of these > panels needs to know how big it is so that it can size one of its > children properly to cause a scroll bar to appear. Generally you do > this by calling getOffsetWidth and getOffsetHeight. I know that these > methods will return 0 if the widget is not attached but I am finding > that in even putting the calls in onLoad, these methods are still > returning 0. Clearly I don't understand when GWT and/or the browser > figures out what the sizes of these layout panels are. > > Below is a simplification of my problem. The widget added to the > RootLayoutPanel cannot determine its size when it is attached to the > DOM. I made sure the widget had something in it and to prove that it > ends up with a size, I added the call to the deferred command to > display the size again. > > If you simply replace "RootLayoutPanel" with "RootPanel" then it will > output a size. What am I doing wrong here? How about implementing RequiresResize and doing the job in onResize()? -- 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: Hyperlink like GMail
You will have to set the hover of the element, like this for example: a:hover { background:#ffc; text-decoration: underline overline; color: #FF; } 2010/9/21 chinese > Hi everyone, > can someone help me? > I want to create hyperlinks like gmail in my application. I mean, I > want the hyperlinks appear like "inbox", "buzz" (etc..) hyperlinks in > gmail. How I must change the style of hyperlinks? > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why is getOffsetWidth/getOffsetHeight returning 0 even after onLoad is called for LayoutPanel children?
try with onAttach() On Tue, Sep 21, 2010 at 5:13 PM, Damon Lundin wrote: > I am attempting to use the new GWT LayoutPanels and unfortunately they > are causing me some grief. We are using the layout panels > (RootLayoutPanel, DockLayoutPanel, LayoutPanel, etc) to arrange the > overall layout of the panel. Then, the children of one of these > panels needs to know how big it is so that it can size one of its > children properly to cause a scroll bar to appear. Generally you do > this by calling getOffsetWidth and getOffsetHeight. I know that these > methods will return 0 if the widget is not attached but I am finding > that in even putting the calls in onLoad, these methods are still > returning 0. Clearly I don't understand when GWT and/or the browser > figures out what the sizes of these layout panels are. > > Below is a simplification of my problem. The widget added to the > RootLayoutPanel cannot determine its size when it is attached to the > DOM. I made sure the widget had something in it and to prove that it > ends up with a size, I added the call to the deferred command to > display the size again. > > If you simply replace "RootLayoutPanel" with "RootPanel" then it will > output a size. What am I doing wrong here? > > final FlowPanel testWidget = new FlowPanel() { >protected void onLoad() { >int width = getOffsetWidth(); >System.out.println("width=" + width); // Outputs "0" >} > }; > testWidget.add(new Label("Something")); > > RootLayoutPanel.get().add(testWidget); > > DeferredCommand.add(new Command() { >public void execute() { >int width = testWidget.getElement().getOffsetWidth(); >System.out.println("width=" + width); // Outputs a non-zero > value >} > }); > > -- > 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. > > -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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.
Why is getOffsetWidth/getOffsetHeight returning 0 even after onLoad is called for LayoutPanel children?
I am attempting to use the new GWT LayoutPanels and unfortunately they are causing me some grief. We are using the layout panels (RootLayoutPanel, DockLayoutPanel, LayoutPanel, etc) to arrange the overall layout of the panel. Then, the children of one of these panels needs to know how big it is so that it can size one of its children properly to cause a scroll bar to appear. Generally you do this by calling getOffsetWidth and getOffsetHeight. I know that these methods will return 0 if the widget is not attached but I am finding that in even putting the calls in onLoad, these methods are still returning 0. Clearly I don't understand when GWT and/or the browser figures out what the sizes of these layout panels are. Below is a simplification of my problem. The widget added to the RootLayoutPanel cannot determine its size when it is attached to the DOM. I made sure the widget had something in it and to prove that it ends up with a size, I added the call to the deferred command to display the size again. If you simply replace "RootLayoutPanel" with "RootPanel" then it will output a size. What am I doing wrong here? final FlowPanel testWidget = new FlowPanel() { protected void onLoad() { int width = getOffsetWidth(); System.out.println("width=" + width); // Outputs "0" } }; testWidget.add(new Label("Something")); RootLayoutPanel.get().add(testWidget); DeferredCommand.add(new Command() { public void execute() { int width = testWidget.getElement().getOffsetWidth(); System.out.println("width=" + width); // Outputs a non-zero value } }); -- 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: How to tell when a text box loses focus
Brett, You are looking for the BlurHandler / onBlur. HTH, Chad On Sep 21, 3:23 pm, Brett Thomas wrote: > Hey, basic question here that I can't find the answer to. Is there any way > to do something to a TextBox when it loses focus in GWT 2.0? > > The FocusListener interface, which has an onLostFocus method, was deprecated > in favor of FocusHandler, which does not. Can't find anything comparable. > > Use case: I want to submit a field to the server without a submit button. I > don't want to do it after every character change, though, so can't just use > addValueChangeHandler(). > > Thanks, > Brett -- 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: Show case example of the new Data Presentation Widget?
There are some samples of just the data presentation widgets without the MVP framework stuff in the showcase on trunk. This will be a lot easier to understand if you only care about the widgets. On Sep 21, 4:16 pm, Travis Camechis wrote: > yep the expenses app uses them along with the new MVP framework. > > > > On Tue, Sep 21, 2010 at 4:12 PM, Gal Dolber wrote: > > I am almost sure there are some examples in the showcase on trunk > > > On Tue, Sep 21, 2010 at 3:15 PM, Travis Camechis wrote: > > >> You can look at the expenses app. Right now it you have to look at the > >> SVN repository in order to look at it. Its under trunk/samples. I believe > >> it will eventually in up in the showcase examples. > > >> On Tue, Sep 21, 2010 at 2:58 PM, skippy wrote: > > >>> I would like to see a working example of the GWT 2.1 Data Presentation > >>> Widget. > > >>> Is there a scrollbar that does not include the hearer? > > >>> Does it/can it work liks the FlexTables today? > > >>> I have asked several time on this topic, but nobody seems to know. > >>> Is this not ready for the enterprise? > > >>> -- > >>> 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 >>> cr...@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 >> cr...@googlegroups.com> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > Guit: Elegant, beautiful, modular and *production ready* gwt applications. > > >http://code.google.com/p/guit/ > > > -- > > 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 > cr...@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.
How to tell when a text box loses focus
Hey, basic question here that I can't find the answer to. Is there any way to do something to a TextBox when it loses focus in GWT 2.0? The FocusListener interface, which has an onLostFocus method, was deprecated in favor of FocusHandler, which does not. Can't find anything comparable. Use case: I want to submit a field to the server without a submit button. I don't want to do it after every character change, though, so can't just use addValueChangeHandler(). Thanks, Brett -- 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: Show case example of the new Data Presentation Widget?
yep the expenses app uses them along with the new MVP framework. On Tue, Sep 21, 2010 at 4:12 PM, Gal Dolber wrote: > I am almost sure there are some examples in the showcase on trunk > > On Tue, Sep 21, 2010 at 3:15 PM, Travis Camechis wrote: > >> You can look at the expenses app. Right now it you have to look at the >> SVN repository in order to look at it. Its under trunk/samples. I believe >> it will eventually in up in the showcase examples. >> >> >> On Tue, Sep 21, 2010 at 2:58 PM, skippy wrote: >> >>> I would like to see a working example of the GWT 2.1 Data Presentation >>> Widget. >>> >>> Is there a scrollbar that does not include the hearer? >>> >>> Does it/can it work liks the FlexTables today? >>> >>> I have asked several time on this topic, but nobody seems to know. >>> Is this not ready for the enterprise? >>> >>> -- >>> 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-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. >> > > > > -- > Guit: Elegant, beautiful, modular and *production ready* gwt applications. > > http://code.google.com/p/guit/ > > > > > -- > 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: Show case example of the new Data Presentation Widget?
I am almost sure there are some examples in the showcase on trunk On Tue, Sep 21, 2010 at 3:15 PM, Travis Camechis wrote: > You can look at the expenses app. Right now it you have to look at the SVN > repository in order to look at it. Its under trunk/samples. I believe it > will eventually in up in the showcase examples. > > > On Tue, Sep 21, 2010 at 2:58 PM, skippy wrote: > >> I would like to see a working example of the GWT 2.1 Data Presentation >> Widget. >> >> Is there a scrollbar that does not include the hearer? >> >> Does it/can it work liks the FlexTables today? >> >> I have asked several time on this topic, but nobody seems to know. >> Is this not ready for the enterprise? >> >> -- >> 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. > -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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.
root path for server side code
Hi Folks, I have some server side code which runs some perl scripts on the server and passes their output to the client over the RPC service. I run the scripts by calling the Runtime.getRuntime().exec("myscript.pl"); command. When I work with eclipse development mode, my scripts need to be in the war dir of the project. When I host the web application on jetty (or tomcat)the scripts need to be located in /usr/share/jetty and a similar place on tomcat. Is there a way to specify the root path for the server side code? Cheers Andrew -- 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: Embedding external html file in Frame object with linked CSS file
Are you trying to apply CSS to HTML that's within the Frame? If that's the case, you're answer is here: http://stackoverflow.com/questions/217776/how-to-apply-css-to-iframe -- Arthur Kalmenson On Wed, Sep 8, 2010 at 9:07 PM, amal wrote: > Hi, > > I want to be able to add various external HTML files for given actions > inside a frame, and want to be able to link an external CSS file that > is applied to all of these HTML files. However, whenever I link a CSS > file to these HTML files, the styling does not appear, and i have to > add the CSS to each HTML page within the ... tag inside > ..., which is cumbersome and ineffective. > > Does anyone know how to add an HTML page inside a Frame object, which > has a CSS file linked to it? I would appreciate the help. Thanks! > > Best, > amal > > -- > 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: Eclipse crashes after installing GWT Plugin
I've also had issues installing GPE with Eclipse 3.6, remove the .metadata folder in your workspace worked for me. -- Arthur Kalmenson On Wed, Sep 8, 2010 at 11:07 AM, Rajeev Dayal wrote: > Hi, > It looks like the root cause of the problem is the following exception: > Root exception: > java.lang.ClassFormatError: Illegal UTF8 string in constant pool in > class file org/eclipse/core/internal/registry/TableReader > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java: > 188) > at > ... > This sort of exception can happen when there was some sort of corruption > when unzipping the archive. If possible, can you try: > -re-downloading Eclipse 3.6 > -unzipping it into a new directory > -start up Eclipse 3.6 (with a fresh workspace), verify that there are no > errors in the Error Log > -install the Google Plugin for Eclipse; restart Eclipse > > > On Mon, Sep 6, 2010 at 12:52 PM, FLo_ wrote: >> >> Root exception: >> java.lang.ClassFormatError: Illegal UTF8 string in constant pool in >> class file org/eclipse/core/internal/registry/TableReader >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(Unknown Source) >> at >> >> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java: >> 188) >> at > > -- > 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: Show case example of the new Data Presentation Widget?
You can look at the expenses app. Right now it you have to look at the SVN repository in order to look at it. Its under trunk/samples. I believe it will eventually in up in the showcase examples. On Tue, Sep 21, 2010 at 2:58 PM, skippy wrote: > I would like to see a working example of the GWT 2.1 Data Presentation > Widget. > > Is there a scrollbar that does not include the hearer? > > Does it/can it work liks the FlexTables today? > > I have asked several time on this topic, but nobody seems to know. > Is this not ready for the enterprise? > > -- > 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: Widget libraries that work with uiBinder/GWT 2.0
GWT Mosaic On Sep 19, 5:57 am, RichardY wrote: > Do any exist? From what I know, SmartGWT and Ext-GWT are still > incompatible with uiBinder. It'd be good to know if any other > libraries are. -- 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.
Show case example of the new Data Presentation Widget?
I would like to see a working example of the GWT 2.1 Data Presentation Widget. Is there a scrollbar that does not include the hearer? Does it/can it work liks the FlexTables today? I have asked several time on this topic, but nobody seems to know. Is this not ready for the enterprise? -- 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: ScrolPanel Question
http://rcswebsolutions.wordpress.com/2007/01/02/scrolling-html-table-with-fixed-header/ On Sep 21, 12:07 pm, skippy wrote: > Well, thanks for the respond. However, I was not all that clear. > I have very picky users and here is the real scoop: > > I am using UIBinder and here is my ui.xml: > > > > > > > > > > As you can see, the heading is outside the scrollPanel list, This > allows for the user to scrol the data without loosing the heading > section. > > When the scrollbar is visible, the column headings do not match that > of the list. > > Any ideas? > > On Sep 17, 1:47 am, Santosh kumar wrote: > > > Hi skippy, > > > ScrollPanel, its automatically adjust the scroll bars. > > > ScrollPanel scrollPanel = new ScrollPanel(); > > scrollPanel.setSize("width", "height"); > > scrollPanel.clear(); > > RootPanel.get("div-id").clear(); > > RootPanel.get("div-id").add(scrollPanel); > > > On Sat, Sep 11, 2010 at 2:03 AM, skippy wrote: > > > I need to ack a scrolPanel if its vertical scrol bar is visible, If > > > so, I need to adjust the width of the table. > > > > 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. > > > -- > > Thanks & Regards > > > *S a n t o s h k u m a r . k*- Hide quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ScrolPanel Question
Well, thanks for the respond. However, I was not all that clear. I have very picky users and here is the real scoop: I am using UIBinder and here is my ui.xml: As you can see, the heading is outside the scrollPanel list, This allows for the user to scrol the data without loosing the heading section. When the scrollbar is visible, the column headings do not match that of the list. Any ideas? On Sep 17, 1:47 am, Santosh kumar wrote: > Hi skippy, > > ScrollPanel, its automatically adjust the scroll bars. > > ScrollPanel scrollPanel = new ScrollPanel(); > scrollPanel.setSize("width", "height"); > scrollPanel.clear(); > RootPanel.get("div-id").clear(); > RootPanel.get("div-id").add(scrollPanel); > > > > > > On Sat, Sep 11, 2010 at 2:03 AM, skippy wrote: > > I need to ack a scrolPanel if its vertical scrol bar is visible, If > > so, I need to adjust the width of the table. > > > 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. > > -- > Thanks & Regards > > *S a n t o s h k u m a r . k*- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do i get the row index and column index in each cell on mouse over event
Cell cell = view.getCellForEvent(event); int row = cell.getRowIndex(); int col = cell.getCellIndex(); OR private int getRowForEvent(MouseEvent event) { Element td = getEventTargetCell(Event.as(event.getNativeEvent())); if (td == null) { return -1; } Element tr = DOM.getParent(td); Element tbody = DOM.getParent(tr); int row = DOM.getChildIndex(tbody, tr); return row; } On Sep 21, 4:24 am, Ivan wrote: > Hi all, > > I've searched much document about how to get the row index and > column index on mouse over event, but i'still have no idea about that. > Can you give me some example code tell me how to do that ? > > I can get element like below step, but how do i to get row index > and column index ? > > public void onBrowserEvent(Event event) { > Element td = getEventTargetCell(event); > } > > 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-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: RootLayoutPanel adds extra divs which makes it unusable. Why?
On Sep 21, 5:33 pm, "marius.andreiana" wrote: > Hi, > > In an app I was using RootLayoutPanel as it seems to be the new gwt > 2.0 way of using panels. > > It generates 3 extra divs, which, besides too much markup, they also > introduce some problems with onclick events being passed to various > elements. I've found similar complaints from others, > e.g.http://www.devcomments.com/RootPanel-vs-RootLayoutPanel-at197454.htm > > Going back to RootPanel removes extra divs and issues. > The only difference between the two in docs is: > "This panel automatically calls RequiresResize.onResize() on itself > when initially created, and whenever the window is resized." > > So what's the actual purpose of RootLayoutPanel? Are the extra divs > really necessary? RootLayoutPanel is a container that takes up all the visible area and always resizes to cover the whole viewport. Other than that, it's a LayoutPanel, so it wraps all its children within a div to be able to accurately manage their position and size in all supported browsers. And it creates an additional, hidden, div (two in the case of IE6) as a way to measure EMs and EXs in pixels. So, yes, those divs are necessary. But RootLayoutPanel and RootPanel are not interchangeable, they have distinct purposes. -- 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.
RootLayoutPanel adds extra divs which makes it unusable. Why?
Hi, In an app I was using RootLayoutPanel as it seems to be the new gwt 2.0 way of using panels. It generates 3 extra divs, which, besides too much markup, they also introduce some problems with onclick events being passed to various elements. I've found similar complaints from others, e.g. http://www.devcomments.com/RootPanel-vs-RootLayoutPanel-at197454.htm Going back to RootPanel removes extra divs and issues. The only difference between the two in docs is: "This panel automatically calls RequiresResize.onResize() on itself when initially created, and whenever the window is resized." So what's the actual purpose of RootLayoutPanel? Are the extra divs really necessary? 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: Form validation libraries?
i think it will be in gwt 2.1 On Sep 19, 8:57 am, RichardY wrote: > I'm looking to develop an app that involves the validation of user- > submitted forms, similar to Formstack or other online form builders. > I was wondering if any of the widget libraries supported such a > feature, and if they are compatible with GWT 2.0. I am especially > curious to know if, to this date, are there any external GWT libraries > compatible with uiBinder at all. -- 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 encoding problem
On 21 September 2010 07:26, Thomas Van Driessche wrote: > Hi, > > I have a problem that my values out of my properties files are not > well displayed on the page in utf8. http://download.oracle.com/javase/6/docs/api/java/util/Properties.html (note the text about InputStream using ISO 8859-1). That *might* be it. > This is already done: > > > And the files in eclipse are saved using UTF-8. > > I tried to watch the files in the war file (build using maven), but i > can't seem to find them back there? unzip -l xyz.war will tell you what's inside the WAR. > Because when i build i get the following warning: > > [WARNING] Using platform encoding (Cp1252 actually) to copy filtered > resources, > i.e. build is platform dependent! http://maven.apache.org/general.html#encoding-warning But this is just a warning, it doesn't stop Maven from copying the resources. -- 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 File Download
AFAIK, you can't invoke browser download dialog with response from ajax request. One way to invoke browser download dialog is setting URL of an iframe. You can do following to implement file download with GWT. 1) Write a download servlet which writes byte[] to servlet output stream. And map it to say /download.do 2) Create an hidden IFrame 2) Construct URL on GWT Client side which points to /download.do with required parameters. 3) On click of GWT Button, set URL of the hidden IFrame with constructed URL. This should invoke download dialog of browser. Regards On Sep 21, 1:52 pm, meetmrdeepak wrote: > Hi, > > I have to integrate file download into my GWT application. > > UseCase - User clicks on Export Button (gwt button), call will go to > RPC servlet, RPC servlet will fetch data from database and convert the > records in List and this List will be passed to export Service to > get Byte[]. > > NOTE: I have a EXPORT service (spring service as separate-module/ > separate-jar), which accepts List as column headers, and > List as records. This service generates excel, pdf, csv based on > some parameter and rerturns byte[] along with other file information > (file type, size etc). > > Problem 1: Even if i have byte[] in my RPC servlet, how can i trigger > download file dialogue on client browser. since RPC servlet cannot > write outputstream as normal servlet does. > Problem 2: I cannot use RequestBuilder as it doesnt allows me to pass > Object to another servlet. it can only pass string in form of GET > request. > Problem 3: I dont want to write servlets for each file download. > Rather I would prefer to write single servlet, which will fetch byte[] > from request attribute, and will write that byte[] to output stream. > > Please guide me in this direction. -- 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.
Hyperlink like GMail
Hi everyone, can someone help me? I want to create hyperlinks like gmail in my application. I mean, I want the hyperlinks appear like "inbox", "buzz" (etc..) hyperlinks in gmail. How I must change the style of hyperlinks? 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 save and modify in database(mysql)
I see lot of code but what is your trouble / question? On 20 sep, 07:34, Buica Tatiana wrote: > So i had to do the following assignment in GWT: > > 1.Implement a selection/de-selection component as described below: > The selected item in the first list goes into the second list and is > removed from the first list when the >> button is pressed. The > selected item in the second list goes into the first list and is > removed from the second list when the << button is pressed. The latest > selected item text is also displayed into the bottom text control with > the label “Selection”. > There also exists two checkboxes allowing the user to SAVE the content > of the second list to a file or a database. > > After i searched a lot over the internet i came out with this program: > > This is the client side, meaning that this is what the user can see in > the Web Browser. I made the whole GUI in the 'onModuleLoad()' section, > including the action-listeners i needed for my application. > I also had to communicate with the server side so i can connect to a > database. > 'CInterfaceAsync inter = GWT.create(CInterface.class);' with this line > i create a connection with the server-side trough an interface that > should be created on the client side too. using inter.function allows > me to access the methods from the server side. > > package gwt.hom.client; > > import java.util.ArrayList; > import java.util.Collections; > import java.util.Iterator; > > import com.google.gwt.core.client.EntryPoint; > import com.google.gwt.core.client.GWT; > import com.google.gwt.event.dom.client.ChangeEvent; > import com.google.gwt.event.dom.client.ChangeHandler; > import com.google.gwt.event.dom.client.ClickEvent; > import com.google.gwt.event.dom.client.ClickHandler; > import com.google.gwt.user.client.Window; > import com.google.gwt.user.client.rpc.AsyncCallback; > import com.google.gwt.user.client.ui.*; > > public class WebApp implements EntryPoint { > > private static final long serialVersionUID = 1L; > > CInterfaceAsync inter = GWT.create(CInterface.class); > > public static ListBox list1; > public ListBox list2; > public Button left, right, save; > public Label label, file, db; > ArrayList list1Elems, list2Elems; > public CheckBox toFile, toDB; > public TextArea selected; > public Panel panel, panel2, panel3; > > @Override > public void onModuleLoad() { > > list1 = new ListBox(); > list1.setVisibleItemCount(4); > list1.addChangeHandler(new ChangeHandler() { > > @Override > public void onChange(ChangeEvent event) { > int selectedIntdex = list1.getSelectedIndex(); > String selectedString = > list1.getValue(selectedIntdex); > selected.setText(selectedString); > } > > }); > inter.getInfo1(new AsyncCallback>() { > > @Override > public void onSuccess(ArrayList result) { > Iterator it = result.iterator(); > while (it.hasNext()) > list1.addItem(it.next().toString()); > } > > @Override > public void onFailure(Throwable caught) { > Window.alert("Error loading the Database! "); > } > }); > > list2 = new ListBox(); > list2.setVisibleItemCount(4); > list2.addChangeHandler(new ChangeHandler() { > > @Override > public void onChange(ChangeEvent event) { > int selectedIntdex = list2.getSelectedIndex(); > String selectedString = > list2.getValue(selectedIntdex); > selected.setText(selectedString); > } > > }); > inter.getInfo2(new AsyncCallback>() { > > @Override > public void onSuccess(ArrayList result) { > Iterator it = result.iterator(); > while (it.hasNext()) > list2.addItem(it.next().toString()); > } > > @Override > public void onFailure(Throwable caught) { > Window.alert("Error loading the Database! "); > } > }); > > left = new Button(" << "); > left.addClickHandler(new ClickHandler() { > > public void onClick(ClickEv
GWT encoding problem
Hi, I have a problem that my values out of my properties files are not well displayed on the page in utf8. This is already done: And the files in eclipse are saved using UTF-8. I tried to watch the files in the war file (build using maven), but i can't seem to find them back there? Because when i build i get the following warning: [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! Can this be a cause? kind regards -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT encoding problem
Hi, I have a problem that my values out of my properties files are not well displayed on the page in utf8. This is already done: And the files in eclipse are saved using UTF-8. I tried to watch the files in the war file (build using maven), but i can't seem to find them back there? Because when i build i get the following warning: [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! Can this be a cause? kind regards -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: how to install GWT-2.1M3 from zip to eclipse
Hi Nauman, you have to configure Eclipse, that it knows, where the jars are, of the new 2.1M3 library. Just do it like this: In Eclipse go to Properties -> Google -> Web Toolkit Than on the right side, click the "link" configure SDK´s... In this menu you can add a new GWT "version" ... in the dialog box, just link the directory of you 3.1M3, than you can use it, and the GWT-Designer should work. Good luck. Greets Alex On 19 Sep., 01:45, Nauman Badar wrote: > Hi > > I am new to GWT. > > When I try to switch to design view after creating a new popup panel, > eclipse gives the following error: > > You are attempting to use UiBinder, however your GWT version is old and does > not support the GWT Designer hooks required to provide WYSIWYG editing. You > need at least GWT 2.1M3 for visual editing, and GWT 2.1M4 to also support > the ui:field attribute and the @UiField annotation. > > I have downloaded zip archive of gwt-2.1m3 and uncompressed it in dropins > folder of eclipse, but the plugin is still not recognized by eclipse. > > Please help. > > *Best Regards > Nauman Badar* -- 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: com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1& 40
What's your application ID? That URL doesn't look like it's a valid ID. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Tue, Sep 21, 2010 at 7:46 AM, Jose Manuel wrote: > Hi, I am getting this error when I try to deploy a application to > AppEngine. The application works just fine in hosted mode, within > Eclipse. This is my second deploy > > Here's the complete log: > > com.google.appengine.tools.admin.AdminException: Unable to update app: > Error posting to URL: > > https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1&; > 400 Bad Request > > Client Error (400) > The request is invalid for an unspecified reason. > > >at > com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: > 62) > >at > > com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: > 271) > >at > > com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: > 145) > >at > > org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: > 38) > >at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > > Caused by: java.io.IOException: Error posting to URL: > > https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1&; > 400 Bad Request > > Client Error (400) > The request is invalid for an unspecified reason. > > >at > > com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: > 149) > >at > > com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: > 82) > >at > > com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: > 582) > >at > > com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: > 400) > >at > > com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: > 112) > >at > com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: > 56) > >... 4 more > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
antivirus blocking requestbuilder
Hello everyone! I'm having trouble with antivirus , any that has enable internet monitor (http on port 80). Weird is that if I use firefox with firebug enable my RequestBuilder works fine.. then all browser can recive the response from server, till I restart machine and again request is not sent. how can I avoid this? thanks in advance for your help! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How do i get the row index and column index in each cell on mouse over event
Hi all, I've searched much document about how to get the row index and column index on mouse over event, but i'still have no idea about that. Can you give me some example code tell me how to do that ? I can get element like below step, but how do i to get row index and column index ? public void onBrowserEvent(Event event) { Element td = getEventTargetCell(event); } 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Deployment
Hello Team, I am in need to deploy GWT pluig for IE but my environment is FW enabled and Auto deployment using the URL is blocked. Is there any setup files available to deploy it remotely or manually other than the below link. http://gwt.google.com/samples/MissingPlugin/MissingPlugin.html Thanks, Manikandan -- 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.
Chat with GWT
Hello, im new in programming with GWT and im trying to make a Chat application. I have a class Receiver, responsible to get the messages from the server and show them in a TextArea. It's something like this: class ChatEntryPoint implements EntryPoint{ Receiver r; final TextArea ta; public void onModuleLoad() { r = new Receiver(id){ @Override public void getMessage(String msg) { ta.setText(msg); } }; } } public class Receiver implements java.io.Serializable{ private static final long serialVersionUID = -2358499438887497539L; private String id; public Receiver(){ this.id = ""; } public Receiver(String id){ this.id = id; } public void getMessage(String msg) { } } Even assigning the java.io.Serializable, i get the serialization error message, when i call the getMessage method from my Servlet. What is wrong with my Receiver? Ps: Please, forgive my bad english. -- 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.
Problem with GWT Developer Plugin
Hi, I'm trying to develop a simple application using STS 2.5.0 (based on Eclipse 3.6) x86_64 and the Google Eclipse plugin. I have a problem to show my application in the browser. I'm using Firefox 3.6.7 x86_64 (Fedora 13) and I have already installed the GWT Developer plugin but I got always the page with the request to install the plugin (in the add-ons window there is the plugin and it is active). What could be the problem? LuKe -- 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.
List at GWT-RPC
Hello everybody, my architecture uses the Entities with mappinginformations for the server and the client. Best practise at the Servermodel means using List, Set and other Interfaces in the Model. This causes the GWT-RPC to use many unneccesary Classes here. This causes some warnings and many unneccesary client code, because there are used some gwt-deprecated classes inherit from List. For List for example, i always send ArrayLists from and to the Client. Is there a way to annotate the Attribute to other ways to say what classes can be send for this attribute, to prevent the GWT-RPC from scanning for possible classes? Thanks Stefan -- 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.
com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1& 400 Ba
Hi, I am getting this error when I try to deploy a application to AppEngine. The application works just fine in hosted mode, within Eclipse. This is my second deploy Here's the complete log: com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1&; 400 Bad Request Client Error (400) The request is invalid for an unspecified reason. at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 145) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=Mini-Aplicaciones+Empresariales&version=1&; 400 Bad Request Client Error (400) The request is invalid for an unspecified reason. at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 149) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 582) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 400) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 112) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) ... 4 more 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.
GPE not refreshing xxxx.gwt.rpc in dev mode on linux / tomcat
Hello, I have a problem since a while and I am not sure about the source of the problem. I will use the sample application to explain it here (I will call my project gwt_tmp): 1 - I create a default gwt sample project with GPE. 2 - I start a debug session with the default Jetty Dev Mode. A - I run application in my browser in dev mode, it loads corretly. B - In the sample application, I enter an user name and click the button that will execute an RPC call to the server C - GPE (I suppose) detects that a call is done to an RPC service, and generates the .gwt.rpc policy file. D - I receive a response, all is fine. Perfect! Now, I stop the server and clean the generated directory under war/gwt_tmp to be sure to start from a clean environment. I want to execute the same process but with tomcat instead of Jetty to reflect my real production environment: I update some configurations files to add a web tool nature to my project : 1 - I add a new nature to my .project under eclipse : org.eclipse.wst.common.project.facet.core.nature 2 - I creates associated settings files : * /gwt_tmp/.settings/org.eclipse.wst.common.component * /gwt_tmp/.settings/org.eclipse.wst.common.project.facet.core.xml 3 - I update my gwt application launcher to not run in server mode (since tomcat will be the server). 4 - I start the dev mode of the application, and I start tomcat. A - I run application in my browser in dev mode, it loads corretly (but on port 8080 for tomcat instead of for jetty) B - In the sample application, I enter an user name and click the button that will execute an RPC call to the server C - GPE (I suppose) detects that a call is done to an RPC service, and generates the .gwt.rpc policy file. D - Here is the problem ! Tomcat does not seams to realize that a new file has been generated on disk. the log says : INFO: greetServlet: ERROR: The serialization policy file '/gwt_tmp/1CC4B1A5D8B73AD7482A23834A893A1B.gwt.rpc' was not found; did you forget to include it in this deployment? GRAVE: greetServlet: WARNING: Failed to get the SerializationPolicy '1CC4B1A5D8B73AD7482A23834A893A1B' for module ' http://127.0.0.1:8080/gwt_tmp/gwt_tmp/'; a legacy, 1.3.3 compatible, serialization policy will be used. You may experience SerializationExceptions as a result. If i refresh my workspace and I restart tomcat, it reload correctly the previously generated .rpc file and I no longer get this error. I tried to activate the auto refresh of worspace file in my eclipse configuration, but it did not resolved this. I know that the worspace auto refresh is not implemented in the same way between windows and linux ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=108697) Since gpe sources are not available, I wanted to be sure that GPE developers have requested a workspace localRefresh on XXX.gwt.rpc generated file ( http://wiki.eclipse.org/FAQ_When_should_I_use_refreshLocal%3F) I might be completly wrong about this, but I have no other idea. Maybe someone has already met this problem and found a solution ? Thanks, Nicolas ANTONIAZZI -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT File Download
Hi, I have to integrate file download into my GWT application. UseCase - User clicks on Export Button (gwt button), call will go to RPC servlet, RPC servlet will fetch data from database and convert the records in List and this List will be passed to export Service to get Byte[]. NOTE: I have a EXPORT service (spring service as separate-module/ separate-jar), which accepts List as column headers, and List as records. This service generates excel, pdf, csv based on some parameter and rerturns byte[] along with other file information (file type, size etc). Problem 1: Even if i have byte[] in my RPC servlet, how can i trigger download file dialogue on client browser. since RPC servlet cannot write outputstream as normal servlet does. Problem 2: I cannot use RequestBuilder as it doesnt allows me to pass Object to another servlet. it can only pass string in form of GET request. Problem 3: I dont want to write servlets for each file download. Rather I would prefer to write single servlet, which will fetch byte[] from request attribute, and will write that byte[] to output stream. Please guide me in this direction. -- 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: Removing the CellTable header
That is what I was looking for. Thank You very much Gal. On Sep 21, 2:58 pm, Gal Dolber wrote: > table.addColumn(Column column, String header); > table.addColumn(Column column); -> *use this one* > > On Tue, Sep 21, 2010 at 4:44 AM, monkeyboy > wrote:> I want to show a CellTable without a header. What is the easiest way > > to accomplish this? > > > -- > > 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. > > > > -- > Guit: Elegant, beautiful, modular and *production ready* gwt applications. > > http://code.google.com/p/guit/ -- 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: Evaluating string: "(A+sin(B))" where A=1, B=2
I found the solution: http://sourceforge.net/projects/smplmathparse/files/ it is simple math parser and it is free. On Sep 21, 10:22 am, Janko wrote: > However,.. both are commercial... are there any non-commercial > packages?? > > On Sep 21, 2:40 am, lineman78 wrote: > > > > > > > > > There are plenty of Java implementations that do the same thing if you > > would prefer sticking with Java. Popular Java projects include > > "Jep"(http://sourceforge.net/projects/jep/) and > > "JFormula"(http://www.japisoft.com/formula/). > > > On Sep 20, 4:04 pm, Janko wrote: > > > > The best way I found is using something like it is described > > > here:http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html > > > > Where the server would host a mathparser.py... > > > > I would like to evaluate the string at the server side, so the server > > > implementation would call the py script... > > > > what do you think about this solution? > > > > thanks > > > > On Sep 20, 10:04 pm, Janko wrote: > > > > > Hello everybody! > > > > > What is the simplest way to evaluate an string expression with know > > > > parameters on the server side??? > > > > > Please help! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT designer & mVp
On Sep 19, 5:08 pm, Eric Clayberg wrote: > > 2. Work with UX & UI designers folks to understand how do they build > > now mocks & wireframes for their companies apps. How do they use > > Photoshop, Fireworks, Dreamweaver? What tools to they use for > > wireframes and mocks and how? How do engineers use materials provided > > by UX? (we are slicing Photoshop comps, we are rebuilding manually > > some mocks or wireframes from scratch as if they were printed) To find > > these guys, try going to web design shops or larger enterprise > > companies and understand how are they working now, and not only to GWT > > users. > > We are very interested in learning more about this. I followed up privately about this. > Now we just need to find a way to get there that will also keep our > traditional GWT developers happy. I suspect that making the tool much > more appealing to designers will actually have a similar effect on GWT > developers, so I don't think that these two paths are divergent or at > cross purposes. Right. Thanks Eric -- 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: Problem with ClientBundle DataResource -> cryptic url
Thanks, the direct link technique worked out great. The DataResource works too but only in my production mode, not sure what's wrong with my development browser (blank page...) I like the direct link technique better though because with the DataResource technique I get some user unfriendly names such as - "You have choosen to open ùmNFmGQFG13+9qgq+fhqfh5qfhq+6fh5q +fhw65hqhq" - "save file as dfFDgKQSF42.pdf.part" On Sep 21, 12:29 pm, Gal Dolber wrote: > You are doing nothing wrong, DataResource encode your files as base64 > in every browser but IE. > If you want a direct link to the pdf just put it into your war directory. > > > > On Tue, Sep 21, 2010 at 5:34 AM, TL wrote: > > Hello! > > I have a pdf file that I want users to be able to download if they > > click on an hyperlink so I have tried to implement clientBundle > > following the example on the GWT website : > >http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html > > > public interface MyResources extends ClientBundle { > > public static final MyResources INSTANCE = > > GWT.create(MyResources.class); > > > �...@source("manual.pdf") > > public DataResource ownersManual(); > > } > > > [somewhere else in my code] > > @UiHandler("tutoPdf") > > void onTutoPdfClicked(ClickEvent event) { > > Window.open(MyResources.INSTANCE.ownersManual().getUrl(), "tutorial", > > ""); > > } > > > Here is the string returned by > > MyResources.INSTANCE.ownersManual().getUrl() : > > > data:application/ > > pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nH1Ru2oDMRDs9RVbB6TM6vQEIYhjX5HOIEhxpMsDUhjsJr8fScThcsRCsNrVMjuzIyimL3EmkERNHesafWzx8kbPd3TqzXYuH2JXhHUqkGeoicor3c9MrKm8LwmcXUjQWfqEKbsEk3WChYNHqHcvY5ahdRgJDz3ftedH7DMnHPJLeRKHIo7/ > > sToXVNyyzvmX1GRZWffjGdbW1dYzEgMzI5fP2yDD13X1DwhcSUcQ7ZX9A1maK1I3n7oDQ5U8KX8LPQLaGDcWJeaRThvcxo > > +lG1I1sh5TGXPVuHKyfjUzY0V6pG/ > > QGoQnCmVuZHN0cmVhbQplbmRvYmoKCjMgMCBvYmoKMjMyCmVuZG9iagoKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aDEgMTEwMzI > > [I spare you about 100 lines of the same cryptic chatter... ;-] > > +4zuvDP8dp9Lto9ryEeaUfX76O37iOxev48DUcuobnPl74mPz5aqnrmauXrpLOK8NXnrnCVV7B5itYh5YsS6Gl8NLM0rklrcH8EU5HH2Lrv16uc70feK/ > > 3D4F3e9F7uCH03tx7ifc4WsgNvKczBt/DXO > > +7nMNlWRQXKxdnFucW31y8vHh1UTf384Wfk//6os9lftH1InFd6Lxw+AIX/ > > iE2/9D1QxI6Ez5DFs5i81nXWd9Z7vuPVrgebct3PfJwsevyw1cfZl8N1TycYQ0O/ > > yd8+Hunvkdmvjv33YXvcnPHFo6RZw5cOkBioVLX9JTXNdUmu4RATm9agOvVcivsC7KWnZ6SYHhYcQ2D0OBApWugrdSVFcjs1cBgeRA0cy6uievkprlT3CUuTbctlO/ > > qgvty6GqImDtdnb5O9q1PpMMNitpn2ufauS3BUpfa > > > I am using GWT 2.0.2, I have some .png images that works fine using > > ClientBundle (I don't use the method .getUrl() on them though, no > > need) but anyone knows what I am doing wrong with DataResource ? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Guit: Elegant, beautiful, modular and *production ready* gwt applications. > > http://code.google.com/p/guit/ -- 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: [] or ArrayList
On Sep 21, 1:08 pm, Stefan Bachert wrote: > Hi, > > What are the pros and cons for arrays using either > > a) [] > b) ArrayList > > in GWT, especially in RPC? Arrays are (almost?) directly mapped to JavaScript arrays in "prod mode", while ArrayList wraps a JavaScript array, so arrays are a bit lighter and faster (ArrayList methods are almost all inlined, but you still have to pay for the creation of the wrapper, and of the Iterator instances!) I suspect this is negligible though, and you should really choose depending on your needs, as those are different APIs for different purposes. -- 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: Removing the CellTable header
table.addColumn(Column column, String header); table.addColumn(Column column); -> *use this one* On Tue, Sep 21, 2010 at 4:44 AM, monkeyboy wrote: > I want to show a CellTable without a header. What is the easiest way > to accomplish this? > > -- > 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. > > -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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.
[] or ArrayList
Hi, What are the pros and cons for arrays using either a) [] b) ArrayList in GWT, especially in RPC? Stefan Bachert http://gwtworld.de -- 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: Problem with ClientBundle DataResource -> cryptic url
You are doing nothing wrong, DataResource encode your files as base64 in every browser but IE. If you want a direct link to the pdf just put it into your war directory. On Tue, Sep 21, 2010 at 5:34 AM, TL wrote: > Hello! > I have a pdf file that I want users to be able to download if they > click on an hyperlink so I have tried to implement clientBundle > following the example on the GWT website : > http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html > > public interface MyResources extends ClientBundle { > public static final MyResources INSTANCE = > GWT.create(MyResources.class); > > �...@source("manual.pdf") > public DataResource ownersManual(); > } > > > [somewhere else in my code] > @UiHandler("tutoPdf") > void onTutoPdfClicked(ClickEvent event) { > Window.open(MyResources.INSTANCE.ownersManual().getUrl(), "tutorial", > ""); > } > > > Here is the string returned by > MyResources.INSTANCE.ownersManual().getUrl() : > > data:application/ > pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nH1Ru2oDMRDs9RVbB6TM6vQEIYhjX5HOIEhxpMsDUhjsJr8fScThcsRCsNrVMjuzIyimL3EmkERNHesafWzx8kbPd3TqzXYuH2JXhHUqkGeoicor3c9MrKm8LwmcXUjQWfqEKbsEk3WChYNHqHcvY5ahdRgJDz3ftedH7DMnHPJLeRKHIo7/ > sToXVNyyzvmX1GRZWffjGdbW1dYzEgMzI5fP2yDD13X1DwhcSUcQ7ZX9A1maK1I3n7oDQ5U8KX8LPQLaGDcWJeaRThvcxo > +lG1I1sh5TGXPVuHKyfjUzY0V6pG/ > QGoQnCmVuZHN0cmVhbQplbmRvYmoKCjMgMCBvYmoKMjMyCmVuZG9iagoKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aDEgMTEwMzI > [I spare you about 100 lines of the same cryptic chatter... ;-] > +4zuvDP8dp9Lto9ryEeaUfX76O37iOxev48DUcuobnPl74mPz5aqnrmauXrpLOK8NXnrnCVV7B5itYh5YsS6Gl8NLM0rklrcH8EU5HH2Lrv16uc70feK/ > 3D4F3e9F7uCH03tx7ifc4WsgNvKczBt/DXO > +7nMNlWRQXKxdnFucW31y8vHh1UTf384Wfk//6os9lftH1InFd6Lxw+AIX/ > iE2/9D1QxI6Ez5DFs5i81nXWd9Z7vuPVrgebct3PfJwsevyw1cfZl8N1TycYQ0O/ > yd8+Hunvkdmvjv33YXvcnPHFo6RZw5cOkBioVLX9JTXNdUmu4RATm9agOvVcivsC7KWnZ6SYHhYcQ2D0OBApWugrdSVFcjs1cBgeRA0cy6uievkprlT3CUuTbctlO/ > qgvty6GqImDtdnb5O9q1PpMMNitpn2ufauS3BUpfa > > I am using GWT 2.0.2, I have some .png images that works fine using > ClientBundle (I don't use the method .getUrl() on them though, no > need) but anyone knows what I am doing wrong with DataResource ? > > -- > 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. > > -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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.
Problem with ClientBundle DataResource -> cryptic url
Hello! I have a pdf file that I want users to be able to download if they click on an hyperlink so I have tried to implement clientBundle following the example on the GWT website : http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html public interface MyResources extends ClientBundle { public static final MyResources INSTANCE = GWT.create(MyResources.class); @Source("manual.pdf") public DataResource ownersManual(); } [somewhere else in my code] @UiHandler("tutoPdf") void onTutoPdfClicked(ClickEvent event) { Window.open(MyResources.INSTANCE.ownersManual().getUrl(), "tutorial", ""); } Here is the string returned by MyResources.INSTANCE.ownersManual().getUrl() : data:application/ pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nH1Ru2oDMRDs9RVbB6TM6vQEIYhjX5HOIEhxpMsDUhjsJr8fScThcsRCsNrVMjuzIyimL3EmkERNHesafWzx8kbPd3TqzXYuH2JXhHUqkGeoicor3c9MrKm8LwmcXUjQWfqEKbsEk3WChYNHqHcvY5ahdRgJDz3ftedH7DMnHPJLeRKHIo7/ sToXVNyyzvmX1GRZWffjGdbW1dYzEgMzI5fP2yDD13X1DwhcSUcQ7ZX9A1maK1I3n7oDQ5U8KX8LPQLaGDcWJeaRThvcxo +lG1I1sh5TGXPVuHKyfjUzY0V6pG/ QGoQnCmVuZHN0cmVhbQplbmRvYmoKCjMgMCBvYmoKMjMyCmVuZG9iagoKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aDEgMTEwMzI [I spare you about 100 lines of the same cryptic chatter... ;-] +4zuvDP8dp9Lto9ryEeaUfX76O37iOxev48DUcuobnPl74mPz5aqnrmauXrpLOK8NXnrnCVV7B5itYh5YsS6Gl8NLM0rklrcH8EU5HH2Lrv16uc70feK/ 3D4F3e9F7uCH03tx7ifc4WsgNvKczBt/DXO +7nMNlWRQXKxdnFucW31y8vHh1UTf384Wfk//6os9lftH1InFd6Lxw+AIX/ iE2/9D1QxI6Ez5DFs5i81nXWd9Z7vuPVrgebct3PfJwsevyw1cfZl8N1TycYQ0O/ yd8+Hunvkdmvjv33YXvcnPHFo6RZw5cOkBioVLX9JTXNdUmu4RATm9agOvVcivsC7KWnZ6SYHhYcQ2D0OBApWugrdSVFcjs1cBgeRA0cy6uievkprlT3CUuTbctlO/ qgvty6GqImDtdnb5O9q1PpMMNitpn2ufauS3BUpfa I am using GWT 2.0.2, I have some .png images that works fine using ClientBundle (I don't use the method .getUrl() on them though, no need) but anyone knows what I am doing wrong with DataResource ? -- 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.
Support HTML5 form fields and attributes
Hi, Would this be an easy fix for GWT 2.1? http://code.google.com/p/google-web-toolkit/issues/detail?id=5295 Please add support for HTML5 form fields and attributes (placeholder, autofocus, required) as GWT widgets. http://diveintohtml5.org/forms.html dev.w3.org/html5/spec/ Just generate HTML5 markup, nothing else (e.g. don't fallback to GWT datepicker if browser doesn't have support). -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Removing the CellTable header
I want to show a CellTable without a header. What is the easiest way to accomplish this? -- 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: Evaluating string: "(A+sin(B))" where A=1, B=2
However,.. both are commercial... are there any non-commercial packages?? On Sep 21, 2:40 am, lineman78 wrote: > There are plenty of Java implementations that do the same thing if you > would prefer sticking with Java. Popular Java projects include > "Jep"(http://sourceforge.net/projects/jep/) and > "JFormula"(http://www.japisoft.com/formula/). > > On Sep 20, 4:04 pm, Janko wrote: > > > > > > > > > The best way I found is using something like it is described > > here:http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html > > > Where the server would host a mathparser.py... > > > I would like to evaluate the string at the server side, so the server > > implementation would call the py script... > > > what do you think about this solution? > > > thanks > > > On Sep 20, 10:04 pm, Janko wrote: > > > > Hello everybody! > > > > What is the simplest way to evaluate an string expression with know > > > parameters on the server side??? > > > > Please help! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Evaluating string: "(A+sin(B))" where A=1, B=2
Thank you! I was looking for java code like this. http://www.japisoft.com/formula/ looks simple enough and will do the job I need! thanks, js On Sep 21, 2:40 am, lineman78 wrote: > There are plenty of Java implementations that do the same thing if you > would prefer sticking with Java. Popular Java projects include > "Jep"(http://sourceforge.net/projects/jep/) and > "JFormula"(http://www.japisoft.com/formula/). > > On Sep 20, 4:04 pm, Janko wrote: > > > > > > > > > The best way I found is using something like it is described > > here:http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html > > > Where the server would host a mathparser.py... > > > I would like to evaluate the string at the server side, so the server > > implementation would call the py script... > > > what do you think about this solution? > > > thanks > > > On Sep 20, 10:04 pm, Janko wrote: > > > > Hello everybody! > > > > What is the simplest way to evaluate an string expression with know > > > parameters on the server side??? > > > > Please help! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.