站内搜索: 请输入搜索关键词

当前页面: 开发资料首页J2SE 专题关于JSF的一个错误问题??请教高手

关于JSF的一个错误问题??请教高手

摘要: 关于JSF的一个错误问题??请教高手


15:39:41,796 WARN HtmlGridRendererBase:230 - PanelGrid mainView:mainForm:_idJsp
20 has not enough children. Child count should be a multiple of the columns attr
ibute.
15:39:41,906 WARN ReducedHTMLParser:558 - Invalid tag found: unexpected input w
hile looking for attr name or -#39;/-#62;-#39; at line 681


请问是什么错误~~


帮你顶。记得给分哦



thank you! up


看样子是表格指定的列数和你给的列数不对应,
列数不够;有可能标记写错了,或没有及时对应 /-#62;结尾。
看看这块代码吧。


关注


楼上的楼上说得对


谢谢,我查查看


JSF的标签,写错了


-#60;h:form id=-#34;mainForm-#34;-#62;
-#60;h:inputHidden id=-#34;isAutoTerminal-#34; value=-#34;#{ModuleManageBean.isAutoTerminal}-#34; /-#62;
-#60;h:inputHidden id=-#34;isAutoDepartment-#34; value=-#34;#{ModuleManageBean.isAutoDepartment}-#34; /-#62;

-#60;t:div id=-#34;contentheader-#34;-#62;
-#60;h:outputText id=-#34;title-#34; value=-#34;菜单-#34; rendered=-#34;true-#34; styleClass=-#34;pageTitle-#34; /-#62;
-#60;/t:div-#62;

-#60;t:div id=-#34;filterBar-#34;-#62;
-#60;h:panelGrid columns=-#34;2-#34;-#62;
-#60;h:commandButton action=-#34;#{ModuleManageBean.confirmCreate}-#34; id=-#34;confirmCreate-#34; value=-#34;确认增加-#34; rendered=-#34;true-#34; /-#62;
-#60;/h:panelGrid-#62;
-#60;/t:div-#62;

-#60;h:panelGrid columns=-#34;3-#34; rowClasses=-#34;row1, row2-#34; style=-#34;font-size:9pt-#34;-#62;
-#60;h:outputLabel for=-#34;id-#34; styleClass=-#34;label-#34;-#62;
-#60;h:outputText value=-#34;菜单编码:-#34; /-#62;
-#60;/h:outputLabel-#62;
-#60;h:inputText id=-#34;id-#34; value=-#34;#{ModuleManageBean.childModule.id}-#34; required=-#34;true-#34; /-#62;
-#60;h:message for=-#34;id-#34; styleClass=-#34;errorMessage-#34;/-#62;

-#60;h:outputLabel for=-#34;name-#34; styleClass=-#34;label-#34;-#62;
-#60;h:outputText value=-#34;菜单名称:-#34; /-#62;
-#60;/h:outputLabel-#62;
-#60;h:inputText id=-#34;name-#34; value=-#34;#{ModuleManageBean.childModule.name}-#34; required=-#34;true-#34; /-#62;
-#60;h:message for=-#34;name-#34; styleClass=-#34;errorMessage-#34; /-#62;
-#60;h:outputLabel for=-#34;navigation-#34; styleClass=-#34;label-#34;-#62;
-#60;h:outputText value=-#34;菜单导航位置:-#34; /-#62;
-#60;/h:outputLabel-#62;
-#60;h:inputText id=-#34;navigation-#34; value=-#34;#{ModuleManageBean.childModule.navigation}-#34; required=-#34;true-#34; /-#62;
-#60;h:message for=-#34;navigation-#34; styleClass=-#34;errorMessage-#34; /-#62;
-#60;h:outputLabel for=-#34;icon-#34; styleClass=-#34;label-#34;-#62;
-#60;h:outputText value=-#34;菜单图片位置:-#34; /-#62;
-#60;/h:outputLabel-#62;
-#60;h:inputText id=-#34;icon-#34; value=-#34;#{ModuleManageBean.childModule.icon}-#34; required=-#34;true-#34; /-#62;
-#60;h:message for=-#34;icon-#34; styleClass=-#34;errorMessage-#34;/-#62;
-#60;h:outputLabel for=-#34;parent-#34; styleClass=-#34;label-#34;-#62;
-#60;h:outputText value=-#34;父菜单:-#34; /-#62;
-#60;/h:outputLabel-#62;
-#60;h:inputText id=-#34;parent-#34; value=-#34;#{ModuleManageBean.childModule.parent.id}-#34; required=-#34;true-#34; /-#62;
-#60;h:message for=-#34;parent-#34; styleClass=-#34;errorMessage-#34;/-#62;
-#60;h:outputLabel for=-#34;remark-#34; styleClass=-#34;label-#34;-#62;
-#60;h:outputText value=-#34;备注-#34; /-#62;
-#60;/h:outputLabel-#62;
-#60;h:inputText id=-#34;remark-#34; value=-#34;#{ModuleManageBean.childModule.remark}-#34; /-#62;
-#60;h:message for=-#34;remark-#34; styleClass=-#34;errorMessage-#34;/-#62;
-#60;/h:panelGrid-#62;
-#60;/h:form-#62;

请问哪里错了??


第一:PanelGrid mainView:mainForm:_idJsp
20 has not enough children. Child count should be a multiple of the columns attr
ibute.
这个问题不理也可以,是你的某个panelGrid的column属性设置很多,但是它没有包含那么多的子对象。比如你设置了2,但是只有1个button之类的在panelGrid里面。

第二:标签错误,(你的文件太长,人工查看会.......),工具提示,如果没有,那么可能需要
通过看681行的html代码,找到附近的id,class什么的,查找对应的标签。




谢谢,问题解决了


↑返回目录
前一篇: 如何判断java程序是否在windows下运行
后一篇: JAVA里怎么解决占位符啊