To answer you question: components must be attached to a page. This is
required to find the markup. I don't think we are able to support all
different kind of components without an attached page. Think about
Label etc which don't have an attached markup file.

Juergen

On 11/7/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> The page must be rendered completly at least once. Thus components can
> only be re-rendered. src/test/.../Simple*Test provides some examples.
>
> Juergen
>
> On 11/7/05, Janne Hietamäki <[EMAIL PROTECTED]> wrote:
> > Juergen Donnerstag wrote:
> > > It is already in CVS HEAD, though not yet accesible through a URL. The
> > > method to call RequestCycle.render(component). It is the first
> > > implementation, so please bare with us if is not perfect yet. Hence,
> > > we appreciate any feedback.
> > >
> >
> > Yep, I have tried that, and I'm going to test it some more.
> >
> > What do you think, would it be a good or bad thing to allow rendering of
> > components which are not attached to a page? Currently
> > RequestCycle.render(new Label("test","test)) crashes:
> >
> >
> > java.lang.NullPointerException
> >    at wicket.Component.findMarkupStream(Component.java:1824)
> >    at wicket.markup.html.WebComponent.onRender(WebComponent.java:77)
> >    at wicket.Component.render(Component.java:1253)
> >    at wicket.RequestCycle.request(RequestCycle.java:483)
> >
> >
> > --
> > Janne Hietamäki
> > Cemron Ltd
> > http://www.cemron.com/
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App Server. Download
> > it for free - -and be entered to win a 42" plasma tv or your very own
> > Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to