OK, so far so good, I've made quite a lot of progress with
JSF 2.0, but now I'm getting to a particularly important part involving Ajax, which I'm having trouble understanding.
The code without using Ajax works, but it causes irritating page "flips" and messes up the display, and I wish to use Ajax to get rid of that.
The relevant part of the xhtml file is as follows:
where I specify a menu where you can select one out of several options. Once you have decided which option you want, you click <h:commandButton> "Select Set", which fires
an action listener that then downloads from an external file the data you want, which is then used to set up a second menu. The reason why I have chosen to use a command
button once you have selected an option is because a file is downloaded, and I don't want a file to be downloaded every time you change the selection, only when you
specifically want it. <h:commandButton> comment A controls the values given by comments a, but I would like this to be done by Ajax.
Once you have downloaded data, it appears in a second menu in <h:selectOneListbox>, and you can make changes to selected values by inputting text in <h:inputText>, then
<h:commandButton> "Update Abundance" will copy the value in <h:inputText> to the selected place in <h:selectOneListbox>, i.e. <h:commandButton> comment C controls comments c.
Again I would like this to use Ajax.
Finally <h:button> "Readme", comment B, displays a popup using JavaScript, and does not have any associated code in a bean, but also causes an irritatiing page flip.
The code in my bean is as follows, where "a", "A", "c" and "C" correspond to the code in the xhtml file:
The basic question is how to "Ajaxify" the code in a suitable way. Any ideas and suggestions would be most appreciated.