It makes sense that the radio button wouldn't work because it would
require that all the names be the same, but all the ids be different.
This is really not that hard to implement with a custom component, but
as far as I can tell, its not possible to do with the standard
components.
On Thu, 17 Mar 2005 16:33:15 -0500, Sean Schofield
<[EMAIL PROTECTED]> wrote:
> Raoul,
>
> I am forwarding your message to the myfaces-user list so that others
> can benefit from the answer ...
>
> MYFACES-91 is not completely closed out yet. The part that works
> allows you to specify how the id works inside of a dataTable. Here is
> an example ...
>
> <h:dataTable value="#{forceIdBean.choices}" var="choice">
> <h:column>
> <h:inputText id="widget" value="#{choice}"/>
> </h:column>
> </h:dataTable>
>
> yields ...
>
> <table>
> <tbody>
> <tr><td><input id="dataTable:_id7_0:widget"
> name="dataTable:_id7_0:widget" type="text" value="foo"/></td></tr>
> <tr><td><input id="dataTable:_id7_1:widget"
> name="dataTable:_id7_1:widget" type="text" value="bar"/></td></tr>
> <tr><td><input id="dataTable:_id7_2:widget"
> name="dataTable:_id7_2:widget" type="text" value="buzz"/></td></tr>
> </tbody>
> </table>
>
> where as
>
> <x:dataTable value="#{forceIdBean.choices}" var="choice">
> <h:column>
> <x:inputText id="widget" value="#{choice}"
> forceId="true" forceIdIndex="true"/>
> </h:column>
> </x:dataTable>
>
> yields
>
> <table>
> <tbody>
> <tr><td><input id="widget[0]" name="widget[0]" type="text"
> value="foo"/></td></tr>
> <tr><td><input id="widget[1]" name="widget[1]" type="text"
> value="bar"/></td></tr>
> <tr><td><input id="widget[2]" name="widget[2]" type="text"
> value="buzz"/></td></tr>
> </tbody>
> </table>
>
> Does that make sense? If you are using selectOneRadio that still does
> not work yet although I hope to address that eventually.
>
> Regards,
> sean
>
> ---------- Forwarded message ----------
> From: Raul Cuartero Lopez <[EMAIL PROTECTED]>
> Date: Thu, 17 Mar 2005 15:17:00 +0100
> Subject: Radio button on a dataTable
> To: [EMAIL PROTECTED]
>
> Hello Sean i download the lastest version of MyFaces (1.0.9 rc1), and
> i see that the feature MY-FACES-91 is available (extract from release
> notes of this version). Can you send me and example of this feature, please
> i�m trying but i don�t know how can works
>
> Thanks.
>
--
-Heath Borders-Wing
[EMAIL PROTECTED]