Hi all again,

Found the error. Made a typo in my PAGE2.page file :-S

Oh well, live and learn! :-)

BB
Peter

Peter Verhoye wrote:
> 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]

-- 
Synergetic Solutions nv (www.synergetic-solutions.be)
Crystal Palace
Paalstraat 14
B-1080 Brussel
Tel : +32 (0)2 219.10.12
Fax : +32 (0)2 219.40.28
GSM : +32 (0)475 60.12.61


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to