myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kalpana kalpana <gkalpanapraka...@gmail.com>
Subject How to refer element id dynamically
Date Sat, 22 Jan 2011 04:46:20 GMT
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

Mime
View raw message