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
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
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 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]
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] > >