I've opened this issue.

http://issues.apache.org/jira/browse/TOMAHAWK-939

You can manually patch your version of tomahawk to handle this
temporarily.   A "real solution" will take a bit more work.   Also, if
you're not using facelets, you'll also have to add in tld and jsp
taghandler changes.

On 3/22/07, Leos Literak <[EMAIL PROTECTED]> wrote:
Hi,

I have such construct:

<h:selectOneRadio value="#{doc.passed}" id="review"
onchange="swap_state('test#{index}', this)">
<f:selectItem itemValue="#{true}" itemLabel="pass" id="passRadio"/>
<f:selectItem itemValue="#{false}" itemLabel="fail" id="failRadio"/>
</h:selectOneRadio>

I need to generate HTML, where each radio button will have different
onchange.

<label><input type="radio" value="pass" name="test_radio1"
onchange="swap_explanation_state('test1', this)" /> pass</label>
<label><input type="radio" value="fail" name="test_radio1"
onchange="swap_explanation_state('test1', ! this)" /> fail</label>

But I don't see a way, how to achieve it. The onchange attribute
is available only for selectOneRadio container, not for selectItems.
Can I somehow parameterize onchange for each selectItem?

Thank you for your ideas

Leos


Reply via email to