I’m creating a Web app using plain GWT (no wrappers such as GXT). The problem is that a good look & feel for a GWT app is very hard to achieve using only UiBinder. My workflow for now is:
- Create HTML and CSS with Dreamweaver/Photoshop
- Put the HTML resources on the server and fetch them using GWT’s Client Bundle.
- “Inject” widgets into HTMLPanels who where initialized with the resource HTML files from the server.
As you can see it’s more of a “template” way of doing things. My UiBinders are almost empty files though.
I’m concerned about XSS holes by working as I do. So I was thinking of eventually putting each HTML file into it’s UIBinder xml file. Does it have to be so complicated (long)??? Can anyone tell me how they managed to get good looking GWT apps using only UiBinder?
I’m not interested in responses including any GXT, SmartGWT solutions.
Thank you.
Our process, which works great (activegrade.com):
Your third step sounds like it’s re-inventing what UiBinder already does for you.
The only thing we do outside this process is figure out what kind of html is produced by the widgets we’re going to use. For instance, MenuBars make
<table>s, so we say, “Hey, make the prototype out of tables.”FlowPanels make<div>s, so we say, “Hey, please make the prototype out of divs.” We got burned once and had to re-do the html.Addendum example:
Creates: