myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Wessendorf <mat...@apache.org>
Subject Re: f:event throwing ClassNotFoundException for type
Date Tue, 16 Mar 2010 16:46:45 GMT
right, and also there is some lack of description about the shortnames
in the spec
(don't remember the spec issue number, I filed for that)

-Matthias

On Tue, Mar 16, 2010 at 9:24 AM, Leonardo Uribe <lu4242@gmail.com> wrote:
> Hi
>
> There was a problem about f:event "name" and "type" attribute. Finally it
> was clearified the real attribute is "type", but this attribute also has the
> semantic of name, so the code proposed is valid. I'll create and issue and
> fix it soon.
>
> regards,
>
> Leonardo Uribe
>
> 2010/3/16 Marcus Büttner <mb@buett.at>
>
>> Hi,
>>
>> but if you will register the name you have to take the "name" property
>> instead of "type" in f:event.
>> The type property requires a class name.
>>
>> Isn't?
>>
>> regards,
>> Marcus
>>
>> Leonardo Uribe schrieb:
>>
>>  Hi
>>>
>>> It seems we don't have it on org.apache.myfaces.config.NamedEventManager,
>>> so
>>> f:event is unable to resolve it correctly. Just register it there will
>>> solve
>>> the problem.
>>>
>>> regards,
>>>
>>> Leonardo Uribe
>>>
>>> 2010/3/16 Bruno Aranda <brunoaranda@gmail.com>
>>>
>>>
>>>
>>>> Hi,
>>>>
>>>> I am testing a webapp with the latest myfaces snapshot, and the f:event
>>>> tag
>>>> is throwing a ClassNotFoundException because it is not able to find the
>>>> type
>>>> "preRenderView"...
>>>>
>>>> <f:event type="preRenderView"
>>>> listener="#{experimentController.loadData}"/>
>>>>
>>>> Why is it trying to search for the class "preRenderView"? Is this
>>>> familiar
>>>> to anyone before I dig further?
>>>>
>>>> javax.faces.view.facelets.TagAttributeException:
>>>> /viewMetadata/curate/experiment.xhtml at line 16 and column 88
>>>> type="preRenderView" Couldn't create event class
>>>>       at
>>>>
>>>> org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler.getEventClass(EventHandler.java:152)
>>>>       at
>>>>
>>>> org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler.apply(EventHandler.java:94)
>>>>       at
>>>>
>>>> javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:51)
>>>>       at
>>>>
>>>> org.apache.myfaces.view.facelets.tag.jsf.core.ViewMetadataHandler.apply(ViewMetadataHandler.java:76)
>>>>       at
>>>>
>>>> org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:57)
>>>>       at
>>>>
>>>> org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:45)
>>>>       at
>>>>
>>>> org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:104)
>>>>       at
>>>>
>>>> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage$FaceletViewMetadata.createMetadataView(FaceletViewDeclarationLanguage.java:2076)
>>>>       at
>>>>
>>>> org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:148)
>>>>       at
>>>>
>>>> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:143)
>>>>       at
>>>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:93)
>>>>       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
>>>>       at
>>>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
>>>>       at
>>>>
>>>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216)
>>>>       at
>>>>
>>>> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
>>>>       at
>>>>
>>>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
>>>>       at
>>>>
>>>> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
>>>>
>>>>       ...
>>>>
>>>>
>>>> The thing works fine with Mojarra.
>>>>
>>>> Cheers,
>>>>
>>>> Bruno
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Mime
View raw message