Skip to content

Instantly share code, notes, and snippets.

@koenighotze
Created September 28, 2015 21:49
Show Gist options
  • Save koenighotze/46408dcab0dfac530874 to your computer and use it in GitHub Desktop.
Save koenighotze/46408dcab0dfac530874 to your computer and use it in GitHub Desktop.
Hello World with List
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsf="http://xmlns.jcp.org/jsf">
<body>
<form jsf:id="form">
What is your name: <input type="text" jsf:value="#{hello.name}"/>
<input type="submit" value="Greet me" jsf:actionListener="#{helloController.storeName(hello)}" jsf:action="hello.xhtml"/>
</form>
<br/>
<div>
Hellos thus far:<br/>
#{helloController.helloSoFar()}
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment