You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andrej Aschenbrenner (JIRA)" <de...@tapestry.apache.org> on 2007/05/31 18:14:16 UTC
[jira] Created: (TAPESTRY-1529) Unusable FieldLabel in combination
with a group of radio options
Unusable FieldLabel in combination with a group of radio options
----------------------------------------------------------------
Key: TAPESTRY-1529
URL: https://issues.apache.org/jira/browse/TAPESTRY-1529
Project: Tapestry
Issue Type: Bug
Components: Framework
Affects Versions: 4.1.2
Environment: Windows XP, Sun JRE 1.5, JBoss 4.0.4
Reporter: Andrej Aschenbrenner
The FieldLabel component requires for the parameter "field" a component of the type "IFormComponent".
I want the labels to be generated for every radio button entry:
O <label for="entry1">1st entry</label>
O <label for="entry2">2nd entry</label>
O <label for="entry3">3rd entry</label>
So the user can click on the entry label to select the desired option.
<span jwcid="group@RadioGroup">
<span jwcid="@For" source="prop:source" volatile="true" value="ognl:staticSelection">
<input jwcid="radio@Radio" value="ognl:staticSelectionValue" type="radio" class="radio" />
<label jwcid="@FieldLabel" prerender="false" field="component:radio"
displayName="prop:staticSelectionLabel" class="clickable">Static Label</label>
</span>
</span>
But the component "Radio" is of type "AbstractComponent" and therefore can't be assigned to the "field" parameter.
I think the type of the "Radio" component should be changed to AbstractFormComponent because it IS a form component
in any case.
P.S.: If I assign field="component:group" then there is no effect because I get
O <label for="group">1st entry</label>
O <label for="group">2nd entry</label>
O <label for="group">3rd entry</label>
which is useless.
Thank you!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Assigned: (TAPESTRY-1529) Unusable FieldLabel in combination
with a group of radio options
Posted by "Ben Dotte (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Dotte reassigned TAPESTRY-1529:
-----------------------------------
Assignee: Ben Dotte
> Unusable FieldLabel in combination with a group of radio options
> ----------------------------------------------------------------
>
> Key: TAPESTRY-1529
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1529
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.2
> Environment: Windows XP, Sun JRE 1.5, JBoss 4.0.4
> Reporter: Andrej Aschenbrenner
> Assignee: Ben Dotte
> Fix For: 4.1.4
>
>
> The FieldLabel component requires for the parameter "field" a component of the type "IFormComponent".
> I want the labels to be generated for every radio button entry:
> O <label for="entry1">1st entry</label>
> O <label for="entry2">2nd entry</label>
> O <label for="entry3">3rd entry</label>
> So the user can click on the entry label to select the desired option.
> <span jwcid="group@RadioGroup">
> <span jwcid="@For" source="prop:source" volatile="true" value="ognl:staticSelection">
> <input jwcid="radio@Radio" value="ognl:staticSelectionValue" type="radio" class="radio" />
> <label jwcid="@FieldLabel" prerender="false" field="component:radio"
> displayName="prop:staticSelectionLabel" class="clickable">Static Label</label>
> </span>
> </span>
> But the component "Radio" is of type "AbstractComponent" and therefore can't be assigned to the "field" parameter.
> I think the type of the "Radio" component should be changed to AbstractFormComponent because it IS a form component
> in any case.
> P.S.: If I assign field="component:group" then there is no effect because I get
> O <label for="group">1st entry</label>
> O <label for="group">2nd entry</label>
> O <label for="group">3rd entry</label>
> which is useless.
> Thank you!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1529) Unusable FieldLabel in combination
with a group of radio options
Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert updated TAPESTRY-1529:
------------------------------------
Fix Version/s: 4.1.3
> Unusable FieldLabel in combination with a group of radio options
> ----------------------------------------------------------------
>
> Key: TAPESTRY-1529
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1529
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.2
> Environment: Windows XP, Sun JRE 1.5, JBoss 4.0.4
> Reporter: Andrej Aschenbrenner
> Fix For: 4.1.3
>
>
> The FieldLabel component requires for the parameter "field" a component of the type "IFormComponent".
> I want the labels to be generated for every radio button entry:
> O <label for="entry1">1st entry</label>
> O <label for="entry2">2nd entry</label>
> O <label for="entry3">3rd entry</label>
> So the user can click on the entry label to select the desired option.
> <span jwcid="group@RadioGroup">
> <span jwcid="@For" source="prop:source" volatile="true" value="ognl:staticSelection">
> <input jwcid="radio@Radio" value="ognl:staticSelectionValue" type="radio" class="radio" />
> <label jwcid="@FieldLabel" prerender="false" field="component:radio"
> displayName="prop:staticSelectionLabel" class="clickable">Static Label</label>
> </span>
> </span>
> But the component "Radio" is of type "AbstractComponent" and therefore can't be assigned to the "field" parameter.
> I think the type of the "Radio" component should be changed to AbstractFormComponent because it IS a form component
> in any case.
> P.S.: If I assign field="component:group" then there is no effect because I get
> O <label for="group">1st entry</label>
> O <label for="group">2nd entry</label>
> O <label for="group">3rd entry</label>
> which is useless.
> Thank you!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1529) Unusable FieldLabel in
combination with a group of radio options
Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500487 ]
Andreas Andreou commented on TAPESTRY-1529:
-------------------------------------------
for now, use:
<input jwcid="radio@Radio" value="ognl:staticSelectionValue" type="radio" class="radio" />
<label jwcid="@Any" for="clientId:radio" class="clickable"><span jwcid="@Insert" value="prop:staticSelectionLabel">Static Label</span></label>
> Unusable FieldLabel in combination with a group of radio options
> ----------------------------------------------------------------
>
> Key: TAPESTRY-1529
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1529
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.2
> Environment: Windows XP, Sun JRE 1.5, JBoss 4.0.4
> Reporter: Andrej Aschenbrenner
>
> The FieldLabel component requires for the parameter "field" a component of the type "IFormComponent".
> I want the labels to be generated for every radio button entry:
> O <label for="entry1">1st entry</label>
> O <label for="entry2">2nd entry</label>
> O <label for="entry3">3rd entry</label>
> So the user can click on the entry label to select the desired option.
> <span jwcid="group@RadioGroup">
> <span jwcid="@For" source="prop:source" volatile="true" value="ognl:staticSelection">
> <input jwcid="radio@Radio" value="ognl:staticSelectionValue" type="radio" class="radio" />
> <label jwcid="@FieldLabel" prerender="false" field="component:radio"
> displayName="prop:staticSelectionLabel" class="clickable">Static Label</label>
> </span>
> </span>
> But the component "Radio" is of type "AbstractComponent" and therefore can't be assigned to the "field" parameter.
> I think the type of the "Radio" component should be changed to AbstractFormComponent because it IS a form component
> in any case.
> P.S.: If I assign field="component:group" then there is no effect because I get
> O <label for="group">1st entry</label>
> O <label for="group">2nd entry</label>
> O <label for="group">3rd entry</label>
> which is useless.
> Thank you!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1529) Unusable FieldLabel in combination
with a group of radio options
Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert updated TAPESTRY-1529:
------------------------------------
Fix Version/s: (was: 4.1.3)
4.1.4
> Unusable FieldLabel in combination with a group of radio options
> ----------------------------------------------------------------
>
> Key: TAPESTRY-1529
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1529
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.2
> Environment: Windows XP, Sun JRE 1.5, JBoss 4.0.4
> Reporter: Andrej Aschenbrenner
> Fix For: 4.1.4
>
>
> The FieldLabel component requires for the parameter "field" a component of the type "IFormComponent".
> I want the labels to be generated for every radio button entry:
> O <label for="entry1">1st entry</label>
> O <label for="entry2">2nd entry</label>
> O <label for="entry3">3rd entry</label>
> So the user can click on the entry label to select the desired option.
> <span jwcid="group@RadioGroup">
> <span jwcid="@For" source="prop:source" volatile="true" value="ognl:staticSelection">
> <input jwcid="radio@Radio" value="ognl:staticSelectionValue" type="radio" class="radio" />
> <label jwcid="@FieldLabel" prerender="false" field="component:radio"
> displayName="prop:staticSelectionLabel" class="clickable">Static Label</label>
> </span>
> </span>
> But the component "Radio" is of type "AbstractComponent" and therefore can't be assigned to the "field" parameter.
> I think the type of the "Radio" component should be changed to AbstractFormComponent because it IS a form component
> in any case.
> P.S.: If I assign field="component:group" then there is no effect because I get
> O <label for="group">1st entry</label>
> O <label for="group">2nd entry</label>
> O <label for="group">3rd entry</label>
> which is useless.
> Thank you!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Resolved: (TAPESTRY-1529) Unusable FieldLabel in combination
with a group of radio options
Posted by "Ben Dotte (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Dotte resolved TAPESTRY-1529.
---------------------------------
Resolution: Fixed
Radio now extends from AbstractFormComponent. I have verified it works with FieldLabel now.
> Unusable FieldLabel in combination with a group of radio options
> ----------------------------------------------------------------
>
> Key: TAPESTRY-1529
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1529
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.2
> Environment: Windows XP, Sun JRE 1.5, JBoss 4.0.4
> Reporter: Andrej Aschenbrenner
> Assignee: Ben Dotte
> Fix For: 4.1.4
>
>
> The FieldLabel component requires for the parameter "field" a component of the type "IFormComponent".
> I want the labels to be generated for every radio button entry:
> O <label for="entry1">1st entry</label>
> O <label for="entry2">2nd entry</label>
> O <label for="entry3">3rd entry</label>
> So the user can click on the entry label to select the desired option.
> <span jwcid="group@RadioGroup">
> <span jwcid="@For" source="prop:source" volatile="true" value="ognl:staticSelection">
> <input jwcid="radio@Radio" value="ognl:staticSelectionValue" type="radio" class="radio" />
> <label jwcid="@FieldLabel" prerender="false" field="component:radio"
> displayName="prop:staticSelectionLabel" class="clickable">Static Label</label>
> </span>
> </span>
> But the component "Radio" is of type "AbstractComponent" and therefore can't be assigned to the "field" parameter.
> I think the type of the "Radio" component should be changed to AbstractFormComponent because it IS a form component
> in any case.
> P.S.: If I assign field="component:group" then there is no effect because I get
> O <label for="group">1st entry</label>
> O <label for="group">2nd entry</label>
> O <label for="group">3rd entry</label>
> which is useless.
> Thank you!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1529) Unusable FieldLabel in combination
with a group of radio options
Posted by "Andrej Aschenbrenner (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrej Aschenbrenner updated TAPESTRY-1529:
-------------------------------------------
See the Checkbox component. Why does it extend from AbstractFormComponent and the Radio component not? They should be treated likewise.
> Unusable FieldLabel in combination with a group of radio options
> ----------------------------------------------------------------
>
> Key: TAPESTRY-1529
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1529
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.2
> Environment: Windows XP, Sun JRE 1.5, JBoss 4.0.4
> Reporter: Andrej Aschenbrenner
>
> The FieldLabel component requires for the parameter "field" a component of the type "IFormComponent".
> I want the labels to be generated for every radio button entry:
> O <label for="entry1">1st entry</label>
> O <label for="entry2">2nd entry</label>
> O <label for="entry3">3rd entry</label>
> So the user can click on the entry label to select the desired option.
> <span jwcid="group@RadioGroup">
> <span jwcid="@For" source="prop:source" volatile="true" value="ognl:staticSelection">
> <input jwcid="radio@Radio" value="ognl:staticSelectionValue" type="radio" class="radio" />
> <label jwcid="@FieldLabel" prerender="false" field="component:radio"
> displayName="prop:staticSelectionLabel" class="clickable">Static Label</label>
> </span>
> </span>
> But the component "Radio" is of type "AbstractComponent" and therefore can't be assigned to the "field" parameter.
> I think the type of the "Radio" component should be changed to AbstractFormComponent because it IS a form component
> in any case.
> P.S.: If I assign field="component:group" then there is no effect because I get
> O <label for="group">1st entry</label>
> O <label for="group">2nd entry</label>
> O <label for="group">3rd entry</label>
> which is useless.
> Thank you!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org