Mattom, Thank you for sharing code. Thank you .
2008/8/28, Mattom <[EMAIL PROTECTED]>:
>
> Found a different solution, in case somebody is interested:
>
> fileUploadField.add(new AjaxEventBehavior("onchange")
> {
> protected void onEvent(AjaxRequestTarget target) {
> Request request = RequestCycle.get().getRequest();
> String filename = request.getParameter("filename");
> System.out.println("filename is [" + filename + "]");
> }
>
> public CharSequence getCallbackUrl(boolean
> onlyTargetActivePage) {
> CharSequence callBackUrl
> = super.getCallbackUrl(onlyTargetActivePage);
> return callBackUrl + "&filename=' + this.value + '";
> }
>
> });
>
> not as beautiful as I'd like to have it, because I'm manually messing
> around with the callback url, but it works :-).
>
> :-),
> Thomas
>
>
>