You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Luiz Gustavo <lu...@gmail.com> on 2010/12/19 16:51:47 UTC
Chained Calls
Hi,
I have a class, that is referenced in tableView of a bxml file. I'd like to
reference a property of an instance of this class, like this:
<TableView.Column name="categoria.descricao" width="450"
headerData="%clnDescricao"/>
this is the class:
public class CategoriaLancamentoWrapper{
private CategoriaLancamento categoria;
...
public CategoriaLancamento getCategoria() {
return categoria;
}
...
}
But it seems not to work. Is that possible?
Cheers,
Luiz Gustavo S. de Souza
http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso
Re: Chained Calls
Posted by Greg Brown <gk...@verizon.net>.
I thought I got them all. Just checked in an update - thanks.
On Dec 21, 2010, at 6:14 AM, Dirk Möbius wrote:
> I think you forgot the TableViewBooleanCellRenderer in your patch. It still contains the following lines:
>
> Dictionary<String, Object> rowData;
> if (row instanceof Dictionary<?, ?>) {
> rowData = (Dictionary<String, Object>)row;
> } else {
> rowData = new BeanAdapter(row);
> }
> Object cellData = rowData.get(columnName);
>
> Dirk.
>
>
> 2010/12/20 Greg Brown <gk...@verizon.net>
> The default TableViewCellRenderer class was coded to expect the column name to be a property of the row itself, not a path to a nested property. I have updated it to use JSON.get() instead - this should allow your code to work. Let me know if you run into any problems.
>
> G
>
>
> On Dec 19, 2010, at 10:51 AM, Luiz Gustavo wrote:
>
>> Hi,
>>
>> I have a class, that is referenced in tableView of a bxml file. I'd like to reference a property of an instance of this class, like this:
>>
>>
>> <TableView.Column name="categoria.descricao" width="450" headerData="%clnDescricao"/>
>>
>>
>> this is the class:
>>
>> public class CategoriaLancamentoWrapper{
>>
>> private CategoriaLancamento categoria;
>> ...
>> public CategoriaLancamento getCategoria() {
>> return categoria;
>> }
>> ...
>> }
>>
>>
>> But it seems not to work. Is that possible?
>>
>>
>> Cheers,
>> Luiz Gustavo S. de Souza
>>
>> http://luizgustavoss.wordpress.com
>> http://luizgustavoss.blogspot.com
>> http://twitter.com/lugustso
>
>
>
>
> --
> Dirk Möbius
> SCOOP Software GmbH
> Am Kielshof 29
> 51105 Köln
> Germany
> Mobil: 0175 59 300 71
> http://www.scoop-gmbh.de
> Sitz der Gesellschaft: Köln
> Handelsregister: Köln
> Geschäftsführer: Dr. Oleg Balovnev, Frank Heinen, Roland Scheel, Dr. Wolfgang Reddig
>
Re: Chained Calls
Posted by Dirk Möbius <dm...@scoop-gmbh.de>.
I think you forgot the TableViewBooleanCellRenderer in your patch. It still
contains the following lines:
Dictionary<String, Object> rowData;
if (row instanceof Dictionary<?, ?>) {
rowData = (Dictionary<String, Object>)row;
} else {
rowData = new BeanAdapter(row);
}
Object cellData = rowData.get(columnName);
Dirk.
2010/12/20 Greg Brown <gk...@verizon.net>
> The default TableViewCellRenderer class was coded to expect the column name
> to be a property of the row itself, not a path to a nested property. I have
> updated it to use JSON.get() instead - this should allow your code to work.
> Let me know if you run into any problems.
>
> G
>
>
> On Dec 19, 2010, at 10:51 AM, Luiz Gustavo wrote:
>
> Hi,
>
> I have a class, that is referenced in tableView of a bxml file. I'd like to
> reference a property of an instance of this class, like this:
>
>
> <TableView.Column name="categoria.descricao" width="450"
> headerData="%clnDescricao"/>
>
>
> this is the class:
>
> public class CategoriaLancamentoWrapper{
>
> private CategoriaLancamento categoria;
> ...
> public CategoriaLancamento getCategoria() {
> return categoria;
> }
> ...
> }
>
>
> But it seems not to work. Is that possible?
>
>
> Cheers,
> Luiz Gustavo S. de Souza
>
> http://luizgustavoss.wordpress.com
> http://luizgustavoss.blogspot.com
> http://twitter.com/lugustso
>
>
>
--
Dirk Möbius
SCOOP Software GmbH
Am Kielshof 29
51105 Köln
Germany
Mobil: 0175 59 300 71
http://www.scoop-gmbh.de
Sitz der Gesellschaft: Köln
Handelsregister: Köln
Geschäftsführer: Dr. Oleg Balovnev, Frank Heinen, Roland Scheel, Dr.
Wolfgang Reddig
Re: Chained Calls
Posted by Greg Brown <gk...@verizon.net>.
The default TableViewCellRenderer class was coded to expect the column name to be a property of the row itself, not a path to a nested property. I have updated it to use JSON.get() instead - this should allow your code to work. Let me know if you run into any problems.
G
On Dec 19, 2010, at 10:51 AM, Luiz Gustavo wrote:
> Hi,
>
> I have a class, that is referenced in tableView of a bxml file. I'd like to reference a property of an instance of this class, like this:
>
>
> <TableView.Column name="categoria.descricao" width="450" headerData="%clnDescricao"/>
>
>
> this is the class:
>
> public class CategoriaLancamentoWrapper{
>
> private CategoriaLancamento categoria;
> ...
> public CategoriaLancamento getCategoria() {
> return categoria;
> }
> ...
> }
>
>
> But it seems not to work. Is that possible?
>
>
> Cheers,
> Luiz Gustavo S. de Souza
>
> http://luizgustavoss.wordpress.com
> http://luizgustavoss.blogspot.com
> http://twitter.com/lugustso