Im using the display tag to perform pagination , and have been successfully able to implement it , however im not being able to figure out how to call a method by passing a parameter using a hyper link.
My earlier implementation was
I modified it to
However , when I now run the app , the objid is NOT being passed, and neither is the required function being called , why so ?
Thanks for replying ,Robin.
When I use only href (the first implementation). I see that upon clicking the link I get a popup that contains the value of the parameter 'objid' in this case and then a corresponding method is called from the supporting class which uses the value of 'objid' as a parameter .However this is not happening in the second case .. Hope I'm being clear.
Um , okay .Please pardon my ignorance . Im a newbie to programming and this is my first with display tag. Earlier with the href i was intending to assign a link that whose onclick a hidden value in my form is set .I use this value that i recover using a servlet for further processing. Is this not possible using display tag??.
Thank you for taking the time out to reply.
the displayColumn 'href' attribute should do the usual stuff what an anchor tag 'href' attribute can do.. so try using the anchor tag first and then try the displayColumn and in both the case see the html source.
Robin John wrote:the displayColumn 'href' attribute should do the usual stuff what an anchor tag 'href' attribute can do.. so try using the anchor tag first and then try the displayColumn and in both the case see the html source.
Are you suggesting something like this?
EDIT :tried this and doesnt work , onclick is not recognized as a valid attribute for display:column . Any hinters on how I could implement it to suit my needs?