What is the difference between jsf command button
action = "#{bean.methodName()}"
and action = "#{bean.methodName}"
or both are same?
What is the difference between jsf command button
action = "#{bean.methodName()}"
and action = "#{bean.methodName}"
or both are same?
No difference at all - they look different for historical reasons only.
A couple of JSF versions back, no parameters were allowed in actions, so only the second notation made sense. Those were the times when parameters (of sorts) had to be passed using the notorious setPropertyActionListener
.