You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Boris Kovalenko (JIRA)" <de...@myfaces.apache.org> on 2005/11/02 12:26:59 UTC
[jira] Commented: (MYFACES-772) stops working with Facelets
[ http://issues.apache.org/jira/browse/MYFACES-772?page=comments#action_12356590 ]
Boris Kovalenko commented on MYFACES-772:
-----------------------------------------
Found that disabling JavaScript (org.apache.myfaces.ALLOW_JAVASCRIPT = false) removes this error but calendar stops choosing dates.
> <t:inputCalendar/> stops working with Facelets
> ----------------------------------------------
>
> Key: MYFACES-772
> URL: http://issues.apache.org/jira/browse/MYFACES-772
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: Nightly
> Environment: All
> Reporter: Boris Kovalenko
>
> Here is the simple 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:h="http://java.sun.com/jsf/html"
> xmlns:t="http://myfaces.apache.org/tomahawk">
> <head>
> </head>
> <body>
> <h:form>
> <t:inputCalendar id="calendar"/>
> </h:form>
> </body>
> </html>
> Calendar is rendered, but when I try to choose any date (or even just list
> months) I getting error:
> Duplicate id : calendar. Child could not be added.
> Stack trace:
> java.lang.IllegalStateException: Duplicate id : calendar. Child could not be added.
> at
> javax.faces.component._ComponentChildrenList.checkAddAllowed(_ComponentChildrenList.java:95)
> at javax.faces.component._ComponentChildrenList.add(_ComponentChildrenList.java:76)
> at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:152)
> at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:147)
> at
> com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
> at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
> at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
> at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:400)
> at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:434)
> at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:351)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
> at
> com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99)
> at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:123)
> at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
> at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
> at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
> at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
> at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)
> at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
> at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
> at java.lang.Thread.run(Thread.java:534)
> Components tree:
> <UIViewRoot locale="ru" renderKitId="HTML_BASIC" rendered="true"
> transient="false" viewId="/facelets.xhtml">
> <HtmlForm enctype="application/x-www-form-urlencoded" id="_tagId0"
> rendered="true" submitted="true" transient="false">
> <HtmlInputCalendar addResources="true" disabled="false" id="calendar"
> 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="Sun Oct 02 00:00:00
> YEKST 2005"/>
> </HtmlForm>
> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body>
> </UIViewRoot>
> Same code work without problems with pure MyFaces jsp. I'm not sure the problem is MyFaces related, but I created both (Facelets & MyFaces) issues.
--
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