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:[email protected]]
Sent: Thursday, February 23, 2012 9:03 PM
To: [email protected]
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:[email protected]]
Sent: Wednesday, February 22, 2012 10:52 PM
To: [email protected]
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:[email protected]]
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.