Richfaces ExtendedDataTable customization of groupings output - jsf

I'm looking to implement the ExtendedDataTable component in Richfaces.
When selecting the 'Group by' on a column, I would like to have a 'Select all' option displayed on each grouping row. This would select/un-select all checkboxes under this grouping.
I dont think there is any quick easy solution to this?
Would I need to extend the ExtendedDataTable base class somehow to add this functionality?
Edit: I got this response from the Richfaces team.
Has anybody created their own ExtendedDataTable based on the ExtendedDataTable implementation?
Is it difficult? Time consuming?
Even if somebody created a custom DataTable or other component, could you offer some advice or tips?
Here are the component creation documents.

Related

Customize Acumatica bulit-in dropdown list with conditions

I have used the answer to Woody's question at
Is there a easy way to customize Acumatica build-in dropdown list? to customize several dropdown lists. Thank you for the guidance with that one. I want to further customize a different drop-down list based on the Class ID and the Status of an Acumatica Case. I am not sure at all how to achieve this. Can anyone provide advice please?
If you are able to write proper 'Search' BQL to get the result, you can use the PXSelector attribute. If you use 'Current' it will use the the current documents field value. So as per your case, you can use the current ClassID and Status to dynamically populate your selector.
Eg:
[PXSelector(typeof(Search<DiscountSequence.discountSequenceID,
Where<DiscountSequence.discountID, Equal<Current<DiscountSequence.discountID>>>>))]
Hope this helps.
I propose you to consider customizable selector, with which you can completely control all your data which will be displayed. Here is example of implementation.

XPages newbie - view columns in discussion database

I'm a traditional domino developer just beginning XPages. I'm working on modifying the standard 8.5.3 Domino discussion database. I've added some fields on the Main Topic and response forms, one called category. I've added a categorised column in the ($xpAllDocuments) view to the left of "Topic" for the category field. This works fine in Notes as you'd expect, but when the view is rendered in the All Documents xpage, the category twiste displays without any label. I'm not sure how to modify the column data for the xpage, as it seems to use a repeat? instead of a view?
Any help greatly appreciated, and apologies for the presumably basic enquiry!
You have to add the categories column to custom control allDocumentsView which renders the view for browser.
How to find out where to set the new categorized column? A good way is to look at the "All properties" of a certain element. For that, open the Source pane of custom control allDocumentsView, position cursor on <xe:dataView and look at "All Properties". If you hover over the properties' labels you get a helper window with a short explanation.
In your case, property categoryColumn is what you are looking for. Assuming you added a categorized column Categories to view ($xpAllDocuments) then you would have to put into property categoryColumn:
With that, your source code gets expanded by
<xe:this.categoryColumn>
<xe:viewCategoryColumn
columnName="Categories"
columnTitle="Categories">
</xe:viewCategoryColumn>
</xe:this.categoryColumn>
and you will see the added categorized column in your rendered XPage.
I don't know the discussion template in detail, but when the All Documents Xpage is using a repeat control, then you cannot expect an automatic category expand/collapse feature as in a Notes view.
If you want that, you need a View control on the Xpage.

Moving the selected rows from one DataTable to Other inPrimeFaces 3.2

I'm new to PrimeFaces. In my project, I have a requirement to show 2 tables where user can select the rows and move to other datatable. In order to achieve this, can I use PickList component? If so, does it allow me show data with multiple columns. Any reference example is appreciated.
i dont think you need to use picklist. you can acheive this using primefaces drag and drop.
check it here
Drag and Drop components have special integration with data components. you can integrate drag and drop components with your datatable.
lemme know if this helps ...:)

How to use <h:selectOneRadio> on more than one datatable

I'm trying to achieve the well known feature of being able to select a datatable's row by using a radio button.
I have followed this blog:
http://balusc.blogspot.com/2006/06/using-datatables.html#SelectRowByRadioButton
It works perfectly if there is one datatable on the form, but when I add another one (even if it's placed on other form), and try to select a row there, the radio button gets selected then instantly unselected. The data is correctly set on the backing bean though.
Any ideas about how to extend the results of the above blog on more than one datatable?
Thank you
That script will group all radio buttons with the same component ID in the same form. So to fix your particular problem, put the other data table in a different form or give the other <h:selectOneRadio> a different ID.

Issue with Resizeable Columns in YUI2 DataTable Nested in YUI3 Tabview

I'm having an issue with resizing columns in a YUI2 DataTable when the table is nested inside a YUI3 Tabview.
My situation:
YUI3 Tabview has 4 tabs.
Each tab contains a DataTable that has sortable and resizable columns.
The columns in the DataTable of the first tab (the default tab that is displayed after loading the tab view) are sortable AND resizable and work as expected.
The columns in DataTables in the other three tabs are sortable BUT NOT resizeable.
I'm able to see in firebug that the DataTables in the other tabs have the same innerHTML structure, classes, etc in the elements.
I'm happy to post code samples but I thought I'd just start with this basic question to see if anyone has ideas or suggestions for how I can debug this issue.
Any ideas and suggestions are welcome.
Bart
I'm not able to reproduce your problem locally. Can you post a repro case?
Here's what worked for me: http://gist.github.com/501137
jenny

Resources