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?