Download InfoGlue - Developer Manual
Transcript
InfoGlue – Developer Manual
Here is a simple example of the basic html component with a css link.
<%@
<%@
<%@
<%@
taglib
taglib
taglib
taglib
uri="infoglue-common" prefix="common" %>
uri="infoglue-structure" prefix="structure" %>
uri="infoglue-page" prefix="page" %>
uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<structure:boundPage id="cssPage" propertyName="CSSPage"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Example </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen, print">@import url(<c:out value="${cssPage.url}"
escapeXml="false"/>);</style>
</head>
<body>
<table width="100%" border="0" cellspacing="2">
<tr>
<td colspan="2">Header</td>
</tr>
<tr>
<td valign="top">Middle</td>
</tr>
<tr>
<td height="24" colspan="2">Footer</td>
</tr>
</table>
</body>
And the property would be
<?xml version="1.0" encoding="UTF-8"?>
<properties>
<property name="CSSPage" type="binding" entity="SiteNode" multiple="false"/>
</properties>
Author: Mattias Bogeblad
Page 59
2009/01/19