Re: problem with h:commandLink after configuring prettyfaces

Splash Forums PrettyFaces Users problem with h:commandLink after configuring prettyfaces Re: problem with h:commandLink after configuring prettyfaces

#19890

smitha.h.rao
Participant

1. Simplae command links like:

<h:commandLink

id=”paymenturl”

action=”#{testDetailsAction.startPayment}”

rendered=”#{!testDetailsAction.test.flgPaid}”>

<h:outputText styleClass=”cat_1″ value=”Buy Test”></h:outputText>

<f:param name=”action” value=”makePayment”/>

</t:commandLink>

are not working.

2. We are using jsf 1.2, prettyfaces 1.2.6, Tomcat 6 , spring 2.5

3. for a line:

<h:commandLink id=”link2″ action=”#{testDetailsAction.startTest}”

rendered=”#{testDetailsAction.test.approvedQuestionsCount >0 && testDetailsAction.test.testType == 0}” >

<h:graphicImage value=”/imgs/start_button.jpg”></h:graphicImage>

<f:param name=”testId” value=”#{testDetailsAction.test.testId}”/>

<f:param name=”action” value=”startTest”/>

</h:commandLink>

generated html code is:

<a id="body:frmtestDetailsAction:link2" href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.forms['body:frmtestDetailsAction'],'body:frmtestDetailsAction:link2,body:frmtestDetailsAction:link2,testId,12,action,startTest','');}return false"><img src="/skillGuru/imgs/start_button.jpg" /></a>