[
https://jira.jboss.org/jira/browse/JBIDE-4179?page=com.atlassian.jira.plu...
]
Max Rydahl Andersen commented on JBIDE-4179:
--------------------------------------------
Why do it differently than JSF ? the rendered attribute could also be #{not something} and
then you would have the opposite effect.
Better to keep it consistent.
Btw. the above is why having a way to easily disable and enable EL resolution
Use Substituted EL Expression on tags with "rendered" ?
-------------------------------------------------------
Key: JBIDE-4179
URL:
https://jira.jboss.org/jira/browse/JBIDE-4179
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Visual Page Editor core, Visual Page Editor Templates
Reporter: Max Rydahl Andersen
Assignee: Maxim Areshkau
Fix For: 3.1.0.M1
Would it not be useful to be able to support EL Expression on i.e. the rendered attribute
of s:link (and others) ?
This would allow me to "immitate" how the screen would look like when user is
logged in or not. which would in seam apps where we today render both Login and Logout
button - we would be able to render the right one.
i.e. today we got:
<s:link view="/login.xhtml" value="Login" rendered="#{not
identity.loggedIn}"/>
<s:link view="/home.xhtml" action="#{identity.logout}"
value="Logout" rendered="#{identity.loggedIn}"/>
by default identity.loggedIn is "not defined" and we will simply just do as we
do today, but if I go and define identity.loggedIn as "true" it would only
render the "Logout" and not the "Login"
I know this won't be complete but it would at least is cool for some things...
If this is done having a way to toggle "Substitituon on/off" globally/per
editor would be interesting I think.
Btw. the code should be resilient to bogus values, i.e. if identity.loggedIn is not true
or false but some "bogusvalue" we should render as if it is not defined instead
of erroring.
There might be other tags and attributes where EL is relevant ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira