java - JSF: How to add ajax functionality to component in backing bean? -


I want to add functionality to a HtmlCommandButton how do I do it? I can not find a lot of examples on the web. I know that there is something called Ajax Behaviar, but I'm not sure how to incorporate it into my HTML commandboard. Basically I want to do the following for my component:

  & l: f: Ajax execution = "@ this" render = "component 1 component 2" />  

Thanks!

You should be familiar with the components of the new API in the new javax.faces.component Behavior package.

I do not know that it is advisable to use a programmatic approach to set the ajax behavior directly into it, rather than the more common idiom, Bean's support:

  & Lt; H: command button & gt; & Lt; F: ajax event = "onclick" execution = "@ this" render = "component 1 component 2" /> & Lt; / H: CommandButton & gt;  

Here are some links that you should raise and run.

  • (Very good start <<> code components are mapped to the backing bean.

Hope this can help you.

Regards.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -