Examples of UIException


Examples of org.araneaframework.jsp.UiException

  public int after(Writer out) throws Exception {
    // Type check
    assertControlType("MultiSelectControl");   
   
    if (!"horizontal".equals(type) && !"vertical".equals(type))
      throw new UiException("Attribute 'type' cna be only either 'horizontal' or 'vertical'!");
   
    // Prepare
    MultiSelectControl.ViewModel viewModel = ((MultiSelectControl.ViewModel)controlViewModel);
   
    UiStdFormCheckboxMultiSelectItemLabelTag label = new UiStdFormCheckboxMultiSelectItemLabelTag();
View Full Code Here

Examples of org.araneaframework.jsp.UiException

    // Prepare
    String name = this.getScopedFullFieldId();    
    MultiSelectControl.ViewModel viewModel = ((MultiSelectControl.ViewModel)controlViewModel);
   
    if (viewModel.getSelectItemByValue(value) == null)
      throw new UiException("Value '" + value + "' not found in values list.");
   
    UiUtil.writeOpenStartTag(out, "input");
    UiUtil.writeAttribute(out, "name", name);
    UiUtil.writeAttribute(out, "class", getStyleClass());
    UiUtil.writeAttribute(out, "type", "checkbox");
View Full Code Here

Examples of org.dspace.app.xmlui.utils.UIException

                params.scope.setStartsWith(startsWith);
            }
        }
        catch (BrowseException bex)
        {
            throw new UIException("Unable to create browse parameters", bex);
        }

        this.userParams = params;
        return params;
    }
View Full Code Here

Examples of org.pentaho.platform.api.ui.UIException

    boolean ok = filterPanel.populate( getParameterProviders(), defaultValues );

    if ( !ok ) {
      String msg = Messages.getInstance().getString( "FilterPanelComponent.ERROR_0001_POPULATE" ); //$NON-NLS-1$
      FilterPanelComponent.log.error( msg );
      throw new UIException( msg );
    }

    String actionUrl = urlFactory.getActionUrlBuilder().getUrl();
    Document xForm = filterPanel.getXForm( actionUrl );
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            serviceClient.addMEXService(parentPath + "/dummy.wsdl", serviceInfoBean);

        } catch (Exception e) {
            String msg = "Failed to get service details. " + e.getMessage();
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            client.addRemoteLink(parentPath, name, instance, targetPath);
        } catch (Exception e) {
            String msg = "Failed to add symbolic link "+ name + "to the parent collection "
                    + parentPath + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

        } catch (Exception e) {
            String msg = "Failed to move resource " + oldResourcePath +
                    " to the path " + destinationPath + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

        } catch (Exception e) {
            String msg = "Failed to copy resource " + oldResourcePath +
                    " to the path " + destinationPath + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

        } catch (Exception e) {
            String msg = "Failed to update text content of the resource " +
                    resourcePath + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            client = new ResourceServiceClient(cookie, config, request.getSession());
        } catch (Exception e) {
            String msg = "Failed to initialize the resource service client " +
                    "to get resource tree data. " + e.getMessage();
            log.error(msg, e);
            throw new UIException(msg, e);
        }

        String textBoxId = request.getParameter("textBoxId");
        try {
            ResourceTreeData resourceTreeData = new ResourceTreeData();
            fillSubResourceTree(resourcePath, resourceTreeData, client,textBoxId, parentId,
                    request.getParameter("hideResources") != null);

            String displayHTML = "";
            displayHTML += resourceTreeData.getResourceTree();
            return displayHTML;

        } catch (RegistryException e) {

            String msg = "Failed to generate the resource tree for the resource " +
                    resourcePath + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.