To anybody that might find this helpful:
I was able to fix my problem w/ using commandLinks inside a dataTable by initializing the bean property that the dataTable uses in the faces-config.xml
My JSP:
<
h:dataTable id="issuesTable" value="#{topicList.issueList}" var="issue" > <h:column> <h:commandLink id="issueLink" value="#{issue.issueDesc}" action="">"#{billList.displayBills}"/> </h:column> </h:dataTable>My initial faces-config.xml entry:
<managed-bean>
<managed-bean-name>topicList</managed-bean-name> <managed-bean-class>us.oh.state.lis.onlineBulletin.beans.TopicListBean</managed-bean-class> <managed-bean-scope>request</managed-bean-scope></managed-bean>
I changed faces-config.xml to look like this:
<managed-bean>
<managed-bean-name>topicList</managed-bean-name> <managed-bean-class>us.oh.state.lis.onlineBulletin.beans.TopicListBean</managed-bean-class> <managed-bean-scope>request</managed-bean-scope> <managed-property> <property-name>issueList</property-name> <list-entries> <null-value/> <value-class>us.oh.state.lis.onlinebulletin.model.Issue</value-class> </list-entries> </managed-property> </managed-bean>It's working now! My action is being called.
Note: forwarded message attached.
Note: forwarded message attached.
Sell on Yahoo! Auctions - No fees. Bid on great items.
--- Begin Message ---I'm trying to use the x:commandLink tag, but I get a _javascript_ error when I click on it. I have a similar h:commandLink that works fine.The links in my jsp look like:<
h:commandLink value="TestLink" action="">"showBillList"></h:commandLink> <x:commandLink value="TestMyFacesLink" action="">"showBillList"/>
The generated html is :
<a href="" >TestLink</a
<a href="" id="mainForm:content:_id45">TestMyFacesLink</a>
The _javascript_ function "clear_mainForm()" and the hidden element "mainForm:_link_hidden_" are not generated. Where are these supposed to originate from? I have these links inside an h:form and an f:subview tag.
Any help would be greatly appreciated!
Thanks!
Sell on Yahoo! Auctions - No fees. Bid on great items.
--- End Message ---

