Hi,
I want to call a html page from controller.xml. Is there handler for rendering html pages in OFBiz. Please help me how to do this. Thanks & Regards Pardeep Ruhil ______________________________________________________________________ |
Hi Pradeep,
Try 1: Include <include location="component://common/webcommon/WEB-INF/common-controller.xml"/> In your controller.xml There you have jsp handler <handler name="jsp" type="view" class="org.ofbiz.webapp.view.JspViewHandler"/> So you can write simple html inside jsp itself and use it for html with out having dynamic content. Try 2 : In controller.xml <request-map uri="login"> <response name="success" type="view" value="htmlscreen"/> </request-map> <view-map name="htmlpage" type="screen" page="component://componentname/widget/YourScreens.xml#htmlscreen "/> In YourScreens.xml <screen name="htmlpage"> <section> <widgets> <platform-specific> <html> <html-template location="component://componentfoldername/webapp/componentname/HtmlPage.html"/> </html> </platform-specific> </widgets> </section> </screen> Regards Hemanth -----Original Message----- From: [hidden email] [mailto:[hidden email]] Sent: Wednesday, August 05, 2009 12:23 PM To: [hidden email] Subject: Access html page from controller.xml Hi, I want to call a html page from controller.xml. Is there handler for rendering html pages in OFBiz. Please help me how to do this. Thanks & Regards Pardeep Ruhil ______________________________________________________________________ http://www.mindtree.com/email/disclaimer.html |
Hi
Thanks for your reply. But when i followed your second try: I got this exception: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Rendering not yet supported for the template at location: component://drools/webapp/drools/setup/hello.html (Rendering not yet supported for the template at location: component://drools/webapp/drools/setup/hello.html) Thanks & Regards Pardeep Ruhil L&T Infotech Ltd Mumbai Ph: +919820283884 Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Hemanth Kumar Kanamarlapudi <[hidden email]> 08/05/2009 12:38 PM Please respond to [hidden email] To "[hidden email]" <[hidden email]> cc "[hidden email]" <[hidden email]> Subject RE: Access html page from controller.xml Hi Pradeep, Try 1: Include <include location="component://common/webcommon/WEB-INF/common-controller.xml"/> In your controller.xml There you have jsp handler <handler name="jsp" type="view" class="org.ofbiz.webapp.view.JspViewHandler"/> So you can write simple html inside jsp itself and use it for html with out having dynamic content. Try 2 : In controller.xml <request-map uri="login"> <response name="success" type="view" value="htmlscreen"/> </request-map> <view-map name="htmlpage" type="screen" page="component://componentname/widget/YourScreens.xml#htmlscreen "/> In YourScreens.xml <screen name="htmlpage"> <section> <widgets> <platform-specific> <html> <html-template location="component://componentfoldername/webapp/componentname/HtmlPage.html"/> </html> </platform-specific> </widgets> </section> </screen> Regards Hemanth -----Original Message----- From: [hidden email] [mailto:[hidden email]] Sent: Wednesday, August 05, 2009 12:23 PM To: [hidden email] Subject: Access html page from controller.xml Hi, I want to call a html page from controller.xml. Is there handler for rendering html pages in OFBiz. Please help me how to do this. Thanks & Regards Pardeep Ruhil ______________________________________________________________________ http://www.mindtree.com/email/disclaimer.html ______________________________________________________________________ ______________________________________________________________________ |
In reply to this post by pradeepruhil85
html is not supported directly
use ftl's or widgets [hidden email] sent the following on 8/4/2009 11:52 PM: > Hi, > I want to call a html page from controller.xml. Is there handler for > rendering html pages in OFBiz. > Please help me how to do this. > Thanks & Regards > > Pardeep Ruhil > > > ______________________________________________________________________ -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
In reply to this post by pradeepruhil85
Try to change the extension as .ftl or .jsp and see
-----Original Message----- From: [hidden email] [mailto:[hidden email]] Sent: Wednesday, August 05, 2009 2:08 PM To: [hidden email] Subject: RE: Access html page from controller.xml Hi Thanks for your reply. But when i followed your second try: I got this exception: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Rendering not yet supported for the template at location: component://drools/webapp/drools/setup/hello.html (Rendering not yet supported for the template at location: component://drools/webapp/drools/setup/hello.html) Thanks & Regards Pardeep Ruhil L&T Infotech Ltd Mumbai Ph: +919820283884 Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Hemanth Kumar Kanamarlapudi <[hidden email]> 08/05/2009 12:38 PM Please respond to [hidden email] To "[hidden email]" <[hidden email]> cc "[hidden email]" <[hidden email]> Subject RE: Access html page from controller.xml Hi Pradeep, Try 1: Include <include location="component://common/webcommon/WEB-INF/common-controller.xml"/> In your controller.xml There you have jsp handler <handler name="jsp" type="view" class="org.ofbiz.webapp.view.JspViewHandler"/> So you can write simple html inside jsp itself and use it for html with out having dynamic content. Try 2 : In controller.xml <request-map uri="login"> <response name="success" type="view" value="htmlscreen"/> </request-map> <view-map name="htmlpage" type="screen" page="component://componentname/widget/YourScreens.xml#htmlscreen "/> In YourScreens.xml <screen name="htmlpage"> <section> <widgets> <platform-specific> <html> <html-template location="component://componentfoldername/webapp/componentname/HtmlPage.html"/> </html> </platform-specific> </widgets> </section> </screen> Regards Hemanth -----Original Message----- From: [hidden email] [mailto:[hidden email]] Sent: Wednesday, August 05, 2009 12:23 PM To: [hidden email] Subject: Access html page from controller.xml Hi, I want to call a html page from controller.xml. Is there handler for rendering html pages in OFBiz. Please help me how to do this. Thanks & Regards Pardeep Ruhil ______________________________________________________________________ http://www.mindtree.com/email/disclaimer.html ______________________________________________________________________ ______________________________________________________________________ http://www.mindtree.com/email/disclaimer.html |
Free forum by Nabble | Edit this page |