Hi all,
I have table, consisting of a list of CLASS1 objects. It's implemented
using a PAGE1.html and a PAGE1.page (and matching PAGE1.java)
Now, in the table I have a 'details' link from which I want to show the
details of the clicked CLASS1 object. This detail is shown in a
PAGE2.html, with matching PAGE2.page and PAGE2.java.
Now, the link is set as follows in the PAGE1.page file:
<component id="editColumnValue" type="Block"/>
<component id="editLink" type="DirectLink">
<binding name="listener" value="listener:onEdit"/>
<binding name="parameters" value="table.tableRow.code"/>
</component>
In PAGE1.java (using Kent's book as a reference) I do:
@InjectPage("Page2")
public abstract PAGE2 getPage2Page();
public PAGE2 onEdit(String code) {
System.out.println("Editing " + code);
return getPage2Page();
}
When running the project however, I get the following:
Exception invoking listener method onEdit of component PAGE1: Component
[EMAIL PROTECTED] does not contain a component table.
Now, reading further in the book, I encounter the part where one uses a
Callback to store information from 1 page to the other. Do I need this too?
Thanks for any help/pointers!
BB
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]