Hello, Thanks all for your suggestions. I followed the example shown in https://tapestry.apache.org/ajax-and-zones.html in "Invoking server-side event handler methods from JavaScript" but here the event is in the java code "server-side" and is invoked from the Javascript code "onClick()" , but what I want is the opposite direction, sending a "string variable" from a tag appended in the clientside javascript code to the java code "in the serverside". For now, I will test to use hidden input (although I didn't want to use a form submit) and I will see if I can make it or not ...
Thank you all for your help and valuable suggestions, and of course, if anyone face the same problem before and could give me hints to how to do it please tell me. Regards, Marwa