Package org.openfaces.component.select

Examples of org.openfaces.component.select.SelectManyCheckbox


                                 ResponseWriter writer,
                                 SelectManyCheckbox selectManyInputBase,
                                 List<SelectItem> selectItems,
                                 boolean isLineLayout,
                                 boolean isCheckboxWithImages) throws IOException {
        SelectManyCheckbox selectManyCheckbox = (SelectManyCheckbox) selectManyInputBase;
        String clientId = selectManyCheckbox.getClientId(facesContext);

        List<List<SelectItem>> itemsDistribution =
                calculateItemsDistribution(selectItems, isLineLayout, selectManyCheckbox);

        int itemsNumber = 0;
View Full Code Here


        return table;
    }

    @Override
    public void decode(FacesContext context, UIComponent component) {
        SelectManyCheckbox selectManyCheckbox = (SelectManyCheckbox) component;

        Map<String, String[]> requestMap = context.getExternalContext().getRequestParameterValuesMap();

        String clientId = selectManyCheckbox.getClientId(context);

        if (requestMap.containsKey(clientId)) {
            String[] requestValues = requestMap.get(clientId);
            selectManyCheckbox.setSubmittedValue(requestValues);
        } else {
            selectManyCheckbox.setSubmittedValue(new String[0]);
        }
    }
View Full Code Here

        }
    }

    @Override
    public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException {
        SelectManyCheckbox selectManyCheckbox = (SelectManyCheckbox) component;
        return Rendering.getConvertedUISelectManyValue(context, selectManyCheckbox, submittedValue);
    }
View Full Code Here

    protected void renderInitScript(FacesContext facesContext, OUISelectManyInputBase selectManyInputBase,
                                    JSONObject imagesObj, JSONObject stylesObj,
                                    int selectItemCount, AnonymousFunction onchangeFunction)
            throws IOException {
        SelectManyCheckbox selectManyCheckbox = (SelectManyCheckbox) selectManyInputBase;
        Script initScript = new ScriptBuilder().initScript(facesContext, selectManyCheckbox, "O$.ManyCheckbox._init",
                imagesObj,
                stylesObj,
                selectItemCount,
                selectManyCheckbox.isDisabled(),
                selectManyCheckbox.isReadonly(),
                onchangeFunction
        );

        Rendering.renderInitScript(facesContext, initScript,
                Resources.utilJsURL(facesContext),
View Full Code Here

TOP

Related Classes of org.openfaces.component.select.SelectManyCheckbox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.