Nesting h:form tags in RichFaces a4j:included content

◇◆丶佛笑我妖孽 提交于 2020-01-06 08:27:12

问题


How is it possible to enclose ajax-related elements with h:form tags in a jsp file which I want to then a4j:include in another jsp file given the suggestion (EDIT 3) to fix another problem by enclosing my a4j:include in an h:form tag?

If my included code also has forms in that would suggest a nested form structure which will likely cause problems. A solution to how to go about this would be greatly appreciated.

I'm creating a webapp which uses ajax components so there is no page to page navigation as such as I want everything in the same 'window'.

Thanks


回答1:


You may use <a4j:region> instead of <x:form>. Nesting form is not recommended indeed.



来源:https://stackoverflow.com/questions/2363681/nesting-hform-tags-in-richfaces-a4jincluded-content

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!