I wanted to create a <p:inputText> element that opens a dialog on-focus and closes it on-blur.
I tried this:
Code: Select all
<p:inputText id="inputText"
required="true"
requiredMessage="message"
onfocus="dlg.show();"
onblur="dlg.hide();"
value="#{backingBean.value}" />
Can anyone tell me how to open and close a dialog from an inputText on focus and blur?