Hi All,
I have a JSP page which contains a drop down box and a link.Depending on the selection of the dropdown box option and click on the link, my Java behaviour obtains a property named "projectSummary".There are many project summaries and as a result the type of the property is
"private ProjectSummary[ ] ptSummary;".
The "projectSummary" has 2 values projectSummary.getID and projectSummary.getDescription.
Also on the click of the link, i have set the nextcomponent to be displayed as a page (say page B )which will display the list of ID's and their corresponding descriptions.
This is where i am unable to find a break through.
Consider this below given code. I had carried out the same functionality in another CMS using JSF earlier.
<h:dataTable id="dt2" value="#{MyBehaviourClass.ptSummary1}" var="item1" bgcolor="#F1F1F1" border="10" cellpadding="5" cellspacing="3" first="0" rows="100" width="50%" dir="LTR" frame="hsides" rules="all" summary="This is a JSF code to create dataTable." >
<f:facet name="header">
<h:outputText value="Project Details - In Evaluation" />
</f:facet>
<h:column>
<f:facet name="header">
<h:outputText value="Project ID" />
</f:facet>
<a:actionLink id="tableNavigate2" value="#{item1.ID}" action="dialog:freewayTableNavigate" actionListener = "#{MyBehaviourClass.linkDescription}" showLink="true" >
<f:param name="paramid" value="#{item1.ID}" />
<f:param name="paramdesc" value="#{item1.description}" />
</a:actionLink>
</h:column>
</h:dataTable>
Here in the h:dataTable i am accessing the property from the class, providing it a variable "item1" and further displaying the ID's (as a link) and Description's on the next page (page B).
My question is ,how can i use dmf tags similarly to achieve my aim of displaying the Behaviour class created values on to my JSP by passing them as parameters?
Hoping for your valued support.
Thanks and Regards
Vishnu