You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Roberta Coe <co...@yahoo.com> on 2005/07/07 16:33:17 UTC

FIX for "Fwd: javascript errors w/ command link"

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.

		
---------------------------------
 Sell on Yahoo! Auctions  - No fees. Bid on great items.