이 콘텐츠는 선택한 언어로 제공되지 않습니다.

19.6. Cells


Cells are nested within columns (for iteration) or inside worksheets (for direct placement using the column and row attributes) and are responsible for outputting the value, usually through an EL-expression involving the var attribute of the datatable. See Section 19.14.6, “Cell settings”.
Expand
<e:cell>
Attributes
  • column — A number value denoting the column that the cell belongs to. The default is the internal counter. Note that the value is 0-based.
  • row — A number value denoting the row where to place the cell. The default is the internal counter. Note that the value is 0-based.
  • value — A string defining the display value. Usually an EL-expression referencing the var-attribute of the containing datatable.
  • comment — A string value defining a comment attached to the cell.
  • commentHeight — The comment height in pixels.
  • commentWidth — The comment width in pixels.
Child elements
Facets
  • none
 
<e:workbook> 
  <e:worksheet>         
    <e:column value="#{personList}" var="person"> 
      <f:facet name="header"> 
        <e:cell value="Last name"/> 
      </f:facet> 
      <e:cell value="#{person.lastName}"/> 
    </e:column> 
  </e:worksheet> 
</e:workbook>
Copy to Clipboard Toggle word wrap
This defines a column with a header and an iterated output.

19.6.1. Validation

Validations are nested inside cells or formulas. They add constraints to cell data.
Expand
<e:numericValidation>
Attributes
  • value — A number value denoting the limit (or lower limit where applicable) of the validation.
  • value2 — A number value denoting the upper limit (where applicable) of the validation.
  • condition — A string value defining the validation condition.
    • equal — requires the cell value to match the one defined in the value-attribute.
    • greater_equal — requires the cell value to be greater than or equal to the value defined in the value-attribute.
    • less_equal — requires the cell value to be less than or equal to the value defined in the value-attribute.
    • less_than — requires the cell value to be less than the value defined in the value-attribute.
    • not_equal — requires the cell value to not match the one defined in the value-attribute.
    • between — requires the cell value to be between the values defined in the value and value2 attributes.
    • not_between — requires the cell value not to be between the values defined in the value- and value2 attributes.
Child elements
  • none
Facets
  • none
 
<e:workbook> 
  <e:worksheet> 
    <e:column value="#{personList}" var="person">   
      <e:cell value="#{person.age"> 
        <e:numericValidation condition="between" value="4" value2="18"/> 
      </e:cell> 
    </e:column> 
  </e:worksheet> 
</e:workbook>
Copy to Clipboard Toggle word wrap
This adds numeric validation to a cell, specifying that the value must be between 4 and 18.
Expand
<e:rangeValidation>
Attributes
  • startColumn — A number value denoting the first column to validate against.
  • startRow — A number value denoting the first row to validate against.
  • endColumn — A number value denoting the last column to validate against.
  • endRow — A number value denoting the last row to validate against.
Child elements
  • none
Facets
  • none
 
<e:workbook> 
  <e:worksheet> 
    <e:column value="#{personList}" var="person">   
      <e:cell value="#{person.position"> 
        <e:rangeValidation startColumn="0" startRow="0" endColumn="0" 
           endRow="10"/> 
      </e:cell> 
    </e:column> 
  </e:worksheet> 
</e:workbook>
Copy to Clipboard Toggle word wrap
This adds validation to a cell, specifying that the value must exist within the values specified in range A1:A10.
Expand
<e:listValidation>
Attributes
  • none
Child elements
  • Zero or more list validation items.
Facets
  • none
e:listValidation is a just a container for holding multiple e:listValidationItem tags.
Expand
<e:listValidationItem>
Attributes
  • value — A value to validate against.
Child elements
  • none
Facets
  • none
 
<e:workbook> 
  <e:worksheet> 
    <e:column value="#{personList}" var="person">   
      <e:cell value="#{person.position"> 
        <e:listValidation> 
          <e:listValidationItem value="manager"/> 
          <e:listValidationItem value="employee"/> 
        </e:listValidation> 
      </e:cell> 
    </e:column> 
  </e:worksheet> 
</e:workbook>
Copy to Clipboard Toggle word wrap
This adds validation to a cell, specifying that the value must be "manager" or "employee".
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat