click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CLK-528) Let FormTable use Column#setProperty(...) to support setting properties on complex valueobjects
Date Mon, 27 Apr 2009 13:26:31 GMT

    [ https://issues.apache.org/jira/browse/CLK-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703117#action_12703117
] 

Bob Schellink commented on CLK-528:
-----------------------------------

Actually one can grab the Field from the column when overriding it:

  public void setProperty(...) {
    Field f = getField();
  }

Now I'm thinking the signature should be: 

  setProperty(Object row, String propertyName, Object value)

where propertyName is the column name. So propertyName will be "firstName" instead of "firstName_12",
which is more useful I think. Again one can access the Field directly if one needs the name
as "firstName_12".

> Let FormTable use  Column#setProperty(...) to support setting properties on complex valueobjects
> ------------------------------------------------------------------------------------------------
>
>                 Key: CLK-528
>                 URL: https://issues.apache.org/jira/browse/CLK-528
>             Project: Click
>          Issue Type: Improvement
>          Components: core
>            Reporter: WarnerJan Veldhuis
>            Priority: Minor
>
> The onProcess method of FormTable uses Column#getProperty() to get the property of a
particular valueobject, but uses reflection to set that property. 
> Add a Column#setProperty(Object, Field) method, so developers can override that method
if refelection doesn't work for their VO's.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message