|
Hello,
Can anybody recommend how to achieve the following: I need to repeat two tags at the same level, without placing them in a container. For example, the below markup shows a static <div> containing two dynamic <div> tags(one for the repeater and one for the two tags I need alongside each other): <div id="onlyThisContainerNeeded"> <div wicket:id="repeaterContainer_NOT_wanted"> <div wicket:id="items"/> </div> </div> For the "items" I use the following component to place my 2 tags (a header and a div): <wicket:panel> <h4 wicket:id="title"></h4> <div> <p>some text</p> </div> </wicket:panel> When the repeater is rendered I get: <div id="onlyThisContainerNeeded"> <div> <-- I need to find a way to remove this container --> <h4>some title</h4> <div> <p>some text</p> </div> </div> <div> <-- I need to find a way to remove this container --> <h4>some other title</h4> <div> <p>some other text</p> </div> </div> </div> So, what can I do to get the following instead: <div id="onlyThisContainerNeeded"> <h4>some title</h4> <div> <p>some text</p> </div> <h4>some other title</h4> <div> <p>some other text</p> </div> </div> Thank you in advance! --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
use <wicket:container> tag instead
Regards Žilvinas Vilutis E-mail: [hidden email] On Thu, Apr 28, 2011 at 4:38 PM, Alexandros Karypidis <[hidden email]> wrote: > Hello, > > Can anybody recommend how to achieve the following: > > I need to repeat two tags at the same level, without placing them in a > container. For example, the below markup shows a static <div> containing two > dynamic <div> tags(one for the repeater and one for the two tags I need > alongside each other): > > <div id="onlyThisContainerNeeded"> > <div wicket:id="repeaterContainer_NOT_wanted"> > <div wicket:id="items"/> > </div> > </div> > > For the "items" I use the following component to place my 2 tags (a header > and a div): > > <wicket:panel> > <h4 wicket:id="title"></h4> > <div> > <p>some text</p> > </div> > </wicket:panel> > > When the repeater is rendered I get: > > <div id="onlyThisContainerNeeded"> > <div> <-- I need to find a way to remove this container --> > <h4>some title</h4> > <div> > <p>some text</p> > </div> > </div> > <div> <-- I need to find a way to remove this container --> > <h4>some other title</h4> > <div> > <p>some other text</p> > </div> > </div> > </div> > > So, what can I do to get the following instead: > > <div id="onlyThisContainerNeeded"> > <h4>some title</h4> > <div> > <p>some text</p> > </div> > <h4>some other title</h4> > <div> > <p>some other text</p> > </div> > </div> > > Thank you in advance! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > >
--------------------
http://blog.vilutis.lt |
|
It's described here:https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket'XHTMLtags-Elementwicket:container
Žilvinas Vilutis E-mail: [hidden email] On Thu, Apr 28, 2011 at 4:47 PM, Zilvinas Vilutis <[hidden email]> wrote: > use <wicket:container> tag instead > > Regards > > Žilvinas Vilutis > > E-mail: [hidden email] > > > > On Thu, Apr 28, 2011 at 4:38 PM, Alexandros Karypidis <[hidden email]> wrote: >> Hello, >> >> Can anybody recommend how to achieve the following: >> >> I need to repeat two tags at the same level, without placing them in a >> container. For example, the below markup shows a static <div> containing two >> dynamic <div> tags(one for the repeater and one for the two tags I need >> alongside each other): >> >> <div id="onlyThisContainerNeeded"> >> <div wicket:id="repeaterContainer_NOT_wanted"> >> <div wicket:id="items"/> >> </div> >> </div> >> >> For the "items" I use the following component to place my 2 tags (a header >> and a div): >> >> <wicket:panel> >> <h4 wicket:id="title"></h4> >> <div> >> <p>some text</p> >> </div> >> </wicket:panel> >> >> When the repeater is rendered I get: >> >> <div id="onlyThisContainerNeeded"> >> <div> <-- I need to find a way to remove this container --> >> <h4>some title</h4> >> <div> >> <p>some text</p> >> </div> >> </div> >> <div> <-- I need to find a way to remove this container --> >> <h4>some other title</h4> >> <div> >> <p>some other text</p> >> </div> >> </div> >> </div> >> >> So, what can I do to get the following instead: >> >> <div id="onlyThisContainerNeeded"> >> <h4>some title</h4> >> <div> >> <p>some text</p> >> </div> >> <h4>some other title</h4> >> <div> >> <p>some other text</p> >> </div> >> </div> >> >> Thank you in advance! >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] >> >> >
--------------------
http://blog.vilutis.lt |
|
In reply to this post by akarypid
setRenderBodyOnly(true) on <div wicket:id="repeaterContainer_NOT_wanted">
or <wicket:container wicket:id="repeaterContainer_NOT_wanted"> |
|
In reply to this post by Zilvinas Vilutis
I am absolutely amazed that I had not used this tag until today. Thanks
for pointing it out. On Fri, 29 Apr 2011 02:48:33 +0300, Zilvinas Vilutis <[hidden email]> wrote: > It's described > here:https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket'XHTMLtags-Elementwicket:container > > > Žilvinas Vilutis > > E-mail: [hidden email] > > > > On Thu, Apr 28, 2011 at 4:47 PM, Zilvinas Vilutis <[hidden email]> > wrote: >> use <wicket:container> tag instead >> >> Regards >> >> Žilvinas Vilutis >> >> E-mail: [hidden email] >> >> >> >> On Thu, Apr 28, 2011 at 4:38 PM, Alexandros Karypidis >> <[hidden email]> wrote: >>> Hello, >>> >>> Can anybody recommend how to achieve the following: >>> >>> I need to repeat two tags at the same level, without placing them in a >>> container. For example, the below markup shows a static <div> >>> containing two >>> dynamic <div> tags(one for the repeater and one for the two tags I need >>> alongside each other): >>> >>> <div id="onlyThisContainerNeeded"> >>> <div wicket:id="repeaterContainer_NOT_wanted"> >>> <div wicket:id="items"/> >>> </div> >>> </div> >>> >>> For the "items" I use the following component to place my 2 tags (a >>> header >>> and a div): >>> >>> <wicket:panel> >>> <h4 wicket:id="title"></h4> >>> <div> >>> <p>some text</p> >>> </div> >>> </wicket:panel> >>> >>> When the repeater is rendered I get: >>> >>> <div id="onlyThisContainerNeeded"> >>> <div> <-- I need to find a way to remove this container >>> --> >>> <h4>some title</h4> >>> <div> >>> <p>some text</p> >>> </div> >>> </div> >>> <div> <-- I need to find a way to remove this container >>> --> >>> <h4>some other title</h4> >>> <div> >>> <p>some other text</p> >>> </div> >>> </div> >>> </div> >>> >>> So, what can I do to get the following instead: >>> >>> <div id="onlyThisContainerNeeded"> >>> <h4>some title</h4> >>> <div> >>> <p>some text</p> >>> </div> >>> <h4>some other title</h4> >>> <div> >>> <p>some other text</p> >>> </div> >>> </div> >>> >>> Thank you in advance! >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [hidden email] >>> For additional commands, e-mail: [hidden email] >>> >>> --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
| Powered by Nabble | Edit this page |
