Current filter:
                                You should refresh the page.
                                Support Center
                                3
                                  • ´╗┐Hello there, DX folks.


                                    I'm trying to integrate another web page with a XAF application.


                                    Here, on the support center, there are some keys of how to embed another
                                     page as a custom view item into a XAF aplication, but I also need integration in the other direction, I mean embeding the view contents (listview, detailview or dashboardview) from the XAF application in an iframe on the other web page. The view must be clean of navigation, header and footer, only the view contents are needed, optionally the action bar could be of some use.


                                    I tried unsuccesfully to copy the defaultvertical.aspx and rip unneeded controls. Is this a recommended method? Is there an alternative?


                                    Thanks in advance.


                                    Regards.

                                    Santiago.

                                2 Solutions

                                Creation Date Rating Importance Sort by
                                0

                                I created a Frameless.aspx page starting from Default.aspx and removing unwanted items. Also needed custom FrameTeplatefactory and HttpRequestManager and make the application uso those.

                                I attached a sample project as demonstration. Run it, then navigate to Framelesss.aspx.

                                Show all comments
                                0

                                Hello,

                                Thank you for contacting us.
                                I am afraid we neither support this particular scenario (with an XAF Web application shown in IFRAME) nor we have researched whether or not it is possible to easily support it. Most likely, it will not work as is, because all requests in an XAF Web application are handled by our WebWindowTemplateHttpHandler class that does not support the IFrame scenario and may be confused if it receives requests from the URL different from the main web site domain.

                                Show all comments
                                • Santiago Moscoso 11.07.2012

                                  Those are sad news.
                                  Thanks, Dennis.

                                • >>
                                  I mean embeding the view contents (listview, detailview or dashboardview) from the XAF application in an iframe on the other web page. The view must be clean of navigation, header and footer, only the view contents are needed, optionally the action bar could be of some use.
                                  <<
                                  Probably, if you describe your ultimate goal in greater detail, we could find an alternative solution for you rather than using IFRAMEs.

                                • Santiago Moscoso 11.07.2012

                                  In the attached image I represent the desired resulting page.

                                • Willem de Vries 11.07.2012

                                  I'm very interested in this issue!

                                • Thank you for the screenshot.
                                  As far as I understand, this is a regular public web site and you will also need XAF CRUD capabilities in this ListView, automatic opening a linked detail form from a list, etc. If this is the case, then I am afraid it will not be easy to reuse XAF for this, although it is technically possible. The idea is to create the XAF ListView and its controls in code (similar to what is shown in ListView in NavigationControl), and then embed these controls onto your page. However, this approach is undocumented and may require additional tuning and also lead to other issues. We also do not have ready examples that show how to accomplish something similar.
                                  So, try it at your own risk as well as handle any problems with it yourself.
                                  Having said that, my suggestion is to not use XAF for this task, but rather utilize our ASP.NET components + XPO as a DAL and build this grid from scratch. Let me know if I can assist you further.

                                • Willem de Vries 11.07.2012

                                  Hi Dennis,

                                  How can we use the XAF Security System in the approach you recommend? Via a Middle Tier Server?

                                  Willem

                                • Yes, it is possible to get a filtered data from our middle tier service. We hope to publish a small demo once 12.2 is out. Please track How to add wcf service to the middle tier Application Server.

                                • Willem de Vries 11.07.2012

                                  Good news! Deserves to be posted on that thread too!

                                • drew.. 02.18.2013

                                  This is all very disappointing. In the early days of xaf, was there anyone in the meetings doing *any* work with real-life clients? I don't mean this to sound harsh. I simply have seen so many examples of situations where the classic use-case of using xaf in *anything* but an intranet, isolated, point-focused arrangement is all but impossible unless you are already capable of coding the whole thing yourself.

                                  I have hosted numerous framework type scenarios in iFrames over the years and simply assumed xaf was smart enough to handle this, given it can't manage a proper web-pointing presence, and does not even have a simply "forget your password/register" screen. I know, i am rehashing an old argument.. and promised myself i would not. But i took a contract with the end-game of xaf in an iFrame.. sigh.

                                • Drew, applications created by XAF are standalone apps with menu and navigation systems, which are also optimized (e.g., talking about scrolling) for the use in the main window and thus with a sufficient space on the screen (it is not a single Google search box on the screen). Due to this, we have not considered XAF Web apps will be embedded in an IFRAME element. I searched our support database, but could not find even five requests for the same capability in five years, so it seems that our users did not consider such a use-case as well or at least did not contact us about this.
                                  Regardless, Santiago was kind enough to post his solution to force XAF Web apps to work in this scenario.

                                • drew.. 03.03.2013

                                  hey Dennis, as always, i am the square peg in a world of round holes ;) .. but thanks for your thoughts.

                                • Timothy Chen 09.08.2014

                                  two years passed, is anything changed? is iframe supported now? it's important for me!

                                • @Timothy: Thank you for your update. I understand that this feature is important for you, it was requested by 6 other users so far, which is insufficient for it to be planned for any release. At this stage, we can only advise you try the solution posted by Santiago Moscoso. We will also continue monitoring user feedback in this regard and take your input into account.

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2017 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners