You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Claus Nielsen (BM Data)" <cl...@bmd.bonnier.dk> on 2005/10/18 09:10:01 UTC
Required parameter xxx of component Yyyy is not bound
Hi.
How do I make a DirectLink listener in one page activate another page
which has (required) parameters?
I have a page class which looks something like this:
public abstract class MyPage extends BasePage {
@InjectPage("AnotherPage")
public abstract AnotherPage getAnotherPage();
public IPage doSomething(ParameterForAnotherPage parm) {
AnotherPage anotherPage = getAnotherPage(); // Causes exception
return anotherPage;
}
}
This works if AnotherPage dosn't have any parameters. If it requires a
parameter I get a org.apache.hivemind.ApplicationRuntimeException saying
that "Required parameter xxx of component AnotherPage is not bound".
How do I pass / bind a paramter to AnotherPage?
Kind Regards
Claus Nielsen
Bonnier Magazine Data A/S
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Required parameter xxx of component Yyyy is not bound
Posted by Andreas Andreou <an...@di.uoa.gr>.
In Tapestry, Pages differ from Components in that they don't
have any parameters, nor optional, nor required.
So, I don't understand why you're getting this problem.
Can you show us the exception stack trace?
Maybe you're trying to activate a Component instead of a Page?
Claus Nielsen (BM Data) wrote:
>Hi.
>
>How do I make a DirectLink listener in one page activate another page
>which has (required) parameters?
>
>I have a page class which looks something like this:
>
>public abstract class MyPage extends BasePage {
>
> @InjectPage("AnotherPage")
> public abstract AnotherPage getAnotherPage();
>
> public IPage doSomething(ParameterForAnotherPage parm) {
> AnotherPage anotherPage = getAnotherPage(); // Causes exception
> return anotherPage;
> }
>}
>
>This works if AnotherPage dosn't have any parameters. If it requires a
>parameter I get a org.apache.hivemind.ApplicationRuntimeException saying
>that "Required parameter xxx of component AnotherPage is not bound".
>
>How do I pass / bind a paramter to AnotherPage?
>
>Kind Regards
>Claus Nielsen
>Bonnier Magazine Data A/S
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org