I have a program wizard that has 5 tabs (so 5 java/tml one for each tab). A new program's id created on the first page, is passed on to the other 4 pages, where the other parts of the program are created. Initially I had the urls look like -
/page1 (for create), /page1/24 (for update of id=24) /page2/24 (for create), /page2/24 (for update) Notice that page1 does not have any id in the url in create mode (obviously), but page2 has id in the url in create mode (passed from page1). So to differentiate between the create and the update modes i made it /page2/CREATE/24, /page2/UPDATE/24 /page3/CREATE/24, /page3/UPDATE/24 So using EventContext, I get the mode (mode = ec.get(Mode.class, 0)) and do different things in the code. but now the url seems funny and not restful. What is the standard way of doing this in tapestry? -- View this message in context: http://tapestry.1045711.n5.nabble.com/whats-the-best-way-to-differentiate-create-and-update-modes-in-a-form-tp4918970p4918970.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