Hi, just for info:
The ScalarDataModel is a DataModel for a single row with the value object as row-data. If you put a Set as value to the dataTable you can create a table with one row, but how will you define your column values? So of cause a Set is of 'any other type', but it made no sense to do that. Regards Volker Martin Marinschek wrote: > Hans Bergsten is correct, > > you have > > java.util.List, Arrays, etc. supported > > but no Sets! > > regards, > > Martin > > On 12/5/05, Matthias Kahlau <[EMAIL PROTECTED]> wrote: > >>Hi Mike! >> >> >>As described in the JSF book of Hans Bergsten, a member of the JSF >>specification team, the value attribute value of a h:dataTable can be of any >>type, but the primary model type is the javax.faces.model.DataModel class. >> >>- a value of type Object[] is wrapped automatically in an instance of >>ArrayDataModel >>- a java.util.List in a ListDataModel >>- a javax.servlet.jsp.jstl.sql.Result in a ResultDataModel >>- a java.sql.ResultSet in a ResultSetDataModel >>- and any other type in a ScalarDataModel >> >>If the HtmlNewspaperTable is based on the JSF standard HtmlDataTable (what >>can be seen in the API Doc), why is the value attribute value of type >>java.util.Set not supported? Or is the info of Hans Bergsten not correct? >> >> >>Regards, >>Matthias >> >> >>>-----Ursprüngliche Nachricht----- >>>Von: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED] Auftrag >>>von Mike Kienenberger >>>Gesendet: Montag, 5. Dezember 2005 17:03 >>>An: MyFaces Discussion >>>Betreff: Re: Problem with the newspaperTable >>> >>> >>>I don't think Set is a valid UIData value type. It requires an >>>ordered collection like List. >>>I remember reading in the past that MyFaces UIData erroneously >>>supported Set, but I'm pretty sure that this error was corrected. >>>It's possible that it's still supported by UIData subclasses like >>>t:dataTable (but not h:dataTable). >>> >>>On 12/2/05, Matthias Kahlau <[EMAIL PROTECTED]> wrote: >>> >>>>Hi! >>>> >>>> >>>>I have a problem with the newspaperTable. It seems to >>> >>>incorrectly resolve a >>> >>>>ValueBinding. The same value/var/outputText values work correctly with a >>>>dataList! >>>> >>>> >>>><t:newspaperTable newspaperColumns="8" >>>> value="#{CreateEditTansBacking.tans}" >>>> var="tan"> >>>> >>>> <h:column> >>>> <h:outputText value="#{tan.tanstring}" /> >>>> </h:column> >>>> >>>></t:newspaperTable> >>>> >>>> >>>>The "tans" property is a HashSet containing Tan objects. >>>> >>>> >>>>I get the following stacktrace when using the newspaperTable: >>>> >>>>2005-12-02 18:09:14,093 DEBUG >>>>[org.apache.myfaces.application.jsp.JspViewHandlerImpl] Dispatching to >>>>/Management/ShowTans.jsp >>>>2005-12-02 18:09:15,875 DEBUG [org.apache.myfaces.taglib.core.ViewTag] >>>>entering ViewTag.doStartTag >>>>2005-12-02 18:09:15,875 DEBUG [org.apache.myfaces.taglib.core.ViewTag] >>>>leaving ViewTag.doStartTag >>>>2005-12-02 18:09:15,890 DEBUG >>> >>>[org.apache.myfaces.el.PropertyResolverImpl] >>> >>>>Exception while retrieving property; base : >>>> >>> >>>[de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrag >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>de.fhzw.portal.umfragesystem.model.persistence.domainmodel.umfrage >>>[EMAIL PROTECTED], >>> >>>>property : tanstring >>>>javax.faces.el.PropertyNotFoundException: Bean: >>> >>>java.util.HashSet, property: >>> >>>>tanstring >>>> at >>>> >>> >>>org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(P >>>ropertyRes >>> >>>>olverImpl.java:476) >>>> at >>>> >>> >>>org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(P >>>ropertyRes >>> >>>>olverImpl.java:447) >>>> at >>>> >>> >>>org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyRes >>>olverImpl. >>> >>>>java:410) >>>> at >>>> >>> >>>org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolv >>>erImpl.jav >>> >>>>a:82) >>>> at >>>> >>> >>>org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELP >>>arserHelpe >>> >>>>r.java:532) >>>> at >>> >>>org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) >>> >>>> at >>>> >>> >>>org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:380) >>> >>>> at javax.faces.component.UIOutput.getValue(UIOutput.java:75) >>>> at >>>> >>> >>>org.apache.myfaces.renderkit.RendererUtils.getStringValue(Renderer >>>Utils.java >>> >>>>:219) >>>> at >>>> >>> >>>org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderOutpu >>>t(HtmlText >>> >>>>RendererBase.java:66) >>>> at >>>> >>> >>>org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(H >>>tmlTextRen >>> >>>>dererBase.java:54) >>>> at >>>> >>> >>>javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:521) >>> >>>> at >>>> >>> >>>org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUti >>>ls.java:44 >>> >>>>4) >>>> at >>>> >>> >>>org.apache.myfaces.renderkit.RendererUtils.renderChildren(Renderer >>>Utils.java >>> >>>>:421) >>>> at >>>> >>> >>>org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUti >>>ls.java:44 >>> >>>>2) >>>> at >>>> >>> >>>org.apache.myfaces.custom.newspaper.HtmlNewspaperTableRenderer.enc >>>odeChildre >>> >>>>n(HtmlNewspaperTableRenderer.java:127) >>>> at >>>> >>> >>>javax.faces.component.UIComponentBase.encodeChildren(UIComponentBa >>>se.java:50 >>> >>>>9) >>>> at >>>> >>> >>>javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:466) >>> >>>> at >>> >>>javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:356) >>> >>>> at >>>> >>> >>>org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UICompon >>>entBodyTag >>> >>>>Base.java:55) >>>> at >>>> >>> >>>org.apache.jsp.Management.ShowTans_jsp._jspx_meth_t_newspaperTable >>>_0(ShowTan >>> >>>>s_jsp.java:409) >>>> at >>>> >>> >>>org.apache.jsp.Management.ShowTans_jsp._jspx_meth_h_form_0(ShowTan >>>s_jsp.java >>> >>>>:219) >>>> at >>>> >>> >>>org.apache.jsp.Management.ShowTans_jsp._jspx_meth_f_view_0(ShowTan >>>s_jsp.java >>> >>>>:120) >>>> at >>> >>>org.apache.jsp.Management.ShowTans_jsp._jspService(ShowTans_jsp.java:83) >>> >>>> 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:3 >>> >>>>24) >>>> 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 >>>pplication >>> >>>>FilterChain.java:237) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati >>>onFilterCh >>> >>>>ain.java:157) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationD >>>ispatcher. >>> >>>>java:704) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationDispatcher.processRequest(Appl >>>icationDis >>> >>>>patcher.java:474) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationDispatcher.doForward(Applicati >>>onDispatch >>> >>>>er.java:409) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationDispatcher.forward(Application >>>Dispatcher >>> >>>>.java:312) >>>> at >>>> >>> >>>org.apache.myfaces.context.servlet.ServletExternalContextImpl.disp >>>atch(Servl >>> >>>>etExternalContextImpl.java:416) >>>> at >>>> >>> >>>org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(J >>>spViewHand >>> >>>>lerImpl.java:234) >>>> at >>>> >>> >>>org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372) >>> >>>> at >>> >>>javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) >>> >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A >>>pplication >>> >>>>FilterChain.java:237) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati >>>onFilterCh >>> >>>>ain.java:157) >>>> at >>>> >>> >>>org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(E >>>xtensionsF >>> >>>>ilter.java:123) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A >>>pplication >>> >>>>FilterChain.java:186) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati >>>onFilterCh >>> >>>>ain.java:157) >>>> at >>>> >>> >>>org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeade >>>rFilter.ja >>> >>>>va:75) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A >>>pplication >>> >>>>FilterChain.java:186) >>>> at >>>> >>> >>>org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati >>>onFilterCh >>> >>>>ain.java:157) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp >>>erValve.ja >>> >>>>va:214) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardV >>>alveContex >>> >>>>t.java:104) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. >>>java:520) >>> >>>> at >>>> >>> >>>org.apache.catalina.core.StandardContextValve.invokeInternal(Stand >>>ardContext >>> >>>>Valve.java:198) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardContextValve.invoke(StandardConte >>>xtValve.ja >>> >>>>va:152) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardV >>>alveContex >>> >>>>t.java:104) >>>> at >>>> >>> >>>org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPr >>>incipalVal >>> >>>>ve.java:66) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardV >>>alveContex >>> >>>>t.java:102) >>>> at >>>> >>> >>>org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Secu >>>rityAssoci >>> >>>>ationValve.java:150) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardV >>>alveContex >>> >>>>t.java:102) >>>> at >>>> >>> >>>org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextV >>>alve.java: >>> >>>>54) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardV >>>alveContex >>> >>>>t.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 >>>alveContex >>> >>>>t.java:104) >>>> at >>>> >>> >>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv >>>e.java:118 >>> >>>>) >>>> at >>>> >>> >>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardV >>>alveContex >>> >>>>t.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 >>>alveContex >>> >>>>t.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 >>>ocessConne >>> >>>>ction(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.jav >>> >>>>a:683) >>>> at java.lang.Thread.run(Thread.java:534) >>>> >>>> >>>> >>>>Regards, >>>>Matthias >>>> >>>> >> >> > > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.

