hi,
i have created plugin which consolidates the perforce sync option at run-time using drop down box.
when user clicks on any option in drop down box, respective operation started
following are the options in drop down box:
1: Normal sync
2: disable sync
3: force sync
now, my requirement is , the moment user selects the "force sync" option in drop down box , textbox should be displayed. and if, user selects some other option then textbox should be invisible.
i have used "dropdownListBlock" and "dropdownList" tags but the results are not the expected one
following is the index.jelly file
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form">
<f:entry title="${%Perforce Sync Option}">
<div name="parameter">
<input type="hidden" name="name" value="${
it.name}" />
<select name="syncOption">
<j:forEach var="option" items="${it.syncOptions}">
<f:option>${option}</f:option>
</j:forEach>
</select>
</div>
<table>
<j:set var="currentOption" value="${it.syncOption}"/>
<f:dropdownList name="fruit" title="Fruits">
<j:forEach var="option" items="${it.syncOptions}" varStatus="loop">
<f:dropdownListBlock title="${descriptor.displayName}" value="${loop.index}"
</f:dropdownListBlock>
</j:forEach>
</f:dropdownList>
</table>
</f:entry>
</j:jelly>
can you please review and let me know what needs to be done
please suggest
regards
irfan