[Opensource] Expresso Tags
Peter A. J. Pilgrim
peterp at xenonsoft.demon.co.uk
Wed Dec 4 07:35:06 PST 2002
will wrote:
> Hello,
>
> Could some please tell me how to access the Input Objects in this data
> structure using Expresso extended Struts tags?
>
> ~~~~~~~~~~~~~~~~~~ Data ~~~~~~~~~~~~~~~~~~~~~~~
> Block/outerBlock
> |- Output/orgCategoryCount
> | |- Attributes
> | |- catCount
> | |- orgMaxCat
> |- Block/nestedBlock
> | |- Input/categoryName
> | |- Input/categoryDescription
> | |- Transition/update
> | |- Transition/delete
>
> ~~~~~~~~~~~~~~~~~~ Jsp ~~~~~~~~~~~~~~~~~~~~~~~~
> <TABLE class="mt-table" border="0" align="center">
> <logic:iterate id="outerBlock" property="Blocks">
> <TR class="mt-headingrow">
> <TD COLSPAN=2 class="mt-heading">Newsletter Categories</TD>
> <TD class="mt-heading">
> <!-- I am able to access the Output Object in the outerBlock using this -->
> <bean:write name="outerBlock"
> property="orgCategoryCount/. at catCount"/> of <bean:write name="outerBlock"
> property="orgCategoryCount/. at orgMaxCat"/> used
> </TD>
> </TR>
> <!-- I am able to iterate through the nestedBlocks using this -->
> <logic:iterate id="nestedblock" name="outerBlock" property="Blocks">
> <form action="<%=contextPath%>/Categories.do" method=POST>
> <tr>
> <td valign=top>
> <!-- This line fails because categoryName is not a property of the Block
> objects -->
> <html:text name="nestedblock" property="categoryName"/>
> </td>
> <td valign=top>
> <html:text name="nestedblock" property="categoryDescription"/>
> </td>
> <td valign=top nowrap>
> </td>
> </tr>
> </form>
> </logic:iterate>
> </logic:iterate>
> </table>
>
> ~~~~~~~~~~~~~~~~~~ End ~~~~~~~~~~~~~~~~~~~~~~~~
>
> Any help would be greatly appreciated.
Hi All
If you look at the Expresso CVS, I have already checked in a
modification to the following classes
com.jcorporate.expresso.ext.taglib.ElementCollection.java
setting tag attribute `type="nested"' iterates
through all generic controller elements.
effectively calling the method
`public Vector ControllerElement#getNested()'
com.jcorporate.expresso.ext.struts.taglib.logic.ExIterateTag
setting tag attribute `property="nested"' iterates
through all generic controller elements.
effectively calling the method
`public Vector ControllerElement#getNested()'
This is a long standing bugfix.
--
Peter Pilgrim
ServerSide Java Specialist
My on-line resume and for interview videos about myself, J2EE
Open Source, Struts and Expresso.
||
\\===> `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
More information about the Opensource
mailing list