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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]