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

Maxim Areshkau (JIRA) jira-events at lists.jboss.org
Wed Apr 22 07:50:22 EDT 2009


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

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

If el value not defined in VPE el expressions, then #{not something}=#{something}=false. In VPE user doesn't see both elements by default. If our flow will differ from jsf, element will be show in vpe by default it's better for user.
We don't resolve in vpe el expressions, just substitute it, for example if we defined smt=false, but on page we use ${not smt} then it's not shows in VPE like "true".User should define in VPE EL "not smt"=true manually in this case.


> 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