aspose file tools*
The moose likes JSF and the fly likes Inline editing in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Inline editing in JSF" Watch "Inline editing in JSF" New topic
Author

Inline editing in JSF

Yogaraj Khanal
Ranch Hand

Joined: Jun 06, 2007
Posts: 40
hi,
I want to do inline editing for the search results using JSF.
I mean to say if i am seraching some row in data table and if i enter one criteria i want data table to dynamically updated after this criteria is entered and return the result set with other remaining criteria and go on narrowing down the result to one row after all criteria are met.
Please let me know how to achieve this in easy and efficient way.
Thanks,
Yogaraj Khanal


Raj
Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
Have you looked at the richfaces library, they have neat inline edit component which you can use or extend
Yogaraj Khanal
Ranch Hand

Joined: Jun 06, 2007
Posts: 40
Kavita Tipnis wrote:Have you looked at the richfaces library, they have neat inline edit component which you can use or extend

Thanks Kavita,
But I am using icefaces.
I want something in icefaces or the core jsf
i can't use other jsf implementation like myfaces or richfaces due to our tech stack
Thanks,
Yogaraj
Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
If I understand your problem correctly, you want to filter the search results that are shown in the data table.
One way to do that would be to place a UIInputText component for every column and filter out the results for each column,
narrowing down from the left to the right and allowing the user to clear the results at any time.
Yogaraj Khanal
Ranch Hand

Joined: Jun 06, 2007
Posts: 40
Kavita Tipnis wrote:If I understand your problem correctly, you want to filter the search results that are shown in the data table.
One way to do that would be to place a UIInputText component for every column and filter out the results for each column,
narrowing down from the left to the right and allowing the user to clear the results at any time.


Kavita,

My datatable looks like this how do i put input text here?

<ice:dataTable styleClass="data"
id="categoryLOVList"
rows="#{myprojectBeanCommunicationBackingBean.rowsPerPagePopup}"
var="catItem"
value="#{myprojectBeanCommunicationBackingBean.localDataModelCategoryLOV}"
binding="#{myprojectBeanCommunicationBackingBean.tableCategoryLOV}"
columnWidths="15%,45%,40%"
sortColumn="#{myprojectBeanCommunicationBackingBean.sortColumnCategory}"
sortAscending="#{myprojectBeanCommunicationBackingBean.ascendingCategory}"
>

Rajneesh Kumar Rajput
Ranch Hand

Joined: Feb 25, 2009
Posts: 39
Displaying results are totaly depends on this variables...
value="#{myprojectBeanCommunicationBackingBean.localDataModelCategoryLOV}"

So, let user to type in the search box and you can use the onblur event to call a java script which will submit your form (or a hiddnen link action) and just simply set this above value to the new required list of results based on new value what is found in the filter. (Ofcourse this you can do with AJAX also, this sumbit a page on typing in filter)

Could you let me know, what exactly are you thinking and what problem are you facing to filter the new results?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inline editing in JSF