You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by md10024 <md...@qwizics.com> on 2008/02/24 06:16:24 UTC

tr:panelPopup duplicate id problem

I'm using trinidad 1.2.6, myfaces-1.2, facelets and am getting a duplicate ID
when using the tr:panelPopup

I am aware that there was an earlier problem with duplicate ID's, perhaps
this component was overlooked during the fix? This only occurs the second
time the page is loaded (or a refresh). The problem does not appear the
first time the page is loaded.
---snippet------
	<ui:define name="instruction">
		<tr:panelPopup triggerType="hover"
			binding="#{proctorBean.instructPopupBinding}" xoffset="2" yoffset="2">
			<f:facet name="trigger">
				<tr:panelGroupLayout>
					<tr:icon name="info" />
					<tr:outputText value="#{text['course.instructionstitle']}:" />
				</tr:panelGroupLayout>
			</f:facet>

			<tr:panelBox icon="/images/info.gif">
				<tr:panelList>
					<tr:outputText value="Select 'Next' to continue." />
					<tr:outputText value="Additional guidance is provided at each step" />
				</tr:panelList>
			</tr:panelBox>

		</tr:panelPopup>
	</ui:define>
--------
the stack trace is :
Feb 23, 2008 9:14:17 PM com.sun.facelets.FaceletViewHandler
handleRenderException
SEVERE: Error Rendering View[/course.xhtml]
java.lang.IllegalStateException: Client-id : j_id43 is duplicated in the
faces tree. Component : j_id43, path: {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /course.xhtml][Class:
org.apache.myfaces.trinidad.component.core.CoreDocument,Id: j_id0][Class:
com.sun.facelets.compiler.UIInstructions,Id: j_id43]}
	at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:376)
	at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:391)
	at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:391)
	at
org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:329)
	at org.apache.myfaces.trinidad......
-- 
View this message in context: http://www.nabble.com/tr%3ApanelPopup-duplicate-id-problem-tp15661070p15661070.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: tr:panelPopup duplicate id problem

Posted by md10024 <md...@qwizics.com>.
Ahh, yes... that was precisely the problem. Many thanks for the assistance!



Andrew Robinson-5 wrote:
> 
> I see you are using binding, did you ensure that proctorBean is
> request scoped (components cannot be used on more than one view root)?
> 
> On Sat, Feb 23, 2008 at 10:16 PM, md10024 <md...@qwizics.com> wrote:
>>
>>  I'm using trinidad 1.2.6, myfaces-1.2, facelets and am getting a
>> duplicate ID
>>  when using the tr:panelPopup
>>
>>  I am aware that there was an earlier problem with duplicate ID's,
>> perhaps
>>  this component was overlooked during the fix? This only occurs the
>> second
>>  time the page is loaded (or a refresh). The problem does not appear the
>>  first time the page is loaded.
>>  ---snippet------
>>         <ui:define name="instruction">
>>                 <tr:panelPopup triggerType="hover"
>>                         binding="#{proctorBean.instructPopupBinding}"
>> xoffset="2" yoffset="2">
>>                         <f:facet name="trigger">
>>                                 <tr:panelGroupLayout>
>>                                         <tr:icon name="info" />
>>                                         <tr:outputText
>> value="#{text['course.instructionstitle']}:" />
>>                                 </tr:panelGroupLayout>
>>                         </f:facet>
>>
>>                         <tr:panelBox icon="/images/info.gif">
>>                                 <tr:panelList>
>>                                         <tr:outputText value="Select
>> 'Next' to continue." />
>>                                         <tr:outputText value="Additional
>> guidance is provided at each step" />
>>                                 </tr:panelList>
>>                         </tr:panelBox>
>>
>>                 </tr:panelPopup>
>>         </ui:define>
>>  --------
>>  the stack trace is :
>>  Feb 23, 2008 9:14:17 PM com.sun.facelets.FaceletViewHandler
>>  handleRenderException
>>  SEVERE: Error Rendering View[/course.xhtml]
>>  java.lang.IllegalStateException: Client-id : j_id43 is duplicated in the
>>  faces tree. Component : j_id43, path: {Component-Path : [Class:
>>  javax.faces.component.UIViewRoot,ViewId: /course.xhtml][Class:
>>  org.apache.myfaces.trinidad.component.core.CoreDocument,Id:
>> j_id0][Class:
>>  com.sun.facelets.compiler.UIInstructions,Id: j_id43]}
>>         at
>> 
>> org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:376)
>>         at
>> 
>> org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:391)
>>         at
>> 
>> org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:391)
>>         at
>> 
>> org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:329)
>>         at org.apache.myfaces.trinidad......
>>  --
>>  View this message in context:
>> http://www.nabble.com/tr%3ApanelPopup-duplicate-id-problem-tp15661070p15661070.html
>>  Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/tr%3ApanelPopup-duplicate-id-problem-tp15661070p15668421.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: tr:panelPopup duplicate id problem

Posted by Andrew Robinson <an...@gmail.com>.
I see you are using binding, did you ensure that proctorBean is
request scoped (components cannot be used on more than one view root)?

On Sat, Feb 23, 2008 at 10:16 PM, md10024 <md...@qwizics.com> wrote:
>
>  I'm using trinidad 1.2.6, myfaces-1.2, facelets and am getting a duplicate ID
>  when using the tr:panelPopup
>
>  I am aware that there was an earlier problem with duplicate ID's, perhaps
>  this component was overlooked during the fix? This only occurs the second
>  time the page is loaded (or a refresh). The problem does not appear the
>  first time the page is loaded.
>  ---snippet------
>         <ui:define name="instruction">
>                 <tr:panelPopup triggerType="hover"
>                         binding="#{proctorBean.instructPopupBinding}" xoffset="2" yoffset="2">
>                         <f:facet name="trigger">
>                                 <tr:panelGroupLayout>
>                                         <tr:icon name="info" />
>                                         <tr:outputText value="#{text['course.instructionstitle']}:" />
>                                 </tr:panelGroupLayout>
>                         </f:facet>
>
>                         <tr:panelBox icon="/images/info.gif">
>                                 <tr:panelList>
>                                         <tr:outputText value="Select 'Next' to continue." />
>                                         <tr:outputText value="Additional guidance is provided at each step" />
>                                 </tr:panelList>
>                         </tr:panelBox>
>
>                 </tr:panelPopup>
>         </ui:define>
>  --------
>  the stack trace is :
>  Feb 23, 2008 9:14:17 PM com.sun.facelets.FaceletViewHandler
>  handleRenderException
>  SEVERE: Error Rendering View[/course.xhtml]
>  java.lang.IllegalStateException: Client-id : j_id43 is duplicated in the
>  faces tree. Component : j_id43, path: {Component-Path : [Class:
>  javax.faces.component.UIViewRoot,ViewId: /course.xhtml][Class:
>  org.apache.myfaces.trinidad.component.core.CoreDocument,Id: j_id0][Class:
>  com.sun.facelets.compiler.UIInstructions,Id: j_id43]}
>         at
>  org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:376)
>         at
>  org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:391)
>         at
>  org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:391)
>         at
>  org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:329)
>         at org.apache.myfaces.trinidad......
>  --
>  View this message in context: http://www.nabble.com/tr%3ApanelPopup-duplicate-id-problem-tp15661070p15661070.html
>  Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>