You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ulrich Stärk (JIRA)" <ji...@apache.org> on 2013/01/14 15:48:16 UTC
[jira] [Updated] (TAP5-289) Add a tip in the T5 cookbook for grid
columns management
[ https://issues.apache.org/jira/browse/TAP5-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-289:
------------------------------
Labels: bulk-close-candidate (was: )
This issue has been last updated more than 1.5 years ago, has no assignee, affects an old version of Tapestry that is not actively developed anymore, and is therefore prone to be bulk-closed in the near future.
If the issue still persists with the most recent development preview of Tapestry, please update it as soon as possible. In the case of a feature request, please discuss it with the Tapestry developer community on the dev@tapestry.apache.org mailing list first.
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira