What version of Wicket are you using? There should work with the current version from svn? 

Janne

On 19.9.2006, at 13.08, Manuel Barzi wrote:

Ok, checking the markup I can see - following the rules - shouldn't I
use parent html element body, neither elements updwards (head, html,
etc...). Wicket-portlet-examples, ExamplePortlet.html and
ExamplePortlet2.html just contain inner-body html code, so I should do
the same... will check!

On 9/19/06, Manuel Barzi <[EMAIL PROTECTED]> wrote:
Hi, Janne,

After satisfactory testing the "wicket-portlet-examples" (1.x), I
decided to test a part of my webapp, just a few linked pages to test
navigation. So, what I did is just extending from PortletPage, instead
of WebPage. No compilation errors, and also no errors when deploying
the WAR in LifeRay (Tomcat jdk14), but... when loading the portlet -
add it to the window layout - I get the following exception onscreen
(the portlet frame seems to be correctly loaded, but no view inside,
just a Wicket exception output as follows):

---
Unexpected RuntimeException
WicketMessage: Programming error: 'parent' should be a Page or a
Border implementing IHeaderRendererRoot
cause:wicket.WicketRuntimeException: Programming error: 'parent'
should be a Page or a Border implementing IHeaderRenderer     at
wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:147)
    at wicket.Component.renderComponent(Component.java:1696)     at
wicket.MarkupContainer.onRender(MarkupContainer.java:927)     at
wicket.Component.render(Component.java:1532)     at
wicket.Component.render(Component.java:1498)     at
wicket.MarkupContainer.autoAdd(MarkupContainer.java:196)     at
wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:82)
    at wicket.MarkupContainer.renderNext(MarkupContainer.java:1361)
 at wicket.MarkupContainer.renderAll(MarkupContainer.java:944)     at
wicket.Page.onRender(Page.java:861)     at
wicket.Component.render(Component.java:1532)     at
wicket.Page.renderPage(Page.java:410)     at
wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
    at wicket.protocol.http.portlet.PortletRenderResponseStrategy.respond(PortletRenderResponseStrategy.java:56)
    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
    at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:858)
    at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
    at wicket.RequestCycle.step(RequestCycle.java:966)     at
wicket.RequestCycle.steps(RequestCycle.java:1040)     at
wicket.RequestCycle.request(RequestCycle.java:454)     at
wicket.protocol.http.portlet.WicketPortlet.render(WicketPortlet.java:250)
    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:89)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:295)
    at com.liferay.portlet.CachePortlet.render(CachePortlet.java:155)
   at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:685)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:963)
    at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:65)
    at com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:135)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:189)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:437)
    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:825)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:94)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:143)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:115)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)

Page
[Page class = es.tsystems.nt.web.view.MainMenuPage, id = 2]:

# Path Size Type Model Object
1    <auto>_header    481 bytes
wicket.markup.html.internal.HtmlHeaderContainer
2    LinkCaocAdminPage    1.2K    wicket.markup.html.link.Link
---

As I mentioned before, I've just replaced WebPage by PortletPage...
should I do something more, you tell me.

Thank you, in advance.

Manuel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
_______________________________________________
Wicket-user mailing list

Janne Hietamäki
Teknologiajohtaja
Oy Cemron Ab

Osoite:
Kehräsaari
33200 Tampere
http://www.cemron.fi

puh. +358 40 724 7680


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to