ICEfaces
  1. ICEfaces
  2. ICE-3965

inputRichText using saveOnSubmit does not work when all text is deleted

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2 SP1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Tomcat

      Description

      I am using inputRichText as follows:

      <ice:inputRichText
        id="#{id != null ? id : idGenerator.generatedId}"
        height="#{height == null ? '100%' : height}"
        width="#{width == null ? '100%' : width}"
        toolbar="#{toolbar == null ? 'Basic': toolbar}" value="#{property}"
        language="de" skin="#{skin == null ? 'office2003': skin}"
        disabled="#{disabled != null ? disabled : false}"
        rendered="#{richText != null and richText != false ? true : false}"
        customConfigPath="css/config.js"
        saveOnSubmit="true" >
      </ice:inputRichText>

      <ui:include src="../../templates/input.jspx">
        <ui:param name="id" value="notizenRichText"></ui:param>
        <ui:param name="richText" value="true"></ui:param>
        <ui:param name="height" value="300"></ui:param>
        <ui:param name="toolbar" value="AZSuisse"></ui:param>
        <ui:param name="property" value="#{offerte.displayNotiz}"></ui:param>
        <ui:param name="disabled" value="#{offerte.offerteGuiDisabledState.offerteBeendet}"></ui:param>
      </ui:include>

      setter for the property:
      public void setDisplayNotiz(String notiz) {
        setNotiz(notiz);
      }

      With saveOnSubmit="false":
      - when deleting all text and pressing 'save' in the toolbar -> null is received by the setter

      With saveOnSubmit="true":
      - when deleting all text and a formSubmit takes place afterwards -> the last value (and not null) is received by the setter

        Activity

        Hide
        D D added a comment -

        any news ?

        Show
        D D added a comment - any news ?
        Hide
        Michael Voegele added a comment -

        I would also be interested in any reaction on this issue. Thank you!

        Show
        Michael Voegele added a comment - I would also be interested in any reaction on this issue. Thank you!
        Hide
        Adnan Durrani added a comment -

        Fixed.

        Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js
        Completed: At revision: 19057

        Show
        Adnan Durrani added a comment - Fixed. Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputrichtext\fckeditor_ext.js Completed: At revision: 19057

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Michael Voegele
          • Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: