myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathias Brökelmann <mbroekelm...@googlemail.com>
Subject Re: datatable - parameter passing - workaround?
Date Wed, 14 Dec 2005 14:53:38 GMT
2005/12/14, Harald Müller <harald.mueller@wimaxtelecom.at>:
>   private List createColumns()
>   {
>         List result = new ArrayList();
>     result.add(new Column("Col1", this));
>     result.add(new Column("Col2", this));
>     result.add(new Column("Col3", this));
>     // add more columns
>     return result;
>   }

>   public String getValue()
>   {
>         Object rowData = mRowHolder.getRowData();
>     if(rowData != null)
>     {
>         return ((TaskInstance)rowData).getName()+"";
>     }
>     return null;
>   }

you call getName() for every column...

try using the column header to determine which getter you have to call
on the row instance.


--
Mathias

Mime
View raw message