GWT module may need to be (re)compiled REDUX

Have you started the DevMode using your src/main/webapp as the “war folder”? or in other words, is there a *.nocache.js in your src/main/webapp? In that case, this file will overwrite the one produced by the GWT compiler as called by the gwt-maven-plugin. The *.nocache.js generated by the DevMode (when no one exists, generated by a … Read more

How do I select only visible elements using XPath?

This should work: .//button[.=’OK’ and not(ancestor::div[contains(@style,’display:none’)]) and not(ancestor::div[contains(@style,’display: none’)])] EDIT: The simpler and more efficient expression below: //div[not(contains(@style,’display:none’))]//button[.=’OK’] does not work properly because every button has at least one div that’s visible in its ancestors.

Multiple pages tutorial in Google Web Toolkit (GWT)

What I usually do in situations like this is design the webpage framework first. I’ll have a div for the header, side menu and footer. I’ll also have a div in my HTML for the main content. Example: <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta name=”gwt:module” content=”org.project.package.Core=org.project.package.Core”> </head> <body> <!– Load the JavaScript code for GWT –> <script … Read more

How to print to the console in GWT

Quoting the documentation: Adding GWT logging is really quite simple, as simple as the following code example. However — understanding how logging works, and how to correctly configure it is important, so please do take the time to read the rest of this document. http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html The simplest way to enable logging is: # In your … Read more