Issue with custom control - Unknown property

谁说胖子不能爱 提交于 2019-12-12 02:47:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!