myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Kahlau" <mkah...@web.de>
Subject AW: [jira] Commented: (MYFACES-817) Runtime error using Tomahawk dataTable + selectBooleanCheckboxes (MyFaces 1.1.1)
Date Wed, 16 Nov 2005 21:06:20 GMT
Hi Simon,


I tried to use Nighly 20051115 and 20051114, but I can't integrate them. I use exactly the
same procedure to integrate the myfaces-all.jar as with MyFaces 1.1.1, but if I integrate
a Nightly, I get the following compilation error when I deploy to a WAR. Do you have any suggestion?


  	...\public_html\Management\ManagementHome.jsp
        Error(5364,15): Invalid element 'p' in content of 'description', expected elements
'[PCDATA]'.
        Error(5364,15): Element 'p' used but not declared.
        Error(5370,15): Invalid element 'p' in content of 'description', expected elements
'[PCDATA]'.
        Error(5370,15): Element 'p' used but not declared.
        Error(5374,24): Element 'i' used but not declared.
        Error(5374,75): Element 'i' used but not declared.
        Error(5): Laden von Taghandler-Klasse: http://java.sun.com/jsf/core nicht möglich.
        Error(5364,15): Invalid element 'p' in content of 'description', expected elements
'[PCDATA]'.
        Error(5364,15): Element 'p' used but not declared.
        Error(5370,15): Invalid element 'p' in content of 'description', expected elements
'[PCDATA]'.
        Error(5370,15): Element 'p' used but not declared.
        Error(5374,24): Element 'i' used but not declared.
        Error(5374,75): Element 'i' used but not declared.
        Error(7): Laden von Taghandler-Klasse: http://myfaces.apache.org/tomahawk nicht möglich.
        Error(1): Das Präfix: f wurde vor der taglib-Anweisung verwendet. Verwenden Sie ein
anderes Präfix, oder verschieben Sie die taglib-Anweisung über beliebige Referenzen zu diesem
Präfix.
        Error(3): Das Präfix: t wurde vor der taglib-Anweisung verwendet. Verwenden Sie ein
anderes Präfix, oder verschieben Sie die taglib-Anweisung über beliebige Referenzen zu diesem
Präfix.
        Error(1): Das Präfix: f wurde vor der taglib-Anweisung verwendet. Verwenden Sie ein
anderes Präfix, oder verschieben Sie die taglib-Anweisung über beliebige Referenzen zu diesem
Präfix.
        Error(3): Das Präfix: t wurde vor der taglib-Anweisung verwendet. Verwenden Sie ein
anderes Präfix, oder verschieben Sie die taglib-Anweisung über beliebige Referenzen zu diesem
Präfix.
	
	...\View\public_html\GeneralError.jsp
        Error(5364,15): Invalid element 'p' in content of 'description', expected elements
'[PCDATA]'.
        Error(5364,15): Element 'p' used but not declared.
        Error(5370,15): Invalid element 'p' in content of 'description', expected elements
'[PCDATA]'.
        Error(5370,15): Element 'p' used but not declared.
        Error(5374,24): Element 'i' used but not declared.
        Error(5374,75): Element 'i' used but not declared.
        Error(8): Laden von Taghandler-Klasse: http://myfaces.apache.org/extensions nicht
möglich.
    	
	...\public_html\Management\CreateEditUmfrage.jsp
        Error(5364,15): Invalid element 'p' in content of 'description', expected elements
'[PCDATA]'.
        Error(5364,15): Element 'p' used but not declared.
        Error(5370,15): Invalid element 'p' in content of 'description', expected elements
'[PCDATA]'.
        Error(5370,15): Element 'p' used but not declared.
        Error(5374,24): Element 'i' used but not declared.
        Error(5374,75): Element 'i' used but not declared.
        Error(7): Laden von Taghandler-Klasse: http://myfaces.apache.org/tomahawk nicht möglich.




Regards,

Matthias

> -----Ursprüngliche Nachricht-----
> Von: dev@myfaces.apache.org [mailto:dev@myfaces.apache.org]
> Gesendet: Sonntag, 13. November 2005 23:16
> An: mkahlau@web.de
> Betreff: [jira] Commented: (MYFACES-817) Runtime error using Tomahawk
> dataTable + selectBooleanCheckboxes (MyFaces 1.1.1)
> 
> 
>     [ 
> http://issues.apache.org/jira/browse/MYFACES-817?page=comments#act
> ion_12357548 ] 
> 
> Simon Kitching commented on MYFACES-817:
> ----------------------------------------
> 
> Hi Matthias,
> 
> I see you're using myfaces-1.1.1. A fair bit of change has gone 
> on in this area since that release. I suggest you try a nightly 
> build to see if that resolves the issue. The latest nightlies 
> appear to be reasonably stable.
> 
> I am using checkboxes in table columns successfully with the SVN 
> HEAD version, though via a custom component rather than the 
> SelectBooleanCheckbox component.
> 
> Regards,  Simon
> 
> > Runtime error using Tomahawk dataTable + 
> selectBooleanCheckboxes (MyFaces 1.1.1)
> > 
> ------------------------------------------------------------------
> --------------
> >
> >          Key: MYFACES-817
> >          URL: http://issues.apache.org/jira/browse/MYFACES-817
> >      Project: MyFaces
> >         Type: Bug
> >   Components: Tomahawk
> >     Versions: 1.1.1
> >  Environment: Windows XP Prof., jboss-4.0.1sp1 for the J2EE? 
> 1.4 codebase
> >     Reporter: Matthias Kahlau
> >     Priority: Blocker
> 
> >
> > I have a problem with the Tomahawk dataTable component, in 
> conjunction with
> > a selectBooleanCheckbox in each row. I use a Component-Binding 
> for each component, and determining the selected
> > checkboxes works well. But after that, I get the following 
> runtime error:
> > null
> > java.lang.NullPointerException
> > 	at 
> org.apache.myfaces.component.html.ext.HtmlDataTableHack.restoreDes
> cendantComponentStates(HtmlDataTableHack.java:245)
> > 	at 
> org.apache.myfaces.component.html.ext.HtmlDataTableHack.restoreDes
> cendantComponentStates(HtmlDataTableHack.java:257)
> > 	at 
> org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowInde
> x(HtmlDataTableHack.java:200)
> > 	at 
> org.apache.myfaces.component.html.ext.HtmlDataTable.setRowIndex(Ht
> mlDataTable.java:166)
> > 	at 
> javax.faces.component.html.HtmlDataTable.encodeBegin(HtmlDataTable
> .java:35)
> > 	at 
> org.apache.myfaces.component.html.ext.HtmlDataTableHack.encodeBegi
> n(HtmlDataTableHack.java:126)
> > 	at 
> org.apache.myfaces.component.html.ext.HtmlDataTable.encodeBegin(Ht
> mlDataTable.java:312)
> > 	at 
> org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUti
> ls.java:441)
> > 	at 
> org.apache.myfaces.renderkit.RendererUtils.renderChildren(Renderer
> Utils.java:427)
> > 	at 
> org.apache.myfaces.renderkit.html.HtmlGroupRendererBase.encodeEnd(
> HtmlGroupRendererBase.java:62)
> > 	at 
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
> > 	at 
> org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUti
> ls.java:450)
> > 	at 
> org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.writeT
> absContents(HtmlTabbedPaneRenderer.java:535)
> > 	at 
> org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encode
> End(HtmlTabbedPaneRenderer.java:227)
> > 	at 
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
> > 	at 
> javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)
> > 	at 
> javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253)
> > 	at 
> org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UICompon
> entBodyTagBase.java:55)
> > 	at 
> org.apache.jsp.Management.ManagementHome_jsp._jspx_meth_t_panelTab
> bedPane_0(ManagementHome_jsp.java:302)
> > 	at 
> org.apache.jsp.Management.ManagementHome_jsp._jspx_meth_h_form_0(M
> anagementHome_jsp.java:238)
> > 	at 
> org.apache.jsp.Management.ManagementHome_jsp._jspx_meth_f_view_0(M
> anagementHome_jsp.java:191)
> > 	at 
> org.apache.jsp.Management.ManagementHome_jsp._jspService(Managemen
> tHome_jsp.java:145)
> > 	at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > 	at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
> per.java:324)
> > 	at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> pplicationFilterChain.java:237)
> > 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> onFilterChain.java:157)
> > 	at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationD
> ispatcher.java:704)
> > 	at 
> org.apache.catalina.core.ApplicationDispatcher.processRequest(Appl
> icationDispatcher.java:474)
> > 	at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(Applicati
> onDispatcher.java:409)
> > 	at 
> org.apache.catalina.core.ApplicationDispatcher.forward(Application
> Dispatcher.java:312)
> > 	at 
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.disp
> atch(ServletExternalContextImpl.java:415)
> > 	at 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(J
> spViewHandlerImpl.java:234)
> > 	at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
> > 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
> > 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> pplicationFilterChain.java:237)
> > 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> onFilterChain.java:157)
> > 	at 
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(E
> xtensionsFilter.java:122)
> > 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> pplicationFilterChain.java:186)
> > 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> onFilterChain.java:157)
> > 	at 
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeade
> rFilter.java:75)
> > 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> pplicationFilterChain.java:186)
> > 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> onFilterChain.java:157)
> > 	at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> erValve.java:214)
> > 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardV
> alveContext.java:104)
> > 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:520)
> > 	at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(Stand
> ardContextValve.java:198)
> > 	at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> xtValve.java:152)
> > 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardV
> alveContext.java:104)
> > 	at 
> org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPr
> incipalValve.java:66)
> > 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardV
> alveContext.java:102)
> > 	at 
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Secu
> rityAssociationValve.java:150)
> > 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardV
> alveContext.java:102)
> > 	at 
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextV
> alve.java:54)
> > 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardV
> alveContext.java:102)
> > 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:520)
> > 	at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> e.java:137)
> > 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardV
> alveContext.java:104)
> > 	at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
> e.java:118)
> > 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardV
> alveContext.java:102)
> > 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:520)
> > 	at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
> Valve.java:109)
> > 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardV
> alveContext.java:104)
> > 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:520)
> > 	at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> > 	at 
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> > 	at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> > 	at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pr
> ocessConnection(Http11Protocol.java:705)
> > 	at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> > 	at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre
> adPool.java:683)
> > 	at java.lang.Thread.run(Thread.java:534)
> > ----------------
> > Part of JSP:
> > ----------------
> > <t:dataTable id="dataTableUmfragen"
> >     binding="#{UmfrageBacking.dataTable}"
> >     lang="de"
> >     title="Tabelle zur Auswahl eigener Umfragen"
> >     summary="Tabelle zur Übersicht und Auswahl eigener Umfragen"
> >     value="#{UmfrageBacking.durchfuehrungen}"
> >     var="row"
> >     rows="10"
> >     renderedIfEmpty="true"
> >     preserveDataModel="false"
> >     preserveSort="true"
> >     sortColumn="#{UmfrageBacking.sortColumn}"
> >     sortAscending="#{UmfrageBacking.sortAscending}"
> >     styleClass=""
> >     headerClass=""
> >     footerClass=""
> >     rowClasses=""
> >     columnClasses=""
> >     rowOnMouseOver="this.style.backgroundColor='#A5CBFF'"
> >     rowOnMouseOut="this.style.backgroundColor='#FFFFE0'"
> >     rowOnClick="this.style.backgroundColor='#FFE0E0'"
> >     rowOnDblClick="this.style.backgroundColor='#E0E0E0'"
> >     width="700">
> >     <t:column width="30">
> >       <h:selectBooleanCheckbox binding="#{UmfrageBacking.checkbox}"
> >         title="Umfrage auswählen zur Ausführung einer Aktion" />
> >     </t:column>
> >     <t:column>
> >       <f:facet name="header">
> >         <t:commandSortHeader
> >           columnName="#{UmfrageBacking.colName_Bezeichnung}"
> >           arrow="true"
> >           lang="de"
> >           title="#{managementBundle.sort_message}">
> >           <h:outputText value="#{UmfrageBacking.colName_Bezeichnung}"/>
> >         </t:commandSortHeader>
> >       </f:facet>
> >       <h:commandLink action="#{UmfrageBacking.edit}">
> >         <h:outputText value="#{row.bezeichnung}"/>
> >       </h:commandLink>
> >     </t:column>
> > ....
> > </t:dataTable>
> > ------------------------------
> > Part of Backing-Bean:
> > ------------------------------
> >     // Declarations for the component bindings
> >    private UIData dataTable;
> >    private UISelectBoolean checkbox;
> > // action method to delete the selected items
> > public String delete() {
> >     List currentUmfragen = (List)this.durchfuehrungen.getWrappedData();
> >     List toDelete = this.getSelectedDurchfuehrungen();
> >     int size = toDelete.size();
> >     for (int i = 0; i < size; i++) {
> >       currentUmfragen.remove(toDelete.get(i)); 
> >     }  
> >    return Constants.ACTION_SUCCESS;
> > }
> > // method to determine the selected items
> > private List getSelectedDurchfuehrungen() {
> >     List selected = new ArrayList();
> >     int first = this.dataTable.getFirst(); 
> >     int rows = this.dataTable.getRows(); 
> >     for (int i = first; i < (first + rows); i++) {
> >       this.dataTable.setRowIndex(i);
> >       if (this.checkbox.isSelected()) {
> >         selected.add(this.dataTable.getRowData());
> >       }
> >     }
> >     return selected;
> > }
> 
> -- 
> 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
> 


Mime
View raw message