Jesse Alexander (KBSA 21) wrote:
We solved the problem rendering an icon with a commandLink.
Then we passed the unique record id as parameter to the link, and in
that way the backend was able to delete the correct record. It did not
need to
guess on the record using the relative position in the table, but hit
directly the unique record-identifier.
That's exactly my approach number 4.
But as fas as I know, commandLinks require JavaScript.
With JavaScript disabled no action is called at all.
That's a real problem for me.
Have you found a way to use commandLinks without JavaScript?
In myfaces bugzilla I've read, that JavaScript is necessary to submit
the form.
But in my example application I use server side state saving and have no
further input controls.
So I don't need to submit a form.
How can I tell commandLink to call my action without a form submition.
For myfaces I've found an ugly hack.
If I add <f:param "formname"_SUBMIT=1> to the commandLinks,
my action is called as expected even without JavaScript enabled.
But it's a really dirty hack.
thanks so far
Mathias