File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes htmlCommandButton sometimes does not work. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "htmlCommandButton sometimes does not work." Watch "htmlCommandButton sometimes does not work." New topic
Author

htmlCommandButton sometimes does not work.

Vincent Zhao
Greenhorn

Joined: Jul 09, 2008
Posts: 28
I have a command button as follow:
<h:commandButton action="#{AvailableBean.selectTrain}"
style="border-style:none;background:url(../xxx_xxx_images/#{bundle.buttonSelectAndContinue}) no-repeat center center;width:200px;cursor:pointer">
</h:commandButton>

Usually, it works fine, but sometimes it does not work. When I click the button, nothing happen. I cannot figure out what's the problem. Does anybody can give me any possible suggestions? Thanks in advance.

Wynton
Andres Quinones
Ranch Hand

Joined: Oct 09, 2006
Posts: 57
Can you post the whole jsp just to try to understand why is not working?
Vincent Zhao
Greenhorn

Joined: Jul 09, 2008
Posts: 28
It's a big JSP file. It SOMETIMES does not work. I have no idea about why and when it will not work.
Bhaskar GR
Greenhorn

Joined: Jun 13, 2008
Posts: 28
<h:commandButton action="#{actionBean.method}" immediate="true" value="Add"/>
checkit This.
Vincent Zhao
Greenhorn

Joined: Jul 09, 2008
Posts: 28
Thanks Bhaskar.
Probably this is a point.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

"Wynton Zh", please check your private messages for an important administrative matter.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Vincent Zhao
Greenhorn

Joined: Jul 09, 2008
Posts: 28
Hi Bear Bibeault,

Actually, my first name is Wynton and last name is Zhao. Why I can not use it?
Vincent Zhao
Greenhorn

Joined: Jul 09, 2008
Posts: 28
Hi Bhaskar,

Do you have this problem before? Are you sure this is a point? I still have this problem. Thanks.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: htmlCommandButton sometimes does not work.
 
Similar Threads
h:commandLink is not working within h:dataTable
JSF bean methods
Selectmanylistbox disables submit button
Command Link Action Does'nt work
Help. commandButton does not invoke Bean's method.