You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by monkeyden <mo...@gmail.com> on 2007/03/13 18:25:01 UTC
selectOneRadio and radio button events
Can anyone tell me why this:
<h:selectOneRadio onclick="hide();">
<f:selectItem itemLabel="#{messages['propertysearch.label.stateTown']}"
itemValue="0"/>
<f:selectItem
itemLabel="#{messages['propertysearch.label.zipCode']}" itemValue="1"/>
</h:selectOneRadio>
is rendered as such:
<table id="viewDetailsForm:_id86" onclick="hide();" style="">
<tr>
<td>
<input id="viewDetailsForm:_id86:_1" name="viewDetailsForm:_id86"
type="radio" value="0"></input>
<label>State and Town</label>
</td>
<td>
<input id="viewDetailsForm:_id86:_2" name="viewDetailsForm:_id86"
type="radio" value="1"></input>
<label>Zip Code</label>
</td>
</tr>
</table>
where the onclick event is on the table? I'm expecting it to be on each of
the radio buttons.
--
View this message in context: http://www.nabble.com/selectOneRadio-and-radio-button-events-tf3397358.html#a9459381
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: selectOneRadio and radio button events
Posted by Mike Kienenberger <mk...@gmail.com>.
What does the spec say?
http://java.sun.com/javaee/javaserverfaces/1.1/docs/renderkitdocs/
[Note: I haven't looked it up myself -- just providing you a link to
get started on a solution]
On 3/13/07, monkeyden <mo...@gmail.com> wrote:
>
> Can anyone tell me why this:
> <h:selectOneRadio onclick="hide();">
> <f:selectItem itemLabel="#{messages['propertysearch.label.stateTown']}"
> itemValue="0"/>
> <f:selectItem
> itemLabel="#{messages['propertysearch.label.zipCode']}" itemValue="1"/>
> </h:selectOneRadio>
>
> is rendered as such:
> <table id="viewDetailsForm:_id86" onclick="hide();" style="">
> <tr>
> <td>
> <input id="viewDetailsForm:_id86:_1" name="viewDetailsForm:_id86"
> type="radio" value="0"></input>
> <label>State and Town</label>
> </td>
> <td>
> <input id="viewDetailsForm:_id86:_2" name="viewDetailsForm:_id86"
> type="radio" value="1"></input>
> <label>Zip Code</label>
> </td>
> </tr>
> </table>
>
> where the onclick event is on the table? I'm expecting it to be on each of
> the radio buttons.
>
> --
> View this message in context: http://www.nabble.com/selectOneRadio-and-radio-button-events-tf3397358.html#a9459381
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>