Using <p:inputText> to open/close a dialog.

UI Components for JSF
Post Reply
teccc
Posts: 1
Joined: 13 Jul 2011, 10:13

14 Jul 2011, 11:07

Hi!

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}" />
This does not work. If I use only one of the events everything works fine but I hoped I could use both events at the same time.

Can anyone tell me how to open and close a dialog from an inputText on focus and blur?
JSF Mojarra implementation 2.0.3
PrimeFaces 3.0M2
Tomcat 7.0.11

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 54 guests