From 1ee2583bfbf47347c4755302b36da447c128d4af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 6 Aug 2016 10:15:05 +0200 Subject: [PATCH] Please cherry-pick: - Well, ui:fragment is according to my trainer not right. What I want here is a navigation to edit/delete/lock/unlock pages depending on the user's account status. - If the account status is UNCONFIRMED, currently only show edit and delete - If it is CONFIRMED, add a link to "lock" page. - If it is LOCKED, add a link to "unlock" page. - Currently I do this with ui:fragment because it seems to be the only JSF tag that is NOT rendering it's body when the rendered attribute resolves to false. - If you can find a drop-in replacement, please notify me at roland[AT]mxchange[DOT]org - And please keep in mind that c:if or anything like that is JSP which is being executed on an other life-cycle step than JSFs. --- .../templates/admin/user/admin_user_links.tpl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/web/WEB-INF/templates/admin/user/admin_user_links.tpl b/web/WEB-INF/templates/admin/user/admin_user_links.tpl index ef30a769..34cb19a5 100644 --- a/web/WEB-INF/templates/admin/user/admin_user_links.tpl +++ b/web/WEB-INF/templates/admin/user/admin_user_links.tpl @@ -27,15 +27,17 @@ -
  • - - - + +
  • + + + - - - -
  • + + + + +
  • -- 2.39.5