Hi,
I have class that extends JiraWebActionSupport and has String[] myUser instance variable. After not valid fill form I return to my view with form. And what I want is that all html control values have to have filled values. For example myUsers looks like:
<select id="myUsers" name="myUsers" multiple="multiple" class="select" size="6"> #foreach ($user in $action.getAllUsers()) <option value="$user.name">$user.displayName ($user.emailAddress)</option> #end </select>
But I don't want to make double loop and iterate over $user in $action.getAllUsers() and check if $user.name equal myUsers[i].
Is that possible?
Or write your own method in your action class to do the same, probably easier.
ListTool might already be available somewhere, if not you can put it in the context...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> But I don't want to make double loop and iterate over $user in $action.getAllUsers() and check if $user.name equal myUsers[i].
Why don't use just use .contains() ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.