• djButton disabled attibute cannot be changed programmaticaly

    By Fernando Levi 1 decade ago

    I have an XPage, with a xp:button, disabled by default. This changes programmaticaly with client side js, with:

    document.getElementById("#{id:buttonID}").disabled=false;

    It works fine.

    Now... I wanted to use the better looking xe:djButton instead.

    The code above now fails.

    • A dojo button is different

      By Philippe Riand 1 decade ago

      Please refer to the dojo doc. You should access the button by calling dijit.byId() and not thoough getElementById(). Then, you can call any of the dojo button API