marcelofoxes

CidadeBeanUsage.xhtml

May 20th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.00 KB | None | 0 0
  1. <p:outputLabel for="@next" value="Estado" />
  2.                 <p:autoComplete forceSelection="true" dropdown="false"
  3.                     converter="#{estadoConverter}" maxResults="6" immediate="true"
  4.                     cache="true" emptyMessage="Nenhum resultado"
  5.                     value="#{cidadeEstadoBean.estado}"
  6.                     completeMethod="#{cidadeEstadoBean.pesquisaEstado}" var="estado"
  7.                     itemLabel="#{estado.nome}" itemValue="#{estado}">
  8.                     <p:ajax event="itemSelect" process="@this" update="@next:@next" />
  9.                     <p:ajax event="change" process="@this" update="@next:@next" />
  10.                 </p:autoComplete>
  11.  
  12.                 <p:outputLabel for="@next" value="Cidade" />
  13.                 <p:autoComplete disabled="#{cidadeEstadoBean.estadoNaoSelecionado}"
  14.                     forceSelection="true" dropdown="false" maxResults="10" cache="true"
  15.                     emptyMessage="Nenhum resultado"
  16.                     value="#{pra onde vocĂȘ quer jogar o valor de cidade?}"
  17.                     converter="#{cidadeConverter}"
  18.                     completeMethod="#{cidadeEstadoBean.pesquisaCidade}" var="cidade"
  19.                     itemLabel="#{cidade.nome}" itemValue="#{cidade}" />
Advertisement
Add Comment
Please, Sign In to add comment