You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dan12321 <we...@centrum.cz> on 2012/07/02 06:37:44 UTC

set html for Panel

Hi,
is possible to set html file for Panel?
When I have MyPanel.java, it render MyPanel.html and I would like to render
sometimes MyPanel.html and sometimes MyPanel2.html. Is it possible?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/set-html-for-Panel-tp4650316.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: set html for Panel

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

See org.apache.wicket.Component#getVariation().
Using variations you can have MyPanel.html and MyPanel_2.html.

You can also use #setMarkup() method. Or you can override
IMarkupResourceStreamProvider and return dynamic markup each time.

On Mon, Jul 2, 2012 at 6:37 AM, Dan12321 <we...@centrum.cz> wrote:
> Hi,
> is possible to set html file for Panel?
> When I have MyPanel.java, it render MyPanel.html and I would like to render
> sometimes MyPanel.html and sometimes MyPanel2.html. Is it possible?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/set-html-for-Panel-tp4650316.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org