You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "nauke." <na...@gmail.com> on 2008/09/16 02:09:41 UTC
override select's headerValue from action
Hi all,
I have a select box in my JSP page like:
<s:select name="Employee"
id="employee"
theme="simple"
size="1"
list="employeeList"
cssClass="mystyle"
headerKey=""
headerValue="%{getText('global.please.select')}" />
I want to be able to set the headerValue from my Action.
For example, I might want to set it to "John Smith" dynamically.
Is this possible?
Thanks,
nic
Re: override select's headerValue from action
Posted by Dave Newton <ne...@yahoo.com>.
--- On Mon, 9/15/08, nauke. wrote:
> <s:select name="Employee"
> id="employee"
> theme="simple"
> size="1"
> list="employeeList"
> cssClass="mystyle"
> headerKey=""
> headerValue="%{getText('global.please.select')}"/>
>
> I want to be able to set the headerValue from my Action.
> For example, I might want to set it to "John Smith" dynamically.
>
> Is this possible?
...
Yes; use an action property instead of the getText() call.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org