Fiori extension hook和Hybris的template
Fiori extension hook
類似ABAP里的BAdI definition,即SAP預留了一些增強的hook,application或者partner/customer可以實現自己的增強邏輯。
See my blog An example of End to End extension on CRM Fiori application – part3
https://blogs.sap.com/2015/06/20/an-example-of-end-to-end-extension-on-crm-fiori-application-part3/
Hybris
在我們通過前面issue介紹的辦法找到Hybris home page的實現之后,如果通過debug的方式啟動server,打開首頁時斷點會在line 6停下來。
這個template后面的page其實被一個名稱叫page.tag的文件實現:
這個tag文件里有大量的jsp:attribute和jsp:invoke。從jsp的namespace也能看出,這些tag并不是Hybris特有的,而是JSP標準的用法。
有什么用?網上的幫助文檔是這樣說的:
The jsp:attribute element allows you to define the value of a tag attribute in the body of an XML element instead of in the value of an XML attribute.
看個具體例子。
我創建了一個template.tag, 里面定義了一個skeleton, 其中藍色的div是我hard code進去的,而兩個fragment headerarea和footerarea相當于Fiori里的extension hook,允許這個template的consumer填值進去。
這是我的consumer, 里面給header和footer指定了如下的值。
最后的結果:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的Fiori extension hook和Hybris的template的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 汽车级磷酸铁锂电芯:绿联 X 比亚迪户外
- 下一篇: SAP Netweaver和Cloud