RichFaces
  1. RichFaces
  2. RF-1338

h:selectOneMenu can not set value to el in rich:datatable

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Cannot Reproduce Bug
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Environment:
      windows seam 2.0ga
    • Similar Issues:
      Show 10 results 

      Description

      just see the code below:
      <h:form>
      <rich:dataTable value="#

      {ejbmList}

      " var="ejbm" >
      <rich:column>
      <f:facet name="header" >department</f:facet>
      #

      {ejbm.yjbmmc}

      <f:facet name="footer">
      <h:selectOneMenu value="#

      {tmpEjbm.yjbh}

      ">
      <f:selectItem itemValue="" itemLabel="sel" />
      <f:selectItems value="#

      {selBm.selItems}

      " />
      </h:selectOneMenu>
      </f:facet>
      </rich:column>
      <h:column>
      <f:facet name="header">edit</f:facet>
      <h:commandLink value="edit" action="#

      {ejbmBo.editEjbm(ejbm.bmbh)}

      "/>
      <f:facet name="footer" >
      <h:commandButton action="#

      {ejbmBo.confirm(ejbm.bmbh)}

      " value="add item"/>
      </f:facet>
      </h:column>
      </rich:datatable>
      </h:form>

      in ejbmBo.confirm(ejbm.bmbh) I get a null value;

      but I use <h:datatable> it just works well!

        Activity

        Hide
        Nick Belaevski
        added a comment -

        How are #

        {tmpEjbm.yjbh}

        & #

        {ejbm.bmbh}

        connected?

        Show
        Nick Belaevski
        added a comment - How are # {tmpEjbm.yjbh} & # {ejbm.bmbh} connected?
        Hide
        daniel zhang
        added a comment -

        the idea is that:
        user rich:datatable to display the data of a database table,
        and in each column footer facet insert the input component to realize the input operation!

        the ejbm is a datamodel in a seam stateless session bean with page scope!

        thn tmpEjbm is a object of an entity class with @in @out annotation!

        and in sesstion bean persist the tmpEjbm to database;

        I use the <h:inputText> ,it work okey!

        but is user <h:selectOneMenu> the tmpEjbm get a null field!

        and I replace <rich:datatable> with <h:datatable> it works too!

        I guess that the error run at the restore phase!

        Show
        daniel zhang
        added a comment - the idea is that: user rich:datatable to display the data of a database table, and in each column footer facet insert the input component to realize the input operation! the ejbm is a datamodel in a seam stateless session bean with page scope! thn tmpEjbm is a object of an entity class with @in @out annotation! and in sesstion bean persist the tmpEjbm to database; I use the <h:inputText> ,it work okey! but is user <h:selectOneMenu> the tmpEjbm get a null field! and I replace <rich:datatable> with <h:datatable> it works too! I guess that the error run at the restore phase!
        Hide
        Anton Belevich
        added a comment -

        Hi daniel

        Could you send me simple war there this bug is reproduced? abelevich@exadel.com

        Show
        Anton Belevich
        added a comment - Hi daniel Could you send me simple war there this bug is reproduced? abelevich@exadel.com

          People

          • Assignee:
            Viktor Volkov
            Reporter:
            daniel zhang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: