lundi 18 mars 2019

How can i check more that two conditions inside oncomplete

I have 4 conditions to check, i want to check it inside oncomplete statement. I recognised that i can check only two using if else. If i use if -> else if -> else if -> else if to check 4 conditions in oncomplete. When i did that it can check only if and else if (again 2 condition only) Is any way to check more than two condtitions ? That's my code. That code can check only if and 1st else if

<a4j:commandLink .....
action ....
oncomplete=" if (1st condtition ) ; else if (2nd condtition) ; else if (3th condtition ) ; else if (4th condition)"

Any ideas?

Aucun commentaire:

Enregistrer un commentaire