[richfaces-issues] [JBoss JIRA] Commented: (RF-1338) h:selectOneMenu can not set value to el in rich:datatable

daniel zhang (JIRA) jira-events at lists.jboss.org
Tue Nov 13 21:41:28 EST 2007


    [ http://jira.jboss.com/jira/browse/RF-1338?page=comments#action_12387414 ] 
            
daniel zhang commented on RF-1338:
----------------------------------

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!


> h:selectOneMenu can not set value to el  in rich:datatable 
> -----------------------------------------------------------
>
>                 Key: RF-1338
>                 URL: http://jira.jboss.com/jira/browse/RF-1338
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>         Environment: windows seam 2.0ga
>            Reporter: daniel zhang
>         Assigned To: Anton Belevich
>             Fix For: 3.2.0
>
>
> 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!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list