问题
I have a custom control with one property, showDeleteButton.
- Type: boolean
- Editor: Boolean value
- Required field: true
Sporadically I get this error message when building, in the XPages that use it:
Unknown property showDeleteButton. It is not defined on tag xc:ccCommonActions
I've tried deleting the custom control and recreating it. The issue still pops up after a few builds. I can work around the issue by disabling the required property, saving, enabling, saving, project->clean.
Have anyone encountered this issue/know what might be wrong?
回答1:
I got these kind of errors too. It has something to do with build automatically turned off since 8.5.3. My solution: Cut the control out of the application, do a rebuild and project -> clean and then paste the control back in (and a rebuild and project -> clean).
回答2:
add a default value to the property and try again. If auto build is off you need to build once to activate that.
回答3:
I've nailed the reason. I tested source control on the NSF a while back. Not sure if it's normal, but DDE created a subfolder in the VFS with the name I gave the project. I deleted the folder, and so far it looks like it's ok.
来源:https://stackoverflow.com/questions/9630187/issue-with-custom-control-unknown-property