| |||||||
FRAMES NO FRAMES |
Render a column of the iterated row.
<vlh:column title="Id of Player" property="id" sortable="desc" emphasisPattern="1"/>
Tag Information | |
Tag Class | net.mlw.vlh.web.tag.DefaultColumnTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
sortable | false | true | java.lang.String | Enable or disable sorting for this column. Example<vlh:column title="playerid" property="playerid" sortable="desc" emphasisPattern="100"/> |
property | false | true | java.lang.String | The javabean property name used to get property from bean, which has bean is retrieved in adapter. Usage<vlh:column title="Product" property="price" sortable="desc" /> Note:To retrieve date from row javabean you can use expresion like "price.inEuro". For more details see |
groupKey | false | true | java.lang.String | todo |
adapterProperty | false | true | java.lang.String | The adapter property name used to retrieve data and also to generate sql (hql) script for the sorting. When is it not set or null, it is used the default property as the same as ordinary javabean property. Usage<vlh:column title="FirstAsString" property="firstNameAsString" adapterProperty="firstName" sortable="desc" />ExampleWe would like to have an class Player, that would return firstname via getFirstName, and firstName + "As String" via getFirstNameAsString. The FROM Player ORDER BY Player.firstName asc property to retrieve data from the row's javabean, in this case it would be like this: Player.getFirstNameAsString() Note: When you are using From Calendar By Calendar.holidays['national day'] |
format | false | true | java.lang.String | IThe ValueList can format instance of Example
|
locale | false | true | java.util.Locale | Locale used for the formating of the colomn. Usage |
title | false | true | java.lang.String | The title of the column. |
emphasisPattern | false | true | java.lang.String | The pattern to be emphasis displayed in the ordinary column cell. Usage |
titleKey | false | true | java.lang.String | Key used in a message sources specified in the configuration bean.
Example<bean id="classicLook" singleton="true" class="net.mlw.vlh.web.ValueListConfigBean"> Omited content. <property name="messageSource"> <bean class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basename"><value>classicLook</value></property> <property name="parentMessageSource"><ref bean="resourceI18nBundle" /></property> </bean> </property> </bean> |
sum | false | true | java.lang.String | Enable summing a column.
Example<vlh:row bean="product"> <vlh:column title="Product price" property="price" sortable="desc" sum="totalPrice" /> </vlh:row> The summed column value (TotalPrice) you can retrieve using : <%=pageContext.getAttribute("TotalPrice")%> |
attributes | false | true | java.lang.String | Allow you to specify html tag attributes "inline"-without writing additinal vlh's tags. Example<vlh:column title="lastname" property="lastname" sortable="desc" attributes="width='150'"/> |
default | false | true | java.lang.String | Specify a string for the property's null token. When you set this attribute, you overide default null token from the configuration bean. Example<vlh:column title="lastname" property="lastname" sortable="desc" attributes="width='150'"/> |
toolTip | false | true | java.lang.String | The tooltip of the column's title (shown when a mouse is over the title). It's useful when you don't want a long title but still you'd like to provide to a user a more detailed info about the column. |
toolTipKey | false | true | java.lang.String | Key of tooltip of the column's title (shown when a mouse is over the title). The key is used to look up the tooltip string in message sources specified in the configuration bean.
Example<bean id="classicLook" singleton="true" class="net.mlw.vlh.web.ValueListConfigBean"> Omited content. <property name="messageSource"> <bean class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basename"><value>classicLook</value></property> <property name="parentMessageSource"><ref bean="resourceI18nBundle" /></property> </bean> </property> </bean> |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |