Thanks Peter!! Perfect!! On May 19, 4:32 pm, "Peter J. Farrell" <pe...@mach-ii.com> wrote: > Use the "append" attribute of the view-page command. > > http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/ConfigFileExpla... > > .Peter > > Teaman said the following on 05/19/2009 06:22 PM: > > > I am a newbie to Mach-ii. > > I want to break up an old-style CF coded page into a search form > > content and a search results content within the same event-handler. > > > The initial visit to the event-handler I want to display the search > > form content using: > > <view-page name="displaySearchForm" contentArg="content" /> > > > But then when the search submit button is clicked I want the form to > > be displayed AND the results to be displayed. > > How do I do this given that I would now have a second content line > > within the same event > > <view-page name="displaySearchResults" contentArg="content" /> > > > The third event-handler line assumed here is the template displaying > > the content... > > <view-page name="mainTemplate" /> > > which has the following lines embedded in it... > > <cfif event.isArgDefined("content")> > > <cfoutput>#event.getArg("content")#</cfoutput> > > </cfif> > > > Obviously the second content line would replace the first content > > line's value so I'm wondering what is the best way to handle this. The > > mainTemplate is used in many other event-handlers so I don't really > > want to have to check if there is a content or a content-a and content- > > b and append them. > > > Or is it better to create two event-handlers? I'd rather not since the > > code would handle stacking the two sections of code... first time > > visit would show form and no search results. After searching, the > > form is still displayed but results appear below it.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com To unsubscribe from this group, send email to mach-ii-for-coldfusion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---