[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-803) Query: getLastFirstResult possible raises an exception
by Carsten H?hne (JIRA)
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
17 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-799) security documentation issues
by Stephan Bublava (JIRA)
security documentation issues
-----------------------------
Key: JBSEAM-799
URL: http://jira.jboss.com/jira/browse/JBSEAM-799
Project: JBoss Seam
Issue Type: Feature Request
Components: Documentation, Security
Affects Versions: 1.1.6.GA
Reporter: Stephan Bublava
Priority: Minor
Some minor issues I stumbled upon while reading the documentation, which is quite excellent, btw.
1) Using your container's JAAS configuration (12.2.5.1)
I believe the configuration example is wrong: "jaasConfigName" should be "jaas-config-name". In this case "authenticate-method" should not be present at all.
2) The @Restrict annotation (12.3.2.1.)
The documentation does not mention which permission check will be invoked if @Restrict is placed on the class. (Is this equivalent to adding @Restrict to each method?)
3) Creating a security rules file (12.4.3)
The security rule in this section differs from those in seamspace (no-loop, activation-group, modify(c)). I assume the last one is essential.
4) Since Seam 1.1.6 it's possible to redirect to the original page after login (JBSEAM-773). It would be great to have an example in the documentation.
--
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
17 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-837) <page login-required="true">
by Gavin King (JIRA)
<page login-required="true">
----------------------------
Key: JBSEAM-837
URL: http://jira.jboss.com/jira/browse/JBSEAM-837
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Reporter: Gavin King
Assigned To: Shane Bryzak
Fix For: 1.1.7.GA
As a simpler alternative to <restrict>#{identity.loggedIn}</restrict> + <exception class="org.jboss.seam.security.NotLoggedInException">, we should allow you to use:
<pages login-view-id="/login.xhtml">
<page view-id="/main.xhtml" login-required="true">
...
</page>
...
<pages>
Just like we have with conversation-required today. This would use special code in Page.enter(), instead of exception handling to do its work.
It would also add a message to the FacesContext (just like Manager.noConversation() does today).
--
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
17 years, 11 months