Public feed
#893520
Client:<agr:userForm user="#{usersManager.user}" usersManager="#{usersManager}" buttonCaption="Добави Потребителя" buttonAction="#{usersManager.saveUser}" />Tag:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ac="http://ac.org" xmlns:a4j="http://richfaces.org/a4j"><ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"> <h:panelGrid columns="2"> Потребител: <ac:errorTitle errorClass="errorTitle"> <h:inputText value="#{user.username}" required="true" styleClass="requiredInput"> <ac:validateRegEx type="accountUsername" /> </h:inputText> </ac:errorTitle> Парола: <ac:errorTitle errorClass="errorTitle"> <h:inputSecret value="#{user.password}" required="true" styleClass="requiredInput"> <ac:validateRegEx type="accountVPNPassword" /> </h:inputSecret> </ac:errorTitle> Име: <ac:errorTitle errorClass="errorTitle"> <h:inputText value="#{user.firstname}" required="true" styleClass="requiredInput"> <ac:validateRegEx type="firstName" /> </h:inputText> </ac:errorTitle> Презиме: <ac:errorTitle errorClass="errorTitle"> <h:inputText value="#{user.fathername}" required="true" styleClass="requiredInput"> <ac:validateRegEx type="secondName" /> </h:inputText> </ac:errorTitle> Фамилия: <ac:errorTitle errorClass="errorTitle"> <h:inputText value="#{user.family}" required="true" styleClass="requiredInput"> <ac:validateRegEx type="familyName" /> </h:inputText> </ac:errorTitle> ЕГН: <ac:errorTitle errorClass="errorTitle"> <h:inputText value="#{user.egn}" required="true" styleClass="requiredInput"> <ac:validateRegEx type="egn" /> </h:inputText> </ac:errorTitle> Роля: <h:selectOneMenu id="clientRole" value="#{usersManager.user.role.roleid}"> <f:selectItems value="#{usersManager.roleItems}" /> </h:selectOneMenu> <f:facet name="footer"> <h:panelGroup style="display:block; text-align:center"> <a4j:commandButton id="registerUserButton" styleClass="formButton" reRender="newUserForm,usersTable" value="#{buttonCaption}" action="#{buttonAction}" /> </h:panelGroup> </f:facet> </h:panelGrid></ui:composition></html>