Hi, I use jpa,spring and jsf. My project is actually very simple and useful. The project is User Management System. My problem is about performans. When I directly use jpa's domain (entity) in jsf page, my request is re-request it self a lot of. My project leader said that there were a lot of design pattern about this problem. I know any pattern.
following code from my project: <p:dialog header="Edit User" widgetVar="detailsDialog" fixedCenter="true"> <h:panelGrid id="editTable" columns="2" width="300px"> <h:form> <h:outputText value="Name :" /> <h:inputText value="#{userController.user.name}" maxlength="45" required="true" /> <br /> Surname :<h:inputText value="#{userController.user.surname}" maxlength="45" required="true" /> <br /> email :<h:inputText value="#{userController.user.email}" maxlength="45" required="true" /> <br /> Secret Question :<h:inputText value="#{userController.user.secretQuestion}" maxlength="45" required="true" /> <br /> Secret Answer :<h:inputText value="#{userController.user.secretAnswer}" maxlength="45" required="true" /> <br /> <h:commandButton value="Update" action="#{userController.update}" /> <p:dataTable id="roles" var="role" value="#{userController.roles}" rows="10" paginator="true" selection="#{userController.selectedRoles}" selectionMode="multiple"> <p:column> <f:facet name="header"> <h:outputText value="Role Name" /> </f:facet> <h:outputText value="#{role.name}"></h:outputText> </p:column> </p:dataTable> </h:form> </h:panelGrid> </p:dialog> -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en