[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-803) Query: getLastFirstResult possible raises an exception

Carsten H?hne (JIRA) jira-events at lists.jboss.org
Fri Feb 9 06:21:30 EST 2007


Query: getLastFirstResult possible raises an exception
------------------------------------------------------

                 Key: JBSEAM-803
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-803
             Project: JBoss Seam
          Issue Type: Bug
          Components: Framework
    Affects Versions: 1.1.6.GA
            Reporter: Carsten H?hne


I do have implemented the pagination control (Chapter 10.3 from the docu.
This peace of code does not function:
<s:link view="/listUser.xhtml" rendered="#{myUserList.nextExists}" value=" last ">
     <f:param name="firstResult" value="#{myUserList.lastFirstResult}"/>
 </s:link>
When rendering the page an exception is thrown:
2:13:28,734 DEBUG org.jboss.seam.core.Events: Processing event:org.jboss.seam.postSetVariable.myUserList
12:13:28,750 DEBUG org.jboss.util.NestedThrowable: org.jboss.util.NestedThrowable.parentTraceEnabled=true
12:13:28,750 DEBUG org.jboss.util.NestedThrowable: org.jboss.util.NestedThrowable.nestedTraceEnabled=false
12:13:28,750 DEBUG org.jboss.util.NestedThrowable: org.jboss.util.NestedThrowable.detectDuplicateNesting=true
12:13:28,750 ERROR org.hibernate.util.JDBCExceptionReporter: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1171019559906/10, BranchQual=null:1171019559906, localId=0:10]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1171019559906/10, BranchQual=null:1171019559906, localId=0:10])
09.02.2007 12:13:28 com.sun.facelets.FaceletViewHandler handleRenderException
SCHWERWIEGEND: Error Rendering View[/listUser.xhtml]
javax.faces.el.EvaluationException: /listUser.xhtml @67,73 value="#{myUserList.lastFirstResult}": Exception getting value of property lastFirstResult of base of type : org.jboss.seam.framework.HibernateEntityQuery$$EnhancerByCGLIB$$9d3287a
	at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
	at javax.faces.component.UIParameter.getValue(UIParameter.java:68)
	at org.jboss.seam.ui.HtmlLink.getParameterString(HtmlLink.java:208)
	at org.jboss.seam.ui.HtmlLink.encodeBegin(HtmlLink.java:115)
	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)

After removing this piece of code the pagination works for first,last and next.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list