AnsweredAssumed Answered

Extend ListOfValuesConstraint and read values from txt file

Question asked by uf766086 on Dec 2, 2007
Latest reply on Dec 2, 2007 by uf766086
Hi all !!!

I'm trying to extend ListOfValuesConstraint to make some kind of dynamic list. The idea is to read the values from a txt file stored in the Data Dictionary space.

I have sucesfully created my own constraint, but don't know how to get an instance to NodeService so i could use a reader to get file content.

I have tried to get the spring context (so I can access to managed beans) using org.alfresco.util.ApplicationContextHelper but it generates an error on application start… It seems that constraints are created before Spring context is initialized…

Any idea?

Thx in advance

Outcomes