3 Replies Latest reply on Jan 5, 2011 9:00 AM by Ilya Sorokoumov

    Why does disabled/rendered break A4j:commandLink

    jovincen Newbie

      Hi,

       

      I have an a4j:commandLink where I set the disabled property based on the status of a bean in rest scope (a seam conversation that is not long running).

       

      If I display the boolean property with outputText it displays the correct value.

       

      I'm assuming that when the post is made the link is re-evaluated by faces as disabled (because the backing bean has not been correctly setup), so the click event is ignored.

       

      Ie. it is enabled in the browser. However clicking it does not call the event on the server.

       

      I have hiddenInput fields that should set properties on the backing bean to ensure it is in the correct state.

       

      Any ideas?

       

      Cheers,

      Jon