Gan...@j4fry.org
unread,Feb 3, 2009, 2:57:38 AM2/3/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to j4fry
This thread was moved from our old sourceforge forum:
I liked the framework and kind of figuring out what all we need can be
achieved uding J4FRY.
We have requirement where some part of page should be refreshed
automatically. Can someone suggest how can i achieve this using J4FRY.
RE: Autorefresh of a component
By: ganesh (ganeshpuriProject Admin) - 2008-09-29 07:08
Hi,
Please use the fry:ajax tag to trigger refreshing of your page
and pass the ids of the compoenents that should be rerendered to the
tag.
What exactly are you trying to do?
Regards,
Ganesh
RE: Autorefresh of a component
By: Parvesh Jain (jainparv) - 2008-09-29 09:03
I want to fire refresh of a page without any user events
on a periodic interval. Current way to achieve is by firing javascript
method with windows.setInterval.
RE: Autorefresh of a component
By: ganesh (ganeshpuriProject Admin) - 2008-10-01
16:26
Hi,
Use an unvisible button to rerender parts of your
page. Test the button manually first and later make it invisible with
stlye="display:none". Add a little Javascript that triggers your
button with a timer. Here's a code example:
<h:inputText value="#{testBean.number}" id="first"
converter="org.j4fry.Number"></h:inputText>
<h:commandButton id="ar" value="empty" binding="#
{scriptHelper.bindings['counter']}">
<fry:ajax event="onclick" reRender="first"
action="#{testBean.hochzaehlen}" partial="ar"
disableOnRequest="false"></fry:ajax>
</h:commandButton>
<script type="text/javascript">
function UpdateTimer() {
if(timerID) {
clearTimeout(timerID);
}
var timerID = setTimeout('UpdateTimer()', 1000);
document.getElementById('#
{scriptHelper.clientIdForBindings['counter']}').onclick();
}
UpdateTimer();
</script>
Regards,
Ganesh