I have many documents and I want to show these on the popup but in a list like as I show you in picture
Are you looking for something like path filter in Faceted search ?
If this is the case, you have to just replace the biding with field and the widget and write your own widget. For the biding you can do look here.
For the widget definition, you can look the “select_path_tree” widget definition:
<widgetType name="select_path_tree"> <configuration> <title>Path tree</title> <categories> <category>configuration_not_ready</category> </categories> </configuration> <handler-class> org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler </handler-class> <property name="template"> /widgets/select_path_tree_widget_template.xhtml </property> </widgetType>
And see the xhtml associated.
Hope this will help you…