<p:fieldset styleClass="weightTextBox">
<p:selectOneMenu id="detectionSelector" value="#{ngs.detectionMode}">
<f:selectItem itemValue="SYBR" itemLabel="SYBR" />
<f:selectItem itemValue="NONE" itemLabel="None" />
<f:selectItem itemValue="SYBR_GREEN" itemLabel="Sequencing" />
<f:selectItem itemValue="PROBE" itemLabel="Probe" />
<p:ajax event="change" update="@form" render="@form"/>
</p:selectOneMenu>
</p:fieldset>
I do have multiple select items while the three values NONE, SYBR, SYBR_GREEN have same usage. what im trying to do is
<ui:fragment rendered="#{ngs.detectionMode ne 'SYBR_GREEN' or ngs.detectionMode ne 'NONE' or ngs.detectionMode ne 'SYBR'}">
While this way is working but i need it for all the 3 options.
<ui:fragment rendered="#{ngs.detectionMode ne 'SYBR_GREEN'}">
I tried multiple ways but none worked.
<ui:fragment rendered="#{(ngs.detectionMode ne 'SYBR_GREEN') or (ngs.detectionMode ne 'NONE') or (ngs.detectionMode ne 'SYBR')}">
<ui:fragment rendered="#{ngs.detectionMode ne 'SYBR_GREEN' or 'NONE' or 'SYBR'}">
I suppose you are looking for criteria where
ui:fragmentwill be rendered only when 'PROBE' option is selected.In that case, you need to define exclusive conditions (AND) and not inclusive conditions (OR) like in your failed attempts.
So, for example, instead of
you should use
Also notice that
p:ajaxcomponent does not haverenderattribute.