You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Thorbjørn Ravn Andersen <th...@gmail.com> on 2006/09/12 14:15:09 UTC
How to disable component caching when recompiling JSP-page?
I have found that during development I often have to manually increment
a id attribute on the h:form tag in order to have changes picked up in
the view. My gut feeling is that changing attributes is not discovered.
Is there a way to tell myfaces + tomahawk (both 1.1.3) to build a page
view completely from scratch when a JSP-page is recompiled? I am
willing to take the performance hit :)
(I have looked at the Wiki and with google but do apparently not know
the correct lingo)
Thanks in advance,
Thorbjørn
Re: How to disable component caching when recompiling JSP-page?
Posted by Paul Devine <de...@gmail.com>.
I ran into some things similar seeming to this early on with the default
server-side component STATE_SAVING_METHOD. I switched to
javax.faces.STATE_SAVING_METHOD = client in web.xml for development and no
problems since then. (I've never had to change the `id`(s) by hand.)
- Paul
On 9/12/06, David Delbecq <de...@oma.be> wrote:
>
> Hi,
> Same behaviour here, different solution. We just manually remove the
> session cookie from the browser prior to reaccess the webpage as the
> forms are stored in user sessions. It takes 2 clicks and can be done
> while the script is copying the new jsp to replace old ones.
>
> Thorbjørn Ravn Andersen a écrit :
> > I have found that during development I often have to manually
> > increment a id attribute on the h:form tag in order to have changes
> > picked up in the view. My gut feeling is that changing attributes is
> > not discovered.
> >
> > Is there a way to tell myfaces + tomahawk (both 1.1.3) to build a page
> > view completely from scratch when a JSP-page is recompiled? I am
> > willing to take the performance hit :)
> >
> > (I have looked at the Wiki and with google but do apparently not know
> > the correct lingo)
> >
> > Thanks in advance,
> >
> > Thorbjørn
> >
>
>
Re: How to disable component caching when recompiling JSP-page?
Posted by David Delbecq <de...@oma.be>.
Hi,
Same behaviour here, different solution. We just manually remove the
session cookie from the browser prior to reaccess the webpage as the
forms are stored in user sessions. It takes 2 clicks and can be done
while the script is copying the new jsp to replace old ones.
Thorbjørn Ravn Andersen a écrit :
> I have found that during development I often have to manually
> increment a id attribute on the h:form tag in order to have changes
> picked up in the view. My gut feeling is that changing attributes is
> not discovered.
>
> Is there a way to tell myfaces + tomahawk (both 1.1.3) to build a page
> view completely from scratch when a JSP-page is recompiled? I am
> willing to take the performance hit :)
>
> (I have looked at the Wiki and with google but do apparently not know
> the correct lingo)
>
> Thanks in advance,
>
> Thorbjørn
>