Data privacy notice

 

When this content is loaded, usage information is transmitted to Vimeo and may be processed there.

 

             

Portal

Modified on Mon, 17 Jul, 2023 at 9:12 AM

In order to integrate custom pages with cusom UIs into formcycle, a class has to be created which implements the interface IPluginPortal.


String getContextName() 

Returns the context name of the portal, which defines the URL for accessing the portal. The URL for accessing the form has the following form: http://<server>/<formcycle>/<contextName>

This allows you to create custom JSF pages.

Once you do so, you can

  • create a Java web servlet class in the plugin with the annotation @WebServlet. When you upload the plugin, the system scans the JAR files for these classes and registers them automatically. You can then access this web servlet in the context name you defined in the portal plugin.
  • create XHTMLfiles in the resource directory (for a normal Maven project, this is src/main/resources). You can then access these XHTML files in the context name you defined in the portal plugin.
  • create JSF bean classes with the annotation @Named and an appropriate scope such as @ViewScope. These bean classes are recognized automatically as well and are available in your XHTML pages.
  • create JSF validator classes and JSF converter classes with the annotations @FacesValiator and @Converter. These classes too are recogized and registered and are also available in your XHTML pages.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article