Hello,
as cit 2.1 is released, I try the new features, especially the fileupload2.
But the method is not called which I defined in the layout. Even the setter aren’t called.
Here’s the layout:
...
<rowarea name=" " fixlayout="true">
<vdist height="5"/>
<itr>
<label textid="file" width="150"/>
<fileupload2 width="300" cfileprop="clientFileName"
sfileprop="serverFileName" method="onUpload"/>
</itr>
...
And the adapter code:
public class MediaUploadAdapter extends Adapter
{
private String m_ClientFileName = "", m_ServerFileName = "";
public void onUpload()
{
// ...
}
public String getClientFileName()
{
return m_ClientFileName;
}
public void setClientFileName(String clientFileName)
{
m_ClientFileName = clientFileName;
}
public String getServerFileName()
{
return m_ServerFileName;
}
public void setServerFileName(String serverFileName)
{
m_ServerFileName = serverFileName;
}
}
By the way, if I include a button and press it - the method on the button is called, but not the setters or onUpload()…
Thanks in advance for any advice.
H. Johannes