nothing happened when click commandLink

Hi All,

I am developing my first jsf

my env is the sun application server 9 beta bundle

here is the code

cde.jsp

...

<f:view>

<h:form>

<h:dataTable id="books"

columnClasses="list-column-center, list-column-right, list-column-center, list-column-right"

headerClass="list-header"

rowClasses="list-row" styleClass="list-background"

value="#{CDEBean.children}"

var="child">

<h:column>

<f:facet name="header">

<h:outputText value="Name"/>

</f:facet>

<h:commandLink action="cde" actionListener="#{CDEBean.selectCde}">

<h:outputText value="#{child.name}"/>

<f:param id="NextCdeId" name="xxx" value="#{child.id}"/>

</h:commandLink>

</h:column>

...

here is the bean

...

public void selectCde(ActionEvent event) {

UIParameter component = (UIParameter) event.getComponent().findComponent("NextCdeId");

currentCdeId = component.getValue().toString();

System.out.println("0000000 bean set next cde"+currentCdeId);

}

...

here is the config

<managed-bean>

<description>

CDE

</description>

<managed-bean-name>CDEBean</managed-bean-name>

<managed-bean-class>cde.CDEBean</managed-bean-class>

<managed-bean-scope>session</managed-bean-scope>

</managed-bean>

<navigation-rule>

<from-view-id>/cde.jsp</from-view-id>

<navigation-case>

<description>

XXX

</description>

<from-outcome>cde</from-outcome>

<to-view-id>/cde.jsp</to-view-id>

</navigation-case>

</navigation-rule>

...

here is source from IE

...

<form id="_id_id16" name="_id_id16" method="post" action="/cde/cde.faces" enctype="application/x-www-form-urlencoded">

<table id="_id_id16:books" class="list-background">

<thead>

<tr>

<th class="list-header" scope="col">Name</th>

<th class="list-header" scope="col">Type</th>

</tr>

</thead>

<tbody>

<tr class="list-row">

<td class="list-column-center"><a href="#" onclick="clearFormHiddenParams__id_id16('_id_id16');document.forms['_id_id16']['_id_id16:_idcl'].value='_id_id16:books:0:0:_id_id27';document.forms['_id_id16']['xxx'].value='CDE1'; document.forms['_id_id16'].submit(); return false;">

pneumonia

</a><input type="hidden" name="_id_id16:_idcl" /><input type="hidden" name="xxx" /><script type="text/javascript" language="Javascript"><!--

function clearFormHiddenParams__id_id16(curFormName) {

var curForm = document.forms[curFormName];

curForm.elements['_id_id16:_idcl'].value = null;

curForm.elements['xxx'].value = null;

}

....

nothing happens when i click on the commandLink. what would be wrong?

thanks a lot

Long

[3218 byte] By [Pricelessa] at [2007-10-2 17:11:32]
# 1
If your pages don't have <h:messages/>, put it into all your pages before asking any questions.
yuki.yoshidaa at 2007-7-13 18:26:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...