In addition, the iframe method that Ed mentioned was a hack to get
around the fact that AJAX can't handle fileuploads yet. That might
have been what he was talking about.
cheers.
On 10/01/2009, at 5:06 AM, Jeremy Thomerson wrote:
Yes - a FileUpload can be in any component (though it will need to
be nested
in some parent multi-part form). Your error below has nothing to do
with it
being in a panel. In later versions of 1.4, there was a change that
requires a FileUpload component to have a model to store it's data.
You
need to call the constructor like "new FileUpload("ID", new Model())"
--
Jeremy Thomerson
http://www.wickettraining.com
On Fri, Jan 9, 2009 at 8:05 PM, Ed _ <[email protected]> wrote:
Is it possible to do a file upload within a Panel ?
Or can it only be done in a WebPage? I have seen some solutions
using
IFrames within panels to get around this.
ERROR [http-8080-1] (RequestCycle.java:1072) - there was an error
cleaning
up target
org
.apache
.wicket
.request
.target
.component.listener.listenerinterfacerequesttar...@654004161[page
class = com.mydomain.admin.Admin, id = 0, version =
0]->fileUpload->interface
org
.apache
.wicket.markup.html.form.IFormSubmitListener.IFormSubmitListener
(request paramaters: [RequestParameters
componentPath=0:xPanel:fileUpload
pageMapName=null versionNumber=0 interfaceName=IFormSubmitListener
componentId=null behaviorId=null urlDepth=-1 parameters={}
onlyProcessIfPathActive=false]).
java.lang.IllegalStateException: Attempt to set model object on
null model
of component: xPanel:fileUpload:fileInput
at
org.apache.wicket.Component.setDefaultModelObject(Component.java:
2933)
thanks,
Ed
_________________________________________________________________
Windows Live⢠Hotmail(R): Chat. Store. Share. Do more with mail.
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]