a4j:commandButton not working

View: New views
2 Messages — Rating Filter:   Alert me  

a4j:commandButton not working

by ved :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Experts,
Im having a simple page ,where in am displaying a datatable and each row have an option of viewing details.

Here's my jsp code of data table

<h:dataTable id="dataTableRequirementId" value="#{siteRequirementBean.siteProfileList}" var="groupProfile"
styleClass="webwidth rec-tab-brd" headerClass="rec-hdr-bg rec-brd-l" border="0" cellspacing="0" cellpadding="0"
        rowClasses="rec-r1,rec-r2">
        <h:column>
                <f:facet name="header">
                        <h:outputText value="#{bundle.profileName}" />
                </f:facet>
                <h:outputText value="#{groupProfile.groupName}" />
        </h:column>
        <h:column>
                <f:facet name="header">
                        <h:outputText value="#{bundle.createdBy}" />
                </f:facet>
                <h:outputText value="#{groupProfile.createdBy.userName}" />
        </h:column>
        <h:column>
                <a4j:commandButton value="#{bundle.attach}" actionListener="#{profileBean.loadSelectedProfile}" styleClass="frm-btn" reRender="detailProfileId"/>
        </h:column>
</h:dataTable>



This datable is enclosed in a <h:form>.
My problem is that when i click on this a4j:commandButton then no action occurs. i.e my backing bean method is not invoked, but if i put h:commandButton instead, eveything works fine.

Can any one please tell me as to where am going wrong,
If needed i can post the respective files.

Waiting for for expert advice.

Thanks.
Ved

Re: a4j:commandButton not working

by Rogerio Pereira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you configured a4j properly in web.xml? Please post new messages in a4j and richfaces forums at jboss.org site. 

2008/1/20, ved <ved.gunjan@...>:

Hi Experts,
Im having a simple page ,where in am displaying a datatable and each row
have an option of viewing details.

Here's my jsp code of data table

<h:dataTable id="dataTableRequirementId"
value="#{siteRequirementBean.siteProfileList}" var="groupProfile"
styleClass="webwidth rec-tab-brd" headerClass="rec-hdr-bg rec-brd-l"
border="0" cellspacing="0" cellpadding="0"
       rowClasses="rec-r1,rec-r2">
       <h:column>
               <f:facet name="header">
                       <h:outputText value="#{ bundle.profileName}" />
               </f:facet>
               <h:outputText value="#{groupProfile.groupName}" />
       </h:column>
       <h:column>
               <f:facet name="header">
                       <h:outputText value="#{bundle.createdBy}" />
               </f:facet>
               <h:outputText value="#{groupProfile.createdBy.userName}" />
       </h:column>
       <h:column>
               <a4j:commandButton value="#{bundle.attach}"
actionListener="#{profileBean.loadSelectedProfile}" styleClass="frm-btn"
reRender="detailProfileId"/>
       </h:column>
</h:dataTable>



This datable is enclosed in a <h:form>.
My problem is that when i click on this a4j:commandButton then no action
occurs. i.e my backing bean method is not invoked, but if i put
h:commandButton instead, eveything works fine.

Can any one please tell me as to where am going wrong,
If needed i can post the respective files.

Waiting for for expert advice.

Thanks.
Ved
--
View this message in context: http://www.nabble.com/a4j%3AcommandButton-not-working-tp14982141p14982141.html
Sent from the Ajax4jsf users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...




--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

"Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento, distribua e aprenda mais." ( http://faces.eti.br/?p=45)
LightInTheBox - Buy quality products at wholesale price!