0

I've created a simple JSF-Page with only one <h:commandLink> from the JSF HTML Library. Unfortunately the link is just shown as text and is therefore not clickable.

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title><ui:insert name="title">Title</ui:insert></title>
    </h:head>

    <h:body>
        <div id="header"></div>

        <h:form id="form">
            <div id="content">
                <h:commandLink action="courseList">Courses</h:commandLink>
            </div>
        </h:form>

        <div id="footer">
            <ui:insert name="footer">
            </ui:insert>
        </div>
    </h:body>

I am just trying to add an simple link to the page "courseList". What can be the problem?

Tiny
  • 27,221
  • 105
  • 339
  • 599
John
  • 795
  • 3
  • 15
  • 38

1 Answers1

0

Try with this

<h:commandLink action="courseList" value="Courses"/>
Predrag Maric
  • 23,938
  • 5
  • 52
  • 68
  • Unfortunately no luck. Link is not visible at all. – John Jan 05 '15 at 15:50
  • 2
    Then probably the project isn't configured properly. I guess if you look at the page source of your first try, you'll see the `` source, which means the page isn't processed. – Predrag Maric Jan 05 '15 at 15:52