From 7d85603dccb80110b2a94232238ac558bf4b5cb8 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 11 Apr 2017 11:13:48 +0200 Subject: [PATCH] I know, I miss-use ui:fragment here but it seems to do what I want: - when "rendered" is false, don't show content of the whole tag - when "rendered" is true, show content of the whole tag So far, other tags did not work and not even with ui:define and then rendered="#{featureController.isFeatureEnaled('some_feature')#}" on ui:define. As long as there is no other tag that has the same behavior, I stick with ui:fragment. --- web/guest/user/user_register.xhtml | 8 ++++---- web/index.xhtml | 26 ++++++++++++++------------ 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/web/guest/user/user_register.xhtml b/web/guest/user/user_register.xhtml index f15aed72..17c6ad47 100644 --- a/web/guest/user/user_register.xhtml +++ b/web/guest/user/user_register.xhtml @@ -16,8 +16,8 @@ - - + +
@@ -45,13 +45,13 @@ - - + + diff --git a/web/index.xhtml b/web/index.xhtml index 07457c26..8273fa14 100644 --- a/web/index.xhtml +++ b/web/index.xhtml @@ -16,20 +16,22 @@ - -
- - - -
+ + +
+ + + +
-
- -
-
+
+ +
+ - - + + + -- 2.39.5