facebook

faces-config.xml in jsflogindemo

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #265149 Reply

    Mark Sanders
    Member

    First let me say I have been learning both Java and MyEclipse for less than year now (in my spare time between work and school), and MyEclipse ROCKS!!!

    Q: I was going through the JSFLoginDemo and noticed that on my faces-config.xml that I don’t have the buttons/options for HTML and XML I see in fig 7.1. What am I missing?

    just a side note: I did have some issues getting the demo working, but was able find everything I needed here except one thing that might help others. I added the following lines to the two jsp pages to prevent the site from coming up with a blank page.

    <%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core&#8221; %>
    <%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html&#8221; %>

    I am so diggin on this! 8)

    #265195 Reply

    Riyad Kalla
    Member

    First let me say I have been learning both Java and MyEclipse for less than year now (in my spare time between work and school), and MyEclipse ROCKS!!!

    We appreciate your support and choosing MyEclipse to learn with!

    Q: I was going through the JSFLoginDemo and noticed that on my faces-config.xml that I don’t have the buttons/options for HTML and XML I see in fig 7.1. What am I missing?

    You aren’t missing anything. That was actually a design oversight with an earlier version. JSF has to forward to JSP pages, so it didn’t make sense for us to offer HTML and XML files as targets on that screen, those buttons were removed.

    <%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core&#8221; %>
    <%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html&#8221; %>

    When you use File > New > JSP and select the “Default JSF Template” those should already be at the top of the page. Can confirm this form me?

    #265222 Reply

    Mark Sanders
    Member

    You are correct. The mistake I was making in the demo was when creating my jsp pages. It was set to Default JSP template not Defaul JSF template in step 7 Fig 7.1

    Thanks for the feedback on the question and thanks for the lessons learned – it’s a continuous process. 😀

    #265223 Reply

    Riyad Kalla
    Member

    Keep us posted with what you are finding easy and what you are finding hard. Having feedback from first-time users is very helpful.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: faces-config.xml in jsflogindemo

You must be logged in to post in the forum log in