Hello there! I've posted this before in another topic about page cache
and direct link.

Well my component updates the vist object:

public void selectBlock(IRequestCycle cycle){
        Object o = cycle.getServiceParameters()[0];
        String groupTitle = (String)o;
        Group group = new Group();
        group.setTitle(groupTitle);
        Visit visit = (Visit)getPage().getVisit();
        List groupList = visit.getUser().getGroupList();
        Group selected = (Group)CollectionUtils.find(groupList,new
GroupTitlePredicate(group));
        setSelectedBlock(selected);
        visit.setDefaultGroup(selected);
        cycle.activate("Start");
}

The object is updated as I debug the code and it really has changed it.

Now, One of my pages has a property defined as:

 <property-specification name="group"
type="net.sf.webfeeds.model.persistence.group.Group">
                visit.defaultGroup       
    </property-specification>

Here's a user flow for the application.

User selects a block (it changes the default block on visit)
The block is displayed
User clicks on a link
A page containing a group property is displayed


The problem is the page references an old value for the group. Let's
say the user was on IT group, and clicked on finances group. Altough
its value is changed on the visit object, the page displays the IT
value, but if a refresh happens, the new value is displayed.

Does it has anything to page caching???

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

Reply via email to