The problem is probably that your dataTable's value is empty when you
click on the commanLink. Write out the size of your
viewCatalogController.catalogWorkflows property in its getter method
and check the log.

For example:

public Vector getCatalogWorkflows() {
  System.out.println(catalogWorkflows == null ? "NULL" :
catalogWorkflows.size());
  return catalogWorkflows;
}

On 5/24/05, Anatol Pomozov <[EMAIL PROTECTED]> wrote:
> I am a newcomer in myfaces also as in JSF and probably this question
> has RTFM answer. But i have been fighting with my problem during
> several days and can't find solution.
> 
> So I have jspx file which has <h:commandLink>. As action it has
> managed-bean method. But when I click generated link method doesn't
> invoked. What is the problem?? The same (copy-and-paste) commandLink
> on another page works as expected. I have tried wrap h:commandLink
> into h:form but result the same. No errors, no warnings. I am really
> mixed-up. Please help me.
> 
> See complete page source code below. Do you need any extra info???
> 
> 
> 
> 
> <?xml version="1.0" ?>
> 
> <jsp:root version="2.0"
>  xmlns:jsp="http://java.sun.com/JSP/Page";
>  xmlns:f="http://java.sun.com/jsf/core";
>  xmlns:h="http://java.sun.com/jsf/html";
>  xmlns:x="http://myfaces.apache.org/extensions";>
> 
>  <f:view>
> 
>    <f:loadBundle basename="com.mycompany.ssm.product.product" var="msgs"/>
>    <f:loadBundle basename="com.mycompany.ssm.common" var="common"/>
>    <f:loadBundle basename="com.mycompany.ssm.workflow" var="workflow"/>
> 
>    <h:outputLink value="showCatalogs.faces" styleClass="backLink">
>      <h:outputText value="#{common['command.back']}"/>
>    </h:outputLink>
> 
>    <fieldset>
>      <legend><h:outputText value="#{msgs['label.processes']}"/></legend>
> 
>      <h:panelGrid rendered="#{empty viewCatalogController.catalogWorkflows}">
>        <h:panelGroup styleClass="messages">
>          <h:outputText value="#{msgs['message.workflow.not.found']}"/>
>        </h:panelGroup>
>      </h:panelGrid>
> 
>      <h:dataTable id="customerDivision"
> value="#{viewCatalogController.catalogWorkflows}" var="bean"
>              rendered="#{not empty
> viewCatalogController.catalogWorkflows}" styleClass="standard"
>              cellspacing="0px" width="99%" rowClasses="odd,even">
> 
>        <h:column>
>          <f:facet name="header">
>            <h:outputText value="#{msgs['label.workflowId']}"/>
>          </f:facet>
>          <h:outputText value="#{bean.workflowId}"/>
>        </h:column>
> 
>        <h:column>
>          <f:facet name="header">
>            <h:outputText value="#{msgs['label.workflow']}"/>
>          </f:facet>
>          <h:outputText value="#{bean.workflowName}"/>
>        </h:column>
> 
>        <h:column>
>          <f:facet name="header">
>            <h:outputText value="#{msgs['label.customerId']}"/>
>          </f:facet>
>          <h:outputText value="#{bean.division.customer.customerId}"/>
>        </h:column>
> 
>        <h:column>
>          <f:facet name="header">
>            <h:outputText value="#{msgs['label.customerDivisionId']}"/>
>          </f:facet>
>          <h:outputText value="#{bean.division.customerDivisionId}"/>
>        </h:column>
> 
>        <h:column>
>          <f:facet name="header">
>            <h:outputText value="#{msgs['label.status']}"/>
>          </f:facet>
>          <h:outputText value="#{workflow[bean.workflowStatus]}"/>
>        </h:column>
> 
>        <h:column>
>          <f:facet name="header">
>            <h:outputText value="#{msgs['label.viewDetails']}"/>
>          </f:facet>
> 
>          <h:commandLink action="#{actionController.doAction}"
> value="#{msgs['label.details']}">
>            <f:param name="actionView" value="workflowHistory"/>
>            <f:param name="processId" value="#{bean.workflowId}"/>
>            <f:param name="back" value="viewCatalog"/>
>          </h:commandLink>
>        </h:column>
> 
>      </h:dataTable>
>    </fieldset>
> 
>  </f:view>
> </jsp:root>
> 
> --
> anatol
> 


-- 
 Csík Norbert          http://norbert.web.elte.hu/
 Programtervező matematikus
 Trilobita Informatikai Rt. - rendszertervező fejlesztőmérnök
___ keep sm:)ing _________________________ooo__C( O O )L__ooo__
http://www.aion.hu/ - A csik.NET otthona
http://www.spreadfirefox.com/ - Rediscover the web
Légy pontos: Mérj mikro-milliméterben! Jelölj krétával! Vágj baltával!

Reply via email to