You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Guido Dubois (JIRA)" <de...@myfaces.apache.org> on 2007/02/17 00:04:15 UTC
[jira] Created: (TOBAGO-287) Error using && on "rendered" attribute
in tag
Error using && on "rendered" attribute in <tc:out> tag
------------------------------------------------------
Key: TOBAGO-287
URL: https://issues.apache.org/jira/browse/TOBAGO-287
Project: MyFaces Tobago
Issue Type: Bug
Affects Versions: 1.0.9
Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
Reporter: Guido Dubois
Get error by using && on "rendered" attribute in <tc:out> tag. Using "and" instead works...
<tc:out value="Fallgruppe :: #{basicController.fallGruppe}"
rendered="#{(navigation.currentPage == 'overview/ekaw') && true}" />
2007-02-16 23:16:44 ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbg].[jsp]:704 - Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /overview/header.jspx(41,70) The entity name must immediately follow the '&' in the entity reference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-287) Error using && on "rendered"
attribute in tag
Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475058 ]
Mike Kienenberger commented on TOBAGO-287:
------------------------------------------
Guido,
The "&&" form will work, provided it is properly escaped in xml. You can either use a non-xml-based page type or you can escape it or you can use "and". I know which one I find easiest :-)
> Error using && on "rendered" attribute in <tc:out> tag
> ------------------------------------------------------
>
> Key: TOBAGO-287
> URL: https://issues.apache.org/jira/browse/TOBAGO-287
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.9
> Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
> Reporter: Guido Dubois
>
> Get error by using && on "rendered" attribute in <tc:out> tag. Using "and" instead works...
> <tc:out value="Fallgruppe :: #{basicController.fallGruppe}"
> rendered="#{(navigation.currentPage == 'overview/ekaw') && true}" />
> 2007-02-16 23:16:44 ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbg].[jsp]:704 - Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: /overview/header.jspx(41,70) The entity name must immediately follow the '&' in the entity reference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-287) Error using && on "rendered"
attribute in tag
Posted by "Guido Dubois (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474566 ]
Guido Dubois commented on TOBAGO-287:
-------------------------------------
This doesn't work with the above envirenment...
<tc:cell spanX="6" rendered="#{!(rkeController.formTyp2A && true)}" />
2007-02-20 22:13:01 ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbg].[jsp]:704 - Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /overview/ekawtabkeekvorjahr.jspx(32,63) The entity name must immediately follow the '&' in the entity reference.
> Error using && on "rendered" attribute in <tc:out> tag
> ------------------------------------------------------
>
> Key: TOBAGO-287
> URL: https://issues.apache.org/jira/browse/TOBAGO-287
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.9
> Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
> Reporter: Guido Dubois
>
> Get error by using && on "rendered" attribute in <tc:out> tag. Using "and" instead works...
> <tc:out value="Fallgruppe :: #{basicController.fallGruppe}"
> rendered="#{(navigation.currentPage == 'overview/ekaw') && true}" />
> 2007-02-16 23:16:44 ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbg].[jsp]:704 - Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: /overview/header.jspx(41,70) The entity name must immediately follow the '&' in the entity reference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (TOBAGO-287) Error using && on "rendered" attribute
in tag
Posted by Jacob Hookom <ja...@hookom.net>.
If you are using jspx compilation, use 'and' instead of '&&' in EL
Volker Weber (JIRA) wrote:
> [ https://issues.apache.org/jira/browse/TOBAGO-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475034 ]
>
> Volker Weber commented on TOBAGO-287:
> -------------------------------------
>
> The tc:cell component (org.apache.myfaces.tobago.component.UICell) extends org.apache.myfaces.tobago.component.UIPanel
> which extends javax.faces.component.UIPanel,
> both tobago components did not overwrite getRendered().
>
> So i think the problem must be somwhere in the underlying jsf implementation, which are you using?
>
> Can you create a small example in plain jsf with the use of h:panel, to ensure the problem is not there.
>
>
>
>
>> Error using && on "rendered" attribute in <tc:out> tag
>> ------------------------------------------------------
>>
>> Key: TOBAGO-287
>> URL: https://issues.apache.org/jira/browse/TOBAGO-287
>> Project: MyFaces Tobago
>> Issue Type: Bug
>> Affects Versions: 1.0.9
>> Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
>> Reporter: Guido Dubois
>>
>> Get error by using && on "rendered" attribute in <tc:out> tag. Using "and" instead works...
>> <tc:out value="Fallgruppe :: #{basicController.fallGruppe}"
>> rendered="#{(navigation.currentPage == 'overview/ekaw') && true}" />
>> 2007-02-16 23:16:44 ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbg].[jsp]:704 - Servlet.service() for servlet jsp threw exception
>> org.apache.jasper.JasperException: /overview/header.jspx(41,70) The entity name must immediately follow the '&' in the entity reference.
>>
>
>
[jira] Commented: (TOBAGO-287) Error using && on "rendered"
attribute in tag
Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475034 ]
Volker Weber commented on TOBAGO-287:
-------------------------------------
The tc:cell component (org.apache.myfaces.tobago.component.UICell) extends org.apache.myfaces.tobago.component.UIPanel
which extends javax.faces.component.UIPanel,
both tobago components did not overwrite getRendered().
So i think the problem must be somwhere in the underlying jsf implementation, which are you using?
Can you create a small example in plain jsf with the use of h:panel, to ensure the problem is not there.
> Error using && on "rendered" attribute in <tc:out> tag
> ------------------------------------------------------
>
> Key: TOBAGO-287
> URL: https://issues.apache.org/jira/browse/TOBAGO-287
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.9
> Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
> Reporter: Guido Dubois
>
> Get error by using && on "rendered" attribute in <tc:out> tag. Using "and" instead works...
> <tc:out value="Fallgruppe :: #{basicController.fallGruppe}"
> rendered="#{(navigation.currentPage == 'overview/ekaw') && true}" />
> 2007-02-16 23:16:44 ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbg].[jsp]:704 - Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: /overview/header.jspx(41,70) The entity name must immediately follow the '&' in the entity reference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-287) Error using && on "rendered"
attribute in tag
Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474568 ]
Mike Kienenberger commented on TOBAGO-287:
------------------------------------------
You can avoid the && escaping issues by using
rkeController.formTyp2A and true
> Error using && on "rendered" attribute in <tc:out> tag
> ------------------------------------------------------
>
> Key: TOBAGO-287
> URL: https://issues.apache.org/jira/browse/TOBAGO-287
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.9
> Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
> Reporter: Guido Dubois
>
> Get error by using && on "rendered" attribute in <tc:out> tag. Using "and" instead works...
> <tc:out value="Fallgruppe :: #{basicController.fallGruppe}"
> rendered="#{(navigation.currentPage == 'overview/ekaw') && true}" />
> 2007-02-16 23:16:44 ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbg].[jsp]:704 - Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: /overview/header.jspx(41,70) The entity name must immediately follow the '&' in the entity reference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-287) Error using && on "rendered"
attribute in tag
Posted by "Guido Dubois (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474933 ]
Guido Dubois commented on TOBAGO-287:
-------------------------------------
I know that this form works. But why we habe a standard? It's only an advice that there is something what's not working like defined in the standard...
> Error using && on "rendered" attribute in <tc:out> tag
> ------------------------------------------------------
>
> Key: TOBAGO-287
> URL: https://issues.apache.org/jira/browse/TOBAGO-287
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.9
> Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.5 snap (06.02.2007 04:51), tobago 1.0.10 snap (16.02.2007 5:11)
> Reporter: Guido Dubois
>
> Get error by using && on "rendered" attribute in <tc:out> tag. Using "and" instead works...
> <tc:out value="Fallgruppe :: #{basicController.fallGruppe}"
> rendered="#{(navigation.currentPage == 'overview/ekaw') && true}" />
> 2007-02-16 23:16:44 ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbg].[jsp]:704 - Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: /overview/header.jspx(41,70) The entity name must immediately follow the '&' in the entity reference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.