Bug: lazyDataModel dataTable and h:commandLink

UI Components for JSF
Post Reply
User avatar
mndot_lance
Posts: 137
Joined: 15 Oct 2009, 21:53

12 Feb 2010, 02:06

PrimeFaces version: 1.0.0.RC
JSF implementation name/version: MyFaces 1.2.8 on facelets 1.1.11
Server name/version: JBOSS 4.0.5.GA

Problem:
If a p:dataTable is using a lazy="true" and its value attribute points to a method returning a LazyDataModel , then any h:commandLink within the p:dataTable will be broken. They will still render, but not function properly when clicked.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

14 Feb 2010, 17:20

This is not a bug actually, known limitations of lazy loading which we'll be working on to fix soon.

rajsharan
Posts: 7
Joined: 09 Feb 2012, 17:34

15 Feb 2012, 23:25

Hi, do you have any update on this? We are using version 3.1 and still have issues on click of p:commandLink inside p:dataTable with LazyDataModel. The problem is, it is looking for an instance of the managedbean which it cant find. Like:

javax.el.MethodNotFoundException: Method not found: com.vzw.cms.webui.actions.MyAction@1b0f9af.onRowSelect()
at org.apache.el.util.ReflectionUtil.getMethod(ReflectionUtil.java:138)
at org.apache.el.parser.AstValue.invoke(AstValue.java:194)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43)
at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56)
at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:153)

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

16 Feb 2012, 00:31

Share your bean and xhtml, and use Code button to include your xhtml/bean code in code tags.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests