Fetch current Node in CustomValueListProvider

Hi,
Is there a way to get hold of current node in CustomValueListProvider that implements IValueListProvider

Tried context.getService(config.getString(“wicket.model”), IModelReference.class) but it returns null.

Thanks

I remember doing this once. My use case was dynamically populating a dynamic dropdown list based on what the node had as properties. I wrote an explanation in the old community site here:


Different use case i guess, but you can check out the code there. In short, you have to pass the nodepath from the editor plugin

Thanks @bcanvural, it worked.