You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2007/10/20 02:54:03 UTC

T5: page with form re-rendering

Hi,
I have a form like following, it sets a persisted variable(country) in the
page class, initially it includes "addressHK" component in the page, when
user choose 'US' and click submit, the page is supposed to be refreshed
withh addressUS component included, but it never happen, it seems page was
never got re-rendered, any way to force the re-rendering

 <t:form t:id="editProfile">

      	<input t:type="select"  t:id="country" t:model="CountryList"/     
        <t:if test="${isUS}"><t:addressUS /></t:if>  
        <t:if test="${isHK}"><t:addressHK /></t:if>
        <input type="submit" name="Submit" id="Submit" value="Submit" /> 
 </t:form>        

-- 
View this message in context: http://www.nabble.com/T5%3A-page-with-form-re-rendering-tf4656465.html#a13305488
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: page with form re-rendering

Posted by Angelo Chen <an...@yahoo.com.hk>.
problem solved, test should be:

 test="isUS"


Angelo Chen wrote:
> 
>         <t:if test="${isUS}"><t:addressUS /></t:if>  
>         <t:if test="${isHK}"><t:addressHK /></t:if>
>         <input type="submit" name="Submit" id="Submit" value="Submit" /> 
>  </t:form>        
> 
> 

-- 
View this message in context: http://www.nabble.com/T5%3A-page-with-form-re-rendering-tf4656465.html#a13305697
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org