Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Autorefresh of JSF

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I need to provide autorefresh in the data table.

The problem is there is dynamically created list of tables which display a data related to an selected object. So i need to identify the tables. The identification is solved as I've described
here.

The page with the table is opened from JSP request as JSF response.
I have a META tag in the head of the page, as it can refresh.
When I open the page it refreshes well because it's still the same JSP request.
But when I do some action in the table (sorting, paging...) a refresh repeats the JSF request from last action. And here is the problem. After this type of refresh the value of table ID in hidden input is lost. The other part of problem is if the refresh will not repeat the action ?

Does somebody understand what i've messed up ?

Nevertheless, more and more i have a feeling the jsf is not suitable for complex solutions. I must believe the feeling is wrong, but that's discussion for another topic. I'm sorry... :-)
 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about using a JavaScript timer to re-submit the page
 
reply
    Bookmark Topic Watch Topic
  • New Topic