does the listitem have setoutputmarkupplaceholdertag(true)?

-igor

On Mon, Feb 28, 2011 at 5:01 PM, Scott Swank <[email protected]> wrote:
> I have an html table with a ListView generating the rows.  Certain
> rows in the middle of the table are initially hidden via
> setVisible(false), but then displayed later when an AjaxLink is
> clicked.  In order to effect this I have had tenclose the table in a
> div with wicket:id="tableContainer", and then choose the component to
> update in an odd manner.
>
> onClick(AjaxRequestTarget target) {
>  // for each relevant ListItem
>  item.setVisible(toggleValue);
>
>  // why?????
>  if (item.isVisible())
>    target.addComponent(item);
>  else
>    target.addComponent(tableContainer);
> }
>
> The rows will only be made visible if the specific ListItems are added
> to the AjaxRequestTarget.  Refreshing the entire tableContainer does
> not display them, even though they have setVisible(true).  Conversely,
> to hide them I have to refresh tableContainer, refreshing each
> ListItem does not hide them.
>
> While I have this working, after a fair bit of trial & error, I am
> unsure why my earlier approaches failed: 1. always refreshing the
> ListItem will not hide them, 2. always refreshing the tableContainer
> will not display them.
>
> Is this related to a bug, or am I missing something about ListViews & ajax?
>
> Thank you,
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to