Select/Deselect Components from the Component Selection Page

Answered

Comments

1 comment

  • Avatar
    juanjo

    I believe the best solution would be to hide the component selection page and replace it with a choiceParameter

    <project>
      <allowComponentSelection>0</allowComponentSelection>
      <parameterList>
         <choiceParameter>
              <ask>1</ask>
              <default>full</default>
              <description>Installation Type</description>
              <title>Installation Type</title>
              <name>installation_type</name>
              <optionList>
                <option>
                  <value>full</value>
                  <text>Full Installation</text>
                  <description>Installs everything</description>
                </option>
                <option>
                  <value>minimal</value>
                  <text>Minimal</text>
                  <description>Installs just the core</description>
                </option>
              </optionList>
              <postShowPageActionList>
                  <componentSelection>
                     <deselect>docs,videos,extra</deselect>
                     <select>core</select>
                     <ruleList>
                        <compareText text="${installation_type}" logic="equals" value="minimal"/> 
                     </ruleList>
                  </componentSelection>
                  <componentSelection>
                     <select>docs,videos,extra,core</select>
                     <ruleList>
                        <compareText text="${installation_type}" logic="equals" value="full"/> 
                     </ruleList>
                  </componentSelection>
              </postShowPageActionList>
         </choiceParameter>
       </parameterList>
    </project>
    

Please sign in to leave a comment.