You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Paul Spencer <pa...@apache.org> on 2006/07/12 20:40:44 UTC

Exception in 1.1.4-SNAPSHOT after validation error while using

(Tomahawk 1.1.4-SNAPSHOT, MyFaces 1.1.4-SNAPSHOT)
I have a Tabbed panel with 3 tabs.  If a validation error is displayed on the current tab, then
the following exception report will be returned when a another tab is selected and serverSideTabSwitch="true".

javax.faces.FacesException: Value is no String (class=org.apache.myfaces.shared_impl.renderkit.RendererUtils$1, 
value=org.apache.myfaces.shared_impl.renderkit.RendererUtils$1@ecb5eb) and component _idJsp235:reportTypewith path: {Component-Path : [Class: 
javax.faces.component.UIViewRoot,ViewId: /query.jsp][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: _idJsp1][Class: 
org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: _idJsp232][Class: javax.faces.component.html.HtmlForm,Id: _idJsp235][Class: 
javax.faces.component.html.HtmlPanelGrid,Id: _idJsp291][Class: javax.faces.component.html.HtmlSelectOneRadio,Id: reportType]} does not have a Converter
	org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
	org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
	org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)



Do I need to report this as an issue?

Paul Spencer

Re: Exception in 1.1.4-SNAPSHOT after validation error while using

Posted by Paul Spencer <pa...@apache.org>.
Gerald,
Below is related JSP code.

   <h:selectOneRadio id="reportType" layout="pageDirection" value="#{processQueryBean.reportType}" required="true">
     <f:selectItems value="#{processQueryBean.reportTypes}" />
   </h:selectOneRadio>

Does this help?

Paul Spencer

Gerald Müllan wrote:
> Hi Paul,
> 
> I think this is not an issue of tabbedPane, it`s an issue of your
> HtmlSelectOneRadio component.
> 
> How do you initialize the <SelectItem> list bound to the menu?
> 
> If there is an object as value, you have to take care of it via a 
> converter.
> 
> cheers,
> 
> Gerald
> 
> On 7/12/06, Paul Spencer <pa...@apache.org> wrote:
>> (Tomahawk 1.1.4-SNAPSHOT, MyFaces 1.1.4-SNAPSHOT)
>> I have a Tabbed panel with 3 tabs.  If a validation error is displayed 
>> on the current tab, then
>> the following exception report will be returned when a another tab is 
>> selected and serverSideTabSwitch="true".
>>
>> javax.faces.FacesException: Value is no String 
>> (class=org.apache.myfaces.shared_impl.renderkit.RendererUtils$1,
>> value=org.apache.myfaces.shared_impl.renderkit.RendererUtils$1@ecb5eb) 
>> and component _idJsp235:reportTypewith path: {Component-Path : [Class:
>> javax.faces.component.UIViewRoot,ViewId: /query.jsp][Class: 
>> org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: 
>> _idJsp1][Class:
>> org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: 
>> _idJsp232][Class: javax.faces.component.html.HtmlForm,Id: 
>> _idJsp235][Class:
>> javax.faces.component.html.HtmlPanelGrid,Id: _idJsp291][Class: 
>> javax.faces.component.html.HtmlSelectOneRadio,Id: reportType]} does 
>> not have a Converter
>>         
>> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422) 
>>
>>         
>> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) 
>>
>>         
>> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
>>         javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>>         
>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) 
>>
>>
>>
>>
>> Do I need to report this as an issue?
>>
>> Paul Spencer
>>
> 
> 


Re: Exception in 1.1.4-SNAPSHOT after validation error while using

Posted by Gerald Müllan <bi...@gmail.com>.
Hi Paul,

I think this is not an issue of tabbedPane, it`s an issue of your
HtmlSelectOneRadio component.

How do you initialize the <SelectItem> list bound to the menu?

If there is an object as value, you have to take care of it via a converter.

cheers,

Gerald

On 7/12/06, Paul Spencer <pa...@apache.org> wrote:
> (Tomahawk 1.1.4-SNAPSHOT, MyFaces 1.1.4-SNAPSHOT)
> I have a Tabbed panel with 3 tabs.  If a validation error is displayed on the current tab, then
> the following exception report will be returned when a another tab is selected and serverSideTabSwitch="true".
>
> javax.faces.FacesException: Value is no String (class=org.apache.myfaces.shared_impl.renderkit.RendererUtils$1,
> value=org.apache.myfaces.shared_impl.renderkit.RendererUtils$1@ecb5eb) and component _idJsp235:reportTypewith path: {Component-Path : [Class:
> javax.faces.component.UIViewRoot,ViewId: /query.jsp][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: _idJsp1][Class:
> org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: _idJsp232][Class: javax.faces.component.html.HtmlForm,Id: _idJsp235][Class:
> javax.faces.component.html.HtmlPanelGrid,Id: _idJsp291][Class: javax.faces.component.html.HtmlSelectOneRadio,Id: reportType]} does not have a Converter
>         org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
>         org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>         org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
>         javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>         org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
>
>
>
> Do I need to report this as an issue?
>
> Paul Spencer
>


-- 
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
gerald.muellan@gmail.com