Hello,
I'm trying to use radio buttons to do a questionnaire with the questions
pulled from a backing bean. There are examples of using select menus in
the use-cases but I don't see anything about how to use radio buttons.
I tried doing something like this:
#{question.text}
<div class="choices">
<div class="answers" style="text-align: left; padding-left:
30px;">
Frequently
</div>
<div class="answers" style="text-align: center">
Sometimes
</div>
<div class="answers" style="text-align: right;">
Rarely
</div>
<input type="radio" name="response" value="5"
class="responses" />
<input type="radio" name="response" value="4"
class="responses" />
<input type="radio" name="response" value="3"
class="responses" />
<input type="radio" name="response" value="2"
class="responses" />
<input type="radio" name="response" value="1"
class="responses" />
<span jsfid="message" for="choices" class="required"
allowBody="false">Mock Error Message</span>
</div>
But am getting the error "A duplicate component id (response) was found
within the same naming container (renderId="123" jsfid="selectOneRadio"
componentType="javax.faces.HtmlSelectOneRadio" extends="selectOneRadio"
allowBody="null" facetName="null")." I'm guessing this is because for
each <input type="radio"> that Clay is seeing, it's trying to create a
<h:selectOneRadio> component. So what do I need to do? Do I need to
wrap stuff in a <span jsfid="selectOneRadio"> or something?
Thanks,
Rich
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]