Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <p:commandButton value="Reopen" actionListener="#{searchActions.setOrderStatus(order, 'open')}" disabled="#{!searchActions.hasOrderStatus(order, 'open')}" ajax="false" />
  2.  
  3. public class Order implements IOrder
  4. {
  5. ...
  6. }
  7.  
  8.  
  9. public class SearchActions
  10. {
  11. public void setOrderStatus( IOrder order, String statusString ) throws IOException
  12. {
  13. ...
  14. }
  15.  
  16. public boolean hasOrderStatus( IOrder order, String statusString ) throws IOException
  17. {
  18. ...
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement