[
https://jira.nuxeo.com/browse/NXP-8010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anahide Tchertchian resolved NXP-8010.
--------------------------------------
Resolution: Fixed
http://hg.nuxeo.org/nuxeo/nuxeo-services/rev/9752f3e2d4dc
http://hg.nuxeo.org/nuxeo/nuxeo-jsf/rev/7777085601eb
> Fix override of property for a specific widgetMode when already defined for
> widgetMode="any"
> --------------------------------------------------------------------------------------------
>
> Key: NXP-8010
> URL: https://jira.nuxeo.com/browse/NXP-8010
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Layouts / Widgets
> Affects Versions: 5.4.2
> Reporter: Antoine Taillefer
> Assignee: Anahide Tchertchian
> Fix For: 5.5
>
>
> The following code does not work, tested on
> nuxeo-dm-5.5-I20111104_1115-tomcat.
> Indeed, if the widget mode is "view", then the effective value for the "mode"
> property is "edit", and not "view" as we could expect it.
> <widget name="carac_allergenes" type="layout">
> ...
> <properties widgetMode="any">
> <property name="name">carac_allergenes</property>
> <property name="mode">edit</property>
> </properties>
> <properties widgetMode="view">
> <property name="mode">view</property>
> </properties>
> </widget>
> As a workaround, the following code works :
> <widget name="carac_allergenes" type="layout">
> ...
> <properties widgetMode="any">
> <property name="name">carac_allergenes</property>
> </properties>
> <properties widgetMode="view">
> <property name="mode">view</property>
> </properties>
> <properties widgetMode="edit">
> <property name="mode">edit</property>
> </properties>
> </widget>
> Thanks.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets