I've tried the jwc approach with no luck.

JWC:

<component id="amountGroup" type="RadioGroup">
        <binding name="selected" value="ognl:suggestedAmount" />
</component>

<component id="amountList" type="For">
        <binding name="source" value="ognl:suggestedAmounts"/>
        <binding name="value" value="ognl:currentSuggestedAmount"/>
        <binding name="element" value="literal:li"/>
</component>

<component id="suggestedAmountField" type="Radio">
        <binding name="value" value="ognl:currentSuggestedAmount" />
</component>

<component id="suggestedAmountLabel" type="FieldLabel">
        <binding name="field" value="component:suggestedAmountField" />
        <binding name="displayName" value="ognl:currentSuggestedAmount.label" />
        <binding name="prerender" value="false" />
</component>


HTML:

<form method="post" jwcid="@Form" success="listener:doSubmit">
        <div jwcid="amountGroup">
                <h3><span jwcid="@Insert" 
value="message:title">TITLE</span></h3>
                <ul>
                        <li jwcid="amountList">
                                <input id="suggestedAmount" type="radio" 
jwcid="suggestedAmountField" />
                                <label for="suggestedAmount" 
jwcid="suggestedAmountLabel">TEST</label>
                        </li>
                </ul>
        </div>
</form>

I did subclass Tap's built in Radio and implemented IFormComponent.
This stopped the errors from occurring, but didn't create the proper
id-for link between the FieldLabel and the Radio components.

On 10/24/06, Patrick Moore <[EMAIL PROTECTED]> wrote:
your FieldLabel's field parameter is wrong, it should look like this:

<label jwcid="@FieldLabel" field="component:sug">

but if I remember correctly this will not work anyhow because sug is
defined in the html after the FieldLabel. You will need to specify sug
in your java or .jwc.

-Pat

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to