-
1. Re: import org.richfaces.model.ExtendedTableDataModel;
tony.herstell1 Jan 22, 2009 3:04 AM (in response to tony.herstell1)Awsome component I do have to say !
I just dumped masses of code through using this. -
2. Re: import org.richfaces.model.ExtendedTableDataModel;
tony.herstell1 Jan 22, 2009 3:17 AM (in response to tony.herstell1)Ok It is just a string... am setting up what I want and saving the string and will set this as the default.
-
3. Re: import org.richfaces.model.ExtendedTableDataModel;
tony.herstell1 Jan 22, 2009 3:49 AM (in response to tony.herstell1)This is awsome, but is there a reason you picked quotes for the text as apposed to, say '?
Took a bit of escaping!private String tableState = "{\"columnsVisibility\":{\"phoneContactOk\":\"1\",\"dressageJudge\":\"0\",\"dressageHelper\":\"1\",\"surname\":\"1\",\"CreationDate\":\"0\",\"firstname\":\"1\",\"SJHelper\":\"0\",\"avatar\":\"1\",\"homePhone\":\"1\",\"ShowingHelper\":\"0\",\"mobilePhone\":\"1\",\"email\":\"1\",\"EventsJudge\":\"0\",\"dressageWriter\":\"1\",\"SJJudge\":\"0\",\"ShowingJudge\":\"0\"},\"columnGroupingState\":{},\"columnsSizeState\":{\"phoneContactOk\":\"100\",\"dressageJudge\":\"100\",\"dressageHelper\":\"100\",\"surname\":\"100\",\"CreationDate\":\"100\",\"firstname\":\"100\",\"SJHelper\":\"100\",\"avatar\":\"100\",\"homePhone\":\"100\",\"ShowingHelper\":\"100\",\"mobilePhone\":\"100\",\"email\":\"152\",\"EventsJudge\":\"100\",\"dressageWriter\":\"100\",\"SJJudge\":\"100\",\"ShowingJudge\":\"100\"},\"columnsOrder\":[\"avatar\",\"surname\",\"firstname\",\"email\",\"homePhone\",\"mobilePhone\",\"phoneContactOk\",\"dressageJudge\",\"dressageWriter\",\"dressageHelper\",\"SJJudge\",\"SJHelper\",\"ShowingJudge\",\"ShowingHelper\",\"EventsJudge\",\"CreationDate\"]}";
-
4. Re: import org.richfaces.model.ExtendedTableDataModel;
tony.herstell1 Jan 22, 2009 4:29 AM (in response to tony.herstell1)Awsome.
This was so easy a component to work with.
One thing I had to add was:<a4j:queue requestDelay="1000" ignoreDupResponses="true"/>
and the component is working great.
Please can you consider having ascending/descending on the control to possibly read sort true or sort false if the type is boolean? -
5. Re: import org.richfaces.model.ExtendedTableDataModel;
ilya_shaikovsky Jan 22, 2009 5:58 AM (in response to tony.herstell1)how about just column attribute "visible"?
and what did you mean by "Please can you consider having ascending/descending on the control to possibly read sort true or sort false if the type is boolean?". if sortOrder attribute management doesn't works for you? -
6. Re: import org.richfaces.model.ExtendedTableDataModel;
tony.herstell1 Jan 22, 2009 5:03 PM (in response to tony.herstell1)Hi Ilya.
Aha; I assume setting visible to false meant that the column would NEVER be visible.
I just wanted to set it not-visible to begin with so that you could add it back in using the "view column" capabaility (I am short on screen area!).
What I meant by sort true and sort false
==========================
When a column has an Enumeration (or boolean) then sort ascending/sort decending off the column menu could offer the ability to do
Sort on True (first)
or
Sort on False (first)
i.e. What does sort ascending do (is true higher then false for a novice user?)
And for an enumration it could act as a filter on one of the enumerations.... actually; come to think of it; you cold actually have a drop down for the filter allowing filtering by the enueration value - like excel) - Very cool!
:) -
7. Re: import org.richfaces.model.ExtendedTableDataModel;
ilya_shaikovsky Jan 23, 2009 8:02 AM (in response to tony.herstell1)how about just external sorting and filtering implementations? Visit livedemo for samples. You could implement such cases with any controls managing columns attributes yourself.