Package com.liferay.faces.alloy.component.inputtime

Examples of com.liferay.faces.alloy.component.inputtime.InputTime


  public void timeSelectListener(TimeSelectEvent timeSelectEvent) {

    FacesContext facesContext = FacesContext.getCurrentInstance();
    Date selectedTime = timeSelectEvent.getTime();
    InputTime inputTime = (InputTime) timeSelectEvent.getComponent();
    String timePattern = inputTime.getTimePattern();
    SimpleDateFormat simpleDateFormat = new SimpleDateFormat(timePattern);
    String timeZoneString = inputTime.getTimeZone();
    TimeZone timeZone = TimeZone.getTimeZone(timeZoneString);
    simpleDateFormat.setTimeZone(timeZone);

    String selectedTimeFormatted = simpleDateFormat.format(selectedTime);
    FacesMessage facesMessage = new FacesMessage("Received 'timeSelectEvent' for date with value '" +
View Full Code Here

TOP

Related Classes of com.liferay.faces.alloy.component.inputtime.InputTime

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.