tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Drobiazko (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2312) Simplify addition of columns to Grid
Date Fri, 28 Mar 2008 17:30:24 GMT
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>

public class Start {
    private BeanModelSource beanModelSource;
    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

View raw message