Bug 212197 - xefgui:widget read_only mode not working
Summary: xefgui:widget read_only mode not working
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: STP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Bosschaert CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2007-12-06 15:58 EST by David Bosschaert CLA
Modified: 2012-09-21 14:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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