jsf 2 - What is an alternative of a4j:JsFunction in JSF 2.0? -
i new jsf 2.0.
my current project build on jsf 1.3 , richfaces 3.3. trying migrate jsf 2.0. there limitation not use richface 3.3 or 4.0 in current project or third party tool/library. our goal use jsf 2.0 functionality/feature.
in project there lot of use of
<a4j:jsfunction data="action" oncomplete="javascriptfunction(data); > <a4j:actionaram name="nm" assignto="#beanname.methodname"> </a4j:actionparam> </a4j:jsfunction>
i want remove type of a4j:jsfunction
h:commandbutton
or jsf 2.0 standard mechanism.
i not able find out best way call bean function return value , assign return value javascript function.
jsf 1.3? thought 1.2 latest?
on question. idea use jsf 2.x invalid , should have decision maker reconsider because skimping on omnifaces impede productivity , general code quality.
the way see have 3 choices:
- omnifaces
- click button display:none using javascript. said button can have f:ajax child
- rip
o:commandscript
http://showcase.omnifaces.org/components/commandscript it's open source.
i can understand company today says no primefaces or richfaces , recommend many applications. omnifaces seen proper jsf.
Comments
Post a Comment