hi,
i dont see problems in the markup. Can u please post some
java-components ? Do you have called super. ... -methodes (e.g.
onInitialize)
martin
Am 24.01.2011 20:19, schrieb Teddy C:
Using the Wicket Phonebook as a base, I am having problem dispalyng the
EditContactPage. To the BasePage I add user and role and a Session to save
the login user and role. The listContactPage wich extends the BasePage works
fine. The EditContactPage which also extends the Basepage, is mot able to
display the EditContactPage, failing to render the Components that are
defined in the BasePage.
I would appreciate if someone has any idea of a solution to this problem.
BasePage.Html
html
head
titleWicket Phonebook/title
link rel=stylesheet type=text/css href=styles.css/
/head
body
div
Login Name:
/div
div
Login Role:
/div
div wicket:id=status class=status[[status
messages]]/div
wicket:child/
/body
/html
ListContactpage:
html xmlns:wicket
wicket:extend
form wicket:id=filter-form
input type=hidden name=tracker wicket:id=focus-tracker/
table wicket:id=cars cellspacing=0 cellpadding=2 class=grid
/table
[call to focus restore script]
input wicket:id=delete-selected value=PROCEED TO APPROVAL STAGE
type=submit/
/form
/wicket:extend
/html
EditContactPage:
html xmlns:wicket
wicket:extend
form wicket:id=contactForm
table cellspacing=0 cellpadding=2
tr
tdwicket:message
key=passenger[passenger]/wicket:message/tdtdlabel
wicket:id=passenger size=30//td
/tr
tr
tdwicket:message
key=costcenter[costcenter]/wicket:message/tdtdinput type=text
wicket:id=costcenter size=5 maxlength=6//td
/tr
tr
tdwicket:message
key=car_no[car_no]/wicket:message/tdtdlabel
wicket:id=car_no size=30//td
/tr
tr
tdwicket:message
key=pu_addr[pu_addr]/wicket:message/tdtdlabel
wicket:id=pu_addr size=30//td
/tr
tr
tdwicket:message
key=dest_addr[dest_addr]/wicket:message/tdtdlabel
wicket:id=dest_addr size=30//td
/tr
tr
tdwicket:message key=rate[rate]/wicket:message/tdtdlabel
wicket:id=rate size=30//td
/tr
tr
tdwicket:message key=toll[toll]/wicket:message/tdtdlabel
wicket:id=toll size=30//td
/tr
tr
tdwicket:message key=wait[wait]/wicket:message/tdtdlabel
wicket:id=wait size=30//td
/tr
tr
tdwicket:message key=stops[stops]/wicket:message/tdtdlabel
wicket:id=stops size=30//td
/tr
tr
tr
tdwicket:message key=other[other]/wicket:message/tdtdlabel
wicket:id=other size=30//td
/tr
tr
tr
tdwicket:message
key=wc2pct[wc2pct]/wicket:message/tdtdlabel
wicket:id=wc2pct size=30//td
/tr
tr
tr
tdwicket:message key=total[total]/wicket:message/tdtdlabel
wicket:id=total size=10//td
/tr
tr
tdnbsp;/tdtdinput type=submit wicket:id=save value=[save]
input type=submit wicket:id=cancel value=[cancel]//td
/tr
/table
/form
/wicket:extend
/html
ERROR:
WicketMessage: The component(s) below failed to render. A common problem is
that you have added a component in code but forgot to reference it in the
markup (thus the component will never be rendered).1. [MarkupContainer
[Component id = status]]2. [Component id = Name]3. [Component id = Role]Root
cause:org.apache.wicket.WicketRuntimeException: The component(s) below
failed to render. A common problem is that you have added a component in
code but forgot to reference it in the markup (thus the component will never
be rendered).1. [MarkupContainer [Component id = status]]2. [Component id =
Name]3. [Component id = Role] at
org.apache.wicket.Page.checkRendering(Page.java:1182) at
org.apache.wicket.Page.renderPage(Page.java:922) at
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:167)
at
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at
org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at