ICEfaces
  1. ICEfaces
  2. ICE-2898

<ice:inputRichText /> does not participate in form submission like <ice:inputTextArea /> does

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7RC1
    • Fix Version/s: 1.7.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Liferay 4.4.2 + Tomcat 6.0.16 bundle + JSF 1.1 + ICEfaces 1.7RC1

      Description

      I've been working with the <ice:inputRichText /> component and it seems like the only way to get the HTML contents (value) of the component into the server-side bean is to click the "Save" icon. This is counter-intuitive to the way that the rest of the ICEfaces input components work, such as the <ice:inputTextArea /> component.

      In a typical web form, you expect to type-in values into fields, and hit a SUBMIT button at the bottom of the page. When I do this with an <ice:inputRichText /> component, the value is not submitted to the bean. Additionally, it does not pass its value in an "onblur" type of mechanism with ICEfaces partial submit.

      Although the attached file is a portlet designed for use within Liferay, I suspect that this is a problem in the webapp world as well.

      I guess what I'm saying is that from a usability perspective, we just can't expect the end-user to know that he has to click on the "Save" icon to partial-submit his rich text before clicking on the SUBMIT button at the bottom of the page.

      To reproduce this scenario:

      1. Download and Install the Liferay 4.4.2 + Tomcat 6.0.16 bundle
      2. Run the bundle, which will create a $HOME/liferay/deploy folder
      3. Download the sample-icefaces-rich-text-portlet.war attached to this ticket and copy to $HOME/liferay/deploy
      5. Start IE7
      6. Login as test@liferay.com with password test
      7. Position the mouse over the "Welcome" dock in the upper right hand corner
      8. Navigate to "My Places > My Community > Private Pages"
      9. Add a page named "Rich Text"
      10. Under the "Add Content" menu, expand the "Samples" category
      11. Add the "Sample ICEfaces Rich Text" portlet
      12. Monitor the Tomcat log
      13. Type in a name in the "name" field and press TAB on the keyboard to cause an ONBLUR -- see that the setBiography() setter gets called via partial submit (since ICEfaces submits the whole form. Note that the default value of "I was born in 1902..." is passed to the setter.
      14. Change the year in the rich text component from 1902 to 2002 and press TAB on the keyboard -- notice that the cursor DOES NOT LEAVE the rich text component as it should. What it should do, is cause an ONBLUR event, invoke the ICEfaces partial submit mechanism, and then send input focus to the SUBMIT button.
      15. Click on the SUBMIT button -- check the Tomcat log, and note that the new year value of "2002" is not passed to the setter -- instead, "1902" is passed.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #16739 Wed May 28 14:51:26 MDT 2008 adnan.durrani Fix for ICE-2898 (<ice:inputRichText /> does not participate in form submission like <ice:inputTextArea /> does)
        new attribute added saveOnSubmit
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/component/src/com/icesoft/faces/component/inputrichtext/InputRichTextRenderer.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-inputRichText-props.xml
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/component/src/com/icesoft/faces/component/inputrichtext/fckeditor_ext.js
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/component/src/com/icesoft/faces/component/inputrichtext/InputRichText.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #16738 Wed May 28 14:49:46 MDT 2008 adnan.durrani Fix for ICE-2898 (<ice:inputRichText /> does not participate in form submission like <ice:inputTextArea /> does)
        new attribute added saveOnSubmit
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputrichtext/InputRichText.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputrichtext/InputRichTextRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-inputRichText-props.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputrichtext/fckeditor_ext.js

          People

          • Assignee:
            Unassigned
            Reporter:
            Neil Griffin
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: