• Post Reply Bookmark Topic Watch Topic
  • New Topic

Javascript Error due to JSF

 
Amol Chavan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • 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.
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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>.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!