0
votes

I am new to this website. I am using Jsf and Primefaces.

Steps:-

  • I apply filter to choose a row and click its Edit button.
  • An Edit form is opened where I edit and save the changes.
  • It leads me to the datatable form with all the list rather than the filtered list.

Problem/Requirement:-

  • When I return on my datatable form,I want my datatable to be in the same filtered state.

    I have seen a similar problem here http://forum.primefaces.org/viewtopic.php?f=3&t=9158 ,but that doesnt help me.

  • Note:-My filter p:inputtext is not in the p:datatable. and I am using ViewScoped Bean Is there any solution in jsf and primefaces.

    Please help.Thanks in advance.

1
What solution? Url? See also How to AskKukeltje
See my first comment above. Reference to what you tried and didnot understandKukeltje
You may either keep the filter status in the SessionScope or you may use some Cookie to store the filter status on client side and then apply it via JSstg
@Kukeltje,Thanks for the help.I have modified the question.Please check it.Sunils
@stg,Thanks for the reply,I can't use Session scope and can i dont know what to include ion js.Sunils

1 Answers

0
votes

Got it, I stored the filteredList attribute of p:datatable in the flash scope across multiple beans wherever needed and updated the filter p:inputtext from the bean method. Thanks @Kukeltje and @stg for your help