-
Sep 23rd, 2010, 01:23 PM
#1
Use of JSTL in checkboxes tag to access loop variable
I was wondering if it is possible for access the loop variable in the checkboxes tag.
I am trying to use the itemLabel, but the itemLabel needs to pull from 2 properties in the bean. The only success I have had is :
<form:checkboxes path="myPath" items="${availableUsrs}" itemValue="userId" itemLabel="firstName" />
What I would like to be able to do is
<form:checkboxes path="myPath" items="${availableUsrs}" itemValue="userId" itemLabel="${loopVariable.firstName+' '+loopVariable.lastName}" />
Thoughts?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules