Hi Mike,

I submitted the bug reports.

1) I believe the problem is even broader than you think: currently,
IMHO, the RI clean fields method will only work for the first link in
every form, cause only for this first link the clearing javascript is
rendered. Now if you want to render the script for more than one link,
you're stuck - there is no way to collect them all while renderering
in a standard compliant way right now! MyFaces has the same problem,
and solves it in a proprietory way. A tree walker would be great here,
then we could just walk through all components in the encodeEnd of the
form...

2) As to the problem you pointed out: What I did is make the clear...
function of MyFaces look the same as the RI one from the function call
- this solves the compatibility problem between MyFaces and the RI,
but it doesn't solve the underlying problem you pointed out in your
report.

I believe there is not much of a solution, if we don't provide
something like a submit functionality for non-link components in the
standard itself, enabled by an attribute on the component. Trinidad
has it...

Although, it might be possible to hook into the submit method of the
form itself in a javascript way - wouldn't be easy, though. We can't
just overwrite onsubmit, the users need this for other stuff as well!

regards,

Martin

On 7/15/06, Michael Youngstrom <[EMAIL PROTECTED]> wrote:
>Along
> with a nice bug I'd be happy to point out to someone interested to fix
> it - I believe that the clear script rendered in the RI only works for
> the first link.
>
> To put it this way: if I hadn't put a hack into the extended form
> renderer, the RI buttons in version 1.1. and 1.2. would never work
> with a not RI-form at all! (forget my commit message, I indicated that
> in 1.2 this was fixed, but obviously it wasn't)

A bug report would be greatly appreciated. :)

https://javaserverfaces.dev.java.net/servlets/ProjectIssues

On a side note I've been struggling with issues regarding commandLink
clear function interoperability.  Strangly enough I just started a
thread on the RI dev mailing list about this topic moments before I
read this message from you.  Though I'm talking more as a spec issue
rather than an implementation issue I'd still appreciate input from
the tomahawk team on this topic since you've all worked a lot with
developing cross implementation components.  Perhaps there are some
workarounds for this issue that I'm unaware of?

https://javaserverfaces.dev.java.net/servlets/ReadMsg?list=dev&msgNo=871

Mike



--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to