This may not be your problem, but...

When there is a problem with the AJAX functionality, the tacos components
tend to fall back to conventional behavior - I found this when I was having
problems.

Make sure there are no script errors on your page, and make sure you have
the necessary dojo script includes on your page.

Jonathan  


-----Original Message-----
From: Rachel Swailes [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 6:02 AM
To: tapestry-user@jakarta.apache.org
Subject: Getting started with Tacos

Hi there

I've read a lot of documentation and other posts online but I'm still 
struggling to get started with tacos.

I started by trying to get the examples in the component reference to 
work and the AjaxSubmit example kind of works now. But the page 
completely reloads after I press the Login button. I thought that only 
the div was supposed to refresh.

Is there something that I'm doing wrong or haven't done or have I 
misunderstood what the example was supposed to achieve?

And I'll put the code below so you don't have to go look it up.

Any help would be greatly appreciated.

Many thanks,
Rachel

HTML
<form jwcid="loginForm">
 <fieldset>
  <legend>Login</legend>

  <span jwcid="@FieldLabel" field="component:username" />
  <input jwcid="[EMAIL PROTECTED]"
         value="ognl:userName" displayName="message:username.input" />

  <a jwcid="@tacos:AjaxSubmit"
     updateComponents="ognl:{'nameDisplay'}"
     effects="template:{highlight:{any:'[255,255,184], 500, 500'}}">
     Login
  </a>

</form>

<div jwcid="[EMAIL PROTECTED]" >
   <span jwcid="@If" condition="ognl:userName" >
      You entered <span jwcid="@Insert" value="ognl:userName" />.
   </span>
</div>

PAGE SPECIFICATION
<property name="userName" persist="session" />

<component id="loginForm" type="tacos:AjaxForm" >
  <binding name="updateComponents" value="ognl:{'loginForm'}" />
  <binding name="listener" value="listener:userLogin" />
</component>


JAVA SOURCES

public void userLogin(IRequestCycle cycle) {
   //don't need to do anything, input values are already set
  }





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


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

Reply via email to