Re: How to prevent triggering a request to application on application loadField

[email protected]
Newsgroups gmane.comp.cms.jahia.template
Message-ID <OF9A5B2766.7B8EC729-ONC1257011.00462778-C1257011.00480D81@commaro.com>
Hello Serge,

well, we could contribute, but moving the dispatching from load() to 
getValue() is not helping as in JahiaField.loadField(...) you first call 

theField.load (loadFlag, jParams);

and right afterwards you call 

        if (theField.getValue () != null && theField.getValue ().equals 
("<empty>")) {
            theField.setValue ("");
        }

So if we just move the dispatching to getValue() it will still be 
dispatched everytime a JahiaField.loadField() is called. Can you give us 
some more hints, how we could solve that and what we should care about.

Greetings,
Benjamin 




Serge Huber <[email protected]> 
26.05.2005 11:48
Please respond to
<[email protected]>


To
[email protected]
cc

Subject
Re: How to prevent triggering a request to application on application 
loadField







Unfortunately not with the current implementation. This is one thing 
that has been on my todo list for some time but I never found the time 
to do it. My idea was to move the dispatching to the getValue call in 
the application field. I don't know when I'll get around to do this, but 
another way to speed it up is to contribute it :)

cheers,
  Serge...

[email protected] wrote:

>
> Similar to the site settings we have on the startpage a container with 
> web application fields, which we set with specific webapps to allow 
> absolute field addressing from several other pages. On the startpage 
> there is only the container with the application field, but this web 
> application itself is not displayed on the startpage. Nevertheless 
> when accessing the startpage, loadField is called for the "hidden" 
> webapp field and there a request is sent to the servlet of the 
> application. Is it possible to prevent triggering this request if the 
> field is not shown really?
>
> Benjamin Papez
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.