Otto <Otto.Gonzalez <at> Gwinnettcounty.com> writes:
> My condition is evaluating to true and if I remove the FieldLabel
> component, it works fine. This only happens when I submit page.
>
> Same code on 3.02, using <at> If or <at> Conditional components works fine.
I've written a test page and it works fine in Tapestry 4. See if it works
on your computer.
Home.html:
<html>
<form jwcid="form">
<table>
<tr>
<td><span jwcid="@FieldLabel" field="component:lastName">Last
Name</span></td>
<span jwcid="@If" condition="ognl:editing">
<td><input jwcid="lastName" size="50" maxlength="100"/></td>
</span>
</tr>
</table>
<input type="submit"/>
</form>
</html>
Home.page:
<page-specification class="testtextfield.Home">
<property name="lastName" initial-value="'Doe'"/>
<component id="lastName" type="TextField">
<binding name="value" value="lastName"/>
<binding name="displayName" value="'last name'"/>
</component>
<component id="form" type="Form">
<binding name="listener" value="listener:onOk"/>
</component>
</page-specification>
Home.java:
public abstract class Home extends BasePage {
public abstract String getLastName();
public boolean getEditing() {
return true;
}
public void onOk() {
System.out.println(getLastName());
}
}
> By the way, your Tutotials are amazing. I will be buying the book very soon.
Thanks!
--
Author of a book for learning Tapestry (www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]