To make table cells editable, use "Text Field" components instead of "Static Text" in Table Layout window for corresponding columns. Detailed example can be found in this tutorial: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ins erts_updates_deletes.html
Specifically, see "Changing the Column Components" section of part 1 of tutorial.
Thanks, Misha
(Creator team)
> Hi,
> Thanks for the reply. But I am trying to make the
> cells editable(textboxes and dropdown lists) only
> after clicking/double clicking them. It should
> display static text otherwise. Any sample code I can
> refer to.
One thing to keep in (which you might already know) is that, unlike desktop applications, web pages are synchronous. That is, the code in the page bean does not get called until after you submit the page.
If you want any asynchronous interaction on the web page, you have to do it using JavaScript (or AJAX). What you want to do is modify the onClick property or onDblClick property of the text field to enable/disable or set readonly.
I do not myself know how to do that, as I don't know much about JavaScript. I am afraid I can't even recommend a JavaScript site to get code from. I do know there are lots out there.