Skip to Content
0
Former Member
Mar 21, 2009 at 06:33 PM

fileupload Resource is always null

21 Views

Hi,

up front, this is a Mobile Client Application for Laptops question.

I'm trying to implement an eventHandler which uploads an image an displays it.

I used a tutorial from the sdn for netweaver 7.1.

In the context is one attribute:

1) imgResource ( FileUpload Element binded to it)

this is my event handler which is binded to the LinkToAction text to upload the image

 public void onActionImageUpload(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.demo.imgupload.imguploadcomp.wdp.IPrivateImgUploadCompView.IResourceElement resourceElement )
  {
    //@@begin onActionImageUpload(ServerEvent)
	
	
	  if(resourceElement.getImgResource() != null) { 
		   // Further Logic
	 }
	
    //@@end
  }

Any Suggestions why the if is always false?