jquery - jsf 2.0 working with javascript prevents ajax call -


i'm working on jsf 2 project. got javascript/jquery functions on client side, after calling these functions <a4j:commandbutton> not working.

servlet.service() servlet faces servlet threw exception: java.lang.nullpointerexception      @ com.sun.faces.context.partialviewcontextimpl.createpartialresponsewriter(partialviewcontextimpl.java:441) 

if change <a4j:commandbutton> <h:commandbutton>, works fine, need a4j because of oncomplete attribute.

how can debug issue? looks problem javascript event, prevents ajax call.

i have tracked down problem determine due <button> tag being in html.

for example:

<!doctype html> <html lang="en"  xmlns="http://www.w3.org/1999/xhtml"  xmlns:h="http://java.sun.com/jsf/html"  xmlns:a4j="http://richfaces.org/a4j"> <h:head> </h:head> <h:body>     <h:form id="example">         <a4j:commandbutton type="submit" value="submit" />         <button>button</button>     </h:form> </h:body> </html> 

my theory javascript submitting ajax somehow confused <button> tag in ie7 causing invalid post server.

without seeing html, can't issue.

check following jira posts more information.

http://java.net/jira/browse/javaserverfaces-2666

https://issues.jboss.org/browse/rf-12693

pavol pitonak on @ richfaces discovered if add name attribute <button> error go away.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -