Package com.ibm.xsp.extlib.component.facebook

Examples of com.ibm.xsp.extlib.component.facebook.UILogin


    public void encodeBegin(FacesContext context, UIComponent component)
            throws IOException {
    if(UIFacebookClient.isClientEnabled((UIViewRootEx)context.getViewRoot())) {
          ResponseWriter writer = context.getResponseWriter();
         
          UILogin dialog = (UILogin)component;
 
          writer.startElement("fb:login-button", component);

            writer.writeAttribute("id", component.getClientId(context), null);
         
          if (dialog.getShowFaces() == null) {
            writer.writeAttribute("show_faces", "false", null);
          }
          else {
            writer.writeAttribute("show_faces", dialog.getShowFaces(), null);
          }
 
          if (dialog.getWidth() == null) {
            writer.writeAttribute("width", "", null);
          }
          else {
            writer.writeAttribute("width", dialog.getWidth(), null);
          }
 
          if (dialog.getPerms() == null) {
            writer.writeAttribute("perms", "", null);
          }
          else {
            writer.writeAttribute("perms", dialog.getPerms(), null);
          }
 
          if (dialog.getMaxRows() == null) {
            writer.writeAttribute("max-rows", "", null);
          }
          else {
            writer.writeAttribute("max-rows", dialog.getMaxRows(), null);
          }
    }
    }
View Full Code Here

TOP

Related Classes of com.ibm.xsp.extlib.component.facebook.UILogin

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.