All entries for Tuesday 07 February 2006
February 07, 2006
Tags : jsp component
Create tag file:
Can use other tag libraries:
[%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %]
[%@ attribute name="label" type="java.lang.String" required="true" %]
[%@ attribute name="compulsory" type="java.lang.Boolean" required="true" %]
Snippet
[c:choose]
[c:when test="${compulsory}">${label}[span class="required_true"]*[/span][/c:when]
[c:otherwise]${label}[/c:otherwise]
[/c:choose]
Import tag libraries:
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
Use tag files:
[tags:inputTextField bindPath="component.name" label="List label" compulsory="${true}"/]
CSS
Writing about web page http://www.w3schools.com/css/css_syntax.asp
This is the only CSS acknowledge I need to know :)
- Selectors: Any HTML element is a possible CSS1 selector
- Contextual Selectors: P EM { }
- Class selector : selectors.class i.e., p.right. the classes can be combined e.g class="classA, classB"
- ID selector : element.id i.e., p#right
- Without the prefix selector, it will allow to any element
- Contextual ID/Class : #form_properties table ??
- Inherentence:
- span.highlight {background–color–yellow} will only applied to span tags with a declard class attribute of hightlight.