Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <h:form>
  2. <h:inputText id="disabledinput" styleClass="disabled"
  3. value="#{someBean.property}"></h:inputText>
  4. <h:outputScript>
  5. $('.disabled').attr('disabled', 'disabled');
  6. </h:outputScript>
  7. <h:commandButton action="#{someBean.action}"
  8. onclick="$('.disabled').removeAttr('disabled'); return true;"
  9. value="Submit" />
  10. </h:form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement