-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 8.2
-
Component/s: Layouts & Widgets, Seam / JSF UI
-
Epic Link:
-
Tags:
-
Team:AT
-
Sprint:nxAT Sprint 8.3.1
-
Story Points:0
For scaffolding features, it would be nicer to use tags than including templates for the following use cases:
1. displaying a widget label, currently like this:
<ui:include src="/widgets/incl/label_template.xhtml"> <ui:param name="label" value="#{nxu:test(empty widgetLabel, defaultLabel, widgetLabel)}" /> <ui:param name="helpLabel" value="#{widgetHelpLabel}" /> <ui:param name="translated" value="#{widget.translated}" /> <ui:param name="required" value="#{widget.required}" /> <ui:param name="labelStyleClass" value="bold" /> </ui:include>
Would be nicer to have:
<nxu:label value="#{nxu:test(empty widgetLabel, defaultLabel, widgetLabel)}" help="#{widgetHelpLabel}" translated="#{widget.translated}" required="#{widget.required}" /> </ui:include>
2. surround an element with a form, currently like this:
<ui:decorate template="/widgets/incl/form_template.xhtml"> <ui:param name="addForm" value="#{widgetControl_requireSurroundingForm}" /> <ui:param name="formId" value="#{widget.id}_form" /> <ui:param name="useAjaxForm" value="#{widgetControl_useAjaxForm}" /> <ui:param name="disableMultipartForm" value="#{widgetControl_disableMultipartForm}" /> <ui:param name="disableDoubleClickShield" value="#{widgetControl_disableDoubleClickShield}" /> <ui:define name="form_template_content"> <nxl:widget widget="#{widget}" value="#{value}" /> </ui:define> </ui:decorate>
Would be nicer to have:
<nxu:form enabled="#{widgetControl_requireSurroundingForm}" id="#{widget.id}_form" useAjax="#{widgetControl_useAjaxForm}" disableMultipart="#{widgetControl_disableMultipartForm}" disableDoubleClickShield="#{widgetControl_disableDoubleClickShield}"> <ui:define name="form_template_content"> <nxl:widget widget="#{widget}" value="#{value}" /> </ui:define> </nxu:form>
- is required by
-
NXS-3037 Merge scaffolding branch
- Resolved