Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Component ID viewstate has already been found in the view

843844Jun 29 2010
I have posted this in iceface forum, but no one reply, I hope somebody can help me here. Thanks.

I have a template.xhtml page and setup.xhtml page. The setup.xhtml will have the <ui:include src="#{MainSetupForm.pageName} "/> which will load for the pages according to the button click at the setup.xhtml

The page will refresh correctly only that I click twice on the button. But I found a workaround which is by adding the PARTIAL_STATE_SAVING = false at the web.xml

<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
<param-value>false</param-value>
</context-param>

But, after adding this, whenever I click on the command button there will be error message, "java.lang.IllegalStateException: Component ID formSetup:formSetup_viewstate has already been found in the view."

formSetup is the id that i gave to my <ice:form id="formSetup">

I have attach a screenshot of the error message here.

Please help. Thanks.


Following is the content.xhtml :

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
template="./MainSetupTemplate.xhtml"
xmlns:ice="http://www.icesoft.com/icefaces/component">

<ui:define name="left">

<ice:panelGroup style="border-color: black; border-style: solid; border-width: 1px">
<ice:form id="formSetup">
<table>
<tr>
<td colspan="2">
Organisation
<ice:commandButton id="cmdEditOrg" value="Edit"
actionListener="#{MainSetupAction.showPage}"
/></td>
</tr>

<tr>
<td>Site</td>
<td>
<ice:selectOneMenu />
<ice:commandButton id="cmdAddSite" value="+"
actionListener="#{MainSetupAction.showPage}"
/>
</td>
</tr>

</table>
</ice:form>

</ice:panelGroup>

</ui:define>

<ui:define name="content">
<ice:panelGroup style="height: 400px" >
<ui:include src="#{MainSetupForm.pageName} "/>
</ice:panelGroup>
</ui:define>

<ui:define name="bottom">
bottom
</ui:define>

</ui:composition>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2010
Added on Jun 29 2010
0 comments
292 views