Page 1 of 1

Missing messages properties for advanced-search-module

Posted: Wed Mar 13, 2013 8:03 am
by staleks
Hi,

I've started incorporating 'Advanced Search Module` into "admin" application.

I've followed the tutorial:
- added maven dependency (with correct <artifactId>), and have module JAR on classpath
- added following in gwt.xml file

Code: Select all

<inherits name="com.broadleafcommerce.search.admin.searchModule" />

- executed update SQL

I've deployed "Admin" app. to Tomcat and started. I've got login screen and now when I do login, I am getting admin screen but new properties for searchFacet and redirect are missing.

see attached image


I've downloaded AdvSearch Demo application and added following propeties in messages-admin.properties files:

Code: Select all

BLCMerchandising.SearchFacet=Search Facet
BLCMerchandising.SearchRedirect=Search Redirect

even documentation doesn't mention that at all. But even with this applied I am still getting these ?? which usually is the case when properties can't be found.

Re: Missing messages properties for advanced-search-module

Posted: Mon Mar 18, 2013 4:17 pm
by staleks
I still have no luck with this.

Also one other thing that I've noticed.

Each time I click on these links (SearchFacet and SearchRedirect) I see that links where they are pointing are:
/admin/search-redirect#moduleKey=BLCMerchandising&pageKey=Search%20Redirect
but once clicked I am getting redirected to:
/admin/search-facet#moduleKey=BLCMerchandising&pageKey=Category

I've even tried to debug GWT application to try to find the reason for this but luck.

Can someone point me in some direction where to look for?

Thank You

Re: Missing messages properties for advanced-search-module

Posted: Wed Mar 20, 2013 7:43 am
by jefffischer
I believe there is an error in the documentation, which I just addressed and should be made available shortly on the public docs. I think the key piece for you is related to the sql. Specifically these lines:

Code: Select all

INSERT INTO BLC_ADMIN_SECTION (ADMIN_SECTION_ID, ADMIN_MODULE_ID, NAME, SECTION_KEY, URL, USE_DEFAULT_HANDLER) VALUES (20, 1, 'Search Facet', 'Search Facet', '/search-facet', TRUE);
INSERT INTO BLC_ADMIN_SECTION (ADMIN_SECTION_ID, ADMIN_MODULE_ID, NAME, SECTION_KEY, URL, USE_DEFAULT_HANDLER) VALUES (21, 1, 'Search Redirect', 'Search Redirect', '/search-redirect', TRUE);


I believe the problem is with the SECTION_KEY column. There shouldn't be a space there. The insert statements should actually be:

Code: Select all

INSERT INTO BLC_ADMIN_SECTION (ADMIN_SECTION_ID, ADMIN_MODULE_ID, NAME, SECTION_KEY, URL, USE_DEFAULT_HANDLER) VALUES (20, 1, 'Search Facet', 'SearchFacet', '/search-facet', TRUE);
INSERT INTO BLC_ADMIN_SECTION (ADMIN_SECTION_ID, ADMIN_MODULE_ID, NAME, SECTION_KEY, URL, USE_DEFAULT_HANDLER) VALUES (21, 1, 'Search Redirect', 'SearchRedirect', '/search-redirect', TRUE);


I also updated the docs to include the bit regarding messages-admin.properties.