0

I am using ui-repeat and inputtext using primefaces

<ui:repeat var="field" value="#{formSettings.studentsFormSettings}" varStatus="form">

                <h:outputLabel value="#{field.label}"
                    rendered="#{field.type eq 'TEXT'}" />
                <br />
                <p:inputText required="#{field.valdaite}" 
                    requiredMessage="#{field.requrid}" disabled="#{!field.active}"
                    rendered="#{field.type eq 'TEXT'}" >
                </p:inputText>

</ui:repeat>

and i am have call method

public void listener(ActionEvent actionEvent){
    actionEvent.getComponent().getParent().getAttributes();
        UIComponent tmpComponent = actionEvent.getComponent();
}

how can i get all values from input text using primefaces ?

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
yali
  • 1,038
  • 4
  • 15
  • 31
  • 1
    You could implement a property `#{field.value}` with get and set method and pass it to `` – Selaron Nov 08 '18 at 07:20
  • 2
    Did you read these answers you have been pointed to in your previous question? https://stackoverflow.com/questions/18203481/how-to-set-submitted-values-of-hinputtext-inside-uirepeat-into-map-set-or – Selaron Nov 08 '18 at 07:48
  • 1
    The answer is: The same way as in plain JSF: https://stackoverflow.com/questions/20309576/how-to-get-component-value-from-actionevent-object – Kukeltje Nov 08 '18 at 10:44
  • Possible duplicate of [How to get component value from ActionEvent object?](https://stackoverflow.com/questions/20309576/how-to-get-component-value-from-actionevent-object) – Kukeltje Nov 08 '18 at 10:44

0 Answers0