Hi!
I got into troubles while using lists in a jsp page.
I have a list of possible pages to load: psLabels groups together all pages
names (page1, page2 etc).
Then I would like to display all this labels and add an action link on them
in order to load the page. Thus I need an action (the link to the page for
example "page1Load" that retrieves which jsp page to load in a XML file) and
I need an actionListener that prepares the page (with an action event).
How could I get the action and actionListener according to the label (I
coded a method that returns the action (String getAction(String label)) and
a method that returns the actionListener (String getActionListener(String
label, ActionEvent event))
But I think I am getting into troubles while calling them or maybe because
of the parameter stored in f:param. Please would you mind telling me what
should I do? Thanks for your help!
Sophie
<a:richList id="ps-list" viewMode="details" pageSize="10"
styleClass="recordSet" headerStyleClass="recordSetHeader"
rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt" width="100%"
value="#{EF_BrowseBean.psLabels}" var="p" initialSortDescending="true">
<a:column>
<h:commandButton id="submit" action="#{EF_BrowseBean.getAction}"
actionListener="#{"{EF_BrowseBean.getActionListener}"}"
value="#{p}" >
<f:param name="label" value="#{p}" />
</h:commandButton>
....