ImageMap
Are there any plans to improve the current ImageMap implementation? My problems are: 1. The rendered HTML ist no valid XHTML. 2. The constructor does not support a ResourceReference for the image 3. I can't see a way to control the tags (e.g. add style, class or alt attributes). Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ImageMap
https://issues.apache.org/jira/browse/WICKET-1936 On Wed, Aug 5, 2009 at 4:13 PM, Stefan Lindner wrote: > Are there any plans to improve the current ImageMap implementation? My > problems are: > 1. The rendered HTML ist no valid XHTML. > 2. The constructor does not support a ResourceReference for the image > 3. I can't see a way to control the tags (e.g. add style, class > or alt attributes). > > Stefan > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: ImageMap
Ah! Thank you. But I can't see a way to control the rendering of the area tag. Are there planst o support this? Stefan -Ursprüngliche Nachricht- Von: James Carman [mailto:jcar...@carmanconsulting.com] Gesendet: Mittwoch, 5. August 2009 22:26 An: users@wicket.apache.org Betreff: Re: ImageMap https://issues.apache.org/jira/browse/WICKET-1936 On Wed, Aug 5, 2009 at 4:13 PM, Stefan Lindner wrote: > Are there any plans to improve the current ImageMap implementation? My > problems are: > 1. The rendered HTML ist no valid XHTML. > 2. The constructor does not support a ResourceReference for the image > 3. I can't see a way to control the tags (e.g. add style, class > or alt attributes). > > Stefan > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ImageMap
The area tag is controlled by the AbstractLink that you attach to it. So, if you put an AttributeModifier on it, it'll modify the . On Wed, Aug 5, 2009 at 4:46 PM, Stefan Lindner wrote: > Ah! Thank you. But I can't see a way to control the rendering of the area > tag. Are there planst o support this? > > Stefan > > -Ursprüngliche Nachricht- > Von: James Carman [mailto:jcar...@carmanconsulting.com] > Gesendet: Mittwoch, 5. August 2009 22:26 > An: users@wicket.apache.org > Betreff: Re: ImageMap > > https://issues.apache.org/jira/browse/WICKET-1936 > > On Wed, Aug 5, 2009 at 4:13 PM, Stefan Lindner wrote: >> Are there any plans to improve the current ImageMap implementation? My >> problems are: >> 1. The rendered HTML ist no valid XHTML. >> 2. The constructor does not support a ResourceReference for the image >> 3. I can't see a way to control the tags (e.g. add style, class >> or alt attributes). >> >> Stefan >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ImageMap and Ajax
Hi, I'm using an ImageMap to display an image. Whenever a user clicks on the image, the coordinates get sent to the Server using AJAX. There, I want to add a CircleLink to the place where the user clicked. So I'm trying to replace the whole map using: protected void onEvent(AjaxRequestTarget target) { WebRequest request = (WebRequest) getRequest(); final Map parameters = request.getParameterMap(); final int x = Integer.parseInt(parameters.get("x")[0]); final int y = Integer.parseInt(parameters.get("y")[0]); imageMap.addCircleLink(x, y, 10, new Link("testLink") { @Override public void onClick() { // TODO Auto-generated method stub } }); target.addComponent(imageMap); PicMapPanel.this.processResult(x, y, target); } My problem now is that the imageMap can't be replaced. AJAX debug says "ERROR: Component with id [[theMap2]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update." And yes, I'm sure I called it, but it can't be found in the markup. Does anyone have an idea how to solve this? Maybe in a completely different way, I wouldn't mind that ;-) Michael -- View this message in context: http://www.nabble.com/ImageMap-and-Ajax-tf4633435.html#a13230846 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ImageMap and Ajax
jonathan posted something about a different approach to imagemaps. http://www.nabble.com/beyond-image-maps-tf4437219.html#a12659672 gerolf On 10/16/07, Michael Sparer <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm using an ImageMap to display an image. Whenever a user clicks on the > image, the coordinates get sent to the Server using AJAX. There, I want to > add a CircleLink to the place where the user clicked. So I'm trying to > replace the whole map using: > protected void onEvent(AjaxRequestTarget target) { > WebRequest request = (WebRequest) getRequest(); > final Map parameters = > request.getParameterMap(); > final int x = Integer.parseInt(parameters.get("x")[0]); > final int y = Integer.parseInt(parameters.get("y")[0]); > > imageMap.addCircleLink(x, y, 10, new Link("testLink") { > @Override > public void onClick() { > // TODO Auto-generated > method stub > } > }); > > target.addComponent(imageMap); > PicMapPanel.this.processResult(x, y, target); > } > > My problem now is that the imageMap can't be replaced. AJAX debug says > "ERROR: Component with id [[theMap2]] a was not found while trying to > perform markup update. Make sure you called > component.setOutputMarkupId(true) on the component whose markup you are > trying to update." > > And yes, I'm sure I called it, but it can't be found in the markup. > Does anyone have an idea how to solve this? Maybe in a completely > different > way, I wouldn't mind that ;-) > > Michael > -- > View this message in context: > http://www.nabble.com/ImageMap-and-Ajax-tf4633435.html#a13230846 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: ImageMap and Ajax
Well that wasn't quite my question :-), I know and use this approach, but to draw something on an image or to add a link, I do have to use ImageMap, or don't I? Gerolf Seitz wrote: > > jonathan posted something about a different approach to imagemaps. > http://www.nabble.com/beyond-image-maps-tf4437219.html#a12659672 > > gerolf > > On 10/16/07, Michael Sparer <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> I'm using an ImageMap to display an image. Whenever a user clicks on the >> image, the coordinates get sent to the Server using AJAX. There, I want >> to >> add a CircleLink to the place where the user clicked. So I'm trying to >> replace the whole map using: >> protected void onEvent(AjaxRequestTarget target) { >> WebRequest request = (WebRequest) getRequest(); >> final Map parameters = >> request.getParameterMap(); >> final int x = Integer.parseInt(parameters.get("x")[0]); >> final int y = Integer.parseInt(parameters.get("y")[0]); >> >> imageMap.addCircleLink(x, y, 10, new Link("testLink") { >> @Override >> public void onClick() { >> // TODO Auto-generated >> method stub >> } >> }); >> >> target.addComponent(imageMap); >> PicMapPanel.this.processResult(x, y, target); >> } >> >> My problem now is that the imageMap can't be replaced. AJAX debug says >> "ERROR: Component with id [[theMap2]] a was not found while trying to >> perform markup update. Make sure you called >> component.setOutputMarkupId(true) on the component whose markup you are >> trying to update." >> >> And yes, I'm sure I called it, but it can't be found in the markup. >> Does anyone have an idea how to solve this? Maybe in a completely >> different >> way, I wouldn't mind that ;-) >> >> Michael >> -- >> View this message in context: >> http://www.nabble.com/ImageMap-and-Ajax-tf4633435.html#a13230846 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/ImageMap-and-Ajax-tf4633435.html#a13231123 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JFreeChart with clickable imagemap
Hi Guys, I followed the instructions in the wiki "JFreeChart with clickable imagemap<https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" to create a chart. I have a requirement whereby the chart has to be generated dynamically based on certain inputs. I managed to create the chart image by using LoadableDetachableModel but struggling to get the imagemap updated as the chart image changes. Kindly give your valuable suggestions. -- Thanks & Regards, James
ALT tags within an ImageMap
Hi There All! Working with Wicket for a while now, and really starting to get hooked, great stuff! I am working on a user interface for an application, and ran into a (minor) thing, I hope someone can shine a light on this. In a shortcut menu, I am using an imagemap with a couple of links in it, and I am wondering if it is possible to create some ALT tags for mouse over actions, one for each link The links in the Imagemap look this this (simplified for readability): imageMap.addPolygonLink(new int[] {123,123), new BookmarkablePageLink("Support", SupportHomePage.class); So I tried to create a SimpleAttributeModifier on both the PolygonLink and BookmarkablePageLink, but unfortunately none of them worked. Did I miss something here, or is there just no possibility? thanks in advance! Frank Prins
Adding an image in imageMap?
hi i have to add an iamge in my ImageMap.RectangleLink which is not predefined THE IMAGE IS LOADED from database? HOW T add THIS. thanks
Wicket 1.4.12 and ImageMap deprecated ?
Hello all ! Since i upgraded to Wicket 1.4.12, I noticed that the ImageMap class has been deprecated, and the Javadoc states that its going away in 1.4+ to be replaced by ClientSideImageMap. Unfortunately, the ClientSideImageMap is not present yet! I do not really care about the compilation warning, but was wondering if this is intended for 1.5 or expected in future releases of Wicket 1.4, or if maybe the Javadoc should be updated ? Thanks alot ! Cheers, Antoine. -- Antoine Angénieux Associé Clinigrid 5, avenue Mozart 75016 Paris, France +336 60 21 09 18 aangeni...@clinigrid.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JFreeChart with clickable imagemap
Hi James, In the constructImageMap you whill have to pass a model as well, but I'm not sure how :-( Another way would be to adapt constructImageMap to updateImageMap so that you can call it in ChartImage.createBufferedImage (or every time the model updates) BTW: For jetwick I used an html solution with div's to display bar charts. which is customizable by the designer (if any ;-)), readable by spiders etc and didn't need those imagemaps. Are you interested in this solution? I could blog about it. Regards, Peter (aka timetabling on twitter ;-)). > Hi Guys, > > I followed the instructions in the wiki "JFreeChart with clickable > imagemap<https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" > to create a chart. > I have a requirement whereby the chart has to be generated dynamically based > on certain inputs. > I managed to create the chart image by using LoadableDetachableModel but > struggling to get the imagemap updated as the chart image changes. > Kindly give your valuable suggestions. > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JFreeChart with clickable imagemap
Hi Peter, Thanks for your prompt reply. I don't know how I missed this wonderful mailing list for this long.. ;-( I have tried passing models to constructImageMap (wrapping the chart image object as a model) but somehow the map was not updated. I checked jetwick and it looks cool. ;-) Do you use JFreeChart to create those charts? I'm willing to try that option as well. Kindly blog about it! Thanks once again for taking your time to reply. On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich wrote: > Hi James, > > In the constructImageMap you whill have to pass a model as well, but I'm > not sure how :-( > > Another way would be to adapt constructImageMap to updateImageMap > so that you can call it in ChartImage.createBufferedImage (or every time > the model updates) > > BTW: For jetwick I used an html solution with div's to display bar charts. > which is customizable by the designer (if any ;-)), readable by spiders etc > and didn't need those imagemaps. Are you interested in this solution? I > could blog about it. > > Regards, > Peter (aka timetabling on twitter ;-)). > > > Hi Guys, > > > > I followed the instructions in the wiki "JFreeChart with clickable > > imagemap< > https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" > > to create a chart. > > I have a requirement whereby the chart has to be generated dynamically > based > > on certain inputs. > > I managed to create the chart image by using LoadableDetachableModel but > > struggling to get the imagemap updated as the chart image changes. > > Kindly give your valuable suggestions. > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Thanks & Regards, James
Re: JFreeChart with clickable imagemap
Guys, Finally managed to display the tooltip generated by JFreeChart in the wicket page by following these instructions<http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results> . Had only an example markup been given in that post, it would have saved lots of frustrating hours I spent. :-( For anyone looking forward for showing the tooltips in a chart generated by JFreeChart, here is the markup you might need. For the java part, use this code<http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results> . Your output should look something like this.. NOTE: - You must use and not - You must use the "#" symbol before the "usemap" id. - The image map related html markup is generated by the api provided by JFreeChart. On Fri, Oct 1, 2010 at 10:34 AM, James wrote: > Hi Peter, > > Thanks for your prompt reply. > I don't know how I missed this wonderful mailing list for this long.. ;-( > > I have tried passing models to constructImageMap (wrapping the chart image > object as a model) but somehow the map was not updated. > > I checked jetwick and it looks cool. ;-) > Do you use JFreeChart to create those charts? > I'm willing to try that option as well. Kindly blog about it! > > Thanks once again for taking your time to reply. > > > On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich wrote: > >> Hi James, >> >> In the constructImageMap you whill have to pass a model as well, but I'm >> not sure how :-( >> >> Another way would be to adapt constructImageMap to updateImageMap >> so that you can call it in ChartImage.createBufferedImage (or every time >> the model updates) >> >> BTW: For jetwick I used an html solution with div's to display bar charts. >> which is customizable by the designer (if any ;-)), readable by spiders >> etc >> and didn't need those imagemaps. Are you interested in this solution? I >> could blog about it. >> >> Regards, >> Peter (aka timetabling on twitter ;-)). >> >> > Hi Guys, >> > >> > I followed the instructions in the wiki "JFreeChart with clickable >> > imagemap< >> https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" >> > to create a chart. >> > I have a requirement whereby the chart has to be generated dynamically >> based >> > on certain inputs. >> > I managed to create the chart image by using LoadableDetachableModel but >> > struggling to get the imagemap updated as the chart image changes. >> > Kindly give your valuable suggestions. >> > >> > >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Thanks & Regards, > James > -- Thanks & Regards, James
Re: JFreeChart with clickable imagemap
James, why not add this "bit" to the wiki page you mentioned? So that others can avoid loosing the hours you lost;-) Cheers, Ernesto On Fri, Oct 1, 2010 at 8:18 AM, James wrote: > Guys, > > Finally managed to display the tooltip generated by JFreeChart in the wicket > page by following these > instructions<http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results> > . > Had only an example markup been given in that post, it would have saved lots > of frustrating hours I spent. :-( > > For anyone looking forward for showing the tooltips in a chart generated by > JFreeChart, here is the markup you might need. > > > > > > For the java part, use this > code<http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results> > . > > Your output should look something like this.. > > > > > > > > > > NOTE: > > - You must use > and not > - You must use the "#" symbol before the "usemap" id. > - The image map related html markup is generated by the api provided by > JFreeChart. > > > > On Fri, Oct 1, 2010 at 10:34 AM, James wrote: > >> Hi Peter, >> >> Thanks for your prompt reply. >> I don't know how I missed this wonderful mailing list for this long.. ;-( >> >> I have tried passing models to constructImageMap (wrapping the chart image >> object as a model) but somehow the map was not updated. >> >> I checked jetwick and it looks cool. ;-) >> Do you use JFreeChart to create those charts? >> I'm willing to try that option as well. Kindly blog about it! >> >> Thanks once again for taking your time to reply. >> >> >> On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich wrote: >> >>> Hi James, >>> >>> In the constructImageMap you whill have to pass a model as well, but I'm >>> not sure how :-( >>> >>> Another way would be to adapt constructImageMap to updateImageMap >>> so that you can call it in ChartImage.createBufferedImage (or every time >>> the model updates) >>> >>> BTW: For jetwick I used an html solution with div's to display bar charts. >>> which is customizable by the designer (if any ;-)), readable by spiders >>> etc >>> and didn't need those imagemaps. Are you interested in this solution? I >>> could blog about it. >>> >>> Regards, >>> Peter (aka timetabling on twitter ;-)). >>> >>> > Hi Guys, >>> > >>> > I followed the instructions in the wiki "JFreeChart with clickable >>> > imagemap< >>> https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" >>> > to create a chart. >>> > I have a requirement whereby the chart has to be generated dynamically >>> based >>> > on certain inputs. >>> > I managed to create the chart image by using LoadableDetachableModel but >>> > struggling to get the imagemap updated as the chart image changes. >>> > Kindly give your valuable suggestions. >>> > >>> > >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> -- >> Thanks & Regards, >> James >> > > > > -- > Thanks & Regards, > James > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JFreeChart with clickable imagemap
Thanks Ernesto. I'll do the same. On Fri, Oct 1, 2010 at 2:24 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > James, > > why not add this "bit" to the wiki page you mentioned? So that others > can avoid loosing the hours you lost;-) > > Cheers, > > Ernesto > > On Fri, Oct 1, 2010 at 8:18 AM, James wrote: > > Guys, > > > > Finally managed to display the tooltip generated by JFreeChart in the > wicket > > page by following these > > instructions< > http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results > > > > . > > Had only an example markup been given in that post, it would have saved > lots > > of frustrating hours I spent. :-( > > > > For anyone looking forward for showing the tooltips in a chart generated > by > > JFreeChart, here is the markup you might need. > > > > > > > > > > > > For the java part, use this > > code< > http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results > > > > . > > > > Your output should look something like this.. > > > > > > > > > > > > > > > > > > > > NOTE: > > > > - You must use > > and not > > - You must use the "#" symbol before the "usemap" id. > > - The image map related html markup is generated by the api provided by > > JFreeChart. > > > > > > > > On Fri, Oct 1, 2010 at 10:34 AM, James wrote: > > > >> Hi Peter, > >> > >> Thanks for your prompt reply. > >> I don't know how I missed this wonderful mailing list for this long.. > ;-( > >> > >> I have tried passing models to constructImageMap (wrapping the chart > image > >> object as a model) but somehow the map was not updated. > >> > >> I checked jetwick and it looks cool. ;-) > >> Do you use JFreeChart to create those charts? > >> I'm willing to try that option as well. Kindly blog about it! > >> > >> Thanks once again for taking your time to reply. > >> > >> > >> On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich wrote: > >> > >>> Hi James, > >>> > >>> In the constructImageMap you whill have to pass a model as well, but > I'm > >>> not sure how :-( > >>> > >>> Another way would be to adapt constructImageMap to updateImageMap > >>> so that you can call it in ChartImage.createBufferedImage (or every > time > >>> the model updates) > >>> > >>> BTW: For jetwick I used an html solution with div's to display bar > charts. > >>> which is customizable by the designer (if any ;-)), readable by spiders > >>> etc > >>> and didn't need those imagemaps. Are you interested in this solution? I > >>> could blog about it. > >>> > >>> Regards, > >>> Peter (aka timetabling on twitter ;-)). > >>> > >>> > Hi Guys, > >>> > > >>> > I followed the instructions in the wiki "JFreeChart with clickable > >>> > imagemap< > >>> > https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" > >>> > to create a chart. > >>> > I have a requirement whereby the chart has to be generated > dynamically > >>> based > >>> > on certain inputs. > >>> > I managed to create the chart image by using LoadableDetachableModel > but > >>> > struggling to get the imagemap updated as the chart image changes. > >>> > Kindly give your valuable suggestions. > >>> > > >>> > > >>> > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >> > >> > >> -- > >> Thanks & Regards, > >> James > >> > > > > > > > > -- > > Thanks & Regards, > > James > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Thanks & Regards, James
Re: JFreeChart with clickable imagemap
Dear all, I've added a new wiki page "JFreeChart with tooltip example<https://cwiki.apache.org/confluence/display/WICKET/JFreeChart+with+tooltip+example>", which outlines the steps to follow to create JFreeChart based charts that can display tooltips. On Fri, Oct 1, 2010 at 3:05 PM, James wrote: > Thanks Ernesto. > I'll do the same. > > > On Fri, Oct 1, 2010 at 2:24 PM, Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > >> James, >> >> why not add this "bit" to the wiki page you mentioned? So that others >> can avoid loosing the hours you lost;-) >> >> Cheers, >> >> Ernesto >> >> On Fri, Oct 1, 2010 at 8:18 AM, James wrote: >> > Guys, >> > >> > Finally managed to display the tooltip generated by JFreeChart in the >> wicket >> > page by following these >> > instructions< >> http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results >> > >> > . >> > Had only an example markup been given in that post, it would have saved >> lots >> > of frustrating hours I spent. :-( >> > >> > For anyone looking forward for showing the tooltips in a chart generated >> by >> > JFreeChart, here is the markup you might need. >> > >> > >> > >> > >> > >> > For the java part, use this >> > code< >> http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results >> > >> > . >> > >> > Your output should look something like this.. >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > NOTE: >> > >> > - You must use >> > and not >> >> > - You must use the "#" symbol before the "usemap" id. >> > - The image map related html markup is generated by the api provided by >> > JFreeChart. >> > >> > >> > >> > On Fri, Oct 1, 2010 at 10:34 AM, James >> wrote: >> > >> >> Hi Peter, >> >> >> >> Thanks for your prompt reply. >> >> I don't know how I missed this wonderful mailing list for this long.. >> ;-( >> >> >> >> I have tried passing models to constructImageMap (wrapping the chart >> image >> >> object as a model) but somehow the map was not updated. >> >> >> >> I checked jetwick and it looks cool. ;-) >> >> Do you use JFreeChart to create those charts? >> >> I'm willing to try that option as well. Kindly blog about it! >> >> >> >> Thanks once again for taking your time to reply. >> >> >> >> >> >> On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich >> wrote: >> >> >> >>> Hi James, >> >>> >> >>> In the constructImageMap you whill have to pass a model as well, but >> I'm >> >>> not sure how :-( >> >>> >> >>> Another way would be to adapt constructImageMap to updateImageMap >> >>> so that you can call it in ChartImage.createBufferedImage (or every >> time >> >>> the model updates) >> >>> >> >>> BTW: For jetwick I used an html solution with div's to display bar >> charts. >> >>> which is customizable by the designer (if any ;-)), readable by >> spiders >> >>> etc >> >>> and didn't need those imagemaps. Are you interested in this solution? >> I >> >>> could blog about it. >> >>> >> >>> Regards, >> >>> Peter (aka timetabling on twitter ;-)). >> >>> >> >>> > Hi Guys, >> >>> > >> >>> > I followed the instructions in the wiki "JFreeChart with clickable >> >>> > imagemap< >> >>> >> https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" >> >>> > to create a chart. >> >>> > I have a requirement whereby the chart has to be generated >> dynamically >> >>> based >> >>> > on certain inputs. >> >>> > I managed to create the chart image by using LoadableDetachableModel >> but >> >>> > struggling to get the imagemap updated as the chart image changes. >> >>> > Kindly give your valuable suggestions. >> >>> > >> >>> > >> >>> >> >>> >> >>> - >> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >>> For additional commands, e-mail: users-h...@wicket.apache.org >> >>> >> >>> >> >> >> >> >> >> -- >> >> Thanks & Regards, >> >> James >> >> >> > >> > >> > >> > -- >> > Thanks & Regards, >> > James >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Thanks & Regards, > James > -- Thanks & Regards, James
Re: JFreeChart with clickable imagemap
thanks! > Dear all, > > I've added a new wiki page "JFreeChart with tooltip > example<https://cwiki.apache.org/confluence/display/WICKET/JFreeChart+with+tooltip+example>", > which outlines the steps to follow to create JFreeChart based charts that > can display tooltips. > > On Fri, Oct 1, 2010 at 3:05 PM, James wrote: > > >> Thanks Ernesto. >> I'll do the same. >> >> >> On Fri, Oct 1, 2010 at 2:24 PM, Ernesto Reinaldo Barreiro < >> reier...@gmail.com> wrote: >> >> >>> James, >>> >>> why not add this "bit" to the wiki page you mentioned? So that others >>> can avoid loosing the hours you lost;-) >>> >>> Cheers, >>> >>> Ernesto >>> >>> On Fri, Oct 1, 2010 at 8:18 AM, James wrote: >>> >>>> Guys, >>>> >>>> Finally managed to display the tooltip generated by JFreeChart in the >>>> >>> wicket >>> >>>> page by following these >>>> instructions< >>>> >>> http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results >>> >>>> . >>>> Had only an example markup been given in that post, it would have saved >>>> >>> lots >>> >>>> of frustrating hours I spent. :-( >>>> >>>> For anyone looking forward for showing the tooltips in a chart generated >>>> >>> by >>> >>>> JFreeChart, here is the markup you might need. >>>> >>>> >>>> >>>> >>>> >>>> For the java part, use this >>>> code< >>>> >>> http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results >>> >>>> . >>>> >>>> Your output should look something like this.. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> NOTE: >>>> >>>> - You must use >>>> and not >>>> >>> >>> >>>> - You must use the "#" symbol before the "usemap" id. >>>> - The image map related html markup is generated by the api provided by >>>> JFreeChart. >>>> >>>> >>>> >>>> On Fri, Oct 1, 2010 at 10:34 AM, James >>>> >>> wrote: >>> >>>> >>>>> Hi Peter, >>>>> >>>>> Thanks for your prompt reply. >>>>> I don't know how I missed this wonderful mailing list for this long.. >>>>> >>> ;-( >>> >>>>> I have tried passing models to constructImageMap (wrapping the chart >>>>> >>> image >>> >>>>> object as a model) but somehow the map was not updated. >>>>> >>>>> I checked jetwick and it looks cool. ;-) >>>>> Do you use JFreeChart to create those charts? >>>>> I'm willing to try that option as well. Kindly blog about it! >>>>> >>>>> Thanks once again for taking your time to reply. >>>>> >>>>> >>>>> On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich >>>>> >>> wrote: >>> >>>>> >>>>>> Hi James, >>>>>> >>>>>> In the constructImageMap you whill have to pass a model as well, but >>>>>> >>> I'm >>> >>>>>> not sure how :-( >>>>>> >>>>>> Another way would be to adapt constructImageMap to updateImageMap >>>>>> so that you can call it in ChartImage.createBufferedImage (or every >>>>>> >>> time >>> >>>>>> the model updates) >>>>>> >>>>>> BTW: For jetwick I used an html solution with div's to display bar >>>>>> >>> charts. >>> >>>>>> which is customizable by the designer (if any ;-)), readable by >&
Re: JFreeChart with clickable imagemap
Doesn't that code render the chart twice, with the rendering for the image map simply being dumped? On 04/10/2010 07:51, Peter Karich wrote: thanks! Dear all, I've added a new wiki page "JFreeChart with tooltip example<https://cwiki.apache.org/confluence/display/WICKET/JFreeChart+with+tooltip+example>", which outlines the steps to follow to create JFreeChart based charts that can display tooltips. On Fri, Oct 1, 2010 at 3:05 PM, James wrote: Thanks Ernesto. I'll do the same. On Fri, Oct 1, 2010 at 2:24 PM, Ernesto Reinaldo Barreiro< reier...@gmail.com> wrote: James, why not add this "bit" to the wiki page you mentioned? So that others can avoid loosing the hours you lost;-) Cheers, Ernesto On Fri, Oct 1, 2010 at 8:18 AM, James wrote: Guys, Finally managed to display the tooltip generated by JFreeChart in the wicket page by following these instructions< http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results . Had only an example markup been given in that post, it would have saved lots of frustrating hours I spent. :-( For anyone looking forward for showing the tooltips in a chart generated by JFreeChart, here is the markup you might need. For the java part, use this code< http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results . Your output should look something like this.. NOTE: - You must use and not - You must use the "#" symbol before the "usemap" id. - The image map related html markup is generated by the api provided by JFreeChart. On Fri, Oct 1, 2010 at 10:34 AM, James wrote: Hi Peter, Thanks for your prompt reply. I don't know how I missed this wonderful mailing list for this long.. ;-( I have tried passing models to constructImageMap (wrapping the chart image object as a model) but somehow the map was not updated. I checked jetwick and it looks cool. ;-) Do you use JFreeChart to create those charts? I'm willing to try that option as well. Kindly blog about it! Thanks once again for taking your time to reply. On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich wrote: Hi James, In the constructImageMap you whill have to pass a model as well, but I'm not sure how :-( Another way would be to adapt constructImageMap to updateImageMap so that you can call it in ChartImage.createBufferedImage (or every time the model updates) BTW: For jetwick I used an html solution with div's to display bar charts. which is customizable by the designer (if any ;-)), readable by spiders etc and didn't need those imagemaps. Are you interested in this solution? I could blog about it. Regards, Peter (aka timetabling on twitter ;-)). Hi Guys, I followed the instructions in the wiki "JFreeChart with clickable imagemap< https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html>" to create a chart. I have a requirement whereby the chart has to be generated dynamically based on certain inputs. I managed to create the chart image by using LoadableDetachableModel but struggling to get the imagemap updated as the chart image changes. Kindly give your valuable suggestions. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks& Regards, James -- Thanks& Regards, James - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks& Regards, James - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JFreeChart with clickable imagemap
Hi James! > I checked jetwick and it looks cool. ;-) > hey, thanks ;-) > Do you use JFreeChart to create those charts? > initially I did. But now only that tiny bar image is stolen from jfreechart :-) http://jetwick.com/img/bar-min.png the rest is created via divs and css and a bit java 'magic'. settings the height of a div is all: Label bar = new Label("itemSpan"); bar.add(new AttributeAppender("style", new Model("height:" + (int) (zoomer * entry.count) + "px"), " ")); > I'm willing to try that option as well. Kindly blog about it! Finally I did a small post here: http://karussell.wordpress.com/2010/10/01/barchart-with-wicket-and-pure-html/ please comment if something is against wicket philosophy or if it contains bugs etc Regards, Peter. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JFreeChart with clickable imagemap
Hi, A little late maybe but since I wrote that wiki page I've improved the code to use models and so be responsive to data changes. Here's a link to a gist providing a wicket component that allows a JFreeChart to be displayed with both tooltips and clickable entities. http://gist.github.com/647285 Jonny -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JFreeChart-with-clickable-imagemap-tp2720220p3017976.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ALT tags within an ImageMap
You might want to try my ClientSideImageMap class: https://issues.apache.org/jira/browse/WICKET-1936 <https://issues.apache.org/jira/browse/WICKET-1936>It's a bit more flexible than the existing implementation (and it'll support what you're wanting to do). The existing client side image map just grabs the URL off the link. It doesn't "attach" the link to the area of the map. ClientSideImageMap takes advantage of the fact that you can attach a Link object to any markup element. On Wed, Jun 17, 2009 at 4:59 AM, Frank Prins wrote: > Hi There All! > > > > Working with Wicket for a while now, and really starting to get hooked, > great stuff! > > I am working on a user interface for an application, and ran into a > (minor) thing, I hope someone can shine a light on this. > > > > In a shortcut menu, I am using an imagemap with a couple of links in it, > and I am wondering if it is possible to create some ALT tags for mouse > over actions, one for each link The links in the Imagemap look this this > (simplified for readability): > > > > imageMap.addPolygonLink(new int[] {123,123), new > BookmarkablePageLink("Support", SupportHomePage.class); > > > > So I tried to create a SimpleAttributeModifier on both the PolygonLink > and BookmarkablePageLink, but unfortunately none of them worked. > > Did I miss something here, or is there just no possibility? > > > > thanks in advance! > > > > Frank Prins > >
RE: ALT tags within an ImageMap
Hey James, Thanks for the quick reply, will try this out later. I had hoped I didn't see some obvious setting and have it makde out of the box. But either way, your solution sounds good, and I will implement this later on. Frank > -Original Message- > From: James Carman [mailto:jcar...@carmanconsulting.com] > Sent: woensdag 17 juni 2009 13:43 > To: users@wicket.apache.org > Subject: Re: ALT tags within an ImageMap > > You might want to try my ClientSideImageMap class: > https://issues.apache.org/jira/browse/WICKET-1936 > > <https://issues.apache.org/jira/browse/WICKET-1936>It's a bit more > flexible > than the existing implementation (and it'll support what you're wanting > to > do). The existing client side image map just grabs the URL off the > link. > It doesn't "attach" the link to the area of the map. > ClientSideImageMap > takes advantage of the fact that you can attach a Link object to any > markup > element. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding an image in imageMap?
bhupat parmar wrote: > > hi > i have to add an iamge in my ImageMap.RectangleLink which is not > predefined > THE IMAGE IS LOADED from database? > You can try using an AttributeModifier to modify the "src" attribute of the tag. You can subclass ResourceReference to load the image from your DB and call urlFor(ref) to get the URL. -- View this message in context: http://www.nabble.com/Adding-an-image-in-imageMap--tf4392221.html#a12576166 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding an image in imageMap?
Do you have a code snippet that would show how to do this? Thanks! -- View this message in context: http://www.nabble.com/Adding-an-image-in-imageMap--tf4392221.html#a12583448 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.4.12 and ImageMap deprecated ?
It will stay in 1.4+ and it is already replaced with ClientSideImageMap in 1.5. I think we have to downport ClientSideImageMap to 1.4.x as well so that the users can migrate this single change before actually upgrading to 1.5. If it is possible and there are no objections I'll do it this weekend. On Fri, Sep 24, 2010 at 1:02 PM, Antoine Angenieux wrote: > Hello all ! > > Since i upgraded to Wicket 1.4.12, I noticed that the ImageMap class has > been deprecated, and the Javadoc states that its going away in 1.4+ to be > replaced by ClientSideImageMap. > > Unfortunately, the ClientSideImageMap is not present yet! > > I do not really care about the compilation warning, but was wondering if > this is intended for 1.5 or expected in future releases of Wicket 1.4, or if > maybe the Javadoc should be updated ? > > Thanks alot ! > > Cheers, > > Antoine. > > -- > Antoine Angénieux > Associé > > Clinigrid > 5, avenue Mozart > 75016 Paris, France > +336 60 21 09 18 > aangeni...@clinigrid.com > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Wicket 1.4.12 and ImageMap deprecated ?
The patch was created for 1.4, so it should work On Sep 24, 2010 7:09 AM, "Martin Grigorov" wrote: > It will stay in 1.4+ and it is already replaced with ClientSideImageMap in > 1.5. > I think we have to downport ClientSideImageMap to 1.4.x as well so that the > users can migrate this single change before actually upgrading to 1.5. > If it is possible and there are no objections I'll do it this weekend. > > On Fri, Sep 24, 2010 at 1:02 PM, Antoine Angenieux < aangeni...@clinigrid.com >> wrote: > >> Hello all ! >> >> Since i upgraded to Wicket 1.4.12, I noticed that the ImageMap class has >> been deprecated, and the Javadoc states that its going away in 1.4+ to be >> replaced by ClientSideImageMap. >> >> Unfortunately, the ClientSideImageMap is not present yet! >> >> I do not really care about the compilation warning, but was wondering if >> this is intended for 1.5 or expected in future releases of Wicket 1.4, or if >> maybe the Javadoc should be updated ? >> >> Thanks alot ! >> >> Cheers, >> >> Antoine. >> >> -- >> Antoine Angénieux >> Associé >> >> Clinigrid >> 5, avenue Mozart >> 75016 Paris, France >> +336 60 21 09 18 >> aangeni...@clinigrid.com >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >>
Re: Wicket 1.4.12 and ImageMap deprecated ?
That is very good news, thanks a lot for the fast replies, as usual ;) Cheers, Antoine. -- Antoine Angénieux Associé Clinigrid 5, avenue Mozart 75016 Paris, France +336 60 21 09 18 aangeni...@clinigrid.com Le 24/09/2010 13:35, James Carman a écrit : The patch was created for 1.4, so it should work On Sep 24, 2010 7:09 AM, "Martin Grigorov" wrote: It will stay in 1.4+ and it is already replaced with ClientSideImageMap in 1.5. I think we have to downport ClientSideImageMap to 1.4.x as well so that the users can migrate this single change before actually upgrading to 1.5. If it is possible and there are no objections I'll do it this weekend. On Fri, Sep 24, 2010 at 1:02 PM, Antoine Angenieux< aangeni...@clinigrid.com wrote: Hello all ! Since i upgraded to Wicket 1.4.12, I noticed that the ImageMap class has been deprecated, and the Javadoc states that its going away in 1.4+ to be replaced by ClientSideImageMap. Unfortunately, the ClientSideImageMap is not present yet! I do not really care about the compilation warning, but was wondering if this is intended for 1.5 or expected in future releases of Wicket 1.4, or if maybe the Javadoc should be updated ? Thanks alot ! Cheers, Antoine. -- Antoine Angénieux Associé Clinigrid 5, avenue Mozart 75016 Paris, France +336 60 21 09 18 aangeni...@clinigrid.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to link ImageMap to an image?
I'm trying to use ImageMap. I've got a dynamically generated image, using RenderedDynamicImageResource to generate the image from a list of objects, each of which has its own coordinates (which works fine). Now I want an imagemap so that I can actually click on those objects. I thought this wouldn't be too hard, considering I've got that list of objects with their coordinates, and Wicket contains a convenient ImageLink class which has convenient addCircleLink() and addPolygonLink() methods. When I use it, however, I get this error message: WicketMessage: Component imageMap must be applied to a tag of type 'img', not '' (line 0, column 0) [markup = file:/C:/eclipse-workspace/Spacegame3/web/WEB-INF/classes/mcv/wicket/spacegame/UniverseMapPanel.html, index = 4, current = '' (line 6, column 5)] But when I create the ImageMap with the image's wicket:id instead of its own, I get this error: java.lang.IllegalArgumentException: A child with id 'universeMap' already exists: So should I remove the wicket Image? That makes no sense, because then how would the know what image to show? So basically, I'm stumped as to how to use ImageMap. Any ideas? mcv. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to link ImageMap to an image?
Martijn Vos wrote: I'm trying to use ImageMap. I've got a dynamically generated image, using RenderedDynamicImageResource to generate the image from a list of objects, each of which has its own coordinates (which works fine). Now I want an imagemap so that I can actually click on those objects. I thought this wouldn't be too hard, considering I've got that list of objects with their coordinates, and Wicket contains a convenient ImageLink class which has convenient addCircleLink() and addPolygonLink() methods. ... So basically, I'm stumped as to how to use ImageMap. Any ideas? After a bit more fiddling and looking at the source, I get the impression that ImageMap is supposed to work on a static tag with a hard-coded src atrribute. So basically it's an extremely basic class in dire need of some extension. I figured I'd make my own DynamicImageMap, which would extend ImageMap and make for a nice first contribution to Wicket. Unfortunately, ImageMap is final, so I can't extend it! Why is an extremely basic, feature-poor class final? Doesn't that make ImageMap a bit of a dead end? mcv. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to link ImageMap to an image?
>...ImageMap is supposed to work on a static >tag with a hard-coded src atrribute. But you can modify the src tag like below. Would that help? WebMarkupContainer img = new ImageMap("image") { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(final ComponentTag tag){ super.onComponentTag(tag); tag.put("src", YOUR_VERY_OWN_URL); } }; On Thu, Mar 27, 2008 at 3:05 PM, Martijn Vos <[EMAIL PROTECTED]> wrote: > Martijn Vos wrote: > > I'm trying to use ImageMap. I've got a dynamically generated > > image, using RenderedDynamicImageResource to generate the image > > from a list of objects, each of which has its own coordinates > > (which works fine). > > > > Now I want an imagemap so that I can actually click on those > > objects. I thought this wouldn't be too hard, considering I've > > got that list of objects with their coordinates, and Wicket > > contains a convenient ImageLink class which has convenient > > addCircleLink() and addPolygonLink() methods. > ... > > So basically, I'm stumped as to how to use ImageMap. Any ideas? > > After a bit more fiddling and looking at the source, I get the > impression that ImageMap is supposed to work on a static > tag with a hard-coded src atrribute. So basically it's an > extremely basic class in dire need of some extension. I figured > I'd make my own DynamicImageMap, which would extend ImageMap and > make for a nice first contribution to Wicket. Unfortunately, > ImageMap is final, so I can't extend it! Why is an extremely > basic, feature-poor class final? Doesn't that make ImageMap a > bit of a dead end? > > > mcv. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: How to link ImageMap to an image?
Matthew Young wrote: ...ImageMap is supposed to work on a static tag with a hard-coded src atrribute. But you can modify the src tag like below. Would that help? WebMarkupContainer img = new ImageMap("image") { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(final ComponentTag tag){ super.onComponentTag(tag); tag.put("src", YOUR_VERY_OWN_URL); } }; Not a lot. I want to treat my image in the same way as any other Wicket Image, and in my particular case, that means linking it to an RenderedDynamicImageResource. The problem is that the ImageMap needs to be applied to an img tag, which means I can't apply an Image to that tag anymore, but ImageMap doesn't provide anywhere near the functionality that Image does. It should. I see this as a serious bug in ImageMap, and not just some unavoidable limitation that needs to be worked around. The big question is how to fix this. I've got a couple of options: 1: Since ImageMap is applied to an img tag, ImageMap needs to implement the same functionality as Image. The best way to do that by simply making it inherit, but that's a problem since ImageMap already extends WebMarkupContainer. No idea what WebMarkupContainer does, but there's probably a very good reason for it. Also, there seems to be a big difference in the way Image and ImageMap are rendered. ImageMap uses onRender(), whereas Image uses onComponentTag(). I don't know enough about the inner workings of Wicket to know what that means. 2: Since an ImageMap is something completely different from an Image, it should not apply to an img tag, but to a map tag, and Image needs to have a method to link it to an ImageMap. Accept that the current ImageMap was based on a bad idea, and fix it properly. I think the second is better and cleaner, and I have a better idea of how to do it. The problem is that it requires some big changes: Image needs an extra method, compatibility with the old ImageMap will break, and you need to add a tag to your markup. I'm not completely happy with the need to add a tag, and would like to be able to simply add an ImageMap to an Image and have that work, but considering the difference between onRender() and onComponentTag(), I'm not sure that's possible. On the other hand, web designers will probably like having an actual imagemap in their markup. Should I be posting this to the dev list perhaps? mcv. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to link ImageMap to an image?
Matthew Young wrote: ...ImageMap is supposed to work on a static tag with a hard-coded src atrribute. But you can modify the src tag like below. Would that help? WebMarkupContainer img = new ImageMap("image") { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(final ComponentTag tag){ super.onComponentTag(tag); tag.put("src", YOUR_VERY_OWN_URL); } }; Not a lot. I want to treat my image in the same way as any other Wicket Image, and in my particular case, that means linking it to an RenderedDynamicImageResource. The problem is that the ImageMap needs to be applied to an img tag, which means I can't apply an Image to that tag anymore, but ImageMap doesn't provide anywhere near the functionality that Image does. It should. I see this as a serious bug in ImageMap, and not just some unavoidable limitation that needs to be worked around. The big question is how to fix this. I've got a couple of options: 1: Since ImageMap is applied to an img tag, ImageMap needs to implement the same functionality as Image. The best way to do that by simply making it inherit, but that's a problem since ImageMap already extends WebMarkupContainer. No idea what WebMarkupContainer does, but there's probably a very good reason for it. Also, there seems to be a big difference in the way Image and ImageMap are rendered. ImageMap uses onRender(), whereas Image uses onComponentTag(). I don't know enough about the inner workings of Wicket to know what that means. 2: Since an ImageMap is something completely different from an Image, it should not apply to an img tag, but to a map tag, and Image needs to have a method to link it to an ImageMap. Accept that the current ImageMap was based on a bad idea, and fix it properly. I think the second is better and cleaner, and I have a better idea of how to do it. The problem is that it requires some big changes: Image needs an extra method, compatibility with the old ImageMap will break, and you need to add a tag to your markup. I'm not completely happy with the need to add a tag, and would like to be able to simply add an ImageMap to an Image and have that work, but considering the difference between onRender() and onComponentTag(), I'm not sure that's possible. On the other hand, web designers will probably like having an actual imagemap in their markup. I'm currently working on option 2, and it's looking like a pretty extensive rewrite. Should I be posting this to the dev list perhaps? I have already created a Jira issue for this. mcv. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to link ImageMap to an image?
Matthew Young wrote: ...ImageMap is supposed to work on a static tag with a hard-coded src atrribute. But you can modify the src tag like below. Would that help? WebMarkupContainer img = new ImageMap("image") { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(final ComponentTag tag){ super.onComponentTag(tag); tag.put("src", YOUR_VERY_OWN_URL); } }; Not a lot. I want to treat my image in the same way as any other Wicket Image, and in my particular case, that means linking it to an RenderedDynamicImageResource. The problem is that the ImageMap needs to be applied to an img tag, which means I can't apply an Image to that tag anymore, but ImageMap doesn't provide anywhere near the functionality that Image does. It should. I see this as a serious bug in ImageMap, and not just some unavoidable limitation that needs to be worked around. The big question is how to fix this. I've got a couple of options: 1: Since ImageMap is applied to an img tag, ImageMap needs to implement the same functionality as Image. The best way to do that by simply making it inherit, but that's a problem since ImageMap already extends WebMarkupContainer. No idea what WebMarkupContainer does, but there's probably a very good reason for it. Also, there seems to be a big difference in the way Image and ImageMap are rendered. ImageMap uses onRender(), whereas Image uses onComponentTag(). I don't know enough about the inner workings of Wicket to know what that means. 2: Since an ImageMap is something completely different from an Image, it should not apply to an img tag, but to a map tag, and Image needs to have a method to link it to an ImageMap. Accept that the current ImageMap was based on a bad idea, and fix it properly. I think the second is better and cleaner, and I have a better idea of how to do it. The problem is that it requires some big changes: Image needs an extra method, compatibility with the old ImageMap will break, and you need to add a tag to your markup. I'm not completely happy with the need to add a tag, and would like to be able to simply add an ImageMap to an Image and have that work, but considering the difference between onRender() and onComponentTag(), I'm not sure that's possible. On the other hand, web designers will probably like having an actual imagemap in their markup. Should I be posting this to the dev list perhaps? mcv. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to link ImageMap to an image?
Matthew Young wrote: ...ImageMap is supposed to work on a static tag with a hard-coded src atrribute. But you can modify the src tag like below. Would that help? WebMarkupContainer img = new ImageMap("image") { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(final ComponentTag tag){ super.onComponentTag(tag); tag.put("src", YOUR_VERY_OWN_URL); } }; Not a lot. I want to treat my image in the same way as any other Wicket Image, and in my particular case, that means linking it to an RenderedDynamicImageResource. The problem is that the ImageMap needs to be applied to an img tag, which means I can't apply an Image to that tag anymore, but ImageMap doesn't provide anywhere near the functionality that Image does. It should. I see this as a serious bug in ImageMap, and not just some unavoidable limitation that needs to be worked around. The big question is how to fix this. I've got a couple of options: 1: Since ImageMap is applied to an img tag, ImageMap needs to implement the same functionality as Image. The best way to do that by simply making it inherit, but that's a problem since ImageMap already extends WebMarkupContainer. No idea what WebMarkupContainer does, but there's probably a very good reason for it. Also, there seems to be a big difference in the way Image and ImageMap are rendered. ImageMap uses onRender(), whereas Image uses onComponentTag(). I don't know enough about the inner workings of Wicket to know what that means. 2: Since an ImageMap is something completely different from an Image, it should not apply to an img tag, but to a map tag, and Image needs to have a method to link it to an ImageMap. Accept that the current ImageMap was based on a bad idea, and fix it properly. I think the second is better and cleaner, and I have a better idea of how to do it. The problem is that it requires some big changes: Image needs an extra method, compatibility with the old ImageMap will break, and you need to add a tag to your markup. I'm not completely happy with the need to add a tag, and would like to be able to simply add an ImageMap to an Image and have that work, but considering the difference between onRender() and onComponentTag(), I'm not sure that's possible. On the other hand, web designers will probably like having an actual imagemap in their markup. Should I be posting this to the dev list perhaps? mcv. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to link ImageMap to an image?
Martijn Vos wrote: [snip] Should I be posting this to the dev list perhaps? I have already created a Jira issue for this. My apologies for posting the same message four time last friday. Problems with my employer's mailserver. Anyway, I fixed the problem by writing a new ImageMap, and I started a new thread about this on the dev list called "WICKET-1456: rewrite existing ImageMap or create a new one?" mcv. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can i add javascript code to the shapelink markup used by ImageMap?
Hi *, i try to implement the following. - a background image is displayed. - the image is overlayed by some links - if mouse "hits" a link area the background is overlayed by a gray film - if mouse "leaves" the link area the gray film disappears - if link area is clicked the background image will be exchanged by an image with this area permanently marked I use an imagemap for now. Everything works fine but the onmouseover and onmouseout scripts. I have to add them to the markup. But i can not access it. ImageMap is final and is not using the customization concepts of other wicket components. Can someone help me out here? Thanks Per -- View this message in context: http://www.nabble.com/Can-i-add-javascript-code-to-the-shapelink-markup-used-by-ImageMap--tp19913694p19913694.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can i add javascript code to the shapelink markup used by ImageMap?
I found a solution, maybe it's a hack, but it works. I manipulate the result of getURL Method of assigned link component. This string will be added to the area markup. I simply add the closeTag for href and then add the scripts for onmouseover and onmouseout. Hope this helps others 2. Cheers Per -- View this message in context: http://www.nabble.com/Can-i-add-javascript-code-to-the-shapelink-markup-used-by-ImageMap--tp19913694p19919616.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]