javaee / mojarra

PLEASE NOTE: This project has moved to Eclipse Foundation and will be archived under the JavaEE GitHub Organization. After Feb. 1, 2021, the new location will be github.com/javaee/mojarra. Mojarra - Oracle's implementation of the JavaServer Faces specification
https://github.com/eclipse-ee4j/mojarra
Other
164 stars 58 forks source link

NumberConverter does not accept any number when used on composite components with a BigDecimal, Long etc. value #2007

Closed javaserverfaces closed 11 years ago

javaserverfaces commented 13 years ago

If a NumberConverter () is used with composite component () that has a value binding to a BigDecimal, Long, Integer etc. property which has an initial value of null, the converter does not accept any number as input.

When there is an inital value or the converter is used with a "normal" input component it works correctly.

Environment

JDK 1.6, Tomcat 6.0.29

Affected Versions

[2.0.3, 2.0.4, 2.1.0]

javaserverfaces commented 13 years ago

Reported by werlitz

javaserverfaces commented 13 years ago

werlitz said: Attached a small example that shows the problem when entering a valid number and submitting the form.

javaserverfaces commented 13 years ago

werlitz said: This issue affects 2.0.3, 2.0.4 and 2.1.0.

The source of the problem is a NPE at line javax.faces.convert.NumberConverter:585 (Mojarra 2.1). The wrapped value expression does not seem to provide a type information for the value expression.

javaserverfaces commented 13 years ago

werlitz said:

1670 returns null") does solve the NPE. But the more interesting question is why the type information is lost within composite components. The same EL expression works for "normal" input components.

javaserverfaces commented 13 years ago

@edburns said: Bulk assign all impl issues to Roger.

javaserverfaces commented 11 years ago

@manfredriem said: Can you verify if this is still an issue on the latest 2.1 release?

javaserverfaces commented 11 years ago

@manfredriem said: Lowering priority because of no response

javaserverfaces commented 11 years ago

@manfredriem said: Closing issue because of inactivity

javaserverfaces commented 11 years ago

werlitz said: Sorry, I could not respond here for a long time. The issue is not present anymore in versions 2.1.25 and 2.2.2

javaserverfaces commented 11 years ago

@edburns said: Thanks for the followup.

javaserverfaces commented 13 years ago

File: converterError.zip Attached By: werlitz

javaserverfaces commented 7 years ago

This issue was imported from java.net JIRA JAVASERVERFACES-2003

javaserverfaces commented 11 years ago

Marked as cannot reproduce on Monday, August 19th 2013, 6:49:56 pm