Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2.1
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-8803Inquiry bases logic on readonly for building inquiry or direct inquiry based on the readonly flag of the Inquiry widget, not the field it applies to
      KULRICE-5403AttributeField requires p:conditionalReadOnly="true" in order for p:readOnly="true" to work
      KULRICE-9867Popover form no longer working
      KULRICE-12288Determine and implement solution for screen readers and readOnly fields
      KULRICE-10413Wildcard Characters "*" and "?" no longer work in Rice version 2.4
      KULRICE-9979UifLayoutView 3rd example for multirow no longer works
      KULRICE-5411fieldAttributeQuery does not populate readOnly fields
      KULRICE-9197KRAD 2.2.0 Maintenance Document: Not indicating changed fields
      KULRICE-10059Setting collection field as readonly throws exception
      KULRICE-5698edit links from the agenda lookup no longer work
    • Rice Module:
      KRAD
    • Application Requirement:
      KS
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      After we upgraded to rice 2.2.0, there is no effect on setting the readonly property on input field at the table collection. This used to work in 2.2-M4. Here is our xml (just snippet). Am I missing something with 2.2 or is it a bug? For workaround, I can change this to use datafield

      <bean id="KS-Catalog-FormatOfferingSubSection" parent="Uif-TableCollectionSubSection">
      <property name="items">
      <list>
      <bean parent="Uif-InputField" p:propertyName="courseOfferingCode" p:label="COURSE OFFERING CODE" p:readOnly="true">
      <property name="control">
      <bean parent="Uif-TextControl"/>
      </property>
      </bean>
      </list>
      </bean>

        Issue Links

          Activity

          Hide
          Shannon Hess added a comment - - edited

          If the readOnly property is set on the TextControl, it works as expected and the text field cannot be edited. I'm still trying to figure out why the readOnly property is not being carried down to the control when it is at the InputField level.

          Text control is NOT read only:

          <bean parent="Uif-InputField" p:propertyName="field1" p:required="true" p:readOnly="true">
              <property name="control">
                  <bean parent="Uif-TextControl"/>
              </property>
          </bean>
          

          Text control is read only

          <bean parent="Uif-InputField" p:propertyName="field1" p:required="true">
              <property name="control">
                  <bean parent="Uif-TextControl" p:readOnly="true"/>
              </property>
          </bean>
          

          Also wanted to indicate that this is only an issue for collections

          Show
          Shannon Hess added a comment - - edited If the readOnly property is set on the TextControl, it works as expected and the text field cannot be edited. I'm still trying to figure out why the readOnly property is not being carried down to the control when it is at the InputField level. Text control is NOT read only: <bean parent= "Uif-InputField" p:propertyName= "field1" p:required= " true " p:readOnly= " true " > <property name= "control" > <bean parent= "Uif-TextControl" /> </property> </bean> Text control is read only <bean parent= "Uif-InputField" p:propertyName= "field1" p:required= " true " > <property name= "control" > <bean parent= "Uif-TextControl" p:readOnly= " true " /> </property> </bean> Also wanted to indicate that this is only an issue for collections
          Hide
          Shannon Hess added a comment -

          I tracked down the line of code causing the issue. The following was added in CollectionGroupBuilder.applyLineFieldAuthorizationAndPresentationLogic for KULRICE-8439, when I run with the else section commented out it works correctly. Still working to determine how to fix this without simply reverting this change.

          if (readOnlyLine || !canEditField) {
              lineField.setReadOnly(true);
          
              if (lineField.getPropertyExpressions().containsKey("readOnly")) {
                  lineField.getPropertyExpressions().remove("readOnly");
              }
          } //else if(lineField instanceof InputField){
              // lineField.setReadOnly(false);
          //}
          
          Show
          Shannon Hess added a comment - I tracked down the line of code causing the issue. The following was added in CollectionGroupBuilder.applyLineFieldAuthorizationAndPresentationLogic for KULRICE-8439 , when I run with the else section commented out it works correctly. Still working to determine how to fix this without simply reverting this change. if (readOnlyLine || !canEditField) { lineField.setReadOnly( true ); if (lineField.getPropertyExpressions().containsKey( "readOnly" )) { lineField.getPropertyExpressions().remove( "readOnly" ); } } // else if (lineField instanceof InputField){ // lineField.setReadOnly( false ); //}
          Hide
          Shannon Hess added a comment -

          I talked to Jerry about this, and it turns out that the fix for KULRICE-8439 needs some work. I reverted that change so the readonly flag will now work, and I'm going to re-open the other issue to fix it in a different manner.

          Show
          Shannon Hess added a comment - I talked to Jerry about this, and it turns out that the fix for KULRICE-8439 needs some work. I reverted that change so the readonly flag will now work, and I'm going to re-open the other issue to fix it in a different manner.

            People

            • Assignee:
              Shannon Hess
              Reporter:
              Larry Symms
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel