Re: How to work with other page's actionlink?
onActivate(..) triggers on POST and GET, right? dhning-2 wrote: > > Sure you can, use page link. > > Like deleting a user: > or even > context="user" if you have defined coercier on user object. > Please remember that record/delete page should implmenet onActivate > method. > Delete.java > void onActivate(int userid) { // or User user > // your deletion logic here. > } > > Thanks, > DH > > > - Original Message - > From: "inrila" <[EMAIL PROTECTED]> > To: > Sent: Friday, November 28, 2008 1:57 PM > Subject: How to work with other page's actionlink? > > >> >> Question here :-) >> >> I have on the "List" page ... >> >> So I need to process it in "List" page as onActionFromDelete(...) >> >> Is it possible to point it to some other page? Let's say special >> dedicated >> page -- i.e. "record/delete", same as I have "record/create" or >> "record/edit" ? >> -- >> View this message in context: >> http://www.nabble.com/How-to-work-with-other-page%27s-actionlink--tp20729358p20729358.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > -- View this message in context: http://www.nabble.com/How-to-work-with-other-page%27s-actionlink--tp20729358p20730029.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
actionlink, pagelink -- how to do POST?
Hello again, Both actionlink, pagelink - they do GET which is not very smart for the let's say "delete" or some other state changing actions. Do we have an option how we can do some "postbutton" or "postsomething"? :-) Or do we have to do that manually? Like creating HTML form and then defining submit for the required action? And how do we check for the type of the request -- is it GET or POST? Any Tapestry-features we can use? Because onAction() onActionFrom...() they do not really care if it's GET or POST as I see... Thanks! -- View this message in context: http://www.nabble.com/actionlink%2C-pagelinkhow-to-do-POST--tp20729400p20729400.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to work with other page's actionlink?
Question here :-) I have on the "List" page ... So I need to process it in "List" page as onActionFromDelete(...) Is it possible to point it to some other page? Let's say special dedicated page -- i.e. "record/delete", same as I have "record/create" or "record/edit" ? -- View this message in context: http://www.nabble.com/How-to-work-with-other-page%27s-actionlink--tp20729358p20729358.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to share "flash" message across pages better?
Hi, As I figured out @Persist will basically store the value in the session/flash for _this_ specific page. Let's say I created simple CRUD, where on the "List" page I am showing all records. When adding new record after onSuccess() I want to put some flash message i.e. "Your record was created succesfully!" and return List.class so user will get to "List" page automatically. And user should see this flash message. But how can I do do that? Is there some existing mechanism to use for that? As I mentioned above, @Persist will not work, as we are working with different pages. And @ApplicationState is an overkill, because I basically need only flash message. Any other options? Thanks! -- View this message in context: http://www.nabble.com/How-to-share-%22flash%22-message-across-pages-better--tp20728892p20728892.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]