Building a fieldset custom control
The source code of the XPage looks like this (note: the custom property doesn't show up here since it is stored in a file hidden from the Domino Designer perspective):
<fieldset>
<legend>
<xp:text escape="false" id="legendText" value="#{javascript:compositeData.legendText}">
</xp:text>
</legend>
<xp:callback facetName="facetFieldSetContent" id="callbackFieldControlSet" />
</fieldset>
</xp:view>
When using the custom control in a XPage or another control it looks like this (note the content inside the "this.facets") is what you put in there. can be a panel or table with fields in it or another control.
>
<xc:FieldSetControl id="MyFieldSet">
<xc:this.legendText>This is the <b>legend</b> text</xc:this.legendText>
<xp:this.facets>
<xp:panel xp:key="facetFieldSetContent" id="stuffInsideTheFieldSet">
<xp:label id="label1" for="inputText1" value="Test Field">
</xp:label>
<xp:inputText id="inputText1" />
</xp:panel>
</xp:this.facets>
</xc:FieldSetControl>
</xp:view>
As usual: YMMV




Comments
It just works !
Posted by Theo Heselmans At 00:24:31 On 07/11/2009 | - Website - |
Posted by Karsten Lehmann At 02:59:00 On 07/10/2009 | - Website - |
Posted by Benoit Dubuc At 03:13:57 On 07/15/2009 | - Website - |