All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shared.targetSectionForCreate.inc Maven / Gradle / Ivy

The newest version!





    #{requestScope.one} ){
            setPageSessionAttribute(key="showTargetSection",  value="#{true}");
            //when issue#12596 is fixed.  we should not preselect target.
            //Because for the edit case, it has been set previously.
            //for create case, we should leave it blank and warn user to select one.
            if (#{pageSession.setDefaultTarget}){
                gf.containedIn(list="#{pageSession.targetList}" testStr="#{pageSession.targetValue}" contain=>$attribute{selectedTargetExists});
                if (!#{requestScope.selectedTargetExists}) {
		    convertListToArray(list={}, array="#{pageSession.selectedTargets}");
                }
                if (#{selectedTargetExists}) {
                    listAdd(value="#{pageSession.targetValue}" result=>$attribute{selectedTargetsList});
                    convertListToArray(list="#{selectedTargetsList}", array="#{pageSession.selectedTargets}");
                }
            }
        }
        setPageSessionAttribute(key="useCheckBox" value="#{true}");
        setPageSessionAttribute(key="useString" value="#{false}");

        gf.convertListToOptionArray(list="#{pageSession.targetList}", optionArray="#{pageSession.availableTargets}");
    />
    
        
#include "/common/shared/commonAddRemove.inc"
        
        
    







© 2015 - 2025 Weber Informatics LLC | Privacy Policy