Professional Documents
Culture Documents
w ktrej na potrzeby zdefiniowania nowego layout istotne s dwa zbiory: zbir w katalogu dist/PORTAL-INF/jsp zawierajcy definicj strony jsp definicj tworzonego layoutu zbir portalapp.xml definiujcy now aplikacj Do stworzenia ww zbiorw mona uy zbiorw z ju istniejcych layoutw standardowo dystrybuowanych z portalem SAP. Pakiet zawierajcy te zbiory mona wydoby z portalu poprzez: .. Wrmy do definicji nowego layout. W niniejszym przykadzie definiowany bdzie nowy layout o przedstawionej poniej strukturze: . Jest to odpowiednik layoutu T, ale odwrconego. Poniej przedstawiono zawarto pliku jsp o nazwie inverted_T_layout.jsp, definiujcego struktur layoutu:
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb" prefix="hbj" %> <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %> <lyt:template> <hbj:content id="myContext" > <hbj:page title="Portal Page"> <hbj:gridLayout id="GridLayout1" width="100%" cellSpacing="2"> <hbj:gridLayoutCell rowIndex="1" columnIndex="1" width="20%" verticalAlignment="top"> <lyt:container id="column1" />
</hbj:gridLayoutCell> <hbj:gridLayoutCell rowIndex="1" columnIndex="2" width="80%" verticalAlignment="top"> <lyt:container id="column2" /> </hbj:gridLayoutCell> <hbj:gridLayoutCell rowIndex="2" columnIndex="1" width="100%" verticalAlignment="top" colSpan="2"> <lyt:container id="column3" /> </hbj:gridLayoutCell> <hbj:gridLayoutCell rowIndex="3" columnIndex="1" width="100%" verticalAlignment="top" colSpan="2"> <lyt:container id="column4" /> </hbj:gridLayoutCell> </hbj:gridLayout>
Majc przygotowane oba zbiory mona przygotowa pakiet par do instalacji w portalu. W tym celu naley wybra File->Export->PAR file