You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/08/19 19:13:45 UTC

[jira] Updated: (TAPESTRY-1487) Consider checking for org.xml.sax.ext.Attributes2

     [ https://issues.apache.org/jira/browse/TAPESTRY-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1487:
-------------------------------------------

    Assignee:     (was: Howard M. Lewis Ship)

> Consider checking for org.xml.sax.ext.Attributes2
> -------------------------------------------------
>
>                 Key: TAPESTRY-1487
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1487
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.4
>         Environment: Sun JDK 1.5
>            Reporter: Folke Behrens
>            Priority: Trivial
>
> Consider testing for org.xml.sax.ext.Attributes2 and use Attributes2.isSpecified(int) to check if the attribute is really specified or just a default declaration.
> With this you can e.g. test if <a  shape="rect" > is really set. Test for "http://xml.org/sax/features/use-attributes2" or just use "instanceof":
> if (attributes instanceof Attributes2) {
>     if (( (Attributes2)attributes ).isSpecified(i)) {
>         // do something
>     }
> }

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