Folks,

I am trying to get a handle on the right way to extend Shell component. I would like to use OGNL based on Evan Rawson's best practice.

Currently I am receiving this...

org.apache.hivemind.ApplicationRuntimeException

component: [EMAIL PROTECTED]
location: context:/WEB-INF/Home.page, line 2, column 54
1 <!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
2 <page-specification class="org.trails.page.HomePage">
3 <property name="descriptor"/>
4 </page-specification>


java.lang.NullPointerException

Stack Trace:
org.apache.tapestry.html.Shell.renderComponent(Shell.java:63)
org.trails.demo.components.LayoutAssets.renderComponent(LayoutAssets.java:96)



All I did was create a derivative...

@ComponentClass(allowBody = true, allowInformalParameters = true)
public abstract class LayoutAssets extends Shell implements ILayout
{
        @Override
        public void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
        {
                super.renderComponent(writer, cycle);

                if (cycle.isRewinding())
                        return;
        }
}

No html template but I do have a jwc file.

<component-specification class="org.trails.demo.components.LayoutAssets"
                                                 allow-body="yes"
                                                 
allow-informal-parameters="yes"/>

Why is the base class crashing?

Thanks for any assistance.

Best regards
Ken in nashua

_________________________________________________________________
Make every IM count. Download Messenger and join the i’m Initiative now. It’s free. http://im.live.com/messenger/im/home/?source=TAGHM_June07


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to