Hi everyone.

What's the best way to reuse a global constant within UiBinder ?

I did the following:

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
        xmlns:g="urn:import:com.google.gwt.user.client.ui">

        <ui:with field='cons' type='com.example.gwtpuibinder.client.MyCons'/>

        <g:HTMLPanel>

                <p>
                        At <g:Label text="{cons.businessName}"></g:Label> we 
strive for our
customers.
                </p>

        </g:HTMLPanel>
</ui:UiBinder>

It works but it's a bit heavy. It would be nice if I could use
something like @def statement for CSS constants, is there anything
like that that would do the above job?

Also I don't get why the Label produces a line break before and after
itself, it's a bit annoying since it can't be styled.

Hints would be very much appreciated.
Thank you.
Luc

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to