Converter will only be called if there is no submitted value. Submitted values are already technically converted as they came from the client, so there is no need to use the converter.
On 7/6/07, Toppac <[EMAIL PROTECTED]> wrote:
Just for a small background. I am trying to find a way to fail validation and/or conversion without dumping out of the JSF lifecycle to render response. I'd like to inject a custom converter that when it fails to convert it saves the submitted value to a session scoped Map and then during render response, when it tries to render the component that failed conversion, the getAsString method would see that the incoming value is null and would go to the session map to grab the last submitted value. Sounds easy enough and should work. But when I tried it, it appears that during render response, if the value on the domain model is null (or if the component value is null, not sure) it does not call the converter.getAsString method. I am not sure why. If someone can tell me why and where it makes this decision that would be great. If this is a bug then great also. But if it is not a bug then can anyone suggest a way to do what I am trying to do? -- View this message in context: http://www.nabble.com/Converter.getAsString-not-called--tf4038047.html#a11472287 Sent from the MyFaces - Users mailing list archive at Nabble.com.

