Jesse Alexander (KBSA 21) wrote:
I presume a solution will be to render the commandlink as a commandButton
when it is embedded in a form and JS is disabled...
Just gotta find a "cool" point in the source to accomplish that...
Alexander
You wont have to find the cool point in the source, you just have to
write your own renderer which plugs into the command link control
(you can do that by setting a parameter in the faces-config for
the commmand-link render group/type)
Check out my controls I uploaded to sourceforge the day before
yesterday, both of them basically are just new renderers without any
control code (but their own render group)
All you have to do, to my knowledge of the framework.
Write your own renderer which hooks itself into command link,
tie it to command link and html renderers via the right faces-config
entry and you are set.
That is one of the beauties of JSF (although makes things hard to grasp
in the beginning) that the framework is totally controlled via inversion
object control, so that you can exchange things easily on the fly left
and right.