Thanks, all, for college of knowledge ;-).  Much appreciated.  

1.  I am not beaneditorform (or beaneditor) in EditPerson.tml, therefore the
@Persist annotation is needed in Person.java for the form to accept the
submit.  

<form t:type=&quot;Form&quot; t:id=&quot;person&quot; 

Why?  Simply, need a much more professional looking, styled form than is
supported by these two.  

2.  The @Persist for person in EditPerson does indeed seem to clash with the
declaration in Persons page, but simply changing it that variable to, say,
personRow in Persons does not work since the object person is stored in
session state and even the though the link above the grid renders without
the Id anymore, clicking edit will still pull up the last added/editted
record since it is in the session.  Ditto for returning Id, flash
persistence etc.  Basically, the session will either store person (thereby
pulling the last record) or not (thereby breaking the input form).  

3.  I am using EditPerson from the User Guide

http://tapestry.apache.org/hibernate-user-guide.html

Just added onPrepareForRender to create a new Person when in Create mode.  

Bottom line, I really see no other workarounds to simply doing the
following: 

&lt;t:pagelink page=&quot;person/edit&quot; context=&quot;0&quot;>Create
new</t:pagelink>

This create a error in logs, trying to pull up the record with zero id, but
the application chugs along fine.  Using null or $N0 for context breaks the
list page.  Only zero works.  

The application is working fine now...doing all the CRUD.  I would like to
extend it to CRUDS-QBE...search and QBE as well...that is what I am working
on now.  Will follow the suggestions here.  

Thanks, again.  





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Pagelink-above-grid-picks-up-context-from-last-pagelink-in-grid-tp5660049p5666672.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to