You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by hok <iv...@gmail.com> on 2012/09/07 18:29:01 UTC

Wicket 1.5 and panel with different markup location

Hello,
In my application I need a specific Panel, which retrieves it's markup file
from location outside the package. This rule applies only for this specific
panel (the other components in the application are using the standard markup
sourcing mechanism). Could you give me an example on how to specify a
different path for the markup file, while still using the caching provided
by MarkupFactory. I've tried overriding
MarkupContainer.getAssociatedMarkup(), but I receive an exception
org.apache.wicket.markup.MarkupNotFoundException: Expected to find
<wicket:panel> in associated markup file. Thanks in advance.




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-and-panel-with-different-markup-location-tp4651853.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: Wicket 1.5 and panel with different markup location

Posted by Sven Meier <sv...@meiers.net>.
See PageWithCustomLoading in wicket-examples.

Of course a panel's markup still has to contain the <wicket:panel> tags.

Sven

On 09/07/2012 06:29 PM, hok wrote:
> Hello,
> In my application I need a specific Panel, which retrieves it's markup file
> from location outside the package. This rule applies only for this specific
> panel (the other components in the application are using the standard markup
> sourcing mechanism). Could you give me an example on how to specify a
> different path for the markup file, while still using the caching provided
> by MarkupFactory. I've tried overriding
> MarkupContainer.getAssociatedMarkup(), but I receive an exception
> org.apache.wicket.markup.MarkupNotFoundException: Expected to find
> <wicket:panel> in associated markup file. Thanks in advance.
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-and-panel-with-different-markup-location-tp4651853.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
>


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