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.

To build the Ada Keystore you will need the GNAT Ada compiler as well as the Alire package manager.

Version 1.6.1 - Under development

  • Cleanup build environment to drop configure

Version 1.6.0 - Aug 2023

  • Improvement of <f:viewParam> to accept a from EL expression to setup the value
  • Add util:parseJSON() EL function
  • Integrate jQuery UI 1.13.2, jQuery 3.7.0, jQuery Chosen 2.2.1, jQuery Datetime picker 2.5.22
  • Fix #4: Support to build with -gnatW8
  • Feature #2: Upgrade dropzone to 6.0

List all versions

Build with Alire

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

Build for Ada Server Faces development

You can also build and install the library and install it as follows (but the Alire setup is prefered):

make

After building, it is good practice to run the unit tests before installing the library. The unit tests are built and executed using:

make test

And unit tests are executed by running the bin/asf_harness test program.

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).