• Post Reply Bookmark Topic Watch Topic
  • New Topic

actionListener a crap shoot  RSS feed

Tanya Ruttenberg
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a general kind of question. When I stick an actionListener on a commandLink, it seems to be a crapshoot whether the method defined in the actionListener attribute is actually called or not.

Lately I've had problems where they work in Firefox but not in IE. But that's not my specific question.

I have code that works that I copied to a new view and suddenly it doesn't work.

Sometimes the problem is that the component is not enclosed in a form.

Once I put a phaseListener on my app and when I clicked on the commandLink the phaseListener showed a jump straight to phase 6 even though I had input fields with text in them. The text never seemed to get submitted.

Can someone explain some situations where this might occur? Why? Or point me to a reference that explains this better? I've read over and over about the JSF Lifecycle. It makes some sense but I still don't really grasp what happens here.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!