You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andy Pahne <ap...@net22.de> on 2008/06/03 15:05:11 UTC
[T4.1.6]: Template Parsing problem?
I have a page called "Details" which contains a form component (id =
reservationForm).
Whenever I enter the page's URL in the browser, the page displays correctly.
But whenever I try to invoke a listener on another page that returns a
Details page instance, there is an exception:
org.apache.tapestry.parse.TemplateParseException: Tag <form> on
line 25 references unknown component id 'reservationForm'.
the listener on the other page:
public IPage lastMinuteSelectAction(
long objectID, Supplier supplier) {
...
return getInterhomeDetailsPage();
//throw new PageRedirectException(PAGE_INTERHOME_DETAILS);
//return getRequestCycle().getPage(PAGE_INTERHOME_DETAILS);
}
@InjectPage(PAGE_INTERHOME_DETAILS)
public abstract InterhomeDetails getInterhomeDetailsPage();
I tried all three versions, all with the same outcome: the form
component cannot be found.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1.6]: Template Parsing problem? -- SOLVED
Posted by Andy Pahne <ap...@net22.de>.
Found it myself:
the name of the page that was defined in PAGE_INTERHOME_DETAILS had a
leading slash. It works without the slash!
Andy
Andy Pahne schrieb:
>
> I have a page called "Details" which contains a form component (id =
> reservationForm).
>
> Whenever I enter the page's URL in the browser, the page displays
> correctly.
>
> But whenever I try to invoke a listener on another page that returns a
> Details page instance, there is an exception:
> org.apache.tapestry.parse.TemplateParseException: Tag <form> on
> line 25 references unknown component id 'reservationForm'.
>
>
>
> the listener on the other page:
>
> public IPage lastMinuteSelectAction(
> long objectID, Supplier supplier) {
>
> ...
>
> return getInterhomeDetailsPage();
> //throw new PageRedirectException(PAGE_INTERHOME_DETAILS);
> //return getRequestCycle().getPage(PAGE_INTERHOME_DETAILS);
>
> }
>
> @InjectPage(PAGE_INTERHOME_DETAILS)
> public abstract InterhomeDetails getInterhomeDetailsPage();
>
>
>
>
>
> I tried all three versions, all with the same outcome: the form
> component cannot be found.
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org