Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

'oncomplete' problem while running request to a servlet

 
Dmitriy Kastikovich
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I have a A4J form with inputFileds.
And a button:




So, when I press button, new window appears, but after request it closes itself without any questions.
If I change oncomplete to onclick, then all is OK, except that no data from fileds are setted to managed bean.

Thanks.
 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just a wild guess.. try "return true" keyword in js function.
 
Dmitriy Kastikovich
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nitin pokhriyal wrote:just a wild guess.. try "return true" keyword in js function.


nothing changed...
please, see WAR file:

http://upload.com.ua/get/901049747/?mode=free
(enter numerical CAPTCHA and press green button, wait for a 1 min)

to run: http://127.0.0.1:8080/test/pages/reports.jsf
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!