Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes How to Enable the filelds inside the logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to Enable the filelds inside the logic:iterate" Watch "How to Enable the filelds inside the logic:iterate" New topic
Author

How to Enable the filelds inside the logic:iterate

S RamaKrishna Reddy
Greenhorn

Joined: Mar 22, 2009
Posts: 1
I am new to use the logic tags. Please help me. How to enable filelds inside the logic:iterate

<logic:iterate name="domainValueForm" property="domainValueData.domainValuesLst" id="all">
<tr>
<td>
<input id="domainValueStr" type="text" disabled="true" value= "<bean:write name='all' property="domainValueStr"/>"/>
</td>
<td><input id="domainValueDescription" type="text" disabled="true" value= "<bean:write name='all' property="domainValueDescription"/>"/></td>
<td><html:radio styleId="rstatus" name="all" disabled="true" property="status" value="ACTIVE" indexed="true"/><bean:message key="label.enable" />
<html:radio styleId="rstatus1" name="all" disabled="true" property="status" value="INACTIVE" indexed="true"/><bean:message key="label.disable" /></td>
<td><html:textarea styleId="domainValueRemarks" disabled="true" styleClass="domain-value-textarea" name="all" property="domainValueRemarks"/></td>
<td><input type="button" value="" class="edit-btn" onclick="javascript:enableDomainValues();"></td>
</tr>
</logic:iterate>

function enableDomainValues(){
document.getElementById('all').disabled=false;
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Enable the filelds inside the logic:iterate