Duplicate component ID error while refresh
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Duplicate component ID error while refresh  XML
Forum Index -> Components Go to Page: Previous  1, 2
Author Message
krokodylowy3

Joined: 01/02/2008 00:00:00
Messages: 29
Offline



What about portlets?

The same issues with component id users may see on Liferay.
Guide http://www.icefaces.org/docs/v1_8_1/htmlguide/devguide/AdvancedTopics10.html tell set concurrentDOMViews to true.

At this moment there is only one workaround - add f:subview around code with duplicate id's problem (around some includes etc)

Krashan Brahmanjara
krajasekaranmca

Joined: 28/05/2010 06:54:30
Messages: 3
Offline


Hi, Pls go through http://kingsekaran.blogspot.com/2010/05/jsfduplicate-component-id-error.html
seshu_roy

Joined: 19/12/2009 00:00:00
Messages: 1
Offline


<context-param>
<param-name>com.icesoft.faces.standardRequestScope</param-name>
<param-value>true</param-value>
</context-param>

In addition to above declaration (it's default in my application), adding id's to all the tags solved my problem.
All the beans need not be in request scope. I have some of the beans in session scope too...also concurrentDOMViews = true (since opening multiple windows in my application).

I still have a doubt about relation between concurrentDOMViews = true and beans in session scope since its not creating any prob's to me.


Thanks,
Seshu
krajasekaranmca

Joined: 28/05/2010 06:54:30
Messages: 3
Offline


You may please refer to the following link, and do let me know if it really helped. http://freejavaclass.com/detailpost.jsp?postid=63
krajasekaranmca

Joined: 28/05/2010 06:54:30
Messages: 3
Offline


You may please refer to the following link, and do let me know if it really helped. http://freejavaclass.com/detailpost.jsp?postid=63
cgcortes34

Joined: 11/11/2010 14:40:45
Messages: 3
Offline


Hi, everybody !!!

I think that the component facet is the problem, because ... i don't know, but i was solve of this way.

this code work very well and i don't have problem

<ice:form id="formClienteView">
<ice:panelPopup id="modalPnlPop"
draggable="false" modal="true"
rendered="#{clienteView.modalRendered}" autoCentre="#{clienteView.autoCentre}"
styleClass="corePopup">
<f:facet name="header">
<ice:panelGroup styleClass="popupHeaderWrapper">
<div class="header_right">
<ice:commandLink id="clienteView_close" immediate="true"
action="#{clienteView.toggleModal}">
<img src="./css/images/close_blue.gif" alt="Cerrar Vista de Cliente"/>
</ice:commandLink>
</div>
<div class="header_left">
<ice:outputText value="Cliente" styleClass="popupHeaderText"/>
</div>
</ice:panelGroup>
</f:facet>
<f:facet name="body">
<ice:panelGroup styleClass="popupBody">
<ice:outputText value="Codigo Red"/>
<ice:outputText value="Nombre" />
<ice:outputText value="DID" />
<ice:outputText value="No800" />
<ice:outputText value="Sector" />
<ice:commandButton id="addddd" value="Guardar Cliente"/>
</ice:panelGroup>
</f:facet>

</ice:panelPopup>
</ice:form>

now, compare this code

<ice:form id="formClienteView">
<ice:panelPopup id="modalPnlPop"
draggable="false" modal="true"
rendered="#{clienteView.modalRendered}" autoCentre="#{clienteView.autoCentre}"
styleClass="corePopup">
<f:facet name="header">
<ice:outputText value="Cliente" styleClass="popupHeaderText"/>
<ice:commandLink id="clienteView_close" immediate="true"
action="#{clienteView.toggleModal}">
<img src="./css/images/close_blue.gif" alt="Cerrar Vista de Cliente"/>
</ice:commandLink>
</f:facet>
<f:facet name="body">
<ice:panelGroup styleClass="popupBody">
<ice:outputText value="Codigo Red"/>
<ice:outputText value="Nombre" />
<ice:outputText value="DID" />
<ice:outputText value="No800" />
<ice:outputText value="Sector" />
<ice:commandButton id="addddd" value="Guardar Cliente"/>
<ice:commandButton id="modalPnlCloseButton" partialSubmit="true" immediate="true" value="Cancelar" actionListener="#{clienteView.toggleModal}"/>
</ice:panelGroup>
</f:facet>
</ice:panelPopup>
</ice:form>

can you see the difference ??

Yes is the component panelgroup after each component facet.

Test puting the panelgroup and get out the panelgroup
and get you this error

java.lang.IllegalStateException: Duplicate component ID : formClienteView:j_id58

And i don't believe that mistake is for the

<context-param>
<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
<param-value>true</param-value>
</context-param>

why? because I put a fake and the error continued

and just add the component panelgroup after each facet and waaalaaa!!!!
The problem disappear

Well, I hope you find it helpful.
 
Forum Index -> Components Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7ice © JForum Team