Can anyone please help or point me to example to show how to set up constructor on beans or any other changes required to java backing beans when state_saving_method is set to the client?

 

I just switched my web.xml to save state on the client:

 

   <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>

 

When I add this, I receive a ‘no valid constructor’ error:

 

javax.servlet.ServletException: java.io.InvalidClassException: com.sidehire.SearchIspBean; no valid constructor
               javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
 
Here’s the constructor for my backing bean (uses Sortable class from myfaces examples, and initializes local vars):
     public class SearchIspBean extends SortableList implements Serializable  { …   
      public SearchIspBean() {
               // call SortableList constructor; pass default sort column
                super("id");
                pageindex = 0; 
               displayrows=10;
    }

 

Within the .jsf page I am calling <t:savestate ..>  to save the state of the backing bean.

 

 

Reply via email to