I fixed this by making a new component called LabeledCheckbox. I copied the
Checkbox.jwc into my components and added:

<parameter name="displayName">
    <description>
      The name of the field, which may be used by a FieldLabel.
    </description>
  </parameter>

I put this in JIRA.

Jim McCollom

-----Original Message-----
From: Jim McCollom [mailto:[EMAIL PROTECTED] 
Sent: 19. september 2005 22:30
To: 'Tapestry users'
Subject: Possible bug in Checkbox Field Labels

I am using tap4-beta 6 and I just tried to add my first checkboxes to my
project and ended up getting a strange error:

Error:
org.apache.tapestry.BindingException
Display name for admin/AddAdmin/$FieldLabel_4 was not specified and was not
provided by field admin/AddAdmin/inputCanViewMembers.

Page Definition:
<component id="inputCanViewMembers" type="Checkbox">
    <binding name="value" value="admin.permissions.canViewMembers" />
    <binding name="displayName" value="message:canViewMembers" />
</component>

Page Template:
<th><span jwcid="@FieldLabel" field="component:inputCanViewMembers" /></th>
<td><input type="checkbox" jwcid="inputCanViewMembers" /></td>

Are FieldLabels not working with Checkboxes yet ?? Or did I mess something
up ??


---------------------------------------------------------------------
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