In WWB, if you want the related bean to only show certain attributes, you
can put something like:

YourBean { ...  props: name, -someOtherAttribute, ...;  ... }

in your beanprops file. This will remove "someOtherAttribute" from your
view. Does that help?

-Dan

On Fri, Jun 13, 2008 at 6:02 AM, Michael_Bo <[EMAIL PROTECTED]>
wrote:

>
> No, i've added the dropdownchoice to the markup and did not forgot. My
> problem is a little bit more complex.
> with wicket web beans you can't display a bean, that has a relation to an
> another bean. This relationed bean is showed with all attributes. But i
> Only
> wan't one or two, like 'name'. So What i've tried was to remove first the
> relationed attribut from the bean, then create a BeanForm, and then add my
> special DropDownChoice to this created BeanForm. But because using the
> wicket templates, adding an own Componte doesn't realy work.
>
> Did you understand the problem?
>
> chears Michael
>
>
> greeklinux wrote:
> >
> > Do you add the DropDownChoice to the markup and forgott the wicket id?
> >
> >
> >
> > Michael_Bo wrote:
> >>
> >> Hi,
> >>
> >> i have a problem with some Components. I'm using Wicket Web beans.
> >> If tried to add an additional form to a beanFrom. Then I get The
> >> following 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 = beanRForm, page =
> >> metaWicket.EditPage, path =
> >> 2:beanForm:beanRForm.TkDataBeanEditPanel$TkbeanForm, isVisible = true,
> >> isVersioned = true]]
> >> 2. [MarkupContainer [Component id = beanDropDown, page =
> >> metaWicket.EditPage, path =
> >> 2:beanForm:beanRForm:beanDropDown.DropDownChoice, isVisible = true,
> >> isVersioned = false]]
> >>
> >> 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 = beanRForm, page =
> >> metaWicket.EditPage, path =
> >> 2:beanForm:beanRForm.TkDataBeanEditPanel$TkbeanForm, isVisible = true,
> >> isVersioned = true]]
> >> 2. [MarkupContainer [Component id = beanDropDown, page =
> >> metaWicket.EditPage, path =
> >> 2:beanForm:beanRForm:beanDropDown.DropDownChoice, isVisible = true,
> >> isVersioned = false]]
> >>
> >> at org.apache.wicket.Page.checkRendering(Page.java:1116)
> >> at org.apache.wicket.Page.renderPage(Page.java:914)
> >> at
> >>
> org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163)
> >> at
> >>
> org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
> >> at
> >>
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
> >> at
> >>
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1172)
> >> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
> >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330)
> >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> >> at
> >>
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
> >> at
> >>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
> >> at
> >>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> >> at
> >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> >> at
> >>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >> at
> >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> >> at
> >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> >> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> >> at
> >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> >> at org.mortbay.jetty.Server.handle(Server.java:295)
> >> at
> >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
> >> at
> >>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
> >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
> >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
> >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
> >> at
> >>
> org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> >> at
> >>
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> >>
> >> What I want is an Additional Dropdownchoice in my beanFrom because the
> >> beanFrom gets its field from a Bean.
> >> I don't really know in what .html file I have to put this additional
> Bean
> >>
> >> chears
> >> Michael
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/The-component%28s%29-below-failed-to-render-tp17803377p17821002.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to