I’m following Twitter website to create a Tweet Button on my own website.
The problem is, when I reRender the page, it reRenders the button too, and I don’t know
why, but the button just disappears.
I’m using JSF 1.2
<a href="http://twitter.com/share" class="twitter-share-button"
data-url="http://www.mywebsite.com"
data-text="My Text"
data-count="vertical"
data-via="MyTwitter">Tweet
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"/></a>
Before
after

I’ve switched to iframe
By doing this, reRender will not affect the button.