Due to hurricane and outage for past two days...

I am operating my hotspot app (virtual router) on my droid III for my internet 
connection.

So it's a bit slow... like alot

But is it possible there could be a race condition? I am wondering if the page 
injection process is contending with the link handler in separate threads... 
that would be a scary thought.

Well i am not sure what to make of it...

It seems my first pass thru layout and after right at when I click the link... 
I am seeing a null parameter which messes up initialization which is indicating 
something isnt right first pass thru and even after clicking the link... 

I have to relook at the way things are setup and why they are unravelled.

kcola...@live.com
 



From: kcola...@live.com
To: users@tapestry.apache.org
Subject: quarky page injection... late allocation
Date: Tue, 30 Oct 2012 23:14:04 -0400





Hi Folks,

I am rendering my gallery widget and everything looks great... 
I got 

firstpage prevpage link link link nextPage lastPage

which would look like

|<  <  1  2  3  >  >|

obj   obj   obj   obj
obj   obj   obj   obj
obj   obj   obj   obj

so I decide to click link 1 in order to render that page and its objects to be 
rendered in the gallery

In my Gallery.JAVA component I got


    @InjectPage("Home")
    private Home homePage;

and on my link handler I got

    public Object onIndividualPage(int pageNum)
    {
        logger.info("In onPage : ");

        cursor = ((pageNum-1) * itemsPerPage);
        return homePage;
    }

But when I break at the cursor statement... homePage is null

One wuold think that the injection wuold have already occurred... right ?

on subsequent attempted link clicks... subsequent breakpoints into the link 
handler do show that homePage is allocated data

So i am stumped...

It seems at first pass thru the InjectPage is late ?

Anyone got any ideas how I can shake this out ?
Thanks

kcola...@live.com
 

                                                                                
  

Reply via email to