page loading JSF sections twice or more after commandLink

Discussions

Web tier: servlets, JSP, Web frameworks: page loading JSF sections twice or more after commandLink

  1. Hello,

    I am having a weird problem in a JSF project:

    moving from a page to the next through a commandLink if the user click the commandLink twice or more (the page takes some time to load so many users do not wait and click again and again),

    the following page is being built with some sections (JSF sections) repeated and also with some code (visible for the user) like

    "size="1" onchange="changeCountry()"> "

    or similars which I can recognise as parts of a selectItem (translated code) written as text in a line!

    Any idea what could be wrong?

    Thanks + regards


    PS: if I "refresh" (F5) the page after it was built wrong, the page builds as it has to, even if I refresh repeatedly it builds ok...
  2. The best solution for this problem is to not use JSF. JSF is an awful design pattern that creates scenarios where you do not have control and visibility to critical components of your web application.

    :)