Error while including sidepanel.jelly in plugin page

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

Error while including sidepanel.jelly in plugin page

Hayes, Peter
I am trying to include the sidepanel.jelly as part of my layout like
below :

<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">
<l:layout>
    <st:include page="sidepanel.jelly" />
    <l:main-panel>
      <f:form method="get" action="doRelease">
        <f:entry title="${%Release version}"
help="${rootURL}/plugin/release/help-releaseVersion.html">
          <f:textbox name="releaseVersion" value="${it.releaseVersion}"
/>
        </f:entry>
        <f:entry title="${%Next development version}"
help="${rootURL}/plugin/release/help-developmentVersion.html">
          <f:textbox name="developmentVersion"
value="${it.developmentVersion}" />
        </f:entry>
        <f:submit value="${%Schedule Release Build}"/>
      </f:form>
    </l:main-panel>
  </l:layout>
</j:jelly>

Although I see other views using this exact same syntax, it is not
working for me.  I receive the following error message :

HTTP ERROR: 500

file:/C:/dev/code/hudson/release/src/main/resources/com/fmrco/insight/hu
dson/plugin/ReleaseWrapper/ReleaseAction/index.jelly:8:42: <st:include>
No page found 'sidepanel.jelly' for class
com.fmrco.insight.hudson.plugin.ReleaseWrapper$ReleaseAction

RequestURI=/job/bank/release/

Thanks,

Peter Hayes
Architecture & Shared Technology Services | Fidelity Investments
Management Technology


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

Reply | Threaded
Open this post in threaded view
|

Re: Error while including sidepanel.jelly in plugin page

Tom Huybrechts
The sidepanel.jelly is resolved relative to the class of the "it"
object. In your case it is an action, and you probably want "it" to be
the owner (project or build) of that action.
Assuming it.getOwner() points there, try <st:include
page="sidepanel.jelly" from="${it.owner}"/>. Or something like that, I
can never remember the syntax. I usually do a global search in all the
.jelly files for examples in cases like this...

On Wed, Jun 18, 2008 at 5:16 PM, Hayes, Peter <[hidden email]> wrote:

> I am trying to include the sidepanel.jelly as part of my layout like
> below :
>
> <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">
> <l:layout>
>    <st:include page="sidepanel.jelly" />
>    <l:main-panel>
>      <f:form method="get" action="doRelease">
>        <f:entry title="${%Release version}"
> help="${rootURL}/plugin/release/help-releaseVersion.html">
>          <f:textbox name="releaseVersion" value="${it.releaseVersion}"
> />
>        </f:entry>
>        <f:entry title="${%Next development version}"
> help="${rootURL}/plugin/release/help-developmentVersion.html">
>          <f:textbox name="developmentVersion"
> value="${it.developmentVersion}" />
>        </f:entry>
>        <f:submit value="${%Schedule Release Build}"/>
>      </f:form>
>    </l:main-panel>
>  </l:layout>
> </j:jelly>
>
> Although I see other views using this exact same syntax, it is not
> working for me.  I receive the following error message :
>
> HTTP ERROR: 500
>
> file:/C:/dev/code/hudson/release/src/main/resources/com/fmrco/insight/hu
> dson/plugin/ReleaseWrapper/ReleaseAction/index.jelly:8:42: <st:include>
> No page found 'sidepanel.jelly' for class
> com.fmrco.insight.hudson.plugin.ReleaseWrapper$ReleaseAction
>
> RequestURI=/job/bank/release/
>
> Thanks,
>
> Peter Hayes
> Architecture & Shared Technology Services | Fidelity Investments
> Management Technology
>
>
> ---------------------------------------------------------------------
> 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: Re: Error while including sidepanel.jelly in plugin page

Hayes, Peter
Thanks Tom.  I was unclear on the "it" concept.

Thanks.

-----Original Message-----
From: Tom Huybrechts [mailto:[hidden email]]
Sent: Wednesday, June 18, 2008 1:03 PM
To: [hidden email]
Subject: Re: Error while including sidepanel.jelly in plugin page

The sidepanel.jelly is resolved relative to the class of the "it"
object. In your case it is an action, and you probably want "it" to be
the owner (project or build) of that action.
Assuming it.getOwner() points there, try <st:include
page="sidepanel.jelly" from="${it.owner}"/>. Or something like that, I
can never remember the syntax. I usually do a global search in all the
.jelly files for examples in cases like this...

On Wed, Jun 18, 2008 at 5:16 PM, Hayes, Peter <[hidden email]>
wrote:

> I am trying to include the sidepanel.jelly as part of my layout like
> below :
>
> <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">
> <l:layout>
>    <st:include page="sidepanel.jelly" />
>    <l:main-panel>
>      <f:form method="get" action="doRelease">
>        <f:entry title="${%Release version}"
> help="${rootURL}/plugin/release/help-releaseVersion.html">
>          <f:textbox name="releaseVersion" value="${it.releaseVersion}"
> />
>        </f:entry>
>        <f:entry title="${%Next development version}"
> help="${rootURL}/plugin/release/help-developmentVersion.html">
>          <f:textbox name="developmentVersion"
> value="${it.developmentVersion}" />
>        </f:entry>
>        <f:submit value="${%Schedule Release Build}"/>
>      </f:form>
>    </l:main-panel>
>  </l:layout>
> </j:jelly>
>
> Although I see other views using this exact same syntax, it is not
> working for me.  I receive the following error message :
>
> HTTP ERROR: 500
>
>
file:/C:/dev/code/hudson/release/src/main/resources/com/fmrco/insight/hu
> dson/plugin/ReleaseWrapper/ReleaseAction/index.jelly:8:42:
<st:include>

> No page found 'sidepanel.jelly' for class
> com.fmrco.insight.hudson.plugin.ReleaseWrapper$ReleaseAction
>
> RequestURI=/job/bank/release/
>
> Thanks,
>
> Peter Hayes
> Architecture & Shared Technology Services | Fidelity Investments
> Management Technology
>
>
> ---------------------------------------------------------------------
> 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]



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

Reply | Threaded
Open this post in threaded view
|

Re: Error while including sidepanel.jelly in plugin page

Kohsuke Kawaguchi
Administrator
Hayes, Peter wrote:
> Thanks Tom.  I was unclear on the "it" concept.

It's the equivalent of "this" for views (except 'this' is a reserved
word so I picked something else.)

>
> Thanks.
>
> -----Original Message-----
> From: Tom Huybrechts [mailto:[hidden email]]
> Sent: Wednesday, June 18, 2008 1:03 PM
> To: [hidden email]
> Subject: Re: Error while including sidepanel.jelly in plugin page
>
> The sidepanel.jelly is resolved relative to the class of the "it"
> object. In your case it is an action, and you probably want "it" to be
> the owner (project or build) of that action.
> Assuming it.getOwner() points there, try <st:include
> page="sidepanel.jelly" from="${it.owner}"/>. Or something like that, I
> can never remember the syntax. I usually do a global search in all the
> .jelly files for examples in cases like this...
>
> On Wed, Jun 18, 2008 at 5:16 PM, Hayes, Peter <[hidden email]>
> wrote:
>> I am trying to include the sidepanel.jelly as part of my layout like
>> below :
>>
>> <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">
>> <l:layout>
>>    <st:include page="sidepanel.jelly" />
>>    <l:main-panel>
>>      <f:form method="get" action="doRelease">
>>        <f:entry title="${%Release version}"
>> help="${rootURL}/plugin/release/help-releaseVersion.html">
>>          <f:textbox name="releaseVersion" value="${it.releaseVersion}"
>> />
>>        </f:entry>
>>        <f:entry title="${%Next development version}"
>> help="${rootURL}/plugin/release/help-developmentVersion.html">
>>          <f:textbox name="developmentVersion"
>> value="${it.developmentVersion}" />
>>        </f:entry>
>>        <f:submit value="${%Schedule Release Build}"/>
>>      </f:form>
>>    </l:main-panel>
>>  </l:layout>
>> </j:jelly>
>>
>> Although I see other views using this exact same syntax, it is not
>> working for me.  I receive the following error message :
>>
>> HTTP ERROR: 500
>>
>>
> file:/C:/dev/code/hudson/release/src/main/resources/com/fmrco/insight/hu
>> dson/plugin/ReleaseWrapper/ReleaseAction/index.jelly:8:42:
> <st:include>
>> No page found 'sidepanel.jelly' for class
>> com.fmrco.insight.hudson.plugin.ReleaseWrapper$ReleaseAction
>>
>> RequestURI=/job/bank/release/
>>
>> Thanks,
>>
>> Peter Hayes
>> Architecture & Shared Technology Services | Fidelity Investments
>> Management Technology
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment