cancel
Showing results for 
Search instead for 
Did you mean: 

Read the config of the Advanced Search from a web service

palba
Champ in-the-making
Champ in-the-making
Hi.

I need to check the config of the Advanced Search from a web service.

Outside the webservice i can do this:


AdvancedSearchConfigElement config = (AdvancedSearchConfigElement) Application
            .getConfigService(FacesContext.getCurrentInstance())
            .getConfig("Advanced Search")
            .getConfigElement(AdvancedSearchConfigElement.CONFIG_ELEMENT_ID);

But in a webservice FacesContext.getCurrentInstance() is allways null. So, anyone knows a workaround?

Thxs in advance
1 REPLY 1

patil
Champ on-the-rise
Champ on-the-rise
Hi,

This is not the correcty way of accessing the configService in WebServices approach.

WebServiceFactory.getContentService();

you should access as above.

Unfortunately ConfigService is not been exposed as part of WebService. You need to write your own Service for the same.


Thanks,
Patil
Cignex Technologies
Bangalore