• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Javascript Error due to JSF

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am facing a javascript error due to JSF.Actually in my code I included a file in another file before starting a form tag of the file.
Now the problem is that whenever JSF page renders it creates a function called clear_formName() in the page and on every components which has some action or javascript function called on it, it also calls this function along with it.
But in my case it is not creating this function while rendering and still calling it while I click on the button due to which I am getting Javascript error and button not able to perform further action.But it is still creating this fuction with name like clear_linkDummyFoorm which is other than one used in my form.In the included file there is no form in it.
Due to this button is not of use and cannot execute action because of javascript error which says clear_frmPrint not defined.

Please help me it is urgent as I have to release it for testing and suddenly I got stuck with this error.
 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the other file have some JSF input controls?

and you will have to use <f:subview> tags to include another jsp file.
 
Amol Chavan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, i am using <f:subview> to include other jsp file and that file has navigation menu which is command links to navigate form one screen to other.
but still its giving the problem.

Can you suggest a solution for it?
what could be the reason for it?
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One possible reason for this could be that you are not using <f:verbatim> tags inside the page you are trying to include i.e. page with <f:subview>.
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic