aspose file tools
The moose likes JSF and the fly likes JSF CommandButton not submitting second time 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 "JSF CommandButton not submitting second time" Watch "JSF CommandButton not submitting second time" New topic
Author

JSF CommandButton not submitting second time

mohanavalli ilangovan
Greenhorn

Joined: Aug 02, 2009
Posts: 2
Hi All,

We developed entire project by extending facesgenericportlet, but while client is using they are extending facesportlet. Here is problem, my code works fine with facesgenericportlet when it comes to facesportlet , first click is performing, second click is not performing. We are using h:commandbutton and we use many javascript for rendering/show,hide div tag.

And its working fine in firefox its failing only in IE. Please advise me.

Regards,
Mohana
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Moving to the JSF forum.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Mohan Sridharan
Greenhorn

Joined: Dec 17, 2005
Posts: 4
Hi Mohana,

Can you be a bit more clearer on what you are trying to accomplish. From your post, the following is what I understand

1. You are on Websphere Portal Server
2. You are using JSF within your Portlets.

Not sure what functionality you are trying to accomplish.

thanks
Mohan
Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
>>>And its working fine in firefox its failing only in IE. Please advise me.

Please check if there is some scripts etc disabled for IE
mohanavalli ilangovan
Greenhorn

Joined: Aug 02, 2009
Posts: 2
We have lot of jsps and UI elements under single form. If it is PortletFacesContextFactoryImpl(<faces-context-factory>) and FacesGenericPortlet its working fine. If we change to AjaxFacesContextFactory(<faces-context-factory>) and FacesPortlet, second time any action is not happening. We are using jsf-portletbridge.jar for AjaxFacesContextFactory.

This issue is solved if we use more <h:form>. But, since it is performance issue we are looking for alternative solution.

We are using Websphere Portal v5.1 test environment and using JSF within portlets.

It should not be any javascript problem since it is working fine with FacesGerericPortlet. And its working fine with more <h:form>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSF CommandButton not submitting second time
 
Similar Threads
== and equals() for reference variables
How would you model this?
JComboBox problem
Eclipse 3.1 Question
h:commandButton problem