You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kent Tong <ke...@cpttm.org.mo> on 2005/02/01 02:51:48 UTC
Re: Dynamic Images on Tapestry
> I'm Brazilian and I started working with Tapestry for the
> presentation's layer of an application, where an image
> initially will be generated from a xml, and to each
> solicitation carried through on part of this image (as
> double click) the image will be up to date dynamically.
> Anyone knows How can I do that?
To generate an image from xml, I think you should create
and register a new Tapestry service, so that the <img>
element can be like:
<img src="/context/app?service=getImageFromXml&imageName=foo"/>
To change the image on double click, you need to attach
a onDoubleClick javascript to the <img> that sets its
src attribute to another URL like:
<img src="/context/app?service=getImageFromXml&imageName=bar"/>
--
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified
Manager of IT Dept, CPTTM
Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag & RedHat
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org