The Artima Developer Community
Sponsored Link

Java Answers Forum
help please, problem with image map using Tapestry 4 !!!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Alex Tian

Posts: 3
Nickname: alextian
Registered: Jul, 2006

help please, problem with image map using Tapestry 4 !!! Posted: Jul 5, 2006 5:32 PM
Reply to this message Reply
Advertisement
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.

should I modify the DirectArea.java?

does anyone have any idea how to make it...?

many thanks in advance.

Topic: send a java mail confirmation email message to several recipients Previous Topic   Next Topic Topic: [BIRT] Don't load an element

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use