Hi, everyone, I'm a beginner with tapestry 4 and got stuck with a problem for 3 weeks already...
my task is: 1. create a dynamic image based on some data provided from user's input 2. create a buffered image and display that image on the page 3. use image map to make some regions of that image clickable
now I've done the first 2 steps and part of the 3rd step. In step 3, I used @DirectArea custom component(explained in Tapestry in Action as well as used in the Pet Shop example) to create the image map, but I cannot dynamically specify the "coords" attribute in <area> tag which is inside <map> tag.
@DirectArea component statically pre-defines the "coords" attribute in .html file(e.g. <area jwcid=@DireactArea listeners="ognl:listeners.selectPage1" coords="50,50 50,50" /> ), because as for Pet Shop example the image already exists whereas in my case that buffered image will be created dynamically and sends to OutputStream to display it. What I want is to take the "coords" attribute's value from user input at the same time in step 1 and specify the "coords" attribute(for example: pass "50, 50 50,50" as a string) for image map after creating the buffered image.