Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Romaintaz already pointed out the most, I just wanted to get straight on your concrete questions:</p> <blockquote> <p><em>What is the advantage of adding the f:valueChangeListener tag inside the h:selectOneMenu tag. I have used the normal attribute valueChangeListener="#{countryBean.changeCountry}".</em></p> </blockquote> <p>As Romaintaz said, the attribute points to a method and the <code>f:</code> tag points to a class. Another advantage is that you can have multiple of them, whenever that is necessary.</p> <blockquote> <p><em>Is it necessary to use onchange="submit() this code to change the values.</em></p> </blockquote> <p>That Javascript doesn't change the values. That Javascript submits the entire form without the need to pressing the submit button yourself, whenever the value has been changed by the enduser. No, that is not necessary. You can also just remove it and expect that the enduser presses the submit button himself. <a href="https://stackoverflow.com/questions/4789888/actionlistener-phases-in-jsf">Once again</a>, that JavaScript is not part of JSF.</p> <blockquote> <p><em>What is difference between writing the custom listeners by implementing the ActionListener interface and just using the attribute in the UIComponent tags (action="methodName").</em></p> </blockquote> <p>This question is already asked before: <a href="https://stackoverflow.com/questions/3909267/differences-between-action-and-actionlistener">difference between action and actionlistener</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload