You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Alexander Zynevich (JIRA)" <de...@myfaces.apache.org> on 2007/05/29 22:24:15 UTC

[jira] Created: (MYFACES-1656) Wrong coercing in #{} for

Wrong coercing in #{} for <h:inputText>
---------------------------------------

                 Key: MYFACES-1656
                 URL: https://issues.apache.org/jira/browse/MYFACES-1656
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.2.0-SNAPSHOT
         Environment: geronimo 2.0 - M6, winxp
            Reporter: Alexander Zynevich


I tried to run GuessNumber application on the latest SNAPSHOT of 1.2.0
Looks like is cannot coerce #{integer-value} for string. A week ago this code worked. Now it prints:
/greeting.jsp(44,3) '#{UserNumberBean.userNumber}' java.lang.IllegalArgumentException: argument type mismatch
snip from bean:
    public void setUserNumber(Integer user_number) {
        userNumber = user_number;
        System.out.println("Set userNumber " + userNumber);
    }


    public Integer getUserNumber() {
        System.out.println("get userNumber " + userNumber);
        return userNumber;
    }
snip from jsp:
  	<h:inputText id="userNo" value="#{UserNumberBean.userNumber}"
                      validator="#{UserNumberBean.validate}"/>          
you may download war from  	 GERONIMO-3167
see also screen shot

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


[jira] Commented: (MYFACES-1656) Wrong coercing in #{} for

Posted by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502114 ] 

Bruno Aranda commented on MYFACES-1656:
---------------------------------------

I have modified the test-webapp of myfaces-1.2 in order to reproduce this issue. When executing the app with the jetty maven plugin it works ok. If I deploy it in geronimo (+tomcat)  I can reproduce the issue. Any ideas?

> Wrong coercing in #{} for <h:inputText>
> ---------------------------------------
>
>                 Key: MYFACES-1656
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1656
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.2.0-SNAPSHOT
>         Environment: geronimo 2.0 - M6, winxp
>            Reporter: Alexander Zynevich
>         Attachments: Bad coercing.jpg
>
>
> I tried to run GuessNumber application on the latest SNAPSHOT of 1.2.0
> Looks like is cannot coerce #{integer-value} for string. A week ago this code worked. Now it prints:
> /greeting.jsp(44,3) '#{UserNumberBean.userNumber}' java.lang.IllegalArgumentException: argument type mismatch
> snip from bean:
>     public void setUserNumber(Integer user_number) {
>         userNumber = user_number;
>         System.out.println("Set userNumber " + userNumber);
>     }
>     public Integer getUserNumber() {
>         System.out.println("get userNumber " + userNumber);
>         return userNumber;
>     }
> snip from jsp:
>   	<h:inputText id="userNo" value="#{UserNumberBean.userNumber}"
>                       validator="#{UserNumberBean.validate}"/>          
> you may download war from  	 GERONIMO-3167
> see also screen shot

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


[jira] Commented: (MYFACES-1656) Wrong coercing in #{} for

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502161 ] 

Mike Kienenberger commented on MYFACES-1656:
--------------------------------------------

Different versions of el-api.jar and el-ri.jar?

I'd think Geronimo would come with it prebundled.

No idea what Jetty would use.


> Wrong coercing in #{} for <h:inputText>
> ---------------------------------------
>
>                 Key: MYFACES-1656
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1656
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.2.0-SNAPSHOT
>         Environment: geronimo 2.0 - M6, winxp
>            Reporter: Alexander Zynevich
>         Attachments: Bad coercing.jpg
>
>
> I tried to run GuessNumber application on the latest SNAPSHOT of 1.2.0
> Looks like is cannot coerce #{integer-value} for string. A week ago this code worked. Now it prints:
> /greeting.jsp(44,3) '#{UserNumberBean.userNumber}' java.lang.IllegalArgumentException: argument type mismatch
> snip from bean:
>     public void setUserNumber(Integer user_number) {
>         userNumber = user_number;
>         System.out.println("Set userNumber " + userNumber);
>     }
>     public Integer getUserNumber() {
>         System.out.println("get userNumber " + userNumber);
>         return userNumber;
>     }
> snip from jsp:
>   	<h:inputText id="userNo" value="#{UserNumberBean.userNumber}"
>                       validator="#{UserNumberBean.validate}"/>          
> you may download war from  	 GERONIMO-3167
> see also screen shot

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


[jira] Commented: (MYFACES-1656) Wrong coercing in #{} for

Posted by "Paul McMahan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502344 ] 

Paul McMahan commented on MYFACES-1656:
---------------------------------------

>From a visual inspection of jetty it looks like it uses the jsp-2.1 RI from glassfish, which includes the el api.    Geronimo uses tomcat's el api, see:
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_13/java/javax/el/

(Actually geronimo uses a copy of tomcat's el api, but will soon switch back over to tomcat's original version now that they are published to maven central repo)

If we can narrow this problem down to a bug in EL and provide a patch to tomcat then geronimo will be able to pick up that change.

> Wrong coercing in #{} for <h:inputText>
> ---------------------------------------
>
>                 Key: MYFACES-1656
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1656
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.2.0-SNAPSHOT
>         Environment: geronimo 2.0 - M6, winxp
>            Reporter: Alexander Zynevich
>         Attachments: Bad coercing.jpg
>
>
> I tried to run GuessNumber application on the latest SNAPSHOT of 1.2.0
> Looks like is cannot coerce #{integer-value} for string. A week ago this code worked. Now it prints:
> /greeting.jsp(44,3) '#{UserNumberBean.userNumber}' java.lang.IllegalArgumentException: argument type mismatch
> snip from bean:
>     public void setUserNumber(Integer user_number) {
>         userNumber = user_number;
>         System.out.println("Set userNumber " + userNumber);
>     }
>     public Integer getUserNumber() {
>         System.out.println("get userNumber " + userNumber);
>         return userNumber;
>     }
> snip from jsp:
>   	<h:inputText id="userNo" value="#{UserNumberBean.userNumber}"
>                       validator="#{UserNumberBean.validate}"/>          
> you may download war from  	 GERONIMO-3167
> see also screen shot

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


[jira] Commented: (MYFACES-1656) Wrong coercing in #{} for

Posted by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502462 ] 

Bruno Aranda commented on MYFACES-1656:
---------------------------------------

Definitely it seems to be a bug in tomcat's el api, as the test-webapp runs well also in glassfish

> Wrong coercing in #{} for <h:inputText>
> ---------------------------------------
>
>                 Key: MYFACES-1656
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1656
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.2.0-SNAPSHOT
>         Environment: geronimo 2.0 - M6, winxp
>            Reporter: Alexander Zynevich
>         Attachments: Bad coercing.jpg
>
>
> I tried to run GuessNumber application on the latest SNAPSHOT of 1.2.0
> Looks like is cannot coerce #{integer-value} for string. A week ago this code worked. Now it prints:
> /greeting.jsp(44,3) '#{UserNumberBean.userNumber}' java.lang.IllegalArgumentException: argument type mismatch
> snip from bean:
>     public void setUserNumber(Integer user_number) {
>         userNumber = user_number;
>         System.out.println("Set userNumber " + userNumber);
>     }
>     public Integer getUserNumber() {
>         System.out.println("get userNumber " + userNumber);
>         return userNumber;
>     }
> snip from jsp:
>   	<h:inputText id="userNo" value="#{UserNumberBean.userNumber}"
>                       validator="#{UserNumberBean.validate}"/>          
> you may download war from  	 GERONIMO-3167
> see also screen shot

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