0

I´m binding a fileupload control to a managed bean. The property within the managed bean is of type "UploadedFile". When I save the Bean I get the following client side javascript error:

dojo/parser::parse() error SyntaxError: Unexpected token )(…)

This occurs only with managed beans. When the control is bound to a domino document there is no such error.

Here is some code for you: I use the very basic version of the control and instantly get the javascript error:

<xp:fileUpload id="fileUpload1" 
    value="#{registration.User.attachment}">
</xp:fileUpload>

Does anyone have experience with this or is there any property which I forgot to set?

Max
  • 1,053
  • 1
  • 13
  • 34
  • Is the answer to this question also the solution for you http://stackoverflow.com/questions/17073250/how-to-upload-and-save-an-attachment-via-xpages-java-bean? – Paul Stephen Withers Nov 14 '16 at 16:22
  • 1
    Code rulez! Provide your code, so we can spot what doesn't work – stwissel Nov 15 '16 at 03:23
  • Provided some code. Paul, I don´t think so, since I wonder about a Javascript Error which is thrown. I know how to bind it and everything and it does even work. But I get these ugly javascript error on every save. – Max Nov 15 '16 at 08:09
  • Is it just me or is anyone able to reproduce this error? – Max Nov 16 '16 at 06:26
  • (most of us here) know how a domino document datasource works, but there's no chance knowing anything about your bean. This could be anything... – Lothar Mueller Nov 16 '16 at 17:04

0 Answers0