|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Richfaces help for creating component dynamicallyHi, I am new to richfaces and I am looking for a help to create components dynamically like, I have a form and on clicking of ADD button, new text boxes should be added. At the end on clicking the submit button in the form should be submitted. Looking for help, to implement the same in richfaces. At present, I have implemented the form in the following way. <h:form id="metaDataInsertForm"> <h:panelGrid columns="3" columnClasses="wfcol1,wfcol2,wfcol3"> <h:outputText styleClass="medText" value="owner*" /> <h:inputText id="owner" styleClass="medText"/> <h:outputText styleClass="medText" value="enter valid LDAP ids only" /> <!-- End of row --> <h:outputText styleClass="medText" value="hardware" /> <a4j:commandButton onclick="return false" value="+"/> <h:inputText id="hw1" styleClass="medText"/> <!-- End of row --> <h:outputText styleClass="medText" value="software"/> <h:commandButton onclick="addRow('sw-row')" value="+"/> <h:inputText id="sw1" styleClass="medText"/> <!-- End of row --> <h:outputText styleClass="medText" value="Technology"/> <h:commandButton onclick="addRow('tech-row')" value="+"/> <h:inputText id="tech1" styleClass="medText"/> <!-- End of row --> <h:outputText styleClass="medText" value="doc-purpose"/> <h:commandButton onclick="addRow('doc-row')" value="+"/> <h:inputText id="doc1" styleClass="medText"/> <!-- End of row --> <h:outputText styleClass="medText" value="interfaces"/> <h:commandButton onclick="addRow('interfaces-row')" value="+"/> <h:inputText id="interfaces1" styleClass="medText"/> <!-- End of row --> </h:panelGrid> <!-- <h:commandButton value="Submit" onclick="submitMetadata(); return false;" /> --> <a4j:commandButton reRender="metabatchProduction" action="#{MetaDataRequestBean.metaInsertStatus}" value="Insert Metadata" styleClass="smallText" /> </h:form> </rich:panel> </h:panelGrid> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |