icefaces commandButton not calling action
I have a screen with a series of commandButton’s. They all should call various action methods back in the controller. Some of the command buttons used images – they worked. Others just had values for the buttons – they did not work.
Adding onclick showed the buttons were working, they just were not calling the actions.
Several misguided google’d references mentioned changing the behavior of the ui callback setting in web.xml. I tried that and it made no difference.
Finally I noticed that I was missing the id attribute on the buttons. Adding different id’s for each of the buttons fixed the problem – the buttons now invoke the methods as expected.
I had thought that icefaces added default id’s where necessary, but there may be a glitch when you have an assortment of fields of the same type.

Comments
Leave a comment Trackback