Hi!

Thank you for your answer!

I'm using 1.0.9!

Just tried to replace all myfaces-jars with the latest version (1.1.1) - the 
output of <t:colums> is not visible/rendered anymore but <h:column> is - very 
strange!

(And ... tabs look like buttons ... but I think that can be fixed by changing 
something in the css-file?)

Thanks,
Harry 


-----Ursprüngliche Nachricht-----
Von: Mathias Brökelmann [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 14. Dezember 2005 17:02
An: MyFaces Discussion
Betreff: Re: datatable - parameter passing - workaround?

which version of myfaces do you use?

2005/12/14, Harald Müller <[EMAIL PROTECTED]>:
> Sorry ... my mistake ...
>
> The problem is not that every column of each row has the same content (that's 
> exactly what the code does) ...
> but I always get the object of the first row with mRowHolder.getRowData().
>
> Output:
>
>        Col1
> Row1   Name_of_row1
> Row2   Name_of_row1
> Row3   Name_of_row1
>
>
> And not:
>
>        Col1
> Row1   Name_of_row1
> Row2   Name_of_row2
> Row3   Name_of_row3
>
> Thanks,
> Harry
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Mathias Brökelmann [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 14. Dezember 2005 15:54
> An: MyFaces Discussion
> Betreff: Re: datatable - parameter passing - workaround?
>
> 2005/12/14, Harald Müller <[EMAIL PROTECTED]>:
> >   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
>


--
Mathias

Reply via email to