<%@ page import="com.atlassian.jira.ComponentManager" %> <%@ page import="com.atlassian.jira.bc.JiraServiceContext" %> <%@ page import="com.atlassian.jira.bc.JiraServiceContextImpl" %> <%@ page import="com.atlassian.jira.bc.user.search.UserPickerSearchService" %> <%@ page import="com.atlassian.jira.security.JiraAuthenticationContext" %> <%@ page import="com.atlassian.plugin.webresource.WebResourceManager" %> <%-- -- userselect.jsp -- -- Required Parameters: -- * label - The description that will be used to identfy the control. -- * name - The name of the attribute to put and pull the result from. -- * formname - The name of the form on which the control is to be placed. This is so the value can be returned -- * userMode - What mode of users should be returned. 1 = All users 2= Assignable Users etc -- Optional Parameters: -- * imageName - determines what the image of the userselect will be called -- * labelposition - determines were the label will be place in relation -- to the control. Default is to the left of the control. -- * size - SIZE parameter of the HTML INPUT tag. -- * maxlength - MAXLENGTH parameter of the HTML INPUT tag. -- * disabled - DISABLED parameter of the HTML INPUT tag. -- * readonly - READONLY parameter of the HTML INPUT tag. -- * onkeyup - onkeyup parameter of the HTML INPUT tag. -- * onfocus - onfocus parameter of the HTML INPUT tag. -- * onchange - onkeyup parameter of the HTML INPUT tag. -- * tabindex - tabindex parameter of the HTML INPUT tag. --%> <%-- Multi-Select User Picker -- set paramater 'multiSelect' to true to enable multi-select -- Required Parameters: -- * col - The textarea number of columns to display. -- * row - The textarea number of rows to display. -- * name - The name of the form on which the control is to be placed. This is so the value can be returned -- * formname - The name of the form on which the control is to be placed. This is so the value can be returned -- * userMode - What mode of users should be returned. 1 = All users 2= Assignable Users etc -- * multiSelect - Enables selection of multiple users --%> <%-- NOTE - ANY CHANGES TO THIS FILE - ALSO UPDATE pickertable.vm --%> <%@ taglib uri="webwork" prefix="webwork" %> <% // Only include extra web resources (css, js) if Ajax Issue Picker turned on JiraAuthenticationContext authenticationContext = ComponentManager.getInstance().getJiraAuthenticationContext(); JiraServiceContext ctx = new JiraServiceContextImpl(authenticationContext.getUser()); UserPickerSearchService searchService = (UserPickerSearchService) ComponentManager.getComponentInstanceOfType(UserPickerSearchService.class); boolean canPerformAjaxSearch = searchService.canPerformAjaxSearch(ctx); if (canPerformAjaxSearch) { WebResourceManager webResourceManager = ComponentManager.getInstance().getWebResourceManager(); webResourceManager.requireResource("jira.webresources:dwr"); webResourceManager.requireResource("jira.webresources:browser-detect"); webResourceManager.requireResource("jira.webresources:yui"); webResourceManager.requireResource("jira.webresources:yui-autocomplete"); webResourceManager.requireResource("jira.webresources:ajax-userpicker"); } %> <% if (canPerformAjaxSearch) { %>
_container"><% } %> " id="" size="" maxlength="" value="" DISABLED READONLY onkeyup="" tabindex="" onchange="" onfocus="" style="" class="" /> ');"> title="" alt="" title="" alt="" name="" name="assigneeImage" src="<%=request.getContextPath()%>/images/icons/filter_public.gif" hspace="0" height="16" width="16" border="0" style="vertical-align:top"> " src="<%= request.getContextPath()%>/images/icons/userpicker_disabled.gif" hspace="0" height="16" width="16" border="0" alt="" style="vertical-align:top"/> <% if (canPerformAjaxSearch) { %>
_results" class="ajax_results">
<% } %>