Bug 212197

Summary: xefgui:widget read_only mode not working
Product: z_Archived Reporter: David Bosschaert <davidb>
Component: STPAssignee: David Bosschaert <davidb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Adrian.skehill, gerald.preissler
Version: unspecifiedKeywords: usability
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Bosschaert CLA 2007-12-06 15:58:25 EST
We have a policy which we automatically populate during the service import process (following the steps in this thread). This policy should not be (or at least partially) manually modifiable after it has been populated.

We try to accomplish this using the xefgui:widget read_only element as described in the Policy Developer's Guide on page 35, but the editor seems to ignore the read_only mode, i.e. the field is still editable. Using the xsd fixed="value" attribute ensures that the input field is uneditable, but it fixes the value at the schema level, so we can not override it during the service import process.

Here is a snippet from our template:

<xs:attribute name="logicalWSDL" type="xs:string" default="foo">
  <xs:annotation>
    <xs:documentation>
      the logical WSDL file describing the service
    </xs:documentation>
    <xs:appinfo>
      <xef:displayName>logical WSDL</xef:displayName>
      <xef:docShort>
        logical WSDL file describing the service
      </xef:docShort>
      <xefgui:widget>read_only</xefgui:widget>
    </xs:appinfo>
  </xs:annotation>
</xs:attribute>
Comment 1 David Bosschaert CLA 2007-12-06 16:02:04 EST
This applies to the XEF Policy Editor
Comment 2 David Bosschaert CLA 2007-12-10 11:27:31 EST
Fixed with commit r1326