The
getClickedRowValue snippet
in the EGL drawer of the Snippets view is a function that retrieves the hyperlinked
value of a clicked row in a data table. This snippet must be placed in an
EGL PageHandler. This snippet has the following prerequisites:
- The JSP page has a data table.
- The names of the JSP identifiers have not been changed from the default.
- The page is defined as request in scope in faces-config.xml, not session.
To insert and configure this snippet, follow these directions:
The code inserted by this snippet is as follows:
function getVal()
javaLib.store((objId)"context",
"javax.faces.context.FacesContext",
"getCurrentInstance");
javaLib.store((objId)"root",
(objId)"context", "getViewRoot");
javaLib.store((objId)"parm",
(objId)"root",
"findComponent",
"form1:table1:param1");
recVar = javaLib.invoke((objId)"parm",
"getValue");
end