XPage binding question - adding comments area

I have an XPage that is the content area for my site. The XPage consists of two controls: “Content” and “Comments”.

The Content control simply opens the requested doc for display. It has the data source defined at the CC level because I have some minor onLoad code that runs to set up the breadcrumbs. This is working fine.

The Comment control provides an area for the user to add in-line comments. The data source is defined at the panel level as I read that this is recommended for pages that have multiple data sources. The “Add Comment” button should save to a child doc but this is not happening. Instead, the editable fields that I have added to this control are not editable when I open them in the browser (they are linked to fields in the Comment form. Also, a document is created of type “Content” and not “Comment” when I click the button (the button has “comment.save()” behind it and NOT the simple function, as per the article I read).

If I create a test xpage with just the “Comment” control, it works perfectly. Thus, I think there is something between the two data sources that is causing an issue. Is there something that I may be missing here? Better yet, if someone can point me in the direction of a better way to handle comments I’d love to see it.

Subject: used wiki instead

I ended up using the comment control in the wiki template. It created the comment by hand instead of binding to it.