JSF 1.2- >2.0 :viewId parameter for save view state is null

前端 未结 1 801
我寻月下人不归
我寻月下人不归 2021-01-22 02:06

We are migrating our JSF 1.2 project to JSF 2.0 and using a command button in a JSP page .Clicking command button get a reponse from external system and display response.

1条回答
  •  孤街浪徒
    2021-01-22 02:43

    The presence of Ajax4jsf 1.x specific org.ajax4jsf.* classes in the stacktrace tells that you're still using Ajax4jsf for JSF 1.x.

    This is not compatible with JSF 2.x. You must remove all Ajax4jsf 1.x related JAR files and registrations in web.xml. You need to use JSF's own facilities instead, or to upgrade to RichFaces 4.x which bundles a newer, JSF 2.0 compatible, version of tags. Note that this in turn requires Facelets instead of JSP. So you have to migrate from JSP to Facelets as well.

    See also:

    • Migrating JSF 1.1 with Ajax4jsf 1.x to JSF 2
    • Migrating from JSF 1.2 to JSF 2.0
    • a4j:support tag not found using JSF 2

    0 讨论(0)
提交回复
热议问题