You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/09/01 05:53:34 UTC
[jira] Closed: (STR-1567) [taglib] : Make value
optional when idName is present
[ https://issues.apache.org/struts/browse/STR-1567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict closed STR-1567.
------------------------------
Resolution: Won't Fix
Assignee: (was: Struts Developers)
> [taglib] <html:radio>: Make value optional when idName is present
> -----------------------------------------------------------------
>
> Key: STR-1567
> URL: https://issues.apache.org/struts/browse/STR-1567
> Project: Struts 1
> Issue Type: Improvement
> Components: Taglibs
> Affects Versions: 1.1 RC2
> Environment: Operating System: other
> Platform: All
> Reporter: Stefan Kuehnel
> Priority: Minor
>
> I want to render an array of values one of which should be selected via a
> <html:radio>. The value that should be sent to the server is the index in the
> array. This doesn't work easily as idName is supposed to be a bean, with the
> value attribute providing the property name. The code as it stands would already
> work except for the fact that value is marked as required in the TLD. Making it
> so only when idName is not present would support my use case.
> The workaround is to use a primitive scriptlet to render the value, but aren't
> tags supposed to eliminate that need? :-)
> <logic:iterate id="label" indexId="serverValue" name="labelsArray">
> <html:radio property="currentValue" idName="serverValue" />
> <bean:write name="label" />
> </logic:iterate>
> This is report against 1.1RC2, but the problem is still there in 1.1 final.
> Congratulations to that, BTW!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.