How could I create a master page with JSP and IceFaces?
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
How could I create a master page with JSP and IceFaces?  XML
Forum Index -> General Help
Author Message
matiasburni

Joined: 30/05/2009 00:00:00
Messages: 2
Offline


Hi all, we are creating a website with google maps and more, our problem is simple, well maybe not so.
We need to create a structure of the main page (a master page), We are using JSF, but our problem is that we could not integrate the components of Icefaces.
We found a “manual” solution, just create frames in a JSP and include a fragment in each frame.

Some examples of our code:

Code:
 
             <head id="outputHead1">
                 <jsp:directive.include file="./styles.jspf" />
                 <title>iBee Project</title>
             </head>
             <body id="outputBody1" style="-rave-layout: grid">
                 <ice:form id="hdr" style="top:6%; left:1%; right:1%; position:absolute">
                     <jsp:directive.include file="./Header.jspf"/>
                 </ice:form>
                 <jsp:directive.include file="./cabecera.jspf"/>
                 <ice:form id="body">
                     <ice:panelGroup style="vertical-align: top;" effect="appear" >
                         <ice:panelCollapsible id="Mapa" expanded="true" >
                             <f:facet name="header">
                                 <ice:panelGroup>
                                     <ice:outputText id="formHeaderMap" value="Google Maps"/>
                                 </ice:panelGroup>
                             </f:facet>
                             <jsp:directive.include file="./googleMap.jspf"/>
                         </ice:panelCollapsible>
                     </ice:panelGroup>
                 </ice:form>
                 <ice:form id="foot">
 
                 </ice:form>
                 <div>
                     <ice:panelGrid id="bottom" style="position:relative;border-style: solid;border-width: 1px; border-color: #EEEEEE; left:1%" width="98%;">
                         <jsp:directive.include file="./pieDePagina.jspf"/>
                     </ice:panelGrid>
                 </div>
             </body>
 
 

 Filename Apiares.jsp [Disk] Download
 Description Example of application
 Filesize 2 Kbytes
 Downloaded:  220 time(s)

 Filename Home.jsp [Disk] Download
 Description Home.jsp complete
 Filesize 2 Kbytes
 Downloaded:  228 time(s)

camuski

Joined: 08/06/2009 00:00:00
Messages: 11
Offline


Have you tried facelets as an option?

Further if your are doing this:
Code:
<jsp:directive.include file="./pieDePagina.jspf"/>


You may want to enclose it in:
Code:
<f:subview> </f:subview>
 

or using facelets, you can do:

Code:
<ui:include src="./pieDePagina.jspf"/>


(And just being nosy) Do you need that many “ice:form” on one page? I don't see any action to perform on the page unless you have them in the included files, in which case you would be better off having the ice:form inside each "include" file.
matiasburni

Joined: 30/05/2009 00:00:00
Messages: 2
Offline


The idea was not use facelets.

(And just being nosy) Good tip, thanks.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team