[JBoss Seam] - @DataModel not working with scrollableDataGrid
by IGx89
<rich:scrollableDataTable id="staffList" var="staff" value="#{availableStaff}">
| <rich:column>
| <f:facet name="header">
| <h:outputText value="Name" />
| </f:facet>
| <h:outputText value="#{staff.fullName}" />
| </rich:column>
| </rich:scrollableDataTable>
| ...
| @DataModel private List<Staff> availableStaff;
| ...
| @Factory(value="availableStaff")
| public void initAvailableStaff() {
| ...
| }
javax.faces.FacesException: javax.el.PropertyNotFoundException: /viewStaff.xhtml @152,49 value="#{staff.fullName}":
| The class 'org.jboss.seam.jsf.ListDataModel' does not have the property 'fullName'.
| at javax.faces.component.UIOutput.getValue(UIOutput.java:176)
| at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
| at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
| at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
| at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
| at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
| at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
| at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer$6.renderContent(ScrollableDataTableBaseRenderer.java:247)
| at org.richfaces.renderkit.html.ExtendedColumnVisitor.visit(ExtendedColumnVisitor.java:31)
| at org.richfaces.renderkit.html.ColumnWalker.iterateOverColumns(ColumnWalker.java:42)
| at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer$7.process(ScrollableDataTableBaseRenderer.java:289)
| at org.richfaces.model.ScrollableTableDataModel.walk(ScrollableTableDataModel.java:129)
| at org.richfaces.model.DataModelCache.walk(DataModelCache.java:183)
| at org.ajax4jsf.component.UIDataAdaptor.walk(UIDataAdaptor.java:968)
| at org.richfaces.component.UIScrollableDataTable.walk(UIScrollableDataTable.java:329)
| at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer.renderGridBody(ScrollableDataTableBaseRenderer.java:459)
| at org.richfaces.renderkit.html.ScrollableDataTableRenderer.doEncodeEnd(ScrollableDataTableRenderer.java:394)
| at org.richfaces.renderkit.html.ScrollableDataTableRenderer.doEncodeEnd(ScrollableDataTableRenderer.java:553)
| at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
| at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer.encodeEnd(ScrollableDataTableBaseRenderer.java:746)
| at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
| at org.richfaces.component.UIScrollableDataTable.encodeEnd(UIScrollableDataTable.java:335)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
| at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
| at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
| at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
| at org.richfaces.renderkit.html.ModalPanelRenderer.doEncodeChildren(ModalPanelRenderer.java:351)
| at org.richfaces.renderkit.html.ModalPanelRenderer.doEncodeChildren(ModalPanelRenderer.java:346)
| at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
| at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
| at com.fl.nuevo.utils.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:42)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.el.PropertyNotFoundException: /viewStaff.xhtml @152,49 value="#{staff.fullName}":
| The class 'org.jboss.seam.jsf.ListDataModel' does not have the property 'fullName'.
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
| at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
| ... 74 more
If I switch from scrollableDataGrid to dataGrid, it works fine. It could be that scrollableDataGrid requires its own special DataModel implementation?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095388#4095388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095388
18Â years, 9Â months
[JBoss Messaging] - LoadBalancingFactory - JBoss Messaging 1.4
by rarondini
Hi All,
I'm try to perform some tests with ClusteredConnectionFactory. When I use RoundRobinLoadBalancingFactory, the test work fine.
So, when I try to use NoLoadBalancingLoadBalancingFactory, an INFO appear when jboss is starting. The INFO is :
| org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@13244cd on mbean jboss.messaging.connectionfactory:service=ClusteredConnectionFactory; - nested throwable: (java.lang.InstantiationException: org.jboss.jms.client.plugin.NoLoadBalancingLoadBalancingFactory).
The configuration is like this :
| <attribute name="SupportsLoadBalancing">true</attribute>
| <attribute name="LoadBalancingFactory">org.jboss.jms.client.plugin.NoLoadBalancingLoadBalancingFactory</attribute>
|
Thanks
Rogério Rondini
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095384#4095384
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095384
18Â years, 9Â months
[JBoss Portal] - Re: custom portal file name
by PeterJ
In 2.6.2, the news and weather pages are defined at jboss-portal.sar/samples/portal-news-samples.war/WEB-INF/default-object.xml and jboss-portal.sar/samples/portal-weather-samples.war/WEB-INF/default-object.xml, respectively.
Did you, by any chance, deploy the portal, and then later remove the 'samples' directory? In that case, the news and weather pages are still in the database, you will have to manually remove them using the Management Portlet. When I work on my custom portal, I usually initialize the database before I deploy it. Then I am confident that what I see reflects my configuration settings and not information retained in the database. Of course, once I go into production all future updates are done using the Management Portlet.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095380#4095380
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095380
18Â years, 9Â months
[EJB/JBoss] - Commit Option D and ctx locks
by pcarrollnf
I have a one to many relationship configured. I know that the foreign key column in my many table has to allow for NULL values according to the EJB spec. As far as I know an INSERT occurs that populates the row except for the foreign key value. Then an UPDATE occurs populating the foreign key. I also have commit-option d configured for these 2 entity beans with a cache refresh of 5 minutes. When I perform several inserts into the many table, it appears that, at times, the UPDATE to populate the foreign key does not occur leaving the foreign key value NULL. I believe it is due to the fact that the cache is refreshing at the same time the UPDATE is being attempted. I see a few Unable to passivate due to ctx lock, id=32901 warnings around the time this occurs. By reducing the cache refresh time, I can more easily reproduce the issue.
Should I be using a different commit-option? Is there a way I can catch the fact that the foreign key value is never comitted to the database? I am using JBoss 3.2.0. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095378#4095378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095378
18Â years, 9Â months