Hi Cody Zhang

Did you get this working?

Thanks
Karthik
On Tuesday, July 26, 2011 3:17:29 AM UTC+1, Cody Zhang wrote:
>
> Hi,All
>     I write an plugin with jelly。
> This is a question: how to use onchange ?
>
>      branch:                                       version:
> [image: 20110726100324.jpg]
> I want goto "version list" of AlarmClock when select 
> "/packages/apps/AlarmClock".
> how to write onchange script?
>
> my code:
>    
>  <f:entry name="defaultValue" title="Select a default value">
>   <tr>
>   <td>
> <select name="defaultValue">
> <j:invokeStatic className="com.mycom.jenkins.plugin.main.SvnMergeBuilder" 
> method="getListFolders" var="folders" />
>  <j:forEach var="folder" items="${folders}"
> varStatus="loop">
>  <j:choose>
> <j:when test="${instance.defaultValue==folder}">
>  <option value="${folder}" selected="selected">${folder}</option>
> </j:when>
>  <j:otherwise>
> <option value="${folder}">${folder}</option>
>  </j:otherwise>
> </j:choose>
> </j:forEach>
>  </select>
> </td>
>
>  
>   <td>
>  <select name="defaultValue">
> <j:invokeStatic className="com.mycom.jenkins.plugin.main.SvnMergeBuilder" 
> method="getListVersions" var="version" />
>  <j:forEach var="version" items="${version}"
> varStatus="loop">
>  <j:choose>
> <j:when test="${instance.defaultValue==version}">
>  <option value="${version}" selected="selected">${version}</option>
> </j:when>
>  <j:otherwise>
> <option value="${version}">${version}</option>
>  </j:otherwise>
> </j:choose>
> </j:forEach>
>  </select>
> </td>
> </tr> 
>  </f:entry>
>
>     Best Regards,
>         --Cody.Zhang 
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to