Package org.gridsphere.provider.portletui.beans

Examples of org.gridsphere.provider.portletui.beans.ListBoxBean


            log.debug("AccountRequestAttrCollection: \n"+attrs);
        }
        session.setAttribute("attrs", attrs);

        if ( isEditable(accountRequest) ) {
            ListBoxBean requestStatusTypeBean =
                event.getListBoxBean("requestStatusType");
            requestStatusTypeBean.clear();
            requestStatusTypeBean.setMultipleSelection(false);
            setShowableRequestOption(requestStatusTypeBean, accountRequest);
            setNextState(req, EDIT_REQUEST_JSP);
        } else {
            setNextState(req, VIEW_REQUEST_JSP);
        }
View Full Code Here


            log.error("AccountRequest was already deleted.");
            res.setRenderParameter("message", "Account was already deleted.");
            return ;
        }

        ListBoxBean statusType = event.getListBoxBean("requestStatusType");
        AccountRequest.Status nextStatus =
            AccountRequest.Status.valueOf( statusType.getSelectedValue() );

        String link = PortletRequestUtil.buildPortalUrl(req);
        link += REQUEST_URI_FOR_ACTIVATION;
        Map params = new HashMap();
        params.put("activation_url", link);
View Full Code Here

        if (log.isDebugEnabled()) {
            log.debug("selectedStatus is " + selectedStatus);
        }
        String statusType = selectedStatus;

        ListBoxBean statusTypeBean = event.getListBoxBean("statusTypeBean");
        if ( statusTypeBean != null ) {
            String newStatusType = statusTypeBean.getSelectedValue();
            if ( newStatusType != null ) {
                session.setAttribute(SELECTED_STATUS, newStatusType);
                statusType = newStatusType;
            }
        }
        if (log.isDebugEnabled()) {
            log.debug("about to call getAccountRequestsByStatus, statusType is "
                + statusType);
        }

        List requests = accountService.getAccountRequestsByStatus(statusType);
        setOrderedOids(requests);

        statusTypeBean.clear();
        statusTypeBean.setMultipleSelection(false);
        ListBoxItemBean itemAll = new ListBoxItemBean();
        itemAll.setName("ALL");
        itemAll.setValue("ALL");
        itemAll.setSelected("ALL".equals(statusType));
        statusTypeBean.addBean(itemAll);
        EnumSet allStatus = EnumSet.allOf(AccountRequest.Status.class);
        for (Iterator itr = allStatus.iterator(); itr.hasNext(); ) {
            AccountRequest.Status status = (AccountRequest.Status)itr.next();
            String name = status.toString();
            ListBoxItemBean item = new ListBoxItemBean();
            item.setName(name);
            item.setValue(name);
            item.setSelected(name.equals(statusType));
            statusTypeBean.addBean(item);
        }

        req.setAttribute("requests", requests);

        setNextState(req, LIST_REQUEST_JSP);
View Full Code Here

TOP

Related Classes of org.gridsphere.provider.portletui.beans.ListBoxBean

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.