Value binding expression does not support setValue()

I’m creating a simple computed field with a binding of session.getCommonUserName().

The XML is:

<?xml version="1.0" encoding="UTF-8"?>

<xp:view xmlns:xp=“http://www.ibm.com/xsp/core”>

<xp:label value=“Bullshit” id=“label1”></xp:label>

<xp:text escape=“true” id=“computedField1”

binding=“${javascript:session.getCommonUserName()}”>

</xp:text>

</xp:view>

Any ideas?

Subject: Solved

Subject: wow thanks for that

Your Solved message was really useful.

For anyone else getting this error I worked it out that it happens the second time, not the first time.

It happened to me when the field was a javascript field not a bound field.

If you make the relevant field a proper bound field to the underlying document it works ok.