You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by membersound <me...@web.de> on 2012/10/27 13:02:11 UTC
Subtemplates are not found / exception
I'm trying to sublayout a admin menu likewise to
http://tapestry.apache.org/layout-component.html.
But cannot get it to work.
Layout.tml with some links and a <t:delegate to="adminmenu">.
SubLayout.tml with t:type="layout" and <p:adminmenu>...some links
</p:adminmenu>
Admin.tml with t:type="sublayout"
Result:
Exception assembling embedded component 'layout'.
Could not convert 'adminmenu' into a component parameter binding: Exception
generating conduit for expression 'adminmenu': Class my.app.Layout does not
contain a property (or public field) named 'adminmenu'.
I think I did it in the way described within the Tapestry link. What could I
be doing wrong?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Subtemplates-are-not-found-exception-tp5717333.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Subtemplates are not found / exception
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Sat, 27 Oct 2012 11:27:37 -0200, membersound <me...@web.de> wrote:
> So if I don't - why does Tapestry throw an exception if I remove the
> Block element from the layout class? Probably I really need a block
> element for
> every delegate...
Please post the templates. I guess you haven't noticed Nabble swallowed
them in your original message:
http://tapestry.1045711.n5.nabble.com/Subtemplates-are-not-found-exception-td5717333.html.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Subtemplates are not found / exception
Posted by membersound <me...@web.de>.
So if I don't - why does Tapestry throw an exception if I remove the Block
element from the layout class? Probably I really need a block element for
every delegate...
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Subtemplates-are-not-found-exception-tp5717333p5717340.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Subtemplates are not found / exception
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Sat, 27 Oct 2012 09:27:15 -0200, membersound <me...@web.de> wrote:
> Do I need a private Block element in my layout.java class for /every
> /delegate component?
No.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Subtemplates are not found / exception
Posted by membersound <me...@web.de>.
Do I need a private Block element in my layout.java class for /every
/delegate component?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Subtemplates-are-not-found-exception-tp5717333p5717336.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Subtemplates are not found / exception
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Sat, 27 Oct 2012 09:24:49 -0200, membersound <me...@web.de> wrote:
> OK quity stilly, but my class adminmenu was actually named "AdminMenu".
> Did not know T5 is case sensitive there.
Nope, Tapestry 5 isn't case sensitive with component and page class names.
Could you please post the templates?
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Subtemplates are not found / exception
Posted by membersound <me...@web.de>.
OK quity stilly, but my class adminmenu was actually named "AdminMenu". Did
not know T5 is case sensitive there.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Subtemplates-are-not-found-exception-tp5717333p5717335.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Subtemplates are not found / exception
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Sat, 27 Oct 2012 09:02:11 -0200, membersound <me...@web.de> wrote:
> Layout.tml with some links and a <t:delegate to="adminmenu">.
Try <t:delebate to="block:adminmenu">. By the way, it would be easier to
help you if you posted the templates, otherwise we can just guess what's
wrong. :)
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org