src/main/java/org/efaps/ui/wicket/models/field/UIPicker.java
@Override
    @SuppressWarnings("unchecked")
    public List<Return> executeEvents(final EventType _eventType,
                                      final Object... _objectTuples)
        throws EFapsException
    {
        List<Return> ret = new ArrayList<>();
        if (_eventType.equals(EventType.UI_COMMAND_EXECUTE) && getCommand().hasEvents(EventType.UI_PICKER)) {
            this.executed  = true;
            final Parameter param = new Parameter();
            if (_objectTuples != null) {
                // add all parameters
                for (int i = 0; i < _objectTuples.length; i += 2) {
                    if (i + 1 < _objectTuples.length && _objectTuples[i] instanceof ParameterValues) {
                        param.put((ParameterValues) _objectTuples[i], _objectTuples[i + 1]);
                    }
                }
            }
            param.put(ParameterValues.PARAMETERS, Context.getThreadContext().getParameters());
            param.put(ParameterValues.PARENTPARAMETERS, this.parentParameters);
            if (getInstance() != null) {
                final String[] contextoid = { getInstanceKey() };
                Context.getThreadContext().getParameters().put("oid", contextoid);
                param.put(ParameterValues.CALL_INSTANCE, getInstance());
                param.put(ParameterValues.INSTANCE, getInstance());
            }
            ret = getCommand().executeEvents(EventType.UI_PICKER, param);
            this.returnMap = (Map<String, Object>) ret.get(0).get(ReturnValues.VALUES);
        }
        return ret;
    }
@Override
    @SuppressWarnings("unchecked")
    public List<Return> executeEvents(final EventType _eventType,
                                      final Object... _objectTuples)
        throws EFapsException
    {
        List<Return> ret = new ArrayList<>();
        if (_eventType.equals(EventType.UI_COMMAND_EXECUTE) && getCommand().hasEvents(EventType.UI_PICKER)) {
            this.executed  = true;
            final Parameter param = new Parameter();
            if (_objectTuples != null) {
                // add all parameters
                for (int i = 0; i < _objectTuples.length; i += 2) {
                    if (i + 1 < _objectTuples.length && _objectTuples[i] instanceof ParameterValues) {
                        param.put((ParameterValues) _objectTuples[i], _objectTuples[i + 1]);
                    }
                }
            }
            param.put(ParameterValues.PARAMETERS, Context.getThreadContext().getParameters());
            param.put(ParameterValues.PARENTPARAMETERS, this.parentParameters);
            if (getInstance() != null) {
                final String[] contextoid = { getInstanceKey() };
                Context.getThreadContext().getParameters().put("oid", contextoid);
                param.put(ParameterValues.CALL_INSTANCE, getInstance());
                param.put(ParameterValues.INSTANCE, getInstance());
            }
            ret = getCommand().executeEvents(EventType.UI_PICKER, param);
            this.returnMap = (Map<String, Object>) ret.get(0).get(ReturnValues.VALUES);
        }
        return ret;
    }
@ Override @ SuppressWarnings ( "unchecked" ) public List < Return > executeEvents ( final EventType _eventType , final Object ... _objectTuples ) throws EFapsException { List < Return > ret = new ArrayList <> ( ) ; if ( _eventType . equals ( EventType . UI_COMMAND_EXECUTE ) && getCommand ( ) . hasEvents ( EventType . UI_PICKER ) ) { this . executed = true ; final Parameter param = new Parameter ( ) ; if ( _objectTuples != null ) { // add all parameters for ( int i = 0 ; i < _objectTuples . length ; i += 2 ) { if ( i + 1 < _objectTuples . length && _objectTuples [ i ] instanceof ParameterValues ) { param . put ( ( ParameterValues ) _objectTuples [ i ] , _objectTuples [ i + 1 ] ) ; } } } param . put ( ParameterValues . PARAMETERS , Context . getThreadContext ( ) . getParameters ( ) ) ; param . put ( ParameterValues . PARENTPARAMETERS , this . parentParameters ) ; if ( getInstance ( ) != null ) { final String [ ] contextoid = { getInstanceKey ( ) } ; Context . getThreadContext ( ) . getParameters ( ) . put ( "oid" , contextoid ) ; param . put ( ParameterValues . CALL_INSTANCE , getInstance ( ) ) ; param . put ( ParameterValues . INSTANCE , getInstance ( ) ) ; } ret = getCommand ( ) . executeEvents ( EventType . UI_PICKER , param ) ; this . returnMap = ( Map < String , Object > ) ret . get ( 0 ) . get ( ReturnValues . VALUES ) ; } return ret ; }
Execute events.

@param _eventType the event type
@param _objectTuples the object tuples
@return the list< return>
@throws EFapsException on error
Execute events .