Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <h:commandButton id="p"
  2. value="#{msgs['SP.Pend.Button.Label']}"
  3. type="button"
  4. disabled="#{securityView.readOnlyUser or sPView.readOnly}">
  5. <rich:toolTip style="white-space:nowrap" value="Ctrl-Shft-P" />
  6. <a4j:support event="onclick"
  7. oncomplete="if ((!#{sProcessorView.autoFetchNext}) &&
  8. #{sProcessorView.nonTradList.contains('100')} &&
  9. #{spProcessorView.nonTradList.contains('111')} ) openSimplePop() ;
  10. else openModal();" />
  11. </h:commandButton>
  12.  
  13. public boolean containsValue() {
  14. //Check if the value is in the list...
  15. }
  16.  
  17. var showModal = #{bean.containsValue()};
  18. if(showModal) {
  19. openModal();
  20. } else openSimplePop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement