Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
h:commandButton action not working
Tanya Ruttenberg
Ranch Hand
Posts: 40
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This problem is only appearing in IE. It is a seam project (version 2.2.2EAP5) with JSF1.2
The button appearing at the bottom of this page
<rich:panel id="p1"> <h:form id="f1"> <rich:messages for="f1" style="color:red;" /> <h:panelGrid columns="1" styleClass="srch-pnl"> <s:decorate template="/layout/display.xhtml"> <ui:define name="label">#{messages['ond.label.sitecode']}</ui:define> <h:inputText id="it22" value="#{siteCodes.siteCode}" /> </s:decorate> [...other search criteria deleted for readability....] </h:panelGrid> <rich:spacer height="20px" /> <div class="actionButtons"> <h:commandButton id="hcb1" action="search" value="Traditional OND (Offices and Devices)"> <s:defaultAction /> </h:commandButton>
I have a .page.xml file with a navigation rule
<navigation> <rule if-outcome="search"> <redirect view-id="/pages/list/office/ONDList.xhtml"> <param name="maxResults" value="#{officeMaxResults}" /> </redirect> </rule> </navigation>
The action does not seem to be triggered.
It works fine in Firefox, jsut not in IE.
I tried replaced the action with a bean method that prints a message when it fires. It prints the
message in Firfox but not in IE.
For some reason the action is not firing. Any idea why it would not fire?
Ilari Moilanen
Ranch Hand
Posts: 199
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This is just a shot in the dark but have you checked that you have javascript enabled in IE?
Tanya Ruttenberg
Ranch Hand
Posts: 40
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
IE scripting *is* enabled. I was sure hoping it would be something straightforward like that!
The previous version of my app works just fine. I've been trying to disable pieces of the app until I figure out what is triggering the problem.
So far, no luck.
Andreas Scheucher
Greenhorn
Posts: 10
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I do not know a solution, but I have written a small phase listener, which logs the request parameters to the servers log.
import java.util.Map; import javax.faces.context.FacesContext; import javax.faces.event.PhaseEvent; import javax.faces.event.PhaseId; import javax.faces.event.PhaseListener; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * PhaseListener that logs request parameters before restore view phase. */ public class ParameterPhaseListener implements PhaseListener { private static final long serialVersionUID = -7280164859565844793L; private static Log log = LogFactory.getLog(ParameterPhaseListener.class); @Override public void afterPhase(PhaseEvent event) { } @Override public void beforePhase(PhaseEvent event) { FacesContext fc = FacesContext.getCurrentInstance(); Map<String, String> map = fc.getExternalContext() .getRequestParameterMap(); for (String key : map.keySet()) { if ("j_password".equals(key)) { log.debug("Parameter: " + key + " = ********"); continue; } StringBuilder param = new StringBuilder(); param.append("Parameter: '"); param.append(key); param.append("' = '"); param.append(map.get(key)); param.append("'"); log.debug(param.toString()); } } @Override public PhaseId getPhaseId() { return PhaseId.APPLY_REQUEST_VALUES; } }
maybe you can see a difference?
greets,
Andi
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSF <h:commandButton action> not working
Mutiple ComboBoxes using c:forEach
JSF action doesn't call bean method
Jumping past phases 2, 3, 4, and 5?
problem on saving inputText values
More...