Konrad Billewicz wrote:
Hello,
How to use html:optionsCollection together with struts messages (from
..properties file)?
When I'm setting label value for optionsCollection, I'm setting the property
which will be printed. Is it possible to set property which will be _key_ of
message which will be printed? Something like:
<html:optionsCollection property="status" value="key" labelKey="value" />
(labelKey is not implemented but I would like to get something working like
this above)
I don't think html:optionsCollection supports anything like that. You
need to do the resource bundle lookup in your bean's 'label' property
getter. In other words, if you have have label="label" (the default),
you need to do the resource bundle lookup in your getLabel() method.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]