You're welcome.
It wasn't a known issue before you found it. I just debugged and logged it.
The benefits of using the label component are:
- DRY: a component declares its label once, and the Label refers to it
- validation decoration of the resulting label
Cheers,
Nick.
Chris Lewis-5 wrote:
>
Nick, thanks for pointing that out and I'm glad to see its a known issue
(hopefully that means a fix is coming). Thanks for your solution, but
I'd rather just use the raw label tag. I'm not entirely sure what the
benefit of using the the label component is to be honest, but it was one
of those
The problem is actually in the Radio component.
Copy its source to make your own component and apply these changes:
https://issues.apache.org/jira/browse/TAPESTRY-1709
Cheers,
Nick.
Chris Lewis wrote:
tamseo,
Let me amend my last message. I can use in the form as long as
its not a child of
This is my simple example, I craeted it just to check how to use Radio
html:
${name1}
${name2}
${nameoption} has been selected
tamseo,
I didn't see RadioDemo, so thanks for pointing that out! Have you run it
and does it work? The only difference from my example I can see is that
the radio and label components are rendered in a child loop of the
containing radio group, but that shouldn't make a difference.
tamseo wro
Chris !
I followed RadioDemo test in T5 source, and i'm in the same situation with
you.
Now I'using HTML and waiting for answer from T5 experienced user.
--
View this message in context:
http://www.nabble.com/T5%3A-radio%2C-label-tf4276314.html#a12174593
Sent from the Tapestry - User maili
tamseo,
Let me amend my last message. I can use in the form as long as
its not a child of the component!
It's also important to note that my label components fail to find the
component indicated in the for attribute, unless that component declares
its id in the t: namespace. So, will not wo
Hi Chris!
I think if you remove the label component your code will work.
or add "label" attribute for Radio like this
in my opinion we can't use Label like this Type
Chris Lewis wrote:
> Hello,
>
> I'm trying to get a simple form with some radio buttons and labels
> working, without succ
Ok so I learned that the id parameter must be in the t: namespace, so
changing the radio component to have 't:id="reg-agent"'. Now I'm greeted
with a new exception:
"No object of type org.apache.tapestry.RadioContainer is available from
the Environment."
And then it lists several objects in
Hello,
I'm trying to get a simple form with some radio buttons and labels
working, without success. Following is the source for my Login page
template and class. Note that the page is rendering in a layout component.
Login.html:
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
10 matches
Mail list logo