0 Replies Latest reply on Sep 21, 2009 8:22 PM by nepoez.nepoez.gmail.com

    Outjection not working for some variables

    nepoez.nepoez.gmail.com

      Hi all,


      I'm calling an action method of a Conversation Scoped Session Bean bi my XHTML's EL like


      #{actionBean.find}





      and it calls:
           


        @In(required=false)
              @Out(required=false)
              private List<Section> sections;
      
              @In(required=false)
              @Out(required=false)
              private List<Section> selectedSections;
      
              @Override
              public void find() throws Exception {
                      if( selectedChapter!= null ){
                              sections = selectedChapter.getSections();
                              selectedSections = new ArrayList<Section>();
                              selectedSections.add(sections.get(0));
                      }
                      translations = new ArrayList<Translation>();
                      for (Section section : selectedSections) {
                              for (Translation translation : section.getTranslations()) {
                                      if(!translations.contains(translation)){
                                              translations.add(translation);
                                      }
                              }
                      }





      For some reason, the variable sections gets outjected properly, but the selectedSections does not!  Why is that?