Tag Archives: XPages Error

XPages: No component found with ID

If you are doing XPage development and are getting an error that there is no component handling the submit event. In my case it was when saving new documents but it could happen otherwise also.
The solution was in my case to not save the NotesDocument, use the XSP Datasource instead.

So I did
var doc:NotesDocument =document1.getDocument(true)
Created some reader and author fields and did
doc.save(true,false)
And did a full refresh on the button and got the crash but only on new documents.
What I did was changing the doc.save to document1.save()
Also check any visible or disable ssjs if you are checking a value in the ssjs doc or the notes document.
due to the update events they do not always sync. So make sure that you check the value in the same context as the value is set if the document is new.
i.e doc.replaceItemValue(“Status”,”Open”) try changing this to document1.replaceItemValue(“Status”,”Open”) if that solves you issue.

CLFAD0380E: No component found with ID $$xspsubmitid=<some random id> to handle the submit event.

Check out my XPAGE Error page for more