Meaningless Drivel is fun!
The moose likes JSF and the fly likes IBM JSF and hx:commandExRowAction issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "IBM JSF and hx:commandExRowAction issue" Watch "IBM JSF and hx:commandExRowAction issue" New topic

IBM JSF and hx:commandExRowAction issue

Ganpi Srinivasan
Ranch Hand

Joined: Aug 17, 2005
Posts: 160
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?

I agree. Here's the link:
subject: IBM JSF and hx:commandExRowAction issue
jQuery in Action, 3rd edition