2 Replies Latest reply on Oct 11, 2007 10:27 AM by Ilya Shaikovsky

    Content in Browser not changed after changes in JSF-Source

    Wolfgang Klaus Newbie

      Hi,

      I have a simple page with contains a rich:panel and so on.
      When changing the content in the rich:panel then
      the page which shows the browser is not changed.
      For example the following JSF-Page

      <%@ page contentType="text/html; charset=Cp1252"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
      <html>
      <%@ include file="/inc/header.inc"%>
      <body>
      <f:view>
      
       <h:form id="form">
      
       <h:panelGrid id="grid" columnClasses="cols1,cols2" columns="2">
      
       <rich:panelMenu id="menu" style="width:200px;" mode="server">
       <rich:panelMenuGroup id="stammdaten" expanded="true"
       label="Stammdaten">
       <rich:panelMenuItem id="partner" action="go_Partner"
       label="Partner">
       </rich:panelMenuItem>
       <rich:panelMenuItem id="artikel" action="go_Artikel"
       label="Artikel">
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
       <rich:panelMenuGroup id="finanzen" expanded="true" label="Finanzen">
       <rich:panelMenuItem id="auftraege" action="go_Auftraege"
       label="Aufträge">
       </rich:panelMenuItem>
       <rich:panelMenuItem id="rechnugen" action="go_Rechnungen"
       label="Rechnungen">
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
       </rich:panelMenu>
      
       <rich:panel id="echo" header="Simple1 Echo">
       <h:outputText id="out" value="test4" />
       <h:inputText id="inp" value="#{testBean.testval}">
       <a4j:support id="a" event="onkeyup" reRender="rep" />
       </h:inputText>
       <h:outputText value="#{testBean.testval}" id="rep" />
       <h:commandButton id="c" type="submit" action="#{testBean.printVal}"
       value="Testen5"></h:commandButton>
       </rich:panel>
       </h:panelGrid>
      
       </h:form>
      </f:view>
      </body>
      </html>
      
      

      When changing the value from "Testen5" to "Testen6" of the h:commandButton and then press CTRL-F5 for reload in the browser the old value "Testen5" is shown.
      After restarting tomcat the new value will be shown.
      This behaviour is very bad when developing. I don't want restart
      tomcat after some changes.

      Everything outside rich:panel is immediately changed as expected.
      I've already set enable-cache to false but it doesn't help.

      My enviroment is:
      Tomcat 5.5.25
      MyFaces 1.1.5
      RichFaces 3.1.1


      Does somebody have this problem too?
      Is there another caching in RichFaces? How could it be disabled.

      Regards,

      Wolfgang