Giter Site home page Giter Site logo

joinfaces / joinfaces Goto Github PK

View Code? Open in Web Editor NEW
385.0 21.0 90.0 7.12 MB

JoinFaces: JSF Spring Boot Starters - JSF inside Spring Boot Application

Home Page: http://joinfaces.org

License: Apache License 2.0

Java 94.76% HTML 0.58% CSS 4.66%
joinfaces spring-boot jsf spring-security starters primefaces butterfaces bootsfaces tomcat jetty

joinfaces's Issues

ClassCastException when HandlerWrappers are added via spring-boot for jetty starter

Referring to https://github.com/spring-projects/spring-boot/blob/50e0bb2d9ca3d4d649ec55d135381102c6b6737d/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java#L166

If either of server header or gzip compression is enabled, HandlerWrappers are added and this line breaks throwing ClassCastException. Server.getHandler() does not return WebAppContext anymore.

My first reaction was adding @Order to JettySpringBootAutoConfiguration but it did not work. Solution would be like;

          Handler[] childHandlersByClass = server.getChildHandlersByClass(WebAppContext.class);
           WebAppContext webAppContext = (WebAppContext) childHandlersByClass[0];

Keep up good work btw! Thanks!

Create jsf-springboot-integration module

The JSF Spring Boot Integration module should include code related to integration JSF and Spring Boot.
For example, JSF and CDI annotations to spring scope solution should migrate to it.

Rationalize configuration properties

I had a quick look at the code and I can see a lot of different prefixes for the configuration. A few thoughts:

  • Maybe it would be nicer if all options were gathered under a common prefix (something like jsf if that makes sense?)
  • If splitting the configuration by components is a good thing, maybe we should use the name of the component rather than a package name. This is a bit unusual compared to other libraries.

What do you think?

Jetty and Undertow support?

Hey,

We are considering to move your project but seems a notice in homepage about tomcat. Is this library working only Tomcat? Ideally a Spring Boot starter would be run with Jetty and Undertow as well.

Thanks for sharing.

Remove RequestContextListener definition from MojarraSpringBootAutoConfiguration

RequestContextListener bean definition blocks WebMvcAutoConfigurations RequestContextFilter bean to be defined.

https://github.com/spring-projects/spring-boot/blob/v1.3.5.RELEASE/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java#L184

Hence ServletRequestAttributes is not set appropriately (ie. HttpServletResponse is not set).

The very same configuration is present for MyFaces also.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.