Hello.
I extended the advanced search component for my custom types.
One looks like this.
<scope type="custom_type">
<component id="advsearchlegal" extends="advsearchlegal:custom/config/advsearch/advsearchlegal_component.xml">
<pages>
<start>/custom/jsp/library/advsearch/custom/advsearchcustom.jsp</start>
</pages>
<nlsbundle>com.rem.library.search.AdvSearchNlsProp</nlsbundle>
<class>com.rem.library.advsearch.contrato.AdvSearchCustom</class>
</component>
</scope>
So in the jsp, I put three radiobutton which represents my custom types that I have, because my requirement is don't use the
searchobjecttypedropdownlist, and that I want is if I check first raddion button (custom_type 1) the searchobjecttypedropdownlist
(which is set to visible false) set to custom_type 1 and refresh the scope of search component because of that the jsp will change
depending of my XML configuration.
I know how can set this control with value, but it's not enough to refresh the scope type.
I tried using:
RepositorySearch search = getRepositorySearch();
search .updateSearchScopes();
At the first time work fine, but if change the check of radionbuttons two or three times (check first one, then check second or maybe
return to first) it's throw me an exception which indicate that one of my searchattribute in my jsp is not correct for the custom type.
I notice that jsp have changed but I don't know why I got this message error.
I hope that you can help me. I wait for your comments.
Kind Regards.