You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "sherry (JIRA)" <ji...@apache.org> on 2007/06/13 03:44:27 UTC

[jira] Created: (WW-1988) Embedded problem

Embedded <s:iterator/> problem
------------------------------

                 Key: WW-1988
                 URL: https://issues.apache.org/struts/browse/WW-1988
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.6
         Environment: Apache Tomcat 5.5, Java 1.6, Windows XP 
            Reporter: sherry


First, you can look through next jsp codes: 

<s:iterator status="stat" value="destObjects"> 
<tr> 
   <s:iterator value="visibleColumns"> 
     <td> 
       <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
     </td> 
   </s:iterator> 
</tr> 
</s:iterator> 

Variable "destObejcts" is a <LIST> type which contains a serial of objects named "destObject". 

Variable "visibleColumns" is also a LIST of objects named "visibleColumn", and "fieldDefName" is a property of "visibleColumn". 

And thus value of expression "visibleColumn.fieldDefName" will be a property name of object "destObject". 

Above relationship between two objects sounds a bit boring. As a trouble, I failed to get the correct values of these dynamic fields of "destObejct", and I had tried in many ways, and next Struts2 expressions ALL could not work: 

<s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
<s:property value="%{destObjects[#stat.index].%{fieldDefName}}" /> 
<s:property value="%{fieldDefName}" /> 
OR
<s:iterator value="destObjects" id="do">
  <s:iterator value="visibleColumns" id="vc">
    <s:property value="#do.%{vc.fieldDefName}"/>
  </s:iterator>
</s:iterator>


However, if I specify a real fieldname out of the second iterator tag, it does work:
<s:property value="destObjects[%{#stat.index}].field1" /> 



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


[jira] Updated: (WW-1988) Embedded problem

Posted by "Davey Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davey Xu updated WW-1988:
-------------------------

    Assignee: Davey Xu

> Embedded <s:iterator/> problem
> ------------------------------
>
>                 Key: WW-1988
>                 URL: https://issues.apache.org/struts/browse/WW-1988
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Apache Tomcat 5.5, Java 1.6, Windows XP 
>            Reporter: Davey Xu
>            Assignee: Davey Xu
>
> First, you can look through next jsp codes: 
> <s:iterator status="stat" value="destObjects"> 
> <tr> 
>    <s:iterator value="visibleColumns"> 
>      <td> 
>        <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
>      </td> 
>    </s:iterator> 
> </tr> 
> </s:iterator> 
> Variable "destObejcts" is a <LIST> type which contains a serial of objects named "destObject". 
> Variable "visibleColumns" is also a LIST of objects named "visibleColumn", and "fieldDefName" is a property of "visibleColumn". 
> And thus value of expression "visibleColumn.fieldDefName" will be a property name of object "destObject". 
> Above relationship between two objects sounds a bit boring. As a trouble, I failed to get the correct values of these dynamic fields of "destObejct", and I had tried in many ways, and next Struts2 expressions ALL could not work: 
> <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
> <s:property value="%{destObjects[#stat.index].%{fieldDefName}}" /> 
> <s:property value="%{fieldDefName}" /> 
> OR
> <s:iterator value="destObjects" id="do">
>   <s:iterator value="visibleColumns" id="vc">
>     <s:property value="#do.%{vc.fieldDefName}"/>
>   </s:iterator>
> </s:iterator>
> However, if I specify a real fieldname out of the second iterator tag, it does work:
> <s:property value="destObjects[%{#stat.index}].field1" /> 

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


[jira] Work started: (WW-1988) Embedded problem

Posted by "Davey Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on WW-1988 started by Davey Xu.

> Embedded <s:iterator/> problem
> ------------------------------
>
>                 Key: WW-1988
>                 URL: https://issues.apache.org/struts/browse/WW-1988
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Apache Tomcat 5.5, Java 1.6, Windows XP 
>            Reporter: Davey Xu
>            Assignee: Davey Xu
>
> First, you can look through next jsp codes: 
> <s:iterator status="stat" value="destObjects"> 
> <tr> 
>    <s:iterator value="visibleColumns"> 
>      <td> 
>        <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
>      </td> 
>    </s:iterator> 
> </tr> 
> </s:iterator> 
> Variable "destObejcts" is a <LIST> type which contains a serial of objects named "destObject". 
> Variable "visibleColumns" is also a LIST of objects named "visibleColumn", and "fieldDefName" is a property of "visibleColumn". 
> And thus value of expression "visibleColumn.fieldDefName" will be a property name of object "destObject". 
> Above relationship between two objects sounds a bit boring. As a trouble, I failed to get the correct values of these dynamic fields of "destObejct", and I had tried in many ways, and next Struts2 expressions ALL could not work: 
> <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
> <s:property value="%{destObjects[#stat.index].%{fieldDefName}}" /> 
> <s:property value="%{fieldDefName}" /> 
> OR
> <s:iterator value="destObjects" id="do">
>   <s:iterator value="visibleColumns" id="vc">
>     <s:property value="#do.%{vc.fieldDefName}"/>
>   </s:iterator>
> </s:iterator>
> However, if I specify a real fieldname out of the second iterator tag, it does work:
> <s:property value="destObjects[%{#stat.index}].field1" /> 

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


[jira] Closed: (WW-1988) Embedded problem

Posted by "Rainer Hermanns (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rainer Hermanns closed WW-1988.
-------------------------------

    Resolution: Not A Problem

Closed as requested

> Embedded <s:iterator/> problem
> ------------------------------
>
>                 Key: WW-1988
>                 URL: https://issues.apache.org/struts/browse/WW-1988
>             Project: Struts 2
>          Issue Type: Temp
>    Affects Versions: 2.0.6
>         Environment: Apache Tomcat 5.5, Java 1.6, Windows XP 
>            Reporter: Davey Xu
>            Assignee: Davey Xu
>            Priority: Trivial
>
> First, you can look through next jsp codes: 
> <s:iterator status="stat" value="destObjects"> 
> <tr> 
>    <s:iterator value="visibleColumns"> 
>      <td> 
>        <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
>      </td> 
>    </s:iterator> 
> </tr> 
> </s:iterator> 
> Variable "destObejcts" is a <LIST> type which contains a serial of objects named "destObject". 
> Variable "visibleColumns" is also a LIST of objects named "visibleColumn", and "fieldDefName" is a property of "visibleColumn". 
> And thus value of expression "visibleColumn.fieldDefName" will be a property name of object "destObject". 
> Above relationship between two objects sounds a bit boring. As a trouble, I failed to get the correct values of these dynamic fields of "destObejct", and I had tried in many ways, and next Struts2 expressions ALL could not work: 
> <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
> <s:property value="%{destObjects[#stat.index].%{fieldDefName}}" /> 
> <s:property value="%{fieldDefName}" /> 
> OR
> <s:iterator value="destObjects" id="do">
>   <s:iterator value="visibleColumns" id="vc">
>     <s:property value="#do.%{vc.fieldDefName}"/>
>   </s:iterator>
> </s:iterator>
> However, if I specify a real fieldname out of the second iterator tag, it does work:
> <s:property value="destObjects[%{#stat.index}].field1" /> 

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


[jira] Updated: (WW-1988) Embedded problem

Posted by "Davey Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davey Xu updated WW-1988:
-------------------------

    Issue Type: Temp  (was: Bug)

<s:iterator id="do" value="destObjects"> 
<tr> 
    <s:iterator value="visibleColumns"> 
      <td> 
        <s:property value="%{#do[fieldDefName]}"/> 
      </td> 
    </s:iterator> 
  </tr> 
</s:iterator> 

This will does!

Close it.

> Embedded <s:iterator/> problem
> ------------------------------
>
>                 Key: WW-1988
>                 URL: https://issues.apache.org/struts/browse/WW-1988
>             Project: Struts 2
>          Issue Type: Temp
>    Affects Versions: 2.0.6
>         Environment: Apache Tomcat 5.5, Java 1.6, Windows XP 
>            Reporter: Davey Xu
>            Assignee: Davey Xu
>
> First, you can look through next jsp codes: 
> <s:iterator status="stat" value="destObjects"> 
> <tr> 
>    <s:iterator value="visibleColumns"> 
>      <td> 
>        <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
>      </td> 
>    </s:iterator> 
> </tr> 
> </s:iterator> 
> Variable "destObejcts" is a <LIST> type which contains a serial of objects named "destObject". 
> Variable "visibleColumns" is also a LIST of objects named "visibleColumn", and "fieldDefName" is a property of "visibleColumn". 
> And thus value of expression "visibleColumn.fieldDefName" will be a property name of object "destObject". 
> Above relationship between two objects sounds a bit boring. As a trouble, I failed to get the correct values of these dynamic fields of "destObejct", and I had tried in many ways, and next Struts2 expressions ALL could not work: 
> <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
> <s:property value="%{destObjects[#stat.index].%{fieldDefName}}" /> 
> <s:property value="%{fieldDefName}" /> 
> OR
> <s:iterator value="destObjects" id="do">
>   <s:iterator value="visibleColumns" id="vc">
>     <s:property value="#do.%{vc.fieldDefName}"/>
>   </s:iterator>
> </s:iterator>
> However, if I specify a real fieldname out of the second iterator tag, it does work:
> <s:property value="destObjects[%{#stat.index}].field1" /> 

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


[jira] Work stopped: (WW-1988) Embedded problem

Posted by "Davey Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on WW-1988 stopped by Davey Xu.

> Embedded <s:iterator/> problem
> ------------------------------
>
>                 Key: WW-1988
>                 URL: https://issues.apache.org/struts/browse/WW-1988
>             Project: Struts 2
>          Issue Type: Temp
>    Affects Versions: 2.0.6
>         Environment: Apache Tomcat 5.5, Java 1.6, Windows XP 
>            Reporter: Davey Xu
>            Assignee: Davey Xu
>            Priority: Trivial
>
> First, you can look through next jsp codes: 
> <s:iterator status="stat" value="destObjects"> 
> <tr> 
>    <s:iterator value="visibleColumns"> 
>      <td> 
>        <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
>      </td> 
>    </s:iterator> 
> </tr> 
> </s:iterator> 
> Variable "destObejcts" is a <LIST> type which contains a serial of objects named "destObject". 
> Variable "visibleColumns" is also a LIST of objects named "visibleColumn", and "fieldDefName" is a property of "visibleColumn". 
> And thus value of expression "visibleColumn.fieldDefName" will be a property name of object "destObject". 
> Above relationship between two objects sounds a bit boring. As a trouble, I failed to get the correct values of these dynamic fields of "destObejct", and I had tried in many ways, and next Struts2 expressions ALL could not work: 
> <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
> <s:property value="%{destObjects[#stat.index].%{fieldDefName}}" /> 
> <s:property value="%{fieldDefName}" /> 
> OR
> <s:iterator value="destObjects" id="do">
>   <s:iterator value="visibleColumns" id="vc">
>     <s:property value="#do.%{vc.fieldDefName}"/>
>   </s:iterator>
> </s:iterator>
> However, if I specify a real fieldname out of the second iterator tag, it does work:
> <s:property value="destObjects[%{#stat.index}].field1" /> 

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


[jira] Updated: (WW-1988) Embedded problem

Posted by "Davey Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davey Xu updated WW-1988:
-------------------------

    Priority: Trivial  (was: Major)

> Embedded <s:iterator/> problem
> ------------------------------
>
>                 Key: WW-1988
>                 URL: https://issues.apache.org/struts/browse/WW-1988
>             Project: Struts 2
>          Issue Type: Temp
>    Affects Versions: 2.0.6
>         Environment: Apache Tomcat 5.5, Java 1.6, Windows XP 
>            Reporter: Davey Xu
>            Assignee: Davey Xu
>            Priority: Trivial
>
> First, you can look through next jsp codes: 
> <s:iterator status="stat" value="destObjects"> 
> <tr> 
>    <s:iterator value="visibleColumns"> 
>      <td> 
>        <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
>      </td> 
>    </s:iterator> 
> </tr> 
> </s:iterator> 
> Variable "destObejcts" is a <LIST> type which contains a serial of objects named "destObject". 
> Variable "visibleColumns" is also a LIST of objects named "visibleColumn", and "fieldDefName" is a property of "visibleColumn". 
> And thus value of expression "visibleColumn.fieldDefName" will be a property name of object "destObject". 
> Above relationship between two objects sounds a bit boring. As a trouble, I failed to get the correct values of these dynamic fields of "destObejct", and I had tried in many ways, and next Struts2 expressions ALL could not work: 
> <s:property value="destObjects[%{#stat.index}].%{fieldDefName}" /> 
> <s:property value="%{destObjects[#stat.index].%{fieldDefName}}" /> 
> <s:property value="%{fieldDefName}" /> 
> OR
> <s:iterator value="destObjects" id="do">
>   <s:iterator value="visibleColumns" id="vc">
>     <s:property value="#do.%{vc.fieldDefName}"/>
>   </s:iterator>
> </s:iterator>
> However, if I specify a real fieldname out of the second iterator tag, it does work:
> <s:property value="destObjects[%{#stat.index}].field1" /> 

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