Permalink
Browse files

#349: take into account double nested form inside p:dialog

  • Loading branch information...
1 parent 82f889a commit b2b74986c707879e861b1d305b46e60fcafe982b @BalusC BalusC committed Jan 31, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/omnifaces/viewhandler/OmniViewHandler.java
@@ -214,7 +214,7 @@ public ViewHandler getWrapped() {
public void invoke(UIForm form) {
UIForm nestedParent = getClosestParent(form, UIForm.class);
- if (nestedParent != null && !Hacks.isNestedInPrimeFacesDialog(form)) {
+ if (nestedParent != null && (!Hacks.isNestedInPrimeFacesDialog(form) || Hacks.isNestedInPrimeFacesDialog(nestedParent))) {
throw new IllegalStateException(
format(ERROR_NESTED_FORM_ENCOUNTERED, form.getClientId(), nestedParent.getClientId()));
}

0 comments on commit b2b7498

Please sign in to comment.