actually i had even tried with the class , but it still doesn't want to call the listener method when i change the class using javascript ,(will do r&d when i get time) but anyway thanks a ton for your help , i appreciate cheers aninder Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Sounds good :)
Just as an fyi though, it's pretty easy to define images using css classes instead of id based definitions..Ie .myClassName { background-image:url(something.gif) } Then you just use different classes for different buttons. On 6/2/06, Aninder Makkar wrote: > > 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 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 > -- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. --------------------------------- How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.