myfaces 部分触发器
这是我的 myFaces 代码,
<tr:commandButton text="Calculate Modulus" action="#{pageManager.form.calculateModulus}" id="modulusCalculation" partialSubmit="true"/>
<tr:table value="#{pageManager.form.modulusCollection}" var="modulus" width="75%"
inlineStyle="align:center;" partialTriggers="modulusCalculation" autoSubmit="true">
<tr:column headerText="Combination">
<tr:outputLabel value="#{modulus.combination}" />
</tr:column>
<tr:column headerText="Modulus">
<tr:outputLabel value="#{modulus.modulusValue}" />
</tr:column>
</tr:table>
当我单击按钮时,我希望刷新我的表格,但这不会发生 按钮代码有很多行,影响我的表的行是:
HashMap<String, Object> modulusInfo = new HashMap<String, Object>();
modulusInfo.put("combination", combination);
modulusInfo.put("modulusValue",modulus);
modulusCollection.add(modulusInfo);
在我的控制台上,我收到以下错误:
Dec 30, 2009 5:05:07 PM org.apache.myfaces.trinidadinternal.context.RequestContextImpl addPartialTriggerListeners 警告:无法从 CoreTable[UIXFacesBeanImpl,id=j_id_jsp_1481482420_15j_id_1] 找到部分触发器 modulusCalculation
任何人都可以告诉我代码中有什么问题吗?
Here is my myFaces Code the
<tr:commandButton text="Calculate Modulus" action="#{pageManager.form.calculateModulus}" id="modulusCalculation" partialSubmit="true"/>
<tr:table value="#{pageManager.form.modulusCollection}" var="modulus" width="75%"
inlineStyle="align:center;" partialTriggers="modulusCalculation" autoSubmit="true">
<tr:column headerText="Combination">
<tr:outputLabel value="#{modulus.combination}" />
</tr:column>
<tr:column headerText="Modulus">
<tr:outputLabel value="#{modulus.modulusValue}" />
</tr:column>
</tr:table>
Here when I click a button I want my table to get refreshed but this does not happen
The button code has many lines and the lines that affect my table are:
HashMap<String, Object> modulusInfo = new HashMap<String, Object>();
modulusInfo.put("combination", combination);
modulusInfo.put("modulusValue",modulus);
modulusCollection.add(modulusInfo);
On my console I get the following error:
Dec 30, 2009 5:05:07 PM org.apache.myfaces.trinidadinternal.context.RequestContextImpl addPartialTriggerListeners
WARNING: Could not find partial trigger modulusCalculation from CoreTable[UIXFacesBeanImpl, id=j_id_jsp_1481482420_15j_id_1]
Can anyone tell me what is wrong in the code ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的表中,partialTriggers =“modulusCalculation”应如下所示:partialTriggers =“:modulusCalculation”
in your table the partialTriggers="modulusCalculation" should look like this: partialTriggers=":modulusCalculation"