RE: Dynamic Radiogroup

2006-10-26 Thread Ben Sommerville
- From: Todd Orr [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 October 2006 1:44 AM To: Tapestry users Subject: Re: Dynamic Radiogroup Reversing the radio and the label still causes this exception. On 10/25/06, James Carman [EMAIL PROTECTED] wrote: I don't think it matters where you define it within

RE: Dynamic Radiogroup

2006-10-26 Thread Ben Sommerville
: Thursday, 26 October 2006 9:33 PM To: 'Tapestry users' Subject: RE: Dynamic Radiogroup I ran into this problem too. FieldLabel does not work with Radio because it is not an IFormComponent. The order of FieldLabel the component it refers to doesn't matter. Except that if you put the FieldLabel

Re: Dynamic Radiogroup

2006-10-25 Thread James Carman
I don't think it matters where you define it within the HTML. Quite often, the field label will come before the field it labels. I've never had to resort to a .page/.jwc file in this case. On 10/24/06, Patrick Moore [EMAIL PROTECTED] wrote: your FieldLabel's field parameter is wrong, it

Re: Dynamic Radiogroup

2006-10-25 Thread Todd Orr
Reversing the radio and the label still causes this exception. On 10/25/06, James Carman [EMAIL PROTECTED] wrote: I don't think it matters where you define it within the HTML. Quite often, the field label will come before the field it labels. I've never had to resort to a .page/.jwc file in

Re: Dynamic Radiogroup

2006-10-25 Thread Patrick Moore
Your experence maybe different. but I found that if I had a component that was not mentioned in java code nor in the .jwc file I would get problems when using FieldLabel... On 10/25/06, James Carman [EMAIL PROTECTED] wrote: I don't think it matters where you define it within the HTML. Quite

Re: Dynamic Radiogroup

2006-10-24 Thread Shing Hing Man
In the component FieldLabel, the parameter field expects an object of type IFormcomponent. (Please see http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/FieldLabel.html) It looks as though the Java class for the Radio component is not of type IFormcomponent. Shing --- Todd Orr

Re: Dynamic Radiogroup

2006-10-24 Thread Todd Orr
That's certainly going to make this difficult. Why is the easy stuff so hard? I suppose I'll have to hack through and implement a replacement for Radio. Any other suggestions? On 10/24/06, Shing Hing Man [EMAIL PROTECTED] wrote: In the component FieldLabel, the parameter field expects an

Re: Dynamic Radiogroup

2006-10-24 Thread Todd Orr
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

Dynamic Radiogroup

2006-10-23 Thread Todd Orr
I'm having trouble getting the radiogroup component to handle a nested For component. The following is nested within a Form component: div jwcid=@RadioGroup selected=ognl:suggestedAmount ul li jwcid=@For source=ognl:suggestedAmounts element=li

Re: Dynamic Radiogroup

2006-10-23 Thread Todd Orr
nevermind, im an ass On 10/23/06, Todd Orr [EMAIL PROTECTED] wrote: I'm having trouble getting the radiogroup component to handle a nested For component. The following is nested within a Form component: div jwcid=@RadioGroup selected=ognl:suggestedAmount ul li

Re: Dynamic Radiogroup

2006-10-23 Thread Todd Orr
Okay, new problem. When attempting to create labels for the radio inputs I am getting exceptions: li jwcid=@For source=ognl:suggestedAmounts element=li value=ognl:currentSuggestedAmount label jwcid=@FieldLabel field=sugspan jwcid=@Insert value=ognl:currentSuggestedAmount.label //label