Hello,
In a wizard step I have a model with an entity property "job" (see below).
When I define this property with an attribute "writabilityGates", everything works as expected.
But when I replace "writabilityGates" by "readabilityGates", then the property "job" is always readable and writable, whatever the state of the gates.
Any idea?
Pierre
=============================
<bean
id="getOtherDataForContractPeriodWizardStep"
parent="wizardStep"
>
<property name="onEnterAction">
<bean class="org.popsuite.hr.backend.action.CheckContractPeriodTypeAction">
<property name="descriptors">
<list>
<ref bean="WorkPeriod"/>
</list>
</property>
</bean>
</property>
<property name="viewDescriptor">
<bean
parent="compView">
<property name="modelDescriptor">
<bean parent="dateIntervalComponent">
<property name="propertyDescriptors" >
<list merge="true">
<bean parent="booleanType"
p:name="isWorkPeriod" />
<bean parent="refType"
p:referencedDescriptor-ref="Job"
>
<property name="name">
<util:constant static-field="org.popsuite.hr.backend.action.GetJobFromContextActionHelper.JOB"/>
</property>
<property name="writabilityGates">
<list>
<bean class="org.jspresso.framework.binding.model.BooleanPropertyModelGate"
p:accessorFactory-ref="accessorFactory"
p:propertyName="isWorkPeriod" />
</list>
</property>
</bean>
</list>
</property>
</bean>
</property>
</bean>
</property>
</bean>
