Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
horizontal alignment
Joe Jose
Ranch Hand
Posts: 125
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I need to align the panelGrid horizontally. When I try to do this, it comes vertically.Please anyone help me how can I achieve it horizonmtally ?
Here is my code bit :
<h:panelGrid id="panel1" columns="2" columnClasses="medium"> <f:facet name="header"> <h:outputText value="Available Departments" /> </f:facet> <h:selectManyListbox id="deptList"value="#{CreateQuoteBean.selectedDeptList}"> <f:selectItems value="#{CreateQuoteBean.deptList}"/> </h:selectManyListbox> </h:panelGrid> <h:panelGrid id="panel2" columns="2"><h:commandButton id="add" action="#{CreateQuoteBean.moveItems}" value=">" styleClass="DataList" /> <f:verbatim> </f:verbatim> <h:commandButton id="remove" action="#{CreateQuoteBean.removeItems}" value="<" styleClass="DataList" /> </h:panelGrid> <h:panelGrid id="panel3" columns="2"> <f:facet name="header"> <h:outputText value="Selected Departments" /> </f:facet> <h:selectManyListbox id="depts" value="#{CreateQuoteBean.departments}"> <f:selectItems value="#{CreateQuoteBean.selectedDept}" /> </h:selectManyListbox> </h:panelGrid> </t:panelTab>
Thanks,
Joe.
Joe Jose
Ranch Hand
Posts: 125
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I got it solved. I hadn't given enough number of columns in panelGrid.
Thanks,
Joe.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
selectManyCheckbox
EL Syntax exception - javax faces el ReferenceSyntaxException
Component ID frm1_window viewid has already been found in the view
java.lang.IllegalStateException: duplicate Id for a component
Problem with column sort in myFaces dataTable
More...