Immutable object from the business layer
My current project has been struggling lately with the use of immutable objects and/or properties of objects from the business layer. I wonder how common this is and interested in any recommendations. The project is divided between our group, which makes the UI with GWT (and Ext GWT, aka GXT), and a remotely located group that develops the business layer. The business layer defines domain classes such as entities etc. that we generally refer to as DTOs (not the best name, I think, but that's another story). So, for example there is a DTO called OrderDTO which has a list of LineItemDTO. You get the idea. These DTOs are generally not GWT-serializable so the UI has to create parallel objects which are (GXT ModelData types we call MDOs), and translate between the DTOs and MDOs. The whole need to have translated objects is a pain, but that too is another story, so let me get to the point. The DTOs lately have been modified to have immutable properties. For example, the OrderDTO's ID and dateOrdered properties might be immutable. This seems like a good idea to the business layer developers but causes the UI headaches since it makes it harder to do the MDO-to-DTO translation. Still, that's not too bad since it tends to be a constructor call with arguments for immutable properties. But it gets worse, IMHO. The business layer now also wants to put properties in the DTOs that must still be in the DTO when sent back to the business layer. That is, the DTO must be held and sent back as the same instance. This creates a real problem because the UI must hold the DTO on the server and then be sure to use the same instance for updates (etc.) instead of simply making a new instance based on properties from the MDO. This kind of use of immutability is forcing us to bring server-side caching into the UI design, not for performance, but for storing DTOs. I'd much prefer to have state in the UI only be in the browser while keeping the server-side essentially stateless. But I'm not sure if I'm in the norm or if the business layer folks are. What to you think? Many thanks in advance, boz ps: I'm not against immutability. Generally I think it's a good thing. But is it right in this context? -- 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: Reading a local file.
edarroyo schrieb: Is it possible to read a file that resides on the user's computer? Isn't it possible to look for messages using a search engine to check if that question has been asked before? http://groups.google.com/group/google-web-toolkit/search?group=google-web-toolkitq=read+local+file should answer your question already. Regards, Lothar -- 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: ScrollPanel Problem
But i have find a solution :-) 2010/4/14 Patou patou.de.saint.ste...@gmail.com It's not possible to use a scroll Panel in Mobile navigator (Android and Iphone). You can just scroll on all the page (like a zoom tools) but not inside the page. Patrice On Apr 6, 3:03 pm, gadaleta.marco gadaleta.ma...@gmail.com wrote: Hi, I'm developing an application using gwt and gears and i test it on android. But if i use a ScrollPanel element, it doesn't run on android. How i can resolve this problem? Thx, Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Marco -- 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: Making a simple 3 column layout?
Why not use docklayoutpanel? I, for example, use following main layout: g:DockLayoutPanel unit=EM g:north size='2' // header /g:north g:west size='12' //left panel /g:west g:center // center panel /g:center g:east size='20' // right panel /g:east /g:DockLayoutPanel On Apr 15, 7:02 am, markww mar...@gmail.com wrote: Hi, I was hoping to use VerticalPanel and HorizontalPanel instances to make a simple 3 column page layout. Something like: VerticalPanel VerticalPanel // this is the header (width: 100%, height: 90px) /VerticalPanel HorizontalPanel VerticalPanel // this is column 1 (width: 30%, height: 100%) /VerticalPanel VerticalPanel // this is column 2 (width: 50%, height: 100%) /VerticalPanel VerticalPanel // this is column 3 (width: 20%, height: 100%) /VerticalPanel /HorizontalPanel /VerticalPanel but the layout looks quite strange. I have to figure out css for layouts, was hoping most of this could be handled by gwt though. Anyone have a simple 3 col layout they could share? 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.
Using DialogBox with UIBinder
Hi everybody, referencing to http://groups.google.com/group/google-web-toolkit/browse_thread/thread/28e24ea25dd8e3a2/3c6fcec9e65049d3?#3c6fcec9e65049d3 I'm encountering the same issue with the subclassing solution. I found out that it's based on the way the different parsers are used by the UiBinderGenerator. For subclasses of DialogBox the DialogBoxParser sets the initializer to new DialogBox() and later on the BeanParser scans the owner bean, finds the @UIFactory method and tries to set it as the initializer. Did anybody find a solution beside writing a wrapper around the DialogBox as suggested in solution 2? -- 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.
AsyncCalls
hi i am building a search text Field and i do an AsyncCallBack on valueHasChanged event in the text field... so if i wrote 3 characters, i will send three calls to the server but the valid one is the last one so is there a way to cancel the first two calls and only get the last one. thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ -- 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: AsyncCalls
The async interface usually has a void return type, but it can optionally return a Request object, like this - import com.google.gwt.http.client.Request; interface MyServiceAsync { public Request myMethod(String s, AsyncCallbackString callback); } So, after you make your Async call, hold on to the Request object. When you wish to cancel the calls, invoke the request.cancel() method. --Sri On 15 April 2010 12:54, muhannad nasser muhannadna...@gmail.com wrote: hi i am building a search text Field and i do an AsyncCallBack on valueHasChanged event in the text field... so if i wrote 3 characters, i will send three calls to the server but the valid one is the last one so is there a way to cancel the first two calls and only get the last one. thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RPC Endpoints and threads
Hi All I've been thinking a lot about the GWT RPC mechanism and from the tests that I've done it appears that the same endpoint instance is used for every RPC call. So presumably if you've got a hundred users all making the same RPC call all at the same time there are 100 different threads trying to access the same object. Is that correct? Just having written that, another thought occurs that I haven't checked for, is it just that the same endpoint object is used for a session? So different users, who obviously have different sessions, get their own endpoint object? Anyway, assuming I was right the first time and an RPC endpoint is shared by all sessions, has anyone considered pooling endpoints and serving them up per session like I believe EJB does? -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder and CSS resources obfuscation
Yep, I know the @external does the trick, but I was wondering if it exists some kind of global '@external' annotation to tell UIBinder not to obfuscate all classes. @Jeff Chimene : I think you right. My fear is that the UIBinder has to keep this kind of obfuscation/ renaming rules to garantee the non collision in css class name. But, what can't we imagine an option to not obfuscate css classes and raise an error when a collision occured ? On Apr 14, 10:32 pm, Jeff Chimene jchim...@gmail.com wrote: On 04/14/2010 01:27 PM, davidroe wrote: there was a time when I was also looking for this and was unable to find the answer. pls report back to the group if you come across the solution. thanks. Try using the @external annotation @external gwt-TextBox; .gwt-TextBox { border-color: Black Black Gray; border-style: solid double groove solid; border-width: thin; font-size: small; padding: 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: UIBinder and CSS resources obfuscation
Yep, I have already tried the @external and it does the trick, but I was wondering if it exists some kind of global '@external' annotation to tell UIBinder not to obfuscate all classes. Or perhaps a global property to do that. My fear is that the UIBinder has to keep this kind of obfuscation/ renaming rules to garantee the non collision in css class name. But, why can't we imagine an option to not obfuscate css classes and raise an error when a collision occured ? On Apr 14, 10:32 pm, Jeff Chimene jchim...@gmail.com wrote: On 04/14/2010 01:27 PM, davidroe wrote: there was a time when I was also looking for this and was unable to find the answer. pls report back to the group if you come across the solution. thanks. Try using the @external annotation @external gwt-TextBox; .gwt-TextBox { border-color: Black Black Gray; border-style: solid double groove solid; border-width: thin; font-size: small; padding: 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.
GWT Problem
Hi All, hope You are fine,I need some assistance for getting GWT Textbox value in Javascript. I have Login page which has two GWT textbox .Once GWT textbox are load in the Jsp page and user enter some information in the GWT Text box ,i require that information in the javascript how can I do that? because we render GWT textbox with Div id and i dnt know how to get value from Div tag in javascript? Can you please help me? Thank you for your time. Regards Jatan -- 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: AsyncCalls
thanks for you help. :) On Thu, Apr 15, 2010 at 10:37 AM, Sripathi Krishnan sripathikrish...@gmail.com wrote: The async interface usually has a void return type, but it can optionally return a Request object, like this - import com.google.gwt.http.client.Request; interface MyServiceAsync { public Request myMethod(String s, AsyncCallbackString callback); } So, after you make your Async call, hold on to the Request object. When you wish to cancel the calls, invoke the request.cancel() method. --Sri On 15 April 2010 12:54, muhannad nasser muhannadna...@gmail.com wrote: hi i am building a search text Field and i do an AsyncCallBack on valueHasChanged event in the text field... so if i wrote 3 characters, i will send three calls to the server but the valid one is the last one so is there a way to cancel the first two calls and only get the last one. thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ ~~.NET Developer @ Iconnecths~~ ~~My Blog: http://mhand7.blogspot.com~~ ~~0598-534520~~ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder with code in earlier versions of GWT
Can you please direct me to any such tutorial and or blog regarding this. Or may be a list of things that I should take care while migrating to declarative UI with the programatic UI from the earlier version of GWT2.0 Suppose MyWidget class is in package com.old.uiuibinder template for WidgetContainer can look like this !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:oldWidgets=urn:import:com.old.ui g:HTMLPanel h1WidgetContainer/h1 divbla bla /div divoldWidgets:MyWidget ui:field=widgetContainerFieldNameForOldWidget someOldWidgetProperty=haha //div /g:HTMLPanel /ui:UiBinder Notice xml namespace declaration: xmlns:oldWidgets=urn:import:com.old.ui Important things to remember: - MyWidget class must be accessible from WidgetContainer class so must have public or be in the same package and has default access. - In this example MyWidget has setter:public void setSomeOldWidgetProperty(String v) - MyWidget must have accessible noargs contructors or you have to create factory method annotated with @UIFactory in WidgetContainer or add provided=true @UiField(provided=true) MyWidget widgetContainerFieldNameForOldWidget ; and create instance of MyWidget in WidgetContainer All informations you can found here: http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_a_widget -- 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.
Hello
http://sites.google.com/site/dfgbn467u5jnbd/ndds5w -- 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: RPC Endpoints and threads
Servlet containers typically make only one object of your Servlet. This object is shared across several threads. Several threads is a configurable property on most servers, but usually varies between 15 to 30. If you have 100 users connecting simultaneously, the server will not start 100 threads - the remaining requests will be queued. But multiple threads sharing the same Servlet (or end-point, as you put it) object does not *usually* matter. That is, if you follow servlet best practices. The GWT RPC Servlet is Stateless. Even if 1000 users access it at the same time, it is OKAY - they will not interfere with each other. When you write a RPC Servlet extending RemoteServiceServlet, you should also ensure that it is stateless. There are several ways to do it, but the easiest is to *NOT use member variables in your ServiceImpl*. Users in different sessions are also serviced by the same Servlet object. It is up to you to handle them differently by reading from the Session object and taking a different action for each user. And, just to go a step further, the recommended approach is to not use sessions. That gives you opportunities to scale later. EJB's are a complicated beast and meant to solve an entirely different class of problems. Even if you already use EJBs in your project, you should still write a RPC Servlet that delegates the heavy-processing to EJB. --Sri On 15 April 2010 13:19, Paul Grenyer paul.gren...@gmail.com wrote: Hi All I've been thinking a lot about the GWT RPC mechanism and from the tests that I've done it appears that the same endpoint instance is used for every RPC call. So presumably if you've got a hundred users all making the same RPC call all at the same time there are 100 different threads trying to access the same object. Is that correct? Just having written that, another thought occurs that I haven't checked for, is it just that the same endpoint object is used for a session? So different users, who obviously have different sessions, get their own endpoint object? Anyway, assuming I was right the first time and an RPC endpoint is shared by all sessions, has anyone considered pooling endpoints and serving them up per session like I believe EJB does? -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: sliding navigation with gwt
a'ite. thanks for the suggestion. i'll try that out. On Apr 13, 8:17 am, rjcarr rjc...@gmail.com wrote: You would need to embed things (i.e., widgets, most likely images) into an absolute panel and then change their positions within the panel on the navigation action. By moving the items in the front faster than in the back it achieves a 3D look. Good luck! On Apr 11, 12:01 am, ko_aung tin.h.a...@gmail.com wrote: hi, i'm wondering somebody could shed some light on how to achieve a sliding navigation with gwt, something like thishttp://www.wolfire.com/overgrowth thanks. regards, ko_aung -- 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: RPC Endpoints and threads
Hi, Paul! if you really want one service instance per thread make your service additionally implement SingleThreadModel. or you could also use the standard synchronization mechanism. HTH Michael On Apr 15, 10:48 am, Sripathi Krishnan sripathikrish...@gmail.com wrote: Servlet containers typically make only one object of your Servlet. This object is shared across several threads. Several threads is a configurable property on most servers, but usually varies between 15 to 30. If you have 100 users connecting simultaneously, the server will not start 100 threads - the remaining requests will be queued. But multiple threads sharing the same Servlet (or end-point, as you put it) object does not *usually* matter. That is, if you follow servlet best practices. The GWT RPC Servlet is Stateless. Even if 1000 users access it at the same time, it is OKAY - they will not interfere with each other. When you write a RPC Servlet extending RemoteServiceServlet, you should also ensure that it is stateless. There are several ways to do it, but the easiest is to *NOT use member variables in your ServiceImpl*. Users in different sessions are also serviced by the same Servlet object. It is up to you to handle them differently by reading from the Session object and taking a different action for each user. And, just to go a step further, the recommended approach is to not use sessions. That gives you opportunities to scale later. EJB's are a complicated beast and meant to solve an entirely different class of problems. Even if you already use EJBs in your project, you should still write a RPC Servlet that delegates the heavy-processing to EJB. --Sri On 15 April 2010 13:19, Paul Grenyer paul.gren...@gmail.com wrote: Hi All I've been thinking a lot about the GWT RPC mechanism and from the tests that I've done it appears that the same endpoint instance is used for every RPC call. So presumably if you've got a hundred users all making the same RPC call all at the same time there are 100 different threads trying to access the same object. Is that correct? Just having written that, another thought occurs that I haven't checked for, is it just that the same endpoint object is used for a session? So different users, who obviously have different sessions, get their own endpoint object? Anyway, assuming I was right the first time and an RPC endpoint is shared by all sessions, has anyone considered pooling endpoints and serving them up per session like I believe EJB does? -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
uiBinder and XML writing
Hello, I try to use uiBinder... when I write the xml code in the editor (NetBeans 6.8 / Eclipse Galileo) no one suggegstion is shown about node properties... It's a configuration problem? Thank you! F. -- 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 app load tests
Hi, How to do load tests to gwt app? Please suggest tools/frameworks and best practices. 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: ELabel and GWT
Hello all, I got it working. Found the mapitz GAbstractOverlay, and then was able to get on the right track. I got a huge help from http://groups.google.com/group/google-web-toolkit/browse_thread/thread/683028a4f827695d -- 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.
markup and i18n/Messages
What is the best plan for allowing/disallowing markup in i18n messages? I'd be tempted to say no but one day the pointy haired boss is going to say he wants a word in italics and I'd feel a bit silly saying no. Sorry if I've missed something but does GWT offer a solution to this? The best I can think of is that by default messages won't have markup (so will be escaped) but if the message starts with a valid tag e.g. span then I will turn off escaping for at least strong, em etc... So not very good at all. Thanks Sam -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder performances: widgets without ui:field still instantiate?
With UiBinder, I thought that GWT compiler would prevent instantiation of widget with no ui:field attribute by directly inserting the html code of the widget. In other words, I thought that: g:VerticalPanel g:HorizontalPanelg:LabelLine 1/g:Label/g:HorizontalPanel g:HorizontalPanelg:LabelLine 2/g:Label/g:HorizontalPanel /g:VerticalPanel would give the same result as: g:HTMLPanel table tr tdLine1/td tdLine2/td /tr /table /g:HTMLPanel But in the first case, it generates this Java code: com.google.gwt.user.client.ui.Label f_Label3 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel2 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label5 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); f_Label3.setText(Line 1); f_HorizontalPanel2.add(f_Label3); f_VerticalPanel1.add(f_HorizontalPanel2); f_Label5.setText(Line 2); f_HorizontalPanel4.add(f_Label5); f_VerticalPanel1.add(f_HorizontalPanel4); and the second case, it generates: com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new com.google.gwt.user.client.ui.HTMLPanel(table tr tdLine1/td tdLine2/td /tr /table); So am I right to think that I should never use widget inside UiBinder xml except if I have the attribute ui:field (in other words, except if I need it in the Java code)? Thanks, Pierre -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder performances: widgets without ui:field still instantiate?
I don't know if you're right about thinking that there's still situation where an HTMLPanel or layout panel, without uifield is the best way to go, but I do know that we should use as often as possible html code instead of widget for the very reason you exposed. BUT I'm still wondering if once compiled to JS those instanciations are translated to plain html. It's not clear in what you're saying if it's in production or in development mode. Christian On Thu, Apr 15, 2010 at 9:44 AM, plcoirier plcoir...@gmail.com wrote: With UiBinder, I thought that GWT compiler would prevent instantiation of widget with no ui:field attribute by directly inserting the html code of the widget. In other words, I thought that: g:VerticalPanel g:HorizontalPanelg:LabelLine 1/g:Label/g:HorizontalPanel g:HorizontalPanelg:LabelLine 2/g:Label/g:HorizontalPanel /g:VerticalPanel would give the same result as: g:HTMLPanel table tr tdLine1/td tdLine2/td /tr /table /g:HTMLPanel But in the first case, it generates this Java code: com.google.gwt.user.client.ui.Label f_Label3 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel2 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label5 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); f_Label3.setText(Line 1); f_HorizontalPanel2.add(f_Label3); f_VerticalPanel1.add(f_HorizontalPanel2); f_Label5.setText(Line 2); f_HorizontalPanel4.add(f_Label5); f_VerticalPanel1.add(f_HorizontalPanel4); and the second case, it generates: com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new com.google.gwt.user.client.ui.HTMLPanel(table tr tdLine1/td tdLine2/td /tr /table); So am I right to think that I should never use widget inside UiBinder xml except if I have the attribute ui:field (in other words, except if I need it in the Java code)? Thanks, Pierre -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Making a simple 3 column layout?
Hello! We just wrote a post some days ago about how to implement this. You can find the tutorial here: http://blog.discovr.net/post/516021390/layout-your-app-using-gwt-2-0-the-way-you-want-it We built this tutorial using UiBinder, so it should be straightforward for you. Also you can download the source code within the tutorial. We hope it helps. HG On Apr 15, 1:02 pm, markww mar...@gmail.com wrote: Hi, I was hoping to use VerticalPanel and HorizontalPanel instances to make a simple 3 column page layout. Something like: VerticalPanel VerticalPanel // this is the header (width: 100%, height: 90px) /VerticalPanel HorizontalPanel VerticalPanel // this is column 1 (width: 30%, height: 100%) /VerticalPanel VerticalPanel // this is column 2 (width: 50%, height: 100%) /VerticalPanel VerticalPanel // this is column 3 (width: 20%, height: 100%) /VerticalPanel /HorizontalPanel /VerticalPanel but the layout looks quite strange. I have to figure out css for layouts, was hoping most of this could be handled by gwt though. Anyone have a simple 3 col layout they could share? 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.
Gwt 2.0 with Symfony php framework
I must implement a web application using Symfony php framework (with doctrine) with a javascript framework in order to use and create rich UI components. First of all, I have to realize a study of existing javascript framework and I must choose one. GWT provides many UI components and has many advantages compared to other traditional JS Framework (designer, developped view in java, ...). However, I don't find complete tutorial about the use of GWT with php or Symfony (except http://examples.roughian.com). I would like your opinion, Is a Symfony project using GWT is viable? Do you know tutorials about it? Does someone has already realize this? Thank you in advance. 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: Switch RootPanel with RootLayoutPanel
I'm having a similar issue. I have widgets added to elements using RootLayout.get(foo).add(widget) but then want to add a Panel on top using RootLayoutPanel.get().add(layout). that's all fine, but removign the LayoutPanel leaves somethign behind that means the widgets on the page cannot be clicked. Looking at the generated there is an extra div left behind. Is this a bug or am I missing something? I'm not keen on raiseing a bug if this is simply a case of me missunderstanding something. Cheers Kerr On Apr 14, 12:09 pm, gadaleta.marco gadaleta.ma...@gmail.com wrote: Hi, I'm trying to switch diinamically RootPanel with RootLayoutPanel and viceversa. But after the switch, the interface seems to be locked. Can you give me an help? Thx, Marco -- 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 - Visualization of graph/tree containing nodes and edges, moving and adding nodes...
Hi I'm student from Germany an looking for any good library that i can use with Google Web Toolkit to create trees/graphs, where you can move nodes and connect these nodes with edges...but not like PieChart, MotionChart.. but like e.g.: http://raphaeljs.com/graffle.html. So finally it has to do with JavaScript... i don't like make just a desktop-application. My problem is i'm beginner and i dont know which libraries would be appropriate for my idea with the tree/graph... I'am looking a while for some appropriate libraries in the internet, but so far i didn't found something usefull that works with GWT (gwt-jsviz is already a dead project as i see)...do you have any suggestion for me, how i can realize my idea with GWT, maybe without any external librariy... i would be very pleased and happy... Thanks and best regards Gafur -- 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 MVP
i am having quite a difficulty in understanding MVP in gwt. Can anybody suggest a good example easy one -- 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.
Ilogical problem on GWT
I have a problem with the deployment of my project. The changes I make on my project in GWT appear on my project after restarting my computer. this is something profoundly illogical. So can u help me please. -- 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.
$doc.getElementById(cJc).click() is not a function
Trying to click a button, I wrote a JSNI call like this public native void clickAddButton() /*-{ $doc.getElementById(addButton).click(); }-*/; It works on IE7, but on Firefox, I get an error $doc.getElementById(cJc).click() is not a function I feel like it's a very simple mistake on my part that I just can't see. Can somebody help me out please? Actually it would be great if somebody could show me an example of how to click a button (button declared in HTML, not GWT button) without using JSNI at all. Any thoughts would be appreciated. Using GWT 2.0.3. -- 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 TableListener
Hi, I'm using version 2.0.3 of gwt and noticed that the documentation mentions TableListener has been deprecated. What should I be using instead? 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.
javac compile error
Hi, I'm a newbie to command-line compiling. I have used Eclipse before to compile GWT projects without any problem. This is the first time I have had to deal with automating javac compiling and ant build using a Makefile. I am getting the following compiling error. I haven't found anything related on the forum yet. snip $ make .. building with ant Buildfile: build.xml libs: javac: [javac] Compiling 58 source files to /home/rr208664/FabricMonitor/ war/WEB-INF/classes [javac] -- [javac] 1. ERROR in /home/rr208664/FabricMonitor/src/com/sun/ fabricmonitor/client/chart/Chart.java (at line 22) [javac] public class Chart extends FlowPanel{ [javac]^ [javac] The type Iterable is not generic; it cannot be parameterized with arguments Widget [javac] -- [javac] 1 problem (1 error) BUILD FAILED /home/rr208664/FabricMonitor/build.xml:30: Compile failed; see the compiler error output for details. Total time: 2 seconds make: *** [gwt] Error 1 $ /snip This project compiles without any problem in Eclipse. My Chart class is straightforward: = public class Chart extends HorizontalPanel{ private SimplePlot plot; . . . public Chart() { ... } . . . . public void setSampleRate(int rate) { } public void setChartSize(int height, int width) { } } = -- 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.
java.util.Calendar
Hello, I'm sure this has been asked somewhere before but I can't seem to find it: Is there likely to be a port of java.util.Calendar any time soon for GWT? Also, is there an official roadmap anywhere? 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.
Date Picker Allows Only Certain Dates to be Selected Based on Database or Web Service Information
Is there a way to use the GWT Date Picker where dates are only selectable based on information returned from either a web service, or database query? In addition, have rollover text that is returned appear when hovering over the selectable date? -- 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: Ilogical problem on GWT
Please, i need your help! 2010/4/15 samounas elmokhtari.as...@gmail.com I have a problem with the deployment of my project. The changes I make on my project in GWT appear on my project after restarting my computer. this is something profoundly illogical. So can u help me please. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder performances: widgets without ui:field still instantiate?
So am I right to think that I should never use widget inside UiBinder xml except if I have the attribute ui:field (in other words, except if I need it in the Java code)? Its best to minimize usage of widgets when you can; there is always a cost associated with them. Specifically, VerticalPanel and HorizontalPanel almost always should be replaced with divs (or tables if you don't like semantic markup). BUT I'm still wondering if once compiled to JS those instanciations are translated to plain html. It's not clear in what you're saying if it's in production or in development mode. The code pasted was the intermediate, unoptimized java code that uibinder generates prior to java - js compilation. It will undergo optimizations once the compiler acts on it, and the code will for sure be a lot more performant. However, in general, innerHTML is much better performance wise than creating objects and adding them to DOM. So, even after the compiler finishes all optimizations, performance wise it will still lag behind inline html. --Sri On 15 April 2010 19:30, Christian Goudreau goudreau.christ...@gmail.comwrote: I don't know if you're right about thinking that there's still situation where an HTMLPanel or layout panel, without uifield is the best way to go, but I do know that we should use as often as possible html code instead of widget for the very reason you exposed. BUT I'm still wondering if once compiled to JS those instanciations are translated to plain html. It's not clear in what you're saying if it's in production or in development mode. Christian On Thu, Apr 15, 2010 at 9:44 AM, plcoirier plcoir...@gmail.com wrote: With UiBinder, I thought that GWT compiler would prevent instantiation of widget with no ui:field attribute by directly inserting the html code of the widget. In other words, I thought that: g:VerticalPanel g:HorizontalPanelg:LabelLine 1/g:Label/g:HorizontalPanel g:HorizontalPanelg:LabelLine 2/g:Label/g:HorizontalPanel /g:VerticalPanel would give the same result as: g:HTMLPanel table tr tdLine1/td tdLine2/td /tr /table /g:HTMLPanel But in the first case, it generates this Java code: com.google.gwt.user.client.ui.Label f_Label3 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel2 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label5 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); f_Label3.setText(Line 1); f_HorizontalPanel2.add(f_Label3); f_VerticalPanel1.add(f_HorizontalPanel2); f_Label5.setText(Line 2); f_HorizontalPanel4.add(f_Label5); f_VerticalPanel1.add(f_HorizontalPanel4); and the second case, it generates: com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new com.google.gwt.user.client.ui.HTMLPanel(table tr tdLine1/td tdLine2/td /tr /table); So am I right to think that I should never use widget inside UiBinder xml except if I have the attribute ui:field (in other words, except if I need it in the Java code)? Thanks, Pierre -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group
Re: javac compile error
First bet is usually that you are using a different version of java on the command line - try javac -version and compare it with what you are using in eclipse. On Apr 14, 8:14 pm, txciggy rajiv.r...@gmail.com wrote: Hi, I'm a newbie to command-line compiling. I have used Eclipse before to compile GWT projects without any problem. This is the first time I have had to deal with automating javac compiling and ant build using a Makefile. I am getting the following compiling error. I haven't found anything related on the forum yet. snip $ make .. building with ant Buildfile: build.xml libs: javac: [javac] Compiling 58 source files to /home/rr208664/FabricMonitor/ war/WEB-INF/classes [javac] -- [javac] 1. ERROR in /home/rr208664/FabricMonitor/src/com/sun/ fabricmonitor/client/chart/Chart.java (at line 22) [javac] public class Chart extends FlowPanel{ [javac] ^ [javac] The type Iterable is not generic; it cannot be parameterized with arguments Widget [javac] -- [javac] 1 problem (1 error) BUILD FAILED /home/rr208664/FabricMonitor/build.xml:30: Compile failed; see the compiler error output for details. Total time: 2 seconds make: *** [gwt] Error 1 $ /snip This project compiles without any problem in Eclipse. My Chart class is straightforward: = public class Chart extends HorizontalPanel{ private SimplePlot plot; . . . public Chart() { ... } . . . . public void setSampleRate(int rate) { } public void setChartSize(int height, int width) { } } = -- 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 TableListener
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/HTMLTable.html#addTableListener%28com.google.gwt.user.client.ui.TableListener%29 add a click handler instead and use getCellForEvent(ClickEvent) to get the cell information (remember to check for a null return value) On Apr 14, 1:48 am, moongwt groove...@googlemail.com wrote: Hi, I'm using version 2.0.3 of gwt and noticed that the documentation mentions TableListener has been deprecated. What should I be using instead? 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: Ilogical problem on GWT
Computers are eminently logical, programmers on the other hand.. From the barest mote of information you provide about your problem, maybe it's caching, look at the bottom of http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html On Apr 15, 8:14 am, Asmaa EL MOKHTARI elmokhtari.as...@gmail.com wrote: Please, i need your help! 2010/4/15 samounas elmokhtari.as...@gmail.com I have a problem with the deployment of my project. The changes I make on my project in GWT appear on my project after restarting my computer. this is something profoundly illogical. So can u help me please. -- 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.
Visual CMS with GWT
Hi, I want to make a Website CMS that does the following: The screen is split into 2 panels, the right panel contains a webpage where a user can click an element (image or block of text) and then edit it in the right panel. So, in the right panel all the elements properties show up and they can be edited and saved. Would GWT be a good framework to achieve this or would something else be more suitable ? I would like real-time text updates, drag drop images etc. I know i'm being a bit brief at this point but i would like to get an idea of it's capabilities before i look any further. 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.
DatePicker
How are I have easy navigation in DatePicker, for example if I want to select the year 2000, I will have to go through all the months and years by clicking the button. I think we should have a month and year drop down for easy navigation. Is there any third party DatePicker or any configuration in GWT's DatePicker that I am missing ? - Abdullah -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: markup and i18n/Messages
Hi, There is a big risk in using markups in properties files. They are likely to go to a translation office were the people don't know about markups. May be they translate strong to stark. You could never be sure, that these markups apply at all. Depending were you insert it, your markup is taken literally. Both approaches will produce earlier or later massive testing costs. When application is display a longer text where some words are marked, I would consider to use ClientBundle TextResource or ExternalTextResource. Stefan Bachert http://gwtworld.de On 15 Apr., 14:21, salk31 s...@redspr.com wrote: What is the best plan for allowing/disallowing markup in i18n messages? I'd be tempted to say no but one day the pointy haired boss is going to say he wants a word in italics and I'd feel a bit silly saying no. Sorry if I've missed something but does GWT offer a solution to this? The best I can think of is that by default messages won't have markup (so will be escaped) but if the message starts with a valid tag e.g. span then I will turn off escaping for at least strong, em etc... So not very good at all. Thanks Sam -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Visualization of graph/tree containing nodes and edges, moving and adding nodes...
maybe http://code.google.com/p/gwt-diagrams/ On Apr 14, 12:26 pm, gafgaf gaaf...@googlemail.com wrote: Hi I'm student from Germany an looking for any good library that i can use with Google Web Toolkit to create trees/graphs, where you can move nodes and connect these nodes with edges...but not like PieChart, MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html. So finally it has to do with JavaScript... i don't like make just a desktop-application. My problem is i'm beginner and i dont know which libraries would be appropriate for my idea with the tree/graph... I'am looking a while for some appropriate libraries in the internet, but so far i didn't found something usefull that works with GWT (gwt-jsviz is already a dead project as i see)...do you have any suggestion for me, how i can realize my idea with GWT, maybe without any external librariy... i would be very pleased and happy... Thanks and best regards Gafur -- 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.
Layout issues .. simply does not work
Hie I am trying to create some gwt layout and it shows nothing. here is the code: public void onModuleLoad() { SplitLayoutPanel container = new SplitLayoutPanel(); container.addNorth(new HTML(north), 2); container.addSouth(new HTML(south), 5); container.addEast(new HTML(east), 2); StackLayoutPanel menu = new StackLayoutPanel(Unit.EM); menu.add(new HTML(this), new HTML([this]), 4); menu.add(new HTML(that), new HTML([that]), 4); menu.add(new HTML(the other), new HTML([the other]), 4); container.addWest(menu, 5); container.add(new HTML(center)); RootLayoutPanel rp = RootLayoutPanel.get(); rp.add(container); } any idea what i m missing? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- 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: Ilogical problem on GWT
I find one error witch is: *SVN: '0x0041: Check cache before repaint' operation finished with error: svn: Unable to lock url org.eclipse.team.svn.core.connector.SVNConnectorException: svn: Unable to lock* In the other hand, i can't see the changes witch i made in the project without restarting the computer. So i spent a lot of time in the deployement. 2010/4/15 Víctor Llorens Vilella victor.llor...@gmail.com You may give more information. Some sort of concrete information. Could be some sort of out of sync problem? Try to refresh your workspace/project (F5) after save changes or building. On 15 April 2010 16:27, kozura koz...@gmail.com wrote: Computers are eminently logical, programmers on the other hand.. From the barest mote of information you provide about your problem, maybe it's caching, look at the bottom of http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html On Apr 15, 8:14 am, Asmaa EL MOKHTARI elmokhtari.as...@gmail.com wrote: Please, i need your help! 2010/4/15 samounas elmokhtari.as...@gmail.com I have a problem with the deployment of my project. The changes I make on my project in GWT appear on my project after restarting my computer. this is something profoundly illogical. So can u help me please. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Victor Llorens Vilella -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder performances: widgets without ui:field still instantiate?
Thanks for your help. I guess, even after java - javascript compilation, the first example will still instantiate a javascript object for each widget, right? So am I right to think that I should never use widget inside UiBinder xml except if I have the attribute ui:field (in other words, except if I need it in the Java code)? Its best to minimize usage of widgets when you can; there is always a cost associated with them. Specifically, VerticalPanel and HorizontalPanel almost always should be replaced with divs (or tables if you don't like semantic markup). BUT I'm still wondering if once compiled to JS those instanciations are translated to plain html. It's not clear in what you're saying if it's in production or in development mode. The code pasted was the intermediate, unoptimized java code that uibinder generates prior to java - js compilation. It will undergo optimizations once the compiler acts on it, and the code will for sure be a lot more performant. However, in general, innerHTML is much better performance wise than creating objects and adding them to DOM. So, even after the compiler finishes all optimizations, performance wise it will still lag behind inline html. --Sri On 15 April 2010 19:30, Christian Goudreau goudreau.christ...@gmail.comwrote: I don't know if you're right about thinking that there's still situation where an HTMLPanel or layout panel, without uifield is the best way to go, but I do know that we should use as often as possible html code instead of widget for the very reason you exposed. BUT I'm still wondering if once compiled to JS those instanciations are translated to plain html. It's not clear in what you're saying if it's in production or in development mode. Christian On Thu, Apr 15, 2010 at 9:44 AM, plcoirier plcoir...@gmail.com wrote: With UiBinder, I thought that GWT compiler would prevent instantiation of widget with no ui:field attribute by directly inserting the html code of the widget. In other words, I thought that: g:VerticalPanel g:HorizontalPanelg:LabelLine 1/g:Label/g:HorizontalPanel g:HorizontalPanelg:LabelLine 2/g:Label/g:HorizontalPanel /g:VerticalPanel would give the same result as: g:HTMLPanel table tr tdLine1/td tdLine2/td /tr /table /g:HTMLPanel But in the first case, it generates this Java code: com.google.gwt.user.client.ui.Label f_Label3 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel2 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label5 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); f_Label3.setText(Line 1); f_HorizontalPanel2.add(f_Label3); f_VerticalPanel1.add(f_HorizontalPanel2); f_Label5.setText(Line 2); f_HorizontalPanel4.add(f_Label5); f_VerticalPanel1.add(f_HorizontalPanel4); and the second case, it generates: com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new com.google.gwt.user.client.ui.HTMLPanel(table tr tdLine1/td tdLine2/td /tr /table); So am I right to think that I should never use widget inside UiBinder xml except if I have the attribute ui:field (in other words, except if I need it in the Java code)? Thanks, Pierre -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - - Show quoted text - -- You
Re: Layout issues .. simply does not work
Works fine when I tried it, but note that the units are pixels, so you will want to use larger numbers. On Apr 15, 8:50 am, Vik vik@gmail.com wrote: Hie I am trying to create some gwt layout and it shows nothing. here is the code: public void onModuleLoad() { SplitLayoutPanel container = new SplitLayoutPanel(); container.addNorth(new HTML(north), 2); container.addSouth(new HTML(south), 5); container.addEast(new HTML(east), 2); StackLayoutPanel menu = new StackLayoutPanel(Unit.EM); menu.add(new HTML(this), new HTML([this]), 4); menu.add(new HTML(that), new HTML([that]), 4); menu.add(new HTML(the other), new HTML([the other]), 4); container.addWest(menu, 5); container.add(new HTML(center)); RootLayoutPanel rp = RootLayoutPanel.get(); rp.add(container); } any idea what i m missing? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Layout issues .. simply does not work
tx a lot!!! Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Apr 15, 2010 at 8:36 PM, kozura koz...@gmail.com wrote: Works fine when I tried it, but note that the units are pixels, so you will want to use larger numbers. On Apr 15, 8:50 am, Vik vik@gmail.com wrote: Hie I am trying to create some gwt layout and it shows nothing. here is the code: public void onModuleLoad() { SplitLayoutPanel container = new SplitLayoutPanel(); container.addNorth(new HTML(north), 2); container.addSouth(new HTML(south), 5); container.addEast(new HTML(east), 2); StackLayoutPanel menu = new StackLayoutPanel(Unit.EM); menu.add(new HTML(this), new HTML([this]), 4); menu.add(new HTML(that), new HTML([that]), 4); menu.add(new HTML(the other), new HTML([the other]), 4); container.addWest(menu, 5); container.add(new HTML(center)); RootLayoutPanel rp = RootLayoutPanel.get(); rp.add(container); } any idea what i m missing? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Switch RootPanel with RootLayoutPanel
Hi, I've figured out that you need to remove the RootLayoutPanel from the RootPanel. You can do this with RootPanel.get().remove(RootLayoutPanel.get()), or RootLayoutPanel.get().removeFromParent(). Note that this means that the singlton RootLayoutPanel returned from RootLayoutPanel.get() will no longer function as it does not get reattached. You can work around this by reattaching it to RootPanel with RootPanel.add(RootLayoutPanel.get()); It would be better if RootLayoutPanel.get() always ensured that it was attached to RootPanel.get() before returning. It is also nto very obvious to a newbie (like me) that simply having RootLayoutPanel attached will block clicking on anything attached to the RootPanel. While it is perhaps uncommon for this to occur simply by calling RootLayoutPanel.get(), a moer common scenario would be adding a LayoutPanel to the RootLayoutPanel and then removing it. This leaves the RootLayoutPanel still attached, bu the underlying RootPanel inactive. Wouldn't it be a good idea to automatically detach the RootLayoutPanel if all of it's children are detached? Cheers Kerr On Apr 15, 2:48 pm, kerrr kerr.rai...@gmail.com wrote: I'm having a similar issue. I have widgets added to elements using RootLayout.get(foo).add(widget) but then want to add a Panel on top usingRootLayoutPanel.get().add(layout). that's all fine, but removign the LayoutPanel leaves somethign behind that means the widgets on the page cannot be clicked. Looking at the generated there is an extra div left behind. Is this a bug or am I missing something? I'm not keen on raiseing a bug if this is simply a case of me missunderstanding something. Cheers Kerr On Apr 14, 12:09 pm, gadaleta.marco gadaleta.ma...@gmail.com wrote: Hi, I'm trying to switch diinamically RootPanel withRootLayoutPaneland viceversa. But after the switch, the interface seems to be locked. Can you give me an help? Thx, Marco -- 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 - Visualization of graph/tree containing nodes and edges, moving and adding nodes...
Hi, thanks for the link, it looks good... i like try it but i have problems configuring it with gwt, is there a manual for dummies using eclipse or without eclipse? best regards On 15 Apr., 16:48, kozura koz...@gmail.com wrote: maybehttp://code.google.com/p/gwt-diagrams/ On Apr 14, 12:26 pm, gafgaf gaaf...@googlemail.com wrote: Hi I'm student from Germany an looking for any good library that i can use with Google Web Toolkit to create trees/graphs, where you can move nodes and connect these nodes with edges...but not like PieChart, MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html. So finally it has to do with JavaScript... i don't like make just a desktop-application. My problem is i'm beginner and i dont know which libraries would be appropriate for my idea with the tree/graph... I'am looking a while for some appropriate libraries in the internet, but so far i didn't found something usefull that works with GWT (gwt-jsviz is already a dead project as i see)...do you have any suggestion for me, how i can realize my idea with GWT, maybe without any external librariy... i would be very pleased and happy... Thanks and best regards Gafur -- 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: Help with DockPanelLayout and UIBinder - Not able to bind field names
When you call uibinder.createAndBindUi(this), it creates HTMLPanel instances as defined in your template and assigns them to your fields. This overwrites the instances you created manually. There are 2 ways to fix this: 1. Use the HTMLPanel instances that UiBinder creates and add your content to them after calling createAndBindUi. 2. If you really want to create the HTMLPanel instances yourself (or inject them via constructor arguments), you can mark the fields with @UiField(provided=true). I'm not sure if it matters whether the fields are set before or after calling createAndBindUi. Given the choice between the two, I would generally favor #1, and I think that's closer to what you're trying for anyway by calling them containers. Let UiBinder create the containers that you can then fill with anything you want. -Brian On Apr 14, 9:28 am, amjedonline amjedonl...@gmail.com wrote: Hi, Am trying to create a simple DockPanelLayout for my applicaiton. Layout itself is divided into north, south and center regions. Below is the binding xml: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:DockLayoutPanel unit='PX' g:north size='100' g:HTMLPanel ui:field='headerContainer' / /g:north g:center g:HTMLPanel ui:field='centerContainer' / /g:center g:south size='100' g:HTMLPanel ui:field='footerContainer' / /g:south /g:DockLayoutPanel /ui:UiBinder This is the Owner class: public class Application extends Composite { @UiField public HTMLPanel headerContainer; @UiField public HTMLPanel centerContainer; @UiField public HTMLPanel footerContainer; interface ApplicationUiBinder extends UiBinderWidget, Application { }; private static ApplicationUiBinder uibinder = GWT .create(ApplicationUiBinder.class); public Application() { headerContainer = new HTMLPanel(bHeader/b); centerContainer = new HTMLPanel(Center); footerContainer = new HTMLPanel(Footer); initWidget(uibinder.createAndBindUi(this)); } } And this is what I do in EntryPoint: Application app = new Application(); RootLayoutPanel.get().add(app); I dont get the labels - center, header and footer in the page. On debugging I found that output generated by createAndBindUI contains empty divs (while the inner html is expected). Any help in this regard will be appreciated. -- 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.
example of styling vertical panel
Hie Can someone help me to change the background color of a vertical panel? I dont want to do it for all the vertical panels in my app. I just want to do it for a particular panel Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- 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.
SplitPanelLayout question
Hie I created 2 HyperLinks in the west region and depending upon clicking link 1 or link 2 i want load different contents in the center region. How to do that? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- 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 - Visualization of graph/tree containing nodes and edges, moving and adding nodes...
ok its done, i tried but it is not very compatible with current versions of Firefox, IE, ... and GWT2.0 and that project is not progressed and improved anymore... nevertheless, thanks a lot! best regards On 15 Apr., 18:22, gafgaf gaaf...@googlemail.com wrote: Hi, thanks for the link, it looks good... i like try it but i have problems configuring it with gwt, is there a manual for dummies using eclipse or without eclipse? best regards On 15 Apr., 16:48, kozura koz...@gmail.com wrote: maybehttp://code.google.com/p/gwt-diagrams/ On Apr 14, 12:26 pm, gafgaf gaaf...@googlemail.com wrote: Hi I'm student from Germany an looking for any good library that i can use with Google Web Toolkit to create trees/graphs, where you can move nodes and connect these nodes with edges...but not like PieChart, MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html. So finally it has to do with JavaScript... i don't like make just a desktop-application. My problem is i'm beginner and i dont know which libraries would be appropriate for my idea with the tree/graph... I'am looking a while for some appropriate libraries in the internet, but so far i didn't found something usefull that works with GWT (gwt-jsviz is already a dead project as i see)...do you have any suggestion for me, how i can realize my idea with GWT, maybe without any external librariy... i would be very pleased and happy... Thanks and best regards Gafur -- 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.
GreetingService, GreetingServiceAsync, after deleting: errors
Hi, after i have created a GWT-Project, when i delete: GreetingService, GreetingServiceAsync from the package e.g. de.myproject.testconnectorsgwt.client i got errors when i try to Run As or Debug Aa Web Application. WHy is that so??? I'm beginner but i know so far, that i'm not using these classes! -- 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.
Alternative to TableListener
Using 2.0.3 and noticed that TableListener has been deprecated. What should I be using instead? Many 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 - Visualization of graph/tree containing nodes and edges, moving and adding nodes...
gafgaf gaaf...@googlemail.com wrote: ok its done, i tried but it is not very compatible with current versions of Firefox, IE, ... and GWT2.0 and that project is not progressed and improved anymore... nevertheless, thanks a lot! best regards On 15 Apr., 18:22, gafgaf gaaf...@googlemail.com wrote: Hi, thanks for the link, it looks good... i like try it but i have problems configuring it with gwt, is there a manual for dummies using eclipse or without eclipse? best regards On 15 Apr., 16:48, kozura koz...@gmail.com wrote: maybehttp://code.google.com/p/gwt-diagrams/ On Apr 14, 12:26 pm, gafgaf gaaf...@googlemail.com wrote: Hi I'm student from Germany an looking for any good library that i can use with Google Web Toolkit to create trees/graphs, where you can move nodes and connect these nodes with edges...but not like PieChart, MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html. So finally it has to do with JavaScript... i don't like make just a desktop-application. My problem is i'm beginner and i dont know which libraries would be appropriate for my idea with the tree/graph... I'am looking a while for some appropriate libraries in the internet, but so far i didn't found something usefull that works with GWT (gwt-jsviz is already a dead project as i see)...do you have any suggestion for me, how i can realize my idea with GWT, maybe without any external librariy... i would be very pleased and happy... Thanks and best regards Gafur -- 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: Alternative to TableListener
On Apr 15, 10:03 pm, moongwt groove...@googlemail.com wrote: Using 2.0.3 and noticed that TableListener has been deprecated. What should I be using instead? Deprecated. use ClickHandler and HTMLTable.getCellForEvent(com.google.gwt.event.dom.client.ClickEvent) instead http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/TableListener.html -- 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: $doc.getElementById(cJc).click() is not a function
On Apr 14, 10:44 pm, randasin r4nd7...@gmail.com wrote: Trying to click a button, I wrote a JSNI call like this public native void clickAddButton() /*-{ $doc.getElementById(addButton).click(); }-*/; It works on IE7, but on Firefox, I get an error $doc.getElementById(cJc).click() is not a function I feel like it's a very simple mistake on my part that I just can't see. Can somebody help me out please? Actually it would be great if somebody could show me an example of how to click a button (button declared in HTML, not GWT button) without using JSNI at all. ButtonElement.as(Document.get().getElementById(addButton)).click(); (if you have an input and not a button, then use InputElement instead of ButtonElement) -- 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: AsyncCalls
On Apr 15, 9:37 am, Sripathi Krishnan sripathikrish...@gmail.com wrote: The async interface usually has a void return type, but it can optionally return a Request object, like this - import com.google.gwt.http.client.Request; interface MyServiceAsync { public Request myMethod(String s, AsyncCallbackString callback); } So, after you make your Async call, hold on to the Request object. When you wish to cancel the calls, invoke the request.cancel() method. ...but keep in mind that the request will have been sent to your server, which will probably do the whole work for all three requests (most server frameworks don't make it easy to detect abort cases, and most developers therefore don't care doing so). You'd better issue the first request after a short delay (150ms for instance) so you can prevent doing the first 2 requests if the first 3 characters are entered fast enough by the user (which is generally the case) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
clipped image mode--gif only?
i was testing the image widget with the sample code in the javadoc, but used a .png instead of gif. i wasn't able to show the clipped image (it wouldn't load as clipped, loaded as unclipped). but when i tested with .gif , it clipped fine. i'm not an expert on the different image types, but is this a issue with the way image file types work? 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: How to put same widget under multiple tabs in TabLayoutPanel?
thanks, this sound like an idea. On Apr 10, 8:07 am, Chad cha...@sbcglobal.net wrote: One option would be to add a selection handler to the TabPanel and when the tab changes remove the controls from the display and attach them to the new tabs content. On Apr 8, 11:49 pm, enjoylife youwe...@gmail.com wrote: I have a TabLayoutPanel with 3 tabs, each tab contain a table. I need to place a control panel above and below tables. All 3 tables will share same control panel. (panel is for selecting all rows in a table) I am having problem getting this to work. Here is code for tablayoutpanel with one tab. Anyone kow how I can have same control appear in 3 different tabs under a table? g:TabLayoutPanel barUnit='EM' barHeight='3' ui:field='tabPanel' g:tab g:header size='3'/ g:FlowPanel g:ScrollPanel g:FlexTable ui:field='table' styleName='{style.table}'/ /g:ScrollPanel /g:FlowPanel /g:tab control panel g:FlowPanel g:Button ui:field='selectAll'/ g:Button ui:field='selectNone'/ /g:FlowPanel 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.
Rounded Corners with UIBinder
Despite all my searching (and mostly because of the limited information available regarding proper use of UIBinder) I cannot find a simple, elegant way to use UIBinder with rounded corners. The Google I have a vary simple, one page business card site with the with the outline of the page as a rounded corner pod. There are a few pods within that, one of which I want to use as the new TabLayoutPanel (requiring strict browser support). I considered using the older DecoratorPanel but that requires quirks mode. Is there an equivalent for the new layout structures? My original code just laid out css in the default html page and I anchored all my widgets using the RootPanel.get('id') operation but that does not work with RootLayoutPanel.get(), thereby limiting my ability to use the new TabLayoutPanel. I'm considering avoiding the new UIBinder features altogether, at least until more tutorials are available but I have to say I'm am very tempted I hope this all makes some sense. I'd be happy to clarify as this simple webpage project in GWT has turned into much more of a design barrier than anything else. -- 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 Problem
I'm not sure I follow why you have to get it from the div. If you don't, could you just use myTextBox.getText()? If you do want to access the DOM, you can set an id for your textbox and then retrieve the element as described here: http://code.google.com/webtoolkit/doc/latest/DevGuideUiDom.html (under Finding an element in the DOM) http://code.google.com/webtoolkit/doc/latest/DevGuideUiDom.htmlkathrin On Thu, Apr 15, 2010 at 4:19 AM, jatan bhavsar jatanbhav...@gmail.comwrote: Hi All, hope You are fine,I need some assistance for getting GWT Textbox value in Javascript. I have Login page which has two GWT textbox .Once GWT textbox are load in the Jsp page and user enter some information in the GWT Text box ,i require that information in the javascript how can I do that? because we render GWT textbox with Div id and i dnt know how to get value from Div tag in javascript? Can you please help me? Thank you for your time. Regards Jatan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT MVP
Not sure what you're looking for, but there's a pretty new document here: http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html On Thu, Apr 15, 2010 at 7:23 AM, Sabbir leo.sh...@gmail.com wrote: i am having quite a difficulty in understanding MVP in gwt. Can anybody suggest a good example easy one -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GreetingService, GreetingServiceAsync, after deleting: errors
Well, have you deleted all references to these files in your TestConnectorsGwt? Have you deleted the class GreetingServiceImpl on the server? You probably also want to take it out of your web.xml file (that's in your war directory), although it should run fine if you have all other reference removed. kathrin On Thu, Apr 15, 2010 at 3:38 PM, gafgaf gaaf...@googlemail.com wrote: Hi, after i have created a GWT-Project, when i delete: GreetingService, GreetingServiceAsync from the package e.g. de.myproject.testconnectorsgwt.client i got errors when i try to Run As or Debug Aa Web Application. WHy is that so??? I'm beginner but i know so far, that i'm not using these classes! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Rounded Corners with UIBinder
It's not the best, because it only works on Mozilla and Firefox, but the simplest might be the CSS3 property border-radius. You'd want to use \-moz-border-radius and \-webkit-border-radius (note the escaping). kathrin On Thu, Apr 15, 2010 at 8:14 PM, Jonny jonny.bren...@gmail.com wrote: Despite all my searching (and mostly because of the limited information available regarding proper use of UIBinder) I cannot find a simple, elegant way to use UIBinder with rounded corners. The Google I have a vary simple, one page business card site with the with the outline of the page as a rounded corner pod. There are a few pods within that, one of which I want to use as the new TabLayoutPanel (requiring strict browser support). I considered using the older DecoratorPanel but that requires quirks mode. Is there an equivalent for the new layout structures? My original code just laid out css in the default html page and I anchored all my widgets using the RootPanel.get('id') operation but that does not work with RootLayoutPanel.get(), thereby limiting my ability to use the new TabLayoutPanel. I'm considering avoiding the new UIBinder features altogether, at least until more tutorials are available but I have to say I'm am very tempted I hope this all makes some sense. I'd be happy to clarify as this simple webpage project in GWT has turned into much more of a design barrier than anything else. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Compile / Unit Test error (java.lang.OutOfMemoryError: Java heap space)
I want to contribute to GWT so I followed the directions on the wiki. I can compile GWT fine using 'ant', but when I do 'ant test' I get the following error: compile.tests: [mkdir] Created dir: /Users/brandonturner/gwt/trunk/build/out/dev/bin-test [gwt.javac] Compiling 1100 source files to /Users/brandonturner/gwt/trunk/build/out/dev/bin-test [gwt.javac] [gwt.javac] [gwt.javac] The system is out of resources. [gwt.javac] Consult the following stack trace for details. [gwt.javac] java.lang.OutOfMemoryError: Java heap space [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:609) [gwt.javac] at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:691) [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.signature(MemberEnter.java:350) [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.visitMethodDef(MemberEnter.java:560) [gwt.javac] at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:639) [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399) [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:410) [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:1000) [gwt.javac] at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:967) [gwt.javac] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386) [gwt.javac] at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758) [gwt.javac] at com.sun.tools.javac.comp.Enter.complete(Enter.java:451) [gwt.javac] at com.sun.tools.javac.comp.Enter.main(Enter.java:429) [gwt.javac] at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) [gwt.javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) [gwt.javac] at com.sun.tools.javac.main.Main.compile(Main.java:353) [gwt.javac] at com.sun.tools.javac.main.Main.compile(Main.java:279) [gwt.javac] at com.sun.tools.javac.main.Main.compile(Main.java:270) [gwt.javac] at com.sun.tools.javac.Main.compile(Main.java:69) [gwt.javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [gwt.javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [gwt.javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [gwt.javac] at java.lang.reflect.Method.invoke(Method.java:597) [gwt.javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56) [gwt.javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:997) [gwt.javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820) [gwt.javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [gwt.javac] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) [gwt.javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [gwt.javac] at java.lang.reflect.Method.invoke(Method.java:597) BUILD FAILED /Users/brandonturner/gwt/trunk/build.xml:130: The following error occurred while executing this line: /Users/brandonturner/gwt/trunk/build.xml:27: The following error occurred while executing this line: /Users/brandonturner/gwt/trunk/build.xml:61: The following error occurred while executing this line: /Users/brandonturner/gwt/trunk/dev/build.xml:22: Compile failed; see the compiler error output for details. I looked in the trunk/build.xml to see if there was some where I can bump up the memory, but couldn't find it. I have seen the error before compiling my own project and increasing the memory using the -Xmx fixed it. *Is there a log somewhere with more details of the build? Or is there somewhere I can increase the memory for the compiler?* -Brandon -- 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: Rounded Corners with UIBinder
If gwt has a failing it's making the app look well rounded. Ok bad pun. The uibinder makes you think you are sculpting a ui. You really aren't. You are writing a skeleton that needs CSS for the flesh. The client side generated HTML is complex which makes the task harder. It's worth it considering the power and flexibility gwt gives you -Dave On Apr 15, 7:14 pm, Jonny jonny.bren...@gmail.com wrote: Despite all my searching (and mostly because of the limited information available regarding proper use of UIBinder) I cannot find a simple, elegant way to use UIBinder with rounded corners. The Google I have a vary simple, one page business card site with the with the outline of the page as a rounded corner pod. There are a few pods within that, one of which I want to use as the new TabLayoutPanel (requiring strict browser support). I considered using the older DecoratorPanel but that requires quirks mode. Is there an equivalent for the new layout structures? My original code just laid out css in the default html page and I anchored all my widgets using the RootPanel.get('id') operation but that does not work with RootLayoutPanel.get(), thereby limiting my ability to use the new TabLayoutPanel. I'm considering avoiding the new UIBinder features altogether, at least until more tutorials are available but I have to say I'm am very tempted I hope this all makes some sense. I'd be happy to clarify as this simple webpage project in GWT has turned into much more of a design barrier than anything else. -- 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. -- 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.
ScrollPanel not displaying contents in nested DockLayoutPanels
Hi, I have problem with a ScrollPanel not displaying its contents that is buried a few layers deep in some layout panels (all done using UiBinder). I have: RootLayoutPanel DockLayoutPanel (for application layout) TabLayoutPanel (in the center area) tab Custom View, implementing ResizeComposite DockLayoutPanel ScrollPanel (in the west area) FlexGrid (for the list of items) FlowLayoutPanel (in the center, for the detail of a particular item) Form controls Problem with the above is that the list in the scroll panel is not showing. FireBug is showing me that the data gets into the page, but is not visible. If I swap out the ScrollPanel for, say, a FlowPlanel it appears. What is the trick to getting this all to work? Thanks for any help, Richard -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Rounded Corners with UIBinder
Although I can't wait for css3 to be widespread, too many people still use IE. I'd be eliminating 50% or more of potential clients. I did look into that though. Thanks for the pointer. On Apr 15, 7:30 pm, Katharina Probst kpro...@google.com wrote: It's not the best, because it only works on Mozilla and Firefox, but the simplest might be the CSS3 property border-radius. You'd want to use \-moz-border-radius and \-webkit-border-radius (note the escaping). kathrin On Thu, Apr 15, 2010 at 8:14 PM, Jonny jonny.bren...@gmail.com wrote: Despite all my searching (and mostly because of the limited information available regarding proper use of UIBinder) I cannot find a simple, elegant way to use UIBinder with rounded corners. The Google I have a vary simple, one page business card site with the with the outline of the page as a rounded corner pod. There are a few pods within that, one of which I want to use as the new TabLayoutPanel (requiring strict browser support). I considered using the older DecoratorPanel but that requires quirks mode. Is there an equivalent for the new layout structures? My original code just laid out css in the default html page and I anchored all my widgets using the RootPanel.get('id') operation but that does not work with RootLayoutPanel.get(), thereby limiting my ability to use the new TabLayoutPanel. I'm considering avoiding the new UIBinder features altogether, at least until more tutorials are available but I have to say I'm am very tempted I hope this all makes some sense. I'd be happy to clarify as this simple webpage project in GWT has turned into much more of a design barrier than anything else. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs 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 athttp://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: Rounded Corners with UIBinder
So given that CSS is used for the flesh what to you anchor it to? The layout panels? With images as backgrounds (so you'd need 4 different anchors for 4 rounded corners?)? Or do you use something like an HTMLPanel with several divs to outline around layout panels? I feel more and more like my code is becoming a hodge-podge of different markups and losing some of the benefits of the simplicity of UIBinder. It seems like I'm missing a more elegant solution. Anyone? On Apr 15, 8:36 pm, dparish dpar...@gmail.com wrote: If gwt has a failing it's making the app look well rounded. Ok bad pun. The uibinder makes you think you are sculpting a ui. You really aren't. You are writing a skeleton that needs CSS for the flesh. The client side generated HTML is complex which makes the task harder. It's worth it considering the power and flexibility gwt gives you -Dave On Apr 15, 7:14 pm, Jonny jonny.bren...@gmail.com wrote: Despite all my searching (and mostly because of the limited information available regarding proper use of UIBinder) I cannot find a simple, elegant way to use UIBinder with rounded corners. The Google I have a vary simple, one page business card site with the with the outline of the page as a rounded corner pod. There are a few pods within that, one of which I want to use as the new TabLayoutPanel (requiring strict browser support). I considered using the older DecoratorPanel but that requires quirks mode. Is there an equivalent for the new layout structures? My original code just laid out css in the default html page and I anchored all my widgets using the RootPanel.get('id') operation but that does not work with RootLayoutPanel.get(), thereby limiting my ability to use the new TabLayoutPanel. I'm considering avoiding the new UIBinder features altogether, at least until more tutorials are available but I have to say I'm am very tempted I hope this all makes some sense. I'd be happy to clarify as this simple webpage project in GWT has turned into much more of a design barrier than anything else. -- 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. -- 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. -- 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.
No ability to scroll
When my page goes vertically beyond the size of the window I don't have the ability to scroll. The info is being painted (i can select all and paste it in a word processor and see the offscreen elements) but for some reason whether in FF or safari there is no vertical scrollbar in the browser. To make matters worse, the main example app, mail from GWT purposefully disables scrolling. Please help? Am I missing something simple? Thx. -- 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.
TextArea Cursor Coordinates
Hi, I want to get the coordinates of the Cursor position in TextArea so that I can show the popup appropriately. Please find the similar implementation of http://enobrev.info/cursor/. Is there any easy and better way to do the same. Warm Regards, Allahbaksh -- 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-contrib] Re: Goodbye fake storage, welcome JPA with appEngine. Notes: (issue352801)
LGTM But good to submit whatever you find there. http://gwt-code-reviews.appspot.com/352801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors To unsubscribe, reply using remove me as the subject.
[gwt-contrib] Re: Goodbye fake storage, welcome JPA with appEngine. Notes: (issue352801)
Just one concern about the use of long for version. If the client is going to need to do checks on that for caching, we want to avoid it. http://gwt-code-reviews.appspot.com/352801/diff/1/10 File bikeshed/src/com/google/gwt/sample/expenses/server/domain/Employee.java (right): http://gwt-code-reviews.appspot.com/352801/diff/1/10#newcode104 bikeshed/src/com/google/gwt/sample/expenses/server/domain/Employee.java:104: private Long version; Can this be an int instead? Shouldn't it be one? http://gwt-code-reviews.appspot.com/352801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors To unsubscribe, reply using remove me as the subject.
[gwt-contrib] PopupPanel.show() can enter an invalid state if attached (issue298804)
Reviewers: Lex, Description: If a PopupPanel is attached to a Panel, calling show() will put it into an invalid state where it is physically and logical attached, but its isShowing boolean is set to false. Once in this state, it cannot be hidden. Fix: When show() is called, we now check if the PopupPanel is attached (and not showing) and remove it from its parent if it is. Testing: === Created a unit test for this bug. Please review this at http://gwt-code-reviews.appspot.com/298804/show Affected files: user/src/com/google/gwt/user/client/ui/PopupPanel.java user/test/com/google/gwt/user/client/ui/PopupTest.java Index: user/test/com/google/gwt/user/client/ui/PopupTest.java === --- user/test/com/google/gwt/user/client/ui/PopupTest.java (revision 7922) +++ user/test/com/google/gwt/user/client/ui/PopupTest.java (working copy) @@ -428,7 +428,23 @@ } /** - * Test the showing a popup while it is hiding will not result in an illegal + * Test that showing a popup while it is attached does not put it in an + * invalid state. + */ + public void testShowWhileAttached() { +PopupPanel popup = createPopupPanel(); +RootPanel.get().add(popup); +popup.show(); +assertTrue(popup.isAttached()); +assertTrue(popup.isShowing()); + +popup.hide(); +assertFalse(popup.isAttached()); +assertFalse(popup.isShowing()); + } + + /** + * Test that showing a popup while it is hiding will not result in an illegal * state. */ public void testShowWhileHiding() { Index: user/src/com/google/gwt/user/client/ui/PopupPanel.java === --- user/src/com/google/gwt/user/client/ui/PopupPanel.java (revision 7922) +++ user/src/com/google/gwt/user/client/ui/PopupPanel.java (working copy) @@ -1001,6 +1001,11 @@ public void show() { if (showing) { return; +} else if (isAttached()) { + // The popup is attached directly to another panel, so we need to remove + // it from its parent before showing it. This is a weird use case, but + // since PopupPanel is a Widget, its legal. + this.removeFromParent(); } resizeAnimation.setState(true, false); } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors To unsubscribe, reply using remove me as the subject.
[gwt-contrib] Re: PopupPanel.show() can enter an invalid state if attached (issue298804)
LGTM http://gwt-code-reviews.appspot.com/298804/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors To unsubscribe, reply using remove me as the subject.
[gwt-contrib] For compatibility with linkers that don't yet understand soft (issue353801)
Reviewers: robertvawter, Description: For compatibility with linkers that don't yet understand soft permutations, don't add a :0 to the strong name of soft permutation number 0. Please review this at http://gwt-code-reviews.appspot.com/353801/show Affected files: M dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Index: dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java === --- dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java (revision 7922) +++ dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java (working copy) @@ -362,12 +362,14 @@ } else if (propMapsByPermutation.size() == 1) { // Just one distinct compilation; no need to evaluate properties text.append(strongName = ' -+ propMapsByPermutation.keySet().iterator().next() + ';); ++ propMapsByPermutation.keySet().iterator().next().getStrongName() ++ ';); } else { SetString propertiesUsed = new HashSetString(); for (PermutationId permutationId : propMapsByPermutation.keySet()) { for (MapString, String propertyMap : propMapsByPermutation.get(permutationId)) { // unflatten([v1, v2, v3], 'strongName' + ':softPermId'); +// The soft perm ID is concatenated to improve string interning text.append(unflattenKeylistIntoAnswers([); boolean needsComma = false; for (SelectionProperty p : context.getProperties()) { @@ -386,10 +388,17 @@ propertiesUsed.add(p.getName()); } -// Concatenate the soft permutation id to improve string interning text.append(], ').append(permutationId.getStrongName()).append( -' + ':).append(permutationId.getSoftPermutationId()).append( -');\n); +'); +/* + * For compatibility with older linkers, skip the soft permutation + * if it's 0 + */ +if (permutationId.getSoftPermutationId() != 0) { + text.append( + ':).append(permutationId.getSoftPermutationId()).append( + '); +} +text.append();\n); } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors To unsubscribe, reply using remove me as the subject.
[gwt-contrib] Re: For compatibility with linkers that don't yet understand soft (issue353801)
Can you review this, Bob? http://gwt-code-reviews.appspot.com/353801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: For compatibility with linkers that don't yet understand soft (issue353801)
I worry about linkers silently breaking when one that hasn't been updated for soft perms is used with soft perms, but it isn't clear how to fix that without requiring linkers to declare their support for them. LGTM http://gwt-code-reviews.appspot.com/353801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: For compatibility with linkers that don't yet understand soft (issue353801)
Thanks, John! http://gwt-code-reviews.appspot.com/353801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors To unsubscribe, reply using remove me as the subject.
[gwt-contrib] Unify temp local tracking (issue354801)
Reviewers: Lex, Description: Unifies temp local tracking under a shared base visitor. Also: - All temps now definitely get their own JDeclarationStatement inserted into the AST at the appropriate point. - Temp locals are never reused anymore; however, whenever legal we will reused names in order to produce smaller compiled output. Please review this at http://gwt-code-reviews.appspot.com/354801/show Affected files: M dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java M dev/core/src/com/google/gwt/dev/jjs/impl/FixAssignmentToUnbox.java M dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java A dev/core/src/com/google/gwt/dev/jjs/impl/TempLocalVisitor.java A dev/core/test/com/google/gwt/dev/jjs/impl/TempLocalVisitorTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7923 committed - Implement DatePickerCell and use it the MailRecipe demo...
Revision: 7923 Author: r...@google.com Date: Thu Apr 15 10:41:22 2010 Log: Implement DatePickerCell and use it the MailRecipe demo Review at http://gwt-code-reviews.appspot.com/320803 Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=7923 Added: /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/DatePickerCell.java Modified: /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/Cell.java /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/DateCell.java /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MailRecipe.java /trunk/bikeshed/war/Cookbook.css === --- /dev/null +++ /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/DatePickerCell.java Thu Apr 15 10:41:22 2010 @@ -0,0 +1,118 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.bikeshed.cells.client; + +import com.google.gwt.dom.client.Element; +import com.google.gwt.dom.client.NativeEvent; +import com.google.gwt.event.logical.shared.ValueChangeEvent; +import com.google.gwt.event.logical.shared.ValueChangeHandler; +import com.google.gwt.i18n.client.DateTimeFormat; +import com.google.gwt.user.client.ui.PopupPanel; +import com.google.gwt.user.client.ui.PopupPanel.PositionCallback; +import com.google.gwt.user.datepicker.client.DatePicker; + +import java.util.Date; + +/** + * A {...@link Cell} used to render and edit {...@link Date}s. When a cell is selected + * by clicking on it, a {...@link DatePicker} is popped up. When a date is selected + * using the DatePicker, the new date is passed to the + * {...@link ValueUpdater#update update} method of the {...@link ValueUpdater} that + * was passed to {...@link #onBrowserEvent} for the click event. Note that this + * means that the call to ValueUpdater.update will occur after onBrowserEvent + * has returned. Pressing the 'escape' key dismisses the DatePicker popup + * without calling ValueUpdater.update. + * + * p + * Each DatePickerCell has a unique DatePicker popup associated with it; thus, + * if a single DatePickerCell is used as the cell for a column in a table, only + * one entry in that column will be editable at a given time. + * + * @param V the view data type + */ +public class DatePickerCellV extends CellDate, V { + + private static final int ESCAPE = 27; + + private final DatePicker datePicker; + private final DateTimeFormat format; + private int offsetX = 10; + private int offsetY = 10; + private PopupPanel panel; + private ValueUpdaterDate, V valueUpdater; + private V viewData; + + /** + * Constructs a new DatePickerCell that uses the date/time format + * given by {...@link DateTimeFormat#getFullDateFormat}. + */ + public DatePickerCell() { +this(DateTimeFormat.getFullDateFormat()); + } + + /** + * Constructs a new DatePickerCell that uses the given date/time format. + */ + public DatePickerCell(DateTimeFormat format) { +this.format = format; + +this.datePicker = new DatePicker(); +this.panel = new PopupPanel(true, true) { + // Dismiss when escape is pressed + @Override + public boolean onKeyUpPreview(char key, int modifiers) { +if (key == ESCAPE) { + panel.hide(); +} +return true; + } +}; +panel.add(datePicker); + +// Hide the panel and call valueUpdater.update when a date is selected +datePicker.addValueChangeHandler(new ValueChangeHandlerDate() { + public void onValueChange(ValueChangeEventDate event) { +panel.hide(); +valueUpdater.update(event.getValue(), viewData); + } +}); + } + + @Override + public V onBrowserEvent(final Element parent, Date value, V viewData, + NativeEvent event, ValueUpdaterDate, V valueUpdater) { +if (event.getType().equals(click)) { + this.viewData = viewData; + this.valueUpdater = valueUpdater; + + datePicker.setValue(value); + panel.setPopupPositionAndShow(new PositionCallback() { +public void setPosition(int offsetWidth, int offsetHeight) { + panel.setPopupPosition(parent.getAbsoluteLeft() + offsetX, + parent.getAbsoluteTop() + offsetY); +} + }); +} +return viewData; + } + + @Override + public void render(Date value, V viewData, StringBuilder sb) { +if (value != null) { + sb.append(format.format(value)); +} + }
[gwt-contrib] [google-web-toolkit] r7924 committed - Fixes a bug in PopupPanel where it can enter an invalid state if it is...
Revision: 7924 Author: jlaba...@google.com Date: Thu Apr 15 11:30:12 2010 Log: Fixes a bug in PopupPanel where it can enter an invalid state if it is shown while attached to a panel. http://gwt-code-reviews.appspot.com/298804/show Review by: sp...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=7924 Modified: /trunk/user/src/com/google/gwt/user/client/ui/PopupPanel.java /trunk/user/test/com/google/gwt/user/client/ui/PopupTest.java === --- /trunk/user/src/com/google/gwt/user/client/ui/PopupPanel.java Thu Mar 18 11:37:10 2010 +++ /trunk/user/src/com/google/gwt/user/client/ui/PopupPanel.java Thu Apr 15 11:30:12 2010 @@ -1001,6 +1001,11 @@ public void show() { if (showing) { return; +} else if (isAttached()) { + // The popup is attached directly to another panel, so we need to remove + // it from its parent before showing it. This is a weird use case, but + // since PopupPanel is a Widget, its legal. + this.removeFromParent(); } resizeAnimation.setState(true, false); } === --- /trunk/user/test/com/google/gwt/user/client/ui/PopupTest.java Fri Apr 2 04:07:16 2010 +++ /trunk/user/test/com/google/gwt/user/client/ui/PopupTest.java Thu Apr 15 11:30:12 2010 @@ -428,7 +428,23 @@ } /** - * Test the showing a popup while it is hiding will not result in an illegal + * Test that showing a popup while it is attached does not put it in an + * invalid state. + */ + public void testShowWhileAttached() { +PopupPanel popup = createPopupPanel(); +RootPanel.get().add(popup); +popup.show(); +assertTrue(popup.isAttached()); +assertTrue(popup.isShowing()); + +popup.hide(); +assertFalse(popup.isAttached()); +assertFalse(popup.isShowing()); + } + + /** + * Test that showing a popup while it is hiding will not result in an illegal * state. */ public void testShowWhileHiding() { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7925 committed - For compatibility with linkers that don't yet understand soft...
Revision: 7925 Author: sp...@google.com Date: Thu Apr 15 12:40:56 2010 Log: For compatibility with linkers that don't yet understand soft permutations, don't add a :0 to the strong name of soft permutation number 0. Review at http://gwt-code-reviews.appspot.com/353801 Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=7925 Modified: /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java === --- /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Tue Mar 30 12:06:35 2010 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Thu Apr 15 12:40:56 2010 @@ -362,12 +362,14 @@ } else if (propMapsByPermutation.size() == 1) { // Just one distinct compilation; no need to evaluate properties text.append(strongName = ' -+ propMapsByPermutation.keySet().iterator().next() + ';); ++ propMapsByPermutation.keySet().iterator().next().getStrongName() ++ ';); } else { SetString propertiesUsed = new HashSetString(); for (PermutationId permutationId : propMapsByPermutation.keySet()) { for (MapString, String propertyMap : propMapsByPermutation.get(permutationId)) { // unflatten([v1, v2, v3], 'strongName' + ':softPermId'); +// The soft perm ID is concatenated to improve string interning text.append(unflattenKeylistIntoAnswers([); boolean needsComma = false; for (SelectionProperty p : context.getProperties()) { @@ -386,10 +388,17 @@ propertiesUsed.add(p.getName()); } -// Concatenate the soft permutation id to improve string interning text.append(], ').append(permutationId.getStrongName()).append( -' + ':).append(permutationId.getSoftPermutationId()).append( -');\n); +'); +/* + * For compatibility with older linkers, skip the soft permutation + * if it's 0 + */ +if (permutationId.getSoftPermutationId() != 0) { + text.append( + ':).append(permutationId.getSoftPermutationId()).append( + '); +} +text.append();\n); } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7926 committed - Cherry picking r7924 from trunk, with the following command:...
Revision: 7926 Author: sp...@google.com Date: Thu Apr 15 16:35:46 2010 Log: Cherry picking r7924 from trunk, with the following command: svn merge --ignore-ancestry -r 7923:7924 https://google-web-toolkit.googlecode.com/svn/trunk . This has PopupPanel handle being attached before it is shown. http://code.google.com/p/google-web-toolkit/source/detail?r=7926 Modified: /branches/snapshot-2010.03.29-r7809/user/src/com/google/gwt/user/client/ui/PopupPanel.java /branches/snapshot-2010.03.29-r7809/user/test/com/google/gwt/user/client/ui/PopupTest.java === --- /branches/snapshot-2010.03.29-r7809/user/src/com/google/gwt/user/client/ui/PopupPanel.java Thu Mar 18 11:37:10 2010 +++ /branches/snapshot-2010.03.29-r7809/user/src/com/google/gwt/user/client/ui/PopupPanel.java Thu Apr 15 16:35:46 2010 @@ -1001,6 +1001,11 @@ public void show() { if (showing) { return; +} else if (isAttached()) { + // The popup is attached directly to another panel, so we need to remove + // it from its parent before showing it. This is a weird use case, but + // since PopupPanel is a Widget, its legal. + this.removeFromParent(); } resizeAnimation.setState(true, false); } === --- /branches/snapshot-2010.03.29-r7809/user/test/com/google/gwt/user/client/ui/PopupTest.java Thu Mar 25 10:46:07 2010 +++ /branches/snapshot-2010.03.29-r7809/user/test/com/google/gwt/user/client/ui/PopupTest.java Thu Apr 15 16:35:46 2010 @@ -425,7 +425,23 @@ } /** - * Test the showing a popup while it is hiding will not result in an illegal + * Test that showing a popup while it is attached does not put it in an + * invalid state. + */ + public void testShowWhileAttached() { +PopupPanel popup = createPopupPanel(); +RootPanel.get().add(popup); +popup.show(); +assertTrue(popup.isAttached()); +assertTrue(popup.isShowing()); + +popup.hide(); +assertFalse(popup.isAttached()); +assertFalse(popup.isShowing()); + } + + /** + * Test that showing a popup while it is hiding will not result in an illegal * state. */ public void testShowWhileHiding() { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7927 committed - Cherry picks r7824 from trunk:...
Revision: 7927 Author: sp...@google.com Date: Thu Apr 15 16:36:50 2010 Log: Cherry picks r7824 from trunk: svn merge --ignore-ancestry -r 7823:7824 https://google-web-toolkit.googlecode.com/svn/trunk . This fixes the timestamp on selection scripts. http://code.google.com/p/google-web-toolkit/source/detail?r=7927 Modified: /branches/snapshot-2010.03.29-r7809/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java /branches/snapshot-2010.03.29-r7809/user/test/com/google/gwt/core/ext/linker/impl/SelectionScriptLinkerUnitTest.java === --- /branches/snapshot-2010.03.29-r7809/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Mon Mar 29 05:13:55 2010 +++ /branches/snapshot-2010.03.29-r7809/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Thu Apr 15 16:36:50 2010 @@ -216,7 +216,7 @@ * mode, we just set it to now. */ long lastModified; -if (artifacts.find(CompilationResult.class).size() == 0) { +if (propMapsByPermutation.isEmpty()) { lastModified = context.getModuleLastModified(); } else { lastModified = System.currentTimeMillis(); === --- /branches/snapshot-2010.03.29-r7809/user/test/com/google/gwt/core/ext/linker/impl/SelectionScriptLinkerUnitTest.java Thu Mar 25 12:00:47 2010 +++ /branches/snapshot-2010.03.29-r7809/user/test/com/google/gwt/core/ext/linker/impl/SelectionScriptLinkerUnitTest.java Thu Apr 15 16:36:50 2010 @@ -22,7 +22,9 @@ import com.google.gwt.core.ext.linker.Artifact; import com.google.gwt.core.ext.linker.ArtifactSet; import com.google.gwt.core.ext.linker.ConfigurationProperty; +import com.google.gwt.core.ext.linker.EmittedArtifact; import com.google.gwt.core.ext.linker.SelectionProperty; +import com.google.gwt.core.ext.linker.Shardable; import com.google.gwt.core.ext.linker.StatementRanges; import com.google.gwt.dev.Permutation; import com.google.gwt.dev.cfg.BindingProperty; @@ -43,54 +45,22 @@ * A regular JUnit test case for {...@link SelectionScriptLinker}. */ public class SelectionScriptLinkerUnitTest extends TestCase { - private static class NonShardableSelectionScriptLinker extends - SelectionScriptLinker { -@Override -protected String getCompilationExtension(TreeLogger logger, -LinkerContext context) { - return .js; -} - -@Override -protected String getModulePrefix(TreeLogger logger, LinkerContext context, -String strongName) { - return MODULE_PREFIX; -} - -@Override -protected String getModuleSuffix(TreeLogger logger, LinkerContext context) { - return MODULE_SUFFIX; -} - -@Override -protected String getSelectionScriptTemplate(TreeLogger logger, -LinkerContext context) { - return SelectionScriptLinkerUnitTest.class.getPackage().getName().replace( - '.', '/') - + /MockTemplate.js; -} - -@Override -public String getDescription() { - return getClass().getName(); -} - } - private static class MockLinkerContext implements LinkerContext { + public SortedSetConfigurationProperty getConfigurationProperties() { return new TreeSetConfigurationProperty(); } public String getModuleFunctionName() { - return test; + return MOCK_MODULE_NAME; } public long getModuleLastModified() { - return 0; + return MOCK_MODULE_LAST_MODIFIED; } public String getModuleName() { - return test; + return MOCK_MODULE_NAME; } public SortedSetSelectionProperty getProperties() { @@ -160,6 +130,48 @@ return 0; } } + + private static class NonShardableSelectionScriptLinker extends + SelectionScriptLinker { +@Override +public String getDescription() { + return getClass().getName(); +} + +@Override +protected String getCompilationExtension(TreeLogger logger, +LinkerContext context) { + return .js; +} + +@Override +protected String getModulePrefix(TreeLogger logger, LinkerContext context, +String strongName) { + return MODULE_PREFIX; +} + +@Override +protected String getModuleSuffix(TreeLogger logger, LinkerContext context) { + return MODULE_SUFFIX; +} + +@Override +protected String getSelectionScriptTemplate(TreeLogger logger, +LinkerContext context) { + return SelectionScriptLinkerUnitTest.class.getPackage().getName().replace( + '.', '/') + + /MockTemplate.js; +} + } + + @Shardable + private static class ShardableSelectionScriptLinker extends + NonShardableSelectionScriptLinker { + } + + private static final long MOCK_MODULE_LAST_MODIFIED = 1234; + + private static final String MOCK_MODULE_NAME = test; private static byte[] getBytes(String string) { try { @@ -177,10 +189,7 @@ throws
[gwt-contrib] Re: PopupPanel.show() can enter an invalid state if attached (issue298804)
committed as r7294 http://gwt-code-reviews.appspot.com/298804/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7928 committed - Cherrypicking r7925 from trunk:...
Revision: 7928 Author: sp...@google.com Date: Thu Apr 15 16:37:58 2010 Log: Cherrypicking r7925 from trunk: svn merge --ignore-ancestry -r 7924:7925 https://google-web-toolkit.googlecode.com/svn/trunk . This improves backward compatibility for the soft permutation changes. http://code.google.com/p/google-web-toolkit/source/detail?r=7928 Modified: /branches/snapshot-2010.03.29-r7809/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java === --- /branches/snapshot-2010.03.29-r7809/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Thu Apr 15 16:36:50 2010 +++ /branches/snapshot-2010.03.29-r7809/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Thu Apr 15 16:37:58 2010 @@ -362,12 +362,14 @@ } else if (propMapsByPermutation.size() == 1) { // Just one distinct compilation; no need to evaluate properties text.append(strongName = ' -+ propMapsByPermutation.keySet().iterator().next() + ';); ++ propMapsByPermutation.keySet().iterator().next().getStrongName() ++ ';); } else { SetString propertiesUsed = new HashSetString(); for (PermutationId permutationId : propMapsByPermutation.keySet()) { for (MapString, String propertyMap : propMapsByPermutation.get(permutationId)) { // unflatten([v1, v2, v3], 'strongName' + ':softPermId'); +// The soft perm ID is concatenated to improve string interning text.append(unflattenKeylistIntoAnswers([); boolean needsComma = false; for (SelectionProperty p : context.getProperties()) { @@ -386,10 +388,17 @@ propertiesUsed.add(p.getName()); } -// Concatenate the soft permutation id to improve string interning text.append(], ').append(permutationId.getStrongName()).append( -' + ':).append(permutationId.getSoftPermutationId()).append( -');\n); +'); +/* + * For compatibility with older linkers, skip the soft permutation + * if it's 0 + */ +if (permutationId.getSoftPermutationId() != 0) { + text.append( + ':).append(permutationId.getSoftPermutationId()).append( + '); +} +text.append();\n); } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors