You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by kalpana kalpana <gk...@gmail.com> on 2011/01/22 05:46:20 UTC

How to refer element id dynamically

I am trying to spread the radio buttons using tomahawk selectOneRadio.
My id looks like this


<rich:dataTable id="carTable" value="#{cars}" var="car">
    <rich:column>
        <s:decorate id="types" template="/layout/display-text.xhtml">
            <t:selectOneRadio id="models" value="#{car.model}" layout="spread">
                <f:selectItems value="#{models}" />
                        </t:selectOneRadio>

                        <h:panelGrid columns="2">
                            <a:repeat value="#{models}"
                                rowKeyVar="index">
                                <t:radio for="car:carTable:0:types:models"
                                    index="#{index}"></t:radio>
                            </a:repeat>
                        </h:panelGrid>  -->
                    </s:decorate>
    </rich:column>
</rich:dataTable>


I referred id after inspecting an element. But this is not working.
How to refer an id in t:radio