XPages Example part 2: Generating dynamic editable fields for a document collection06/16/2008 03:50 AM1. Vidyasagar07/18/2008 01:43:34 AM
Nice one. Its working fine. But is there a way to add an X page in the repeat control and get the same functionality?
2. John Mackey07/18/2008 04:35:50 AM
Vidyasagar, you can add a custom control in a repeat control. A custom control is basically an XPage itself, similar to a subform in Domino.
The multi-file upload sample is an example of this. Take a look at this post: { Link }
3. veena12/15/2008 07:23:28 PM
Thanks for your good example and step by step ppt, I have problem while running the "CustomerOrders.nsf " on my own server, the error message in browser is: "Error 500
HTTP Web Server: Command Not Handled Exception", and the error message on server console is: "HTTP JVM: SEVERE: CLFAD####E: Exception thrown". what's wrong?
4. hector amato02/03/2009 04:19:02 AM
After having a look at the HTNL generated, I see that there is a DIV element the corresponds to the Repeat Control. i would need to use an outer table instead of an inner one, and then repeat only the rows. The problem is that the HTML comes as
<TABLE>
<DIV id="... (repeat)
<TR>...
<TR>...
....
</TABLE.
so it is not well formed.
Is there any way to remove the DIV from the output HTML ?. I have seem that the repeat has a property removerepeat that should do the job, but it dows not work. Any hints ?
5. John Mackey02/03/2009 11:49:18 AM
@Hector, Yes I completely understand your issue with using an inner table. You might want to look at using the "Data Table" control instead of a repeat control. It seems to be in between a view control and a repeat control. Here's a link to the wiki where there is a great demo by Paul Hannan from IBM.
{ Link }
Also, there is an additional entry explaining how to remove the HTML tags completely: { Link }
Regards,
John
Note: You can access all downloads here