Xpage data binding

I have problem with binding edit box to form field. The problem is that field name contains dots. For example: some.field.nameThis causes some serious problems for default binding generator (drag and drop one). If I try to save xpage with edit box binded to such field error appears informing that id is wrong (probably dots are forbidden).

I have tried to bind this edit box manually but I dont know what exactly defines this binding:

  • edit box id

  • or EL expression

  • or maybe both (EL and id)

Maybe changing EL will help because default dominoDocument1.some.field.name will not work. Unfortunatelly I dont know where to search for some documentation that regards this topic (EL and data binding).

Any kind of help would be appreciated because simply changing names of fields on form is not an option.

Subject: Binding Field in Xpages

Have you tried editing the source code to achieve this?

eg

<xp:inputText value=“#{document1.FirstName}” id=“FirstName1”></xp:inputText>

As the field name is enclosed in quotes it should accept it.

I haven’t tried adding a field with a ‘.’ in its name, but its worth a try.

Cheers

Graeme

Subject: Dot has a special meaning in EL

The dot character has special meaning in EL. This is probably a bug in the databinding code in 85. I recently fixed in in 851 so dev are aware of the issue.To manually bind this the el has to be in this form:

<xp:inputText id=“inputText1”>

<xp:this.value><![CDATA[#{document1['dot.dot']}]]></xp:this.value>

</xp:inputText>

Subject: Cheers Dan

Thanks for the HU on that one.

Graeme