private Object getSubmittedValue(UIInput input) { return input.getSubmittedValue() == null && input.isLocalValueSet() ? input.getValue() : input.getSubmittedValue(); } }
/** * Returns the submitted value in dd-MM-yyyy format. */ @Override public Object getSubmittedValue() { return "" + ddd.getSubmittedValue() + prefixo.getSubmittedValue() + sufixo.getSubmittedValue(); }
/** * Returns the submitted value in dd-MM-yyyy format. */ @Override public Object getSubmittedValue() { return day.getSubmittedValue() + "-" + month.getSubmittedValue() + "-" + year.getSubmittedValue(); }
private static Object getComponentValue(UIComponent component) { UIInput inputComponent = (UIInput) component; return inputComponent.getSubmittedValue() != null ? inputComponent.getSubmittedValue() : inputComponent.getLocalValue(); } }
private static Object getComponentValue(UIComponent component) { UIInput inputComponent = (UIInput) component; return inputComponent.getSubmittedValue() != null ? inputComponent.getSubmittedValue() : inputComponent.getLocalValue(); } }
private static Object getComponentValue(UIComponent component) { UIInput inputComponent = (UIInput) component; return inputComponent.getSubmittedValue() != null ? inputComponent.getSubmittedValue() : inputComponent.getLocalValue(); } }
private BBox getCurrentValue( HtmlInputBBox component ) { Object submittedValue = ( (UIInput) component ).getSubmittedValue(); if ( submittedValue != null ) { return (BBox) submittedValue; } BBox currentValue = null; Object currentObj = getValue( component ); if ( currentObj != null ) { currentValue = (BBox) currentObj; } return currentValue; }
@Override public Object getSubmittedValue() { return getWrapped().getSubmittedValue(); }
@Override public void decode(FacesContext facesContext, UIComponent uiComponent) { super.decode(facesContext, uiComponent); UIInput uiInput = (UIInput) uiComponent; Object submittedValue = uiInput.getSubmittedValue(); // FACES-3139 Avoid the possibility of a NullPointerException for custom components if (submittedValue == null) { uiInput.setSubmittedValue(""); } }
@Override public void decode(FacesContext facesContext, UIComponent uiComponent) { super.decode(facesContext, uiComponent); UIInput uiInput = (UIInput) uiComponent; Object submittedValue = uiInput.getSubmittedValue(); // FACES-3139 Avoid the possibility of a NullPointerException for custom components if (submittedValue == null) { uiInput.setSubmittedValue(""); } }
public void validateLogin(FacesContext context, UIComponent component, Object value) throws ValidatorException { //I suppose it's a typo, but your validate method lacks the return type. String username = (String) value; UIInput passwordInput = component.getAttributes().containsKey("pass") ? (UIInput) component.getAttributes().get("pass") : null; if(passwordInput != null) { //Just to be sure the input was added as a parameter successfuly String submittedPassword = passwordInput.getSubmittedValue(); //Now, do your validations based on the strings "username" //and "password". } }
@Override public void decode(FacesContext facesContext, UIComponent uiComponent) { super.decode(facesContext, uiComponent); UIInput uiInput = (UIInput) uiComponent; Object submittedValue = uiInput.getSubmittedValue(); // FACES-3139 Avoid the possibility of a NullPointerException for custom components if (submittedValue == null) { uiInput.setSubmittedValue(""); } }
public String getValue(FacesContext facesContext, UIComponent uiComponent) { // for input components, get the submitted value if (uiComponent instanceof UIInput) { Object submittedValue = ((UIInput) uiComponent).getSubmittedValue(); if (submittedValue != null && submittedValue instanceof String) { return (String) submittedValue; } } return DomBasicInputRenderer.converterGetAsString(facesContext, uiComponent, ((UIInput) uiComponent).getValue()); } }
public String getValue(FacesContext facesContext, UIComponent uiComponent) { // for input components, get the submitted value if (uiComponent instanceof UIInput) { Object submittedValue = ((UIInput) uiComponent).getSubmittedValue(); if (submittedValue != null && submittedValue instanceof String) { return (String) submittedValue; } } return DomBasicInputRenderer.converterGetAsString(facesContext, uiComponent, ((UIInput) uiComponent).getValue()); }
@Override public void decode(FacesContext facesContext, UIComponent uiComponent) { super.decode(facesContext, uiComponent); UIInput uiInput = (UIInput) uiComponent; Object submittedValue = uiInput.getSubmittedValue(); // FACES-3139 Avoid the possibility of a NullPointerException for custom components if (submittedValue == null) { uiInput.setSubmittedValue(""); } }
@Override public void decode(FacesContext facesContext, UIComponent uiComponent) { super.decode(facesContext, uiComponent); UIInput uiInput = (UIInput) uiComponent; Object submittedValue = uiInput.getSubmittedValue(); // FACES-3139 Avoid the possibility of a NullPointerException for custom components if (submittedValue == null) { uiInput.setSubmittedValue(""); } }
public void listenerAddContact(ActionEvent event) { UIComponent component = event.getComponent(); List<UIComponent> childs = component.getChildren(); String pattern = "^objectDocumentContactUidInput$|.*[:\\.]objectDocumentContactUidInput$"; for (UIComponent child : childs) { if (child.getId().matches(pattern)) { String newContactRef = (String) ((UIInput) child).getSubmittedValue(); addContact(newContactRef); break; } } }
public void listenerAddTraining(ActionEvent event) { UIComponent component = event.getComponent(); List<UIComponent> childs = component.getChildren(); String pattern = "^objectDocumentTrainingUidInput$|.*[:\\.]objectDocumentTrainingUidInput$"; for (UIComponent child : childs) { if (child.getId().matches(pattern)) { String newRef = (String) ((UIInput) child).getSubmittedValue(); addTraining(newRef); break; } } }
public Object getSubmittedValue() { setupPerspective(); Object retValue = innerGetDelegateInput().getSubmittedValue(); teardownPerspective(); return retValue; }
public void listenerAddTraining(ActionEvent event) { UIComponent component = event.getComponent(); UIComponent trainingInput = component.findComponent(":document_create:nxl_LayoutStage:objectDocumentTrainingFieldInput"); if(trainingInput == null){ trainingInput = component.findComponent(":document_edit:nxl_LayoutStage:objectDocumentTrainingFieldInput"); } if(trainingInput != null){ String newContactRef = (String) ((UIInput) trainingInput).getSubmittedValue(); addTraining(newContactRef); } }