You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Josh Canfield (JIRA)" <ji...@apache.org> on 2009/05/16 03:13:45 UTC

[jira] Created: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Element.forceAttribute uses the element's namespace to match the attribute.
---------------------------------------------------------------------------

                 Key: TAP5-708
                 URL: https://issues.apache.org/jira/browse/TAP5-708
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.1.0.5, 5.1.0.4
            Reporter: Josh Canfield
            Priority: Minor


The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.

It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922686#action_12922686 ] 

Hudson commented on TAP5-708:
-----------------------------

Integrated in tapestry-5.2-freestyle #212 (See [https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/212/])
    

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>            Assignee: Josh Canfield
>             Fix For: 5.2.2
>
>         Attachments: Fixes_TAP5-708_TAP5-804_and_TAP5-709
>
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Josh Canfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Canfield reassigned TAP5-708:
----------------------------------

    Assignee: Josh Canfield

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>            Assignee: Josh Canfield
>         Attachments: Fixes_TAP5-708_TAP5-804_and_TAP5-709
>
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922686#action_12922686 ] 

Hudson commented on TAP5-708:
-----------------------------

Integrated in tapestry-5.2-freestyle #212 (See [https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/212/])
    

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>            Assignee: Josh Canfield
>             Fix For: 5.2.2
>
>         Attachments: Fixes_TAP5-708_TAP5-804_and_TAP5-709
>
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Josh Canfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Canfield resolved TAP5-708.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.2.2

Added forceAttributeNS and changed forceAttribute to use null instead of the element namespace.

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>            Assignee: Josh Canfield
>             Fix For: 5.2.2
>
>         Attachments: Fixes_TAP5-708_TAP5-804_and_TAP5-709
>
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Josh Canfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Canfield updated TAP5-708:
-------------------------------

    Priority: Major  (was: Minor)

Updated priority because it affects Element.addClassName

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Josh Canfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Canfield resolved TAP5-708.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.2.2

Added forceAttributeNS and changed forceAttribute to use null instead of the element namespace.

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>            Assignee: Josh Canfield
>             Fix For: 5.2.2
>
>         Attachments: Fixes_TAP5-708_TAP5-804_and_TAP5-709
>
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Josh Canfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Canfield updated TAP5-708:
-------------------------------

    Attachment: Fixes_TAP5-708_TAP5-804_and_TAP5-709

Fixes TAP5-708, TAP5-804 and TAP5-709.
Changed Element.attribute(name, value) to pass "" as the namespace instead of null.
Changed forceAttributes to use "" as the namespace to search
Added forceAttributesNS which takes a namespace to lookup.

The template parser uses "" for the namespaceuri during parsing so I chose to change null to "" to be compatible.

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>         Attachments: Fixes_TAP5-708_TAP5-804_and_TAP5-709
>
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Josh Canfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Canfield reassigned TAP5-708:
----------------------------------

    Assignee: Josh Canfield

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>            Assignee: Josh Canfield
>         Attachments: Fixes_TAP5-708_TAP5-804_and_TAP5-709
>
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Josh Canfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Canfield updated TAP5-708:
-------------------------------

    Priority: Major  (was: Minor)

Updated priority because it affects Element.addClassName

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-708) Element.forceAttribute uses the element's namespace to match the attribute.

Posted by "Josh Canfield (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Canfield updated TAP5-708:
-------------------------------

    Attachment: Fixes_TAP5-708_TAP5-804_and_TAP5-709

Fixes TAP5-708, TAP5-804 and TAP5-709.
Changed Element.attribute(name, value) to pass "" as the namespace instead of null.
Changed forceAttributes to use "" as the namespace to search
Added forceAttributesNS which takes a namespace to lookup.

The template parser uses "" for the namespaceuri during parsing so I chose to change null to "" to be compatible.

> Element.forceAttribute uses the element's namespace to match the attribute.
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-708
>                 URL: https://issues.apache.org/jira/browse/TAP5-708
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4, 5.1.0.5
>            Reporter: Josh Canfield
>         Attachments: Fixes_TAP5-708_TAP5-804_and_TAP5-709
>
>
> The method Element.forceAttributes uses the "namespace" attribute of the element when calling Element.updateAttribute. Attributes are by default in the global namespace, which is an empty string, not in the namespace of the element. There is no way to specify an alternate namespace to search.
> It seems the more accurate behavior for this method would be to pass the empty string as the namespace. The class would need to specify a separate method to that accepts a namespace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.