App (element)

From JRapid

Jump to: navigation, search

app is the root element in a JRapid AML application definition.



It's the root node of the XML document that defines the JRapid application.


    name = NAME
    basepackage = BASEPACKAGE

The app tag must contain the following attributes:

  • name: name of the application or module.
  • basepackage: indicates the Java base package where all the classes for the project will be created. e.g: com.jrapid.

JRapid Designer

The applications source code can be edited using the JRapid Designer through its visual point and click features or directly in the Source Editor Panel.

Source Editor Panel


  • Empty JRapid application:
<?xml version="1.0" encoding="utf-8"?>
<app name="Main" basepackage="com.myproject" engine="forms-0.9">

    <!-- This file is the input for JRapid Code Generator and it's written using AML (JRapid Application Modeling Language). -->
    <!-- Basically, there are <entity> elements which contain <property> elements, and allow you to design your application. -->
    <!-- Additionally, there are many more elements such as <subset>, <listing>, <filter> or <action> that let you 
         create powerful applications. -->
    <!-- For a AML (JRapid Application Modeling Language) reference, please visit -->

        <usestylesheet location="../jrapid-runtime/css/ui-lightness/jquery-ui-1.8rc2.custom.css" />
        <usescript location="../jrapid-runtime/jquery-1.4.2.min.js" />
        <usescript location="../jrapid-runtime/jquery-ui-1.8rc2.custom.min.js" />
        <usewidget jquery="datepicker" jqueryoptions="{changeMonth: true, changeYear: true, dateFormat: 'dd/mm/yy'}" name="jdatepicker">
            <usescript location="../jrapid-runtime/extras/widget-jdatepicker/js/jquery.ui.datepicker.min.js" />

    <panel name="Index" title="Default main page">
        <header><![CDATA[<h1>JRapid Project</h1>]]></header>
        <menu />


See also

Personal tools