Conversation picker does not now what current conversation is
-------------------------------------------------------------
Key: JBSEAM-4378
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4378
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.2.0.GA
Environment: WIndoze PC XP64 JBoss 5.1GA Richfaces (nightly build)
Reporter: Tony Herstell
Priority: Minor
using Seam JPAIdentityStore for a login page with configured entities for User and Role.
URL:
https://localhost/site/pages/user/login.seam?cid=372
Markup:
<h:column>
<f:facet name="header">
<h:outputText value="#{messages.template_workspace}" />
</f:facet>
<h:commandLink action="#{entry.select}"
value="#{entry.description}" rendered="#{!entry.current}"/>
<h:outputText value="[current]" rendered="#{entry.current}"
/>
<h:outputText value="#{entry.id}" />
<h:outputText value="#{entry.current}" />
</h:column>
What is shown on page:
Workspace Activity Action
Logging in of new User372false 10:37 AM - 10:37 AM
Problem is why conversation 372 is not shown as true when this shows I am in a
"conversation".
components.xml
<?xml version="1.0" encoding="UTF-8"?>
<components
xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
xmlns:security="http://jboss.com/products/seam/security"
xmlns:transaction="http://jboss.com/products/seam/transaction"
xmlns:persistence="http://jboss.com/products/seam/persistence"
xmlns:mail="http://jboss.com/products/seam/mail"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:drools="http://jboss.com/products/seam/drools"
xmlns:international="http://jboss.com/products/seam/international"
xsi:schemaLocation="http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-2.1.xsd
http://jboss.com/products/seam/transaction
http://jboss.com/products/seam/transaction-2.1.xsd
http://jboss.com/products/seam/security
http://jboss.com/products/seam/security-2.1.xsd
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.1.xsd
http://jboss.com/products/seam/persistence
http://jboss.com/products/seam/persistence-2.1.xsd
http://jboss.com/products/seam/mail
http://jboss.com/products/seam/mail-2.1.xsd">
<core:init jndi-pattern="Risingstars/#{ejbName}/local"
debug="false" />
<core:manager conversation-timeout="360000"
concurrent-request-timeout="500"
conversation-id-parameter="cid" />
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
persistence-unit-jndi-name="java:/risingstarsEntityManagerFactories"/>
<component class="org.jboss.seam.web.MultipartFilter">
<property name="createTempFiles">false</property>
<property name="maxRequestSize">500000</property>
</component>
<!-- Utility bean called "basePath"that allows the pages to reference the
basePath for resources
Usage: <link rel="stylesheet" type="text/css"
href="#{basePath}/xmlhttp/css/xp/xp.css" />
-->
<factory name="basePath"
value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/"
/>
<international:locale-config default-locale="en"
supported-locales="en_GB de"/>
<!-- Remember the locale selected -->
<international:locale-selector cookie-enabled="true"/>
<security:rule-based-permission-resolver
security-rules="#{securityRules}"/>
<!--<security:jpa-permission-store
user-permission-class="nz.co.softwarefactory.risingstars.AccountPermission"/>
-->
<security:jpa-identity-store
user-class="nz.co.softwarefactory.risingstars.model.User"
role-class="nz.co.softwarefactory.risingstars.model.Role"/>
<!--<drools:rule-base name="securityRules">
<drools:rule-files>
<value>/META-INF/security-rules.drl</value>
</drools:rule-files>
</drools:rule-base>-->
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
</components>
pages.xml
<?xml version="1.0" encoding="UTF-8"?>
<pages
xmlns="http://jboss.com/products/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/pages
http://jboss.com/products/seam/pages-2.1.xsd"
no-conversation-view-id="/home.xhtml"
login-view-id="/pages/user/login.xhtml">
<page view-id="*" scheme="http">
<navigation from-action="#{identity.logout}">
<redirect view-id="/home.xhtml" />
</navigation>
</page>
<page view-id="/home.xhtml" login-required="false">
<description>Home Page</description>
</page>
<page view-id="/pages/user/login.xhtml" login-required="false"
scheme="https">
<description>Logging in of new User</description>
</page>
<exception class="org.jboss.seam.security.NotLoggedInException">
<redirect view-id="/home.xhtml">
<message severity="ERROR">
#{messages.security_permission}
</message>
</redirect>
</exception>
<exception class="org.jboss.seam.security.AuthorizationException">
<end-conversation/>
<redirect view-id="/home.xhtml">
<message severity="ERROR">
#{messages.security_not_logged_in}
</message>
</redirect>
</exception>
<exception class="javax.faces.application.ViewExpiredException">
<end-conversation/>
<redirect view-id="/home.xhtml">
<message severity="INFO">
#{messages.session_timeout}
</message>
</redirect>
</exception>
<exception>
<end-conversation/>
<redirect view-id="/home.xhtml">
<message severity="WARN">Unexpected Error
#{org.jboss.seam.handledException.message}</message>
</redirect>
</exception>
</pages>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira