Revision history [back]

click to hide/show revision 1
initial version

asked 2013-02-22 15:37:01 +0800

bug gravatar image bug

binding uploaded file

How can I bind an uploaded file to a property of a ViewModel?

Example: MyViewModel.java class MyViewModel { private bytes[] file; // code omitted }

myview.zul ... <button upload="true" value="@bind(vm.file)"/> ...

binding uploaded file

How can I bind an uploaded file to a property of a ViewModel?

Example: MyViewModel.java MyViewModel.java

class MyViewModel {
   private bytes[] file;
   // code omitted
}}

myview.zul

myview.zul

...
<button upload="true" value="@bind(vm.file)"/>
...

value="@bind(vm.file)" /> ...

binding uploaded file

How can I bind an uploaded file to a property of a ViewModel?

Example: Example (not working):

MyViewModel.java

class MyViewModel {
   private bytes[] file;
   // code omitted
}

myview.zul

...
<button upload="true" value="@bind(vm.file)" />
...

binding uploaded file

How can I bind an uploaded file to a property of a ViewModel?

Example (not working):

MyViewModel.java

class MyViewModel {
   private bytes[] file;
   // code omitted
}

myview.zul

...
<button upload="true" value="@bind(vm.file)" />
...
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More