Don't like ads? PRO users don't see any ads ;-)
Guest

chungo

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 1.36 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <p:layoutUnit id="top"  position="north" size="50">
  2.  
  3.                        
  4.  
  5.                               <h:form id="form">
  6.  
  7.                        
  8.  
  9.                           <f:ajax render=":include">
  10.  
  11.                           <h:commandLink id="try" value="Home" action="#{bean.setHome}" >
  12.  
  13.                          
  14.  
  15.                            </h:commandLink>
  16.  
  17.                            &nbsp;
  18.  
  19.                            <h:commandLink value="Account" action="#{bean.setAccount}" >
  20.  
  21.                            <f:param name="link" value="account.xhtml" />
  22.  
  23.                            </h:commandLink>
  24.  
  25.                            &nbsp;
  26.  
  27.                            <h:commandLink value="Cards" action="#{bean.setCard}" >
  28.  
  29.                            <f:param name="link" value="calculate.xhtml" />
  30.  
  31.                            </h:commandLink>
  32.  
  33.                          </f:ajax>
  34.  
  35.                         </h:form>
  36.  
  37.        
  38.  
  39.                 </p:layoutUnit>
  40.  
  41. <p:layoutUnit id="center" position="center">
  42.  
  43.                
  44.  
  45.                 <h:panelGroup rendered="#{bean.didIt}" id="include">
  46.  
  47.                          
  48.  
  49.                         <ui:include src="#{bean.link}" />
  50.  
  51.                             </h:panelGroup>
  52.  
  53.                        
  54.  
  55.                  
  56.  
  57.                    
  58.  
  59.                 </p:layoutUnit>