axel framework

The framework builds web pages using instructions, commonly known as actions, placed inside each page.


Details on how to use each action are shown in the tutorials. You'll also learn how to build and deploy web applications. How to connect to backend and external resources such as databases and json feeds.

To get started you need some knowledge on command line such as windows cmd, using a browser and a basic understanding of html.


The Axel Core Schema

The schema details the axel core actions and their attributes.

As an example - the code action has three attribures which are

  • param - @see the param on how this works
  • call - this is the full package.class.method name to call in the java code
  • key - if we want to store the result of the call for later use we add it to the execContex with the key.
This would look like:

            
<axel:code call="package.class.method">
    <axel:param value="A parameter"/>
    <axel:param value="Another parameter"/>
</axel:code>
            
        

The List of Types shows the options available when an action references a type. As an example - thehttp action references method_options which defaults to 'get'.

List of Actions

1 code action

attributetypeusedefaultminoccurs
param required 0
call xsd:string required 1
key xsd:string required 1

2 http action

attributetypeusedefaultminoccurs
param required 0
method method_options required get 1
href xsd:string required 1
key xsd:string required 1

3 param action

attributetypeusedefaultminoccurs
value xsd:string optional 1
name xsd:string optional 1
type param_converter_types optional String 1
key xsd:string optional 1

4 insert action

attributetypeusedefaultminoccurs
page xsd:string required 1
path xsd:string optional 1
namespace xsd:string optional axel 1
remove_html true_false_options optional true 1

5 insert_into action

attributetypeusedefaultminoccurs
page xsd:string required 1
path xsd:string optional 1
namespace xsd:string optional axel 1
key xsd:string required 1
remove_html true_false_options optional true 1

6 echo action

attributetypeusedefaultminoccurs

7 if action

attributetypeusedefaultminoccurs
expression required 1

8 elseif action

attributetypeusedefaultminoccurs
expression required 1

9 else action

attributetypeusedefaultminoccurs

10 put action

attributetypeusedefaultminoccurs
key xsd:string required 1
value xsd:string optional 1

11 remove action

attributetypeusedefaultminoccurs
key xsd:string required 1

12 get action

attributetypeusedefaultminoccurs
key xsd:string required 1

13 json_get action

attributetypeusedefaultminoccurs
json_data xsd:string required 1
json_path xsd:string required 1
key xsd:string optional 1
index xsd:integer required 1
row_map_name xsd:string optional row 1

14 eval action

attributetypeusedefaultminoccurs
expression xsd:string optional 1
key xsd:string optional 1

15 date_formatter action

attributetypeusedefaultminoccurs
date_value xsd:string required 1
origin_format xsd:string required 1
destination_format xsd:string required 1
key xsd:string optional 1

16 transform action

attributetypeusedefaultminoccurs
param required 0
xslt_file_name xsd:string required 1
xml_file_name xsd:string optional 1
xml_ref xsd:string optional 1
key xsd:string optional 1
transformer_factory xsd:string optional 1

17 escape action

attributetypeusedefaultminoccurs
ref_key xsd:string required 1
key xsd:string optional 1
format xsd:string required 1

18 unescape action

attributetypeusedefaultminoccurs
ref_key xsd:string required 1
key xsd:string optional 1
format xsd:string required 1

19 debug action

attributetypeusedefaultminoccurs
level debug_options required 1

20 log action

attributetypeusedefaultminoccurs
key xsd:string optional 1

21 range action

attributetypeusedefaultminoccurs
name xsd:string required 1
from xsd:string required 1
to xsd:string required 1
random xsd:boolean optional false 1

22 map_xml_to_bean action

attributetypeusedefaultminoccurs
map_file_name xsd:string required 1
xml_key xsd:string required 1
xml_file_name xsd:string required 1
key xsd:string required 1

23 map_bean_to_xml action

attributetypeusedefaultminoccurs
map_file_name xsd:string required 1
bean_key xsd:string required 1
key xsd:string required 1

24 script action

attributetypeusedefaultminoccurs
param required 0
fileName xsd:string optional 1
key xsd:string optional 1

25 map_xml_to_presentation action

attributetypeusedefaultminoccurs
form required 0
xml_filename xsd:string optional 1
xml_data xsd:string optional 1
xml_path xsd:string required 1
presentation_form required 1
row_map_name xsd:string optional row 1

26 map_json_to_presentation action

attributetypeusedefaultminoccurs
form required 0
json_data xsd:string optional 1
json_filename xsd:string optional 1
json_path xsd:string optional 1
presentation_form required 1
row_map_name xsd:string optional row 1

27 map_xml_to_json action

attributetypeusedefaultminoccurs
xml_filename xsd:string optional 1
xml_ref xsd:string optional 1
key xsd:string optional 1
escape_xml xsd:boolean optional true 1
path xsd:string optional 1
xml_path xsd:string optional 1

28 text_format action

attributetypeusedefaultminoccurs
text xsd:string required 1
format xsd:string required 1
key xsd:string optional 1

29 text_cut action

attributetypeusedefaultminoccurs
text xsd:string required 1
from xsd:string optional 1
to xsd:string optional 1
key xsd:string optional 1

30 text_replace action

attributetypeusedefaultminoccurs
text xsd:string required 1
pattern xsd:string required 1
replace xsd:string required 1
key xsd:string optional 1

31 content_type action

attributetypeusedefaultminoccurs
value xsd:string required 1

32 form action

attributetypeusedefaultminoccurs

List of Types

1 debug_options

options: none,debug,info,warn,error

2 popup_display_options

options: self,iframe,other

3 output_format_options

options: html,json,xml

4 method_options

options: post,get

5 link_display_options

options: link,button,menu

6 true_false_options

options: true,false

7 left_right_options

options: left,right

8 label_position_options

options: left,above

9 alignment_options

options: left,center,right

10 valignment_options

options: top,middle,bottom

11 direction_options

options: down,across

12 position_options

options: top,bottom,left,right

13 position

options: absolute,relative

14 search_display_options

options: default,select

15 list_populator_types

options: sql_ref

16 param_converter_types

options: boolean,byte,short,int,long,float,double,char,String,object

17 xml_json

options: xml,json