Thanks, guys.  

LANCE:  @Persist(PersistenceConstants.FLASH) makes nullifies Person in
Persons page (listing page), thereby breaking it...

THIAGO: return person.getId() breaks the Edit Page completely with Render
queue error in BeginRender...

Here is probably the clincher that this is a bug or some type of unitended
workflow problem  

Fully qualifying the Edit link, as below, works fine to get the Edit page to
render as Create (edit/) ...without filling the last record as (edit/5)

<t:pagelink page="person/EditPerson">Create NEW Person/Advanced
Search</t:pagelink>

BUT.............

then clicking the create/update button after coming into edit (in create
mode) nullifies person and breaks the persons listing page....hope that
makes sense.  

I am agreeing with trsvax at the moment...

Page re-use seems fraught with session/objects management issues.  

I am trying to re-use not just Create/Update but also Query by Example
(QBE).  

I have a button called Search and a method called onSelectedFromSearch in
EditPerson.java

That, too, seems to mess up the session as well, nullifying the person
before it can be employed in QBE Search.

In any case, this is all looking like Struts, only a bit backwards...Create,
Edit and QBE pages are all identical except for the ACTION of the submit
button.  In Struts, you just send the action to a different METHOD in the
same CRUD class - if it needs something in the Valuestack it will get it -
otherwise it just proceed merrily along.  

But due to apparent ambiguity of activate/passivate in Create/Edit,  seems
like we are best off maintaining three separate sets of files - tml and java
- one each for Create, Update and QBE.  Otherwise each of these operations
end up driving in each other's lanes.  And, IF SO, this seems like a
fundamental architectural weakness, not just a bug(?).  

Using a component (or jsp) to render most of the form will probably save
tripling the pain...but that would defeat the purpose of form re-use. 

I would be happy to be proved wrong - if there is a working app out there
which does all three Create/Update and QBE...



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Pagelink-above-grid-picks-up-context-from-last-pagelink-in-grid-tp5660049p5663892.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