-
1. Re: View state couldn't be restored - reload?
amitev Apr 4, 2007 2:29 AM (in response to juanignaciosl)This is because the session is invalidated after redeploy and the view state is lost (it's stored in the session).
-
2. Re: View state couldn't be restored - reload?
juanignaciosl Apr 4, 2007 4:13 AM (in response to juanignaciosl)Oks, it seems it invalidated session due tu server errors. Now clicking the tabs just does nothing :-\
-
3. Re: View state couldn't be restored - reload?
juanignaciosl Apr 4, 2007 5:04 AM (in response to juanignaciosl)Now it throws java.lang.IllegalStateException: Id. de componente duplicado 'nuevaConvocatoria:_id6' hallado en la vista.
English: Duplicated component id
:'( -
4. Re: View state couldn't be restored - reload?
juanignaciosl Apr 4, 2007 5:42 AM (in response to juanignaciosl)I've realized it only happens when I put a form component (like h:inputText) inside a tab. Cant I?
-
5. Re: View state couldn't be restored - reload?
juanignaciosl Apr 4, 2007 5:54 AM (in response to juanignaciosl)More specifically, it stops working the very moment I use a html jsf tag (h:). Are they incompatible? I'm using RF 3.0, ajax4jsf 1.1, JSF RI 1.1 and Tomahawk 1.1.5
PD: excuse the flooding, but since I can't edit posts it's the only way :-\ -
6. Re: View state couldn't be restored - reload?
juanignaciosl Apr 4, 2007 7:30 AM (in response to juanignaciosl)Finally: the problem was adding required="true" to an input. Opening new post with that.
-
7. Re: View state couldn't be restored - reload?
sahar_m May 29, 2007 2:25 AM (in response to juanignaciosl)
Hi,
I am using drop down menu with ajax mode, but when i click menu item to run ajax request, this error happend :view state couldn't be restored-reload page?
can you tell me whate i must to do?
thanks.
sahar -
8. Re: View state couldn't be restored - reload?
ilya_shaikovsky May 29, 2007 4:37 AM (in response to juanignaciosl)May be its a simple problem of the hot redeploying? Try to clea? caches and restart your server.
-
9. Re: View state couldn't be restored - reload?
sahar_m May 29, 2007 5:09 AM (in response to juanignaciosl)Hi,
I do all this work, but i still have problem!
please see the code:
web.xml<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <context-param> <param-name>com.sun.faces.verifyObjects</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>com.sun.faces.validateXml</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> <context-param> <param-name>org.ajax4jsf.SKIN</param-name> <param-value>blueSky</param-value> </context-param> <filter> <display-name>Ajax4jsf Filter</display-name> <filter-name>ajax4jsf</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>ajax4jsf</filter-name> <servlet-name>Faces Servlet</servlet-name> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file> faces/index.jsp </welcome-file> </welcome-file-list> </web-app>
jsp page<f:view> <h:form><div align="right"> <a4j:region id="mainMenu"> <a4j:status for="mainMenu"> <f:facet name="start"> <h:graphicImage value="/img/ajax-loader.gif" /> </f:facet> <f:facet name="stop"> <h:graphicImage value="/img/link.jpg" /> </f:facet> </a4j:status> <rich:toolBar > <rich:dropDownMenu value="File" direction="right"> <rich:menuItem mode="ajax" value="Open" /> <rich:menuGroup value="Save As..." > <rich:menuItem mode="ajax" value="Text File" reRender="content" action="#{contentBean.manageContent}" /> <rich:menuItem mode="ajax" value="PDF File" /> </rich:menuGroup> <rich:menuItem mode="ajax" value="Close"/> <rich:menuSeparator id="menuSeparator11"/> <rich:menuItem mode="ajax" value="Exit" /> </rich:dropDownMenu> </rich:toolBar> </a4j:region> </div> <p> </p> <p> </p> <p> </p> <h:outputText id="content" escape="false" value="#{contentBean.content}"/> <p> </p> <p> </p> <p> </p> </h:form> </f:view>
and the beanpublic class contentBean { private String content; /** Creates a new instance of contentBean */ public contentBean() { } public String getContent() { return this.content; } public void setContent(String content) { this.content = content; } public void manageContent() { setContent("<h1>test2 clicked!</h1></br><p>jdhajshdj</p><p>jkhjgjhgjh</p>"); } }
also i use richfaces3.0.1, ajax4jsf1.1.0 and tomcat 5.5
thanks for your attention
sahar -
10. Re: View state couldn't be restored - reload?
ilya_shaikovsky May 29, 2007 5:54 AM (in response to juanignaciosl)Ok. still no luck with reproduce. Please specify your full environment.
-
11. Re: View state couldn't be restored - reload?
ilya_shaikovsky May 29, 2007 6:40 AM (in response to juanignaciosl)Specify please your JSF environment. Still can't reproduce.
-
12. Re: View state couldn't be restored - reload?
ilya_shaikovsky May 29, 2007 6:41 AM (in response to juanignaciosl)Sorry.. Did not paid attention to second page :)