3 Replies Latest reply on Oct 5, 2009 4:55 PM by gus888

    DataModel with Event Scope

    jjlang

      This is the code:


      @Scope(ScopeType.EVENT)
      public class GMAuditAction {
           
           
           @DataModel private List<GMApprovalBean> generalAuditList = new ArrayList<GMApprovalBean>();
           
           @DataModelSelection
           @Out(required=false, value="generalAudit")
           private GMApprovalBean generalAudit;
      
              public void generalAuditSelected() {
           }


      and the page:



      <s:link endered="#{s:hasRole('GMApproval')}" value="#{messages['page.button.approvalInit']}"
                                                             action="#{gmAudit.generalAuditSelected}"
                                                             view="/gmaudititem.xhtml" />



      The problem is when i click the link and redirect to next page i can't get the value from the event contex. But when i change the scope type to session i can get it. I don't know why this happens, need your help, thanks.