ICEfaces
  1. ICEfaces
  2. ICE-6896

Null-value not updated in rendered view

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-2.0.0.GA
    • Fix Version/s: 2.1-Beta, 3.0, EE-2.0.0.GA_P01
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mojarra 2.1.1-b04
    • Assignee Priority:
      P2
    • Affects:
      Compatibility/Configuration
    • Workaround Exists:
      Yes
    • Workaround Description:
      I the value is set to an empty string the result is as expected. But that's no real option for us as we are already using nulls everywhere.

      Description

      Given this form:

      <h:form id="myForm">
      <h:inputText id="myInput" value="#{myBean.myValue}"/>

      <h:commandButton id="submitButton" action="#{myBean.submit}" value="Submit"/>
      </h:form>

      and this action mehod:

      public String submit() {
        myValue = null;

      return null;
      }

      the user expects the textfield to be empty after the request finished.

      This works with plain Mojarra (org.icefaces.render.auto = false) but not with ICEfaces.

      I think the problem is that TextRenderer.getEndTextToRender() doesn't call the ResponseWriter if the value is null.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24900 Fri Jun 24 21:06:37 MDT 2011 mark.collette ICE-6896 : Null-value not updated in rendered view
        Files Changed
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24899 Fri Jun 24 18:29:09 MDT 2011 mark.collette ICE-6896 : Null-value not updated in rendered view
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java

          People

          • Assignee:
            Mark Collette
            Reporter:
            Adrian Gygax
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: