Hi that the oamsubmit.js is loaded is normal, this is a script which
does the normal onclick behavior for command links.
The html is fine. The oamsubmit used to be inlined in old myfaces
versions now it is externalized.The oamsubmit definitely is not the
cause of the issue you face.
Werner
Am 05.03.12 11:57, schrieb Danijel Domazet:
Hi Werner,
Nothing is clicked, just the page is loaded, and yet I get this
/javax.faces.resource/oamSubmit.js.faces
Here is a peace of generated html:
<td colspan="3"></td>
<td align="right" height="20" colspan="2">
<script src="/EWC/javax.faces.resource/oamSubmit.js.faces?ln=org.apache.myfaces"
type="text/javascript">
</script>
<a id="j_id_6:LOGIN" onclick="return myfaces.oam.submitForm('j_id_6','j_id_6:LOGIN');"
href="#">
<img style="border: none" src="images/login.png">
</a>
</td>
and here is the xhtml:
<td colspan="3"></td>
<td height="20" colspan="2" align="right"><h:commandLink id="LOGIN"
action="#{LoginBean.doLogin}"><h:graphicImage style="border: none" value="images/login.png" /></h:commandLink>
</td>
Does that help?
Danijel Domazet
Software Developer
www.MainConcept.com
Rovi. Join the Entertainment.
-----Original Message-----
From: Werner Punz [mailto:werner.p...@gmail.com]
Sent: Saturday, March 03, 2012 12:10 PM
To: users@myfaces.apache.org
Subject: Re: Buttons not reacting
Hi the oamsubmit is the standard submit call rendered from myfaces but
it should not be called automatically, instead if you press a
commandLink/href it should be in the onclick handler.
Can you post your example somewhere so that we can have a look at it on
what is going wrong?
The reason why buttons stop reacting is probably because you lose your
viewstate in your configuration somewhere.
Werner
Am 02.03.12 12:37, schrieb Danijel Domazet:
Seems like this has to do with my initial Faces servlet: I am overriding
org.apache.myfaces.webapp.MyFacesServlet. When I don't override, it works ok,
like this:
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
This is what happens: my first page is /login.faces. When I open this page, my class that
owerrides MyFacesServlet is called *twice*. First time login.faces is the caller, and
next time the caller is /javax.faces.resource/oamSubmit.js.faces, I have no idea where
this call comes from, I have no java scripts on the page. This second time I execute
HttpServletResponse.sendRedirect( "/login.faces" ). When I comment out this
sendRedirect line all works well.
Danijel Domazet
Software Developer
www.MainConcept.com
Rovi. Join the Entertainment.
-----Original Message-----
From: Werner Punz [mailto:werner.p...@gmail.com]
Sent: Thursday, February 23, 2012 9:03 PM
To: users@myfaces.apache.org
Subject: Re: Buttons not reacting
Hi if it does not help, could you isolate the case in a small webapp?
So that we can have a deeper look into it.
Werner
Am 23.02.12 14:03, schrieb Danijel Domazet:
I'm using MyFaces.
Switching back from 2.1.5 to 2.0.2 did not help.
Let me check if 2.1.6 is out, even I wouldn't hope it will help.
Thanks.
Danijel Domazet
Software Developer
www.MainConcept.com
Rovi. Join the Entertainment.
-----Original Message-----
From: Werner Punz [mailto:werner.p...@gmail.com]
Sent: Wednesday, February 22, 2012 10:52 PM
To: users@myfaces.apache.org
Subject: Re: Buttons not reacting
Hi I remember vaguely in issue with myfaces 2.1.5 which sounds familiar
it should be fixed in 2.1.6.
Hence the question which implementation of jsf and which version.
Werner
Am 22.02.12 19:06, schrieb Danijel Domazet:
Hi.
Yes, I also use Tomahawk.
Let me try to switch back to 2.0. Will let you know if that solves the issue.
Danijel Domazet
Software Developer
www.MainConcept.com
Rovi. Join the Entertainment.
-----Original Message-----
From: Georg Portwich [mailto:portw...@blueskye.de]
Sent: Wednesday, February 22, 2012 5:22 PM
To: MyFaces Discussion
Subject: Re: Buttons not reacting
Hi Danijel,
I have accidentally installed tomahawk together with JSF2.1. In this
installation I have seen a similar strange behavior as you describe.
Switching back to JSF2.0 solved the issue.
Georg
Am 22.02.2012 15:32, schrieb Danijel Domazet:
Hi everyone,
I recently switched my project from JSF 1.2 to JSF 2.1.
Strange thing happens: I set up a project, and it works fine for some short time, and then suddenly
(maybe after I do "clean") stops working in a sense that clicking a button does not
produce any action, backing bean's method is not called, just nothing happens. I have tried to do
project "clean" and Eclipse restart, and even system restart but it did not help. Only
thing that helped is that I created a brand new workspace, and new project - but same thing
happened: this too worked only for short time and suddenly stoped working in the same way - buttons
are just not reacting to clicks, and there is no way I can debug Java code to at least localize the
problem.
What could be the reason for such a strange behaviour?
Thanks in advance.
Danijel Domazet
Software Developer
www.MainConcept.com
Rovi. Join the Entertainment.