java - How to get two Primefaces panels next to each other? -


is there way in primefaces place 2 primefaces panel adjacent each other ? panels getting rendered in vertical alignment. couldn't them rendered in horizontal alignment , next each other. tried using h:panelgrid also. no luck.

here code fragment:

<h:panelgrid>   <p:row>   <p:column>        <p:panel id="panel22" header="new bill">          <p:inputtext>aaa</p:inputtext>        </p:panel>   </p:column>   <p:column>     <p:panel id="panel222" header="chart">         <p:inputtext>bbb</p:inputtext>       </p:panel>   </p:column>  </p:row> </h:panelgrid>    

try below code. show both panels side side same height.

<h:panelgrid columns="2">        <p:panel id="panel22" header="new bill" style="height:200px">          <p:inputtext>aaa</p:inputtext>        </p:panel>     <p:panel id="panel222" header="chart" style="height:200px">         <p:inputtext>bbb</p:inputtext>       </p:panel> </h:panelgrid> 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -