I am trying to learn JSF and doing some basic stuff.
In the <h:form>
should be an <h:inputText>
field. The text written in the textbox should be added in an ArrayList
and this list must be seen in a <h:dataTable>
under the textfield. I don't know how I can iterate in JSF in an ArrayList
and print into view. I also don't know how to add String
s in the ArrayList
. I have done this with Servlet + JSP but I dont know how to do it in JSF.
..here is my code: http://pastebin.com/3jX1jYXH