A paper in the InfoGlue Series
InfoGlue - Developer Manual
Author: Mattias Bogeblad
Version 2.4.6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

© 2006 Formedia and Mattias Bogeblad. All rights reserved.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections. A copy of the license is included in the section entitled “GNU Free Documentation License”.
Sponsors
We wish to thank Nominet UK (especially Jay Daley) for sponsoring the creation and release of this document to the community. You can read more about Nominet UK on www.nominet.org.uk.

 

Note
All information in this document is the property of Formedia and Mattias Bogeblad. Use and distribution of the document, or of the information in it, is defined by the terms in the license “GNU Free Documentation License”.

 


Introduction............................................................................................... 13

Feedback..................................................................................................... 13

What is InfoGlue.......................................................................................... 14

What parts are there in InfoGlue.................................................................... 14

How does it work........................................................................................ 15

InfoGlue pages behind the curtain.................................................................. 16

The request/response cycle.......................................................................... 16

A page in detail........................................................................................... 17

Development process................................................................................. 19

Site/Page analysis...................................................................................... 19

Content types............................................................................................ 19

Template / Component-list......................................................................... 19

Tools........................................................................................................... 20

Built in tools............................................................................................. 20

HTML-editors.............................................................................................. 20

Velocity editor.......................................................................................... 20

Easy Edit.................................................................................................... 20

Building pages in InfoGlue......................................................................... 21

Basics about Page types............................................................................. 21

Basics about connecting content and other resources to pages........................... 23

Components................................................................................................ 24

Composite pattern...................................................................................... 24

Creating a component................................................................................. 24

Slots......................................................................................................... 24

Properties & bindings................................................................................... 24

How it looks............................................................................................... 25

API........................................................................................................... 28

Integration................................................................................................. 29

Simple integration via Iframes................................................................... 29

Simple integration via embedding................................................................ 29

Advanced integration via custom classes in velocity................................ 30

Tasks........................................................................................................... 31

Introduction............................................................................................... 31

Flow of a task............................................................................................ 31

Portlet development.................................................................................. 32

Step 1 – Create a Hello World Portlet.............................................................. 32

Step 2 – Package the portlet as a WAR-file....................................................... 34

Step 3 – Deploy the portlet in InfoGlue............................................................ 35

Step 4 – Use the portlet on a page though a component.................................... 36

Workflows in InfoGlue.............................................................................. 37

Introducing the My Desktop Tool............................................................... 37

OSWorkflow - The Workflow Engine........................................................... 38

Managing workflow definitions in InfoGlue................................................ 38

Creating workflows................................................................................... 39

Views........................................................................................................ 39

The Property Set........................................................................................ 39

Actions...................................................................................................... 40

Function providers, populators and other helper classes..................................... 42

Example workflow definition..................................................................... 43

Example View.............................................................................................. 47

Common patterns........................................................................................ 49

Building a basic page.................................................................................. 50

How to manage style (CSS)......................................................................... 51

How to manage JavaScript’s....................................................................... 53

Adding slots for dynamic parts................................................................. 54

Building a basic content presentation component...................................... 55

JSP style.................................................................................................... 55

Velocity style........................................................................................... 55

Building a basic navigational component.................................................... 56

JSP style.................................................................................................... 56

Velocity style........................................................................................... 56

Performance tips........................................................................................ 57

Quality and Optimization tips.................................................................... 58

ViewApplicationState................................................................................. 58

Mail notifications..................................................................................... 59

Included 3:rd party taglibs....................................................................... 60

Appendix A – Taglib reference For the InfoGlue platform....................... 61

Page Tags................................................................................................... 62

Available tags and short description................................................................ 62

pageContext............................................................................................... 63

Description................................................................................................ 63

Parameters................................................................................................ 63

Name.......................................................................................................... 63

Required...................................................................................................... 63

Default....................................................................................................... 63

Type.......................................................................................................... 63

Description.................................................................................................. 63

deliveryContext......................................................................................... 64

Description................................................................................................ 64

Parameters................................................................................................ 64

Name.......................................................................................................... 64

Required...................................................................................................... 64

Default....................................................................................................... 64

Type.......................................................................................................... 64

Description.................................................................................................. 64

Content Tags............................................................................................. 65

Description................................................................................................ 65

Location.................................................................................................... 65

Available tags and short description................................................................ 65

contentAttribute....................................................................................... 66

Description................................................................................................ 66

Parameters................................................................................................ 66

Name.......................................................................................................... 66

Required...................................................................................................... 66

Default....................................................................................................... 66

Type.......................................................................................................... 66

Description.................................................................................................. 66

assetUrl.................................................................................................... 67

Description................................................................................................ 67

Parameters................................................................................................ 67

Name.......................................................................................................... 67

Required...................................................................................................... 67

Default....................................................................................................... 67

Type.......................................................................................................... 67

Description.................................................................................................. 67

assetThumbnailUrl..................................................................................... 68

Description................................................................................................ 68

Parameters................................................................................................ 68

Name.......................................................................................................... 68

Required...................................................................................................... 68

Default....................................................................................................... 68

Type.......................................................................................................... 68

Description.................................................................................................. 68

contentTypeDefinition............................................................................... 69

Description................................................................................................ 69

Parameters................................................................................................ 69

Name.......................................................................................................... 69

Required...................................................................................................... 69

Default....................................................................................................... 69

Type.......................................................................................................... 69

Description.................................................................................................. 69

relatedContents........................................................................................ 70

Description................................................................................................ 70

Parameters................................................................................................ 70

Name.......................................................................................................... 70

Required...................................................................................................... 70

Default....................................................................................................... 70

Type.......................................................................................................... 70

Description.................................................................................................. 70

content..................................................................................................... 71

Description................................................................................................ 71

Parameters................................................................................................ 71

Name.......................................................................................................... 71

Required...................................................................................................... 71

Default....................................................................................................... 71

Type.......................................................................................................... 71

Description.................................................................................................. 71

contentVersion.......................................................................................... 72

Description................................................................................................ 72

Parameters................................................................................................ 72

Name.......................................................................................................... 72

Required...................................................................................................... 72

Default....................................................................................................... 72

Type.......................................................................................................... 72

Description.................................................................................................. 72

assignedCategories.................................................................................... 73

Description................................................................................................ 73

Parameters................................................................................................ 73

Name.......................................................................................................... 73

Required...................................................................................................... 73

Default....................................................................................................... 73

Type.......................................................................................................... 73

Description.................................................................................................. 73

childContents............................................................................................ 74

Description................................................................................................ 74

Parameters................................................................................................ 74

Name.......................................................................................................... 74

Required...................................................................................................... 74

Default....................................................................................................... 74

Type.......................................................................................................... 74

Description.................................................................................................. 74

matchingContents...................................................................................... 75

Description................................................................................................ 75

Parameters................................................................................................ 75

Name.......................................................................................................... 75

Required...................................................................................................... 75

Default....................................................................................................... 75

Type.......................................................................................................... 75

Description.................................................................................................. 75

contentSort.............................................................................................. 76

Description................................................................................................ 76

Parameters................................................................................................ 76

Name.......................................................................................................... 76

Required...................................................................................................... 76

Default....................................................................................................... 76

Type.......................................................................................................... 76

Description.................................................................................................. 76

editOnSight................................................................................................ 77

Description................................................................................................ 77

Parameters................................................................................................ 77

Name.......................................................................................................... 77

Required...................................................................................................... 77

Default....................................................................................................... 77

Type.......................................................................................................... 77

Description.................................................................................................. 77

assignPropertyBinding................................................................................ 78

Description................................................................................................ 78

Parameters................................................................................................ 78

Name.......................................................................................................... 78

Required...................................................................................................... 78

Default....................................................................................................... 78

Type.......................................................................................................... 78

Description.................................................................................................. 78

remoteContentService............................................................................... 79

Description................................................................................................ 79

Parameters................................................................................................ 79

Name.......................................................................................................... 79

Required...................................................................................................... 79

Default....................................................................................................... 79

Type.......................................................................................................... 79

Description.................................................................................................. 79

Structure Tags.......................................................................................... 80

Description................................................................................................ 80

Location.................................................................................................... 80

Available tags and short description................................................................ 80

currentPageUrl.......................................................................................... 81

Description................................................................................................ 81

Parameters................................................................................................ 81

Name.......................................................................................................... 81

Required...................................................................................................... 81

Default....................................................................................................... 81

Type.......................................................................................................... 81

Description.................................................................................................. 81

pageUrlAfterLanguageChange...................................................................... 82

Description................................................................................................ 82

Parameters................................................................................................ 82

Name.......................................................................................................... 82

Required...................................................................................................... 82

Default....................................................................................................... 82

Type.......................................................................................................... 82

Description.................................................................................................. 82

pageUrl...................................................................................................... 83

Description................................................................................................ 83

Parameters................................................................................................ 83

Name.......................................................................................................... 83

Required...................................................................................................... 83

Default....................................................................................................... 83

Type.......................................................................................................... 83

Description.................................................................................................. 83

relatedPages.............................................................................................. 84

Description................................................................................................ 84

Parameters................................................................................................ 84

Name.......................................................................................................... 84

Required...................................................................................................... 84

Default....................................................................................................... 84

Type.......................................................................................................... 84

Description.................................................................................................. 84

boundPage.................................................................................................. 85

Description................................................................................................ 85

Parameters................................................................................................ 85

Name.......................................................................................................... 85

Required...................................................................................................... 85

Default....................................................................................................... 85

Type.......................................................................................................... 85

Description.................................................................................................. 85

boundPages................................................................................................ 86

Description................................................................................................ 86

Parameters................................................................................................ 86

Name.......................................................................................................... 86

Required...................................................................................................... 86

Default....................................................................................................... 86

Type.......................................................................................................... 86

Description.................................................................................................. 86

childPages.................................................................................................. 87

Description................................................................................................ 87

Parameters................................................................................................ 87

Name.......................................................................................................... 87

Required...................................................................................................... 87

Default....................................................................................................... 87

Type.......................................................................................................... 87

Description.................................................................................................. 87

isCurrentSiteNode...................................................................................... 88

Description................................................................................................ 88

Parameters................................................................................................ 88

Name.......................................................................................................... 88

Required...................................................................................................... 88

Default....................................................................................................... 88

Type.......................................................................................................... 88

Description.................................................................................................. 88

isSiteNodeParentToCurrentSiteNode.......................................................... 89

Description................................................................................................ 89

Parameters................................................................................................ 89

Name.......................................................................................................... 89

Required...................................................................................................... 89

Default....................................................................................................... 89

Type.......................................................................................................... 89

Description.................................................................................................. 89

componentPropertyValue........................................................................... 90

Description................................................................................................ 90

Parameters................................................................................................ 90

Name.......................................................................................................... 90

Required...................................................................................................... 90

Default....................................................................................................... 90

Type.......................................................................................................... 90

Description.................................................................................................. 90

hasDefinedProperty.................................................................................... 91

Description................................................................................................ 91

Parameters................................................................................................ 91

Name.......................................................................................................... 91

Required...................................................................................................... 91

Default....................................................................................................... 91

Type.......................................................................................................... 91

Description.................................................................................................. 91

childComponents........................................................................................ 92

Description................................................................................................ 92

Parameters................................................................................................ 92

Name.......................................................................................................... 92

Required...................................................................................................... 92

Default....................................................................................................... 92

Type.......................................................................................................... 92

Description.................................................................................................. 92

siteNode..................................................................................................... 93

Description................................................................................................ 93

Parameters................................................................................................ 93

Name.......................................................................................................... 93

Required...................................................................................................... 93

Default....................................................................................................... 93

Type.......................................................................................................... 93

Description.................................................................................................. 93

sortPages.................................................................................................. 94

Description................................................................................................ 94

Parameters................................................................................................ 94

Name.......................................................................................................... 94

Required...................................................................................................... 94

Default....................................................................................................... 94