The home page doesn't have the login logic on it, does it? Are you
persisting something into the session on login that writes the value out?
Likewise remember that the default value only gets set once, so if
you change it, it doesn't change back every time the component goes back
into the pool. So if your page sets this value it'll definitely overwrite
it.
I doubt it's either of those, but worth checking and those are the
first two horses I'd look at before I started hunting zebras.
--- Pat
PS What does the page spec look like where it embeds your component?
> -----Original Message-----
> From: Drew McAuliffe [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 09, 2005 8:36 PM
> To: Tapestry users
> Subject: Very odd problem
>
> I have a very odd problem appearing on a production system that I was
> hoping
> someone might help me with, or at least give me ideas as to what might be
> going on.
>
> Here's the situation: for an application's home page, there is a component
> that shows a list of news items. The component spec looks like this:
> <parameter name="isArchived" default-
> value="@[EMAIL PROTECTED]"/>
> <parameter name="simpleViewRowCount" default-value="5"/>
> <parameter name="pageSize" default-value="5"/>
>
> <component id="newsItemLink" type="ExternalLink">
> <binding name="page" value="literal:news/NewsItemView"/>
> <binding name="parameters" value="ognl:currentItem.id"/>
> </component>
>
> <component id="newsItemHeadline" type="InsertText">
> <binding name="value" value="ognl:currentItem.headline"/>
> </component>
>
> <component id="itemIterator" type="Foreach">
> <binding name="source" value="ognl:list"/>
> <binding name="value" value="ognl:currentItem"/>
> </component>
> <property name="currentItem"/>
>
> <inject property="newsItemDao" object="spring:newsItemDao"/>
>
> The key here is the "simpleViewRowCount" property, which limits the list
> to
> 5 items. The idea is to show only the 5 most recent news items. I've tried
> setting this 3 ways:
> 1. Using the default value of 5
> 2. Explicitly in the home page spec
> 3. Explicitly on the home page itself using an intrinsic component
>
> Here's the weird part. On the QA server, this works exactly as expected.
> The
> last 5 news items show, no more. But on production, all news items show.
> The
> row count property is completely ignored. No matter how I set it, it gets
> completely ignored.
>
> The QA and production environments are running Oracle 10g. There are 2
> differences between the servers:
> 1. The QA server (which works) is running 10.1.2.0.2. The production
> server
> is running 10.1.2.0.0.
> 2. The QA server is using http, and the production server is using https
> (SSL certificate).
>
> Other than that, the systems are identical. The EXACT same war file has
> been
> deployed on both, and this problem only appears on production. The
> wonderful
> part is that I'm in the middle of a friday night production deployment
> with
> this popping up, so there's no way I can do a patch update (if that's even
> the root of the problem).
>
> As another odd twist, the same component is used elsewhere in the
> application (instead of the "Home" page, it's at "news/NewsToc"). It works
> fine there. What I'm afraid of (terribly afraid) is that components could
> just be randomly losing their bindings, leading to all sorts of odd
> problems.
>
> I realize that this would be a difficult bug to reproduce, but I was
> wondering if anyone could help me in figuring out what the one server
> could
> potentially be doing wrong. SOmething about how components receive their
> bindings at runtime, and how an application server internals could somehow
> screw that up (like if they're doing odd things with threading).
>
> This would be hugely helpful. As it is, I'm left crying and scratching my
> head, cursing Oracle for their asininity.
>
> Thanks,
>
> Drew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]