I'm using p:button component of 2.2M1 release and it isn't working when I put it between h:form tags.
Without h:form tag, the component work perfectly.
Is this behavour a bug?
Thanks,
Gledson
p:button with h:form - 2.2M1-SNAPSHOT
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
What do you mean by not working, what happens, can you provide your code?
There's a "return false;" missing at the end of the Javascript onclick handler rendered by p:button. This means that the GET is aborted just after it starts and the the form is POSTed.
onclick="window.location.href='/jsf/view/navigation/navigation.xhtml';"
should be
onclick="window.location.href='/jsf/view/navigation/navigation.xhtml'; return false;"
onclick="window.location.href='/jsf/view/navigation/navigation.xhtml';"
should be
onclick="window.location.href='/jsf/view/navigation/navigation.xhtml'; return false;"
-
- Posts: 2
- Joined: 28 Aug 2010, 00:15
exactly callahan!!!
The "return false;" is missing in p:button...
The "return false;" is missing in p:button...
Code: Select all
<button id="j_idt23" name="j_idt23" onclick="window.location.href='/projetopilotoarquitetura-web/ListaRotinas.faces';">
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
This should be fixed yesterday.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 27 guests