ICEfaces
  1. ICEfaces
  2. ICE-1555

Attributes issue with ice:message

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 1.7.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Any
    • Assignee Priority:
      P2

      Description

      The value of the following attributes are not updated after change:
      - title
      - visible
      - styleClass(component binding only)
      1. buttonsAndLinks.jspx
        6 kB
        yip.ng
      2. ButtonsAndLinksBean.java
        6 kB
        yip.ng
      1. screenshot-1.jpg
        304 kB
      2. screenshot-2.jpg
        304 kB
      3. screenshot-3.jpg
        298 kB

        Activity

        Hide
        yip.ng added a comment -

        There is actually nothing wrong with the renderer. The problem, I think, is due to the values being changed in the listeners. When there are validation errors, the life cycle goes directly to render response, and the listeners are skipped. Therefore, you need to change these values in the validator instead.

        See the attached modified files for component-showcase\common-web\WEB-INF\includes\examples\standard\buttonsAndLinks.jspx and component-showcase\common-src\org\icefaces\application\showcase\view\bean\examples\component\buttonsAndLinks\ButtonsAndLinksBean.java. (Do a diff. to see the changes.)

        See screenshot-1 to screenshot-3 for the test results. (The title, visible attributes are dynamically changed through value binding; the styleClass attribute is dynamically changed through component binding.)

        Show
        yip.ng added a comment - There is actually nothing wrong with the renderer. The problem, I think, is due to the values being changed in the listeners. When there are validation errors, the life cycle goes directly to render response, and the listeners are skipped. Therefore, you need to change these values in the validator instead. See the attached modified files for component-showcase\common-web\WEB-INF\includes\examples\standard\buttonsAndLinks.jspx and component-showcase\common-src\org\icefaces\application\showcase\view\bean\examples\component\buttonsAndLinks\ButtonsAndLinksBean.java. (Do a diff. to see the changes.) See screenshot-1 to screenshot-3 for the test results. (The title, visible attributes are dynamically changed through value binding; the styleClass attribute is dynamically changed through component binding.)

          People

          • Assignee:
            yip.ng
            Reporter:
            Sam Xiao
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: