Spring Social

org.springframework.social.connect.web.taglib
Class SocialConnectedTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.springframework.web.servlet.tags.RequestContextAwareTag
          extended by org.springframework.social.connect.web.taglib.BaseSocialConnectedTag
              extended by org.springframework.social.connect.web.taglib.SocialConnectedTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public class SocialConnectedTag
extends BaseSocialConnectedTag

JSP Tag to return true/false if you're connected to a provider. Sample usages in JSP: Include at top of JSP: <%@ taglib prefix="social" uri="http://org.springframework/social" %> [ show some FB profile info ] OR another usage, more suitable for if you need to toggle on a page a connect check or multiple checks need to be made: [ Show Disconnect link ] [ Show Connect Button/link/form ] Note: You could use social:notConnected tag in place of using c:if and having to set the page scoped connectedToFB var, but it's a bit more efficient to not have to make the FB connection more than once on page

Author:
Rick Reumann, Craig Walls
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.social.connect.web.taglib.BaseSocialConnectedTag
provider
 
Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
SocialConnectedTag()
           
 
Method Summary
protected  int doStartTagInternal()
           
 
Methods inherited from class org.springframework.social.connect.web.taglib.BaseSocialConnectedTag
evaluateBodyIfConnected, setProvider
 
Methods inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
doCatch, doFinally, doStartTag, getRequestContext
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialConnectedTag

public SocialConnectedTag()
Method Detail

doStartTagInternal

protected int doStartTagInternal()
                          throws java.lang.Exception
Specified by:
doStartTagInternal in class org.springframework.web.servlet.tags.RequestContextAwareTag
Throws:
java.lang.Exception

Spring Social