You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org> on 2008/03/28 18:30:24 UTC
[jira] Created: (TAPESTRY-2312) Simplify addition of columns to
Grid
Simplify addition of columns to Grid
------------------------------------
Key: TAPESTRY-2312
URL: https://issues.apache.org/jira/browse/TAPESTRY-2312
Project: Tapestry
Issue Type: Improvement
Components: Core Components
Affects Versions: 5.0.11
Reporter: Igor Drobiazko
To add an artificial column to Grid one have to do a lot of work. Tapestry could be smarter by creation of BeanModel.
A parameter whose name could not be matched to an existing property should be added automatically.
<t:grid source="users" row="user" model="model">
<t:parameter name="deleteCell">.....</t:parameter>
</t:grid>
public class Start {
...
@Inject
private BeanModelSource beanModelSource;
@Inject
private ComponentResources resources;
public BeanModel getModel() {
BeanModel model = beanModelSource.create(User.class, false, resources);
model.add("delete", null);
return model;
}
}
In this case the following class can be reduced to:
public class Start {
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-2312) Simplify addition of columns to
Grid
Posted by "Filip S. Adamsen (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583326#action_12583326 ]
Filip S. Adamsen commented on TAPESTRY-2312:
--------------------------------------------
Why not use the add parameter of Grid instead?
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Grid.html
> Simplify addition of columns to Grid
> ------------------------------------
>
> Key: TAPESTRY-2312
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2312
> Project: Tapestry
> Issue Type: Improvement
> Components: Core Components
> Affects Versions: 5.0.11
> Reporter: Igor Drobiazko
>
> To add an artificial column to Grid one have to do a lot of work. Tapestry could be smarter by creation of BeanModel.
> A parameter whose name could not be matched to an existing property should be added automatically.
> <t:grid source="users" row="user" model="model">
> <t:parameter name="deleteCell">.....</t:parameter>
> </t:grid>
> public class Start {
> ...
> @Inject
> private BeanModelSource beanModelSource;
>
> @Inject
> private ComponentResources resources;
>
> public BeanModel getModel() {
> BeanModel model = beanModelSource.create(User.class, false, resources);
> model.add("delete", null);
> return model;
> }
> }
> In this case the following class can be reduced to:
> public class Start {
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Resolved: (TAPESTRY-2312) Simplify addition of columns to
Grid
Posted by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko resolved TAPESTRY-2312.
--------------------------------------
Resolution: Invalid
thx. I was not aware of this parameter.
> Simplify addition of columns to Grid
> ------------------------------------
>
> Key: TAPESTRY-2312
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2312
> Project: Tapestry
> Issue Type: Improvement
> Components: Core Components
> Affects Versions: 5.0.11
> Reporter: Igor Drobiazko
>
> To add an artificial column to Grid one have to do a lot of work. Tapestry could be smarter by creation of BeanModel.
> A parameter whose name could not be matched to an existing property should be added automatically.
> <t:grid source="users" row="user" model="model">
> <t:parameter name="deleteCell">.....</t:parameter>
> </t:grid>
> public class Start {
> ...
> @Inject
> private BeanModelSource beanModelSource;
>
> @Inject
> private ComponentResources resources;
>
> public BeanModel getModel() {
> BeanModel model = beanModelSource.create(User.class, false, resources);
> model.add("delete", null);
> return model;
> }
> }
> In this case the following class can be reduced to:
> public class Start {
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org