myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <>
Subject [jira] [Commented] (MYFACES-4160) ViewState not written for Ajax request
Date Sun, 08 Oct 2017 15:19:00 GMT


Werner Punz commented on MYFACES-4160:

I would  be ready to commit however.

before committing it I would like to check the the code in the JSF - CDI example app. However
I cannot get it up and running, there are several issues.
a) The code references websockets, but the pom.xml does not have a websocket reference - thats
easy to fix.
b) Whenever I dump the war into Tomcat I get a CDI error:

08-Oct-2017 17:09:45.158 SCHWERWIEGEND [main] org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces
An error occured while initializing MyFaces: It's not allowed to call getBeans(Type, Annotation...)
before AfterBeanDiscovery
 java.lang.IllegalStateException: It's not allowed to call getBeans(Type, Annotation...) before
	at org.apache.webbeans.container.InjectableBeanManager.checkAfterBeanDiscoveryProcessed(
	at org.apache.webbeans.container.InjectableBeanManager.getBeans(
	at org.apache.myfaces.cdi.util.CDIUtils.lookup(
	at org.apache.myfaces.flow.cdi.DefaultCDIFacesFlowProvider.getAnnotatedFlows(
	at org.apache.myfaces.flow.impl.AnnotatedFlowConfigurator.configureAnnotatedFlows(
	at org.apache.myfaces.config.FacesConfigurator.configureFlowHandler(
	at org.apache.myfaces.config.FacesConfigurator.configure(
	at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(
	at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(

This must be fixed on the codeside. Shall I open a Jira issue for that one?

So there is no real way to test this stuff atm. I ran my usual integration tests (which I
host on github sort of as a workspace for myself) which I use for development. but a final
test on my side is still pending.

Shall I push the code anyway and someone with a working running config wants to test it? The
changes do not break anything, my about 15 or so tests I have on the code pass perfectly,
but I would love to see the new behavior to be tested (aka the namespaced changes).

> ViewState not written for Ajax request
> --------------------------------------
>                 Key: MYFACES-4160
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.0-beta
>            Reporter: Thomas Andraschko
>            Assignee: Werner Punz
>             Fix For: 2.3.0
> If you run the application from MYFACES-4156 via mvn jetty:run, the viewStateId isn't
rendered again after the first ajax request.
> Seems like FaceletViewDeclerationLanguage line 1910 should handle that but it skips.
> [~lu4242] Could you please check that?

This message was sent by Atlassian JIRA

View raw message