You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by is_maximum <mn...@gmail.com> on 2007/06/04 14:44:11 UTC
problem with s:timedNotifier
Hi
I put a <s:timedNotifier> in my form as following code
<s:timedNotifier showDelay="3000" hideDelay="3000">
<f:facet name="content">
<h:panelGroup>
<h:messages id="allMsg" layout="table" style="textError"
globalOnly="true" showDetail="false" errorClass="textError"
infoClass="textInfo" />
</h:panelGroup>
</f:facet>
<f:facet name="confirm">
<h:panelGrid style="text-aligm:center" columns="1">
<h:commandButton id="myConfirm" value="OK" />
</h:panelGrid>
</f:facet>
</s:timedNotifier>
for first when the form loads it works fine but I have a submit button on
this form and when I press that button an exception will be shown:
exception
javax.servlet.ServletException: Unsupported component class
org.apache.myfaces.custom.timednotifier.TimedNotifier
javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
org.jboss.seam.servlet.SeamCharacterEncodingFilter.doFilter(SeamCharacterEncodingFilter.java:41)
root cause
java.lang.IllegalArgumentException: Unsupported component class
org.apache.myfaces.custom.timednotifier.TimedNotifier
org.apache.myfaces.custom.timednotifier.TimedNotifierRenderer.decode(TimedNotifierRenderer.java:55)
javax.faces.component.UIComponentBase.decode(UIComponentBase.java:652)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:758)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:754)
javax.faces.component.UIForm.processDecodes(UIForm.java:56)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:754)
javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:138)
org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:32)
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
org.jboss.seam.servlet.SeamCharacterEncodingFilter.doFilter(SeamCharacterEncodingFilter.java:41)
what is the problem???
I am using myfaces 1.1.6 and nightly build of sandbox
(tomahawk-sandbox-1.1.5-SNAPSHOT) and facelets
thank you very much
--
View this message in context: http://www.nabble.com/problem-with-s%3AtimedNotifier-tf3864962.html#a10949048
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: problem with s:timedNotifier
Posted by Werner Punz <we...@gmail.com>.
Question, do you have the timed notifier tag embedded into a form?
Cheers
Werner
is_maximum schrieb:
> No Mike I'm sure this is not the Seam issue, because other components of
> sandbox work fine.
> and Also I studied the source code of the TimedNotifier
> in decode() method it is written an if statement:
>
> if(component instanceof UIInput){
> ....
> }else{
> throw new UnsupportedOperationException("..."); // the exception message
> that I put to this post
> }
>
>
>
> Mike Kienenberger wrote:
>> My apologies. I misread your message as saying Tomahawk 1.1.5 and
>> Sandbox 1.1.6.
>>
>> Have you tried a simple example without Seam? Maybe Seam and
>> Tomahawk have compatibility problems.
>>
>> On 6/5/07, is_maximum <mn...@gmail.com> wrote:
>>> Hi Mike
>>> but all of them are latest version. both sandbox and tomahawk are 1.1.5
>>> the only myfaces core api is 1.1.6
>>>
>>>
>>> Mike Kienenberger wrote:
>>>> I don't think you can safely mix different Tomahawk and Tomahawk
>>>> Sandbox versions.
>>>> These two jar files are tightly-coupled. Be sure you are using jars
>>>> built from the same source.
>>>>
>>>> This is probably also the reason for the other problems you posted.
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/problem-with-s%3AtimedNotifier-tf3864962.html#a10976101
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>
Re: problem with s:timedNotifier
Posted by is_maximum <mn...@gmail.com>.
No Mike I'm sure this is not the Seam issue, because other components of
sandbox work fine.
and Also I studied the source code of the TimedNotifier
in decode() method it is written an if statement:
if(component instanceof UIInput){
....
}else{
throw new UnsupportedOperationException("..."); // the exception message
that I put to this post
}
Mike Kienenberger wrote:
>
> My apologies. I misread your message as saying Tomahawk 1.1.5 and
> Sandbox 1.1.6.
>
> Have you tried a simple example without Seam? Maybe Seam and
> Tomahawk have compatibility problems.
>
> On 6/5/07, is_maximum <mn...@gmail.com> wrote:
>>
>> Hi Mike
>> but all of them are latest version. both sandbox and tomahawk are 1.1.5
>> the only myfaces core api is 1.1.6
>>
>>
>> Mike Kienenberger wrote:
>> >
>> > I don't think you can safely mix different Tomahawk and Tomahawk
>> > Sandbox versions.
>> > These two jar files are tightly-coupled. Be sure you are using jars
>> > built from the same source.
>> >
>> > This is probably also the reason for the other problems you posted.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/problem-with-s%3AtimedNotifier-tf3864962.html#a10976101
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/problem-with-s%3AtimedNotifier-tf3864962.html#a10976418
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: problem with s:timedNotifier
Posted by Mike Kienenberger <mk...@gmail.com>.
My apologies. I misread your message as saying Tomahawk 1.1.5 and
Sandbox 1.1.6.
Have you tried a simple example without Seam? Maybe Seam and
Tomahawk have compatibility problems.
On 6/5/07, is_maximum <mn...@gmail.com> wrote:
>
> Hi Mike
> but all of them are latest version. both sandbox and tomahawk are 1.1.5
> the only myfaces core api is 1.1.6
>
>
> Mike Kienenberger wrote:
> >
> > I don't think you can safely mix different Tomahawk and Tomahawk
> > Sandbox versions.
> > These two jar files are tightly-coupled. Be sure you are using jars
> > built from the same source.
> >
> > This is probably also the reason for the other problems you posted.
> >
> >
>
> --
> View this message in context: http://www.nabble.com/problem-with-s%3AtimedNotifier-tf3864962.html#a10976101
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
Re: problem with s:timedNotifier
Posted by is_maximum <mn...@gmail.com>.
Hi Mike
but all of them are latest version. both sandbox and tomahawk are 1.1.5
the only myfaces core api is 1.1.6
Mike Kienenberger wrote:
>
> I don't think you can safely mix different Tomahawk and Tomahawk
> Sandbox versions.
> These two jar files are tightly-coupled. Be sure you are using jars
> built from the same source.
>
> This is probably also the reason for the other problems you posted.
>
>
--
View this message in context: http://www.nabble.com/problem-with-s%3AtimedNotifier-tf3864962.html#a10976101
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: problem with s:timedNotifier
Posted by Mike Kienenberger <mk...@gmail.com>.
I don't think you can safely mix different Tomahawk and Tomahawk
Sandbox versions.
These two jar files are tightly-coupled. Be sure you are using jars
built from the same source.
This is probably also the reason for the other problems you posted.
On 6/4/07, is_maximum <mn...@gmail.com> wrote:
>
> Hi
>
> I put a <s:timedNotifier> in my form as following code
>
> <s:timedNotifier showDelay="3000" hideDelay="3000">
> <f:facet name="content">
> <h:panelGroup>
> <h:messages id="allMsg" layout="table" style="textError"
> globalOnly="true" showDetail="false" errorClass="textError"
> infoClass="textInfo" />
> </h:panelGroup>
> </f:facet>
> <f:facet name="confirm">
> <h:panelGrid style="text-aligm:center" columns="1">
> <h:commandButton id="myConfirm" value="OK" />
> </h:panelGrid>
> </f:facet>
> </s:timedNotifier>
>
>
> for first when the form loads it works fine but I have a submit button on
> this form and when I press that button an exception will be shown:
>
> exception
>
> javax.servlet.ServletException: Unsupported component class
> org.apache.myfaces.custom.timednotifier.TimedNotifier
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
>
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
>
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
>
> org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
>
> org.jboss.seam.servlet.SeamCharacterEncodingFilter.doFilter(SeamCharacterEncodingFilter.java:41)
>
>
> root cause
>
> java.lang.IllegalArgumentException: Unsupported component class
> org.apache.myfaces.custom.timednotifier.TimedNotifier
>
> org.apache.myfaces.custom.timednotifier.TimedNotifierRenderer.decode(TimedNotifierRenderer.java:55)
> javax.faces.component.UIComponentBase.decode(UIComponentBase.java:652)
>
> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:758)
>
> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:754)
> javax.faces.component.UIForm.processDecodes(UIForm.java:56)
>
> javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:754)
> javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:138)
>
> org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:32)
>
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
>
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
>
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
>
> org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
>
> org.jboss.seam.servlet.SeamCharacterEncodingFilter.doFilter(SeamCharacterEncodingFilter.java:41)
>
>
>
> what is the problem???
>
> I am using myfaces 1.1.6 and nightly build of sandbox
> (tomahawk-sandbox-1.1.5-SNAPSHOT) and facelets
>
> thank you very much
> --
> View this message in context: http://www.nabble.com/problem-with-s%3AtimedNotifier-tf3864962.html#a10949048
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>