You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Travis Reeder <tr...@gmail.com> on 2005/09/21 22:33:45 UTC
NumberFormat exception when migrating to 1.1
I get this with no changes other than replacing jars, code is here:
<h:column>
<f:facet name="header">
<h:outputText value="#{bundle['percentage.short']}"/>
</f:facet>
<h:outputText
value="#{campaignBean.percentOfCampaignFulfilled}">
<f:convertNumber type="percentage"/>
</h:outputText>
</h:column>
javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
Any ideas?
Travis
Re: NumberFormat exception when migrating to 1.1
Posted by Mathias Brökelmann <mb...@googlemail.com>.
Is it possible to accept both percent and percentage?
The only reason I see is that if someone uses percentage it would
probably not working with the RI.
2005/9/22, Mathias Brökelmann <mb...@googlemail.com>:
> I would say 2:1 for percent ;)
>
> 2005/9/22, Bruno Aranda <br...@gmail.com>:
> > Looking at this with more detail, there is a difference between the
> > spec and the javadocs. In the javadocs (and in the TCK) "percent" is
> > expected - http://java.sun.com/j2ee/javaserverfaces/1.1/docs/api/javax/faces/convert/NumberConverter.html#setType(java.lang.String)
> > - , while in the spec document (p 9-22) it talks about "percentage".
> > Which one prevails?
> >
> > MYFACES-177 was about this....
> >
> > Bruno
> >
> > 2005/9/22, Bruno Aranda <br...@gmail.com>:
> > > I did the change. The spec says that is "percent" the accepted value
> > > and not "percentage" (MYFACES-503), so you will have to change your
> > > code...
> > >
> > > Sorry for that :-)
> > >
> > > Bruno
> > >
> > > 2005/9/22, Martin Marinschek <ma...@gmail.com>:
> > > > Welcome back Travis, long time no hear ;)
> > > >
> > > > Want to open an issue on this?
> > > >
> > > > might be that there has been a change for TCK compatibility.
> > > >
> > > > regards,
> > > >
> > > > Martin
> > > >
> > > > On 9/21/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > > I get this with no changes other than replacing jars, code is here:
> > > > >
> > > > > <h:column>
> > > > > <f:facet name="header">
> > > > > <h:outputText value="#{bundle['percentage.short']}"/>
> > > > > </f:facet>
> > > > > <h:outputText
> > > > > value="#{campaignBean.percentOfCampaignFulfilled}">
> > > > > <f:convertNumber type="percentage"/>
> > > > > </h:outputText>
> > > > > </h:column>
> > > > >
> > > > > javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
> > > > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
> > > > > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> > > > > rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > Travis
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > > http://www.irian.at
> > > > Your JSF powerhouse -
> > > > JSF Trainings in English and German
> > > >
> > >
> >
>
>
> --
> Mathias
>
--
Mathias
Re: NumberFormat exception when migrating to 1.1
Posted by Mathias Brökelmann <mb...@googlemail.com>.
I would say 2:1 for percent ;)
2005/9/22, Bruno Aranda <br...@gmail.com>:
> Looking at this with more detail, there is a difference between the
> spec and the javadocs. In the javadocs (and in the TCK) "percent" is
> expected - http://java.sun.com/j2ee/javaserverfaces/1.1/docs/api/javax/faces/convert/NumberConverter.html#setType(java.lang.String)
> - , while in the spec document (p 9-22) it talks about "percentage".
> Which one prevails?
>
> MYFACES-177 was about this....
>
> Bruno
>
> 2005/9/22, Bruno Aranda <br...@gmail.com>:
> > I did the change. The spec says that is "percent" the accepted value
> > and not "percentage" (MYFACES-503), so you will have to change your
> > code...
> >
> > Sorry for that :-)
> >
> > Bruno
> >
> > 2005/9/22, Martin Marinschek <ma...@gmail.com>:
> > > Welcome back Travis, long time no hear ;)
> > >
> > > Want to open an issue on this?
> > >
> > > might be that there has been a change for TCK compatibility.
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > On 9/21/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > I get this with no changes other than replacing jars, code is here:
> > > >
> > > > <h:column>
> > > > <f:facet name="header">
> > > > <h:outputText value="#{bundle['percentage.short']}"/>
> > > > </f:facet>
> > > > <h:outputText
> > > > value="#{campaignBean.percentOfCampaignFulfilled}">
> > > > <f:convertNumber type="percentage"/>
> > > > </h:outputText>
> > > > </h:column>
> > > >
> > > > javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
> > > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
> > > > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> > > > rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
> > > >
> > > > Any ideas?
> > > >
> > > > Travis
> > > >
> > >
> > >
> > > --
> > >
> > > http://www.irian.at
> > > Your JSF powerhouse -
> > > JSF Trainings in English and German
> > >
> >
>
--
Mathias
Re: NumberFormat exception when migrating to 1.1
Posted by Mike Kienenberger <mk...@gmail.com>.
java.text.NumberFormat uses "percent", so that's likely to be the
official conclusion.
On 9/22/05, Martin Marinschek <ma...@gmail.com> wrote:
> Forwarding this to the expert ;)
>
> regards,
>
> Martin
>
> ---------- Forwarded message ----------
> From: Bruno Aranda <br...@gmail.com>
> Date: Sep 22, 2005 10:51 AM
> Subject: Re: NumberFormat exception when migrating to 1.1
> To: MyFaces Discussion <us...@myfaces.apache.org>, martin@marinschek.com
>
>
> Looking at this with more detail, there is a difference between the
> spec and the javadocs. In the javadocs (and in the TCK) "percent" is
> expected - http://java.sun.com/j2ee/javaserverfaces/1.1/docs/api/javax/faces/convert/NumberConverter.html#setType(java.lang.String)
> - , while in the spec document (p 9-22) it talks about "percentage".
> Which one prevails?
>
> MYFACES-177 was about this....
>
> Bruno
>
> 2005/9/22, Bruno Aranda <br...@gmail.com>:
> > I did the change. The spec says that is "percent" the accepted value
> > and not "percentage" (MYFACES-503), so you will have to change your
> > code...
> >
> > Sorry for that :-)
> >
> > Bruno
> >
> > 2005/9/22, Martin Marinschek <ma...@gmail.com>:
> > > Welcome back Travis, long time no hear ;)
> > >
> > > Want to open an issue on this?
> > >
> > > might be that there has been a change for TCK compatibility.
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > On 9/21/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > I get this with no changes other than replacing jars, code is here:
> > > >
> > > > <h:column>
> > > > <f:facet name="header">
> > > > <h:outputText value="#{bundle['percentage.short']}"/>
> > > > </f:facet>
> > > > <h:outputText
> > > > value="#{campaignBean.percentOfCampaignFulfilled}">
> > > > <f:convertNumber type="percentage"/>
> > > > </h:outputText>
> > > > </h:column>
> > > >
> > > > javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
> > > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
> > > > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> > > > rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
> > > >
> > > > Any ideas?
> > > >
> > > > Travis
> > > >
> > >
> > >
> > > --
> > >
> > > http://www.irian.at
> > > Your JSF powerhouse -
> > > JSF Trainings in English and German
> > >
> >
>
>
>
> --
>
> http://www.irian.at
> Your JSF powerhouse -
> JSF Trainings in English and German
>
Fwd: NumberFormat exception when migrating to 1.1
Posted by Martin Marinschek <ma...@gmail.com>.
Forwarding this to the expert ;)
regards,
Martin
---------- Forwarded message ----------
From: Bruno Aranda <br...@gmail.com>
Date: Sep 22, 2005 10:51 AM
Subject: Re: NumberFormat exception when migrating to 1.1
To: MyFaces Discussion <us...@myfaces.apache.org>, martin@marinschek.com
Looking at this with more detail, there is a difference between the
spec and the javadocs. In the javadocs (and in the TCK) "percent" is
expected - http://java.sun.com/j2ee/javaserverfaces/1.1/docs/api/javax/faces/convert/NumberConverter.html#setType(java.lang.String)
- , while in the spec document (p 9-22) it talks about "percentage".
Which one prevails?
MYFACES-177 was about this....
Bruno
2005/9/22, Bruno Aranda <br...@gmail.com>:
> I did the change. The spec says that is "percent" the accepted value
> and not "percentage" (MYFACES-503), so you will have to change your
> code...
>
> Sorry for that :-)
>
> Bruno
>
> 2005/9/22, Martin Marinschek <ma...@gmail.com>:
> > Welcome back Travis, long time no hear ;)
> >
> > Want to open an issue on this?
> >
> > might be that there has been a change for TCK compatibility.
> >
> > regards,
> >
> > Martin
> >
> > On 9/21/05, Travis Reeder <tr...@gmail.com> wrote:
> > > I get this with no changes other than replacing jars, code is here:
> > >
> > > <h:column>
> > > <f:facet name="header">
> > > <h:outputText value="#{bundle['percentage.short']}"/>
> > > </f:facet>
> > > <h:outputText
> > > value="#{campaignBean.percentOfCampaignFulfilled}">
> > > <f:convertNumber type="percentage"/>
> > > </h:outputText>
> > > </h:column>
> > >
> > > javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
> > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
> > > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> > > rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
> > >
> > > Any ideas?
> > >
> > > Travis
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> > Your JSF powerhouse -
> > JSF Trainings in English and German
> >
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German
Re: NumberFormat exception when migrating to 1.1
Posted by Bruno Aranda <br...@gmail.com>.
Looking at this with more detail, there is a difference between the
spec and the javadocs. In the javadocs (and in the TCK) "percent" is
expected - http://java.sun.com/j2ee/javaserverfaces/1.1/docs/api/javax/faces/convert/NumberConverter.html#setType(java.lang.String)
- , while in the spec document (p 9-22) it talks about "percentage".
Which one prevails?
MYFACES-177 was about this....
Bruno
2005/9/22, Bruno Aranda <br...@gmail.com>:
> I did the change. The spec says that is "percent" the accepted value
> and not "percentage" (MYFACES-503), so you will have to change your
> code...
>
> Sorry for that :-)
>
> Bruno
>
> 2005/9/22, Martin Marinschek <ma...@gmail.com>:
> > Welcome back Travis, long time no hear ;)
> >
> > Want to open an issue on this?
> >
> > might be that there has been a change for TCK compatibility.
> >
> > regards,
> >
> > Martin
> >
> > On 9/21/05, Travis Reeder <tr...@gmail.com> wrote:
> > > I get this with no changes other than replacing jars, code is here:
> > >
> > > <h:column>
> > > <f:facet name="header">
> > > <h:outputText value="#{bundle['percentage.short']}"/>
> > > </f:facet>
> > > <h:outputText
> > > value="#{campaignBean.percentOfCampaignFulfilled}">
> > > <f:convertNumber type="percentage"/>
> > > </h:outputText>
> > > </h:column>
> > >
> > > javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
> > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
> > > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> > > rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
> > >
> > > Any ideas?
> > >
> > > Travis
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> > Your JSF powerhouse -
> > JSF Trainings in English and German
> >
>
Re: NumberFormat exception when migrating to 1.1
Posted by Bruno Aranda <br...@gmail.com>.
I did the change. The spec says that is "percent" the accepted value
and not "percentage" (MYFACES-503), so you will have to change your
code...
Sorry for that :-)
Bruno
2005/9/22, Martin Marinschek <ma...@gmail.com>:
> Welcome back Travis, long time no hear ;)
>
> Want to open an issue on this?
>
> might be that there has been a change for TCK compatibility.
>
> regards,
>
> Martin
>
> On 9/21/05, Travis Reeder <tr...@gmail.com> wrote:
> > I get this with no changes other than replacing jars, code is here:
> >
> > <h:column>
> > <f:facet name="header">
> > <h:outputText value="#{bundle['percentage.short']}"/>
> > </f:facet>
> > <h:outputText
> > value="#{campaignBean.percentOfCampaignFulfilled}">
> > <f:convertNumber type="percentage"/>
> > </h:outputText>
> > </h:column>
> >
> > javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
> > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
> > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> > rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
> >
> > Any ideas?
> >
> > Travis
> >
>
>
> --
>
> http://www.irian.at
> Your JSF powerhouse -
> JSF Trainings in English and German
>
Re: NumberFormat exception when migrating to 1.1
Posted by Travis Reeder <tr...@gmail.com>.
Thanks. ;) I got sidetracked into a different project that was using
struts, but now my new gig is all JSF (yay) so I'll be back in the
game big time now. I wonder if I can still commit and/or if anyone
minds that I do?
Travis
On 9/22/05, Martin Marinschek <ma...@gmail.com> wrote:
> Welcome back Travis, long time no hear ;)
>
> Want to open an issue on this?
>
> might be that there has been a change for TCK compatibility.
>
> regards,
>
> Martin
>
> On 9/21/05, Travis Reeder <tr...@gmail.com> wrote:
> > I get this with no changes other than replacing jars, code is here:
> >
> > <h:column>
> > <f:facet name="header">
> > <h:outputText value="#{bundle['percentage.short']}"/>
> > </f:facet>
> > <h:outputText
> > value="#{campaignBean.percentOfCampaignFulfilled}">
> > <f:convertNumber type="percentage"/>
> > </h:outputText>
> > </h:column>
> >
> > javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
> > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
> > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> > rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
> >
> > Any ideas?
> >
> > Travis
> >
>
>
> --
>
> http://www.irian.at
> Your JSF powerhouse -
> JSF Trainings in English and German
>
Re: NumberFormat exception when migrating to 1.1
Posted by Martin Marinschek <ma...@gmail.com>.
Welcome back Travis, long time no hear ;)
Want to open an issue on this?
might be that there has been a change for TCK compatibility.
regards,
Martin
On 9/21/05, Travis Reeder <tr...@gmail.com> wrote:
> I get this with no changes other than replacing jars, code is here:
>
> <h:column>
> <f:facet name="header">
> <h:outputText value="#{bundle['percentage.short']}"/>
> </f:facet>
> <h:outputText
> value="#{campaignBean.percentOfCampaignFulfilled}">
> <f:convertNumber type="percentage"/>
> </h:outputText>
> </h:column>
>
> javax.servlet.ServletException: Cannot get NumberFormat, illegal type percentage
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
>
> Any ideas?
>
> Travis
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German