myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erlend Hamnaberg <erle...@tihlde.org>
Subject Re: Tomahawk and converters
Date Thu, 05 Jul 2007 00:46:18 GMT
Erlend Hamnaberg wrote:
> Matthias Wessendorf wrote:
>>> converter="evatest.AlternativeConverter"
>>
>> tried
>> converter="#{bean.propertyThatReturnsMyConverter}"
>> ?
>>
> That didnt work, no alternatives are displayed.
>
> Changed back to the original, the same happens. With debug output 
> gives this
>
> 2007-07-04 13:23:56,426 [btpool0-3] DEBUG 
> org.apache.myfaces.el.VariableResolverImpl - Variable 'ajaxContext' 
> could not be resolved.
> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG 
> org.evatest.web.beans.TestBean - studenttest.id: 301
> 2007-07-04 13:23:56,427 [btpool0-3] DEBUG 
> org.evatest.web.beans.TestBean - studenttest.answers: 7
> 2007-07-04 13:23:56,580 [btpool0-3] DEBUG 
> org.evatest.web.beans.TestBean - answers.size: 7
> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG 
> org.evatest.web.converter.AlternativeConverter - 2;40;0;0
>
> String from converter.
>
> 2007-07-04 13:23:56,588 [btpool0-3] DEBUG 
> org.evatest.web.converter.AlternativeConverter - 2 40 0
>
> This denotes that the alternative was correctly decoded.
>
> 2007-07-04 13:23:56,605 [btpool0-3] DEBUG 
> org.apache.myfaces.lifecycle.LifecycleImpl - exiting from 
> lifecycle.execute in PROCESS_VALIDATIONS(3) because getRenderResponse 
> is true from one of the after listeners
> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question - 
> org.evatest.xml.question.Question@be5687
> 2007-07-04 13:23:56,633 [btpool0-3] DEBUG org.evatest.model.Question - 
> org.evatest.xml.Alternatives@22c0a0
> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG 
> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - PI found at 
> line 1
> 2007-07-04 13:23:56,684 [btpool0-3] DEBUG 
> org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - DOCTYPE 
> found at line 3
>
>
>
> Any thoughts?
>
> The answerBean is requestscoped.. does this mean anything ?
>
>
> Regards
>
> Erlend
>
I'm replying to myself in the dead of night.

I changed the implementation AsnwerBean to accept Integers instead of 
Alternative.
Without any converter this works fine, however with a <f:numberConverter 
integerOnly="true" /> i get the same error as earlier.

Is there a bug in the converter mechanism in myfaces?

Regards

Erlend

Mime
View raw message