add displayValueOnly attribute to all richfaces components
----------------------------------------------------------
Key: RF-8247
URL:
https://jira.jboss.org/jira/browse/RF-8247
Project: RichFaces
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Environment: ALL
Reporter: Dave Chen
A compont can be editing mode for users to input data, or in showing mode for display
values only.
Attribute "displayValueOnly" will reduce JSF page size and memory size, and
simplify programming.
For example: for pickList, we have to use two components: one for editing, and one for
showing:
<rich:pickList rendered="#{bean.isEditing}"
value="#{bean.values}" >
<f:selectItems value="#{bean.selectItems}"/>
</rich:pickList>
<h:outputText rendered="#{!bean.isEditing}"
value="#{bean.valuesAsString}" />
After adding displayValueOnly, one component will be sufficient, very clean.
<rich:pickList rendered="#{bean.isEditing}"
value="#{bean.values}"
displayValueOnly="#{!bean.isEditing}" >
<f:selectItems value="#{bean.selectItems}"/>
</rich:pickList>
This applies to all components.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira