Re: jdbc
"Malcolm Edgar" <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Julie, I am not sure which area is causing you grief. One approach I uses is to use the Conditional component to switch the page between view and edit mode. I do something like this with the HTML. <span jwcid="ifViewMode"> First field: <span jwcid="firstInsert"/> <br/> Second field: <span jwcid="firstInsert"/> <br/> .. <input type="text" jwcid="secondTextField"/> <form jwcid="viewForm"> <input type="Submit" jwcid="okSubmit" value=" Edit "/> </form> </span> <span jwcid="ifEditMode"> <form jwcid="editForm"> First field: <input type="text" jwcid="firstTextField"/> <br/> Second field: <input type="text" jwcid="secondTextField"/> <br/> .. <input type="Submit" jwcid="okSubmit" value=" OK "/> <input type="Submit" jwcid="cancelSubmit" value="Cancel"/> </form> </span> Good references include the Component Reference, Tutorial Workbench fields page, Tutorial 2 (Neil Clayton can give you a URL to this). Sun's online Java Tutorial is also a good introduction to JDBC. Regards Malcolm >From: julie ann lim <[email protected]> >To: Dave Roberts <[email protected]>, >[email protected] >Subject: [Tapestry-developer] jdbc >Date: Fri, 20 Dec 2002 19:24:30 -0800 (PST) > > >i've tried to use tapestry a bit, but i can't make a page that allows me to >view or update my records in the database via JDBC. how do i do? > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Mail Plus - Powerful. Affordable. Sign up now _________________________________________________________________ MSN 8: advanced junk mail protection and 3 months FREE*. http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_advancedjmf_3mf ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/