You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Costa Basil <co...@yahoo.ca> on 2007/05/24 19:27:40 UTC

converters not being called

Currently I have a page with inputText components that don't seem to use the converters specified upon rendering the page the first time (i.e. when I get to the page via a http get). 

I found this issue: http://issues.apache.org/jira/browse/MYFACES-1561 which seems to describe the same problem I am experiencing.

I am using myfaces 1.1.5 core & tomahawk 1.1.5. Can you please tell me to which version have the patches in the issue been applied?

Thanks

       
---------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail  

Re: converters not being called

Posted by Costa Basil <co...@yahoo.ca>.
Sorry, my mistake, I was executing some code I should have not. The converters are called as they should.

Cagatay Civici <ca...@gmail.com> wrote: Hi,

That looks like a 1.2 issue, not a 1.1.5 issue (but I am not 100% sure
on this though). 
Yes that's an issue related to the early development period of 1.2.

Costa, can you give more info about your page and how you specify the converters?

Cagatay


 On 5/24/07, Andrew Robinson <an...@gmail.com> wrote: That looks like a 1.2 issue, not a 1.1.5 issue (but I am not 100% sure
on this though).

I am also on 1.1.5, and had a look at the MyFaces core source, and it
looks fine to me:

h:inputText -> HtmlInputText uses HtmlTextRenderer 
HtmlTextRenderer extends HtmlTextRendererBase
HtmlTextRendererBase calls RendererUtils.getStringValue (in shared_impl package)

If the component has no submitted value, and is not null, and the
converter is not null, and the value is not an instance of string, 
then the value is converted.

See lines 199 to 263 of :

org.apache.myfaces.shared_impl.renderkit.RendererUtils

from the 1.1.5 core source

Check to make sure the above conditions are true in your case (I'm not 
sure that is what the JSF specification is supposed to be though --
that it doesn't convert strings).

-Andrew

On 5/24/07, Costa Basil <costa_basil@yahoo.ca > wrote:
> Currently I have a page with inputText components that don't seem to use the
> converters specified upon rendering the page the first time (i.e. when I get
> to the page via a http get). 
>
> I found this issue:
> http://issues.apache.org/jira/browse/MYFACES-1561 which
> seems to describe the same problem I am experiencing. 
>
> I am using myfaces 1.1.5 core & tomahawk 1.1.5. Can you please tell me to
> which version have the patches in the issue been applied?
>
> Thanks
>
>
>  ________________________________ 
> Be smarter than spam. See how smart SpamGuard is at giving junk email the
> boot with the All-new Yahoo! Mail
>
>


 

       
---------------------------------
 All new Yahoo! Mail - 
---------------------------------
Get a sneak peak at messages with a handy reading pane.

Re: converters not being called

Posted by Cagatay Civici <ca...@gmail.com>.
Hi,

That looks like a 1.2 issue, not a 1.1.5 issue (but I am not 100% sure
> on this though).


Yes that's an issue related to the early development period of 1.2.

Costa, can you give more info about your page and how you specify the
converters?

Cagatay

On 5/24/07, Andrew Robinson <an...@gmail.com> wrote:
>
> That looks like a 1.2 issue, not a 1.1.5 issue (but I am not 100% sure
> on this though).
>
> I am also on 1.1.5, and had a look at the MyFaces core source, and it
> looks fine to me:
>
> h:inputText -> HtmlInputText uses HtmlTextRenderer
> HtmlTextRenderer extends HtmlTextRendererBase
> HtmlTextRendererBase calls RendererUtils.getStringValue (in shared_impl
> package)
>
> If the component has no submitted value, and is not null, and the
> converter is not null, and the value is not an instance of string,
> then the value is converted.
>
> See lines 199 to 263 of :
>
> org.apache.myfaces.shared_impl.renderkit.RendererUtils
>
> from the 1.1.5 core source
>
> Check to make sure the above conditions are true in your case (I'm not
> sure that is what the JSF specification is supposed to be though --
> that it doesn't convert strings).
>
> -Andrew
>
> On 5/24/07, Costa Basil <co...@yahoo.ca> wrote:
> > Currently I have a page with inputText components that don't seem to use
> the
> > converters specified upon rendering the page the first time (i.e. when I
> get
> > to the page via a http get).
> >
> > I found this issue:
> > http://issues.apache.org/jira/browse/MYFACES-1561 which
> > seems to describe the same problem I am experiencing.
> >
> > I am using myfaces 1.1.5 core & tomahawk 1.1.5. Can you please tell me
> to
> > which version have the patches in the issue been applied?
> >
> > Thanks
> >
> >
> >  ________________________________
> > Be smarter than spam. See how smart SpamGuard is at giving junk email
> the
> > boot with the All-new Yahoo! Mail
> >
> >
>

Re: converters not being called

Posted by Andrew Robinson <an...@gmail.com>.
That looks like a 1.2 issue, not a 1.1.5 issue (but I am not 100% sure
on this though).

I am also on 1.1.5, and had a look at the MyFaces core source, and it
looks fine to me:

h:inputText -> HtmlInputText uses HtmlTextRenderer
HtmlTextRenderer extends HtmlTextRendererBase
HtmlTextRendererBase calls RendererUtils.getStringValue (in shared_impl package)

If the component has no submitted value, and is not null, and the
converter is not null, and the value is not an instance of string,
then the value is converted.

See lines 199 to 263 of :

org.apache.myfaces.shared_impl.renderkit.RendererUtils

from the 1.1.5 core source

Check to make sure the above conditions are true in your case (I'm not
sure that is what the JSF specification is supposed to be though --
that it doesn't convert strings).

-Andrew

On 5/24/07, Costa Basil <co...@yahoo.ca> wrote:
> Currently I have a page with inputText components that don't seem to use the
> converters specified upon rendering the page the first time (i.e. when I get
> to the page via a http get).
>
> I found this issue:
> http://issues.apache.org/jira/browse/MYFACES-1561 which
> seems to describe the same problem I am experiencing.
>
> I am using myfaces 1.1.5 core & tomahawk 1.1.5. Can you please tell me to
> which version have the patches in the issue been applied?
>
> Thanks
>
>
>  ________________________________
> Be smarter than spam. See how smart SpamGuard is at giving junk email the
> boot with the All-new Yahoo! Mail
>
>