Custom controls are broken

  • If I put a combobox into a custom control and set the value= (using either the attribute or xp:this.defaultvalue using compositeData, then the combobox is locked into either read mode or edit mode, regardless of what mode the document is in. If this is not in a custom control it works, except it’s impossible to set “” as a selected item. Period.

  • If I fake a combobox using a repeat control and put that into a custom control using compositeData to define what to repeat (exact same code as the combobox cc), then the repeat never gets any data, or at least it never generates any output. If this is not in a custom control it works, at the expense of 27 lines of code per combobox, plus tons and tons of editing for each combobox copied to rename all the ids. Considering I want to use this on over a dozen fields per form, that’s pretty intense. But at least I can set “” as a selected item.

  • In both cases, there are no errors with custom controls, no complier anything, nothing what-so-ever to indicate anything is wrong anywhere. Period. It simply refuses to work correctly.

  • It seems I do nothing but waste time trying to get Xpages to function. More and more and more time lost forever. THREE DAYS squandered on what? One … single … combobox. And it still doesn’t work. What’s the point of a custom control if it’s not going to facilitate reuse? I thought that’s what it was for??