• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF application inside an iframe issues

 
Daniel Barcellos
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guys,

I need to place my application (dom't ask me why) inside an iframe. However I'm facing a few issues after doing that. Bellow my snippet web application code. Note that the entry.jsf is my JSF PrimeFaces's web application:



After doing that I'm facing few issues on IE9 (not tested in other IE's) and everything run out to broken

SCRIPT65535: Unexpected call to method or property access.
jquery.js.jsf?ln=primefaces, line 21 character 24260
SCRIPT257: Could not complete the operation due to error 80020101.
jquery.js.jsf?ln=primefaces, line 14 character 5461


Does any body knows what could that problem I'm facing with?

Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF and frames do not get along at all well and never have. Generally it is better to use Facelets and tiling. If you need scrollable frames, you can get the same general effect by using a div element with scroll options.

However, error codes such as "80020101" typically indicate that not only are you fighting JSF's natural hatred for frames, you are encountering a bug in the browser. Or, in this particular case, a JavaScript compatibility error. Which can sometimes be one and the same thing.
 
Daniel Barcellos
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:JSF and frames do not get along at all well and never have. Generally it is better to use Facelets and tiling. If you need scrollable frames, you can get the same general effect by using a div element with scroll options.

However, error codes such as "80020101" typically indicate that not only are you fighting JSF's natural hatred for frames, you are encountering a bug in the browser. Or, in this particular case, a JavaScript compatibility error. Which can sometimes be one and the same thing.


Hi Tim, it's me again (i guess you already have helped me)... The intend of placing my JSF app inside an iframe came from the need of it be able to communicate with a oracle forms 10g app. So I'm using the oracle forms app as web component which basically consit in runing java command throough the applet rendered for the oracle forms... ok it works pretty fine... Now I need that my JSF app send those commands via javascript without submiting it. So I thought that could be possible have 2 iframes one for the jsf app and one for the forms applet and let them "talk" via javascript.

This it would be pretty possible if my jsf app worked inside that iframe... So since you have tasted a litle bit of my situation how can I use facelet or even if you have any other ideas it would be wonderful!

Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, depending on the version of Oracle, the forms code may itself be JSF, but the larger problem would be crossing the inter-application boundary, I think.

So probably, you would have to fight it out with some sort of frames in any event.

I missed it yesterday, but just noticed that your problem is with IE9. IE9 does have some known problems with JavaScript.
 
Daniel Barcellos
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:Actually, depending on the version of Oracle, the forms code may itself be JSF, but the larger problem would be crossing the inter-application boundary, I think.

So probably, you would have to fight it out with some sort of frames in any event.

I missed it yesterday, but just noticed that your problem is with IE9. IE9 does have some known problems with JavaScript.


Well I guess I'm solving this problem by just upgrading our requirements from IE9 to IE10 which does work pretty fine both applications together.

And about the oracle forms despite the fact that is a dinosaur, our requitement needs that our jsf app "talks" to the oracle forms via javascript through the form's applet. That is not a problem on IE but start to be an issue on other browsers... but this is another challenge I have to face of

Thanks for now!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic