config.jelly does not retrieve the current value of the parameter.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

config.jelly does not retrieve the current value of the parameter.

Shobha Dashottar
The config.jelly for the project configure page displays the textboxes correctly. The parameter values collected after save are also stored in the config.xml. But, upon entering the configure page the next time the already stored values are not getting populated in those textboxes.

What is missing in my jelly script?
 
  <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:block>
             <f:entry title="Manifest URL" help="/plugin/myplugin/help/help-manifest.html">
            <f:textbox name="manifest" />
          </f:entry>
          <f:entry title="Remote URL" help="/plugin/myplugin/help/help-remote.html">
            <f:textbox name="remote" />
          </f:entry>
          <f:entry title="Manifest Branch" help="/plugin/myplugin/help/help-branch.html">
            <f:textbox name="branch" />
          </f:entry>
   
</f:block>
</j:jelly>

 
Reply | Threaded
Open this post in threaded view
|

Re: config.jelly does not retrieve the current value of the parameter.

Thomas Fuerer
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

add to the constructor of the descriptor the following line:
load();

the data will be loaded from the xml files in the workspace

thomas

Shobha Dashottar schrieb:

> The config.jelly for the project configure page displays the textboxes
> correctly. The parameter values collected after save are also stored in the
> config.xml. But, upon entering the configure page the next time the already
> stored values are not getting populated in those textboxes.
>
> What is missing in my jelly script?
>  
>   <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler"
> xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson"
> xmlns:f="/lib/form">
> <f:block>
>    <table>
>           <f:entry title="Manifest URL"
> help="/plugin/myplugin/help/help-manifest.html">
>             <f:textbox name="manifest" />
>           </f:entry>
>           <f:entry title="Remote URL"
> help="/plugin/myplugin/help/help-remote.html">
>             <f:textbox name="remote" />
>           </f:entry>
>           <f:entry title="Manifest Branch"
> help="/plugin/myplugin/help/help-branch.html">
>             <f:textbox name="branch" />
>           </f:entry>
>     </table>
> </f:block>
> </j:jelly>
>
>  
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknyyAEACgkQvPlwZgLDckIamgCggg+kg9W39SHyh+U8I9YxLA/+
GAcAnR3YTriSFQrynLhqDS6DDRWo/cl5
=lxiS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: config.jelly does not retrieve the current value of the parameter.

Tom Huybrechts
In reply to this post by Shobha Dashottar
use <f:textbox name="manifest" value="${it.manifest}"/> or <f:textbox
field="manifest"/>

On Fri, Apr 24, 2009 at 7:27 PM, Shobha Dashottar <[hidden email]> wrote:

>
> The config.jelly for the project configure page displays the textboxes
> correctly. The parameter values collected after save are also stored in the
> config.xml. But, upon entering the configure page the next time the already
> stored values are not getting populated in those textboxes.
>
> What is missing in my jelly script?
>
>  <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler"
> xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson"
> xmlns:f="/lib/form">
> <f:block>
>   <table>
>          <f:entry title="Manifest URL"
> help="/plugin/myplugin/help/help-manifest.html">
>            <f:textbox name="manifest" />
>          </f:entry>
>          <f:entry title="Remote URL"
> help="/plugin/myplugin/help/help-remote.html">
>            <f:textbox name="remote" />
>          </f:entry>
>          <f:entry title="Manifest Branch"
> help="/plugin/myplugin/help/help-branch.html">
>            <f:textbox name="branch" />
>          </f:entry>
>    </table>
> </f:block>
> </j:jelly>
>
>
> --
> View this message in context: http://www.nabble.com/config.jelly-does-not-retrieve-the-current-value-of-the-parameter.-tp23221365p23221365.html
> Sent from the Hudson dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: config.jelly does not retrieve the current value of the parameter.

Erik Ramfelt
In reply to this post by Thomas Fuerer
On a side note, how about changing Hudson so the load() method is
called from the class that creates the Descriptor objects (those
marked with the annotation)? If it is called in the construtor, it is
impossible to create the descriptor in unit tests without a running
Hudson.

Regards
//Erik

On Sat, Apr 25, 2009 at 10:21 AM, Thomas Fürer
<[hidden email]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> add to the constructor of the descriptor the following line:
> load();
>
> the data will be loaded from the xml files in the workspace
>
> thomas
>
> Shobha Dashottar schrieb:
>> The config.jelly for the project configure page displays the textboxes
>> correctly. The parameter values collected after save are also stored in the
>> config.xml. But, upon entering the configure page the next time the already
>> stored values are not getting populated in those textboxes.
>>
>> What is missing in my jelly script?
>>
>>   <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler"
>> xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson"
>> xmlns:f="/lib/form">
>> <f:block>
>>    <table>
>>           <f:entry title="Manifest URL"
>> help="/plugin/myplugin/help/help-manifest.html">
>>             <f:textbox name="manifest" />
>>           </f:entry>
>>           <f:entry title="Remote URL"
>> help="/plugin/myplugin/help/help-remote.html">
>>             <f:textbox name="remote" />
>>           </f:entry>
>>           <f:entry title="Manifest Branch"
>> help="/plugin/myplugin/help/help-branch.html">
>>             <f:textbox name="branch" />
>>           </f:entry>
>>     </table>
>> </f:block>
>> </j:jelly>
>>
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAknyyAEACgkQvPlwZgLDckIamgCggg+kg9W39SHyh+U8I9YxLA/+
> GAcAnR3YTriSFQrynLhqDS6DDRWo/cl5
> =lxiS
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]