4.5Ajax setting up

4.5.1The AjaxZone tag

Description

The « AjaxZone » tag defines which items and which zones must have an Ajax behavior.

Example

Rendering

output_html_6375a54f.png


XHTML

settings


<bluage:AjaxZone id="salutationSelection">

<bluage:Select id="slc_salutation"

instancenamelist="salutationList"

instancename="instanceSalutation"

tablefield="Salutation.id"

listkey="Salutation.value"

listvalue="Salutation.id"

action="true">

<select>

<option value="1">Mr</option>

<option value="2">Mrs</option>

</select>

</bluage:Select>

<bluage:DynamicText id="dynAjax" instancename="instanceSalutation"

tablefield="Salutation.value" >

</bluage:DynamicText>

</bluage:AjaxZone>

Screen    activity    diagram

output_html_7d73bc44.png

Entities    Diagram

output_html_m46b28e02.png

Service    activity    diagram    N/A

Tag attributes: reference

TagAjaxZone
DescriptionOne or more items expected to have an Ajax behavior
Diagram

output_html_m1fe7df7.jpg

Tag attributes: description 

AttributeRequiredDescription
idYZone ID

4.5.2The Draggable tag

Description

The « Draggable » tag allows defining which item may be « dragged »

Example

Rendering

output_html_283963bd.png


XHTML

settings


<bluage:AjaxZone id="friendsSelection">

<bluage:Table id="id_table1" instancename="friends_list" selectioninstancename="instance_friends" source="service" listtype="Friend" parentinstancename="selectedContact.notFavoriteFriend">

<bluage:Column headername="col_2" id="myObject_col_2">

<td colspan="1" rowspan="1">

<bluage:Draggable id="beMyPrefered">

<bluage:DynamicTextid="txtmyObjectname" tablefield="Friend.label">

</bluage:DynamicText>

</bluage:Draggable>

</td>

</bluage:Column>

</bluage:Table>

</bluage:AjaxZone>

Screen    activity    diagram

output_html_m7521f661.png

Entities    Diagram

output_html_m19676fd8.png

Service    activity    diagram    

output_html_m320952a8.png

Tag attributes: reference

TagDraggable
DescriptionSurrounds the items that may be « dragged »
Diagram

output_html_m7fb0f93d.jpg

Tag attributes: description 

AttributeRequiredDescription
IdYID
styleclassNDisplay style

output_html_135b9d38.png

This tag may contain various items (Blu Age™ and/or html).

4.5.3The Droppable tag

Description

The « Droppable » tag indicates a drag destination zone, it surrounds the item getting the ‘drop’ event.

Example:

Rendering

output_html_21e6a235.png


XHTML

settings


<bluage:AjaxZone id="favoriteFriendsSelection">

<bluage:Droppable id="dropPref" sourceid="beMyPrefered">

<bluage:Table id="id_table2" instancename="favorite_friends_list"

selectioninstancename="instance_favorite_friends"

source="generic"

listtype="Friend"

parentinstancename="selectedContact.favoriteFriend">

<table id="id_tab2" />

</bluage:Table>

</bluage:Droppable>

</bluage:AjaxZone>

Screen    activity    diagram

output_html_m4462b441.png

Entities    Diagram

output_html_71f779ef.png

Service    activity    diagram    

output_html_m3885669c.png

Tag attributes: reference

TagDroppable
DescriptionDefines which zone receives the Drop event.
Diagram

output_html_7f0f8845.jpg

Tag attributes: description 

AttributeRequiredDescription
IdYID
sourceid YCorresponding « Draggable » tag ID.
styleclassNDisplay style.

output_html_135b9d38.png

This tag may contain various items (Blu Age™ and/or html).

BLU AGE is a registered trademark of NETFECTIVE TECHNOLOGY S.A. - Trademarks are property of their respective owners
Do not copy or divulge without written permission