Hey guys,
I have a page used to create/edit an entity object. That object has a list
of children objects, and I display this using a grid on the page. That grid
has a delete column, and the code I have looks like this:
${correspondenceDetail.id}
I use a submit, because I nee
Thank you so much Josh, your solution works great! It's also easy to
understand.
Thanks again,
Paul
Josh Canfield wrote:
>
> I whipped something up that will allow you to only submit the form
> when the link is clicked.
>
> Add this to your form containing the grid to keep track of the page
I've found a solution (that I feel is horribly inefficient, but is the best
I've got):
I simply put onclick="$('bookDetailForm').submit()" on my checkbox, and that
way each item that's checked results in a hit back to the server to update
the bean. That way, the form is already updated when you
Thanks a lot for the help Josh, I'm still having trouble though.
I've spent hours now and I think I know what I need to do, I just don't know
how to do it:
I need to have the page links Submit my form and then change the page.
Looking at the generated html, it's just a simple anchor tag directly
TLDR: When I change pages of a grid, it doesn't update the object with
changes to the page (I select a bunch of rows, and then go to page 2, it
doesn't remember those checks)
More details:
I have a GridDataSource that simply contains a persisted list. I have a
checkbox bound to a boolean variabl