id="aaa" has a faded look image for the submit button and id="bbb" has a normal image for the submit button . even i suspect the same thing as you said , i checked out with my front ender and he thinks there is no way of referring 2 images from the same style sheet (so that the id remains the same) i guess i need a quick crash course in css but then i gotto finish this thing today so basically wot im trying to do is a disabled button(with a faded look image) which gets enabled using javascript( which also has to change the image) and when clicked calls the listener method on the java class. and when i was about to do a send on this mail @ImageButton appeared on my mind horizon , and i think this is exactly what Mr Howard orders in this situation, anyway thanks for your help :) Aninder
Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I think tapestry expects the id to be synchronized with the id of a valid listener that it knows about...Changing the submit button id on the fly like that will likely get undesired results unless you also change some of the hidden form input fields to reflect your change. Why do you need to manually set the id of the button or change it at all? On 6/1/06, Aninder Makkar wrote: > > Hi Guys, > Im using a submit button in the form , > > [input] > disabled="ognl:disable" id="ognl:submitId" /> > > initially when the page renders ,disable=true and id = "aaa" > this form displays a tree structure data and as the user gets to > the leaf node i call a javascript function which sets disabled=false > and id="bbb" > > however when i submit the form the listener method is not getting > invoked??? > > why ? > > any help will be appreciated > Aninder > > > > > --------------------------------- > Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get > Yahoo! Messenger with Voice > -- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com