how do i call a jsf action method (in JSF 1.2) using Ajax?

后端 未结 1 789
一个人的身影
一个人的身影 2021-01-15 14:37

I am writing a JSF 1.2 Application in Apache My faces. I cannot use any customized component library - like tomahawk or a4j and others. Is there a way to call an action meth

1条回答
  •  被撕碎了的回忆
    2021-01-15 15:25

    JSF 1.2 does not provide any builtin ajax facilities. You have basically 2 options:

    1. Homegrow an ajaxical component library. It isn't that easy since you've to take the JSF lifecycle and component tree into account while handling ajaxical requests. It would also end up to take much more time than using an existing ajaxical component library.

    2. Use an existing ajaxical component library. The simplest one would be Ajax4jsf (pure ajax tags, no UI components, it's much like in JSF 2.0). This is part of RichFaces, but you can also download and install it separately without the need for the whole RichFaces component library around it. This would be my recommendation. You can find the developer documentation here and download the library here.

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