删除 rich:extendedDataTable 中的行
我有一个rich:extendedDataTable
。我的每一行都有一个 a4j:commandLink
,单击此行应该被删除。我面临的问题是,如果我继续删除第一行,则 (firstRow+1)第二行的值将在支持 bean 中设置,并且总是会删除第二行。
xhtml 代码是
<a4j:commandLink id="acceptbtn"
action="# {archiveOrderBean.acceptOrder}"
styleClass="beforeSelect" title="#{mnOrdrMsgs.startitle}"
onclick="animateRow(this);" reRender="auftragListNew">
<f:setPropertyActionListener value="#{archive}"
target="#{archiveOrderBean.currentOrder}" />
<f:setPropertyActionListener value="#{row}"
target="#{archiveOrderBean.currentRow}" />
<h:graphicImage value="/images/tick.png"
style="border:0;vertical-align: top;" />
<a4j:support event="onclick" reRender="newclassification"
onsubmit="javascript:blockFullScreen('Loading...Please wait');"
oncomplete="javascript:myJQuery.unblockUI();" />
</a4j:commandLink>
我也尝试重新渲染表格,但 UI 中的值仍然与支持 bean 数据不同步。有没有人有办法解决这个问题。我不知道这是不是richfaces 3.3.3版本的问题。除了操作之外,我还有 jquery 代码,它会闪烁行并删除完整的 。
对此的任何帮助都会非常有帮助。
I have a rich:extendedDataTable
. I have a a4j:commandLink
for each row, on click of this the row should get deleted. The problem what I am facing is, if I go on deleting the first rows the (firstRow+1)second row's value is set in the backing bean and always the second row is getting deleted.
xhtml code is
<a4j:commandLink id="acceptbtn"
action="# {archiveOrderBean.acceptOrder}"
styleClass="beforeSelect" title="#{mnOrdrMsgs.startitle}"
onclick="animateRow(this);" reRender="auftragListNew">
<f:setPropertyActionListener value="#{archive}"
target="#{archiveOrderBean.currentOrder}" />
<f:setPropertyActionListener value="#{row}"
target="#{archiveOrderBean.currentRow}" />
<h:graphicImage value="/images/tick.png"
style="border:0;vertical-align: top;" />
<a4j:support event="onclick" reRender="newclassification"
onsubmit="javascript:blockFullScreen('Loading...Please wait');"
oncomplete="javascript:myJQuery.unblockUI();" />
</a4j:commandLink>
I also tried rerendering the table but still the value in the UI is not in sync with the backing bean data. Does anybody have a solution to this. I do not know if this is problem with richfaces 3.3.3 version. In addition to the action I also have the jquery code which flickers the row and removes the complete <tr>
.
Any help on this will be really helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JQuery 滑动切换从 rich:extendedDataTable 中删除
,并且当在
rich:extendedDataTable
的支持上完成删除对象时,它总是删除自第一个 tr 已被 JQuery 删除,未呈现。我可以通过 3 个步骤来完成此操作a4j:commandLink
The JQuery slide toggle removes the
<tr>
from the rich:extendedDataTable and when the deleteObject is done on the backing ofrich:extendedDataTable
it removes always the second row since the first tr is already removed by JQuery which is not rendered. I could manage to do this in 3 steps w.r.ta4j:commandLink