There's already a JIRA for this.
"Programly Add Columns/Cells for Grid Component"
http://issues.apache.org/jira/browse/TAPESTRY-1416
But that was added in April, and this month Howard added and fixed:
"Support removal and reordering of BeanModel properties inside Grid
and BeanEditForm components"
http://issues.apache.org/jira/browse/TAPESTRY-1742
... where he commented:
"I don't think there's a reasonable way to accomplish adding new
(synthetic?) properties using parameters."
Anyway, add to the first JIRA if you disagree.
Cheers,
Nick.
Jean-Philippe Steinmetz wrote:
Thanks for your reply. Hmmm... I tried this and nothing shows up. Am I
missing something? Seems like an awful lot of work to add one column.
Jean-Philippe
-----Original Message-----
From: Robin Helgelin [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 20, 2007 1:40 PM
To: Tapestry users
Subject: Re: [T5] Grid component
On 9/20/07, Robin Helgelin <[EMAIL PROTECTED]> wrote:
userModel.add("action", new
ActionPC()).label("Actions").sortable(false);
Oops.
class ActionPC implements PropertyConduit {
public Object get(Object arg0) {return "";}
public Class getPropertyType() {return String.class;}
public void set(Object arg0, Object arg1) {}
public <T extends Annotation> T getAnnotation(Class<T> arg0) {return
null;}
}
--
regards,
Robin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]