I have that turned on already - I have this in components.xml (as described in 
the documentation for 1.2GA).

(This is copied from my components.xml):

  |    <event type="org.jboss.seam.notLoggedIn">
  |        <action expression="#{redirect.captureCurrentView}"/>
  |    </event>
  |    <event type="org.jboss.seam.postAuthenticate">
  |        <action expression="#{redirect.returnToCapturedView}"/>
  |    </event>
  | 
I do get redirected, but the searchPattern is lost in the transition.

In pages.xml I have:

  |    <page view-id="/object-view.xhtml">
  |             <param name="oid" value="#{mockLoader.oid}"
  |            converterId="javax.faces.Long" />
  |             <restrict>#{s:hasRole('user')}</restrict>       
  | 
(same problem if I take out the ).

And "mockLoader" looks like this:

  | @Stateful
  | @Name("mockLoader")
  | public class MockLoaderAction implements Serializable, MockLoader
  | {
  |     private static final long serialVersionUID = 3773875067016207441L;
  | 
  |     @In(required = false) @Out(required = false)
  |     private InfoDigest mockInfo;
  | 
  |     @PersistenceContext(type = EXTENDED)
  |     private EntityManager em;
  | 
  |     private Long m_oid;
  | 
  |     public Long getOid()
  |     {
  |             return m_oid;
  |     }
  | 
  |     public void setOid(Long oid) throws OidNotFoundException
  |     {
  |             System.err.print("Reached MockLoader.setOid(oid=" +
  |                             ((oid == null) ? "null" : oid.toString()));
  |             
  |             m_oid = oid;
  | 
  |             // Load the object if there was a oid
  |             if(oid == null)
  |                     throw new OidNotFoundException(oid);
  |             mockInfo = em.find(MockData.class, oid);
  | 
  |             // If not found throw exception
  |             if(mockInfo == null)
  |                     throw new OidNotFoundException(oid);
  |     }
  |     @Remove @Destroy
  |     public void destroy()
  |     { }
  | }
  | 
And Local interface:

  | public interface MockLoader
  | {
  |     public void destroy();
  |     public Long getOid();
  |     public void setOid(Long oid) throws OidNotFoundException;
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031829#4031829

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031829
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to