Class FormDesignerTemplateBean

  • All Implemented Interfaces:
    Serializable

    @RequestScoped
    @Named("formDesignerTemplateBean")
    public class FormDesignerTemplateBean
    extends Object
    implements Serializable
    Bean for the form designer. Creates the list of available templates, and handles saving templates.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • FormDesignerTemplateBean

        public FormDesignerTemplateBean()
    • Method Detail

      • createFormTemplate

        public void createFormTemplate()
        Remote command that creates a new templates from the request and persists it.
      • deleteFormTemplate

        public void deleteFormTemplate()
        Remote command that deletes the template with the given ID.
      • getTagsAndTemplates

        public void getTagsAndTemplates()
        Remote command that returns all available tags and adds the FormTemplate with the given ID to the list.
      • getTemplateImage

        public org.primefaces.model.StreamedContent getTemplateImage​(long templateId)
        Bean callback that fetches the image of the given template.
        Parameters:
        templateId - ID of the template for which to retrieve the image.
        Returns:
        The image of the given template
      • updateFormTemplate

        public void updateFormTemplate()
        Remote command that updates the template with the ID with the given data.