Defining standard event handlers in SAP UI5 when not using MVC - sapui5

We are using SAP UI5 in SAP MII and if we use MVC it is not getting displayed in Portal, as portal in IE 9 makes rendering mode to Quirks whereas UI5 on MVC requires Standard mode in IE 9 to display the web page. We have also found that if we don't use MVC then UI5 web pages from portal are being displayed in Quirks mode itself. But the only problem we are facing on how to define the event handlers of UI5 standard events such as onAfterRendering. As there is no controller, the framework is not able to recognize the event handler when we define it in the usual way.
Any pointer on how to define standard event handler for UI5 in JS file shall be highly appreciated.
Thanks,
Dipankar

Not sure why not using MVC and in particular a controller would enable the controls to work in quirks mode. I wouldn't expect the controls to render correctly etc, and not using the MVC pattern doesn't sound like a maintainable workaround.
There are a few blogs and SAP notes related to the quirks mode on the SCN, I've enclosed a few below.
SAPUI5 on Portal
Does SAPUI5 actually work in the SAP Portal?
Regards,
Jason

Instead of trying to run UI5 in Quirks Mode, why not run Web Dynpro applications in Standart Mode by implementing OSS Note 1911889 ? Then, you can put your UI5 and Web Dynpro content in Unified Framework Page on EP.

Related

UI5: sap.f.ShellBar vs. sap.tnt.ToolHeader

I'm exploring the UI5 Tool Header UI component.
As far as I can see, there is an option to implement such UI component either with sap.f.ShellBar or with sap.tnt.ToolHeader. Since both UI elements look pretty similar, what's the difference?
Is sap.f.ShellBar just a newer/modern implementation of the functionality, provided by sap.tnt.ToolHeader?
The Tool Header control is part of the sap.tnt library and this library "[...] targets the specific needs of the tools user group (typically developers and administrators)" (taken from the UI5 documentation). By contrast, the Shell Bar is part of the sap.f library with controls specialized for application-oriented UIs.
Further details and guidelines on these two specific controls can be found in the SAP Fiori design guidelines for the Shell Bar or rather the Tool Header.

application with sapui5 and openui5

Actually we have developed on application with sapui5 for our customer but the problem is that some new customer dont want to go through License agrement with sapui5. So the solution we have found to make our application with openui5.
My question is that
"Is there any possibility to make application with both of them and at the time of installation making a decision either going and make resources of sapui5 or openui5"?
Thank you
Nimi
As long as you understand that certain features will only be available in SAPUI5 you can load the version of sap-ui-core.js that comes with either in your bootstrap index.html page.
For example, if using CDN, for OpenUI5 link to https://openui5.hana.ondemand.com/resources/sap-ui-core.js and for SAPUI5 use https://sapui5.hana.ondemand.com/resources/sap-ui-core.js
See this link to read about differences between SAPUI5 and OpenUI5.
Also see this link for another discussion of the differences.
I know that this post (I'm linking to) is not so much updated but it will give you a good overview and history about SAPUI5/OpenUI5 and all the differences.
Anyway, SAPUI5 is a superset of OpenUI5 with some addictional control (like VizChart or FilterBar.
I think that in 90% of cases you can just go with OpenUI5 and use other opensource libraries / develop custom control if you need something that is missing.

Porting UiBinder file in GWT for mobile

I developed GWT desktop browser application , before working on porting the Application for webkit browsers I need to have following doubts clarified:
Is it possible to map mulitple UiBinder template with the same View class?
Are the widgets consistent in look and feel for Desktop as well as webkit(mobile) browsers?
Thanking in advance.
Take a look at the mobilewebapp example which comes with the GWT SDK. There you can see, how an app can serve different views depending on the device by using deferred binding.
Using the first approach, you have different views for each device. So, you are free to choose different widgets for different platforms.
I want to share one the method that I tried, First of all instead of mapping view to viewimpl you can bind it to viewprovider, and then based on user-agent values you can return the appropriate instance to bind to.I implemented this in sample application and its working fine as of now.

Kendo - form, message box

I am evaluating different JavaScript frameworks.
Does Kendo UI includes 'helpers' that simplify creating forms and message windows?
Thanks, alon
Kendo web is a suite of component that operate in the client. Speak about form has no sense, because the kendo components works with json ajax request with the server services. The suite can works over WEB pure html component, also integrate with MVC 4. Exist a community edition that you can download from Telerik(r) web site if you want to test it.
The suite has a Window widget. You can construct from it your message box, but does not have message box individual component. Exists a third party extension with many of these boxes. (Kendo UI Extension).
I hope that this help you

LightBox Plugin that Supports Forms

I am developing a Spring MVC application and i am looking for a Lightbox plugin that supports forms, meaning i can call my form in it and it will be displayed just like a picture does. Has anyone ever done this before please advise.
I would also like to know if there is any specific call to the light box when using an MVC design pattern or will a simple call to the forms url will work.