Hello,

I really need to call java script functions on some columns items hyperlinks.

I have a huge Struts Form that needs to be submitted when the user clicks on a 
column item. The resulting action forwards back to the original JSP page.

I cannot use a TableDecorator for printing something linke <a 
href='...'>column_value</a> by a <display:column> tag, since I cannot add to 
the request all the Struts Form properties (too many of them).

I ** absolutely ** need to call a JavaScript function that will submit my 
form. I do not see anyother solution. This function takes the index of the 
current row object and would look like :  

/*
 * Update parameter master data
 */
function showParameter(paramIndex) 
{
        
        document.forms[0].reqCode.value='editParameter';
        document.forms[0].reqParamIndex.value=paramIndex;
        document.forms[0].submit();
        return false;
}

I need to call this JS function on a column data item. Anybody has a clue how 
to do this with the display tag ?

Besides I already posted a message about the need to have the onclick, onblur, 
etc. event management attributes to be added to the display:column tag. This 
example shows that they MUST be added.

I did not see any change request for this kind of stuff in release 1.0-b3. Do 
you plan to include these attributes sometime soon ? Could you please let me 
know so I can decide whether or not I have to implement them by myself as a 
temporary solution.

Best regards,

Fred    



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to