Re: JSF 2.2 status snapshot usage
Hi, Howard. I'm trying to get MyFaces 2.2's Passthrough Elements and CDI working with a TomEE Snapshot from 2-3 days ago. When I don't use Passthrough Elements, my CDI bean is acknowledge. When I do use Passthrough Elements, my CDI bean is ignored. I've posted a simple web app to GitHub: https://github.com/MungTheWicked/tomee-test.git Can you help me pinpoint what the problem is? -- View this message in context: http://myfaces.10567.n7.nabble.com/JSF-2-2-status-snapshot-usage-tp115852p116323.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: JSF 2.2 status snapshot usage
Hi I tried the test provided with the latest snapshot of myfaces 2.2.x and with a snapshot of tomee and it is working. There is no any relationship between CDI and passthrough elements. From this fragment: body jsf:id=body form jsf:id=form input type=text jsf:id=name pt:placeholder=Enter name jsf:value=#{helloBean.name}/ button jsf:action=welcomeWelcome Me/button /form /body Here is the output: body id=body form id=form name=form method=post action=/tomee-test-1.0.0-SNAPSHOT/hello.jsf view-source:http://localhost:8080/tomee-test-1.0.0-SNAPSHOT/hello.jsf enctype=application/x-www-form-urlencoded input id=form:name name=form:name type=text value= placeholder=Enter name / button id=form:j_id_8 name=form:j_id_8 type=submitWelcome Me/button input type=hidden name=form_SUBMIT value=1 / input type=hidden name=javax.faces.ViewState id=j_id__v_0:javax.faces.ViewState:1 value=KGflqkLizy6aeiWE+tznW4f+m6KKaOQ3GYAzpEGWPUMmMmaR / /form /body regards, Leonardo Uribe 2013/10/27 ChrisHarris ch...@oneseasonmusic.com Hi, Howard. I'm trying to get MyFaces 2.2's Passthrough Elements and CDI working with a TomEE Snapshot from 2-3 days ago. When I don't use Passthrough Elements, my CDI bean is acknowledge. When I do use Passthrough Elements, my CDI bean is ignored. I've posted a simple web app to GitHub: https://github.com/MungTheWicked/tomee-test.git Can you help me pinpoint what the problem is? -- View this message in context: http://myfaces.10567.n7.nabble.com/JSF-2-2-status-snapshot-usage-tp115852p116323.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: JSF 2.2 status snapshot usage
Nice response, Leonardo. Chris, it might be best to post your question on tomee's user list. On Sun, Oct 27, 2013 at 4:44 PM, Leonardo Uribe lu4...@gmail.com wrote: Hi I tried the test provided with the latest snapshot of myfaces 2.2.x and with a snapshot of tomee and it is working. There is no any relationship between CDI and passthrough elements. From this fragment: body jsf:id=body form jsf:id=form input type=text jsf:id=name pt:placeholder=Enter name jsf:value=#{helloBean.name}/ button jsf:action=welcomeWelcome Me/button /form /body Here is the output: body id=body form id=form name=form method=post action=/tomee-test-1.0.0-SNAPSHOT/hello.jsf view-source:http://localhost:8080/tomee-test-1.0.0-SNAPSHOT/hello.jsf enctype=application/x-www-form-urlencoded input id=form:name name=form:name type=text value= placeholder=Enter name / button id=form:j_id_8 name=form:j_id_8 type=submitWelcome Me/button input type=hidden name=form_SUBMIT value=1 / input type=hidden name=javax.faces.ViewState id=j_id__v_0:javax.faces.ViewState:1 value=KGflqkLizy6aeiWE+tznW4f+m6KKaOQ3GYAzpEGWPUMmMmaR / /form /body regards, Leonardo Uribe 2013/10/27 ChrisHarris ch...@oneseasonmusic.com Hi, Howard. I'm trying to get MyFaces 2.2's Passthrough Elements and CDI working with a TomEE Snapshot from 2-3 days ago. When I don't use Passthrough Elements, my CDI bean is acknowledge. When I do use Passthrough Elements, my CDI bean is ignored. I've posted a simple web app to GitHub: https://github.com/MungTheWicked/tomee-test.git Can you help me pinpoint what the problem is? -- View this message in context: http://myfaces.10567.n7.nabble.com/JSF-2-2-status-snapshot-usage-tp115852p116323.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: JSF 2.2 status snapshot usage
Hi @Karl use https://repository.apache.org/content/repositories/snapshotshttps://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/only in the url I did the same steps with the simple helloworld application (change a bean and set it to view scope and finally add beans.xml into WEB-INF folder) and it works without any changes. I have not seen the message mentioned. I have checked if we have registered ViewScopeContextExtension somewhere else but it is not. This extension is registered using SPI, and we have right now three extensions (flow scope, view scope, flow). The message is suspicious, because there is no indications in the code that could cause the problem. Note I took tomee web-profile jars. Maybe something related to your test environment? could you please check that?. regards, Leonardo Uribe 2013/9/29 Howard W. Smith, Jr. smithh032...@gmail.com also, i did some regression testing with my app (was not using any new features of MyFaces/JSF 2.2), and I can report that my app is working good with MyFaces 2.2.0 (snapshot version that I downloaded within last 2 days). On Fri, Sep 27, 2013 at 11:36 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: 1. downloaded the 2013-09-27 tomee+ JAR 2. downloaded 2013-09-27 myfaces 2.2 api + impl JARs 3. extracted tomee+ JAR, and copied myfaces 2.2 JARs to tomee/lib 4. marked a bean in my app with MyFaces 2.2 @ViewScoped (javax.faces.view.ViewScoped) import javax.faces.view.ViewScoped; @Named @ViewScoped public class MessengerBean implements Serializable { which has @PostConstruct and @PreDestroy methods, and slf4j logger in both of those methods 5. built project, dropped WAR in tomee/webapps, started tommee+ 6. saw the following, which is /definitely/ related to OWB-894[1], which has not been fixed, yet Sep 27, 2013 11:02:24 PM org.apache.webbeans.config.BeansDeployer isValidManagedBean INFO: skipped deployment of: org.apache.myfaces.cdi.view.ViewScopeContextExtension reason: Bean implementation class can not implement javax.enterprise.inject.spi.Extension.! 6. logged into my app, and began testing the myfaces 2.2 @ViewScoped bean (MessengerBean); below is login, 'render' view via ui:include src=#{bean.dynamicInclude} and close view twice Sep 27, 2013 11:06:35 PM jsf.users.pf_UsersController loginUser INFO: administrator logged in at 09/27/2013 11:06 PM Sep 27, 2013 11:06:54 PM pf.MessengerBean init INFO: pf.MessengerBean@7a26d557 Sep 27, 2013 11:06:54 PM javax.faces.component._ExternalSpecifications isBeanValidationAvailable INFO: MyFaces Bean Validation support enabled Sep 27, 2013 11:07:03 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@7a26d557 Sep 27, 2013 11:07:25 PM pf.MessengerBean init INFO: pf.MessengerBean@1d124610 Sep 27, 2013 11:07:39 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@1d124610 7. next, I 'rendered' via again via ui:include src=#{bean.dynamicInclude}; look at the bean ID Sep 27, 2013 11:08:57 PM pf.MessengerBean init INFO: pf.MessengerBean@7b868842 8. did a GET by pressing F5 key in browser (google chrome), so new bean was constructed and the previous bean is still out there in la-la land :) Sep 27, 2013 11:09:13 PM pf.MessengerBean init INFO: pf.MessengerBean@58375a42 9. close view similar to what I did in #6 above...via commandButton/PrimeFaces-menuitem POST action=#{bean.methodThatReturnsNonNullOutcome} Sep 27, 2013 11:09:22 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@58375a42 10. did a GET immediately after POST in #9 above, and bean was constructed and destroyed Sep 27, 2013 11:09:32 PM pf.MessengerBean init INFO: pf.MessengerBean@77ed8c1a Sep 27, 2013 11:09:32 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@77ed8c1a 11. rendered view again like I did in # 6 and 7, above Sep 27, 2013 11:10:05 PM pf.MessengerBean init INFO: pf.MessengerBean@37a1a0e5 12. did a user logout, which invokes session.invalidate(), but the bean in la-la land (see #8 above) is not destroyed 'immediately' and the bean constructed via #11 above has not be destroyed (which means it is out there in la-la land, somewhere). :) Sep 27, 2013 11:11:35 PM jsf.users.pf_UsersController logout INFO: administrator logged out at 09/27/2013 11:11 PM FYI, OmniFaces CDI @ViewScoped[2] is doing something to ensure that the bean is destroyed immediately at/after session.invalidate(). [1] https://issues.apache.org/jira/browse/OWB-894 [2] http://code.google.com/p/omnifaces/issues/detail?id=201 On Thu, Sep 26, 2013 at 9:39 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Wow, very interesting response, Leonardo, thanks! I just clicked the 'star' on your email (in my gmail), and going to have to download latest tomee and do some MyFaces/JSF 2.2 testing with my
Re: JSF 2.2 status snapshot usage
also, i did some regression testing with my app (was not using any new features of MyFaces/JSF 2.2), and I can report that my app is working good with MyFaces 2.2.0 (snapshot version that I downloaded within last 2 days). On Fri, Sep 27, 2013 at 11:36 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: 1. downloaded the 2013-09-27 tomee+ JAR 2. downloaded 2013-09-27 myfaces 2.2 api + impl JARs 3. extracted tomee+ JAR, and copied myfaces 2.2 JARs to tomee/lib 4. marked a bean in my app with MyFaces 2.2 @ViewScoped (javax.faces.view.ViewScoped) import javax.faces.view.ViewScoped; @Named @ViewScoped public class MessengerBean implements Serializable { which has @PostConstruct and @PreDestroy methods, and slf4j logger in both of those methods 5. built project, dropped WAR in tomee/webapps, started tommee+ 6. saw the following, which is /definitely/ related to OWB-894[1], which has not been fixed, yet Sep 27, 2013 11:02:24 PM org.apache.webbeans.config.BeansDeployer isValidManagedBean INFO: skipped deployment of: org.apache.myfaces.cdi.view.ViewScopeContextExtension reason: Bean implementation class can not implement javax.enterprise.inject.spi.Extension.! 6. logged into my app, and began testing the myfaces 2.2 @ViewScoped bean (MessengerBean); below is login, 'render' view via ui:include src=#{bean.dynamicInclude} and close view twice Sep 27, 2013 11:06:35 PM jsf.users.pf_UsersController loginUser INFO: administrator logged in at 09/27/2013 11:06 PM Sep 27, 2013 11:06:54 PM pf.MessengerBean init INFO: pf.MessengerBean@7a26d557 Sep 27, 2013 11:06:54 PM javax.faces.component._ExternalSpecifications isBeanValidationAvailable INFO: MyFaces Bean Validation support enabled Sep 27, 2013 11:07:03 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@7a26d557 Sep 27, 2013 11:07:25 PM pf.MessengerBean init INFO: pf.MessengerBean@1d124610 Sep 27, 2013 11:07:39 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@1d124610 7. next, I 'rendered' via again via ui:include src=#{bean.dynamicInclude}; look at the bean ID Sep 27, 2013 11:08:57 PM pf.MessengerBean init INFO: pf.MessengerBean@7b868842 8. did a GET by pressing F5 key in browser (google chrome), so new bean was constructed and the previous bean is still out there in la-la land :) Sep 27, 2013 11:09:13 PM pf.MessengerBean init INFO: pf.MessengerBean@58375a42 9. close view similar to what I did in #6 above...via commandButton/PrimeFaces-menuitem POST action=#{bean.methodThatReturnsNonNullOutcome} Sep 27, 2013 11:09:22 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@58375a42 10. did a GET immediately after POST in #9 above, and bean was constructed and destroyed Sep 27, 2013 11:09:32 PM pf.MessengerBean init INFO: pf.MessengerBean@77ed8c1a Sep 27, 2013 11:09:32 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@77ed8c1a 11. rendered view again like I did in # 6 and 7, above Sep 27, 2013 11:10:05 PM pf.MessengerBean init INFO: pf.MessengerBean@37a1a0e5 12. did a user logout, which invokes session.invalidate(), but the bean in la-la land (see #8 above) is not destroyed 'immediately' and the bean constructed via #11 above has not be destroyed (which means it is out there in la-la land, somewhere). :) Sep 27, 2013 11:11:35 PM jsf.users.pf_UsersController logout INFO: administrator logged out at 09/27/2013 11:11 PM FYI, OmniFaces CDI @ViewScoped[2] is doing something to ensure that the bean is destroyed immediately at/after session.invalidate(). [1] https://issues.apache.org/jira/browse/OWB-894 [2] http://code.google.com/p/omnifaces/issues/detail?id=201 On Thu, Sep 26, 2013 at 9:39 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Wow, very interesting response, Leonardo, thanks! I just clicked the 'star' on your email (in my gmail), and going to have to download latest tomee and do some MyFaces/JSF 2.2 testing with my app...when/as I get bandwidth to do so. I think I saw you posting a few (MyFaces/JSF 2.2) things (recently) in tomee's JIRA, but have not been on tomee's JIRA for at least 1 or 2 weeks now. This is definitely good news and glad to see the progress, especially since I was previously-and-initially a Mojarra user, and now-and-continuously, a happy-and-most-likely-will-be-a-loyal MyFaces (Core) user! :) On Thu, Sep 26, 2013 at 9:11 AM, Leonardo Uribe lu4...@gmail.com wrote: Hi Howard JSF spec is always one step behind servlet spec, so in this case MyFaces 2.2.x is tested against tomcat 7, so there are no plans for test in tomcat 8, but in the recent times most of the testing code has been done using junit (running myfaces in a junit test specially designed for that). There are just a couple of features that needs a full test using a web server (like the file upload component, which cannot be tested properly in a junit test). If it works in tomcat 7, it will definitively work in tomcat
Re: JSF 2.2 status snapshot usage
Sorry I feel like I should be able to figure it out by myself but I'm not getting it to work with maven. I added dependency groupIdorg.apache.myfaces.core/groupId artifactIdmyfaces-bundle/artifactId version2.2.0-20130926.083155-1528/version /dependency Also tried with 2.2.0-SNAPSHOT I have: repository idapache.snapshots/id nameApache Development Snapshot Repository/name url https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/ /url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository Also tried to point it to root. What am I missing? Cheers On 26 September 2013 10:37, Leonardo Uribe lu4...@gmail.com wrote: Hi For the people interested in the topic, the code right now in trunk is almost complete, in fact I'm on the final steps to release a beta, but I have to hunt down all minor issues left. If you want to try: - HTML5 Friendly Markup - Resource Library Contracts - Faces Flows - Stateless Views - FlowScoped and ViewScoped - Dynamic component creation (vdl.createComponent(...) MYFACES-3733) - CSRF view protection - f:viewAction - File Upload Component (remember jetty 8 is broken in that part, it works with tomcat 7) You can do it. The code looks just great, but keep in mind that the devil is on the details. The list of pending points before MyFaces Beta is this: - RendererWrapper logic (@ListenerFor and @ResourceDependency) - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-766 Events from the flash - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1028 Deprecate StateManager, point to StateManagementStrategy. In StateManagementStrategy, require the use of the visit API to perform the saving. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-763 Change Section 5.4 “Managed Bean Annotations” to account for new injectability requirements. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1164 If running in a container that supports EL 3.0, add the necessary ELResolvers. See Section 5.6.2.8 “Stream, StaticField, Map, List, Array, and Bean ELResolvers”. http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1169 - New XML Namespace for XSD files introduced in JSF 2.2, and also for facelet tag libraries. The following XSD files are new for JSF 2.2, and each will be in the XML namespace http://xmlns.jcp.org/xml/ns/javaee. web-facelettaglibrary_2_2.xsd web-facesconfig_2_2.xsd web-partialresponse_2_2.xsd It is a small list, but anyway it requires some time to get it done, and it does not include the necessary tasks to do a code cleanup before the official release. I have pushed a new snapshot here: https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/ https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/myfaces-bundle/2.2.0-SNAPSHOT/myfaces-bundle-2.2.0-20130926.083155-1528.jar regards, Leonardo Uribe 2013/9/26 Thomas Andraschko andraschko.tho...@gmail.com Hi Karl, AFAICS in JIRA, 2.2 should be feature complete. Maybe Leo can give a small update about the status :) Regards, Thomas 2013/9/26 Karl Kildén karl.kil...@gmail.com Hello, First off what's the recommended way to get a hold of a current myfaces snapshot, preferably with maven? I am eager to try parts of JSF 2.2. I've been snooping around in jira to get a sense of the completeness level of JSF 2.2 but I felt I might as well ask... - HTML Friendly Markup? - FlowScoped and ViewScoped? Thanks again for Myfaces! Cheers
Re: JSF 2.2 status snapshot usage
1. downloaded the 2013-09-27 tomee+ JAR 2. downloaded 2013-09-27 myfaces 2.2 api + impl JARs 3. extracted tomee+ JAR, and copied myfaces 2.2 JARs to tomee/lib 4. marked a bean in my app with MyFaces 2.2 @ViewScoped (javax.faces.view.ViewScoped) import javax.faces.view.ViewScoped; @Named @ViewScoped public class MessengerBean implements Serializable { which has @PostConstruct and @PreDestroy methods, and slf4j logger in both of those methods 5. built project, dropped WAR in tomee/webapps, started tommee+ 6. saw the following, which is /definitely/ related to OWB-894[1], which has not been fixed, yet Sep 27, 2013 11:02:24 PM org.apache.webbeans.config.BeansDeployer isValidManagedBean INFO: skipped deployment of: org.apache.myfaces.cdi.view.ViewScopeContextExtension reason: Bean implementation class can not implement javax.enterprise.inject.spi.Extension.! 6. logged into my app, and began testing the myfaces 2.2 @ViewScoped bean (MessengerBean); below is login, 'render' view via ui:include src=#{bean.dynamicInclude} and close view twice Sep 27, 2013 11:06:35 PM jsf.users.pf_UsersController loginUser INFO: administrator logged in at 09/27/2013 11:06 PM Sep 27, 2013 11:06:54 PM pf.MessengerBean init INFO: pf.MessengerBean@7a26d557 Sep 27, 2013 11:06:54 PM javax.faces.component._ExternalSpecifications isBeanValidationAvailable INFO: MyFaces Bean Validation support enabled Sep 27, 2013 11:07:03 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@7a26d557 Sep 27, 2013 11:07:25 PM pf.MessengerBean init INFO: pf.MessengerBean@1d124610 Sep 27, 2013 11:07:39 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@1d124610 7. next, I 'rendered' via again via ui:include src=#{bean.dynamicInclude}; look at the bean ID Sep 27, 2013 11:08:57 PM pf.MessengerBean init INFO: pf.MessengerBean@7b868842 8. did a GET by pressing F5 key in browser (google chrome), so new bean was constructed and the previous bean is still out there in la-la land :) Sep 27, 2013 11:09:13 PM pf.MessengerBean init INFO: pf.MessengerBean@58375a42 9. close view similar to what I did in #6 above...via commandButton/PrimeFaces-menuitem POST action=#{bean.methodThatReturnsNonNullOutcome} Sep 27, 2013 11:09:22 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@58375a42 10. did a GET immediately after POST in #9 above, and bean was constructed and destroyed Sep 27, 2013 11:09:32 PM pf.MessengerBean init INFO: pf.MessengerBean@77ed8c1a Sep 27, 2013 11:09:32 PM pf.MessengerBean releaseResources INFO: pf.MessengerBean@77ed8c1a 11. rendered view again like I did in # 6 and 7, above Sep 27, 2013 11:10:05 PM pf.MessengerBean init INFO: pf.MessengerBean@37a1a0e5 12. did a user logout, which invokes session.invalidate(), but the bean in la-la land (see #8 above) is not destroyed 'immediately' and the bean constructed via #11 above has not be destroyed (which means it is out there in la-la land, somewhere). :) Sep 27, 2013 11:11:35 PM jsf.users.pf_UsersController logout INFO: administrator logged out at 09/27/2013 11:11 PM FYI, OmniFaces CDI @ViewScoped[2] is doing something to ensure that the bean is destroyed immediately at/after session.invalidate(). [1] https://issues.apache.org/jira/browse/OWB-894 [2] http://code.google.com/p/omnifaces/issues/detail?id=201 On Thu, Sep 26, 2013 at 9:39 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Wow, very interesting response, Leonardo, thanks! I just clicked the 'star' on your email (in my gmail), and going to have to download latest tomee and do some MyFaces/JSF 2.2 testing with my app...when/as I get bandwidth to do so. I think I saw you posting a few (MyFaces/JSF 2.2) things (recently) in tomee's JIRA, but have not been on tomee's JIRA for at least 1 or 2 weeks now. This is definitely good news and glad to see the progress, especially since I was previously-and-initially a Mojarra user, and now-and-continuously, a happy-and-most-likely-will-be-a-loyal MyFaces (Core) user! :) On Thu, Sep 26, 2013 at 9:11 AM, Leonardo Uribe lu4...@gmail.com wrote: Hi Howard JSF spec is always one step behind servlet spec, so in this case MyFaces 2.2.x is tested against tomcat 7, so there are no plans for test in tomcat 8, but in the recent times most of the testing code has been done using junit (running myfaces in a junit test specially designed for that). There are just a couple of features that needs a full test using a web server (like the file upload component, which cannot be tested properly in a junit test). If it works in tomcat 7, it will definitively work in tomcat 8 without trouble. I have already run MyFaces 2.2.x in tomee, just changing the jars, but it was required to fix some lines of code in tomee, so for now it works with the latest snapshot. There is still pending some code cleanup in MyFaces Core 2.2.x, and those changes could potentially affect tomee compatibility, but it is necessary to do it. I'll try to avoid changes on
JSF 2.2 status snapshot usage
Hello, First off what's the recommended way to get a hold of a current myfaces snapshot, preferably with maven? I am eager to try parts of JSF 2.2. I've been snooping around in jira to get a sense of the completeness level of JSF 2.2 but I felt I might as well ask... - HTML Friendly Markup? - FlowScoped and ViewScoped? Thanks again for Myfaces! Cheers
Re: JSF 2.2 status snapshot usage
Hi Karl, AFAICS in JIRA, 2.2 should be feature complete. Maybe Leo can give a small update about the status :) Regards, Thomas 2013/9/26 Karl Kildén karl.kil...@gmail.com Hello, First off what's the recommended way to get a hold of a current myfaces snapshot, preferably with maven? I am eager to try parts of JSF 2.2. I've been snooping around in jira to get a sense of the completeness level of JSF 2.2 but I felt I might as well ask... - HTML Friendly Markup? - FlowScoped and ViewScoped? Thanks again for Myfaces! Cheers
Re: JSF 2.2 status snapshot usage
Hi For the people interested in the topic, the code right now in trunk is almost complete, in fact I'm on the final steps to release a beta, but I have to hunt down all minor issues left. If you want to try: - HTML5 Friendly Markup - Resource Library Contracts - Faces Flows - Stateless Views - FlowScoped and ViewScoped - Dynamic component creation (vdl.createComponent(...) MYFACES-3733) - CSRF view protection - f:viewAction - File Upload Component (remember jetty 8 is broken in that part, it works with tomcat 7) You can do it. The code looks just great, but keep in mind that the devil is on the details. The list of pending points before MyFaces Beta is this: - RendererWrapper logic (@ListenerFor and @ResourceDependency) - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-766 Events from the flash - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1028 Deprecate StateManager, point to StateManagementStrategy. In StateManagementStrategy, require the use of the visit API to perform the saving. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-763 Change Section 5.4 “Managed Bean Annotations” to account for new injectability requirements. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1164 If running in a container that supports EL 3.0, add the necessary ELResolvers. See Section 5.6.2.8 “Stream, StaticField, Map, List, Array, and Bean ELResolvers”. http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1169 - New XML Namespace for XSD files introduced in JSF 2.2, and also for facelet tag libraries. The following XSD files are new for JSF 2.2, and each will be in the XML namespace http://xmlns.jcp.org/xml/ns/javaee. web-facelettaglibrary_2_2.xsd web-facesconfig_2_2.xsd web-partialresponse_2_2.xsd It is a small list, but anyway it requires some time to get it done, and it does not include the necessary tasks to do a code cleanup before the official release. I have pushed a new snapshot here: https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/ https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/myfaces-bundle/2.2.0-SNAPSHOT/myfaces-bundle-2.2.0-20130926.083155-1528.jar regards, Leonardo Uribe 2013/9/26 Thomas Andraschko andraschko.tho...@gmail.com Hi Karl, AFAICS in JIRA, 2.2 should be feature complete. Maybe Leo can give a small update about the status :) Regards, Thomas 2013/9/26 Karl Kildén karl.kil...@gmail.com Hello, First off what's the recommended way to get a hold of a current myfaces snapshot, preferably with maven? I am eager to try parts of JSF 2.2. I've been snooping around in jira to get a sense of the completeness level of JSF 2.2 but I felt I might as well ask... - HTML Friendly Markup? - FlowScoped and ViewScoped? Thanks again for Myfaces! Cheers
Re: JSF 2.2 status snapshot usage
What a great reply! I will have a blast testing it, thanks a lot for pushing a new snapshot and everything. Cheers On 26 September 2013 10:37, Leonardo Uribe lu4...@gmail.com wrote: Hi For the people interested in the topic, the code right now in trunk is almost complete, in fact I'm on the final steps to release a beta, but I have to hunt down all minor issues left. If you want to try: - HTML5 Friendly Markup - Resource Library Contracts - Faces Flows - Stateless Views - FlowScoped and ViewScoped - Dynamic component creation (vdl.createComponent(...) MYFACES-3733) - CSRF view protection - f:viewAction - File Upload Component (remember jetty 8 is broken in that part, it works with tomcat 7) You can do it. The code looks just great, but keep in mind that the devil is on the details. The list of pending points before MyFaces Beta is this: - RendererWrapper logic (@ListenerFor and @ResourceDependency) - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-766 Events from the flash - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1028 Deprecate StateManager, point to StateManagementStrategy. In StateManagementStrategy, require the use of the visit API to perform the saving. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-763 Change Section 5.4 “Managed Bean Annotations” to account for new injectability requirements. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1164 If running in a container that supports EL 3.0, add the necessary ELResolvers. See Section 5.6.2.8 “Stream, StaticField, Map, List, Array, and Bean ELResolvers”. http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1169 - New XML Namespace for XSD files introduced in JSF 2.2, and also for facelet tag libraries. The following XSD files are new for JSF 2.2, and each will be in the XML namespace http://xmlns.jcp.org/xml/ns/javaee. web-facelettaglibrary_2_2.xsd web-facesconfig_2_2.xsd web-partialresponse_2_2.xsd It is a small list, but anyway it requires some time to get it done, and it does not include the necessary tasks to do a code cleanup before the official release. I have pushed a new snapshot here: https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/ https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/myfaces-bundle/2.2.0-SNAPSHOT/myfaces-bundle-2.2.0-20130926.083155-1528.jar regards, Leonardo Uribe 2013/9/26 Thomas Andraschko andraschko.tho...@gmail.com Hi Karl, AFAICS in JIRA, 2.2 should be feature complete. Maybe Leo can give a small update about the status :) Regards, Thomas 2013/9/26 Karl Kildén karl.kil...@gmail.com Hello, First off what's the recommended way to get a hold of a current myfaces snapshot, preferably with maven? I am eager to try parts of JSF 2.2. I've been snooping around in jira to get a sense of the completeness level of JSF 2.2 but I felt I might as well ask... - HTML Friendly Markup? - FlowScoped and ViewScoped? Thanks again for Myfaces! Cheers
Re: JSF 2.2 status snapshot usage
+1 for asking this question and for the responses, so far. Leonardo, you mentioned that the stack works with tomcat7. has MyFaces 2.2(.x) been testing against tomcat8, or will MyFaces 2.2(.x) be tested against tomcat8? i'm sure when tomcat8 and myFaces 2.2(.x) work together to meet JSF 2.2 requirements, then I'm sure tomee will be onboard with that stack, too. how has the chatter been between myfaces and tomee about adapting MyFaces 2.2(.x) ? On Thu, Sep 26, 2013 at 4:51 AM, Karl Kildén karl.kil...@gmail.com wrote: What a great reply! I will have a blast testing it, thanks a lot for pushing a new snapshot and everything. Cheers On 26 September 2013 10:37, Leonardo Uribe lu4...@gmail.com wrote: Hi For the people interested in the topic, the code right now in trunk is almost complete, in fact I'm on the final steps to release a beta, but I have to hunt down all minor issues left. If you want to try: - HTML5 Friendly Markup - Resource Library Contracts - Faces Flows - Stateless Views - FlowScoped and ViewScoped - Dynamic component creation (vdl.createComponent(...) MYFACES-3733) - CSRF view protection - f:viewAction - File Upload Component (remember jetty 8 is broken in that part, it works with tomcat 7) You can do it. The code looks just great, but keep in mind that the devil is on the details. The list of pending points before MyFaces Beta is this: - RendererWrapper logic (@ListenerFor and @ResourceDependency) - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-766 Events from the flash - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1028 Deprecate StateManager, point to StateManagementStrategy. In StateManagementStrategy, require the use of the visit API to perform the saving. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-763 Change Section 5.4 “Managed Bean Annotations” to account for new injectability requirements. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1164 If running in a container that supports EL 3.0, add the necessary ELResolvers. See Section 5.6.2.8 “Stream, StaticField, Map, List, Array, and Bean ELResolvers”. http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1169 - New XML Namespace for XSD files introduced in JSF 2.2, and also for facelet tag libraries. The following XSD files are new for JSF 2.2, and each will be in the XML namespace http://xmlns.jcp.org/xml/ns/javaee. web-facelettaglibrary_2_2.xsd web-facesconfig_2_2.xsd web-partialresponse_2_2.xsd It is a small list, but anyway it requires some time to get it done, and it does not include the necessary tasks to do a code cleanup before the official release. I have pushed a new snapshot here: https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/ https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/myfaces-bundle/2.2.0-SNAPSHOT/myfaces-bundle-2.2.0-20130926.083155-1528.jar regards, Leonardo Uribe 2013/9/26 Thomas Andraschko andraschko.tho...@gmail.com Hi Karl, AFAICS in JIRA, 2.2 should be feature complete. Maybe Leo can give a small update about the status :) Regards, Thomas 2013/9/26 Karl Kildén karl.kil...@gmail.com Hello, First off what's the recommended way to get a hold of a current myfaces snapshot, preferably with maven? I am eager to try parts of JSF 2.2. I've been snooping around in jira to get a sense of the completeness level of JSF 2.2 but I felt I might as well ask... - HTML Friendly Markup? - FlowScoped and ViewScoped? Thanks again for Myfaces! Cheers
Re: JSF 2.2 status snapshot usage
Hi Howard JSF spec is always one step behind servlet spec, so in this case MyFaces 2.2.x is tested against tomcat 7, so there are no plans for test in tomcat 8, but in the recent times most of the testing code has been done using junit (running myfaces in a junit test specially designed for that). There are just a couple of features that needs a full test using a web server (like the file upload component, which cannot be tested properly in a junit test). If it works in tomcat 7, it will definitively work in tomcat 8 without trouble. I have already run MyFaces 2.2.x in tomee, just changing the jars, but it was required to fix some lines of code in tomee, so for now it works with the latest snapshot. There is still pending some code cleanup in MyFaces Core 2.2.x, and those changes could potentially affect tomee compatibility, but it is necessary to do it. I'll try to avoid changes on myfaces spi code as much as possible, to avoid changes (and pain!) in server integration code, but there is no any warrant in that part, because we haven't do a cleanup since 1.0 and it is necessary to remove some unused classes / code and some incomplete features that are there but then were included in the spec or they have been forgotten over the time. I already did some performance test on the code, and it has not been found any regressions in this part. An snapshot of tomee can be found here: https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/ pick the latest one in 1.6.0-SNAPSHOT regards, Leonardo Uribe 2013/9/26 Howard W. Smith, Jr. smithh032...@gmail.com +1 for asking this question and for the responses, so far. Leonardo, you mentioned that the stack works with tomcat7. has MyFaces 2.2(.x) been testing against tomcat8, or will MyFaces 2.2(.x) be tested against tomcat8? i'm sure when tomcat8 and myFaces 2.2(.x) work together to meet JSF 2.2 requirements, then I'm sure tomee will be onboard with that stack, too. how has the chatter been between myfaces and tomee about adapting MyFaces 2.2(.x) ? On Thu, Sep 26, 2013 at 4:51 AM, Karl Kildén karl.kil...@gmail.com wrote: What a great reply! I will have a blast testing it, thanks a lot for pushing a new snapshot and everything. Cheers On 26 September 2013 10:37, Leonardo Uribe lu4...@gmail.com wrote: Hi For the people interested in the topic, the code right now in trunk is almost complete, in fact I'm on the final steps to release a beta, but I have to hunt down all minor issues left. If you want to try: - HTML5 Friendly Markup - Resource Library Contracts - Faces Flows - Stateless Views - FlowScoped and ViewScoped - Dynamic component creation (vdl.createComponent(...) MYFACES-3733) - CSRF view protection - f:viewAction - File Upload Component (remember jetty 8 is broken in that part, it works with tomcat 7) You can do it. The code looks just great, but keep in mind that the devil is on the details. The list of pending points before MyFaces Beta is this: - RendererWrapper logic (@ListenerFor and @ResourceDependency) - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-766 Events from the flash - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1028 Deprecate StateManager, point to StateManagementStrategy. In StateManagementStrategy, require the use of the visit API to perform the saving. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-763 Change Section 5.4 “Managed Bean Annotations” to account for new injectability requirements. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1164 If running in a container that supports EL 3.0, add the necessary ELResolvers. See Section 5.6.2.8 “Stream, StaticField, Map, List, Array, and Bean ELResolvers”. http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1169 - New XML Namespace for XSD files introduced in JSF 2.2, and also for facelet tag libraries. The following XSD files are new for JSF 2.2, and each will be in the XML namespace http://xmlns.jcp.org/xml/ns/javaee. web-facelettaglibrary_2_2.xsd web-facesconfig_2_2.xsd web-partialresponse_2_2.xsd It is a small list, but anyway it requires some time to get it done, and it does not include the necessary tasks to do a code cleanup before the official release. I have pushed a new snapshot here: https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/ https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/myfaces-bundle/2.2.0-SNAPSHOT/myfaces-bundle-2.2.0-20130926.083155-1528.jar regards, Leonardo Uribe 2013/9/26 Thomas Andraschko andraschko.tho...@gmail.com Hi Karl, AFAICS in JIRA, 2.2 should be feature complete. Maybe Leo can give a small update about the status :) Regards,
Re: JSF 2.2 status snapshot usage
Wow, very interesting response, Leonardo, thanks! I just clicked the 'star' on your email (in my gmail), and going to have to download latest tomee and do some MyFaces/JSF 2.2 testing with my app...when/as I get bandwidth to do so. I think I saw you posting a few (MyFaces/JSF 2.2) things (recently) in tomee's JIRA, but have not been on tomee's JIRA for at least 1 or 2 weeks now. This is definitely good news and glad to see the progress, especially since I was previously-and-initially a Mojarra user, and now-and-continuously, a happy-and-most-likely-will-be-a-loyal MyFaces (Core) user! :) On Thu, Sep 26, 2013 at 9:11 AM, Leonardo Uribe lu4...@gmail.com wrote: Hi Howard JSF spec is always one step behind servlet spec, so in this case MyFaces 2.2.x is tested against tomcat 7, so there are no plans for test in tomcat 8, but in the recent times most of the testing code has been done using junit (running myfaces in a junit test specially designed for that). There are just a couple of features that needs a full test using a web server (like the file upload component, which cannot be tested properly in a junit test). If it works in tomcat 7, it will definitively work in tomcat 8 without trouble. I have already run MyFaces 2.2.x in tomee, just changing the jars, but it was required to fix some lines of code in tomee, so for now it works with the latest snapshot. There is still pending some code cleanup in MyFaces Core 2.2.x, and those changes could potentially affect tomee compatibility, but it is necessary to do it. I'll try to avoid changes on myfaces spi code as much as possible, to avoid changes (and pain!) in server integration code, but there is no any warrant in that part, because we haven't do a cleanup since 1.0 and it is necessary to remove some unused classes / code and some incomplete features that are there but then were included in the spec or they have been forgotten over the time. I already did some performance test on the code, and it has not been found any regressions in this part. An snapshot of tomee can be found here: https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/ pick the latest one in 1.6.0-SNAPSHOT regards, Leonardo Uribe 2013/9/26 Howard W. Smith, Jr. smithh032...@gmail.com +1 for asking this question and for the responses, so far. Leonardo, you mentioned that the stack works with tomcat7. has MyFaces 2.2(.x) been testing against tomcat8, or will MyFaces 2.2(.x) be tested against tomcat8? i'm sure when tomcat8 and myFaces 2.2(.x) work together to meet JSF 2.2 requirements, then I'm sure tomee will be onboard with that stack, too. how has the chatter been between myfaces and tomee about adapting MyFaces 2.2(.x) ? On Thu, Sep 26, 2013 at 4:51 AM, Karl Kildén karl.kil...@gmail.com wrote: What a great reply! I will have a blast testing it, thanks a lot for pushing a new snapshot and everything. Cheers On 26 September 2013 10:37, Leonardo Uribe lu4...@gmail.com wrote: Hi For the people interested in the topic, the code right now in trunk is almost complete, in fact I'm on the final steps to release a beta, but I have to hunt down all minor issues left. If you want to try: - HTML5 Friendly Markup - Resource Library Contracts - Faces Flows - Stateless Views - FlowScoped and ViewScoped - Dynamic component creation (vdl.createComponent(...) MYFACES-3733) - CSRF view protection - f:viewAction - File Upload Component (remember jetty 8 is broken in that part, it works with tomcat 7) You can do it. The code looks just great, but keep in mind that the devil is on the details. The list of pending points before MyFaces Beta is this: - RendererWrapper logic (@ListenerFor and @ResourceDependency) - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-766 Events from the flash - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1028 Deprecate StateManager, point to StateManagementStrategy. In StateManagementStrategy, require the use of the visit API to perform the saving. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-763 Change Section 5.4 “Managed Bean Annotations” to account for new injectability requirements. - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1164 If running in a container that supports EL 3.0, add the necessary ELResolvers. See Section 5.6.2.8 “Stream, StaticField, Map, List, Array, and Bean ELResolvers”. http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1169 - New XML Namespace for XSD files introduced in JSF 2.2, and also for facelet tag libraries. The following XSD files are new for JSF 2.2, and each will be in the XML namespace http://xmlns.jcp.org/xml/ns/javaee. web-facelettaglibrary_2_2.xsd