0

I have a JSF-File. Wanna take a name during the input field... But the field ist not showing after running the file. I can see only WHATS YOUR NAME in the browser.

Thx and greetings :)

<?xml version="1.0" encoding="UTF-8"?>
<!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:h="http://java.sun.com/jsf/html">
<h:head>
    <title>index 2</title>
</h:head>
<h:body>
    <h:form>
        Whats your Name?<br/>
        <h:inputText value="#(user.name)"/>
        <h:commandButton action="greet" value="GO"/>
    </h:form>
</h:body>
</html>
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • Just to be sure, what does 'view-source' in the browser show you? Something identical to the xhtml above? – Kukeltje Jan 13 '17 at 23:15
  • I think you are using the EL expression in an wrong way, instead of `#(user.name)` use `#{user.name}` – Jorge Campos Jan 14 '17 at 00:08
  • Hi guys....thx for the quick response...@Kukeltje the browser shows me only "What your name?"...not more – Bartolomeo Jan 14 '17 at 02:57
  • @JorgeCampos doesnt working with "{" instead of "("....but thx for the idea – Bartolomeo Jan 14 '17 at 02:58
  • What does your web.xml look like ? please add it to the question. – Esteban Rincon Jan 14 '17 at 12:15
  • @estebanrincon Thx for your response. I added the web.xml now – Bartolomeo Jan 14 '17 at 19:47
  • @Bartolomeo: I said VIEW SOURCE, not the result of rendering the page itself... please read better next time what comments are made. But BalusC already marked it as a duplicate since he thinks, just like I do, you have indeed a problem mentioned in the duplicate – Kukeltje Jan 14 '17 at 23:47
  • @Kukeltje sry my mistake, I read the existing question after Balus marked it....I changed the web.xml file... i getting a new error now. Thx for your help and time – Bartolomeo Jan 15 '17 at 03:40
  • You should not reuse an old question for a new question. Ask a new question for a new question. – BalusC Jan 15 '17 at 08:43

0 Answers0