This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var messageHandler = { | |
| severityInfo : javax.faces.application.FacesMessage.SEVERITY_INFO, | |
| severityWarning : javax.faces.application.FacesMessage.SEVERITY_WARN, | |
| severityError : javax.faces.application.FacesMessage.SEVERITY_ERROR, | |
| severityFatal : javax.faces.application.FacesMessage.SEVERITY_FATAL, | |
| addMessage : function(summary, detail, severity, control, setInvalid) { | |
| try { | |
| var _clientId = null; | |
| if(control && control != null) { | |
| _clientId = control.getClientId(facesContext); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var _boundControlOrNull = getComponent("title"); | |
| var _summary = "Error - Missing Title"; | |
| var _detail = "Looks like you didn't fill out the Title properly on the form..."; | |
| var _messageObject = new javax.faces.application.FacesMessage(javax.faces.application.FacesMessage.SEVERITY_WARN, _summary, _detail ); | |
| facesContext.addMessage(_boundControlOrNull, _messageObject); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>dominoGuru.com Web Storage Demo</title> | |
| <meta name="description" content="Simple Demo of localStorage and sessionStorage Browser Web Storage"> | |
| <meta name="author" content="Chris Toohey"> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <xp:view | |
| xmlns:xp="http://www.ibm.com/xsp/core" | |
| xmlns:xe="http://www.ibm.com/xsp/coreex"> | |
| <xp:this.resources> | |
| <xp:script | |
| src="/application.jss" | |
| clientSide="false"> | |
| </xp:script> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <button onclick=" | |
| if(validateForm(thisFormObject,"a")) { | |
| submitForm(arguments); | |
| } | |
| ">Submit Changes to Form A</button> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function argumentsAlert() { | |
| alert(arguments.length + " Arguments"); | |
| for(i=0; i < arguments.length; i++) { | |
| alert("Argument " + i + ": " + arguments[i]); | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function validateForm(thisForm,key) { | |
| var returnBoolean = false; | |
| switch(key) { | |
| case "a" : | |
| //check values for Form A | |
| returnBoolean = true; //if conditions met | |
| break | |
| case "b" : | |
| //check values for Form B | |
| returnBoolean = true; //if conditions met | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function validateForm() { | |
| //check some field values to confirm you have what you need to successfully submit | |
| return Boolean; // based on pass/fail | |
| } | |
| function submitForm() { | |
| //Create or Update the UI submission | |
| } | |
| <button onclick=" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var timeFormat = new java.text.SimpleDateFormat("hh:mm aa"); | |
| var dateFormat = new java.text.SimpleDateFormat("MM/dd/yyyy"); | |
| var datetimeFormat = new java.text.SimpleDateFormat("MM/dd/yyyy hh:mm aa"); | |
| function getFirstOfYear() { | |
| var dt:java.util.Date = @Now(); | |
| dt.setMonth(0); | |
| dt.setDate(0); | |
| return dateFormat.format(dt); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function getFirstOfYear() { | |
| return "01/01/" + @RightBack(@Left(@Now(), " "), "/") | |
| } | 
NewerOlder