You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Paweł Mączka (Created JIRA)" <de...@myfaces.apache.org> on 2012/01/07 19:01:39 UTC
[jira] [Created] (TRINIDAD-2195) xmlMenuModel - itemNode with
attribute 'rendered' set to boolean 'false' with EL still rendered
xmlMenuModel - itemNode with attribute 'rendered' set to boolean 'false' with EL still rendered
-----------------------------------------------------------------------------------------------
Key: TRINIDAD-2195
URL: https://issues.apache.org/jira/browse/TRINIDAD-2195
Project: MyFaces Trinidad
Issue Type: Bug
Components: Components
Affects Versions: 2.0.0-core
Environment: myfaces 2.1.5 or 2.0.5; tomcat 6 or 7
Reporter: Paweł Mączka
itemNode is rendered when attribute value for rendered = false with EL. When set to 'false' in xml - it is not rendered.
I tried with almost everything as value including: rendered="#{request.userInRole['admin'] eq true}"
Also created a managed bean with simple method:
public boolean getRendered(){ return false; }
and put it into label and rendered attribute. In label attribute I can see 'false' so the value is used but the node is still rendered which is a bug for me.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TRINIDAD-2195) xmlMenuModel - itemNode with
attribute 'rendered' set to boolean 'false' with EL still rendered
Posted by "Paweł Mączka (Commented JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182055#comment-13182055 ]
Paweł Mączka commented on TRINIDAD-2195:
----------------------------------------
I have made more research and now for me the EL in rendered attribute is not evaluated at all.
when rendered="false" then itemNode is not rendered ( which is ok :)
when rendered="#{1 == 0}" then the itemNode IS rendered ( which is buggy )
the same whith managed bean. It doesn't call the method or even instantiate a bean
the somehow similar looks the issue with <h:outputStylesheet rendered= .../> see here: http://stackoverflow.com/questions/7386344/evaluating-the-rendered-attribute-of-houtputstylesheet-inside-a-composite
> xmlMenuModel - itemNode with attribute 'rendered' set to boolean 'false' with EL still rendered
> -----------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2195
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2195
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-core
> Environment: myfaces 2.1.5 or 2.0.5; tomcat 6 or 7
> Reporter: Paweł Mączka
>
> itemNode is rendered when attribute value for rendered = false with EL. When set to 'false' in xml - it is not rendered.
> I tried with almost everything as value including: rendered="#{request.userInRole['admin'] eq true}"
> Also created a managed bean with simple method:
> public boolean getRendered(){ return false; }
> and put it into label and rendered attribute. In label attribute I can see 'false' so the value is used but the node is still rendered which is a bug for me.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2195) xmlMenuModel - itemNode with
attribute 'rendered' set to boolean 'false' with EL still rendered
Posted by "Paweł Mączka (Updated JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paweł Mączka updated TRINIDAD-2195:
-----------------------------------
Status: Patch Available (was: Open)
> xmlMenuModel - itemNode with attribute 'rendered' set to boolean 'false' with EL still rendered
> -----------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2195
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2195
> Project: MyFaces Trinidad
> Issue Type: Improvement
> Components: Documentation
> Affects Versions: 2.0.0-core
> Environment: myfaces 2.1.5 or 2.0.5; tomcat 6 or 7
> Reporter: Paweł Mączka
> Priority: Trivial
> Labels: documentation
>
> itemNode is rendered when attribute value for rendered = false with EL. When set to 'false' in xml - it is not rendered.
> I tried with almost everything as value including: rendered="#{request.userInRole['admin'] eq true}"
> Also created a managed bean with simple method:
> public boolean getRendered(){ return false; }
> and put it into label and rendered attribute. In label attribute I can see 'false' so the value is used but the node is still rendered which is a bug for me.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2195) xmlMenuModel - itemNode with
attribute 'rendered' set to boolean 'false' with EL still rendered
Posted by "Paweł Mączka (Updated JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paweł Mączka updated TRINIDAD-2195:
-----------------------------------
Status: Open (was: Patch Available)
> xmlMenuModel - itemNode with attribute 'rendered' set to boolean 'false' with EL still rendered
> -----------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2195
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2195
> Project: MyFaces Trinidad
> Issue Type: Improvement
> Components: Documentation
> Affects Versions: 2.0.0-core
> Environment: myfaces 2.1.5 or 2.0.5; tomcat 6 or 7
> Reporter: Paweł Mączka
> Priority: Trivial
> Labels: documentation
>
> itemNode is rendered when attribute value for rendered = false with EL. When set to 'false' in xml - it is not rendered.
> I tried with almost everything as value including: rendered="#{request.userInRole['admin'] eq true}"
> Also created a managed bean with simple method:
> public boolean getRendered(){ return false; }
> and put it into label and rendered attribute. In label attribute I can see 'false' so the value is used but the node is still rendered which is a bug for me.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira