Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-10387

Expressions not getting evaluated on property replacement substitutions

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • Application Requirement:
      KC
    • Sprint:
      2.4.0-m3 KRAD UXI Sprint 4, 2.4.0-m4 KRAD UXI Sprint 2
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      When using property replacers, if the replacement is a configurable, the expressions are not currently getting evaluated

      Setup an example in Labs so a regression test can be written

        Attachments

          Issue Links

            Activity

            Hide
            jcovey Jeff Covey (Inactive) added a comment -

            Jeff and Jerry,

            I sent this to Jeff via Skype already, but to confirm I believe it was similar to this. And currently doing this causes a stack trace with the following message.

            Exception evaluating expression: proposalTypeCode != '1'

            I'm not sure this is what was wrong as I never committed the code and its been lost to time now, but this is what I remember of the problem. If this doesn't work I suppose close and if I come across it again I can reopen.

            Doug

            <bean parent="PropDev-SponsorField" p:propertyName="primeSponsorCode" p:instructionalMessage.messageText="@

            {document.developmentProposal.primeSponsor?.sponsorName?:'&nbsp;'}

            ">
            <property name="propertyReplacers"><list>
            <bean parent="Uif-ConditionalBeanPropertyReplacer" p:propertyName="disabled" p:condition="specialReviewHelper.IsIrbProtocolLinkingEnabled and specialReviewHelper.IsIacucProtocolLinkingEnabled">
            <property name="replacement" value="@

            {#fp.proposalTypeCode != '1'}

            ">
            </property>
            </bean>
            </list></property>
            </bean>

            Show
            jcovey Jeff Covey (Inactive) added a comment - Jeff and Jerry, I sent this to Jeff via Skype already, but to confirm I believe it was similar to this. And currently doing this causes a stack trace with the following message. Exception evaluating expression: proposalTypeCode != '1' I'm not sure this is what was wrong as I never committed the code and its been lost to time now, but this is what I remember of the problem. If this doesn't work I suppose close and if I come across it again I can reopen. Doug <bean parent="PropDev-SponsorField" p:propertyName="primeSponsorCode" p:instructionalMessage.messageText="@ {document.developmentProposal.primeSponsor?.sponsorName?:'&nbsp;'} "> <property name="propertyReplacers"><list> <bean parent="Uif-ConditionalBeanPropertyReplacer" p:propertyName="disabled" p:condition="specialReviewHelper.IsIrbProtocolLinkingEnabled and specialReviewHelper.IsIacucProtocolLinkingEnabled"> <property name="replacement" value="@ {#fp.proposalTypeCode != '1'} "> </property> </bean> </list></property> </bean>
            Hide
            jcovey Jeff Covey (Inactive) added a comment -

            I built the following test case and everything seems to be working as expected.

            <bean parent="Uif-InputField" p:label="Test" p:propertyName="inputField1">
            <property name="control">
            <bean parent="Uif-TextControl" p:size="5"/>
            </property>
            <property name="propertyReplacers">
            <list>
            <bean parent="Uif-ConditionalBeanPropertyReplacer" p:propertyName="label"
            p:condition="@

            {inputField2 eq null}

            ">
            <property name="replacement" value="@

            {#fp.inputField1 != '1'}

            ">
            </property>
            </bean>
            </list>
            </property>
            </bean>

            Show
            jcovey Jeff Covey (Inactive) added a comment - I built the following test case and everything seems to be working as expected. <bean parent="Uif-InputField" p:label="Test" p:propertyName="inputField1"> <property name="control"> <bean parent="Uif-TextControl" p:size="5"/> </property> <property name="propertyReplacers"> <list> <bean parent="Uif-ConditionalBeanPropertyReplacer" p:propertyName="label" p:condition="@ {inputField2 eq null} "> <property name="replacement" value="@ {#fp.inputField1 != '1'} "> </property> </bean> </list> </property> </bean>

              People

              • Assignee:
                jcovey Jeff Covey (Inactive)
                Reporter:
                jkneal Jerry Neal (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified