cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamal Bhatt" <>
Subject [CFORMS] Dynamically specifying Help and labels
Date Sun, 30 Dec 2007 06:02:57 GMT
I have a requirement to dynamically allocate the help and labels for
fields in a repeater. My solution, uses jx templates to set fi:help and
fi:label, like so:

<ft:repeater-widget id="style_flds">
  <ft:widget id="value">

This is a hack. Normally I would be fine with this, but as you can
probably guess we are using 2.1.7 CForms. My question is, if we upgrade
and get all ajaxy, what is the likelihood my hack will continue to work?

Another question, for the development team, has anyone thought about being
able to dynamically set labels in the definition? It seems like a rather
onerous assumption that ever field in a repeater will be labelled the same
way. What would be nice would be able to set state, label and headings in
the definition (where it belongs) using javascript. For example:

<fd:field id="value">
 <fd:datatype base="string" />
       if (blah) return(WidgetState.ACTIVE);
       else return(WidgetState.INVISIBLE);
       if (blah) return("First label");
       else return("Second label");

Anyway, my two cents.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message