0

In JSF2.0, when commandlink is pressed (posted), should the f:viewParam setter be called again? In myfaces 2.0, it does not call the viewParam setter again, but in myfaces 2.1, it is. Is this correct? Is there a way to globally disable it?

HockChai Lim
  • 1,675
  • 2
  • 20
  • 30
  • @Balus, I found that dup post that you mentioned. I was just wonder if this is new in jsf2.1. Because in jsf 1.2, the viewparam setter is not being called on postback. If it is new in jsf2.1, is there a way to globally set it to not do that. – HockChai Lim Feb 23 '16 at 20:03
  • `` doesn't exist in JSF 1.x. Entire tag is ignored and will likely appear plain vanilla in generated HTML output. It was introduced in JSF 2.0 (for Facelets only and thus not JSP). In JSF 1.x you would need `` or `getRequestParameterMap()` to manually grab request/view parameters. – BalusC Feb 23 '16 at 20:05
  • Sorry, I meant to say jsf 2.0 was not calling viewparam setter on postback, but 2.1 is. – HockChai Lim Feb 23 '16 at 20:44
  • 1
    That must have been an old Myfaces specific bug/oversight. – BalusC Feb 24 '16 at 08:55

0 Answers0