
shared.targetSectionForCreate.inc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-common Show documentation
Show all versions of console-common Show documentation
This bundle contains common code that may be shared across plugins.
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