Lỗi "org.zkoss.zk.ui.UiException: Unsupported child for grid: <Column null>"

org.zkoss.zk.ui.UiException: Unsupported child for grid: <Column null>
Em đang làm cái Login form đơn giản học zk framework. Em chạy con tomcat 8.5. Nó lỗi như này các bác ạ, em lên stackoverflow mà lần ko ra. Xin các bác chỉ giáo giúp em!
Code của e

<?page title="Login" contentType="text/html;charset=UTF-8"?>
<window title="Login" border="normal" width="560px" apply="Controller.ClassControl">
  <grid hflex="1">
  
    <column visible="false">
    shit
      <column>shit</column>
      <column>shit</column>
    </column>
    <row>
      <row spans="2">
        <div>
          <image src="" width="100%"/>
        </div>
      </row>
      <row>
        Account name:
        <textbox id="txtacc" hflex="1" constraint="no empty">
        </textbox>
      </row>
      <row>
        Password
        <textbox id="txtpass" hflex="1" constraint="no empty">
        </textbox>
      </row>
      <row spans="2" align="center">
        <hlayout>
          <button id="btnreset" label="Reset" image=""/>
          <button id="btnsubmit" label="Login" image=""/>
        </hlayout>
      </row>
    </row>
    
  </grid>
</window>

Tuy không làm về zk Framework nhưng cũng có thể đoán được là direct child của grid không phải là column
Theo doc của ZK thì direct child mà grid hỗ trợ là columnsrows chứ không phải columnrow như bạn viết.
Direct parent của columncolumns chứ không phải grid. Tương tự với row thì là rows, sửa lại ngay không lại lỗi tiếp.
Link đây: https://www.zkoss.org/wiki/ZK_Component_Reference/Data/Grid

PS: Sau nếu có học về framework nào thì nên xem kĩ doc của nó đã rồi hãy viết, gặp lỗi gì không đúng thì lên trang chủ mà so sánh sẽ ra.

2 Likes

Cảm ơn bác nhiều nhé!

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?