[ 
https://issues.apache.org/jira/browse/TOBAGO-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17884259#comment-17884259
 ] 

Henning Nöth commented on TOBAGO-2339:
--------------------------------------

This is probably, because of a client side popup. Better use a popup with AJAX.

{code:xml}<tc:button label="Open AJAX popup">
  <f:ajax execute="ajaxPopup" render="ajaxPopup :page:messages"/>
  <tc:operation name="show" for="ajaxPopup"/>
</tc:button>

<tc:popup id="ajaxPopup">
  <f:facet name="label">Popup (AJAX)</f:facet>
  <f:facet name="bar">
    <tc:link image="bi-x-lg" immediate="true">
      <f:ajax execute="ajaxPopup" render="ajaxPopup :page:messages"/>
      <tc:operation name="hide" for="ajaxPopup"/>
    </tc:link>
  </f:facet>
  <tc:panel id="ajaxPopupContent">
    <tc:messages/>
    <tc:in label="Input" value="#{popupController.popupAjax}" required="true"/>
    <tc:out label="Output" value="#{popupController.popupAjax}"/>
  </tc:panel>

  <f:facet name="footer">
    <tc:button label="Submit">
      <f:ajax execute="ajaxPopup" render="ajaxPopupContent :page:messages"/>
    </tc:button>
    <tc:button label="Submit &amp; Close">
      <f:ajax execute="ajaxPopup" render="ajaxPopup :page:messages"/>
      <tc:operation name="hide" for="ajaxPopup"/>
    </tc:button>
    <tc:button label="Cancel" immediate="true">
      <f:ajax execute="ajaxPopup" render="ajaxPopup :page:messages"/>
      <tc:operation name="hide" for="ajaxPopup"/>
    </tc:button>
  </f:facet>
</tc:popup>{code}


> Popup closes even though there are validation errors
> ----------------------------------------------------
>
>                 Key: TOBAGO-2339
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-2339
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 6.4.0
>            Reporter: Carsten Dimmek
>            Priority: Major
>
> Popup closes even though there are validation errors in the formular.
> In my opinion this is not correct or i expect at least an parameter to define 
> the behavior



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to