Bruno Borges schrieb:
ListView is considered one single component, with multiple
childs (ListItem).


That's true, but the *markup* associated with the ListView is repeated with every child, so a there is no single HTML tag that represents the ListView.

What you want is something like this:

  <div id="listview">
    <span id="listItem">...</span>
  </div>


Timo




On 5/17/06, Johan Compagner <[EMAIL PROTECTED]> wrote:

and that parent would be??
A markupcontainer? a panel is a markup container.. pretty much all are.

I think you mean.. the listview must be added to a container where he is
the only child??
to require that looks stupid to me.

Maybe we could some do "see" it as one object by generating an markup id
for every listview html component...
"listview1", "listview2" and then target that as one thing. But that is
more a thing for igor i guess.

johan



On 5/17/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
>
> Sure, I know about that, but the way we code for other things like Label > or TextField, it works, right? So, for ListView it should work too. It's a
> component just like other.
>
> Maybe a change at the API so ListView can't be added directly to
> (Some)MarkupContainer? And require the developer to add it into some parent
> like Panel or anything else dummy.
>
> I know this would break _all_ projects working with ListView. But I
> think it's necessary.
>
>
> On 5/17/06, Johan Compagner < [EMAIL PROTECTED]> wrote:
> >
> > as far as i know you need to wrap it in a span or something (no need
> > for a panel)
> > and target that to set visible and so on. Because in html you need to
> > target one thing (id)
> >
> >
> > On 5/17/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
> > >
> > > Looks like setting visible false at a ListView instance isn't
> > > working properly.
> > >
> > > The html printed out by wicket is something like this:
> > >
> > > <tr wicket:id="listView">
> > >     <td> ...
> > > </tr>
> > > <tr wicket:id="listView">
> > >     <td> ...
> > > </tr>
> > > <tr wicket:id="listView">
> > >     <td> ...
> > > </tr>
> > >
> > > And that's the reason Ajax can't set visible(false) at the listViewcomponent.
> > > You guys will probably say that I should put my ListView into a
> > > Panel (or a fragment maybe? new stuff...) but conceptually the use of > > > ListView and how we should making it invisible at an Ajax request, it's
> > > correct I think.
> > >
> > > Thanks
> > > --
> > > Bruno Borges
> > > Summa Technologies
> > >
> >
> >
>
>
> --
> Bruno Borges
> Summa Technologies
>







-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to