# EssentialsListPickercomponent

**URL:** <https://community.bloomreach.com/t/essentialslistpickercomponent/4551>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [October 28, 2024, 10:53am UTC](https://community.bloomreach.com/t/essentialslistpickercomponent/4551 "2024-10-28T10:53:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krajendran](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@krajendran](https://community.bloomreach.com/u/krajendran)\
**Post date:** [October 28, 2024, 10:53am UTC](https://community.bloomreach.com/t/essentialslistpickercomponent/4551/1 "2024-10-28T10:53:12Z")

</div>

Hi Team,  
I am creating a component extending the Essentialslistpickercomponent. But i want to show only 3 documents in the properties picker in the experience manager.

I tired keeping parametername and values for only 3 documents in cms and changed pagesize to 3.

Please suggest a method to do the same

---

<div class="post-metadata">

**Author:** ![Nicholas\_Pavao](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/nicholas_pavao/32/1370_2.png) [@Nicholas\_Pavao](https://community.bloomreach.com/u/Nicholas_Pavao)\
**Post date:** [October 30, 2024, 9:16pm UTC](https://community.bloomreach.com/t/essentialslistpickercomponent/4551/2 "2024-10-30T21:16:45Z")

</div>

Hey @krajendran, if you are extending `EssentialsListPickerComponent`, your above described method is how you would restrict the results to 3 documents.  
Is this not working for your use case?  
Could you elaborate further?

---

<div class="post-metadata">

**Author:** ![krajendran](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@krajendran](https://community.bloomreach.com/u/krajendran)\
**Post date:** [November 1, 2024, 8:44am UTC](https://community.bloomreach.com/t/essentialslistpickercomponent/4551/3 "2024-11-01T08:44:55Z")

</div>

public interface CustomComponentInfo extends EssentialsListPickerComponentInfo {  
@Parameter(name = “category”, displayName = “Category”, defaultValue = “news”)  
@DropDownList(value = {“Newsroom”, “Sustainability”})  
String getCategory();  
}

@ParametersInfo(  
type = CustomComponentInfo.class  
)  
public class CustomComponent extends EssentialsListPickerComponent {  
public CustomComponent()  
{

```
}
public void doBeforeRender(HstRequest request, HstResponse response) {
    super.doBeforeRender(request, response);
    CustomComponentInfoparamInfo = (CustomComponentInfo)this.getComponentParametersInfo(request);
    request.setAttribute("cparam", paramInfo);
}

```

}

this is my component and componentinfo custom class and the properties shows 10 documents along with my param value category but i need only 3 document picker.

1. i tried changing pagesize in property to 3
2. in console i deleted the paramatervalues and names of documents4-10
3. i even added override methods for three documents

but i could see getdocuments in essentialslistpickercomponent adding 10 document beans

is there any way to restrict it to 3
