Hi Thiago! 
OK, my scenario is following. I have stored location of the file to db, and it 
is being pulled from there by 
public String getPictures(){
        if (picture.getPictureLocation() == null || 
picture.getPictureLocation().isEmpty()) {
            return "picturesFolder/no_image.png";
        }
        return "picturesFolder/" + picture.getPictureLocation();
    }
Now, the thing is following: I have two loops, one loop inside another. First 
loop lists all articles, and the second one pictures for that articles. It's 
all displayed as blocks using some css styling, etc. What I have observed is 
that only pictures from the first loop( first article) are being displayed, 
later one are not. What may be the cause to it, and how to prevent such state?

> To: users@tapestry.apache.org
> Subject: Re: Image can't be seen inside a zone
> Date: Mon, 27 May 2013 09:27:36 -0300
> From: thiag...@gmail.com
> 
> On Sun, 26 May 2013 12:52:12 -0300, Nomen Nomanum <getibi...@outlook.com>  
> wrote:
> 
> > Ok, this behavior is very strange to me now. I have stored key location  
> > of my file in db, and it is being pulled via getImages to show the  
> > images to the user, however set of images from one article is displayed,  
> > and from the others is not. Also, images from that one article which are  
> > visible on the index page, once you click on that article, can't be  
> > visible anymore in article gallery listing, even though same code is  
> > used here and there.
> 
> You're probably relying in some variable which is being set in page  
> renders but not in zone updates, probably by use of @SetupRender (or  
> setupRender(), same thing), which isn't called in AJAX requests.
> 
> -- 
> Thiago H. de Paula Figueiredo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
                                          

Reply via email to