KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > communication > sms > component > UISmsHelpContent


1 /**
2  * Copyright 2001-2004 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  **/

5 package org.exoplatform.portlets.communication.sms.component;
6
7 import java.io.IOException JavaDoc;
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 /**
17  * @author Ove Ranheim (oranheim@yahoo.no)
18  * @since Jun 24, 2004 11:26:04 AM
19  */

20 public class UISmsHelpContent extends UIExoComponentBase {
21     
22     final static private String JavaDoc _frameSource = "https://secure.pswin.com/pswincom/gwsignup.asp?accountType=business";
23     final static private String JavaDoc _frameWidth = "100%";
24     final static private String JavaDoc _frameHeight = "500px";
25     
26     public UISmsHelpContent() {
27         setId("UISmsHelpContent");
28     }
29     
30     public void encodeBegin( FacesContext context ) throws IOException JavaDoc {
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