cancel
Showing results for 
Search instead for 
Did you mean: 

show-in-edit-mode='false' takes effect ??

xietengfei
Champ in-the-making
Champ in-the-making
Smiley Happy code as  follow.but  it does not work
<config evaluator="node-type" condition="hxoa:officeaudit" >
      <property-sheet>
        <show-property name="hxoa:draft_Title" />
        <show-property name="hxoa:draft_Writeout" rendered="true" mode="view"/>
        <show-property name="hxoa:draft_Reviewer" rendered="true" mode="view"/>
        <show-property name="hxoa:draft_OfficeReviwer" rendered="true" mode="view"/>
        <show-property name="hxoa:draft_MeetReviewer" rendered="false" mode="view"/>
        <show-property name="hxoa:draft_Check" mode="view"/>
        <show-property name="hxoa:draft_Topic"  mode="view"/>
        <show-property name="hxoa:draft_Mainsend" read-only="true"/>
        <show-property name="hxoa:draft_Copysend" read-only="true"/>
        <show-property name="hxoa:draft_SendNo" mode="view"/>
        <show-property name="hxoa:draft_Sendcount" mode="view"/>
        <show-property name="hxoa:draft_Senddate" show-in-view-mode="true"/>
        <show-property name="hxoa:draft_Instancy" show-in-view-mode="true"/>
        <show-property name="hxoa:draft_Secret" show-in-view-mode="true"/>
        <show-association name="hxoa:corpleader"/>
        <show-property name="hxoa:officeauditcontent" component-generator="TextAreaGenerator" />
        <show-property name="hxoa:officeauditcontentout" show-in-edit-mode="false" show-in-view-mode="false"/>
        <show-property name="hxoa:leaderpreauditcontentout" show-in-edit-mode="false" show-in-view-mode="false"/>
        <show-property name="hxoa:jointsignaturecontent" show-in-edit-mode="false" show-in-view-mode="false"/>
        <show-property name="hxoa:leadersignoutcontentout" show-in-edit-mode="false" show-in-view-mode="false"/>
      </property-sheet>
   </config>
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
If you have show-in-edit-mode="false" and show-in-view-mode="false" then the property will never appear so you may as well remove those lines completely from the config, this should have the same effect.

Also show-in-view-mode="true" is the defualt so you don't necessarily need that attribute.

The mode="view" attribute is not valid on the property sheet config it's used by the property sheet JSF tag.

Have you included the <rSmiley TongueropertySheetGrid> on a custom page? If so and you haven't used externalConfig="true" that will just inform the property sheet component to display all properties, the config file will be ignored so that may explain why things aren't working as you expected.

xietengfei
Champ in-the-making
Champ in-the-making
thanks ..

xietengfei
Champ in-the-making
Champ in-the-making
thands  gavinc
<config evaluator="node-type" condition="hxoa:corpsummaryofficepass" replace="true">
      <property-sheet>
        <show-property name="hxoa:draft_Title" />
        <show-property name="hxoa:draft_Writeout" read-only="true"/>
        <show-property name="hxoa:draft_Reviewer" read-only="true"/>
        <show-property name="hxoa:draft_OfficeReviwer" read-only="true"/>
        <show-property name="hxoa:draft_MeetReviewer" read-only="true"/>
        <show-property name="hxoa:draft_Check"/>
        <show-property name="hxoa:draft_Topic" />
        <show-property name="hxoa:draft_Mainsend" />
        <show-property name="hxoa:draft_Copysend" />
        <show-property name="hxoa:draft_SendNo" />
        <show-property name="hxoa:draft_Sendcount" />
        <show-property name="hxoa:draft_Senddate" />
        <show-property name="hxoa:draft_Instancy" />
        <show-property name="hxoa:draft_Secret" />
        <show-association name="hxoa:corpaccepthandlers" />
        <show-association name="hxoa:corpacceptpassers" />
      </property-sheet>
   </config>

jsp pages
<r:propertySheetGrid id="task-props" value="#{DialogManager.bean.taskNode}"
var="taskProps" columns="2" externalConfig="true"  />


in some workflow  step ,i want to set some InputText  readonly ,But  it look so  like  ,and  it is difficulty to tell from them , It is  some way to make them more difference