-
1. Re: h:CommandButton action problem
antoine_h Aug 28, 2011 5:58 AM (in response to bkasodariya)hello,
In your page, the form is a h:form.
is this something you really want ?
you should use a : a4j:form
this should resolve this kind of double click problem.
also, your first command button is a : a4j:commandButton
the second one (cancel), is a h:commandButton
I guess you made the h:commandButton to be able to go to the "/pages/ProductList.xhtml" that is outside of the JSF application (in "another" jsf application, in another war, or so...) ?
the more simple use case is to use some a4j:commandButton, for ajax request, in the same JSF application.
for other use case, you might want to look at and use the richfaces htmlCommandLink.
hope it helps.
Antoine
JBoss Portal and GateIn (JSR-286), JSF, Richfaces, J2EE, Drools, BRMS.
-
2. Re: h:CommandButton action problem
bkasodariya Aug 29, 2011 5:30 AM (in response to antoine_h)Thanks for your response Antonie,
I tried to use a4j:form but its giving tag error at runtime. I am using richfaces 4.0
I am navigation in same jsf application.If i use a4j:commandbutton then i have to click two times.For h:commandbutton its working fine.
Thanks.
Bharat
-
3. Re: h:CommandButton action problem
ashutoshd Sep 8, 2011 6:54 AM (in response to bkasodariya)I am also facing the same problem .
Can any one tell the reason @illya , @bulanos . any one
-
4. Re: h:CommandButton action problem
bkasodariya Sep 8, 2011 9:34 AM (in response to ashutoshd)Hi,
Use h:CommandButton and make sure its inside <h:form>
Thanks,
Bharat
-
5. Re: h:CommandButton action problem
ederfdo Sep 8, 2011 4:53 PM (in response to bkasodariya)are using the relative path?
you must use the path from the root