After a long battle..i have progressed an inch forward!

The StudyModel that implements IModel seemed to have the problem.
I did not set the object in setObject...after modifying it in the following
way..the Refresh button works.

    public Object getObject() {
        return this;

    public void setObject(Object object) {
        StudyModel model = (StudyModel)object;
        this.studyVO = model.getStudyVO();


But I am not there as when I lookup and then click on an item from
the list, the form again is empty..meaning the model is not being updated.

So basically.
1.Search  Panel - Search items
2.SearchResults - onClick
3.Details- displayed correctly..., now I click cancel, tht hides the details
4. I click on New/Refresh button on Search Panel
5. A new details page is loaded - the effect of modifying setObject() in the
6.I click on cancel on details panel
7. And perform steps 1 to 2
8. An empty details panel is displayed...

If i can get a single thread of clue..will fix this and cement it !!!!
Obviously I dont have a grip over Models..


On Wed, Aug 4, 2010 at 11:12 AM, Nivedan Nadaraj <>wrote:

> Hi
> After I added setOutputMarkupPlaceHolderTag(true) to the details panel, the
> Ajax function works and I can see the details panel. (Which I could not
> earlier)
> However, the problem still remains as in the model has not been updated and
> still refers to the stale/old one.
> @avrahmr
> I used the setModel but I get a wicket runtime exception.
> Thanks for your thoughts.
> Niv
> On Wed, Aug 4, 2010 at 10:25 AM, Nivedan Nadaraj <>wrote:
>> Hi,
>> I have attached the code as a text file. I have removed lines that don't
>> really make any contribution to the problem at hand after carefully
>> examining it.
>> Appreciate your time if you could see any issues please let me know.
>> Basically the code has the Form objects I used, and the different panels
>> involved with it.
>> Many thanks
>> Niv
>> On Tue, Aug 3, 2010 at 10:30 PM, Nivedan Nadaraj 
>> <>wrote:
>>> Avraham and Matt,
>>> Thanks for the points. I will have a look at it tomorrow and post the
>>> code if I still haven't resolved. I don't have the code on me at the moment.
>>> Reg
>>> Niv
>>> On Tue, Aug 3, 2010 at 9:41 PM, mwilber <> wrote:
>>>> Again without seeing more of the code some of this is guessing.
>>>> If the component that you are trying to "update" is not part of the
>>>> original
>>>> HTML it will not be updated in the ajax response. I see that you are
>>>> marking
>>>> the component as visible and enabled. If it isn't visible during the
>>>> initial
>>>> rendering then it won't be placed in the HTML. If you mark the component
>>>> with
>>>> setOutputMarkupPlaceholderTag(true)  then the invisible component will
>>>> have
>>>> a placeholder to be updated during the ajax response.
>>>> --
>>>> View this message in context:
>>>> Sent from the Wicket - User mailing list archive at
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>>> For additional commands, e-mail:

Reply via email to