Closed rickcr closed 12 years ago
I merged this pull request, but made several small changes (formatting, taglib URI, etc). I also removed the check for supported providers in the base class, as it was hard-coded to a specific set of providers and didn't buy much value--checking for connections for non-existent providers results in a not-connected result, so that should suffice.
Cool!
On Fri, Jan 13, 2012 at 4:50 PM, Craig Walls < reply@reply.github.com
wrote:
I merged this pull request, but made several small changes (formatting, taglib URI, etc). I also removed the check for supported providers in the base class, as it was hard-coded to a specific set of providers and didn't buy much value--checking for connections for non-existent providers results in a not-connected result, so that should suffice.
Reply to this email directly or view it on GitHub: https://github.com/SpringSource/spring-social/pull/21#issuecomment-3486904
Rick R
Two JSP tags for determining if user is connected to a given provider (facebook or twitter.) Sample usage is provided in the SocialConnectedTag source. The tld is added to jars META-INF (this was my first time messing around with gradle and I added it via: metaInf << files("src/main/resources/tld/spring-social.tld") might be a better way I'm not sure.)
sample usage in JSP:
<%@ taglib prefix="social" uri="http://org.springframework/social" %>