[
https://issues.apache.org/jira/browse/TRINIDAD-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576016#action_12576016
]
gpetracek edited comment on TRINIDAD-996 at 3/11/08 1:46 AM:
--------------------------------------------------------------------
the provided implementation isn't trinidad specific. however, it would be nice
to improve the defaultCommand functionality of trinidad.
---
features:
- conventions instead of the defaultCommand attribute.
- different focus handling (compared to the current mechanism of trinidad)
- optional "groups" (-> one default command component per group)
there is the possibility to setup "groups" within a form. each group provides
it's own default command component. this feature also supports the concept of
subforms. for instance it's possible to provide a default command component per
subform.
used conventions:
id format of default command components:
[custom id]defaultCommand
id format of groups:
[custom id]defaultCommandGroup
examples:
see sample_section_v0.0.1.txt
important hints:
- it's possible to use the provided script manually/independently.
- the implementation isn't compatible with the current defaultCommand mechanism
of trinidad.
(don't use both mechanisms concurrently.)
- at the moment it isn't possible to use the group id convention within the id
attribute of tr:subform.
use other components or div tags instead (see sample_section_v0.0.1.txt).
(it depends on the technologies you are using.)
- it doesn't work within textarea fields. (it doesn't make sense to do that...)
(it's the only exception/restriction concerning the current focus.)
- if the focus is outside of a form, the first default command component within
the dom (outside of a group) will be used.
- it isn't required to use groups (it's an optional concept).
tested with:
- firefox 2
- ie 6, 7
the next step:
i would like to discuss these concepts and the plain implementation.
was (Author: gpetracek):
the provided implementation isn't trinidad specific. however, it would be
nice to improve the defaultCommand functionality of trinidad.
---
features:
- conventions instead of the defaultCommand attribute.
- different focus handling (compared to the current mechanism of trinidad)
- optional "groups" (-> one default command component per group)
there is the possibility to setup "groups" within a form. each group provides
it's own default command component. this feature also supports the concept of
subforms. for instance it's possible to provide a default command component per
subform.
used conventions:
id format of default command components:
[custom id]defaultCommand
id format of groups:
[custom id]defaultCommandGroup
examples:
see sample_section_v0.0.1.txt
important hints:
- it's possible to use the provided script manually/independently.
- the implementation isn't compatible with the current defaultCommand mechanism
of trinidad.
(don't use both mechanisms concurrently.)
- at the moment it isn't possible to use the group id convention within the id
attribute of tr:subform.
use other components or div tags instead (see sample_section_v0.0.1.txt).
(it depends on the technologies you are using.)
- it doesn't work within textarea fields. (it doesn't make sense to do that...)
(it's the only exception/restriction concerning the current focus.)
- if the focus is outside of a form, the first default command component within
the dom (outside of a group) will be used.
- it isn't required to use groups (it's an optional concept).
tested with:
- firefox 2
- ie 6
the next step:
i would like to discuss these concepts and the plain implementation.
> improvement of defaultCommand
> -----------------------------
>
> Key: TRINIDAD-996
> URL: https://issues.apache.org/jira/browse/TRINIDAD-996
> Project: MyFaces Trinidad
> Issue Type: Improvement
> Components: Components
> Reporter: Gerhard Petracek
> Attachments: AdvancedDefaultCommand_Configuration.patch,
> AdvancedDefaultCommand_Core.js.patch, AdvancedDefaultCommand_Renderer.patch,
> sample_section_v0.0.1.txt, smartDefaultCommand_v0.0.3.js
>
>
> see: http://www.nabble.com/-Trinidad--subform-defaultCommand-p15815227.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.