Re: HeaderPanel not setting height of the Content widget
See this thread for some more discussion on this issue and another workaround method: https://groups.google.com/d/msg/google-web-toolkit/Fx6uZyaQxDA/zQxNUehfR1sJ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: layout panel problem, invisible panels
I do not use UiBinder, but I have come across this problem as well, and have found a solution that works for me. The problem is that HeaderPanel only sets the size of the contentContainer, it does nothing with the contentContainer’s child widget (HeaderPanel#getContentWidget()). Aiden’s suggestion of using ResizeLayoutPanel as the content widget will not work for the same reason (I tried :P). So, my fix is to always wrap the content widget in a SimpleLayoutPanel that fills the contentContainer: public class HeaderLayoutPanel extends HeaderPanel implements ProvidesResize{ @Override public void setContentWidget(Widget w){ SimpleLayoutPanel panel = new SimpleLayoutPanel(); panel.setSize(100%, 100%); panel.setWidget(w); super.setContentWidget(panel); } } setSize(100%, 100%) works because the contentContainer’s dimensions are always set in px. Also, remember that this needs to be added to a LayoutPanel for it to fill all available space. I called this class ‘HeaderLayoutPanel’ and had it implement the ProvidesResize marker interface because I feel that the SimpleLayoutPanel wrapper makes this a ‘true’ LayoutPanel, since it does fulfill the onResize() contract for the content widget. Hope that helps! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: MVP : What technique do you use to compose view interface ?
Hi Hermann, What I do is try to keep the interface elements completely contained in the view and have the presenter (activity) keep track of state and simply make view.update() calls (with no arguments). Let me illustrate using your Button example. I decided to make your button a “submit” button: When the activity starts, the button is enabled and it's text is “Submit”. When the button is clicked, it says “Submitting...” and is disabled. interface View { void init(); void update(); void setActivity(Activity activity); interface Activity { boolean isEnabled(); String getText(); void buttonClicked(); } } class MyActivity implements View.Activity { private final View view; private boolean enabled; private String text; public MyActivity(View view){ this.view = view; } public void start(){ view.setActivity(this); view.init(); setSubmitting(false); } public void setSubmitting(boolean submitting){ this.enabled = !submitting; this.text = submitting ? Submitting… : Submit; view.update(); } @Override public boolean isEnabled(){ return enabled; } @Override public String getText(){ return text; } @Override public void buttonClicked(){ setSubmitting(true); } } class MyView implements View, ClickHandler { private Activity activity; private Button button; @Override public void init(){ button = new Button(); button.addClickHandler(this); } @Override public void setActivity(Activity activity){ this.activity = activity; } @Override public void onClick(ClickEvent event){ if (event.getSource() == button) { activity.buttonClicked(); } } @Override public void update(){ button.setText(activity.getText()); button.setEnabled(activity.isEnabled()); } } Note that I've put the ClickHandler completely in the View and the Activity only deals with what should happen when the button is clicked. I think this is a better separation of presentation and business logic. Hope that helps! Would love to know what you think. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/lq1O7-tIEqkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there any way to remove the sort arrow decorator in a header of a CellTable?
I don't think this will work, the arrow icon is added by wrapping the header Cell in an IconCellDecoratorhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/IconCellDecorator.html(in AbstractCellTable.getSortDecorator(), which is called in AbstractCellTable.createHeaders(), both private methods). I have a similar issue in that I want to move the icon to the right of the label, so I also need to target the icon. Xavier, you could try using CSS to hide the icon. Just as you've replaced the icon resources in you TableResources interface, you can replace and extend the CSS file: public interface TableResources extends CellTable.Resources { @Source(up.png) ImageResource cellTableSortAscending(); @Source(down.png) ImageResource cellTableSortDescending(); @Source(MyCellTable.css) CellTable.Style cellTableStyle(); } And in MyCellTable.css: ... /* hack to remove sort icon */ .cellTableSortedHeaderAscending div, .cellTableSortedHeaderDescending div { padding-left: 0; } .cellTableSortedHeaderAscending div div:first-child, .cellTableSortedHeaderDescending div div:first-child { display: none; } ... The CSS above undoes the cell decorator's padding and hides the icon. If you need help with getting the CSS to work the first place to look is the ClientBundle dev guidehttps://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle . On Sunday, March 11, 2012 7:33:16 AM UTC-4, Olivier TURPIN wrote: Hello Xavier You should take a look at Header class (in com.google.gwt.user.cellview.client package) by extending it you'll have access to the Template in use, maybe you can declare your own or just override render method and inject your code to the SafeHtmlBuilder @Override public void render(Context context, SafeHtmlBuilder sb) { // do what you want with the builder // sb.append(); } Olivier. Le samedi 10 mars 2012 12:35:51 UTC+1, Xavier S. a écrit : Hello Jose, Thanks for your answer! I wasn't aware of the CellTable.Resources classes, it seems to fit my needs. But (there's always a but :) ). The generated html code for that sort arrow is the following : div style=left:0px;margin-top:-4px;position:absolute;top:50%;line-height:0px; img onload=this.__gwtLastUnhandledEvent=quot;loadquot;; src= http://127.0.0.1:/main/clear.cache.gif; style=width: 11px; height: 7px; background: url(data:image/png;base64,SOMEBASE64CODE) no-repeat 0px 0px; border=0 /div And I would like to change it to something like this : div style=left:0px;margin-top:-4px;position:absolute;top: 30%;line-height:0px; i class=icon-arrow-up/i /div So mostly change the img tag by a i one where I can use twitter bootstrap css icons and maybe change the top style arg of the enclosing div. Is there any way to do it with GWT? Thanks again and best regards, Xavier On Saturday, March 10, 2012 6:15:45 AM UTC+1, JoseM wrote: You can control what to show for that with the CellTable Resources. You would have to pass in your own resources to the CellTable constructor that overrides the sort style to display what you want. On Sunday, March 11, 2012 7:33:16 AM UTC-4, Olivier TURPIN wrote: Hello Xavier You should take a look at Header class (in com.google.gwt.user.cellview.client package) by extending it you'll have access to the Template in use, maybe you can declare your own or just override render method and inject your code to the SafeHtmlBuilder @Override public void render(Context context, SafeHtmlBuilder sb) { // do what you want with the builder // sb.append(); } Olivier. Le samedi 10 mars 2012 12:35:51 UTC+1, Xavier S. a écrit : Hello Jose, Thanks for your answer! I wasn't aware of the CellTable.Resources classes, it seems to fit my needs. But (there's always a but :) ). The generated html code for that sort arrow is the following : div style=left:0px;margin-top:-4px;position:absolute;top:50%;line-height:0px; img onload=this.__gwtLastUnhandledEvent=quot;loadquot;; src= http://127.0.0.1:/main/clear.cache.gif; style=width: 11px; height: 7px; background: url(data:image/png;base64,SOMEBASE64CODE) no-repeat 0px 0px; border=0 /div And I would like to change it to something like this : div style=left:0px;margin-top:-4px;position:absolute;top: 30%;line-height:0px; i class=icon-arrow-up/i /div So mostly change the img tag by a i one where I can use twitter bootstrap css icons and maybe change the top style arg of the enclosing div. Is there any way to do it with GWT? Thanks again and best regards, Xavier On Saturday, March 10, 2012 6:15:45 AM UTC+1, JoseM wrote: You can control what to show for that with the CellTable Resources. You would have to pass in your own resources to the CellTable constructor that overrides the sort style to display what you want. -- You received this message because you are subscribed to the
Re: Is there any way to remove the sort arrow decorator in a header of a CellTable?
Sorry, you need to added !important because the styles you're overriding are defined inline: /* hack to remove sort icon */ . cellTableSortedHeaderAscending div, .cellTableSortedHeaderDescending div { padding-left: 0* !important*; } .cellTableSortedHeaderAscending div div:first-child, .cellTableSortedHeaderDescending div div:first-child { display: none* !important*; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HkaaW7oebKMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.4.0 - Run Validation Tool error
Hi Has anyone seen the below error java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.abc.bbb.DashboardRequestFactory RequestFactory type INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 2967 ms Jan 9, 2012 5:44:18 PM com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost SEVERE: Unexpected error java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.abc.bbb.DashboardRequestFactory RequestFactory type at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator $Builder.load(Deobfuscator.java:59) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.updateDeobfuscator(ResolverServiceLayer.java: 43) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveRequestFactory(ResolverServiceLayer.java: 176) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRequestFactory(ServiceLayerDecorator.java: 172) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRequestFactory(ServiceLayerDecorator.java: 172) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRequestFactory(ServiceLayerDecorator.java: 172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(ServiceLayerCache.java: 233) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.resolveRequestFactory(ServiceLayerCache.java: 198) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java: 207) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java: 127) at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java: 133) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 637) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 859) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint $Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.4.0 - Run Validation Tool error
Hi Has anyone seen the below error java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.abc.bbb.DashboardRequestFactory RequestFactory type INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 2967 ms Jan 9, 2012 5:44:18 PM com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost SEVERE: Unexpected error java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.abc.bbb.DashboardRequestFactory RequestFactory type at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator $Builder.load(Deobfuscator.java:59) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.updateDeobfuscator(ResolverServiceLayer.java: 43) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveRequestFactory(ResolverServiceLayer.java: 176) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRequestFactory(ServiceLayerDecorator.java: 172) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRequestFactory(ServiceLayerDecorator.java: 172) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRequestFactory(ServiceLayerDecorator.java: 172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(ServiceLayerCache.java: 233) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.resolveRequestFactory(ServiceLayerCache.java: 198) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java: 207) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java: 127) at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java: 133) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 637) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 859) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint $Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How do I use a boolean parameter in the Message.Select annotation?
According to the Messages.Select javadochttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/i18n/client/Messages.Select.htmlI can use a boolean-type parameter, but I can't seem to get it to work. For example: @DefaultMessage({1} just did something.) @AlternateMessage({ true, You just did something in another session. }) String contextInvalidTherapyStopped(@Select boolean me, @Optional String userName); I've tried using TRUE and using Boolean instead of boolean and nothing has worked. I do not want to use an enum if I can avoid it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Mveiq4jKvkIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I use a boolean parameter in the Message.Select annotation?
Hmm, may be related to http://code.google.com/p/google-web-toolkit/issues/detail?id=6426 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DE-E-Kng9EcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
multiple gwt modules
I want to able to load a gwt module from another gwt module for eg: if i click a button ,the new module should be loaded in a new browser ,with the same session attributes. how do we communicate between modules i.e . if i want to pass some information from one module to another and vice versa . any help is greatly appreicated -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: multiple gwt modules
hi juan! I'm aware of that ! I want to be able to load a module in a new browser window from another module by some action ...say by clicking a button On Aug 11, 10:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You sure use the module: inherits name='com.google.gwt.user.User' / This module is define in gwt-user.jar. Check how is it do. Is this do you need? 2011/8/11 Daemon Zak saje...@gmail.com I want to able to load a gwt module from another gwt module for eg: if i click a button ,the new module should be loaded in a new browser ,with the same session attributes. how do we communicate between modules i.e . if i want to pass some information from one module to another and vice versa . any help is greatly appreicated -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and CSS3 Gradient
Not sure if this is the best solution, but a quick fix is to wrap it in literal(), so: background-image: literal(-webkit-gradient(...)); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Switching an image by using OnMouseOverHandler
Hi Arilene- You need to set the original image with a MouseOutHandler as well. img_p1.addMouseOverHandler(new MouseOverHandler() { @Override public void onMouseOver(MouseOverEvent event) { img_p1.setImage(img, /icons/grafo.png); } }); img_p1.addMouseOutHandler(new MouseOutHandler() { @Override public void onMouseOut(MouseOutEvent event) { img_p1.setImage(img, /icons/grafo1.png); } }); Since you might want to do this often, it might make sense to make your own HoverHandler: public interface HoverHandler extends MouseOverHandler, MouseOutHandler {} -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable Column width
Definitely use the built-in methods in GWT 2.2, as Thomas linked. However, If you cant upgrade for some reason, this snippet served me well: public class MyCellTable extends CellTable { // ... other methods ... public void setColumnWidths(String... widths){ NodeListElement colgroups = TableElement.as(getElement()) .getElementsByTagName(colgroup); if(colgroups.getLength() == 1){ TableColElement cge = TableColElement.as(colgroups.getItem(0)); NodeListElement cols = cge.getElementsByTagName(col); for(int i = 0; i widths.length; i++){ TableColElement column = null; if(cols.getLength() i){ column = TableColElement.as(cols.getItem(i)); }else{ column = cge.appendChild(Document.get().createColElement()); } column.setWidth(widths[i]); } } } } Usage: MyCellTable table = new MyCellTable(); table.addColumn(new Column()); table.addColumn(new Column()); table.setColumnWidths(100px, 50%); I believe I got this from someone else in this group, but I forget who (sorry!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable: Unable to combine CSS-selectors
Yeah, with a space its a decendent selector, without the space it's a multiple class selector. Quirksmode is the best place to check browser compatibility with CSS selectors/properties: http://www.quirksmode.org/css/contents.html http://www.quirksmode.org/css/multipleclasses.html http://www.quirksmode.org/css/firstchild.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make a TextArea auto-growing...?
Hey, I've taken a shot at this problem with pretty good results. Check out the code here: https://gist.github.com/833873 The textarea will stretch pretty reliably as the user types/cuts/pastes text. The way it does this is by maintaining an internal representation of characters-per-line. The only caveat is that you need a PX_PER_CHAR constant, so if the user changes font size or you use a variable-width font, it wont behave as expected. As for calculating the initial size, with this widget you can call setText(getText()) (or add your own init() method that does the same). Hope this helps! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Celltable rows selection with focus
These docs should help you: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#selection On Jan 31, 11:42 am, Deepak Singh deepaksingh...@gmail.com wrote: Any suggestion pls... On Sun, Jan 30, 2011 at 4:00 PM, Deepak Singh deepaksingh...@gmail.comwrote: Hi, I am using GWT 2.1.1 and have one celltable working fine. I want to provide better user experience so i need to implement the following feature, I want the rows to be selected with focus and then get the selected object for further action. when the table is created and appeared first time, the focus should automatically go to first row and the row should automatically be selected and as focus moves through rows by using arrow keys, corresponding rows should be selected and i should be able to get the selected object with focus moving on. I tried to add FocusHandler to celltable but could not find any suitable API for this. Suggest some ways to acheive this. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Manipulating UiBinder backed DockLayoutPanel regions with Java code
From http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Design (scroll down to Child Widget Visibility): The Layout class has to wrap each of its child elements in a container element in order to work properly. One implication of this is that, when you call UIObject.setVisible(boolean) on a widget within a LayoutPanel, it won't behave quite as expected: the widget will indeed be made invisible, but it will tend to consume mouse events (actually, it's the container element that is doing so). To work around this, you can get the container element directly using LayoutPanel.getWidgetContainerElement(Widget), and set its visibility directly: LayoutPanel panel = ...; Widget child; panel.add(child); UIObject.setVisible(panel.getWidgetContainerElement(child), false); Hope that helps! On Nov 18, 1:48 pm, zixzigma zixzi...@gmail.com wrote: I tried that, but it appears although westPanel becomes hidden (as expected setVisible(False)), the west region still takes up space. My guess is since in UiBinder regions must be explicitly sized, eg: g:west size='6' hiding/removing a SimplePanel within a region does not mean the region itself is hidden//removed ? -- You received 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 Sprite adds height attribute in the style class
Because IE6/7 does not support the background-clip css property On May 17, 6:28 pm, Thomas Broyer t.bro...@gmail.com wrote: On 17 mai, 10:40, Tobias Herrmann t.herrm...@alkacon.com wrote: Hi there, I have to disagree with Thomas. You only need to be aware that the @sprite will set these dimensions. You can override this by setting the height or width yourself in the CSS rule where the @sprite is used. Like this: @sprite div.imageClass{ gwt-image: yourImage; height: auto; width: 10px; } In this case, no other height and width properties will be set by gwt. Doing it this way, you can still take advantage of the improved performance the gwt sprite mechanism provides. ...but in IE6/7 you might see other images from the sprite image (other browsers all use data: URLs, unless you tell them to not inline the resources) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group 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: GWT Sprite adds height attribute in the style class
Thomas, does this mean that @sprite should only be used when it's okay for the element to be constrained to the same dimensions (or just height or width in the case of repeated backgrounds) as the image? For example, if we went with Stefan's proposal of overriding the height rule (let's say height: auto), would the other images in the image strip become visible? On May 15, 4:13 pm, Thomas Broyer t.bro...@gmail.com wrote: On 14 mai, 22:13, Vaibhav vkaka...@gmail.com wrote: Hi, I have implemented ClientBundle in my application and so far it is working fine until I came across this issue. I have a css class which has a background image so I defined it as a sprite in my css. I am using this css class on Button and it looks okay. But I lost vertical text alignment inside Button. I did little research and I found height attribute is added by GWT compiler for the height of the image and that has disturbed vertical alignment of the text inside button. When I removed height in firebug it looks all right. Is there any way to workaround this issue? It actually comes from the definition of CSS sprite itself. You'd rather use a DataResource than an ImageResource, with a @url instead of @sprite.http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm... -- You received 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: GWT Sprite adds height attribute in the style class
Thanks, that clears things up for me (and I hope Vaibhav as well). I havent made the UiBinder/ClientBundle jump yet, but in reading the documentation I thought that might be an issue. Good to know DataResource can fill that need. On May 16, 5:31 pm, Thomas Broyer t.bro...@gmail.com wrote: On 16 mai, 21:42, Zak zakn...@gmail.com wrote: Thomas, does this mean that @sprite should only be used when it's okay for the element to be constrained to the same dimensions (or just height or width in the case of repeated backgrounds) as the image? For Yes, just as if you used an Image (withou setUrl or an ImageBundle) example, if we went with Stefan's proposal of overriding the height rule (let's say height: auto), would the other images in the image strip become visible? They could (in IE6/7, and/or depending on ClientBundle configuration/ deferred-binding properties) -- You received 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: Placing xxx.ui.xml files in different packages than counterpart Java files
Perhaps you can use the @UiTemplate annotation? Check out the very bottom of http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html I can't find any documentation about the specifics of this, but it looks promising. On May 11, 2:51 pm, Yaakov Chaikin yaakov.chai...@gmail.com wrote: Hi Sri, This wouldn't really work for me as we are using maven and maven has specific standard directory structure. I guess, I could modify the pom.xml to see those additional directories as source directories as well, but all that work in maven that would kinda defeat the purpose for me, i.e., it would now move the mess to maven and having to deal with maven over this is not worth it for us at this point. I just want to know if it's possible to do this with pure GWT solution or not. Anyone know? Thanks, Yaakov. On Tue, May 11, 2010 at 2:39 PM, Sripathi Krishnan sripathi.krish...@gmail.com wrote: If you just want to keep your java, css and ui.xml code in different folders, there's an easier technique. Create two folders parallel to src - uibinder and css. Or whatever you want to name it. Then add these folders to the sourcepath in eclipse. These three folders should have the same package hierarchy, so GWT will be able to find ui.xml and css files without any problem. In our project, the above convention helps us to separate ui code from java code. Keeps the ui folks from stepping over developers toes. --Sri On 11 May 2010 21:23, Yaakov yaakov.chai...@gmail.com wrote: Hi, Does anyone know if there is a way to place the ui.xml files in a separate from its Java counterpart file package? What I have to have is essentially the following package structure: view - All Java uibinder classes view.uibinder - All .ui.xml files view.uibinder.resources - All .css files. I found the @UiTemplate annotation that allowed me to successfully move the ui.xml files into the view.uibinder package and just refer to those in the Java file with @UiTemplate(uibinder/someView.ui.xml). Unfortunately, all the references to the resources, although showing no errors in Eclipse, start breaking on GWT compile. So, for example, if I have the following in my ui.xml: ui:style field='myStyle' src='resources/style.css' / When compiled, the error says that it can't find the style when lookin in view/resources/styles.css. Note the lack of uibinder directory in the error message! Upon further testing, it seems clear that when the ui.xml files gets ingested into its Java counter part, it copies that 'src' path verbatum, without adjusting it first. I know this because if I put ../ resources/style.css, the error message will come with that it can't find the path and show that it's looking in view/../resources/ style.css Is there some annotation or some flag I am supposed to provide to get this to work or is the location of the .ui.xml file forever stuck with the location of its counterpart Java file? Thanks, Yaakov. -- You received 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. -- You received 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: Devmode PushButton error when loading module in IE7
Anyone have any ideas? Any clue as to even the general source of the problem (running in a vm, gwt devmode code, not using the google eclipse plugin, my code)? Need more info from me? Again, here are the configurations I've tested: Error: IE7 devmode, IE8 devmode Works: IE7 webmode, IE8 webmode, FF3.6 dev/webmode, Chrome/Win dev/ webmode, Chrome/Mac dev/webmode On Mar 30, 1:00 pm, Zak zakn...@gmail.com wrote: When trying to load my app in IE7 Devmode, I receive the following error (package name changed to protect the innocent): 00:02:20.199 [ERROR] Unable to load module entry point class com.mydomain.myapp.client.MyModule (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't support this action number: -2146827843 description: Object doesn't support this action at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.dom.client.DOMImpl.createButtonElement(DOMImpl.java) at com.google.gwt.dom.client.Document$.createPushButtonElement$ (Document.java:834) at com.google.gwt.user.client.ui.Button.init(Button.java:69) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.init(MyButton.java: 44) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.init(MyButton.java: 65) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.init(MyButton.java: 59) at com.mydomain.myapp.client.ui.login.LoginPage.init(LoginPage.java: 30) at com.mydomain.myapp.client.MyModule.clinit(MyModule.java:41) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java: 580) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:348) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:637) The LoginPage has one MyButton (which extends com.google.gwt.user.client.ui.Button). The error is thrown when ` new Button() ` is invoked in MyButton's constructor call to super(). The last line of non-native code is Document.get().createPushButtonElement(). I'm running devmode using Eclipse and Mac OS X 10.6.2. I am not using the Google Eclipse Plugin (benefits do not justify the slowdown). I recently set up a Windows XP vm via VMWare Fusion 3, and when I tried to load my app in the vm's IE7, Devmode received the connection but my module failed to load with the above error. It should be noted that Chrome is also installed on the XP vm, and the app loaded fine there. Both browsers have the latest gwt dev plugin. Also, the fully deployed app running on tomcat works just fine in IE7. This is just a devmode issue. This seems like a bug with devmode but I wanted to post here first (as opposed to the issue tracker) in case this is an issue on my end. Thanks, Zak -- You received 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.
Devmode PushButton error when loading module in IE7
When trying to load my app in IE7 Devmode, I receive the following error (package name changed to protect the innocent): 00:02:20.199 [ERROR] Unable to load module entry point class com.mydomain.myapp.client.MyModule (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't support this action number: -2146827843 description: Object doesn't support this action at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.dom.client.DOMImpl.createButtonElement(DOMImpl.java) at com.google.gwt.dom.client.Document$.createPushButtonElement$ (Document.java:834) at com.google.gwt.user.client.ui.Button.init(Button.java:69) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.init(MyButton.java: 44) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.init(MyButton.java: 65) at com.mydomain.myapp.client.ui.widgets.buttons.MyButton.init(MyButton.java: 59) at com.mydomain.myapp.client.ui.login.LoginPage.init(LoginPage.java: 30) at com.mydomain.myapp.client.MyModule.clinit(MyModule.java:41) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java: 580) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:348) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:637) The LoginPage has one MyButton (which extends com.google.gwt.user.client.ui.Button). The error is thrown when ` new Button() ` is invoked in MyButton's constructor call to super(). The last line of non-native code is Document.get().createPushButtonElement(). I'm running devmode using Eclipse and Mac OS X 10.6.2. I am not using the Google Eclipse Plugin (benefits do not justify the slowdown). I recently set up a Windows XP vm via VMWare Fusion 3, and when I tried to load my app in the vm's IE7, Devmode received the connection but my module failed to load with the above error. It should be noted that Chrome is also installed on the XP vm, and the app loaded fine there. Both browsers have the latest gwt dev plugin. Also, the fully deployed app running on tomcat works just fine in IE7. This is just a devmode issue. This seems like a bug with devmode but I wanted to post here first (as opposed to the issue tracker) in case this is an issue on my end. Thanks, Zak -- You received 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: Google Plugin for Eclipse 1.3 ignores WTP web directory
Hi Keith- We're also hurtin from the absolute ${workspace_loc} path. Looking forward to the fix! On Mar 18, 5:31 pm, Keith Platfoot kplatf...@google.com wrote: Hi Michail, I've confirmed that this is a bug in 1.3: a directory browse dialog *should*be appearing when you launch, to ask for a WAR directory. However, it appears that this only happens when you create a new launch configuration from within the Run/Debug Configurations dialog. If you delete the existing launch configuration and then right-click the project and select Run As Web Application, you should see the WAR directory prompt as expected (at least the first time... after that the -war argument should be persisted). Also, regarding the use of relative WAR directory paths: the lastWarOutDir setting is only used for convenience as an initial path when we display a directory browse dialog for selecting the WAR directory. If you want to specify the WAR directory argument in a launch configuration as a workspace-relative path, you should be able to use something like this: -war ${workspace_loc}/path/to/war However*,* I say *should* be able to, because unfortunately there is another bug in 1.3 that prevents that variable from being resolved. The good news is that* **we will release a fix tomorrow to resolve both of these bugs*, as well as the auto-escaping bug on Windows (http://code.google.com/p/google-web-toolkit/issues/detail?id=4762). Keith On Wed, Mar 17, 2010 at 6:53 AM, Michail Prusakov michail.prusa...@gmail.com wrote: I've updated the plugin and while trying out the new stuff noticed that the plugin seems to ignore the web directory name. Here is what I've done: (for the record I am using eclipse galileo SR2) 1) created a wtp project with a default content directory (WebContent) 2) checked Use Google Web Toolkit 3) checked This Project has a WAR directory, entered the name and unchecked Launch and deploy from this directory 4) saved the configuration and since I am using tomcat 6 as container, changed the order of the gwt library as it is written here: http://groups.google.com/group/google-web-toolkit/browse_thread/threa... (BTW it would be great if the FAQ would mention it) 5) created a module, html page, entry class (all using wizards) 6) ran the project in tomcat 7) created a debug configuration (all according to http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee) Now the funny thing is, the manual said that the plugin would ask for a destination, but it did not. Furthermore it created a war directory and as a result the project did not work. I've then ran the gwt compiler which did ask for the destination and compiled my project. After that everything worked perfectly. Even though the gwt compiler added a line lastWarOutDir=correct path here to the com.google.gwt.eclipse.core.prefs file in project's .settings directory, every time I lunch the project for some reason the plugin still creates the war directory. I've created another similar project. This time I've created a debug configuration with Run built-in server checked. The plugin did ask for the destination but still created the war directory. BTW would it be possible to allow lastWarOutDir to accept relative paths (relative to workspace that is)? We usually put the settings to source control so that only one person would have to go through all the setup process. -- You received 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: PopupPanel question regarding ClickHandler
if the button is the only thing that handles clicks in the popup, why not add the clickHandler directly to the button? Button closeButton = new Button(Close); closeButton.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { hide(); } }); On Mar 16, 10:32 pm, tyler.nc carolinaboar...@gmail.com wrote: Hello all, I am developing an Appengine application now that requires AuthSub authentication to access users Spreadsheets with GData. What I have now is a widget that extends PopupPanel that pops up as soon as you visit the page telling you what it is about and giving information such as the terms of service. I want my widget (that extends PopupPanel) to close when the user clicks a button but for some reason the ClickHandler is not working at all. Are there any better ways to do this? This is quite urgent as I have a deadline to meet and wasn't expecting this little problem. EX: code public class PopupWidget extends PopupPanel implements ClickHandler { ... ... ... public void onClick(ClickEvent event) { Object sender = event.getSource(); if( sender == btnAgree ) hide(); }} /code I'm completely stumped. It seems as though a PopupPanel cannot implement a ClickHandler..please tell me if this is the case. 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: Using FocusWidget.addClickHandler for GWT 2.0 Hyperlink (ClickHandler deprecated)
Hi javaunixsolaris- I'm not exactly sure what your question is. The history way is not new in GWT 2.0. Read about it here: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html If you want to know how to use an a element that handles clicks AND changes history, I believe the @deprecated comment for Hyperlink.addClickHandler() implies you should extend FocusWidget and use its addClickHandler(). Something like this: public class MyHyperlink extends FocusWidget { public MyHyperlink(String text) { super(DOM.createAnchor()); // set the text } // you should cherry-pick the methods implemented in Hyperlink // you want, like setTargetHistoryToken(), and impl them here } MyHyperlink link = new MyHyperlink(text); link.addClickHandler(...); However, I have not tried or tested this, so I'm not sure that's the best way. A specific use case might help :). On Feb 25, 4:54 pm, javaunixsolaris lpah...@gmail.com wrote: Thanks Zak Anchor works great. Do you also have an example of if you want to: Hyperlink link = new Hyperlink(text); link.addClickHandler(...); to The new History way to do it? On Feb 21, 4:59 pm, Zak zakn...@gmail.com wrote: Yes, you are correct. If you had this before: Hyperlink link = new Hyperlink(text); link.addClickHandler(...); you should change it to this: Anchor link = new Anchor(text); link.addClickHandler(...); However, Hyperlink is block-level whereas Anchor is inline. Anchor is actually more analogous to InlineHyperlink (subclass of Hyperlink). You should keep that in mind insofar as keeping your layout consistent after making the switch. On Feb 20, 10:15 pm, Tapas Adhikary tapas4...@gmail.com wrote: So does it mean , I need to change the HyperLink to anchor wherever I need a link functionality but doesn't need a history support ? Can anybody provide some suggestion / example code ? Thanks, -Tapas On Sat, Feb 20, 2010 at 11:18 PM, Zak zakn...@gmail.com wrote: Hi Tapas- Check out this issue for the reasoning behind the deprecation of Hyperlink.addClickHandler: http://code.google.com/p/google-web-toolkit/issues/detail?id=1960 from tamplinjohn's comment on that thread: I also think that allowing click listeners/handlers on Hyperlink is part of the reason for the confusion -- if its goal is to manipulate the history state, there isn't any reason for adding a listener on the click, but you should instead add a history listener so that function works the same way whether activated by a click, a back button, or loading from a bookmark. If for some reason you do really need a click handler, then it can still be done by using Anchor and calling History.newItem from its listener. On Feb 19, 2:18 pm, Tapas Adhikary tapas4...@gmail.com wrote: I have upgraded my project to GWT 2.0, and my hyperlinks keeps getting the wornings for using the deprecated ClickHandler. The JavaDoc says to use FocusWidget.addClickHandle. Why does the Hyperlink need to use this FocusWidget? How should I use it ? Why can a Hyperlink not use a ClickHandler but a GWT Button and Anchor can? What is the logic behind it ? I'm not sure how to use it? Does anyone have an example? Please share. Thanks, -Tapas -- You received 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 + Browser-dependent CSS
Wouldnt that also target IE7, since GWT does not distinguish between IE6 and 7 in compiling the js? On Feb 22, 11:16 am, Thomas Broyer t.bro...@gmail.com wrote: On Feb 22, 3:12 pm, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, what's the best way to get browser-dependent CSS in UiBinder? Sometimes IE requires a bit of special styling... Use CssResource's conditionals with @if rules! Excerpt from the Mail sample: @if user.agent ie6 { @url logoIe6 logoIe6Data; .logo { background-image: logoIe6; width: 140px; height: 75px; position: absolute; } } @else { @sprite .logo { gwt-image: 'logo'; position: absolute; } } http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl... -- You received 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: Using FocusWidget.addClickHandler for GWT 2.0 Hyperlink (ClickHandler deprecated)
Yes, you are correct. If you had this before: Hyperlink link = new Hyperlink(text); link.addClickHandler(...); you should change it to this: Anchor link = new Anchor(text); link.addClickHandler(...); However, Hyperlink is block-level whereas Anchor is inline. Anchor is actually more analogous to InlineHyperlink (subclass of Hyperlink). You should keep that in mind insofar as keeping your layout consistent after making the switch. On Feb 20, 10:15 pm, Tapas Adhikary tapas4...@gmail.com wrote: So does it mean , I need to change the HyperLink to anchor wherever I need a link functionality but doesn't need a history support ? Can anybody provide some suggestion / example code ? Thanks, -Tapas On Sat, Feb 20, 2010 at 11:18 PM, Zak zakn...@gmail.com wrote: Hi Tapas- Check out this issue for the reasoning behind the deprecation of Hyperlink.addClickHandler: http://code.google.com/p/google-web-toolkit/issues/detail?id=1960 from tamplinjohn's comment on that thread: I also think that allowing click listeners/handlers on Hyperlink is part of the reason for the confusion -- if its goal is to manipulate the history state, there isn't any reason for adding a listener on the click, but you should instead add a history listener so that function works the same way whether activated by a click, a back button, or loading from a bookmark. If for some reason you do really need a click handler, then it can still be done by using Anchor and calling History.newItem from its listener. On Feb 19, 2:18 pm, Tapas Adhikary tapas4...@gmail.com wrote: I have upgraded my project to GWT 2.0, and my hyperlinks keeps getting the wornings for using the deprecated ClickHandler. The JavaDoc says to use FocusWidget.addClickHandle. Why does the Hyperlink need to use this FocusWidget? How should I use it ? Why can a Hyperlink not use a ClickHandler but a GWT Button and Anchor can? What is the logic behind it ? I'm not sure how to use it? Does anyone have an example? Please share. Thanks, -Tapas -- You received 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: Using FocusWidget.addClickHandler for GWT 2.0 Hyperlink (ClickHandler deprecated)
Hi Tapas- Check out this issue for the reasoning behind the deprecation of Hyperlink.addClickHandler: http://code.google.com/p/google-web-toolkit/issues/detail?id=1960 from tamplinjohn's comment on that thread: I also think that allowing click listeners/handlers on Hyperlink is part of the reason for the confusion -- if its goal is to manipulate the history state, there isn't any reason for adding a listener on the click, but you should instead add a history listener so that function works the same way whether activated by a click, a back button, or loading from a bookmark. If for some reason you do really need a click handler, then it can still be done by using Anchor and calling History.newItem from its listener. On Feb 19, 2:18 pm, Tapas Adhikary tapas4...@gmail.com wrote: I have upgraded my project to GWT 2.0, and my hyperlinks keeps getting the wornings for using the deprecated ClickHandler. The JavaDoc says to use FocusWidget.addClickHandle. Why does the Hyperlink need to use this FocusWidget? How should I use it ? Why can a Hyperlink not use a ClickHandler but a GWT Button and Anchor can? What is the logic behind it ? I'm not sure how to use it? Does anyone have an example? Please share. Thanks, -Tapas -- You received 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: Color of cells in row in mouse over
If you do not need to support IE6, you can do this with CSS alone: .myFlexTable tr:hover { background-color: blue; } If you have trouble getting it to work in IE7, make sure you have a strict DOCTYPE in you host HTML page: http://www.bernzilla.com/item.php?id=762 If you do need to support this in IE6, it will require some coding (IE6 only supports the :hover pseudo-class on a elements). On Jan 5, 9:46 am, markww mar...@gmail.com wrote: Hi, Does anyone have an example of setting the color of a row of cells in a FlexTable on a mouse over? I'd like to turn the whole row of cells green for example when the user puts the mouse over any cell in that row, 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: Back button functionality problem
1 - Use History Tokens to change the app's URL when you change state. This will trick the browser into thinking the use has navigated to different pages. More info: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/History.html 2 - Could you provide more information? Perhaps the code that's broken? 3 - This functionality works on a tags, which is GWT's Hyperlink widget: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Hyperlink.html 4 - This code should do the trick: Window.addResizeHandler(new ResizeHandler() { public void onResize(ResizeEvent event) { // do stuff } }); On Nov 26, 4:12 am, Durgesh durgesh1...@gmail.com wrote: Hi I am developing a web application using GWT 1.5. I have few problems: 1- I want to use back button on mouse right click. (Like any web application) 2- when i disable any button , it does not reflect in the client side in Mozilla browser whereas it works at Internet explorer . 3- I want to implement all the mouse right click functionality in my application like open in new window, open in new tab. 4- i want to resize my page according to window how does it use window resizer? If anybody has solution of above problems let me know ThanksRegards Durgesh Mail Id : durgesh1...@gmail.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: Error when running ant hosted on OS X 10.6
I've reverted to Safari 4.0.3 using a Time Machine backup (just replacing Safari.app) and it has not fixed the problem. Based on this Apple support thread — http://discussions.apple.com/thread.jspa?threadID=2032790tstart=0 — it seems to truly revert you'd need to restore your entire system to before 4.0.4 was installed (if you have Time Machine set up). I can't say if that will work for sure because I don't want to revert my entire system, but I figured someone might want to know :). On Nov 14, 8:09 pm, Chris Ramsdale cramsd...@google.com wrote: Thanks for all of your input regarding this issue. We were able to reproduce the problem and have found that it is a result of an issue within the 4.0.4 version of JavaScriptCore. We have reported the issue to the WebKit team (http://trac.webkit.org/changeset/50964) and an update was made but it will take some time to work it's way into another Safari update. In the meantime to continue using GWT 1.7.1, and prior, the safest workaround would be to revert back to Safari 4.0.3. The patches that have be suggested within this thread will work but may result in other inconsistencies as objects are not properly being released. I have also tested out the latest MS2 release of GWT using 4.0.4 and had no issues running in hosted mode (now referred to as Development Mode). GWT MS2 is available here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=2 I will keep everyone posted with any further updates. - Chris On Nov 14, 11:33 am, julian juliatiup...@gmail.com wrote: Can be that (10.6.1, safari 4) uses 64bit architecture instead 32? Have a look to:http://kb2.adobe.com/cps/509/cpsid_50983.html On Nov 13, 4:41 pm, Kyle Hayes kyle.ha...@disney.com wrote: I installed your new jar and I'm still getting the followingerror: == hosted: [java] On MacOSX, ensure that you have Safari 3 installed. [java] Exception in thread main java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'. Detailederror: [java] Can't load library: /usr/local/gwt-mac-1.7.1/libgwt- ll.dylib) [java] [java] Your GWT installation may be corrupt [java] at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java: 106) [java] at com.google.gwt.dev.shell.mac.LowLevelSaf.init (LowLevelSaf.java:135) [java] at com.google.gwt.dev.BootStrapPlatform.initHostedMode (BootStrapPlatform.java:68) [java] at com.google.gwt.dev.HostedModeBase.init (HostedModeBase.java:362) [java] at com.google.gwt.dev.SwtHostedModeBase.init (SwtHostedModeBase.java:127) [java] at com.google.gwt.dev.HostedMode.init(HostedMode.java: 271) [java] at com.google.gwt.dev.HostedMode.main(HostedMode.java: 230) == Here is my install location contents: == $ ls /usr/local/gwt-mac-1.7.1/ COPYING gwt-dev-mac.jar libgwt-ll.jnilib COPYING.html gwt-dev-mac.jar.bak libswt-agl-carbon-3235.jnilib about.html gwt-module.dtd libswt-carbon-3235.jnilib about.txt gwt-servlet.jar libswt-pi-carbon-3235.jnilib benchmarkViewer gwt-user.jar libswt-webkit-carbon-3235.jnilib doc i18nCreator release_notes.html gwt-api-checker.jar index.html samples gwt-benchmark-viewer.war junitCreator webAppCreator == The gwt-dev-mac.jar.bak is the old jar and the non.bak is the *patched* one. Yet theerroris still complaining about not finding libgwt-ll.dylib. On Nov 13, 2:25 am, bmalkow bartosz.malkow...@gmail.com wrote: On 12 Lis, 18:25, Kyle Hayes kyle.ha...@disney.com wrote: Heh, you're right this is really ugly. However, it may be worth a try, but not on my work code ;-) I use it only on development enviroment. To production I use original GWT. Someone else thinks similar to mehttp://gwtgeek.blogspot.com/2009/11/hosted-mode-crashes-after-os-upda... ;) -- You received 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=.
Re: Error when running ant hosted on OS X 10.6
Thanks Jim, that works perfectly! On Nov 17, 1:03 pm, Jim Douglas jdoug...@basis.com wrote: Try this, Zak: http://code.google.com/p/google-web-toolkit/issues/detail?id=4220#c22 On Nov 17, 9:52 am, Zak zakn...@gmail.com wrote: I've reverted to Safari 4.0.3 using a Time Machine backup (just replacing Safari.app) and it has not fixed the problem. Based on this Apple support thread —http://discussions.apple.com/thread.jspa?threadID=2032790tstart=0 — it seems to truly revert you'd need to restore your entire system to before 4.0.4 was installed (if you have Time Machine set up). I can't say if that will work for sure because I don't want to revert my entire system, but I figured someone might want to know :). On Nov 14, 8:09 pm, Chris Ramsdale cramsd...@google.com wrote: Thanks for all of your input regarding this issue. We were able to reproduce the problem and have found that it is a result of an issue within the 4.0.4 version of JavaScriptCore. We have reported the issue to the WebKit team (http://trac.webkit.org/changeset/50964) and an update was made but it will take some time to work it's way into another Safari update. In the meantime to continue using GWT 1.7.1, and prior, the safest workaround would be to revert back to Safari 4.0.3. The patches that have be suggested within this thread will work but may result in other inconsistencies as objects are not properly being released. I have also tested out the latest MS2 release of GWT using 4.0.4 and had no issues running in hosted mode (now referred to as Development Mode). GWT MS2 is available here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=2 I will keep everyone posted with any further updates. - Chris On Nov 14, 11:33 am, julian juliatiup...@gmail.com wrote: Can be that (10.6.1, safari 4) uses 64bit architecture instead 32? Have a look to:http://kb2.adobe.com/cps/509/cpsid_50983.html On Nov 13, 4:41 pm, Kyle Hayes kyle.ha...@disney.com wrote: I installed your new jar and I'm still getting the followingerror: == hosted: [java] On MacOSX, ensure that you have Safari 3 installed. [java] Exception in thread main java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'. Detailederror: [java] Can't load library: /usr/local/gwt-mac-1.7.1/libgwt- ll.dylib) [java] [java] Your GWT installation may be corrupt [java] at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java: 106) [java] at com.google.gwt.dev.shell.mac.LowLevelSaf.init (LowLevelSaf.java:135) [java] at com.google.gwt.dev.BootStrapPlatform.initHostedMode (BootStrapPlatform.java:68) [java] at com.google.gwt.dev.HostedModeBase.init (HostedModeBase.java:362) [java] at com.google.gwt.dev.SwtHostedModeBase.init (SwtHostedModeBase.java:127) [java] at com.google.gwt.dev.HostedMode.init(HostedMode.java: 271) [java] at com.google.gwt.dev.HostedMode.main(HostedMode.java: 230) == Here is my install location contents: == $ ls /usr/local/gwt-mac-1.7.1/ COPYING gwt-dev-mac.jar libgwt-ll.jnilib COPYING.html gwt-dev-mac.jar.bak libswt-agl-carbon-3235.jnilib about.html gwt-module.dtd libswt-carbon-3235.jnilib about.txt gwt-servlet.jar libswt-pi-carbon-3235.jnilib benchmarkViewer gwt-user.jar libswt-webkit-carbon-3235.jnilib doc i18nCreator release_notes.html gwt-api-checker.jar index.html samples gwt-benchmark-viewer.war junitCreator webAppCreator == The gwt-dev-mac.jar.bak is the old jar and the non.bak is the *patched* one. Yet theerroris still complaining about not finding libgwt-ll.dylib. On Nov 13, 2:25 am, bmalkow bartosz.malkow...@gmail.com wrote: On 12 Lis, 18:25, Kyle Hayes kyle.ha...@disney.com wrote: Heh, you're right this is really ugly. However, it may be worth a try, but not on my work code ;-) I use it only on development enviroment. To production I use original GWT. Someone else thinks similar to mehttp://gwtgeek.blogspot.com/2009/11/hosted-mode-crashes-after-os-upda... ;) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post
Re: Style of DatePicker in DateBox
Hi Siva, I assume you've added the stylename test-DatePanel to the datebox widget. Unfortunately, the datepicker is not contained within the datebox in the DOM (because it's a popup), so your styles will not apply. Your style declarations should all look like this (styles are case-sensitive): .gwt-DatePicker { } .gwt-DatePicker .datePickerMonth { } .get-DatePicker .datePickerDay { } ...etc. A handy tool to inspect elements figure out where styles are applied is the firefox extension firebug: http://getfirebug.com/. I recommend you get it, once you use it you'll wonder how you lived without it :). On Nov 16, 1:40 pm, Siva sivaa...@gmail.com wrote: Dear All, I am using GWT 1.6. I want to add my styles to the DatePicker of DateBox popup.. I have a panel which has the DateBox and tried adding the styles as below in my module style sheet but no luck. .test-DatePanel .gwt-datePicker { } .test-DatePanel .gwt-datePicker { } .test-DatePanel .datePickerDays { width: 100%; background: #e7edea; } Please guide me applying custom styles to DateBox's DatePicker. Thanks, Siva -- You received 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=.
Re: Flex Table - Remove rows
I do the same as rjcarr It's also really convenient if you have a header row (with the names of the columns, for example). then to clear the data you can do: while (table.getRowCount() 1) table.removeRow(1); it's too bad FlexTable#clear() only removes the widgets... it's never been useful enough to use for me :P On Nov 14, 3:53 pm, rjcarr rjc...@gmail.com wrote: I tend to do this to clear out tables: while(table.getRowCount() 0) { table.removeRow(0); } On Nov 13, 3:09 am, Jonas joa...@gmail.com wrote: Thank you so much Paul, it worked 5 stars. Best Regards João Lopes On 13 Nov, 09:59, Paul Robinson ukcue...@gmail.com wrote: After you remove row number 0, what was row 1 becomes the new row 0 etc because everything shifts up one row. The way you've set up your loop, what starts off as row 1 will never be removed - second time through the loop you remove row 1, but that is the row that started off as row 2. Also, don't forget that each time through the loop getRowCount() will return a different value. Setting the row span looks odd too. You remove row i, then set the row span for row i (which was row i+1 before you removed row i). You could try this: for (int i=0, n=__this.getRowCount() ; in ; i++) __this.removeRow(0); or this: __this.removeAllRows(); HTH Paul Jonas wrote: Hello all, i'm trying to remove the rows from a dynamic flex table, but without success. This is my code, i have 5 columns and a variable number of rows. The idea is to remove all the rows and put new rows in it. Here is what i'm doing for (int i = 0; i __this.getRowCount(); i++) { __this.removeRow(i); __this.getFlexCellFormatter().setRowSpan(0, 0, i); __this.getFlexCellFormatter().setRowSpan(0, 1, i); __this.getFlexCellFormatter().setRowSpan(0, 2, i); __this.getFlexCellFormatter().setRowSpan(0, 3, i); __this.getFlexCellFormatter().setRowSpan(0, 4, i); } I think my problem is in the HTML manipulation, if somebody could help i would be very gratefull Thanks in advance Best Regards Jo�o Lopes -- You received 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=.
Re: GWT tab panel With image tabs
Try this: .gwt-TabBar .gwt-TabBarItem:hover { // hover styles } .gwt-TabBar .gwt-TabBarItem-selected:hover { // selected hover styles } hover styles apply onMouseOver and stop applying onMouseOut... all controlled by CSS! the downside is that IE6 and lower do not support :hover styles on anything besides the a tag On Nov 7, 2:09 am, SmartKiller deepica...@gmail.com wrote: Thanks Davis, This can be a good solution. but i want to add mouseOver/out effect to tabs. I wanted to change the color of the tab text on mouseEvents. How this can be done. I dont find any way to add mouseListener to tabs in Tabpanel. Any Idea. On Nov 6, 10:36 pm, Davis Ford davisf...@zenoconsulting.biz wrote: This is all I do: .gwt-TabBar .gwt-TabBarItem { background: url('../images/tab-off.JPG') no-repeat; color: #012F62; } .gwt-TabBar .gwt-TabBarItem-selected { background: url('../images/tab-on.JPG') no-repeat; color: #FF; } Obviously use your own images / colors, but give it a whirl. Works great for me. On Fri, Nov 6, 2009 at 7:20 AM, SmartKiller deepica...@gmail.com wrote: Hi, Is it possible to use images within Tabs in tab pannel. If yes then the best way to do that. I have done the same using the adding a new widget with image in each tab. Since i also want to change the image on mouseOver so i have added handler to images. On mouse over i remove the old tab from widget and insert the new one with updated images. This revert back on mouseOut event. But this approach seems to much slower as sometimes mouseOut event doesn't comeup to application. In that case UI still shows mouseOver image to tab panel where mouse pointer was not there. Can someone tell me the reason of this happening. Thanks in advance. -- Zeno Consulting, Inc. home:http://www.zenoconsulting.biz blog:http://zenoconsulting.wikidot.com p: 248.894.4922 f: 313.884.2977- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: DecoratorPanel - issue with the CSS inheritance.
What's happening is that, for example, the rule .parentDecorator .bottomLeft {} targets all element class=bottomLeft that are children of it, so it matches .parentDecorator .bottomLeft as well as .parentDecorator .childDecorator .bottomLeft Sorry, could you actually paste the generated HTML? I should have asked for that instead of the java :x. Child selectors may fix your problem (http://meyerweb.com/eric/articles/webrev/26b.html) but if I can see the HTML I'll have a better idea. If you're not already, use firebug (http://getfirebug.com/) to inspect elements and see what styles are being applied from where. z On Oct 1, 4:43 pm, Memo Sanchez guillermo.sanch...@gmail.com wrote: . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: DecoratorPanel - issue with the CSS inheritance.
Hi- It may be possible by using direct decedent selectors: .parentPanel .bottomCenter { stuff } .childPanel .bottomCenter { different stuff } Please post the java and css code so we can better understand your problem. On Sep 29, 6:50 pm, Memo Sanchez guillermo.sanch...@gmail.com wrote: Hello :) I am creating a widget who has 2 Decorator Panels (One inside the other), both of them have different images for the rounded corners, the problem is that the internal decoratorPanel inherits all the CSS stying from his parent every single time. I have change the same parameters in the css for both of them (i.e. topLeft, topInnerLeft... .bottomCenter ... etc). And the child ignores the changes and still uses the same styling that the parent use. Can somebody give me a tip on how can I make the child ignore the parents CSS and use its own please. Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Getting the RichTextArea to expand as you type
I had a lot of fun with this problem. My solution was to increase/ decrease the row attribute of the textarea as the user types. It's not perfect but it behaves as expected and executes fast. Source code for my widget here: http://pastie.org/635638 I'd be interested if you folks have any critiques or insights. Hope this helps! On Sep 29, 11:01 am, James Tamplin james.tamp...@gmail.com wrote: M - Can you post the whole solution. I'm unsure exactly how myHTML and divHidden fit in. Thanks. On Sep 8, 3:57 am, m.assa...@gmail.com m.assa...@gmail.com wrote: I solved the issue by associating a keyboardlistener to thetextarea which copies thetextareacontents into a GWT HTML Element and get its height. (Then you resize thetextareawith the new HTML Element height) in the keyboard listener you do sth like public void onKeyUp(Widget sender, char keyCode, int modifiers) { RichTextArea rta = (RichTextArea) sender; myHTML.setHTML(rta.getHTML()); rta.setHeight(+ (divHidden.getOffsetHeight())); } hope this helps. M. You should associate a css rule like visibility: hidden to the HTML Element in order to make the browser not showing it. On Aug 26, 1:26 am, Arthur Kalmenson arthur.k...@gmail.com wrote: Yes, that is the way to do this. -- Arthur Kalmenson On Thu, Aug 20, 2009 at 2:09 PM, Yossiykah...@gmail.com wrote: Someone please answer, it is very important for me. I need it to expand only vertically and not horizontally I am thinking of adding an event listener for the keyboard and mouse and on each event I willcheckif there are scrollbars - if there are, I will increase the height, if there aren't I will decrease. Thanks On 12 Aug, 14:27, LuminariGWT luminari...@gmail.com wrote: I'm trying to use the GWTRichTextArea. I would like the size of the area to expand vertically as you type, so there is never ascrollbar. Any ideas on how I can accomplish this? overflow:visible; doesn't 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-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS Reference Book
GWT doesnt support any version of CSS. You must decide which browsers you want your applications to support, and then look at each of the browsers' (slightly different) implementation of CSS. Most support almost all of CSS 2.1, while many are quickly adopting more and more bits of CSS3 On Sep 24, 5:55 pm, JamesEston jdrinka...@gmail.com wrote: So I take that to assume GWT 1.6 uses CSS 2.1? Thanks for the other responses as well! On Sep 23, 6:40 pm, Jim Douglas jdoug...@basis.com wrote: Also, the CSS 2.1 draft spec is available here: http://www.w3.org/TR/CSS2/ On Sep 23, 3:35 pm, Neha Chachra neha.chac...@gmail.com wrote: HiJames, I was recommended this book: CSS The Definitive Guidehttp://www.amazon.com/CSS-Definitive-Guide-Eric-Meyer/dp/0596527330/r... for learning CSS. Also, to deal with browser/system dependent bugs,http://www.quirksmode.org/isapretty useful resource. -Neha nay-ha On Wed, Sep 23, 2009 at 1:18 PM,Jamesjdrinka...@gmail.com wrote: Hello All, I'm a java dev that is working with GWT now and was wondering if there was a CSS book that would help me with the stylesheets as I've never been a web designer and don't have much experience with it. Also, what CSS version does GWT 1.6 support? That is the version we are using. Thanks, JamesEston --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Button style using HTML - Mozilla Compatibility
The CSS for the background declaration is invalid. Also there's no need for tabs and carriage returns. Try this: button.setHTML(div style=\background:transparent url(home.gif) no- repeat; width:95px; height:23px;\ Home /div); The best practices solution, however, is to have an external stylesheet with styling rules defined: .cool-button { background: transparent url(home.gif) no-repeat; width:95px; height:23px; } And then add the stylename to the button: button.setStyleName(cool-button); button.setText(Home); This will keep a nice separation of presentation, structure, and content. Cheers! On Sep 24, 9:01 am, abhiram wuntakal abhir...@gmail.com wrote: I got some really cool styles with HTML tags and so thought of sticking on to it. Any idea why the image which I set on the button using HTML did not appear in Firefox? regards, Abhiram On Thu, Sep 24, 2009 at 4:55 PM, Venkatesh Babu venkatbab...@gmail.comwrote: Try setting the style using a css class rather than the style attribute, in the way specified in your code. If you don't have a css file, you can just create the css class within your html file. Hope this helps. -Venkatesh On Thu, Sep 24, 2009 at 2:08 AM, abhiram abhir...@gmail.com wrote: Hi all, I used the setHTML property for the Button to get some really nice styles for the buttons in my application. This works perfectly in IE but does not seem to work in Mozilla and Chrome. In Mozilla and Chrome I dont see the images on the button which are visible on IE. My sample code is as below: button.setHTML(div style=\background:url(home.gif) repeat no- repeat;\r\n\t\twidth:95px;\r\n\t\theight:23px;\ Home /div); Can someone please let me know if I am missing something here? regards, Abhiram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: css question
It should actually work with: .gwt-TabPanelItem { font-weight: bold; text-align: center; background: url(..item image..); } .gwt-TabPanelItem-selected { background: url(..selected item image..); } When adding a dependent stylename in GWT, it's added to the element such that the element still has the primary style name intact. So, your tab item looks like this: div class=gwt-TabPanelItem.../div And selected looks like this: div class=gwt-TabPanelItem gwt-TabPanelItem-selected.../div So whatever you define for gwt-TabPanelItem will apply to both selected and unselected states (unless you override it, as I've shown above). Hope that makes sense! If it doesnt work, try inspecting it with Firebug to see where the applied styles are coming from. On Sep 16, 12:45 pm, Davis Ford davisf...@zenoconsulting.biz wrote: Nevermind -- figured it out. Did not realize the descendant selectors. Works with: .gwt-TabBar .gwt-TabBarItem, gwt-TabBar .gwt-TabBarItem-selected { /* shared stuff here */ } On Wed, Sep 16, 2009 at 12:34 PM, davis davisf...@zenoconsulting.biz wrote: Forgive me if this is a dumb/newbie question, and it really relates more to css than gwt, but if I have the following: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: css question
Oh and one thing that might be tripping you up, the property background is a shortcut for all the different background properties and requires a color to be defined for it to work at all. So if you want to just change the image: background-image: url(...); However, its good practice to have a background color set as a fallback, so maybe you should do this: background: #fff url(...); If you can elaborate on what you want your styles to do I can be a bit more helpful :P On Sep 16, 3:53 pm, Zak zakn...@gmail.com wrote: It should actually work with: .gwt-TabPanelItem { font-weight: bold; text-align: center; background: url(..item image..); } .gwt-TabPanelItem-selected { background: url(..selected item image..); } When adding a dependent stylename in GWT, it's added to the element such that the element still has the primary style name intact. So, your tab item looks like this: div class=gwt-TabPanelItem.../div And selected looks like this: div class=gwt-TabPanelItem gwt-TabPanelItem-selected.../div So whatever you define for gwt-TabPanelItem will apply to both selected and unselected states (unless you override it, as I've shown above). Hope that makes sense! If it doesnt work, try inspecting it with Firebug to see where the applied styles are coming from. On Sep 16, 12:45 pm, Davis Ford davisf...@zenoconsulting.biz wrote: Nevermind -- figured it out. Did not realize the descendant selectors. Works with: .gwt-TabBar .gwt-TabBarItem, gwt-TabBar .gwt-TabBarItem-selected { /* shared stuff here */ } On Wed, Sep 16, 2009 at 12:34 PM, davis davisf...@zenoconsulting.biz wrote: Forgive me if this is a dumb/newbie question, and it really relates more to css than gwt, but if I have the following: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: reset CSS
Yep, I use a slightly modified version of Eric Meyer's reset. It's incredibly useful. On Sep 15, 9:18 am, Ian Bambury ianbamb...@gmail.com wrote: I do something similar. I think you should. It doesn't. Ian http://examples.roughian.com 2009/9/15 davis davisf...@zenoconsulting.biz Does anyone apply a reset CSS in their project (http://meyerweb.com/ eric/tools/css/reset/) ? I'm wondering if I should use something like this, or if GWT already resets CSS with its default styles? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating a wizard - Series of steps with GWT
You could make one panel that contained all the screens as hidden panels, and just show the correct one based on the button the user pushed (next/prev). On Sep 15, 11:31 pm, Karan Sardana karansard...@gmail.com wrote: Let me add something to this - We would need the screens to interact with each other i.e. pass on data back forth; so, essentially, we could say, each of the screens would have the complete data access. On Sep 16, 12:53 pm, karan sardana karansard...@gmail.com wrote: how can I do that? On Wed, Sep 16, 2009 at 12:45 PM, Isaac Truett itru...@gmail.com wrote: Yes. On Tue, Sep 15, 2009 at 10:31 PM, Karan Sardana karansard...@gmail.com wrote: Scenario is - The user needs to enter and submit a lot of information, the mechanism to collect such information is often organized into many screens with next/previous/finish buttons. Is there any way in which I can create this with GWT? Thanks, Karan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Best ways to avoid unwelcome CSS cascade side effects?
One approach is to write and apply your stylenames in an object- oriented way. The idea is to use multiple classes per element, each adding on a bit more style definition (kind of like super/subclass relationships in Java). If you define these styles in a location- independent way (this style is applied to this widget on this page -- location dependence), they should be extensible and reusable throughout your app. Nicole Sullivan of Yahoo! has a framework in the works over at GitHub: http://wiki.github.com/stubbornella/oocss. For a good overview of the ideas behind OOCSS, watch the video posted on that page. Having not implemented OOCSS myself, I can only say it looks great in theory. I'm going to wait for the GWT team's stab at improving CSS authoring before I rewrite all my code :P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
firing a blur event when a button is clicked
Hi all- I still haven't got my head wrapped around using handlers: I have a class ESButton extends Button. I would like it so that each instance of an ESButton, when clicked, fires a blur event on itself. I'm sure some of you have noticed how (at least in Firefox), when you click on a button it stays focused (has that black dotted outline around the button text). I would like to blur the button automatically, so the user does not see this outline. How would I do this? Or is there a better way to solve this issue? Here's the ESButton class in its entirety: http://pastie.org/488573 Thanks for your help! Zak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Minor error in Event Handler documentation sample code
Hi- Just wanted to point out what I think is an error in the Event Handler documentation sample code. page: http://code.google.com/docreader/?p=google-web-toolkit-doc-1-6s=google-web-toolkit-doc-1-6t=ReleaseNotes_1_6#p=google-web-toolkit-doc-1-6s=google-web-toolkit-doc-1-6t=DevGuideEventsAndHandlers code (second example): Widget sender = (Widget) click.getSource(); should be: Widget sender = (Widget) event.getSource(); -zak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---