You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Legolas Woodland <le...@gmail.com> on 2006/01/04 10:09:49 UTC

Topic: How i can have a button which become disable after user pressed it

How i can have a button which become disable after user pressed it
something like Sun java Application server Admin console login.
it disable just after user press it (via Enter or mouse click)
can some one give me some lights ?

Thank you for reading my post

RE: Topic: How i can have a button which become disable after user pressed it

Posted by fr...@pacbell.net.
try:
in the jsp:

<h:commandButton . . .   disabled="#{backingBean.pressed}">

in the backing bean:
public boolean isPressed() {
	return /* true/false if the button has been pressed */;
} 

-----Original Message-----
From: Legolas Woodland [mailto:legolas.w@gmail.com] 
Sent: Wednesday, January 04, 2006 1:10 AM
To: MyFaces Discussion
Subject: Topic: How i can have a button which become disable after user
pressed it

How i can have a button which become disable after user pressed it something
like Sun java Application server Admin console login.
it disable just after user press it (via Enter or mouse click) can some one
give me some lights ?

Thank you for reading my post