Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h:form>
- <h:inputText id="disabledinput" styleClass="disabled"
- value="#{someBean.property}"></h:inputText>
- <h:outputScript>
- $('.disabled').attr('disabled', 'disabled');
- </h:outputScript>
- <h:commandButton action="#{someBean.action}"
- onclick="$('.disabled').removeAttr('disabled'); return true;"
- value="Submit" />
- </h:form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement