Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

gov kur

Ranch Hand
+ Follow
since Aug 30, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by gov kur

sorry Andrei ... in my case the whole page gets reloaded. On changing the selectOneMenus, I execute the follwoing code in the valueChangeListener of the selectOneMenus

after this the db query fires and using the fetched data i create the workerTable all over again. All this happens via function calls made in the
valueChangeListener function.
After this the whole page reloads as I have onchange="submit();" attribute in my selectOneMenu.

yes Nasim, workerTable is the element I've bound to the datatable. It's shown below

[ November 13, 2007: Message edited by: gov kur ]
14 years ago
I tried using FacesContext.getCurrentInstance().renderResponse(), but it didn't work.
One of my colleagues then suggested obtaining the parent UIComponent and then explicitly removing that specific child. This works.

if(workerTable != null){
UIComponent abc = workerTable.getParent();

14 years ago
I needed to create a dynamic datatable based on some queries being executed. I did this by referring to BalusC Code link for datatables

Now my query can be modified based on some selectOneMenus. On the valueChangeListener i fire the query to to fetch the data again that populate the columns and rows. However I found that the getter method for the binding Datatable value was called only the first time the datatable is created.
Is there some way to force the binding to the datatable again? i have tried different things including moving the pagecode to request scope.
14 years ago
I agree with Manchester United being the best club (loved them for years ) but England have not played well enough to claim being the best National Soccer Team. In my opinion that would go to the Argentinaians. I think that they were desperately unlucky in last years World Cup.
15 years ago
ok..thanks for that ....though i agree with you it would be hard to change it now since max of the jsps already have scriptlets in them ...and i am certainly not the guy to take that decision.

anyways i just wanted to share an alternate way in javascript to achieve the makes use of a DIV tag.

var str="<SELECT ID='selUpdate'>";
for (var i=0; i<1000; i++)
str += "<OPTION>Item " + i + "</OPTION>";
str += "</SELECT>";
divUpdate.innerHTML = str;

This is the link::

ok guys ...thanks for the input. Although i know it sounds like a poorly designed web app... its not .
Like Bear Bibeault said it's posibly a case of 'Information overload'. However this happens only if the end user (developer/tester) is in stress testing mode of his product and knowingly performs some extreme steps on this tool. Another thing is that these entries are insignificant in the overall execution and the user may choose to ignore it or simply use one or more of the entries but the assumption is that he would certainly expect to see those entries.
As far as the alternate techniques go i'm not quite sure what autocomplete is (not worked extensively on javascript) but using the paging technique would give the entries a importance in the configuration they don't deserve.
In that sense select seems appropriate for this functionality.

I have found a simpler solution for my problem. It's to use the scriptlet for loop at the select statement rather than at the javscript function. The speed in much more acceptable. thanks
[ December 22, 2006: Message edited by: gov kur ]
Hi all,
I have a page that fills a select field with certain xpaths from a List contained in a session object. In extreme cases the List contains around 15,000 xpath entries. This causes the page to load very slowly and takes nearly 4-5 mins. This is a huge bottleneck.

I've attached a sample JSP that simulates this behaviour. Is there any alternative way to approach this problem. i have heard of AJAX but since the data is present on the client side itself,i'm not sure it's applicable


<%@ page language="java" import="java.util.*"%>
<%List selectList=new ArrayList();

for(int i=0;i<15000;i++){



<script language="javascript">

function init(){

var mycars="<%=selectList.toString()%>";
var arr=mycars.split(",");
var a=arr[0];
var c=arr[arr.length-1];

for(int i = 0; i < selectList.size(); i++) {
var opt = document.createElement('option');
var val ='<%=selectList.get(i)%>';
var text = '<%=selectList.get(i)%>';
lstidentificationfield = document.passiveConfig.xmlIdentificationField;
opt.value = val;
opt.text = text;



<BODY onXoad="init()">

<form name="passiveConfig">
<select name="xmlIdentificationField" id="xmlIdentificationField" size="1" style='width:500px'>
<option value="0">Select XML Field</option>
[ December 22, 2006: Message edited by: gov kur ]
thanks guys,
I'll keep them in mind
15 years ago
I have been a java developer for around 2&1/2 years and a few months ago i switched companies . Though my current service engineer is more than happy with my performance ...he shudders at my habit to move right into the code whenever a major feature addition crops up. I prefer to get a feel of the code and tweak it around before i look at what its subsequent impact might be rather than simply staring at code or working with at it with a pen and paper. So is it wrong? Often it means that i am able to understand what other features might be affected at a later stage which means some rework might be needed...but i prefer it in this manner as i am more comfortable with handling the code and am more aware of the flow by then ...
So am i heading in the right direction? or should i discontinue this practise?
15 years ago
I remember the last time this "Ganesh idol drinking milk" incident happened...
some smart lawyer publicly fed some alcohol to an idol... it seemed to disappear faster!!! . he then concluded that the Gods must want the alcohol more than the milk... that incident certainly caused a storm
15 years ago
Stevie Wonder is playing his first gig in Tokyo and the place is absolutely packed to the rafters. Breaking the ice with his new audience, Stevie asks if anyone has a request.

An wizened old Japanese man jumps out of his seat in the first row and shouts at the top of his lungs: �Play a jazz chord! Play a jazz chord!�

Amazed that this guy knows about the jazz influences in Stevie�s varied career, the blind impresario starts to play an E-minor scale and then goes into a difficult jazz melody for about ten minutes.

When he finishes the whole place goes wild, but the old man jumps up again and shouts: �No, no, play a jazz chord, play a jazz chord!�

A bit peeved by this, Stevie, being the professional that he is, dives straight into a jazz improvisation with his band around the B-flat minor chord and really tears the place apart.

The crowd goes wild with this impromptu show of his technical expertise. But the little old man jumps up again: �No, no, no! Play a jazz chord, play a jazz chord!�

Now truly peeved that this little guy doesn�t seem to appreciate his playing ability, Stevie invites him up on the stage and says: �OK -
you start us off.�

The little old man grabs the mic and starts to sing: �A jazz chord, to say I ruv you��

15 years ago
are there any companies in Pune which work on the Eclipse Platform? I dont mean those that use Eclipse but those that develop products based on the Eclipse Framework.
15 years ago
just bought my dream house couple of weeks ago...
and am looking for some good furniture designs .. any suggestions?
16 years ago
Hello everyone ..
i'm working on an implementation of Input Method Framework for a local Script (Devanagari) . Though it types perfectly initially, as the swing text field Component fills up the text field stops rendering the new characters being written and it finally totally disappears. Even if the font in not applied to the text box the same thing happens i guess it's not due to the font.
Only if i break the composed text by pressing the space bar do the characters become visible.

The Sun implementation for the same script but different K/B layout does not show the behaviour. Does anyone know about this ?

[ March 13, 2006: Message edited by: gov kur ]
[ March 13, 2006: Message edited by: gov kur ]
16 years ago
Hey guys ,
I too am learning to play the guitar. does anyone know about any free videos for download for learning the guitar?. I guess learning from them would also be pretty intresting
16 years ago