RichardK
RichardK

Reputation: 3471

Java JSF h:outPutText - no tag was defined

I'm trying to implement example from Java EE book, where JSF 2.0 was used. I'm using JSF 2.2 and this is example straight from the book:

xmlns:h="http://java.sun.com/jsf/html">

<h:outPutText value="#{notowanie.dzien}" >
                            <f:convertDateTime dateStyle="short" type="date" />
                            </h:outputText>

It doesn't work like this:

HTTP Status 500 - Error Parsing /historia.xhtml: Error Traced[line: 25] The element type "h:outPutText" must be terminated by the matching end-tag "".

So I changed it to:

<h:outPutText value="#{notowanie.dzien}" />
                            <f:convertDateTime dateStyle="short" type="date" />

HTTP Status 500 - /historia.xhtml @23,49 Tag Library supports namespace: http://java.sun.com/jsf/html, but no tag was defined for name: outPutText

What am I doing wrong here ?

Upvotes: 0

Views: 1017

Answers (1)

Beri
Beri

Reputation: 11600

Tried h:outputText ? With no camelcase?

http://www.jsftoolbox.com/documentation/help/12-TagReference/html/h_outputText.html

Upvotes: 3

Related Questions