On 8/29/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
>
> > > and that map is created upfront by the page.doRender() or what every
> render
> > > call it is (ajax)
> > > So that when streaming the resolving is never be done anymore?
> > >
> >
> > I'd much rather attach the markupfragment to each component in the
> > constructor (but allow for lazy loading) and at the beginning of
> > render() find the associate component for a markup tag but traversing
> > the component hierarchy and find the component which has exactly that
> > markup already assigned.
>
>
>
> ahh that looks fine to me.. But what do resolvers do then?

nothing, no longer needed.

> Do remember every component should have the markup attached in its
> constructor.

thats why we can iterate over the component hierarchy at render time
to find the component

> So the markup what its wants to render is always know (or should) after the
> constructor is done.
> so what needs to be looked up after that?
>

at a variable Markup (later: or better MarkupFragment) to Component,
assign it the markup found in the constructor, and change
MarkupContainer.renderNext() to traverse the Component and to look for
the Component with the same Markup.
I'll give it a try tonight.

> and what do you mean with lazy loading? When is it loaded then?

some components want to create markup dynamically, they won't have any
markup and other components, e.g. component which implements
IMarkupProvider (or MarkupContainer.newMarkupResourceStream()) may
need a parameter passed via the constructor or any other variable
created after super() (== Component.<init>). Because the markupfinder
is called in Component.<init> you wouldnt be able to do without lazy
loading the markup (load it automatically the first time it is needed)

Juergen

>
> johan
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Wicket-develop mailing list
> Wicket-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to