Get your CodeRanch badge!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "IBM JSF and hx:commandExRowAction issue" Watch "IBM JSF and hx:commandExRowAction issue" New topic
Author

IBM JSF and hx:commandExRowAction issue

Ganpi Srinivasan
Ranch Hand

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

Thanks
Ganapathi.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IBM JSF and hx:commandExRowAction issue
 
Similar Threads
catch image x, y coordinate
session issues with Ctrl-N
calling action method on data table row click
multiple form submission
command link inside the <hx:commandExRowAction>