You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa" <da...@xs4all.nl> on 2004/01/07 10:35:46 UTC

Non rendering image

Hi,

Shouldn't the following code just produce the Tapestry icon on the screen?
Spindle likes it, no errors are thrown and the normal src= *does* show the 
icon as expected when run through an html editor.

What could be the reason for the icon not being be found when rendered?

.html
<span jwcid="$content$">
  <span jwcid="@Body">
   <div id="doc">
    <span jwcid="testImage" src="../../../images/ico_t.gif" alt="T" icon"/>
   </div>
  </span>
</span>

.page
<component id="testImage" type="Image">
  <binding name="image" expression="assets.tapestry_icon"/>
</component
<context-asset name="tapestry_icon" path="images/ico_t.gif"/>

*output*
...
<img src="/images/ico_t.gif" border="0" alt="Tapestry icon"/>
...

Slowly going mad here :(

TIA
Fermin DCG


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


Re: Non rendering image

Posted by Geoff Longman <gl...@intelligentworks.com>.
This wouldn't work if your /images directory is under WEB-INF as you
described in your last message.

try

<context-asset name="tapestry_icon" path="WEB-INF/images/ico_t.gif"/>

I will build a test project to see if I get the same behaviour. Are you
using beta3 or the stuff in CVS?

Geoff

----- Original Message -----
From: "F. Da Costa" <da...@xs4all.nl>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, January 07, 2004 4:35 AM
Subject: Non rendering image


> Hi,
>
> Shouldn't the following code just produce the Tapestry icon on the screen?
> Spindle likes it, no errors are thrown and the normal src= *does* show the
> icon as expected when run through an html editor.
>
> What could be the reason for the icon not being be found when rendered?
>
> .html
> <span jwcid="$content$">
>   <span jwcid="@Body">
>    <div id="doc">
>     <span jwcid="testImage" src="../../../images/ico_t.gif" alt="T"
icon"/>
>    </div>
>   </span>
> </span>
>
> .page
> <component id="testImage" type="Image">
>   <binding name="image" expression="assets.tapestry_icon"/>
> </component
> <context-asset name="tapestry_icon" path="images/ico_t.gif"/>
>
> *output*
> ...
> <img src="/images/ico_t.gif" border="0" alt="Tapestry icon"/>
> ...
>
> Slowly going mad here :(
>
> TIA
> Fermin DCG
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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


Re: Non rendering image (SOLVED)

Posted by Geoff Longman <gl...@intelligentworks.com>.
I could be eclipse. After the no show, try right clicking on the folder and
chosing 'refresh'.
If that fixes it there's a bug in Eclipse.

Geoff
----- Original Message -----
From: "F. Da Costa" <da...@xs4all.nl>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, January 07, 2004 9:55 AM
Subject: Re: Non rendering image (SOLVED)


> Geoff Longman wrote:
> > Umm, any reason why this looks like it does?
> >
> > <span jwcid="testImage" src="../../../images/ico_t.gif" alt="T" icon"/>
> U u h h, typo maybe?
>
> There seemed to be something amiss on the filesystem itself (W2k).
> After I recopied the individual gif (instead of dragging & dropping the
> whole images folder in Eclipse) it worked.
> Added a second and no show, recopied and it also worked (Maybe its time to
> say farewell to MS and switch to Linux).
>
> If nothing else I learned a lot about context stuff.
>
> Thx guys.
>
> On to the type that cannot cast to its own type.
>
> >
> > the icon"/> at the end  is confusing.
> >
> > Geoff
> > ----- Original Message -----
> > From: "F. Da Costa" <da...@xs4all.nl>
> > To: <ta...@jakarta.apache.org>
> > Sent: Wednesday, January 07, 2004 4:35 AM
> > Subject: Non rendering image
> >
> >
> >
> >>Hi,
> >>
> >>Shouldn't the following code just produce the Tapestry icon on the
screen?
> >>Spindle likes it, no errors are thrown and the normal src= *does* show
the
> >>icon as expected when run through an html editor.
> >>
> >>What could be the reason for the icon not being be found when rendered?
> >>
> >>.html
> >><span jwcid="$content$">
> >>  <span jwcid="@Body">
> >>   <div id="doc">
> >>    <span jwcid="testImage" src="../../../images/ico_t.gif" alt="T"
> >
> > icon"/>
> >
> >>   </div>
> >>  </span>
> >></span>
> >>
> >>.page
> >><component id="testImage" type="Image">
> >>  <binding name="image" expression="assets.tapestry_icon"/>
> >></component
> >><context-asset name="tapestry_icon" path="images/ico_t.gif"/>
> >>
> >>*output*
> >>...
> >><img src="/images/ico_t.gif" border="0" alt="Tapestry icon"/>
> >>...
> >>
> >>Slowly going mad here :(
> >>
> >>TIA
> >>Fermin DCG
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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


Re: Non rendering image (SOLVED)

Posted by "F. Da Costa" <da...@xs4all.nl>.
Geoff Longman wrote:
> Umm, any reason why this looks like it does?
> 
> <span jwcid="testImage" src="../../../images/ico_t.gif" alt="T" icon"/>
U u h h, typo maybe?

There seemed to be something amiss on the filesystem itself (W2k).
After I recopied the individual gif (instead of dragging & dropping the 
whole images folder in Eclipse) it worked.
Added a second and no show, recopied and it also worked (Maybe its time to 
say farewell to MS and switch to Linux).

If nothing else I learned a lot about context stuff.

Thx guys.

On to the type that cannot cast to its own type.

> 
> the icon"/> at the end  is confusing.
> 
> Geoff
> ----- Original Message -----
> From: "F. Da Costa" <da...@xs4all.nl>
> To: <ta...@jakarta.apache.org>
> Sent: Wednesday, January 07, 2004 4:35 AM
> Subject: Non rendering image
> 
> 
> 
>>Hi,
>>
>>Shouldn't the following code just produce the Tapestry icon on the screen?
>>Spindle likes it, no errors are thrown and the normal src= *does* show the
>>icon as expected when run through an html editor.
>>
>>What could be the reason for the icon not being be found when rendered?
>>
>>.html
>><span jwcid="$content$">
>>  <span jwcid="@Body">
>>   <div id="doc">
>>    <span jwcid="testImage" src="../../../images/ico_t.gif" alt="T"
> 
> icon"/>
> 
>>   </div>
>>  </span>
>></span>
>>
>>.page
>><component id="testImage" type="Image">
>>  <binding name="image" expression="assets.tapestry_icon"/>
>></component
>><context-asset name="tapestry_icon" path="images/ico_t.gif"/>
>>
>>*output*
>>...
>><img src="/images/ico_t.gif" border="0" alt="Tapestry icon"/>
>>...
>>
>>Slowly going mad here :(
>>
>>TIA
>>Fermin DCG
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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


Re: Non rendering image

Posted by Geoff Longman <gl...@intelligentworks.com>.
Umm, any reason why this looks like it does?

<span jwcid="testImage" src="../../../images/ico_t.gif" alt="T" icon"/>

the icon"/> at the end  is confusing.

Geoff
----- Original Message -----
From: "F. Da Costa" <da...@xs4all.nl>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, January 07, 2004 4:35 AM
Subject: Non rendering image


> Hi,
>
> Shouldn't the following code just produce the Tapestry icon on the screen?
> Spindle likes it, no errors are thrown and the normal src= *does* show the
> icon as expected when run through an html editor.
>
> What could be the reason for the icon not being be found when rendered?
>
> .html
> <span jwcid="$content$">
>   <span jwcid="@Body">
>    <div id="doc">
>     <span jwcid="testImage" src="../../../images/ico_t.gif" alt="T"
icon"/>
>    </div>
>   </span>
> </span>
>
> .page
> <component id="testImage" type="Image">
>   <binding name="image" expression="assets.tapestry_icon"/>
> </component
> <context-asset name="tapestry_icon" path="images/ico_t.gif"/>
>
> *output*
> ...
> <img src="/images/ico_t.gif" border="0" alt="Tapestry icon"/>
> ...
>
> Slowly going mad here :(
>
> TIA
> Fermin DCG
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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