aspose file tools*
The moose likes JSF and the fly likes JSF application inside an iframe issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF application inside an iframe issues" Watch "JSF application inside an iframe issues" New topic
Author

JSF application inside an iframe issues

Daniel Barcellos
Greenhorn

Joined: Dec 18, 2012
Posts: 11
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

Joined: Jun 25, 2001
Posts: 16141
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Daniel Barcellos
Greenhorn

Joined: Dec 18, 2012
Posts: 11
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

Joined: Jun 25, 2001
Posts: 16141
    
  21

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

Joined: Dec 18, 2012
Posts: 11
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF application inside an iframe issues