public static FastFilter springid(final String id)
    {
        return new FastFilter()
        {
            @Override
            public boolean filter(Context context)
            {
                String name = $(context).attr("name");
                String idVal = $(context).attr("id");

                LOG.info("Matching: " + id + " Against -- ID: " + idVal + " Name: " + name);

                return (StringUtils.equals(id, idVal) || StringUtils.equals(id, name));
            }
        };
    }
public static FastFilter springid ( final String id ) { return new FastFilter ( ) { @ Override public boolean filter ( Context context ) { String name = $ ( context ) . attr ( "name" ) ; String idVal = $ ( context ) . attr ( "id" ) ; LOG . info ( "Matching: " + id + " Against -- ID: " + idVal + " Name: " + name ) ; return ( StringUtils . equals ( id , idVal ) || StringUtils . equals ( id , name ) ) ; } } ; }
/*
Filters Joox by the spring bean's name (name or id) leveraging name to support legacy spring