Fan He wrote:I've met the similar problem that only the first time the panel can be displayed. From the second time (after the panel was hide for once) you will never see the panel.
The following alternative method may help:
Tim Holloway wrote:You should never assume that property getters on a backing bean will be called only once. In particular, don't do any side (state-changing) logic in getters for that reason. The bean's properties will be retrieved at multiple times in the JSF lifecycle as needed to prepare for update, display, and validate.
As far as the second question goes, I haven't studied that.