cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject CForms: Escape Characters in Widget Label Definitions
Date Wed, 10 Jan 2007 13:40:10 GMT

it's been quite a few times that i stumbled over this bug (or feature (i'm 
not quite certain which one it is ;-) )). when defining a widgets label 
you cannot use any escape characters if the widget is to be rendered as a 
button in HTML.

Quite a few Browsers (incl. Firefox & IE) do render theses Escape 
Characters within Buttons (Button Labels in HTML are (X)HTML-Attributes 
after all). That  means that Label Definitions as the following cannot be 
used for Button Widgets:
    <i18n:text key=
"forms.administrationcustomercategorydetails.entries.mkz.label" />
Usually you would want to write XML somewhat readable. Due to the fact 
that Escape Characters like Tab, Carriage Return etc. are rendered though 
you cannot write XML readable in this particular case. You would need a 
definition like the following:
<fd:label><i18n:text key=

My suggestion to this problem is to trim the Label before rendering it, 
unless there are scenarios which demand Escape Characters to be rendered 
in a Widget Label (which of course would make this whole thing a feature 
rather than a bug ;-) ).


Freundliche Grüße / With kind regards
Thomas Zirke

Klingenderstr. 5
D 33100 Paderborn

voice   +49 5251/1581-984
fax     +49 5251/1581-71
View raw message