I have a DataModel Table with Command Links to Navigate to another Page On Clicking.
But the Navigation is not Occurring in DataModel Table, as when i click on the link it is selecting the whole Row as it is a DataModel.
What should i do in-order to make it work as a Command Link.
My Piece of Code:
<p:dataTable id="studentDtTble" var="studmodel" value="#{studentController.dataModelList}">
<p:columnGroup type="header">
<p:row>
<p:column headerText="StudentId"></p:column>
<p:column headerText="StudentName"></p:column>
<p:column headerText="Add" ></p:column>
</p:row>
</p:columnGroup>
<p:column>
<p:commandLink id="ajax" update="">
<h:outputText value="#{studmodel.studentId}" styleClass="txtlink" />
</p:commandLink>
</p:column>
<p:column>
<h:outputText value="#{studmodel.studentName}" />
</p:column>
<p:column >
<p:selectBooleanCheckbox value="#{studmodel.add}" />
</p:column>
</p:dataTable>
When i Click on the StudentId Link then it Should navigate to Student Information.jsf Page. Which is not Happening.
For that to happen i Wrote a Method in Controller
studentInfo(studentID){
..Navigate to the Student Info Page ..
}
But i am unable to Call the Method with that studentId because it is selecting as a row . Any Suggestions