RichFaces Calendar com Ajax

3 respostas
F

Já tentei utilizar o a4j:support e nao consegui renderizar automaticamente
apos ter alterado a data utilizando o rich:calendar

<rich:calendar id="datefim" popup="true" datePattern="dd/M/yyyy" value="#{bean.dtFim}" />

outra tentativa

<rich:calendar id="datefim" popup="true" datePattern="dd/M/yyyy" value="#{bean.dtFim}" >
 <a4j:support reRender="formModel,image" status="wait" ></a4j:support>
 </rich:calendar>

3 Respostas

B

ta difícil entender seu problema!
Se não está renderizando pode ser que o richfaces não está configurado corretamente.
Verifique no arquivo web.xml as configurações:

<context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>blueSky</param-value> </context-param> <filter> <display-name>RichFaces Filter</display-name> <filter-name>richfaces</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>richfaces</filter-name> <servlet-name>Faces Servlet</servlet-name> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping>

F

A configuracao esta correta …

Explicando melhor o problema

No caso do select quando escolho uma opcao ele renderiza o formulario e altera
a janela da imagem e no caso do calendario ele aparece o calendario escolho a
data e alimenta o bean e nao altera a janela da imagem.

Quando escolho outra opcao do select é executado o item e data tb.

<h:selectOneMenu value="#{bean.area}" tabindex="1"  >
<f:selectItem itemLabel="<SELECIONE>" itemValue="" />
<f:selectItem itemLabel="Brasil" itemValue="-75+-35+-30+6" />
<f:selectItem itemLabel="Sao Paulo" itemValue="-53.40+-25.50+-44+-19" />
<f:selectItem itemLabel="Rio Grande do Sul" itemValue="-59+-34+-48+-27" />
<a4j:support event="onchange" reRender="formModel,image" status="wait" />
</h:selectOneMenu>
P

Olá!

vc tem que usar o event no a4j

att

Criado 22 de novembro de 2007
Ultima resposta 5 de set. de 2008
Respostas 3
Participantes 3