Sum multum faciens et de XSLT jQuery et cogitatio vellem participem paucis snippets ut alii reperio utilis in futura.
Verbigratia 1: Emittunt simplicissimum JavaScript / jQuery in XSLT:
<p:template match="something" XML:space="preserve">
<!– Blank de query odio amicitiam occultam agri –>
<script type="text/javascript">
$(document).paratos(munus(){
$("#QueryFriendlyFilters").Val("empty");
});
</script></p:Template>
Qui emittit frenum aliquod exspectat, ut JavaScript in page ut perficiam loading (propter $(document).paratos(...)) deinde ponit occultam agri pretium nomine QueryFriendlyFilters litteralem valorem "vacuum".
Verbigratia 2: Utor <p:si> sisto 'maior', 'Minus ", etc.
<p:template match="something" XML:space="preserve">
<div id="fdcAllFilters">
<p:if test="@Count>0">
<span class="fdcFilterLabel">Current odio:</span>
</p:si><!– plus effercio hic fit. –>
</p:Template>
Si passio impedit quo supra nomine snippet "comes" et "quid" quam elementum nulla. Obvius XML post hoc esset quoddam velut:"
<aliquid comes = "V" />
Verbigratia 3: Per omnia elementa REDDO, jQuery vocat interspersing.
<!– Per omnes rectas REDDO odio et expandent links. –>
<p:for-each select="UserFilter"><a class="FilterHref" href="javascript:mySubmitPage(‘RemoveUserFilter’,'{ID @}`)">[X]</a>
<span class="fdcFilterLabel"><p:value-of select="@FilterValue"/></span>
<script type="text/javascript">$(document).paratos(munus(){
<p:text><![CDATA[$("#QueryFriendlyFilters").Val( ($("#QueryFriendlyFilters").Val() + " ]]></p:text>\"<p:value-of select="@FilterValue"/>\"<p:text><![CDATA["));]]></p:text>
});</script>
</p:nam quisque->
Sed ut snippet sit amet est et multiplex modus faciendi.
Post haec dure sicut hoc spectat ad pron:
<UserFilter id = "CXXIII" FilterValue = "xyzzy" />
Hoc est iterando per snippet <UserFilter> nodorum.
Primo quod cum emittit anchoram tag clicked invocat a JavaScript in page munus, quod iam est, "MySubmitPage" et pertransit in valorem attributum <UserFilter> node nomine "ID".
Tunc qui emittit quidam jQuery exspectat Page onero. JQuery updates agro absconditum, quod nominatur "QueryFriendlyFilters" addito pretio FilterValue attributum. Note omnes insanas <p:text> et <![CDATA[ ... ]]> effercio.
Quod suus eam, Spero is succurro!
</finem>
Sequi me in Twitter ad http://www.twitter.com/pagalvin