Hermod,

You should really set this to be a blank or transparent pixel image.  Setting 
things to a blank source should re-invoke
the current page so that makes perfect sense to me that your bean is being 
called twice: because the src="" makes your
page calls itself!  This isn't a clay issue but (basic) html that I learned 
about when I started making web pages..  The
same thing happens with the ref tag if you use a blank src="" attribute.

Regards,
David

-----Original Message-----
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 01, 2006 7:19 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: SV: SV: SV: [Shale] Backingbean beeing created twice
-Solved!!!!


Hi

This is what makes things go wrong :

<img src="" alt="" width="107" height="66" />

In my template I have som mockup html code that gets excluded by Clay
because of the allowBody=false. Within the mockup html I have the above
image.

This can be reproduced by creating an empty clay html template, and then run
once with the empty template and once with the above in it. The backing bean
will be instatiated once with empty content, and twice with the image on it.


Hermod


-----Opprinnelig melding-----
Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
Sendt: 1. april 2006 13:50
Til: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Emne: SV: SV: SV: [Shale] Backingbean beeing created twice - Almost solved!

Hi

It seems that this might be a problem with Clay. I created a brand new web
project, and got it working so that it showed a page with Hello on it, and
with a corresponding backing bean, which was being called once. Then I
replaced the "empty" template with the one that I have been using, and voila
my backing bean is suddenly being instantiated twice.

Next step was to start to strip this down, eliminating any possible culprit.
So all clay replacement symbols where removed first, then all meta tags,
then all javascript an stylesheet imports. Still my backing bean is being
instantiated twice. So now I had come so far that I was left with just a
straight forward page with only html tags on it. Still being instantiated
twice. So drastic measures had to be taken - Strip away all except a basic
html-head-body with nothing in it. VOILA - Backing bean is being
instantiated once again.

So now I am going to rebuild the page with the html content, bit by bit
until I can see where it is going wrong.

Hermod


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to