If you want to add a header to the select
tag you can do it with headerKey
and headerValue
attributes.
<s:select id="%{uid}_folder" theme="simple" list="folderList" listKey="id"
listValue="title" value="folderId" headerKey="-1" headerValue="Select Folder" />
The select
tag doesn't have optgroup
generated elements.