myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Weber" <weber.vol...@googlemail.com>
Subject Re: input inside datatable & submit action
Date Thu, 07 Dec 2006 10:46:17 GMT
Hi,

sounds like a validation/conversion error with skipping of
invokeApplication Phase.

add a h:messages tag to the page to exclude or view this errors.

Regards,
  Volker

2006/12/7, Pesia <maciej.pestka@wp.pl>:
>
> Hi!
> I have a problem with executing backing bean action on submit.
> I have a form with dynamic number of fields (in dataTable),
> and submit command link below table. Unfortunately action from
> command ling is not fired :( (although it is when I remove dataTable and use
> fixed inputs).
> here is my code that doestnt work:
>
>         <t:dataTable id="editTable" var="col" value="#{table.currentRecord}">
>         <t:column>
>               <h:inputText value="#{col.value}"/>
>         </t:column>
>         </t:dataTable>
>         <h:inputText value="#{table.sortColumn}"/>
>         <h:commandButton id="table_update" action="#{table.update}"
> value="Update table row"/>
>
> action action="#{table.update}" is not fired here.
> But if I just use:
>
>     <h:inputText value="#{table.sortColumn}"/>
>     <h:commandButton id="table_update" action="#{table.update}"
> value="Update table row"/>
>
> then it works!
>
> table is a session bean with method "update" and currentRecord is a list of
> column values.
> Could sombody tell me what am I doing wrong here?
>
> Thanks in advance!
>
> --
> View this message in context: http://www.nabble.com/input-inside-datatable---submit-action-tf2773289.html#a7735931
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message