You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nomen Nomanum <ge...@outlook.com> on 2013/05/23 11:17:35 UTC

Image can't be seen inside a zone

I have images listing wrapped inside a zone, however I am unable to see them. What may cause such behavior? From the code itself, everything is OK, since the same code I have applied already on other spot, and it works great.
 		 	   		  

RE: Image can't be seen inside a zone

Posted by Nomen Nomanum <ge...@outlook.com>.
Also, in the zone I get following error from the firebug:
ConnectioncloseContent-EncodinggzipContent-Typetext/html;charset=UTF-8DateMon, 27 May 2013 18:05:00 GMTServerApache-Coyote/1.1Transfer-EncodingchunkedX-Tapestry-ErrorMessageException%20in%20method%20null%2C%20parameter%20%231%3A%20Exception%20converting%20%27gfx%27%20to%20instance%20of%20java.lang.Long%20%28id%20type%20for%20entity%20rs.co.dw.proba.entities.Artikal%29%3A%20Coercion%20of%20gfx%20to%20type%20java.lang.Long%20%28via%20String%20--%3E%20Long%29%20failed%3A%20For%20input%20string%3A%20%22gfx%22
GET galleryImage.png
 500 Internal Server Errorlocalhost:808016,7 KB[::1]:8080
So, it is not render in the zone ever?
> From: getibicus@outlook.com
> To: users@tapestry.apache.org
> Subject: RE: Image can't be seen inside a zone
> Date: Mon, 27 May 2013 18:35:54 +0100
> 
> 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: thiagohp@gmail.com
> > 
> > On Sun, 26 May 2013 12:52:12 -0300, Nomen Nomanum <ge...@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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> > 
>  		 	   		  
 		 	   		  

RE: Image can't be seen inside a zone

Posted by Nomen Nomanum <ge...@outlook.com>.
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: thiagohp@gmail.com
> 
> On Sun, 26 May 2013 12:52:12 -0300, Nomen Nomanum <ge...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
 		 	   		  

Re: Image can't be seen inside a zone

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Sun, 26 May 2013 12:52:12 -0300, Nomen Nomanum <ge...@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Image can't be seen inside a zone

Posted by Nomen Nomanum <ge...@outlook.com>.
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.




> To: users@tapestry.apache.org
> Subject: Re: Image can't be seen inside a zone
> Date: Thu, 23 May 2013 08:51:27 -0300
> From: thiagohp@gmail.com
> 
> On Thu, 23 May 2013 06:17:35 -0300, Nomen Nomanum <ge...@outlook.com>  
> wrote:
> 
> > I have images listing wrapped inside a zone, however I am unable to see  
> > them. What may cause such behavior? From the code itself, everything is  
> > OK, since the same code I have applied already on other spot, and it  
> > works great.
> 
> Have you checked the HTML DOM with Firebug or other HTML inspector after  
> the zone update? Or is this happening even before zone updates are done?
> 
> -- 
> Thiago H. de Paula Figueiredo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
 		 	   		  

Re: Image can't be seen inside a zone

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 23 May 2013 06:17:35 -0300, Nomen Nomanum <ge...@outlook.com>  
wrote:

> I have images listing wrapped inside a zone, however I am unable to see  
> them. What may cause such behavior? From the code itself, everything is  
> OK, since the same code I have applied already on other spot, and it  
> works great.

Have you checked the HTML DOM with Firebug or other HTML inspector after  
the zone update? Or is this happening even before zone updates are done?

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org