05-11-2017 12:26 PM
Hello everyone,
I am trying to change the display of one widget. Here is my configuration on studio:
Here is what I see when i log on to the plateform:
I would like to see on view mode, even when my field is empty, subwidgets labels.
How can I achieve that ? Is there an existing "custom properties" for this ?
Thank for your answer.
05-11-2017 01:07 PM
Hi, When there are no values to display in view mode, the widget will not show subwidget labels. You can always take example on the original xhtml template to reference a custom template changing the behaviour. Depending on your target version, you can find the original file at https://github.com/nuxeo/nuxeo/blob/release-8.10/nuxeo-jsf/nuxeo-platform-forms-layout-client/src/ma... for 8.10 for instance. Note l.59:
ui:fragment rendered="#{displaySubLabels and (isEditMode or not empty fieldOrValue)}"
I suggest that you rename the template to avoid overriding the behaviour of the widget in all cases.
Hope this helps
05-11-2017 01:07 PM
Hi, When there are no values to display in view mode, the widget will not show subwidget labels. You can always take example on the original xhtml template to reference a custom template changing the behaviour. Depending on your target version, you can find the original file at https://github.com/nuxeo/nuxeo/blob/release-8.10/nuxeo-jsf/nuxeo-platform-forms-layout-client/src/ma... for 8.10 for instance. Note l.59:
ui:fragment rendered="#{displaySubLabels and (isEditMode or not empty fieldOrValue)}"
I suggest that you rename the template to avoid overriding the behaviour of the widget in all cases.
Hope this helps
05-12-2017 03:55 AM
Thanks for your answer, I'll try that !
05-12-2017 06:02 AM
Tried it and it's working, thanks !
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.