There isn't such component in wicket to achieve that, but it should be fairly
easy to build i.e:

1-Having a Panel with the FileUpload that you want
2-Having a Panel with the image tag   that you want
3-Having a WebMarkup Container that act as a placeHolder for either 1 or 2
at a given time.

on you onClick behavior of the image panel you could call something like
[ImagePanel.this.replaceWith(referenceOfFileUploadPanel)]

To just Swap between panels, take a look at this 
http://pawelzubkiewicz.blogspot.com/2009/06/wicket-swapping-replacing-fragments.html
example 

Hope you get the Idea



alecswan1 wrote:
> 
> I am using Wicket to implement an image component which behaves
> similarly to AjaxEditableLabel.
> 
> When the component is rendered it should look like a regular image
>  .. . When the user clicks on the image, it should display
> a file upload component which will allow the user to replace the
> image.
> 
> What is the easiest way to implement this behavior? Is there a
> component that already does this? If not, which Wicket class should I
> extend?
> 
> Thanks,
> 
> Alec
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Ajax-editable-image-%40L-tp27084451p27085401.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]

Reply via email to