Hi Jim,

so if I understnad right then you mean the 

protected final void onRender(final MarkupStream markupStream)
        {
                final int markupStart = markupStream.getCurrentIndex();

                Iterator it = renderIterator();
                if (it.hasNext())
                {
                        do
                        {
                                markupStream.setCurrentIndex(markupStart);
                                renderChild((Component)it.next());
                        }
                        while (it.hasNext());
                }
                else
                {
                        markupStream.skipComponent();
                }
        }

from the AbstractRepeater class. So, when i put a  

do
                        {
                                markupStream.setCurrentIndex(markupStart);
        
renderChild(((Component)it.next()).setRenderBodyOnly(true));
                        }
there its the behaviour I need? - Shouldnt this be implemented by
wicket-core already as the current .setRenderBodyOnly(bool) is offered but
has no effect? That seems quite necessary to me, as they have no markup of
their own (like you stated) but repeat their container-tag over the
children.

Regards

Korbinian


> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von James McLaughlin
> Gesendet: Montag, 28. Mai 2007 18:26
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] RepeatingView/ Container behaviour
> 
> Hi Korbinian,
> 
> Well, the fundamental idea of ListView / RepeatingView is 
> that the component has no markup of its own. The markup is 
> given to the children. As such, setRenderBodyOnly on a 
> RepeatingView does nothing.
> ListView provides populateItem, so you call setRenderBodyOnly 
> on the item there. I'm not sure how you are using 
> RepeatingView, but i believe your choices are to call 
> setRenderBodyOnly on each child component you add to it, or 
> override renderChild to call it on the child components automatically.
> 
> best,
> jim
> 
> On 5/28/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> > Jim,
> >
> > thanks for your post - unfortunately i dont understand what you mean
> > exactly: where should I overrrode renderChild and put what 
> for? - the 
> > trouble for me is the base-tag of the RepeatingView, not 
> the outputs 
> > of any of its childs...
> >
> >
> >
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Im Auftrag von 
> > > James McLaughlin
> > > Gesendet: Montag, 28. Mai 2007 14:40
> > > An: wicket-user@lists.sourceforge.net
> > > Betreff: Re: [Wicket-user] RepeatingView/ Container behaviour
> > >
> > > Haven't done this, but I think you would need to override 
> > > renderChild to get access to the component and setRenderBodyOnly.
> > >
> > > best,
> > > jim
> > >
> > > On 5/28/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hello,
> > > >
> > > > ive come to a problem I dont know how to solve. I use a 
> BasePage 
> > > > in wich i have 2 RepeatingViews in wich i then put components 
> > > > (dynamic way at runtime
> > > > - i dont know what component will be in)
> > > >
> > > > <div wicket:id="header">
> > > >     wicket:header container
> > > > </div>
> > > >
> > > > <div wicket:id="content">
> > > >     wicket:content container
> > > > </div>
> > > >
> > > > and they work alright - however, i allways get the <div>
> > > spans around
> > > >
> > > > <div>HeaderComponent1</div><div>HeaderComponent2</div>
> > > >
> > > > - I tried to get rid of them by using header = new 
> > > > RepeatingView("header");
> > > >         header.setRenderBodyOnly(true);
> > > >         add(header);
> > > >
> > > > but the setRenderBodyOnly(true) seems to be ignored... I
> > > then thought
> > > > i could use a WebMarkupcontainer but this then has no 
> .newChildId 
> > > > function and would require me to know the ID of a 
> component, wich 
> > > > i dont know as its dynamic;
> > > >
> > > > So how can i get rid of these <div>s while having the 
> rest of the 
> > > > RepeatingView behaviour?
> > > >
> > > >
> > > >
> > > >
> > > 
> --------------------------------------------------------------------
> > > --
> > > > --- This SF.net email is sponsored by DB2 Express Download
> > > DB2 Express
> > > > C - the FREE version of DB2 express and take control of
> > > your XML. No
> > > > limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > > --------------------------------------------------------------
> > > -----------
> > > This SF.net email is sponsored by DB2 Express Download 
> DB2 Express C 
> > > - the FREE version of DB2 express and take control of 
> your XML. No 
> > > limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > 
> ----------------------------------------------------------------------
> > --- This SF.net email is sponsored by DB2 Express Download 
> DB2 Express 
> > C - the FREE version of DB2 express and take control of 
> your XML. No 
> > limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by DB2 Express Download DB2 
> Express C - the FREE version of DB2 express and take control 
> of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to