I'm having some issues porting some old T3 applications and am stumped with
the Ajax implementation.  For the most part I've got the basics working, but
I'm having problem with some MVC dynamics. Is it possible to create a link
at runtime via ComponentResources and specify a zone for the action so that
the form is not posted when the action is invoked?
Example .tml:
<t:block t:id="selectionList">
  <t:mycomponent t:model="modelA" ...></t:mycomponent>
</t:block>
<form t:id="filterInputs" t:zone="searchZone">
  ...
  <t:actionlink t:id="executeSearch"
t:zone="searchZone">search</t:actionlink>
</form>
<t:zone t:id="searchZone">
  <t:delegate to="prop:selectionList"></t:delegate>
</t:zone>

The "MyComponent" is a component where the model (an actual parameter) may
provide a link using the componentResources.createEventLink() method to the
component to be rendered.  Of course the java class exposes the
SelectionList block.  As you can see I do have an actionlink in the template
which, because of the zone parameter, does not submit the form when the
action is invoked.

The "model" is a regular POJO and is not a component, but is part of the
Render phase.  I'm still trying to get my head around conversion of old T3
applications, so I'm open to new design approaches in terms of how T5
handles MVC.

Cheers,
Marcel
-- 
View this message in context: 
http://www.nabble.com/-T5--MVC-Issues-tp20711681p20711681.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]

Reply via email to