inputs are ignored in dialog if form declared outside

UI Components for JSF
Post Reply
User avatar
wikisky
Posts: 53
Joined: 16 Jul 2010, 17:30
Location: Oakville,ON
Contact:

01 Sep 2010, 22:00

Since recent 2.2 snapshot (I believe after jQuery ui update) input fields are ignored if form declared outside of dialog:

Code: Select all

<h:form>
<p:dialog ...>
<h:inputText .../>
...
If you put form inside of dialog it works:

Code: Select all

<p:dialog ...>
<h:form>
<h:inputText .../>
...
In first case input data from fields in dialog are simply not submitted in ajax call.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

01 Sep 2010, 23:14

Yes, I haven't decided which one to go with yet.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Sep 2010, 01:08

The behavior is restored now to be backward compatible.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Sep 2010, 02:32

jQuery UI dialog, appends dialog content to document body causing weird things like that, in PrimeFaces we changed it a little bit to keep it as it is. You've used a version that doesn't contain the change.

User avatar
wikisky
Posts: 53
Joined: 16 Jul 2010, 17:30
Location: Oakville,ON
Contact:

02 Sep 2010, 05:06

Just checked out latest code. It seems to be working now both ways.
Thank you.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests