## initialize parameters
#set( $listEntity = ${params.get('listEntity')} )
#set( $listProperty = ${params.get('listProperty')} )
#set( $rowsName = ${params.get('rowsName')} )
##		
	<table jwcid="@joey:ListTable" targets="ognl:${listProperty}">
		<!-- properties -->
        <span jwcid="@joey:ListTableColumn" value="  " title="  "/>
#set( $colCount = 1 )
#foreach( $element in ${listEntity.getPresentProperties()} )
#set( $title = ${element.getLabel()} )
#if( ${element.getElementType()} == "Reference" ) ## Reference
#set( $title = ${element.getLabel()} )
#set( $propName = ${element.getPropertyNameInLocal()} )
#elseif( ${element.getElementType()} == "Property" ) ## Property
#set( $title = ${element.getLabel()} )
#if( ${element.getEnumType()} ) ## is Enum
#set( $propName = ${element.getEnumPropertyName()} )
#else ## not Enum
#set( $propName = ${element.getName()} )
#end
#else ## neither Property nor Reference
#set( $title = ${element.getLabel()} )
#end
        <span jwcid="@joey:ListTableColumn" property="${propName}" title="${title}"/>
#set( $colCount = $colCount + 1 )
#end ##foreach
        <span jwcid="@joey:ListTableColumnAction" value="削除" title="" actionType="delete"/>
        <span jwcid="@joey:ListTableColumnAction" value="詳細" title="" actionType="detail"/>
        <span jwcid="@joey:ListTableColumnAction" value="決定" title="" actionType="choice" 
        	idTh="id_choiceLink" styleTh="display:none" 
        	idTd="id_choiceLink" styleTd="display:none" />
#set( $colCount = $colCount + 3 )
        <!--  -->
        <span jwcid="@joey:ListTableHead" class="columnTitle1"/>
        <span jwcid="${rowsName}@Foreach" source="ognl:${listProperty}">
    	    <span jwcid="@joey:ListTableRow" target="ognl:components.${rowsName}.value"/>
	    </span>
		<tr>
			<td colspan="${colCount}">
#foreach($subClasses in ${listEntity.getAssignableEntities()} )
				<a jwcid="@joey:EntityCreationLink" entityClass="ognl:@${subClasses.getFqn()}@class" detailPageDictionaryName="detailPageDictionary">[${subClasses.getLabel()} 新規作成]</a>
#end
			</td>
		</tr>
    </table>