Register new user

  • Select...
  • None
  • Master
  • Doctor
  • Engineer
  • Bachelor
  • Professor
  • Ninja
  • Select...
  • Brazil
  • China
  • France
  • Germany
  • Russia
  • USA
UsernameFirst nameLast name
john.doe John Doe Select[x]
<h:form id="register" >
 <p:panel>
  <util:ui instance="#{registration.user}"
	currentUsername="#{registration.user.username}"
	renderPassword="#{empty registration.user.id}"
	edit="#{registration.edit}" />
 </p:panel>
 <p:panel>
  <util:ui instance="#{registration.user.personInfo}"
	edit="#{registration.edit}" />
 </p:panel>
 <p:panel>
  <util:ui instance="#{registration.user.organization}"
	edit="#{registration.edit}" />
 </p:panel>
 ..
 <p:commandButton value="Submit" rendered="#{registration.edit}"
	action="#{registration.register}" ajax="true"
	update="@form,:tabs:dialog" process="@form" />
 <p:commandButton value="#{registration.edit ? 'View' : 'Edit'}"
	rendered="#{not empty registration.user.id}"
	action="#{registration.setEdit(not registration.edit)}"
	ajax="true" update="@form,:tabs:dialog" process="@form" />
  ..
</h:form>