List of usage examples for java.lang SecurityException printStackTrace
public void printStackTrace()
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIPanel panelGroup(Object... args) { UIPanel panelGroup = new HtmlPanelGroup(); System.out.print("panelGroup"); incrementIndent();/* w ww . jav a2 s . com*/ System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) panelGroup).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIComponent) arg) .getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (panelGroup).getChildren().add((UIComponent) arg); } else { ((panelGroup).getFacets()).put((String) ((UIPanel) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (panelGroup.getClass().getDeclaredMethod("setConverter", panelGroup.getClass()) != null) { panelGroup.getClass().getDeclaredMethod("setConverter", panelGroup.getClass()) .invoke(panelGroup, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (panelGroup.getClass().getDeclaredMethod("addValidator", panelGroup.getClass()) != null) { panelGroup.getClass().getDeclaredMethod("addValidator", panelGroup.getClass()) .invoke(panelGroup, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_panelGroup\n"); return panelGroup; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIComponent facet(Object... args) { UIComponent facet = new Facet(); System.out.print("facet"); incrementIndent();/*from w ww. ja va 2 s. c o m*/ System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) facet).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIComponent) arg) .getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { ((UIComponent) facet).getChildren().add((UIComponent) arg); } else { ((Map<String, UIComponent>) ((UIComponent) facet).getFacets()) .put((String) ((UIComponent) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (facet.getClass().getDeclaredMethod("setConverter", facet.getClass()) != null) { facet.getClass().getDeclaredMethod("setConverter", facet.getClass()).invoke(facet, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (facet.getClass().getDeclaredMethod("addValidator", facet.getClass()) != null) { facet.getClass().getDeclaredMethod("addValidator", facet.getClass()).invoke(facet, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_facet\n"); return (UIComponent) facet; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIInput inputTextArea(Object... args) { UIInput inputTextArea = new HtmlInputTextarea(); System.out.print("inputTextArea"); incrementIndent();//w w w . j av a2s . c o m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) inputTextArea).getAttributes().put( ((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIInput) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (inputTextArea).getChildren().add((UIComponent) arg); } else { ((inputTextArea).getFacets()).put((String) ((UIInput) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (inputTextArea.getClass().getDeclaredMethod("setConverter", inputTextArea.getClass()) != null) { inputTextArea.getClass().getDeclaredMethod("setConverter", inputTextArea.getClass()) .invoke(inputTextArea, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (inputTextArea.getClass().getDeclaredMethod("addValidator", inputTextArea.getClass()) != null) { inputTextArea.getClass().getDeclaredMethod("addValidator", inputTextArea.getClass()) .invoke(inputTextArea, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_inputTextArea\n"); return inputTextArea; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIOutput outputFormat(Object... args) { UIOutput outputFormat = new HtmlOutputFormat(); System.out.print("outputFormat"); incrementIndent();//from ww w . j a v a 2 s .c o m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) outputFormat).getAttributes().put( ((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIOutput) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (outputFormat).getChildren().add((UIComponent) arg); } else { ((outputFormat).getFacets()).put((String) ((UIOutput) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (outputFormat.getClass().getDeclaredMethod("setConverter", outputFormat.getClass()) != null) { outputFormat.getClass().getDeclaredMethod("setConverter", outputFormat.getClass()) .invoke(outputFormat, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (outputFormat.getClass().getDeclaredMethod("addValidator", outputFormat.getClass()) != null) { outputFormat.getClass().getDeclaredMethod("addValidator", outputFormat.getClass()) .invoke(outputFormat, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_outputFormat\n"); return outputFormat; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UICommand commandButton(Object... args) { HtmlCommandButton commandButton = new HtmlCommandButton(); System.out.print("commandButton"); incrementIndent();//from w w w . j a v a2 s .c o m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) commandButton).getAttributes().put( ((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UICommand) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { ((UICommand) commandButton).getChildren().add((UIComponent) arg); } else { (((UICommand) commandButton).getFacets()) .put((String) ((UICommand) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (commandButton.getClass().getDeclaredMethod("setConverter", commandButton.getClass()) != null) { commandButton.getClass().getDeclaredMethod("setConverter", commandButton.getClass()) .invoke(commandButton, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (commandButton.getClass().getDeclaredMethod("addValidator", commandButton.getClass()) != null) { commandButton.getClass().getDeclaredMethod("addValidator", commandButton.getClass()) .invoke(commandButton, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_commandButton\n"); return commandButton; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UISelectOne selectOneListbox(Object... args) { UISelectOne selectOneListbox = new HtmlSelectOneListbox(); System.out.print("selectOneListbox"); incrementIndent();// ww w. j av a 2s .c o m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) selectOneListbox).getAttributes().put( ((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UISelectOne) arg) .getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (selectOneListbox).getChildren().add((UIComponent) arg); } else { ((selectOneListbox).getFacets()).put((String) ((UISelectOne) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (selectOneListbox.getClass().getDeclaredMethod("setConverter", selectOneListbox.getClass()) != null) { selectOneListbox.getClass().getDeclaredMethod("setConverter", selectOneListbox.getClass()) .invoke(selectOneListbox, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (selectOneListbox.getClass().getDeclaredMethod("addValidator", selectOneListbox.getClass()) != null) { selectOneListbox.getClass().getDeclaredMethod("addValidator", selectOneListbox.getClass()) .invoke(selectOneListbox, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_selectOneListbox\n"); return selectOneListbox; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UISelectOne selectOneMenu(Object... args) { UISelectOne selectOneMenu = new HtmlSelectOneMenu(); System.out.print("selectOneMenu"); incrementIndent();//from w w w .ja v a 2 s . c o m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) selectOneMenu).getAttributes().put( ((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UISelectOne) arg) .getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (selectOneMenu).getChildren().add((UIComponent) arg); } else { ((selectOneMenu).getFacets()).put((String) ((UISelectOne) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (selectOneMenu.getClass().getDeclaredMethod("setConverter", selectOneMenu.getClass()) != null) { selectOneMenu.getClass().getDeclaredMethod("setConverter", selectOneMenu.getClass()) .invoke(selectOneMenu, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (selectOneMenu.getClass().getDeclaredMethod("addValidator", selectOneMenu.getClass()) != null) { selectOneMenu.getClass().getDeclaredMethod("addValidator", selectOneMenu.getClass()) .invoke(selectOneMenu, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_selectOneMenu\n"); return selectOneMenu; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UISelectOne selectOneRadio(Object... args) { UISelectOne selectOneRadio = new HtmlSelectOneRadio(); System.out.print("selectOneRadio"); incrementIndent();/*from w w w. j a va 2 s.c o m*/ System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) selectOneRadio).getAttributes().put( ((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UISelectOne) arg) .getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (selectOneRadio).getChildren().add((UIComponent) arg); } else { ((selectOneRadio).getFacets()).put((String) ((UISelectOne) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (selectOneRadio.getClass().getDeclaredMethod("setConverter", selectOneRadio.getClass()) != null) { selectOneRadio.getClass().getDeclaredMethod("setConverter", selectOneRadio.getClass()) .invoke(selectOneRadio, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (selectOneRadio.getClass().getDeclaredMethod("addValidator", selectOneRadio.getClass()) != null) { selectOneRadio.getClass().getDeclaredMethod("addValidator", selectOneRadio.getClass()) .invoke(selectOneRadio, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_selectOneRadio\n"); return selectOneRadio; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UISelectMany selectManyListbox(Object... args) { UISelectMany selectManyListbox = new HtmlSelectManyListbox(); System.out.print("selectManyListbox"); incrementIndent();/*from w w w . j ava 2 s .c o m*/ System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) selectManyListbox).getAttributes().put( ((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UISelectMany) arg) .getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (selectManyListbox).getChildren().add((UIComponent) arg); } else { ((selectManyListbox).getFacets()).put((String) ((UISelectMany) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (selectManyListbox.getClass().getDeclaredMethod("setConverter", selectManyListbox.getClass()) != null) { selectManyListbox.getClass().getDeclaredMethod("setConverter", selectManyListbox.getClass()) .invoke(selectManyListbox, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (selectManyListbox.getClass().getDeclaredMethod("addValidator", selectManyListbox.getClass()) != null) { selectManyListbox.getClass().getDeclaredMethod("addValidator", selectManyListbox.getClass()) .invoke(selectManyListbox, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_selectManyListbox\n"); return selectManyListbox; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UISelectMany selectManyMenu(Object... args) { UISelectMany selectManyMenu = new HtmlSelectManyMenu(); System.out.print("selectManyMenu"); incrementIndent();//from w w w .jav a 2 s .co m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) selectManyMenu).getAttributes().put( ((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UISelectMany) arg) .getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (selectManyMenu).getChildren().add((UIComponent) arg); } else { ((selectManyMenu).getFacets()).put((String) ((UISelectMany) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (selectManyMenu.getClass().getDeclaredMethod("setConverter", selectManyMenu.getClass()) != null) { selectManyMenu.getClass().getDeclaredMethod("setConverter", selectManyMenu.getClass()) .invoke(selectManyMenu, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (selectManyMenu.getClass().getDeclaredMethod("addValidator", selectManyMenu.getClass()) != null) { selectManyMenu.getClass().getDeclaredMethod("addValidator", selectManyMenu.getClass()) .invoke(selectManyMenu, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_selectManyMenu\n"); return selectManyMenu; }