Hi all,
I'm sorry for the dumb question. I've just started trying to kick my
component development into high gear.

I have a search box component in the header component of my project. I
am using ExternalLink for SEO purposes and I can't figure out how to
render the ExternalLink. I've resorted to the below (which does work,
but ideally I'd like to let Tapestry render the link). Can someone
quickly tell me how to fix this?

-------
public abstract class Header extends AbstractComponent implements
PageBeginRenderListener {
        public void pageBeginRender(final PageEvent event)  {
                if (event.getRequestCycle().getParameter("search_query")!=null){
                        Search search = (Search) 
event.getRequestCycle().getPage("search");
                        
                throw new
RedirectException("/search/S"+event.getRequestCycle().getParameter("search_query")
);
                }
   }
        
        
        
        protected void renderComponent(IMarkupWriter writer, IRequestCycle
cycle){
             ... (Rendering the form stuff here)
        }

}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to