You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Stephen Friedrich (JIRA)" <de...@myfaces.apache.org> on 2008/06/24 10:56:45 UTC

[jira] Created: (TRINIDAD-1134) XmlMenuModel: action is interpreted as ValueExpression

XmlMenuModel: action is interpreted as ValueExpression
------------------------------------------------------

                 Key: TRINIDAD-1134
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1134
             Project: MyFaces Trinidad
          Issue Type: Bug
            Reporter: Stephen Friedrich


An action set on an ItemNode is evaluated as a value expression.
Workround is to have a getter instead of an action-method-signature in the backing bean:

public String getDoIt() 

for an itemNode like this:
    <itemNode id="companies" action="#{_companyList.doIt}" label="#{Output.COMPANIES}" ...

See http://www.nabble.com/-Trinidad--Bug-in-XMLMenuModel---ItemNode---tt12376683.html#a12376683

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TRINIDAD-1134) XmlMenuModel: action is interpreted as ValueExpression

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated TRINIDAD-1134:
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.10-core
                   1.2.10-core
         Assignee: Matthias Weßendorf
           Status: Resolved  (was: Patch Available)

Thanks to Abhijit S Ghosh for his patch

> XmlMenuModel: action is interpreted as ValueExpression
> ------------------------------------------------------
>
>                 Key: TRINIDAD-1134
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1134
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Stephen Friedrich
>            Assignee: Matthias Weßendorf
>             Fix For: 1.2.10-core, 1.0.10-core
>
>         Attachments: trunk.patch, trunk1_2_x.patch
>
>
> An action set on an ItemNode is evaluated as a value expression.
> Workround is to have a getter instead of an action-method-signature in the backing bean:
> public String getDoIt() 
> for an itemNode like this:
>     <itemNode id="companies" action="#{_companyList.doIt}" label="#{Output.COMPANIES}" ...
> See http://www.nabble.com/-Trinidad--Bug-in-XMLMenuModel---ItemNode---tt12376683.html#a12376683

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TRINIDAD-1134) XmlMenuModel: action is interpreted as ValueExpression

Posted by "Abhijit S Ghosh (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Abhijit S Ghosh updated TRINIDAD-1134:
--------------------------------------

    Status: Patch Available  (was: Open)

> XmlMenuModel: action is interpreted as ValueExpression
> ------------------------------------------------------
>
>                 Key: TRINIDAD-1134
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1134
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Stephen Friedrich
>
> An action set on an ItemNode is evaluated as a value expression.
> Workround is to have a getter instead of an action-method-signature in the backing bean:
> public String getDoIt() 
> for an itemNode like this:
>     <itemNode id="companies" action="#{_companyList.doIt}" label="#{Output.COMPANIES}" ...
> See http://www.nabble.com/-Trinidad--Bug-in-XMLMenuModel---ItemNode---tt12376683.html#a12376683

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1134) XmlMenuModel: action is interpreted as ValueExpression

Posted by "Gary Kind (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607730#action_12607730 ] 

Gary Kind commented on TRINIDAD-1134:
-------------------------------------

The action attribute, as per the spec, is supposed to contain an navigation case outcome.  Therefore, whatever you put in as its value should evaluate to an outcome.  Workaround would be to have your bean return a navigation outcome string.

> XmlMenuModel: action is interpreted as ValueExpression
> ------------------------------------------------------
>
>                 Key: TRINIDAD-1134
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1134
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Stephen Friedrich
>
> An action set on an ItemNode is evaluated as a value expression.
> Workround is to have a getter instead of an action-method-signature in the backing bean:
> public String getDoIt() 
> for an itemNode like this:
>     <itemNode id="companies" action="#{_companyList.doIt}" label="#{Output.COMPANIES}" ...
> See http://www.nabble.com/-Trinidad--Bug-in-XMLMenuModel---ItemNode---tt12376683.html#a12376683

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.