cancel
Showing results for 
Search instead for 
Did you mean: 

r:searchCustomProperties tag is displayed twice

rfnz
Champ in-the-making
Champ in-the-making
Hi,

I have a strange problem with showing custom property search fields in a dialog. The <r:searchCustomProperties> tag gets displayed twice if it's put inside of <hSmiley TongueanelGroup>. Being out of <hSmiley TongueanelGroup> it's fine for the first part of the search but in this case it also gets displayed when search is finished, which isn't the intent.

Excerpt from search-documents.jsp (referenced in web-client-config-custom.xml as dialog page)

<h:panelGroup
   rendered="#{DialogManager.bean.searchFinished == false }">
   <r:searchCustomProperties id="customProps"
      bean="SearchProperties" var="customProperties"
      style="padding-left:12px;padding-top:4px" />
   <br>
</h:panelGroup>
<r:searchCustomProperties> tag is used in advanced-search.jsp to retrieve custom properties in "Additional options" panel and on that page only one copy is shown. In dialog it gets displayed twice:
[img]http://i48.photobucket.com/albums/f221/rfnz/doubleDisplay1-1.jpg[/img]

Did anyone see something like that before? Any suggestions on how to remove the 2nd part are appreciated.
6 REPLIES 6

rfnz
Champ in-the-making
Champ in-the-making
I dont' know why <hSmiley TongueanelGroup> behaves this way but the problem disappears when using </f:subview> instead. : )

carol
Champ in-the-making
Champ in-the-making
Hi,

We need to configure Alfresco to show an advanced search page after the user's login. That's to say, when the users logs in to Alfresco, the inital page should be a page where the user could look for documents of our repository specifying some custom properties of the spaces/content.

Looks like you've managed to create your own search screen, can we apply what have you done?

What's the best way to do that?
- Update the faces-config.xml file to forward the user to the advanced search JSP when the login has returned "success".
- Implement an openSearch extension and show it within a dashlet. (Where can I find info about the openSearch extension?)
- Create a custom dashlet/web script??

Thank you so much,
Best Regards,

Carol

rfnz
Champ in-the-making
Champ in-the-making
Hi Carol,

What I did was to implement a custom dialog and this thread helped me a great deal.
I don't know much about openSearch extension, can't help you with that.

carol
Champ in-the-making
Champ in-the-making
OK, it´s enough. Thank you very much for the links help.
Thank you so much for you information.

Carol

jpbarba
Champ in-the-making
Champ in-the-making
Hi,
I'm triyng to modify the Advanced Search Panel to show in Additional options only the properties
in relation with the content type selected. I mean, if you select a content type in the combo box
above, the additional optional change. But the problem is that is implemented with tld like r:searchCustomProperties,
so i don't know how to implement this functionality.

Greetings

mahdi
Champ in-the-making
Champ in-the-making
hi rfnz, i'm looking for customizing the advanced search so only the properties of the selected content type will be enabled.
i tried to change the advanced-search.jsp and the classes java (SearchProperties.java and AdvancedSearchDialog.java) but i didn't succeed.
but  i saw your document-search.jsp and it's a good idea to associate a jsp to each content type.
so could you please tell me how to create a jsp associated to a specific content type, like your document-search.jsp   ?
thanks