[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-4179) Use Substituted EL Expression on certain tags/attributes

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Mon Apr 13 13:06:22 EDT 2009


Use Substituted EL Expression on certain tags/attributes
--------------------------------------------------------

                 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


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.






-- 
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

        



More information about the jbosstools-issues mailing list