Make CommandLink use AJAX

I have the following code: Do Stuffwich does what i want (change the state of testbean and reload te page wich will show a different set of divs. becouse of their “rendered” properties) Now i want to use ajax to accomplish this so i did this: Do StuffHowever this causes the showSomething method to not even be called. IMHO …

via Java Application Development Tutorial » Search Results » ajax:

Make CommandLink use AJAX

I have the following code:

Do Stuff
wich does what i want (change the state of testbean and reload te page wich will show a different set of divs. becouse of their “rendered” properties) Now i want to use ajax to accomplish this so i did this:


Do Stuff
However this causes the showSomething method to not even be called. IMHO what i want to do is rather simple but i cant for the life of me figure out how to do it.
……………………………………….

You need to use event=”action” instead of event=”click”. You could even omit it altogether. It’s namely the default event the is listening on when nested in an UICommand component.


Do Stuff

For more info: Make CommandLink use AJAX

Java Application Development Tutorial » Search Results » ajax

Make CommandLink use AJAX

Share this post:

Related Posts

Leave a Comment