Java Portal Framework PagesΒΆ

A JPF page is a basic components for any JPF module. A page can be in either of 4 modes. The modes are:

  1. Template : A page in template mode will output html using thymeleaf as the templating language.

  2. Redirect : A page in redirect mode can consist of source code in groovy and redirect to another page after the page has been executed.

  3. JSON : A page in json mode consist of source code in groovy and will return the return value in json format.

  4. API : A page in api mode consist of source code in groovy and will return the return value in json format. Main difference with JSON mode is that it will not validate form submission with csrf as it will use the basic auth header to validate user for the use in an api.

There are some reserve words for the slug. These are explained further in the Special Pages section.

When a page is marked as runable, then you can execute groovy code in the contents of that page. Refer to the Using Groovy in a JPF Page for more information.