The doc for UiFactory says "If your factory method needs arguments,
those will be required as attributes.". The javadoc for the
annotation says "The parameter names of the constructor are treated as
required xml element attribute values."
So why do I get:
[ERROR] <itf:TabLayoutPanel addStyleNames='itfTabPanel newRow'
barHeight='60' barUnit='PX' height='600px' ui:field='tabPanel'
width='900px'> missing required attribute(s): barUnit barHeight
For this:
<itf:TabLayoutPanel barUnit='PX' barHeight='60'
addStyleNames="itfTabPanel newRow" ui:field="tabPanel" width="900px"
height="600px">...
with this:
@UiFactory
public TabLayoutPanel createTabLayoutPanel(String barUnit, String
barHeight) {
return new TabLayoutPanel(Double.valueOf(barHeight),
Unit.valueOf(barUnit), messageSource);
}
Sure I've done something stupid, but what?
--
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.