Example:
socialShare.xhtml
SocialShareTestBean.java
@ViewScoped
@ManagedBean
public class SocialShareTestBean implements Serializable {
private static final long serialVersionUID = 3588046341457218671L;
private String layout = "1";
private String url = "http://jsf.playerfinder.net";
private String text = "JSF2 cool components";
private boolean showGooglePlus = true;
private boolean showFacebook = true;
private boolean showTwitter = true;
private boolean showLinkedIn = true;
public String getLayout() {
return layout;
}
public void setLayout(String layout) {
this.layout = layout;
}
public boolean isShowGooglePlus() {
return showGooglePlus;
}
public void setShowGooglePlus(boolean showGooglePlus) {
this.showGooglePlus = showGooglePlus;
}
public boolean isShowFacebook() {
return showFacebook;
}
public void setShowFacebook(boolean showFacebook) {
this.showFacebook = showFacebook;
}
public boolean isShowTwitter() {
return showTwitter;
}
public void setShowTwitter(boolean showTwitter) {
this.showTwitter = showTwitter;
}
public boolean isShowLinkedIn() {
return showLinkedIn;
}
public void setShowLinkedIn(boolean showLinkedIn) {
this.showLinkedIn = showLinkedIn;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}