IBM Support

PI94947: UPDATE OF COMPOSITE COMPONENT WITHIN AN UI:REPEAT DOESN'T WORK

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • There are inputs nested inside a ui:repeat tag, which
    dynamically renders different panels based on our data. Inputs
    inside the ui:repeat tag don t submit any changes the user
    makes.
    
    Fixed per the following JIRA issue:
    
    https://issues.apache.org/jira/browse/MYFACES-3527
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of JSF in WebSphere Application       *
    *                  Server                                      *
    *                  versions 8.0.0.14, 8.0.0.15 and 8.5.5.13    *
    *                  as                                          *
    *                  well as users of WebSphere Liberty          *
    *                  17.0.0.3,                                   *
    *                  17.0.0.4, 18.0.0.1 with jsf-2.0 enabled.    *
    ****************************************************************
    * PROBLEM DESCRIPTION: State of composite components is not    *
    *                      saved within ui:repeat elements         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When composite component input fields are used inside ui:repeat
    elements,
    updates to those fields does not work. This means that the
    state
    of composite
    components are not saved after form submission.
    In the following example, the selectBooleanCheckbox state would
    not be saved:
    myCompositeComponent.xhtml
    <cc:interface>
    <cc:attribute name="state" type="com.ibm.ws.jsf.beans.State"/>
    </cc:interface>
    <cc:implementation>
    <h:selectBooleanCheckbox id="checkboxId" value="#
    {cc.attrs.state.state}"/>
    <h:outputText value="State: #{cc.attrs.state.state}"/>
    </cc:implementation>
    index.xhtml
    <h:form id="form" prependId="false">
    <ui:repeat id="uiRepeatId" value="#{modelBean.states}"
    var="state">
    <compositeTest:myCompositeComponent id="myCompositeComponent1"
    state="#{state}"/>
    </ui:repeat>
    <br/>
    <h:commandButton id="submitButton" value="Submit"/>
    </h:form>
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI94947

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-03-09

  • Closed date

    2018-03-28

  • Last modified date

    2018-04-26

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 850

Reference #: PI94947

Modified date: 26 April 2018