Code: Select all
: <p:calendar value="#{calendarBean.date1}" mode="inline"/>
Code: Select all
public class CalendarBean implements Serializable {
private Date date1;
public Date getDate1() {
return date1;
}
public void setDate1(Date date1) {
this.date1 = date1;
}
}
But anytime a launch the page, a page with no layout badly displayed with component scattered with the following log errors :
GRAVE: Error Rendering View[/index.xhtml]
java.lang.IllegalStateException: PWC3999: Cannot create a session after the response has been committed
INFO: Exception when handling error trying to reset the response.
java.lang.IllegalStateException: PWC3999: Cannot create a session after the response has been committed
ATTENTION: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalStateException: PWC3999: Cannot create a session after the response has been committed
In some browsers (Google Chrome and Opera) they display the page still with scattered components with this message on top
But there is nothing wrong on line 74, the Calendar is on line 227 . Meanwhile Line 74 ends simply with closing a panelGridThis page contains the following errors:
error on line 74 at column 10: Extra content at the end of the document
Below is a rendering of the page up to the first error.
This is what I noticed : when I remove the Calendar code line, everything is well displayed and when I put it back the page is well displayed with the Calendar inside. But if I leave the page opened for quite sometimes, when I try to refresh the page, it comes back to the same error, until I remove the Calendar ,refresh the page and put it back and refresh the page again. But I know this is not the solution because it has to work
Thansk for your ideas