Then might I suggest that we remove detachment from all *Targets and
centralize it in either Session or RequestCycle?

I tried using the ATTACHED flag, but that is troublesome when the Page
is not attached, but some of its child components are...

We could add metadata on the page, and remove it at the end of the
request on whether it had been detached or not...

Martijn

On Thu, Feb 26, 2009 at 6:34 PM, Igor Vaynberg <igor.vaynb...@gmail.com> wrote:
> it might be a problem. detaching is expensive as it traverses the
> component hierarchy. if there is a way to avoid that we should look
> for it.
>
> -igor
>
> On Thu, Feb 26, 2009 at 7:01 AM, Martijn Dashorst
> <martijn.dasho...@gmail.com> wrote:
>> The patch that is attached to this issue fixes the unit test, and
>> doesn't fail the other tests.
>>
>> Disadvantage: request pages will be detached twice.
>>
>> Not sure if that is a real problem.
>>
>> Martijn
>>
>> On Thu, Feb 26, 2009 at 3:39 PM, Martijn Dashorst (JIRA)
>> <j...@apache.org> wrote:
>>>
>>>     [ 
>>> https://issues.apache.org/jira/browse/WICKET-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>>  ]
>>>
>>> Martijn Dashorst updated WICKET-2130:
>>> -------------------------------------
>>>
>>>    Attachment: wicket-2130.tgz
>>>
>>> untar in jdk-1.4/wicket
>>>
>>> generates a testcase package in src/test/java/org/apache/wicket/wicket2130
>>>
>>> Run the tests to see it fail.
>>>
>>>
>>>> Pages stored in Session.touchedPages aren't detached when part of 
>>>> ModalWindow
>>>> -----------------------------------------------------------------------------
>>>>
>>>>                 Key: WICKET-2130
>>>>                 URL: https://issues.apache.org/jira/browse/WICKET-2130
>>>>             Project: Wicket
>>>>          Issue Type: Bug
>>>>          Components: wicket
>>>>    Affects Versions: 1.3.5, 1.4-RC2
>>>>            Reporter: Martijn Dashorst
>>>>             Fix For: 1.3.6, 1.4-RC3
>>>>
>>>>         Attachments: wicket-2130.tgz
>>>>
>>>>
>>>> Creating a ModalWindow with a Page causes the newly constructed page not 
>>>> to be detached.
>>>> The page is stored in Session.touchedPages, but that list isn't properly 
>>>> processed at the end of the request for detaching.
>>>> I'll try to create a testcase for this.
>>>
>>> --
>>> This message is automatically generated by JIRA.
>>> -
>>> You can reply to this email to add a comment to the issue online.
>>>
>>>
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.5 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

Reply via email to