[
http://jira.jboss.com/jira/browse/RF-719?page=comments#action_12386258 ]
Mike Hanafey commented on RF-719:
---------------------------------
The MyFaces Trinidad project address this form layout problem. The standard input
components integrate a label and message, and a form layout component is provided.
Standard input dialogs are a lot more compact with these components. Some links to MyFaces
and a small example form is included below:
http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_panelFormLayout...
http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_inputText.html
<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<jsp:directive.page contentType="text/html;charset=utf-8"/>
<f:view>
<tr:document title="Apache Trinidad Blank Demo">
<tr:form>
<tr:panelFormLayout>
<tr:inputText label="Widget name" value="#{widget.name}"
required="true"/>
<tr:inputText label="Widget size" value="#{widget.size}"
required="true">
<tr:validateLongRange minimum="1" maximum="100"/>
</tr:inputText>
</tr:panelFormLayout>
<tr:commandButton id="button1" text="press me"
action="#{widget.addAction}"/>
<tr:commandButton id="name" immediate="true"
text="clear" action="#{widget.quitAction}"/>
</tr:form>
</tr:document>
</f:view>
</jsp:root>
Panel for form layout component
-------------------------------
Key: RF-719
URL:
http://jira.jboss.com/jira/browse/RF-719
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.1.0, 3.2.0, Future Versions
Reporter: Mikhail Grushinskiy
Assigned To: Nick Belaevski
Fix For: Future Versions
Panel for form layout component.
We forms for user input usually have common layouts label, input control, place for
validation error.
There could be several columns of label/input pairs.
Form could be viewed in read-only mode too. Would be nice it that could be generalized as
a component to speed up
layouting forms and improve readability of the code.
(Although I understand facelets layouts might be used as well, but might be it can be
done even nicer with a JSF component/tag).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira