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

[jira] Created: (TOMAHAWK-1422) does not work inside

<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.


[jira] Commented: (TOMAHAWK-1422) does not work inside

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710631#action_12710631 ] 

Matthias Weßendorf commented on TOMAHAWK-1422:
----------------------------------------------

what happens with myfaces ?

> <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.


[jira] Commented: (TOMAHAWK-1422) does not work inside

Posted by "Dave (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710966#action_12710966 ] 

Dave commented on TOMAHAWK-1422:
--------------------------------

https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=928

The mojarra bug #928 fixed the issue : Form inside dataTable.  In sense of data iteration, dataList shares the same logic as dataTable. So form should be able to be added inside dataList.  As a workaround, I will try <t:subform>.  My initial thought is to change UIForm, but the mojarra folks changed the UIData for the fix.

> <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.


[jira] Commented: (TOMAHAWK-1422) does not work inside

Posted by "Dave (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710803#action_12710803 ] 

Dave commented on TOMAHAWK-1422:
--------------------------------

I use jsf ri and tomahawk.  the problem is described in the begining. Mojarra forks fixed the same issue with form inside dataTable, but they do not know about dataList that belongs to tomahawk. Any idea about how to fix it? Thanks.

> <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.


[jira] Commented: (TOMAHAWK-1422) does not work inside

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710843#action_12710843 ] 

Leonardo Uribe commented on TOMAHAWK-1422:
------------------------------------------

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.


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

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ 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.


[jira] Commented: (TOMAHAWK-1422) does not work inside

Posted by "Dave (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710618#action_12710618 ] 

Dave commented on TOMAHAWK-1422:
--------------------------------

I tested mojarra-1.2_13-20090516-SNAPSHOT. but it did not fix the issue.
For the #928, UIData.java was changed. The DataList extends UIData and the changes to UIData should have fixed this issue too.

javax.faces.component.UIData
              javax.faces.component.html.HtmlDataTable
                  org.apache.myfaces.component.html.ext.HtmlDataTableHack
                      org.apache.myfaces.custom.datalist.AbstractHtmlDataList
                          org.apache.myfaces.custom.datalist.HtmlDataList

The Model updata phase was skipped for the 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.