On Sun, 2008-06-15 at 20:38 -0700, wch2001 wrote:
> Dear all,
>
> I will use the image for button, that means click image to submit side.
>
> add( new ImageButton("submitButton"){
>
> @Override
> public void onSubmit() {
> System.out.println("clicking submit button .....");
> }
>
> });
>
> in the html. i write something like:
> <input wicket:id="submitButton" type="image"
> src="/selfservice/images/b_submit.gif" />
>
> but i can not see the image.
>
> Can someone tell me how to use imageButton?
>
> thanks a lot
Hi,
You should use the ctor with ResourceReference:
public ImageButton(final String id, final ResourceReference
resourceReference).
And this question is for the user mailing list.
Regards
Martin