× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



<snip from Joe Pluta>
But more importantly, the editor is EGL aware, and it typically allows you to directly bind a JSF tag to an EGL variable, so my guess is that you could not only add the tag, but also bind it to an EGL variable fairly easily.
However, I haven't tried it and I risk passing on an untruth until I do. But you can see binding in the "#{qdashboard.userrecselectUI}" clause above.
</snip>

<snip from Tim>
The table can contain hundreds of entries. When the user clicks on a selected row in the table, the EGL processes the selection then redisplays the table again. The problem I am having is that the datatable displays from the beginning. I would like it to display staring from the record they clicked.
</snip>

Again, I don't know what JSF and EGL are doing under the covers, but see if you can get it to do something like the following:

<html>
<body>
<form>
<input type="hidden" name="userrecselectUI" value="0">
<div style="height:250; width:100%; overflow:scroll">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr row_number="1" onClick="rowSelect(this)">
<td>row 1</td>
</tr>
</table>
</div>
</form>
</body>
<script language="javascript">
function rowSelect(row) {
document.forms[0].userrecselectUI.value = row.getAttribute("row_number").toString();
row.scrollIntoView(true);
alert(document.forms[0].userrecselectUI.value);
}
</script>
</html>

When the row is clicked, the rowSelect(this) method is called, the row_number value is stored in a form input element so it can be submitted to the server, and the row is scrolled into view.

As I understand it, this would be a way of binding a table row number to a form input element, as well as scrolling the row into view, but I don't know what Tim means by "EGL processes the selection then redisplays the table again." If that means that the form is submitted to the server and the page is redisplayed, then one way to implement that would be to call the form's submit() method in the rowSelect() function.

Nathan.


____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.