[Logo] RSF Discussions Forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Adding a label for a checkbox element  XML
Forum Index -> RSF Help and Problems
Author Message
jimeng
Request-scope Wrangler

Joined: 11/07/2006 17:41:40
Messages: 84
Offline

I read that UILabelTargetDecorator has been deprecated. If I understood the documentation correctly, matching up an input element's "id" attribute with a label element's "for" attribute is supposed to cause the "for" attribute to be set correctly when the element is rendered without any intervention in the producer. Maybe I've got that wrong because it's not working.

Here's a snippet from my template:
Code:
	<p rsf:id="option-row:">
  		<input type="checkbox" rsf:id="option-checkbox" id="option2"/>
  		<label rsf:id="option-label" for="option2">options</label>
  	</p>	

What needs to be done to make this work?

Thanks. Jim
jimeng
Request-scope Wrangler

Joined: 11/07/2006 17:41:40
Messages: 84
Offline

The documentation I referred to is here:
https://bugs.caret.cam.ac.uk/browse/RSF-77
and here:
http://saffron.caret.cam.ac.uk/projects/RSFUtil/trunk/site/apidocs/uk/org/ponder/rsf/components/decorators/UILabelTargetDecorator.html
antranig
Request-scope Wrangler

Joined: 03/04/2006 13:29:55
Messages: 643
Offline

Hi there Jim - have you made sure you are using the 0.7.4 RSF JAR set? What you have written there looks exactly what is required to make this work. And we have test cases Can you supply the relevant section of your Producer, and also paste in the markup which RSF generates in your page?
Cheers,
A.
 
Forum Index -> RSF Help and Problems
Message Quick Reply
Go to:   
Powered by JForum 2.1.6 © JForum Team