Have you tried the following ? <script ...> function append() { window.location = document.anchors.link1.href+"&sp=s"+valueFromInputField } </script>
<a id="link1" jwcid="@DirectLink" onclick="append()">foo</a> where append() is a javascript function that appends the value of your input field to the Directlink URL. Shing --- Ying Lee <[EMAIL PROTECTED]> wrote: > Greetings all, > > I am using Tapestry 4.0 and trying to make a simple > shopping area that shows > a table of items, and each row has a textfield where > users can input the > quantity they want to buy, and I want to add a > DirectLink for each row so > that it will send a purchase action for that > particular item, pretty > standard stuff. > > I am able to embed the item ID in the DirectLink > parameter list (using > "parameters" attribute), but I could not get the > user input for the Quantity > textfield once the link calls the Listener. > > I can wrap the table in a form, then put a submit > button to submit all > changes altogether, in that case I would look at the > data in my > implementation of IBasicTableModel (which queries > the database, and store > the data in a list) and see which row has a non-zero > quantity value, which > indicates the user wants to purchase that particular > item in the specified > quantity. However I also want to provide user the > option to purchase each > item individually by clicking on the DirectLink at > the end of the row. > > I notice the HTML of the DirectLink has my itemID > encoded, so how can I get > the Quantity value at runtime encode in the link as > parameters?? The values > of editable fields in a form are not submitted to > the page's until the > "submit" button is pressed.... > > thx. > > Ron > > _________________________________________________________________ > Learn English via Shopping Game, FREE! > http://www.linguaphonenet.com/BannerTrack.asp?EMSCode=MSN06-03ETFJ-0211E > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Home page : http://www.lombok.demon.co.uk/ ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]