Hi Martin,
Thanks for your response, it seems that the button is not re-rendered to
the client-side; but why the procedure described here
http://wiki.apache.org/myfaces/Sending_Files cause that ?
If i remove this part on the action of the button and i kept only the
setDisabled(true)/setRendered(false) the button is correctly
disabled/not rendered.
Using javascript could be a problem.
Regards,
Emanuele
Martin Marinschek wrote:
Hi Emanuele,
most possibly, cause you only disable the button on the _server-side_,
but the button is not re-rendered to the _client-side_ - so you won't
see the effects of the changed attribute. You'll need to disable the
button on the client-side with javascript.
regards,
Martin
On 8/13/07, Emanuele Gesuato <[EMAIL PROTECTED]> wrote:
Hi Martin,
I have a page, in this page i have a button that once clicked render a file.
I want to disable the button when the file is rendered.
In this button i have an action similar to what's described here:
http://wiki.apache.org/myfaces/Sending_Files
When i add a statement to the action such as setEnabled(false) or
setRendered(false), the button for some reason remains enabled/rendered.
Why ?
Thanks,
Emanuele
>Hi Emanuele,
>
>I don't get you - you have a page, you render a file from it, you want
>to disable the button on the first page? Do you talk about clicking on
>the back button?
>
>regards,
>
>Martin