Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
129 views
in Technique[技术] by (71.8m points)

javascript - JSF: Iframe and @SessionScoped not working?

I′m trying to have an external JSF "customer portal" which can be embedded on a third party page.

The user has to integrate the following code snipped on his page:

<script src="http://localhost:8080/service/customer-portal/123456789"></script>

This script will get from a webservice a JS file. In this JS file some code is included which will call an iframe and with the ID (13456789) the user will get the specific page for his customer portal (e.g. customer portal with ID 123456789). So at the end the user will get on his 3party page an

This is already working, no question to that...

My problem is now, I would like to store some information in a @SessionScoped (javax.enterprise.context.SessionScoped), but it seems this is not working.

If I open the "real" link on my JSF application, then it′s working as expected.

Any idea to solve that?

question from:https://stackoverflow.com/questions/65869341/jsf-iframe-and-sessionscoped-not-working

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...