X

Geertjan's Blog

  • October 30, 2014

MVC in Java EE 8

Geertjan Wielenga
Product Manager

The new MVC, well discussed by Ed Burns here, has a demo in Manfred Riem's blog here, and looks like this as a Maven-based application in NetBeans IDE:

Working on some tools in NetBeans IDE to support the above, e.g., a project wizard that generates the basic artifacts above. 

Join the discussion

Comments ( 9 )
  • guest Tuesday, November 4, 2014

    I am trying to get Manfred Riem's example to work, but get

    java.lang.IllegalArgumentException: Cant create Lifecycle for id: com.sun.faces.action.ActionLifecycle

    and

    Caused by: java.lang.NullPointerException at javax.faces.webapp.FacesServlet.uninitHttpMethodValidityVerification(FacesServlet.java:503)


  • guest Tuesday, November 4, 2014

    In WEB-INF/faces-config.xml:

    <factory>

    <lifecycle-factory>com.sun.faces.action.ActionLifecycleFactory</lifecycle-factory>

    </factory>


  • guest Tuesday, November 4, 2014

    Thanks!


  • Geertjan Tuesday, November 4, 2014

    Great to hear! And maybe you could drop me a mail (geertjan dot wielenga at oracle dot com) because it might be nice to be in touch with some early adopters and you could try out early versions of the NetBeans plugin I'm working on.


  • Manfred Tuesday, November 4, 2014

    The reason why you need to specify the LifecycleFactory is because we did not want the default runtime to kick in the action style.


  • George Ogalo Wednesday, November 12, 2014

    Can you kindly direct me to a tutorial that has a complete development of a web application in Java EE using EJBs and JSF. I am new to Java EE and would like to Develop my web application in JSF and EJB (without using JPA but instead executing mysql procedures) but i dont know where to start. Thank you


  • Geertjan Wednesday, November 12, 2014

    Here's one: https://netbeans.org/kb/docs/javaee/cdi-intro.html I'd recommend you reconsider using JPA.


  • George Ogalo Wednesday, November 12, 2014

    Sir, the problem is that i dont have a choice. The system was already implemented in PHP and I am just migrating it to Java EE and the DBAs have just offered me Stored Procedures to execute for the purpose of fetching and storing data.


  • Geertjan Wednesday, November 12, 2014

    OK, the best place for architecture discussions is not a blog. Can you join a mailing list and have your discussion there? Find a Java EE mailing list and join it.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.