• 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

Inline editing in JSF

 
Ranch Hand
Posts: 55
Mac OS X Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you looked at the richfaces library, they have neat inline edit component which you can use or extend
 
Yogaraj Khanal
Ranch Hand
Posts: 55
Mac OS X Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 55
Mac OS X Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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}"
>

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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've never won anything before. Not even a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic