'Render this widget as HTML helper object(s)
@param resource: the resource
@param values: the search values from the URL query'

def widget(self, resource, values):

    attr = self.attr
    if ('_size' not in attr):
        attr.update(_size='40')
    if (('_class' in attr) and attr['_class']):
        _class = ('%s    %s' % (attr['_class'], self._class))
    else:
        _class = self._class
    attr['_class'] = _class
    attr['_type'] = 'text'
    data = attr.get('data', {})
    data['match'] = ('any' if self.opts.get('match_any') else 'all')
    attr['data'] = data
    values = [v.strip('*') for v in values if (v is not None)]
    if values:
        attr['_value'] = '    '.join(values)
    return INPUT(**attr)
