Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h:commandButton id="p"
- value="#{msgs['SP.Pend.Button.Label']}"
- type="button"
- disabled="#{securityView.readOnlyUser or sPView.readOnly}">
- <rich:toolTip style="white-space:nowrap" value="Ctrl-Shft-P" />
- <a4j:support event="onclick"
- oncomplete="if ((!#{sProcessorView.autoFetchNext}) &&
- #{sProcessorView.nonTradList.contains('100')} &&
- #{spProcessorView.nonTradList.contains('111')} ) openSimplePop() ;
- else openModal();" />
- </h:commandButton>
- public boolean containsValue() {
- //Check if the value is in the list...
- }
- var showModal = #{bean.containsValue()};
- if(showModal) {
- openModal();
- } else openSimplePop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement