| Author |
Message |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 23/12/2009 05:10:43
|
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 |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 28/05/2010 06:55:38
|
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
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 23/06/2010 16:06:10
|
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
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 08/09/2010 02:54:28
|
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
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 08/09/2010 03:50:15
|
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
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 24/05/2011 15:37:49
|
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.
|
|
|
 |
|
|