You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Decebal Suiu <de...@asf.ro> on 2014/02/10 13:23:33 UTC
About getMarkupType() from MarkupContainer
Hi
I have an issue on wicket-jade
(https://github.com/decebals/wicket-jade/issues/1) and I cannot find a nice
solution.
The use case is that I have an EmbeddedPanel (html markup) in a JadePanel
(jade markup) and when I try to run my test I get a MarkupNotFoundException:
Failed to find markup file associated. The problem is that JadePanel (parent
of EmbeddedPanel) returns "new MarkupType("jade", "text/x-jade")" on
getMarkupType and current implementation for Markupcontainer.getMarkupType
is:
public MarkupType getMarkupType()
{
MarkupContainer parent = getParent();
if (parent != null)
{
return parent.getMarkupType();
}
return null;
}
It's clear that wicket search for EmbeddedPanel.jade and not
EmbeddedPanel.html
It's a solution to override getMarkupType() from EmbeddedPanel to
returnMarkupType.HTML_MARKUP_TYPE but I want something more general because
I must override manually all my panels embedded in JadePanel.
Any idea?
Best regards,
Decebal
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/About-getMarkupType-from-MarkupContainer-tp4664340.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: About getMarkupType() from MarkupContainer
Posted by Decebal Suiu <de...@asf.ro>.
Forget about. I resolved my problem much easy.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/About-getMarkupType-from-MarkupContainer-tp4664340p4664343.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