This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes A popup panel form works fine... but not the first time you enter data. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "A popup panel form works fine... but not the first time you enter data." Watch "A popup panel form works fine... but not the first time you enter data." New topic
Author

A popup panel form works fine... but not the first time you enter data.

Evaristo Perez
Greenhorn

Joined: Apr 01, 2012
Posts: 4

I've got a form in a popupPanel that works in a strange way. The first time you modify a field it will immediately discard any data you entered, but if you modify again any field it works ok.

For example, you get the popupPanel showed and you want to modify the first field. You change its value and immediately after you leave (blur) the field it changes to it's original value. If you modify something afterwards i'll work fine.

What might be the cause?

If I delete the <f:ajax id="elementosEdicion" execute="@this" render="@this"> it will not delete the first data you enter but works the same way, only begins to "accept" modified data the second time something is modified.

Thanks in advance.

Evaristo Perez
Greenhorn

Joined: Apr 01, 2012
Posts: 4

I was re-rendering wrong part of the page... just added a a4jutputpanel and rendered inputs only
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: A popup panel form works fine... but not the first time you enter data.