Hi all,

I've got an action widget that I would like to be styled in HTML as an <input type="img" src="whatever">. So in the form template, I have something like:

        <ft:widget id="theButton">
                <fi:styling type="img" src="whatever" />
        </ft:widget>

The FormsTemplateTransformer copies the @src through, but it forces the @type to "submit".

Questions:

1) This is an exception to the behavior documented in http://wiki.cocoondev.org/Wiki.jsp?page=WoodyTemplateTransformer. Are there other exceptions I should know about too, if I want to update the Wiki page?

2) Should the FTT do this? It would be nice to be able to drive @type to "img" using <fi:styling>, wouldn't it?

I guess I'll implement a fixup for my situation using XSL, unless anybody can suggest a better workaround...

~ mark

P.S. Styling a button with an image is an obvious need, but my reason isn't the usual one :-). I have an interface where a popup window has to invoke an action on its opener before closing itself, and I discovered this problem with the Mac Safari browser: http://wrinkledog.com:16080/~ml/Safari-bug_clickmethod-invisible- submit.html. Styling the button with an invisible image is my attempt to workaround this bug!


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to