I have written a code like:
You can't conditionally render a whole column on a per-row basis. This makes logically no utter sense. You can only conditionally render it on a per-table basis. The cannot take a condition based on properties of the iterated row. It can only take a condition based on properties of the parent bean.
If you intend to conditionally hide only the cell of the currently iterated row, then just move the rendered attribute from to or at least a component which wraps the whole content, such as .
Or if you really intend to conditionally hide a whole column, then move the conditions used in rendered attribute of to the #{userLeaveBean} parent bean.