2 Replies Latest reply on Oct 2, 2009 8:48 PM by Val Sw

    UI Repeat + S SelectOneRadio + s selectItems var lable does not refesh

    nils roettger Newbie

      Hello
      I have a Problem with an s:SelectItems. My Problem is, that the var or lable property does not refesh.
      Here my Code:


      <ui:repeat value="#{questionList.resultList}" var="f1">
      <s:div rendered="#{f1.id eq item3.id.frkId}">
      <h:outputText value=" #{f1.Text} " />
      <s:div rendered="#{(f1.Typ eq 0)}">
      
      <h:selectOneRadio id="sor" required="#{f1.required}"
      layout="pageDirection">
      <s:selectItems value="#{answerList.getRes(f1.id)}" 
      var="new"
      label="#{new.Text}"/>
      </h:selectOneRadio> 
      </s:div>





      The Output i get on the page looks like this



      Question 1
      lable = answer 1  Object id =@1
      lable = answer 2  Object id =@2
      lable = answer 3  Object id =@3
      
      Question 2
      lable = answer 1  Object id =@4
      lable = answer 2  Object id =@5
      lable = answer 3  Object id =@6




      But the correct lable for Object 4 to 6 are answer 4, answer 5,answer 6
      I hope you can follow me
      So I think the var or lable from s:selectItems does not refresh..


      Thx so far.


      Shulyn

        • 1. Re: UI Repeat + S SelectOneRadio + s selectItems var lable does not refesh
          nils roettger Newbie

          Hmm.. here is a Screenshot from what i get on the Website:


          My Link


          and here is the original code i used to generate this output.



          <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                             xmlns:s="http://jboss.com/products/seam/taglib"
                             xmlns:ui="http://java.sun.com/jsf/facelets"
                             xmlns:f="http://java.sun.com/jsf/core"
                              xmlns:c="http://java.sun.com/jstl/core" 
                             xmlns:h="http://java.sun.com/jsf/html"
                             xmlns:rich="http://richfaces.org/rich"
                             template="layout/templateUmfrage.xhtml">
          .
          .
          .
          
          <ui:repeat value="#{umfrageFrageList.resultList}" var="item3">
          <s:div rendered="#{(item2.idKategorie == item3.id.frkIdKategorie) and (item3.id.frkIdUmfrage == umfrageHome.instance.idUmfrage)}" 
          style="text-align:left;">
          <ui:repeat value="#{frageList.resultList}" var="frage">
          <s:div rendered="#{frage.idFrage == item3.id.frkIdFragen}">
          <h:outputText value=" #{ frage.frageText } " style="TEXT-DECORATION: underline; font-size:medium;"/>                                        
          <br/>
          <s:div rendered="#{(frage.frageTyp == 0)}">                              
          <h:selectOneRadio id="sor#{frage.idFrage}" required="#{frage.fragePflicht}" style="font-size:14px;" layout="pageDirection" immediate="true">
          <s:selectItems var="wert"  value="#{antwortList.getRes(frage.idFrage)}" label="#{wert}" />
          <h:outputText value="#{antwortList.getRes(frage.idFrage)}" />
          </h:selectOneRadio>
          </s:div>
          </ui:repeat>
          
          .
          .
          .
          




          I use :
          JBoss 4.2.2GA
          Seam 2.0.2SP1


          If you need more Informations pls let me know.


          Thx!





          • 2. Re: UI Repeat + S SelectOneRadio + s selectItems var lable does not refesh
            Val Sw Expert

            Hi Nils,


            Is your issue solved, if yes.. please let me know, I need to generate the dynamic ids for suggestionBox in ui repeat.


            Thanks