Details
Description
Ticket description
Instead of doing this
<h:panelGroup rendered="#{!property.multiValued}"> <h:inputText disabled="#{approvalProfilesMBean.viewOnly}" rendered="#{property.type.simpleName eq 'String'}" value="#{property.value}" style="width: 100%" > <f:converter converterId="stringConverter"/> <f:validator validatorId="#{property.validatorType}"/> </h:inputText> <h:inputTextarea disabled="#{approvalProfilesMBean.viewOnly}" rendered="#{property.type.simpleName eq 'MultiLineString'}" value="#{property.value.value}" style="width: 100%" > <%-- snip %--> </h:panelGroup> <%-- snip %-->
We should build a composite component which we can reuse.
<ui:include src="#{dynamicJsfComponent.facelet}"> <ui:param name="component" value="#{dynamicJsfComponent}"/> </ui:include>
Where dynamicJsfComponent returns the correct facelet. Instead of serialising DynamicJsfComponent and base64-encode it, we should be able to convert it into JSON.
I am not sure JSF works exactly like I want it to, but I think its worth a try.
Links
http://ovaraksin.blogspot.se/2013/06/multiple-dynamic-includes-with-one-jsf.html?m=1
https://docs.oracle.com/javaee/6/tutorial/doc/giqzr.html
Attachments
Issue Links
- duplicates
-
ECA-6320 Allow validators to render dynamic values.
-
- Closed
-
- implements
-
ECA-6441 Handle ClassCastException reading ApprovalRequest data
-
- Open
-
- relates
-
ECA-6321 Implement editRsaKeyValidator.xhtml as a dynamically rendered page
-
- Closed
-
-
ECA-6322 Implement editEccKeyValidator.xhtml as a dynamically rendered page
-
- Closed
-
-
ECA-6323 Implement editBlackKeyValidator.xhtml as a dynamically rendered page
-
- Closed
-
-
ECA-6324 Implement editCaaValidator.xhtml as a dynamically rendered page
-
- Closed
-