Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. AjaxLink<Object> button = new AjaxLink<Object>( "editLocationButton" ) {
  2.  
  3. private static final long serialVersionUID = 1L;
  4.  
  5. public void onClick( AjaxRequestTarget p_target ) {
  6. // do things
  7. }
  8.  
  9. /**
  10. * @see org.apache.wicket.markup.html.link.AbstractLink#isLinkEnabled()
  11. */
  12. @Override
  13. protected boolean isLinkEnabled() {
  14. return super.isLinkEnabled() && getSelectedLocation() != null;
  15. }
  16. };
  17.  
  18. <td style="width:0%">
  19. <a href="#" wicket:id="editLocationButton" class="editButton iconButton">
  20. <wicket:message key="button.edit.location"></wicket:message>
  21. </a>
  22. </td>
  23.  
  24. <td style="width:0%">
  25. <span class="editButton iconButton" id="editLocationButton7b6"><em>
  26.  
  27. </em></span>
  28. </td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement