com.sun.faces.saveStateFieldMarker
Hello!
I'm new to jsf. I've a very simple jsp page (result.jsp) which contains:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<html>
<body>
<table align="center">
<tr> <td>
<f:view>
<h:form>
<h:inputTextarea rows="25" cols="60" readonly="true" value="#{ResultManagedBean.result}"/>
</h:form>
</f:view>
</td> </tr>
</table>
</body>
</html>
and the managed bean code is:
publicclass ResultManagedBean{
private String result=null;
/** Creates a new instance of ResultManagedBean */
public ResultManagedBean(){
setResult("results...");
}
public String getResult(){
return result;
}
publicvoid setResult(String result){
this.result = result;
}
}
faces-config.xml
<faces-config xmlns="http://java.sun.com/JSF/Configuration">
<managed-bean>
<managed-bean-name>MenuManagedBean</managed-bean-name>
<managed-bean-class>gr.forth.ics.webdemo.MenuManagedBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>ResultManagedBean</managed-bean-name>
<managed-bean-class>gr.forth.ics.webdemo.ResultManagedBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
The result.jsp page is invoked from index.jsp
<html>
< <body>
<table border="1" >
<tbody>
<tr>
<td width="30%" height="80%" align="center"> <jsp:include page="menu.jsp"/> </td>
<td height="80%"> <jsp:include page="results.jsp"/> </td>
</tr>
<tr>
<td colspan="2" height="20%"> <jsp:include page="times.jsp"/></td>
</tr>
</tbody>
</table>
</body>
</html>
When the index.jsp page is displayed I get also an extra message in the corresponding cell of the window, saying:
"com.sun.faces.saveStateFieldMarker"
I'm a little bit confused because for the menu.jsp I used the same "strategy" as for results.jsp and the first is displayed correctly, without that message.
Do you know what is the problem?
thank you very much
With best regards,
Sorin

