My selectOneRadio does not work on jsf and primefaces, please help!

0

I hope and you can help me what happens is that I'm having a problem when I want to set the values in a selectOneRadio, what I want more than anything is that when you give a button to edit this same load what the user inserted, but I already programmed "what is necessary" and in the console if it is thrown well, but in the view it is where it does not change, I am using JSF and primefaces, I append the code:

View (JSF)

 <p:selectOneRadio id="selectPosicionGeo" value="#{notificationsBean.positionInGeo}" layout="grid" columns="1" >
                                                        <f:selectItem itemLabel="Dentro de geocerca" itemValue="1" />
                                                        <f:selectItem itemLabel="Fuera de geocerca" itemValue="2" />
                                                        <p:ajax event="change" listener="#{notificationsBean.positionUnit()}" />
                                                    </p:selectOneRadio>

JavaBean

 if (notificacion != null) {
        if (notificacion.getPosicionInOut() != null) {
            if (notificacion.getPosicionInOut().equals("IN")) {
                this.positionInGeo = "1";
            } else if (notificacion.getPosicionInOut().equals("OUT")) {
                this.positionInGeo = "2";

            }

        }
    }

I do not know exactly what I'm doing wrong, or because in my view it does not change, finally I put the screen:

in the positionInGeo object is where you have to set the values that the user previously added, the problem is in the Position section of the unit, I hope and you can help me by providing some solution, please be careful, greetings.

    
asked by cratus666jose 18.10.2018 в 18:09
source

0 answers