I've been looking at building a velocity portlet that uses the fileupload
macro in the version of global macros.vm that ships with Jetspeed 1.4b3.

When I try to create, for example a file upload file using
#fileUpload ("Select file" "file")

The portlet then displays
$label [upload field] [browse button]
ie it does not display the correct label (should be "Select file").

I've compared the version of globalmacros.vm with the one that ships with
the turbine development kit (tdk). There appears to be a difference in some
macros in these files, for example if you look at the file upload macro:
jetspeed globalmacros.vm
...
#macro (fileupload "$label" "$name")
  #formlabel("$label")
  #fileUploadField("$name")
#end
...
tdk globalmacros.vm
...
#macro (fileupload $label $name)
  #formlabel($label)
  #fileUploadField($name)
#end
...

Difference is obvious and not surprisingly my portlet works when the double
quotes are removed in Jetspeed's globalmacros.vm.

Am I missing something here that's obvious, or is this correct?



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to