tapestry-user@jakarta.apache.org
[Top] [All Lists]

Re: Table -using row object parameter

Subject: Re: Table -using row object parameter
From: Waldo Mendoza
Date: Tue, 29 Mar 2005 20:09:01 +0000 UTC
Daniel Daniel <hotmailwork <at> hotmail.com> writes:

> 
> Hi all,
> 
> I tried to set the row parameter of a table to an abstract class and pass it 
> subclasses because the values I want for the table are in the superclass, 
> the only problem is I get a binding exception when doing this. Does anybody 
> know how I could get around this?
> 
> Cheers,
> Daniel
> 
> _________________________________________________________________
> Need a credit card fast? Apply now! Must be over 18. AU only:  
> http://ad.au.doubleclick.net/clk;11046970;10638934;f?
http://www.anz.com/aus/promo/first0105ninemsn/default.asp
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe <at> jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help <at> jakarta.apache.org
> 
> 

Hi, 

I have used the TableView component with a TableFormRows inside it, to 
customize the way it show the data, and i used the row parameter, like this:

                <tr jwcid="tableRows@contrib:TableFormRows"
            row="ognl:object">
                      <td>
                      Name:
                      </td>
                      <td>
                      <span jwcid="@Insert" value="ognl:object.name">
                      </td> 
                </tr>
and i have declared a property specification inside the specification:

     <property-specification name="object" type="java.lang.Object"/>

and i didnÂt have any problem, as u can see i can reference any object's 
property passed on runtime, i did it with Table component as well, and 
everything is ok. 




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>