Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IBM JSF and hx:commandExRowAction issue  RSS feed

Ganpi Srinivasan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a Datatable in my page with an action being triggered when any row inside the datatable is clicked - this is done by having a <hx:commandExRowAction> tag inside my datatable.

I have a unique problem when a single row is clicked and the page is rendered post action method invocation. Always the control goes to the top of the page even if the datatable has, say 100 records and I clicked on the 95th row) and the user has to scroll everytime he/she clicks on a row.

a. Is there a way to implement something like HTML page section (anchor tag with #) in the datatable that has hx:commandExRowAction tag?

b. A colleague of mine gave me a javascript that stores the x, y coords when the form in the page is submitted and upon page load, the x and y coords are reset - thereby restoring the page to where the click happened. This works when I have a submit button. But in case of the hx:commandExRowAction (row select triggering an action) it looks like the form is not being submitted! is this how this tag behaves - send the information to the action method but not submitting the form?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!