Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14159

Autosized popup panel has wrong size after re-render

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      1) create popup with attribute autosized="true"
      2) add form with <rich:messages /> and input field(s)
      3) add command button with

      oncomplete="if (#{empty facesContext.messageList}) {#{rich:component('formName')}.hide();}"
      render="formName"
      

      4) start application, enter invalid value in popup field, press popup button
      5) check error message is displayed = size of popup form is changed -> scroll-bars are displayed. Expecting result: increase popup size on re-rendering (no scroll-bars).

      Show
      1) create popup with attribute autosized="true" 2) add form with <rich:messages /> and input field(s) 3) add command button with oncomplete= " if (#{empty facesContext.messageList}) {#{rich:component( 'formName' )}.hide();}" render= "formName" 4) start application, enter invalid value in popup field, press popup button 5) check error message is displayed = size of popup form is changed -> scroll-bars are displayed. Expecting result: increase popup size on re-rendering (no scroll-bars).
    • Affects:
      Compatibility/Configuration, User Experience
    • Estimated Difficulty:
      Low

      Description

      Autosized popup panel with <rich:messages /> has different behavior with previous versions (4.3.x).

      After user insert invalid data in popup, the error messages are displayed in <rich:messages /> section and scroll-bars are appear. In previous version of Richfaces, size of popup was changed in case when a4j:commandButton has render attribute (with form ID from this popup). "rendered" attribute of popupPanel not set up, but it default value is "true".

      In current version I need to add special refresh for this case:

      <a4j:commandButton ... oncomplete="if (#{empty facesContext.messageList}) {#{rich:component('popup')}.hide();} else {#{rich:component('popup')}.hide(); #{rich:component('popup')}.show();}" />
      

      .
      In previous version it works without "else" part of "oncomplete" Javascript code.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                vasil_lukach Vasil Lukach
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: