Issue in treetable collapse in primefaces? - jsf

I am using primefaces 3.2 and i am using treetable and i am trying to collapse the tree.but it is not get collapsed.i am not using any events.treetable is enclosed with h:form
and i am using layouts
Thanks in advance

Related

Alternative to rich:extendedDataTable in PrimeFaces 6.1

We are currently migrating our application which was written in richfaces to primefaces.
I am looking for alternative for rich:extendedDataTable in primefaces. the extended data table does something like this
is there a way to achiveve this in primefaces with p:dataTable?
From looking over the RichFaces ExtendedDatatable I think the PrimeFaces Extensions Sheet component is what you are looking for. From what I can see it does almost everything that Extended Datatable does except Live Scroll.

primefaces datagrid does not work when rows and columns are defined

I want to represent my data from a MYSQL database table in a primefaces carousel or slider or datagrid with one row. The carousel does not work at all. The datagrid does not work when I add rows="1" attribute and I don't know how to implement my data into a slider.
Any ideas?
I solved the problem. The version of jQuery I had included into my xhtml file was different from that of primefaces jQuery library. So I just used the primefaces jQuery library and deleted the other one and all primefaces components worked as they should.

Primefaces ScrollPanel with toggleable Fieldset

I have a Primefaces scrollpanel that has a datatable along with a Primefaces expandable Fieldset which is collapsed by default. My scrollpanel has fixed height. now the issue is whenever I Expand the Primefaces Fieldset,some of the Portion of Datatable that is present within the Scrollpanel gets cut off as the space is taken up by the expanded fieldset.
Can anyone tell me how can I get over this issue?
thanks in advance

Drop down menu in primefacess

Using primefaces, how can i implement multiple selection of items in the dropdown list without using several dropdown menus...
is there tag in primefaces??
I think there's no primefaces component to achieve this but you can use plain jsf.
Try <h:selectManyMenu> or <h:selectManyListbox>.
Here is an example for the menu:
<h:selectManyMenu
id="newsletters"
value="#{bean.selectedItems}">
<f:selectItems
value="#{bean.availableItems}"/>
</h:selectManyMenu>
You'll find more information in the Java EE tutorial.
Primefaces 3.0 M1 has a SelectManyMenu component. You can download 3.0 M1 version here
2.2.1 doesn't have such component. Regards.

How do I reorder rows in DataTable using drag drop?

I am using PrimeFaces and JSF. Can anyone tell me how do I reorder rows of a DataTable using Primefaces drag and drop component?
Currently with in the PrimeFaces framework (v2.2.1 and 3.0) this is not possible with <p:dataTable>.
There is an open PrimeFaces Issue 511 <p:dataTable> draggable columns to add the Yahoo widget datatable draggableColumns attribute to the PrimeFaces <p:dataTable> but no target version is set yet.
If you would like to see this added to PrimeFaces star the issue to help give it higher priority.
This is definitely an older question, but the answer needs updating. This is now doable using the draggableColumns="true" attribute on your p:dataTable.
Your dataTable would then look as such :
<p:dataTable var="i" value="#{bean.data}" draggableColumns="true">
Sources :
PrimeFaces Showcase : DataTable - Columns Reordering
This feature is now available from PrimeFaces 5.0:
Usage is very simple by just enabling draggableRows option and also an optional rowReorder ajax behavior is provided getting a ReorderEvent with index information for flexibility.
Source : http://blog.primefaces.org/?p=3026
You can also have a look at the showcase here: http://www.primefaces.org/showcase/ui/data/datatable/reorder.xhtml

Resources