netui JSP tags should support dataSource "refs"
-----------------------------------------------
Key: BEEHIVE-1101
URL: http://issues.apache.org/jira/browse/BEEHIVE-1101
Project: Beehive
Type: New Feature
Components: NetUI
Versions: V1, 1.0.1, v.next
Reporter: Eddie O'Neil
Assigned to: Eddie O'Neil
In 1.0.1, the NetUI JSP tags use a "dataSource" attribute to refer to data in a
data bindable object. For UI elements that are translated into HTML "input"s,
the "dataSource" attribute is often bound to an action form. For example:
<netui:textBox dataSource="actionForm.name"/>
where the rendered HTML will contain:
<input type="text" name="{actionForm.name}"/>
In some circumstances, however, this behavior is limiting; for example, wnen
building reusable UI components using JSP 2.0 .tag files, the dataSource might
need to be referred to via a dataSource "ref" that refers to a property on a
JavaBean or entry in a Map to find the actual expression. This might look like:
<netui:textBox dataSource="ref:refBean.textProperty"/>
where the "ref:" prefix would cause the <textBox> tag to lookup the
"refBean.textProperty" to ultimately find the expression "actionForm.name".
This would allow the creation of larger, reusable components that could be data
bound to objects of different shapes rather than to a the shape of a single
action form.
Would be a nice-to-have feature...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira