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

Reply via email to