You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sigmar Muuga <me...@gmail.com> on 2010/03/19 07:39:46 UTC

Easies way to set custom HTML

Hello,
which is the easiest way to set custom HTML page for a Page or Panel?
For example I have panel called "HelloPanel", conventinally Wicket wants to
pair it with "HelloPanel.html" in the same package, but I want to
use "HelloMyDearFriends.html" with that panel...

Sigmar

Re: Easies way to set custom HTML

Posted by Boris Goldowsky <bg...@cast.org>.
Do you mean you have HelloPanel with one markup, and HelloMyDearFriends 
with the same functionality but different markup?

In that case define a trivial class HelloMyDearFriends.java extending 
HelloPanel but not changing the function.  Drop in your 
HelloMyDearFriends.html next to it, and you should be set.  Each version 
will use its own markup.

Bng


>
> On Fri, Mar 19, 2010 at 7:39 AM, Sigmar Muuga <me...@gmail.com> wrote:
>   
>> Hello,
>> which is the easiest way to set custom HTML page for a Page or Panel?
>> For example I have panel called "HelloPanel", conventinally Wicket wants to
>> pair it with "HelloPanel.html" in the same package, but I want to
>> use "HelloMyDearFriends.html" with that panel...
>>
>> Sigmar
>>
>>     
>
>
>
>   

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


Re: Easies way to set custom HTML

Posted by Martijn Dashorst <ma...@gmail.com>.
Why would you want that?

Martijn

On Fri, Mar 19, 2010 at 7:39 AM, Sigmar Muuga <me...@gmail.com> wrote:
> Hello,
> which is the easiest way to set custom HTML page for a Page or Panel?
> For example I have panel called "HelloPanel", conventinally Wicket wants to
> pair it with "HelloPanel.html" in the same package, but I want to
> use "HelloMyDearFriends.html" with that panel...
>
> Sigmar
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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