It seems to me that dropdowndescriptorselector is a wrapper for the 
dropdown list in the ui-samples-plugin

On Wednesday, May 8, 2013 at 7:33:05 PM UTC+8, Irfan Sayed wrote:
>
> No. i haven't tried.
>
> i have referred 
> https://github.com/jenkinsci/jenkins/tree/master/ui-samples-plugin
> this plugin has example of dropdown list.
> i have never found dropdownDescriptorSelector being used in above plugin 
> for dropdown , so , i am not aware of how to use it 
>
> can you please give me some example ?
> i can refer that 
>
> regards
>
>
>
>
>
> On Wed, May 8, 2013 at 4:54 PM, Mads Nielsen <[email protected] 
> <javascript:>> wrote:
>
>> Have you tried using this one: 
>>
>>
>> https://jenkins-ci.org/maven-site/jenkins-core/jelly-taglib-ref.html#form:dropdownDescriptorSelector
>>
>>
>> On Wed, May 8, 2013 at 8:33 AM, Irfan Sayed <[email protected] 
>> <javascript:>> wrote:
>>
>>> 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}"
>>>                 selected="false" staplerClass="${descriptor.clazz.name
>>> }">
>>>           
>>>           </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
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>
>>
>> -- 
>>
>>
>>
>>
>> *Mads Nielsen ConsultantPraqma A/S*
>>
>>
>>
>> *Tel: +45 50 98 18 09Mail: [email protected] <javascript:> 
>> web: www.praqma.net <http://www.praqma.net/>*
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/18dbf14e-bd48-479e-9f87-33de648230f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to