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

    Content in Browser not changed after changes in JSF-Source

    wklaus

      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

        • 1. Re: Content in Browser not changed after changes in JSF-Sour
          wklaus

          Here are some more information I got after doing
          some more research.
          The problem only exists if using the same Session.
          As long as the same Session is used there is always
          the same content served as from the begin of the Session but only from RichFaces components and all of its childs.
          If you change something outside RichFaces-Components then the new values are served.
          It looks like that changes never be attached to the active session.
          What can I do to avoid this problem.
          I don't want get a new session after some little
          changes. Without RichFaces components it was
          possible to simple reload the page in the same
          session and the changes where visible in the browser.

          How are you doing development? This behavior slows down development extremly.

          Regards
          Wolfgang

          • 2. Re: Content in Browser not changed after changes in JSF-Sour
            ilya_shaikovsky

            Under facelets and RHSD - all changes in pages - applied without any problems ;)