Re: How to Update contents of a child component?

2010-09-17 Thread nivs

Sorry for the delay in response. I had fixed this issue and it was to do with
my model. The Multiselect was not properly bound to a model. Infact I
started using Palette control which is very good. 

And as for hiding and unhiding I found that sometimes just using
setOutputMarkupId does not work all the time but using the above as you
suggested the setOutputMarkupPlaceholderTag(boolean) works.

Might post a thread on why and what the difference is between them.

Cheers

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Update-contents-of-a-child-component-tp2307756p2543535.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to Update contents of a child component?

2010-08-02 Thread Nivedan Nadaraj
Thanks guys for the input. Will give a yell when I have resolved it, thanks
for the time.

Reg
Niv

On Fri, Jul 30, 2010 at 7:54 PM, vov  wrote:

>
> Do not forgot about setOutputMarkupPlaceholderTag(true) for your components
> that initially as invisible.
> And use AJAX...:)
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-Update-contents-of-a-child-component-tp2307756p2307883.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How to Update contents of a child component?

2010-07-30 Thread vov

Do not forgot about setOutputMarkupPlaceholderTag(true) for your components
that initially as invisible.
And use AJAX...:)
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Update-contents-of-a-child-component-tp2307756p2307883.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to Update contents of a child component?

2010-07-30 Thread bht
Hi,

Have you checked that rendered values in your components are
model-driven? If so then I think it should work. I sometimes set
values in the constructor with brute force when I do not expect any
changes. This is not what you want in this case.

I found it most helpful to exclusively use LoadableDetachableModel,
remove the Serializable interface from my model objects and let
SerializableChecker sort out some model problems for me. I went so far
as to use a LDM in my WebSession. After some time I had sufficient
practice with models that things started to become really easy.

Regards,

Bernard


On Fri, 30 Jul 2010 02:17:01 -0700 (PDT), you wrote:

>
>Hi All
>
>I would like to know an elegant solution to deal with the following issue.
>
>For CRUD operations this is the approach I have taken.
>
>List of Components
>1.ContainerPanel 
>2.SearchPanel
>3.SearchResultsPanel
>4.DetailsPanel and this contains a child component that has a
>MultiSelectControl
>
>The ContainerPanel adds the SearchPanel. The SearchPanel, adds
>SearchResultsPanel and DetailsPanel.
>
>So when I first load/render the ContainerPanel, I hide the
>SearchResultsPanel and DetailsPanel.
>When some search is done then I make the SearchResultsPanel visible.
>
>OnClick event of an item of the SearchResultsPanel , I unhide and update the
>Model of the Details panel. Now,for some reason it does not seem to refresh
>the child component in DetailsPanel(.ie. MultiSelectControl)
>
>So on every OnClick, I want the Details panel to refresh the content of the
>nested component in Details Panel. At the moment, I can't see a way to do
>this, other than removing the nested component and re-creating it.  I am
>sure its not the right way to do it.
>
>Has anyone had a similar scenario before? I would like to use a cleaner way
>to approach this.
>
>Also is this approach for CRUD acceptable as in using the container
>approach?
>Thanks again,


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org