You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by bh...@actrix.gen.nz on 2011/03/13 04:24:55 UTC

inheriting abstract panels and pages

Hi,

I was pleasantly surprised to see that Wicket inherits
MyPageAbstract.html for two page classes MyPage1.java extends
MyPageAbstract and MyPage2.java extends MyPageAbstract.

The two implementations work fine without having their own markup -
Wicket loads the markup MyPageAbstract.html for them.

But with panels, I get:

Markup of type 'html' for component 'MyPanel1' not found.

True, there is no such markup, but why can Wicket not load
MyPanelAbstract.html in the same way as with pages?


Thanks

Bernard


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


Re: inheriting abstract panels and pages

Posted by bh...@actrix.gen.nz.
Sorry, it actually works, had a typo :)

On Sun, 13 Mar 2011 16:24:55 +1300, you wrote:

>Hi,
>
>I was pleasantly surprised to see that Wicket inherits
>MyPageAbstract.html for two page classes MyPage1.java extends
>MyPageAbstract and MyPage2.java extends MyPageAbstract.
>
>The two implementations work fine without having their own markup -
>Wicket loads the markup MyPageAbstract.html for them.
>
>But with panels, I get:
>
>Markup of type 'html' for component 'MyPanel1' not found.
>
>True, there is no such markup, but why can Wicket not load
>MyPanelAbstract.html in the same way as with pages?
>
>
>Thanks
>
>Bernard
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org


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