Hi,

I am new to display tags and im using it, since we need sort for all 
columns in a jsp.

I am using display tags to show a search results in the page. I am using 
jsp and struts.
I have a check box which should be enabled and disabled based on a value 
which is in the list.

Say in the form i am having a collection, with values name, dept , lab
This lab value is boolean and based on the value i have to enable/disable 
checkbox

since logic tags will not work, I am using the core tags and I have
<display:column title="Select" >
<c:choose>
                 <c:when test="${results.lab}">
                                 <input type="checkbox" name=
"chkboxSelected" value="${results.id}" id="chkboxSelected">
                 </c:when>
                 <c:otherwise>
                                 <input type="checkbox" name=
"chkboxSelected" value="${results.id}" id="chkboxSelected" disabled="true"
>
                 </c:otherwise>
</c:choose>
</display:column>


but what i am getting using this is , 2 columns of check boxes, one all 
enabled and other all disabled.
I am not getting what i am doing wrongly here.

Please help to solve this.

thanks 

-----------------------------------------
________________________________________________________
DTCC DISCLAIMER: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email
in error, please notify us immediately and delete the email and any
attachments from your system. The recipient should check this email
and any attachments for the presence of viruses.  The company
accepts no liability for any damage caused by any virus transmitted
by this email.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to