Oh.  I think I get it.  If the zone contains another component, then that'd
cause it to render, right? 

Let me see if I get this right with some pseudomarkup:


Root page (that contains the two components, searchForm and searchResults):
<html>
    <t:searchForm zoneToUpdate="literal:wrapper"
searchTerm="prop:searchTerm" />

    <t:zone t:id="wrapper">
        <t:searchResults searchTerm="prop:searchTerm" />
    </t:zone>
</html>

Search Form component:
<div>
    <t:form zone="prop:wrapper">
        <t:textarea t:id="searchTerm" />
    </t:form>
</div>

Search Results component:

<div>
   ... loop over property 'searchTerm'
</div>


Thanks much Thiago,
Seth


Thiago H. de Paula Figueiredo wrote:
> 
> Em Mon, 18 May 2009 13:44:05 -0300, ownedthx <sethc...@gmail.com>
> escreveu:
> 
>> Let me try an example.  Take a pretty rich web app like markmail:
>> http://tapestry.markmail.org/search/?q=tapestry
>>
>> When you search on markmail,  it causes a whole page refresh. (not what  
>> I'm trying to do).  But, what if instead it updated just the applicable
>> components on the page, such as the search results, using Ajax?  This is
>> basically what I'm trying to accomplish with my web app.
> 
> Just use a zone surrounding the results page and update it when the user  
> submits the search form. And don't forget that, in Tapestry 5.1.0.5, you  
> can update more than one zone in the same form submit or event.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/In-Ajax-request-to-component-causing-another-component-a-chance-to-render-tp23599118p23601991.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