[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4179) Use Substituted EL Expression on tags with "rendered" ?

Maxim Areshkau (JIRA) jira-events at lists.jboss.org
Tue Apr 21 14:25:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12463534#action_12463534 ] 

Maxim Areshkau commented on JBIDE-4179:
---------------------------------------

In jsf/el -yes, if in element can be boolean value and it's value !="true", then it's false.
I think in our case better to process in such way jsf bollean attributes => value!="false" then it's true, becouse better to show for user smth then empty page by default (for this example both  s:link, then show nothing).

> 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

        



More information about the jbosstools-issues mailing list