1 5 package org.exoplatform.portlets.communication.sms.component; 6 7 import java.io.IOException ; 8 9 import javax.faces.component.UIComponent; 10 import javax.faces.context.FacesContext; 11 import javax.faces.context.ResponseWriter; 12 import org.exoplatform.faces.core.component.UIExoComponentBase; 13 14 15 16 20 public class UISmsHelpContent extends UIExoComponentBase { 21 22 final static private String _frameSource = "https://secure.pswin.com/pswincom/gwsignup.asp?accountType=business"; 23 final static private String _frameWidth = "100%"; 24 final static private String _frameHeight = "500px"; 25 26 public UISmsHelpContent() { 27 setId("UISmsHelpContent"); 28 } 29 30 public void encodeBegin( FacesContext context ) throws IOException { 31 ResponseWriter w = context.getResponseWriter() ; 32 w.write("<iframe style='border: none' SRC='"+ _frameSource + "'" + 33 " width='"+ _frameWidth + "'" + 34 " height='"+ _frameHeight +"'" + 35 " scrolling='auto' frameborder='0'>") ; 36 w. write("[Your user agent does not support frames or is currently configured " + 37 "not to display frames. However, you may visit") ; 38 w.write("</iframe>"); 39 } 40 41 42 } 43 | Popular Tags |