cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve selectValues for h:selectOneMenu in editDialog

georg
Champ in-the-making
Champ in-the-making
Hi

I created a custom jsp/content/edit-content-properties.jsp for my model using <hSmiley SurprisedutputText ../> and <h:inputText ../> tags. The model also have some LIST-constraints with values for the <h:selectOneMenu ../> tag.

I was able to retrieve the values for the <h:inputText>-tags using:

<h:inputText value='#{DialogManager.bean.editableNode.properties["my:field"]}'></h:inputText>

But I don't know how to fetch the values for the selectItems for the <h:selectOneMenu../>-Tag


<h:selectOneMenu value='#{DialogManager.bean.editableNode.properties["my:status"]}'>
  <f:selectItems value='????' />
</h:selectOneMenu>

Regards,

Georg
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
You'll need to write a custom managed bean (if you haven't already) that has a method that returns a List of SelectItem objects for each property you have. See CreateSpaceWizard.getTemplateSpaces() as an example.

You'll then need to use the data dictionary to get hold of the constraints object for the property and build up the list you need from the values. Have a look at TextFieldGenerator for an example of doing this.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.