[
http://issues.apache.org/jira/browse/MYFACES-765?page=comments#action_12356469
]
Boris Kovalenko commented on MYFACES-765:
-----------------------------------------
First, I use facelets, so <!-- is really comments :) Second - I use very
very very simple example and there are no possibilities for duplicate ids. And
even I do not use id for calendar (or any other componets on the page I got an
error. For example here id is autogenerated:
<UIViewRoot locale="ru" renderKitId="HTML_BASIC" rendered="true"
transient="false" viewId="/test.xhtml">
<HtmlInputCalendar addResources="true" disabled="false" id="_tagId0"
immediate="false" localValueSet="true" maxlength="-2147483648"
maySelectInFuture="true" readonly="false" renderAsPopup="false"
renderPopupButtonAsImage="false" rendered="true" required="false"
size="-2147483648" transient="false" valid="true" value="Fri Nov 25 00:00:00
YEKT 2005"/>
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta
http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Facelets: Number Guess Tutorial</title> <head> <link rel="STYLESHEET"
type="text/css" href="/css/style.css"/> </head> </head> <body>
</UIViewRoot>
Source of my xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:t="http://myfaces.apache.org/tomahawk">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Facelets: Number Guess Tutorial</title>
<head>
<link rel="STYLESHEET" type="text/css" href="/css/style.css"/>
</head>
</head>
<body>
<t:inputCalendar id="calendar"/>
</body>
</html>
So, what am I doing wrong and how to fix this?
> <t:inputCalendar/> stops working
> --------------------------------
>
> Key: MYFACES-765
> URL: http://issues.apache.org/jira/browse/MYFACES-765
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: 1.1.1
> Environment: JDK 1.4.2, Unix, Windows, Resin 3.0.14
> Reporter: Boris Kovalenko
> Assignee: Martin Marinschek
> Fix For: Nightly
>
> Today, 31.10.2005 <t:inputCalendar> stops working with exception. Not sure
> but may be this is regarding to TZ change?
> [2005-10-31 10:38:59.315] Error Rendering View
> [2005-10-31 10:38:59.315] java.lang.IllegalStateException: Client-id :
> calendar_1130737139296_link is duplicated in the faces tree.
> [2005-10-31 10:38:59.315] at
> org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:241)
> [2005-10-31 10:38:59.315] at
> org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
> [2005-10-31 10:38:59.315] at
> org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
> [2005-10-31 10:38:59.315] at
> org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:204)
> [2005-10-31 10:38:59.315] at
> org.apache.myfaces.renderkit.html.util.DummyFormUtils.writeDummyForm(DummyFormUtils.java:111)
> [2005-10-31 10:38:59.315] at
> org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl.endDocument(HtmlResponseWriterImpl.java:156)
> [2005-10-31 10:38:59.315] at
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:449)
> [2005-10-31 10:38:59.315] at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
> [2005-10-31 10:38:59.315] at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
> [2005-10-31 10:38:59.315] at
> com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99)
> [2005-10-31 10:38:59.315] at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> [2005-10-31 10:38:59.315] at
> com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
> [2005-10-31 10:38:59.315] at
> com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
> [2005-10-31 10:38:59.315] at
> com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
> [2005-10-31 10:38:59.315] at
> com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:396)
> [2005-10-31 10:38:59.315] at
> com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)
> [2005-10-31 10:38:59.315] at
> com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
> [2005-10-31 10:38:59.315] at
> com.caucho.util.ThreadPool.run(ThreadPool.java:423)
> [2005-10-31 10:38:59.315] at java.lang.Thread.run(Thread.java:534)
> [10:38:59.316] Took Type: java.io.PrintWriter
> [2005-10-31 10:38:59.316] Took Type: java.io.PrintWriter
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira