setoutputmarkupplaceholdertag(true)

-igor

On Sun, Jun 1, 2008 at 1:39 PM, Jeremy Thomerson
<[EMAIL PROTECTED]> wrote:
> There's another boolean on component that you should set to true.  It will 
> output a container where the component should be, even if the component is 
> invisible.  Unfortunately, I'm not at my computer, and I can't remember the 
> name.  Look for set*(boolean), and it may have the word container in it.  
> It's baffling me that I can't remember it.
>
> Hope this helps...
>
> Jeremy Thomerson
> http://www.wickettraining.com
> -- sent from a wireless device
>
>
> -----Original Message-----
> From: smallufo <[EMAIL PROTECTED]>
> Sent: Sunday, June 01, 2008 3:04 PM
> To: [email protected]
> Subject: AjaxFallbackLink to Show/Hide a checkGroup problem...
>
> Hi
> I want to use an AjaxFallbackLink  to show/hide a checkGroup , but I can
> only "hide" it , cannot "re-show" it...
> I did     checkGroup.setRenderBodyOnly(false);
> and     listView.setReuseItems(true);
> But still can still only hide the checkGroup , cannot make it re-appear...
>
> Can somebody help me checking the code , thanks a lot.
>
>
>    List<Planet> list = Arrays.asList(Planet.values);
>    final CheckGroup checkGroup = new CheckGroup("checkGroup" , list);
>    checkGroup.setRenderBodyOnly(false);
>    checkGroup.setOutputMarkupId(true);
>    add(checkGroup);
>
>    ListView listView = new ListView("list", list )
>    {
>      @Override
>      protected void populateItem(ListItem item)
>      {
>        Planet planet = (Planet) item.getModelObject();
>        item.add(new PointShownCheckBox("check" , displayables , planet));
>        item.add(new Label("name" , planet.getName()));
>      }
>    };
>    listView.setReuseItems(true);
>    checkGroup.add(listView);
>
>
>    collapseExpandStarsLink = new
> AjaxFallbackLink("collapseExpandStarsLink")
>    {
>      @Override
>      public void onClick(AjaxRequestTarget target)
>      {
>        if(checkGroup.isVisible())
>          target.addComponent(checkGroup.setVisible(false));
>        else
>          target.addComponent(checkGroup.setVisible(true));
>      }
>    };
>    add(collapseExpandStarsLink);
>
>
> ---------------------------------------------------------------------
> 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