[ 
https://issues.apache.org/jira/browse/TAP5-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade closed TAP5-289.
-------------------------------

    Resolution: Not a Problem

Another year has passed since the last comment. Therefore, we assume this issue 
has either been resolved in the meantime or it is no longer relevant to you.
If recent versions of Tapestry (i.e. 5.4 betas and 5.3.7) are still affected, 
please reopen the issue and adjust the "Affected Version/s" property.

> Add a tip in the T5 cookbook for grid columns management
> --------------------------------------------------------
>
>                 Key: TAP5-289
>                 URL: https://issues.apache.org/jira/browse/TAP5-289
>             Project: Tapestry 5
>          Issue Type: Wish
>          Components: documentation
>    Affects Versions: 5.0.15
>            Reporter: David Galichet
>              Labels: bulk-close-candidate
>
> I've recently encountered a difficulty when trying to do the following :
> I had a component with a nested Grid that is populated using a list of value 
> objects (for example List<MyVo>)
> I've also added a column to this list that is computed in the component java 
> class (public boolean isValidOk() ).
> My problem was that I would like to add a parameter on my component in order 
> to display or hide the computed column. So I've added a @Parameter in my 
> component Java class and tried to use a beanModel.add("validOk") in order to 
> display the column when needed.
> In fact this doesn't work because I've performed a 
> beanModelSource.create(MyVo.class, ...) in order to get the beanModel and T5 
> told me that the "validOk" property wasn't an attribute of MyVo.class.
> So the only way I've found (in T5 Grid.java) to add my column was to use 
> BeanModelUtils.modify(...)
> As it wasn't so obvious, I think that an entry in the cookbook could be a 
> good idea ;)
> If you wan't I can write a part of this cookbook (just contact me by email or 
> on irc).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to