Re: Decide what to rerender on server side?

2014-09-05 Thread Karl Kildén
Thanks guys! <3 On 5 September 2014 12:51, Howard W. Smith, Jr. wrote: > http://showcase.omnifaces.org/utils/Ajax > > click the AjaxBean tab in the Source code panel on the showcase page (see > below) > > > import org.omnifaces.util.Ajax; > @ManagedBean@RequestScopedpublic class AjaxBean { > >

Re: Decide what to rerender on server side?

2014-09-05 Thread Howard W. Smith, Jr.
http://showcase.omnifaces.org/utils/Ajax click the AjaxBean tab in the Source code panel on the showcase page (see below) import org.omnifaces.util.Ajax; @ManagedBean@RequestScopedpublic class AjaxBean { public void update() { Ajax.update("form:timestamp"); } public void ca

Re: Decide what to rerender on server side?

2014-09-05 Thread Thomas Andraschko
FacesContext.getCurrentInstance ().getPartialViewContext

Re: Decide what to rerender on server side?

2014-09-04 Thread Karl Kildén
Hi Howard, Well they use custom ajax so not sure it would be very easy to understand but eventually I will look at it yes :-) Still interested in hearing some pro input from myfaces guys first Can you link me the feature in omnifaces? I cannot find it. Regarding primefaces I don't want to be to d

Re: Decide what to rerender on server side?

2014-09-04 Thread Howard W. Smith, Jr.
Karl, you could look at PrimeFaces requestContext implementation (source code). also, you can maybe ask for something like this to be added as a feature request in MYFACES JIRA. Is there any reason why you prefer not to use PrimeFaces requestContext or the similar feature that is available in Omn

Decide what to rerender on server side?

2014-09-04 Thread Karl Kildén
Primefaces offers several ways to do client side stuff from the server. For examples see here: http://www.primefaces.org/showcase/ui/misc/requestContext.xhtml While I use primefaces I prefer to keep my hands out of the cookie jar with stuff like this. I mean a datepicker can be replaced with a js