ICEfaces
  1. ICEfaces
  2. ICE-5913

ICEfaces 2 Compat Components not working with std JSF 2 <h:form> tag

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2.0 w/ JSF 2.0.3, Compat. Comp. Showcase
    • Affects:
      Compatibility/Configuration

      Description

      Using the Compat Component Showcase sample app, checked all .xhtml files under folders and sub-folders of component-showcase\web\WEB-INF\includes. Only three files have ice:form presenting. None of the ice:form has the "partialSubmit=true" attribute defined. Those three files are:

      includes\templates\page-template.xhtml
      includes\content\navigation.xhtml
      includes\content\languageThemeControl.xhtml

      Replaced the ice:form with h:form in the files, and tested compat showcase. Except for the top level 4 menus (Extended Components, Custom Components, Layout Panels, and Table), none of the demo links in the navigation tree is clickable.

      Tested on Glimmer revision 21939 using Tomcat 6 and FF3.6

        Activity

        Hide
        Mircea Toma added a comment -

        Introduced renderer that exteds h:form renderer to render the hidden input fields required by some ice:* components. Introduced also system event listener that changes the h:form renderer to the overriding render.

        Show
        Mircea Toma added a comment - Introduced renderer that exteds h:form renderer to render the hidden input fields required by some ice:* components. Introduced also system event listener that changes the h:form renderer to the overriding render.
        Hide
        Mircea Toma added a comment -

        Introduce FormEndRendering utility to allow rendering of markup right before 'form' end tag is rendered. Use utility to render the hidden input fields required by some ice:* components.

        Show
        Mircea Toma added a comment - Introduce FormEndRendering utility to allow rendering of markup right before 'form' end tag is rendered. Use utility to render the hidden input fields required by some ice:* components.
        Hide
        Ted Goddard added a comment -

        Modified DOMRenderKit so that FormBoost is applied to all requests for a Form Renderer.

        It may be necessary to add an ICEfaces View check around deltaSubmit rendering code.

        Show
        Ted Goddard added a comment - Modified DOMRenderKit so that FormBoost is applied to all requests for a Form Renderer. It may be necessary to add an ICEfaces View check around deltaSubmit rendering code.
        Hide
        Mircea Toma added a comment -

        Turn on deltaSumit functionality in the client only when the view is ICEfaces enabled.

        Show
        Mircea Toma added a comment - Turn on deltaSumit functionality in the client only when the view is ICEfaces enabled.
        Hide
        Mandeep Hayher added a comment -

        Icefaces2 revision# 22161
        Server: Tomcat6
        Browser:FF3.6, IE8 & Opera10.60

        Problems common on all browser:
        1)Drag & Drop not working
        2)Popup Panel: Draggable popup can be dragged only once
        AutoCenter is not working

        Problem on FF3.6 only:
        1)RichText: application tries to reload the page when user tries to save text in RichText.

        Problem on IE8 only:
        1)''Server Internal Error' is seen when trying to use Buttons and Links
        Also following is displayed on the webpage:
        viewId:/showcase.jsf - View /showcase.jsf could not be restored.
        class javax.faces.application.ViewExpiredException

        Show
        Mandeep Hayher added a comment - Icefaces2 revision# 22161 Server: Tomcat6 Browser:FF3.6, IE8 & Opera10.60 Problems common on all browser: 1)Drag & Drop not working 2)Popup Panel: Draggable popup can be dragged only once AutoCenter is not working Problem on FF3.6 only: 1)RichText: application tries to reload the page when user tries to save text in RichText. Problem on IE8 only: 1)''Server Internal Error' is seen when trying to use Buttons and Links Also following is displayed on the webpage: viewId:/showcase.jsf - View /showcase.jsf could not be restored. class javax.faces.application.ViewExpiredException
        Hide
        Mircea Toma added a comment -

        Render icefacesCssUpdates input hidden field using a FormEndRenderer since DnD and popup panel rely on it.

        Show
        Mircea Toma added a comment - Render icefacesCssUpdates input hidden field using a FormEndRenderer since DnD and popup panel rely on it.
        Hide
        Mircea Toma added a comment - - edited

        Check for the existence of Ice.FCKEditorUtility variable in the evaluated sent by InputRichText renderer. When InputRichText is used for the first time Ice.FCKEditorUtility is not yet loaded causing a JS error that stops onAfterUpdate listeners from being invoked. In turn ViewState hidden field is not written thus the following submit will trigger a full page update/reload.

        Show
        Mircea Toma added a comment - - edited Check for the existence of Ice.FCKEditorUtility variable in the evaluated sent by InputRichText renderer. When InputRichText is used for the first time Ice.FCKEditorUtility is not yet loaded causing a JS error that stops onAfterUpdate listeners from being invoked. In turn ViewState hidden field is not written thus the following submit will trigger a full page update/reload.
        Hide
        Mircea Toma added a comment -

        The IE8 issue can be replicated only when using the 'Reset' button in 'Button and Links' panel. The cause of the exception on the server seems to be the missing value of 'javax.faces.ViewState' parameter. The 'javax.faces.ViewState' field is added dynamically to the updated form without defining a defaultValue attribute for it. When the form is reset the value of 'javax.faces.ViewState' input element is set to its default value, the empty string, which will trigger the exception when the form is eventually submitted.

        The applied fix sets also a 'defaultValue' for the 'javax.faces.ViewState' input element so that a form reset will reassign the same value (the view state key) to the input element.

        Show
        Mircea Toma added a comment - The IE8 issue can be replicated only when using the 'Reset' button in 'Button and Links' panel. The cause of the exception on the server seems to be the missing value of 'javax.faces.ViewState' parameter. The 'javax.faces.ViewState' field is added dynamically to the updated form without defining a defaultValue attribute for it. When the form is reset the value of 'javax.faces.ViewState' input element is set to its default value, the empty string, which will trigger the exception when the form is eventually submitted. The applied fix sets also a 'defaultValue' for the 'javax.faces.ViewState' input element so that a form reset will reassign the same value (the view state key) to the input element.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: