Re: How to use autoAdd?
Nope. It requires MarkupStream as its parameter and I seem to always get an exception when using for example getAssociatedMarkupStream as paramter. ** Martin 2012/2/27 Martin Grigorov mgrigo...@apache.org: Hi, Use it as #add(), the only difference is that you have to add it for each request (thus in #onBeforeRender() or onConfigure()) because it is dropped automatically at the end of the request. On Sat, Feb 25, 2012 at 7:11 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: if the component is stateless you can autoadd it in onbeforerender(), such components are removed at the end of the request I tried to google for an example of using autoAdd, but did not find anything solid. How would this be used to have a component (for example a label) autoAdded so that it would dissolve itself before page serialization? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to use autoAdd?
@param markupStream *Null, if the parent container is able to provide the markup. Else the markup *stream to be used to render the component. -igor On Tue, Feb 28, 2012 at 7:55 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Nope. It requires MarkupStream as its parameter and I seem to always get an exception when using for example getAssociatedMarkupStream as paramter. ** Martin 2012/2/27 Martin Grigorov mgrigo...@apache.org: Hi, Use it as #add(), the only difference is that you have to add it for each request (thus in #onBeforeRender() or onConfigure()) because it is dropped automatically at the end of the request. On Sat, Feb 25, 2012 at 7:11 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: if the component is stateless you can autoadd it in onbeforerender(), such components are removed at the end of the request I tried to google for an example of using autoAdd, but did not find anything solid. How would this be used to have a component (for example a label) autoAdded so that it would dissolve itself before page serialization? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to use autoAdd?
It happens to be a parent component with dynamic markup: /** * @see org.apache.wicket.MarkupContainer#getAssociatedMarkupStream(boolean) */ @Override public MarkupStream getAssociatedMarkupStream(boolean throwException) { return getApplication().getMarkupSettings().getMarkupCache().getMarkupStream(this, true, throwException); } @Override public IResourceStream getMarkupResourceStream(MarkupContainer container, Class? containerClass) { ... } for some reason it throws an exception if I use autoAdd. BUt it works if I use normal Add. ** MArtin 2012/2/29 Igor Vaynberg igor.vaynb...@gmail.com: @param markupStream * Null, if the parent container is able to provide the markup. Else the markup * stream to be used to render the component. -igor On Tue, Feb 28, 2012 at 7:55 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Nope. It requires MarkupStream as its parameter and I seem to always get an exception when using for example getAssociatedMarkupStream as paramter. ** Martin 2012/2/27 Martin Grigorov mgrigo...@apache.org: Hi, Use it as #add(), the only difference is that you have to add it for each request (thus in #onBeforeRender() or onConfigure()) because it is dropped automatically at the end of the request. On Sat, Feb 25, 2012 at 7:11 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: if the component is stateless you can autoadd it in onbeforerender(), such components are removed at the end of the request I tried to google for an example of using autoAdd, but did not find anything solid. How would this be used to have a component (for example a label) autoAdded so that it would dissolve itself before page serialization? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to use autoAdd?
Hi, Use it as #add(), the only difference is that you have to add it for each request (thus in #onBeforeRender() or onConfigure()) because it is dropped automatically at the end of the request. On Sat, Feb 25, 2012 at 7:11 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: if the component is stateless you can autoadd it in onbeforerender(), such components are removed at the end of the request I tried to google for an example of using autoAdd, but did not find anything solid. How would this be used to have a component (for example a label) autoAdded so that it would dissolve itself before page serialization? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to use autoAdd?
if the component is stateless you can autoadd it in onbeforerender(), such components are removed at the end of the request I tried to google for an example of using autoAdd, but did not find anything solid. How would this be used to have a component (for example a label) autoAdded so that it would dissolve itself before page serialization? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org