Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Dear team,
      In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.

      CurrentUserFactory where @Factory is used

      @Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
      @Scope(ScopeType.CONVERSATION)
      public class CurrentUserFactory extends UserHome {
          private static final long serialVersionUID = 1L;
      
          public static final String COMPONENT_NAME = "currentUser";
      
          @In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
          @Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
          private Integer id;
      
      	@Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
          public User getUser() {
      	return getInstance();
          }
      ...
      }
      

      SearchAction:

      @Name(MyProjectsSearchAction.COMPONENT_NAME)
      @Scope(ScopeType.CONVERSATION)
      @Restrict("#{identity.loggedIn}")
      public class MyProjectsSearchAction implements Serializable {
          private static final long serialVersionUID = 1L;
      
          public static final String COMPONENT_NAME = "myProjectsSearch";
        
          @In(value = "currentUser", required = true)
          private User currentUser;
      
         public void find() {
          ....
         }
      }
      
      

      DetailAction:

      @Name(MyProjectsDetailsAction.COMPONENT_NAME)
      @Scope(ScopeType.CONVERSATION)
      @Restrict("#{identity.loggedIn}")
      public class MyProjectsDetailsAction implements Serializable {
      
      	private static final long serialVersionUID = 1153512259556496433L;
      
      	public static final String COMPONENT_NAME = "myProjectsDetails";
      
               @Begin(join = true)
          public void showDetails() {
        ...
           }
      
      

      Best regards,
      Anna

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                superannali superanna li
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: