在jsf中,页面组件如果是由页面标签与后台的程序一起生成的话,那么很可能造成Id冲突,特别是在刷新时.
可以将程序中生成组件的地方改成如下:
把
HtmlOutputText head = new HtmlOutputText();
改成:
HtmlOutputText head = (HtmlOutputText) context.getApplication().
createComponent(HtmlOutputText.COMPONENT_TYPE);