Skip to content

Ada Server Faces - Web Server Faces JSR 252, JSR 314 and JSR 344

License

Notifications You must be signed in to change notification settings

stcarrez/ada-asf

Repository files navigation

Ada Server Faces

Alire Alire Build Status Test Status Coverage Documentation Status Download License GitLab Commits

Ada Server Faces allows to create web applications using the same pattern as the Java Server Faces (See JSR 252, JSR 314 and JSR 344).

It is part of Ada Web Application framework.

Version 1.6.1 - Sep 2024

  • Cleanup build environment to drop configure

List all versions

Using with Alire

If you are using Alire in your project, run the following command within your Alire project to use the library:

alr with serverfaces

If you want to use the Ada Server Faces library in a web server, you must choose a servlet web container that will handle the requests. Two web server implementations are provided:

and you should run one of the following alr command depending on your choice:

alr with servletada_aws
alr with servletada_ews

Using without Alire

If you don't have Alire or want to build and install the library on a specific place, run a setup command to configure the build as well as installation directory.

The HAVE_ALIRE configuration allows you to disable the build with Alire.

make setup BUILD=debug PREFIX=/build/install HAVE_ALIRE=no

Since this build method does not verify that all dependencies are met, make sure that you have already built and install the following components and they are available to gprbuild through ADA_PROJECT_PATH if needed:

Then build, run the unit tests and install by using:

make
make test
make install

To use the installed libraries, make sure your ADA_PROJECT_PATH contains the directory where you installed the libraries (configured by the PREFIX=<path> option in the setup phase). The installed GNAT projects are the same as those used when using Alire.

The installation is done by running the install target:

make install

If you want to install on a specific place, you can change the prefix and indicate the installation direction as follows:

make install prefix=/opt

Documentation

Tutorial

Components

The following tags are supported:

Documentation Namespace Tags
JSTL xmlns:c="http://java.sun.com/jstl/core" <c:set>, <c:if>, <c:choose>, <c:when>, <c:otherwise>
Facelets xmlns:ui="http://java.sun.com/jsf/facelets" ui:composition, ui:define, ui:decorate, ui:include, ui:insert, ui:param
JSF Core xmlns:f="http://java.sun.com/jsf/core" <f:attribute>, <f:convertDateTime>, <f:converter>, <f:facet>, <f:metadata>, <f:param>, <f:selectItem>, <f:selectItems>, <f:validateLength>, <f:validateLongRange>, <f:validateRegex>, <f:validator>, <f:view>, <f:viewAction>, <f:viewParam>
JSF HTML xmlns:h="http://java.sun.com/jsf/html" <h:body>, <h:commandButton>, <h:form>, <h:head>, <h:inputFile>, <h:inputHidden>, <h:inputSecret>, <h:inputText>, <h:inputTextarea>, <h:list>, <h:message>, <h:messages>, <h:ouputFormat>, <h:outputLabel>, <h:outputLink>, <h:outputText>, <h:panelGroup>, <h:selectBooleanCheckbox>, <h:selectOneMenu>, <h:selectOneRadio>
Widget xmlns:w="http://code.google.com/p/ada-asf/widget" <w:accordion>, <w:autocomplete>, <w:chosen>, <w:inputDate>, <w:inputText>, <w:gravatar>, <w:like>, <w:panel>, <w:tab>, <w:tabView>
Util xmlns:util="http://code.google.com/p/ada-asf/util" util:escape, util:file, util:flush, util:script

Licenses

Ada Server Faces integrates the Javascript library jQuery licensed under MIT or GPL (See https://jquery.org/license/).

Ada Server Faces integrates a generated version of 960 grid system licensed under MIT or GPL (See https://960.gs/ and https://grids.heroku.com/ for the CSS generator).