[Opensource] Transition to image button?

Daniel Kibler dan at getrolling.com
Sat Nov 30 19:22:41 PST 2002


I'm trying to get a Transition object to create an image button (<input type="image" ...>)

The TransitionTag renders it ok if I set the type and src attributes manually (i.e. in the tag).

But if I try to set the attributes in the Transition object in the controller, a regular button is rendered. The JavaDoc for Transition says "Must use setImageURL to be set properly." but that method does not seem to exist.


Here a snip from my source

        Transition update = new Transition("Update", getClass().getName());
        update.setName("processMytoursUpdate");
        update.addParam("state", "processMytoursUpdate");
        update.addParam("key" , oneRecord.getField("MyTours","TourId"));
        update.setAttribute("src","/cis/images/check.gif");
        update.setAttribute("type","IMAGE");

I've tried upper and lower case attribute names and values, but the tag seems to ignore my type and just puts out a submit button. How do I get this to work?
Dan
http://www.getrolling.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20021130/5b1ed153/attachment-0002.htm


More information about the Opensource mailing list