Jelly: Access field value from another jelly file.

27 views
Skip to first unread message

Jochen Fuerbacher

unread,
Oct 25, 2016, 6:18:18 AM10/25/16
to Jenkins Developers
Hello,

I have a config.jelly which includes a main jelly file and also some additional (repeatable) jelly files from an other class. The config-main.jelly has a textbox with the field "enteredValue". Now I'd like to use the value, entered in this textbox in the "templates" config.jelly.

This is in the parent config.jelly:
...
<st:include page="config-main.jelly" class="${descriptor.clazz}" />

<f:entry title="${%Some templates}">
   
<f:repeatable field="templates">
     
<st:include page="config.jelly" class="${descriptor.clazz}" />
   
</f:repeatable>
</
f:entry>...

This is in the config-main.jelly:
...
<f:entry title="${%Some value}" field="enteredValue">
 
<f:textbox />
</f:entry>
...


This is something I want to do in the "templates" config.jelly:
...
<j:set var="aVariable" value="${enteredValue}" />
...

Is there an easy way to do something like that?

Thank you.
Reply all
Reply to author
Forward
0 new messages