I wanna add this action. If EL is 'true' like this, #{trueFalseBean.isTrue}, I wanna pop up message without pressing any button like 'onload();', otherwise no action. How can I use if, else clause on JSF or PF? Please help me thanks
Asked
Active
Viewed 1,227 times
-1
-
1You don't need an `else` clause if there is nothing in it, and there is no `else` in XML. Unclear what you're asking. – user207421 Dec 28 '16 at 04:08
-
I wanna add popup action when the value is true only, that should be 'onload();' action. – LittleSonny Dec 28 '16 at 04:40
-
No `else` required by that. Question remains unclear. – user207421 Dec 28 '16 at 05:18
-
Thanks, I just emphasize how to use IF CONDITION in this case (primefaces, jsf), you are right, no need to mention else condition. – LittleSonny Dec 28 '16 at 06:02
-
I am not a native speaker, sometimes make sentences ambiguous, sorry for that. – LittleSonny Dec 28 '16 at 06:05
-
1So remove all mention of `else` from your question. And title. – user207421 Dec 28 '16 at 09:39
1 Answers
0
Define a boolean variable in your bean and set it with a method when an action is started. Then use variable last situation to make something.

Kenan Gökbak
- 27
- 7