You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2009/05/19 21:51:46 UTC

[jira] Issue Comment Edited: (TOMAHAWK-1422) does not work inside

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710843#action_12710843 ] 

Leonardo Uribe edited comment on TOMAHAWK-1422 at 5/19/09 12:51 PM:
--------------------------------------------------------------------

I don't think this is a bug. Child components inside from component extending UIData has shared all properties but value related between all its rows.

Maybe a combination of h:form and t:subForm could do it. Enclose the datalist inside a h:form and each row with a t:subform

  <h:form>
<h:dataList value="#{bean.beanList}" var="bean">

  <t:subform>
      ....
  </t:subform>

</h:dataList> 
  </h:form>

      was (Author: lu4242):
    I don't think this is a bug. Components extending from UIData has shared all properties but value related between all its rows.

Maybe a combination of h:form and t:subForm could do it. Enclose the datalist inside a h:form and each row with a t:subform

  <h:form>
<h:dataList value="#{bean.beanList}" var="bean">

  <t:subform>
      ....
  </t:subform>

</h:dataList> 
  </h:form>
  
> <h:form> does not work inside <t:dataList>
> ------------------------------------------
>
>                 Key: TOMAHAWK-1422
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1422
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Data List
>    Affects Versions: 1.1.8
>         Environment: Jsf Ri 1.2.12 and Tomahark12 1.1.8, JBoss 5.0.1GA, window XP, IE7.
>            Reporter: Dave
>
> <h:form> does not work inside <t:dataList>
> <h:dataList value="#{bean.beanList}" var="bean">
>   <h:form>
>       ....
>   </h:form>
> </h:dataList>
> For more than one form in the data list, the UIForm's submitted value is 
> overriden by the last one. For example, if I click a button in the first form, 
> in processDecode(...), the submitted value is set to true by the first form, 
> then is set to false by the 2nd form. As a result, there will be no Model 
> update to the UIForm component.
> https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1120
> I am using Jsf Ri 1.2.12 and Tomahark1.2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.