Java Reference
In-Depth Information
Again, there is nothing special about the Person class; it's just a simple CDI named
bean with private properties and corresponding setter and getter methods.
We can execute our application as usual by right-clicking on the project and
selecting Run .
After a few seconds, the browser should pop up and render our JSF page.
When we click on the Submit button, control goes to the controller we discussed
in the previous section. Then, we navigate to the JSF page displaying the JSON
representation of the Person object.
Here is the markup of the JSF page displaying the JSON string:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns=""
Search WWH ::

Custom Search