need help

UI Components for JSF
Post Reply
fayca121
Posts: 17
Joined: 27 Jun 2010, 12:46

27 Jun 2010, 12:55

Hi, all I've a problem with commandLink inside dataList components, it doesn't work
what I've to do to fix it please?
this is my code:

Code: Select all

<p:dataList value="#{catalog.products}" var="product" type="definition">
  <h:commandLink action="#{catalog.doFindItems(product.id)}">
           <h:outputText value="#{product.name}"/>
  </h:commandLink>
   <f:facet name="description">
           <h:outputText value="#{product.description}"/>
    </f:facet>
</p:dataList>
thanks
Netbeans 6.9.1 , GlassFish 3.0.1, Mojarra 2.0.3 , primefaces 2.2 rc2

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 Jun 2010, 13:13

Hi,

For event processing, you need to add p:column.

Code: Select all

<p:dataList value="#{catalog.products}" var="product" type="definition">
   <p:column>
  <h:commandLink action="#{catalog.doFindItems(product.id)}">
           <h:outputText value="#{product.name}"/>
  </h:commandLink>
   <f:facet name="description">
           <h:outputText value="#{product.description}"/>
    </f:facet>
   </p:column>
</p:dataList>

fayca121
Posts: 17
Joined: 27 Jun 2010, 12:46

27 Jun 2010, 14:07

thank you.
Netbeans 6.9.1 , GlassFish 3.0.1, Mojarra 2.0.3 , primefaces 2.2 rc2

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 31 guests