Re: [Wicket-user] replace of multi inc. spans
Add them both to the component tree, but use setVisible/ override isVisible to display only the one you need. Eelco On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > I didnt get this one - what do you mean here? Would you please be so kind > and explain it to me? > > Regards > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag > > von Matej Knopp > > Gesendet: Donnerstag, 5. April 2007 14:03 > > An: wicket-user@lists.sourceforge.net > > Betreff: Re: [Wicket-user] replace of multi inc. spans > > > > The View and Label can be displayed conditionally - either > > listview on label, they don't need to by displayed at the same time. > > > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > Thax for quick reply - i then stick with the > > "panel-replace-solution" > > > as i dont have the space to display a view and a label > > (mobile thing) > > > > > > Regards > > > > > > > > > > -Ursprüngliche Nachricht- > > > > Von: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > > > Matej Knopp > > > > Gesendet: Donnerstag, 5. April 2007 13:22 > > > > An: wicket-user@lists.sourceforge.net > > > > Betreff: Re: [Wicket-user] replace of multi inc. spans > > > > > > > > You can't just replace the listView by a label, because > > the markup > > > > won't match. Safest solution probably not to replace the > > listView, > > > > just ide it and show the label next to lisview. > > > > > > > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > > > > > maybe its a noobish question, but how can i replace a > > markup that > > > > > spans other markup wihtout touching the inner one? > > > > > > > > > > e.g: > > > > > > > > > > > > > > > foo > > > > > foo > > > > > > > > > > > > > > > wich is a simple ListView repeater - that should be > > replaced by a > > > > > single Label Component > > > > > > > > > > getPage().replace(new Label("data","Error - no datasource > > > > defined")); > > > > > > > > > > I know i can do it via having a the DataView as a panel, > > > > but wonder if > > > > > there isnt a quick dirty aproach here... > > > > > > > > > > currently, it tells me: > > > > > > > > > > "Expected close tag for '' Possible > > > > attempt to > > > > > embed > > > > > component(s) '" and all i want is that wicket discards > > > > the inner > > > > > ones and replaces them like it does for all content sittin > > > > within its part. > > > > > > > > > > Regards > > > > > > > > > > Korbinian > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > --- Take Surveys. Earn Cash. Influence the Future of IT Join > > > > > SourceForge.net's Techsay panel and you'll get the > > chance to share > > > > > your opinions on IT & business topics through brief > > > > surveys-and earn > > > > > cash > > > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D > > > > EV > > > > > DEV ___ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > -- > > > > --- > > > > Take Surveys. Earn Cash. Influence the Future of IT Join > > > > SourceForge.net's Techsay panel and you'll get the chance > > to share > > > > your opinions on IT & business topics through brief > > surveys-and earn > > > > cash > > http://www.techsay.com/default.php?page=join.
Re: [Wicket-user] replace of multi inc. spans
I didnt get this one - what do you mean here? Would you please be so kind and explain it to me? Regards > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von Matej Knopp > Gesendet: Donnerstag, 5. April 2007 14:03 > An: wicket-user@lists.sourceforge.net > Betreff: Re: [Wicket-user] replace of multi inc. spans > > The View and Label can be displayed conditionally - either > listview on label, they don't need to by displayed at the same time. > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > Thax for quick reply - i then stick with the > "panel-replace-solution" > > as i dont have the space to display a view and a label > (mobile thing) > > > > Regards > > > > > > > -Ursprüngliche Nachricht- > > > Von: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > > Matej Knopp > > > Gesendet: Donnerstag, 5. April 2007 13:22 > > > An: wicket-user@lists.sourceforge.net > > > Betreff: Re: [Wicket-user] replace of multi inc. spans > > > > > > You can't just replace the listView by a label, because > the markup > > > won't match. Safest solution probably not to replace the > listView, > > > just ide it and show the label next to lisview. > > > > > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > maybe its a noobish question, but how can i replace a > markup that > > > > spans other markup wihtout touching the inner one? > > > > > > > > e.g: > > > > > > > > > > > > foo > > > > foo > > > > > > > > > > > > wich is a simple ListView repeater - that should be > replaced by a > > > > single Label Component > > > > > > > > getPage().replace(new Label("data","Error - no datasource > > > defined")); > > > > > > > > I know i can do it via having a the DataView as a panel, > > > but wonder if > > > > there isnt a quick dirty aproach here... > > > > > > > > currently, it tells me: > > > > > > > > "Expected close tag for '' Possible > > > attempt to > > > > embed > > > > component(s) '" and all i want is that wicket discards > > > the inner > > > > ones and replaces them like it does for all content sittin > > > within its part. > > > > > > > > Regards > > > > > > > > Korbinian > > > > > > > > > > > > > > > > > > > -- > > > > --- Take Surveys. Earn Cash. Influence the Future of IT Join > > > > SourceForge.net's Techsay panel and you'll get the > chance to share > > > > your opinions on IT & business topics through brief > > > surveys-and earn > > > > cash > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D > > > EV > > > > DEV ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > -- > > > --- > > > Take Surveys. Earn Cash. Influence the Future of IT Join > > > SourceForge.net's Techsay panel and you'll get the chance > to share > > > your opinions on IT & business topics through brief > surveys-and earn > > > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > > &CID=DEVDEV > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > -- > > --- Take Surveys. Earn Cash. Influence the Future of IT Join > > SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief > surveys-and earn > > cash > > > http://w
Re: [Wicket-user] replace of multi inc. spans
The View and Label can be displayed conditionally - either listview on label, they don't need to by displayed at the same time. On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > Thax for quick reply - i then stick with the "panel-replace-solution" as i > dont have the space to display a view and a label (mobile thing) > > Regards > > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag > > von Matej Knopp > > Gesendet: Donnerstag, 5. April 2007 13:22 > > An: wicket-user@lists.sourceforge.net > > Betreff: Re: [Wicket-user] replace of multi inc. spans > > > > You can't just replace the listView by a label, because the > > markup won't match. Safest solution probably not to replace > > the listView, just ide it and show the label next to lisview. > > > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > maybe its a noobish question, but how can i replace a markup that > > > spans other markup wihtout touching the inner one? > > > > > > e.g: > > > > > > > > > foo > > > foo > > > > > > > > > wich is a simple ListView repeater - that should be replaced by a > > > single Label Component > > > > > > getPage().replace(new Label("data","Error - no datasource > > defined")); > > > > > > I know i can do it via having a the DataView as a panel, > > but wonder if > > > there isnt a quick dirty aproach here... > > > > > > currently, it tells me: > > > > > > "Expected close tag for '' Possible > > attempt to > > > embed > > > component(s) '" and all i want is that wicket discards > > the inner > > > ones and replaces them like it does for all content sittin > > within its part. > > > > > > Regards > > > > > > Korbinian > > > > > > > > > > > -- > > > --- Take Surveys. Earn Cash. Influence the Future of IT Join > > > SourceForge.net's Techsay panel and you'll get the chance to share > > > your opinions on IT & business topics through brief > > surveys-and earn > > > cash > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > > > DEV ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > -- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT Join > > SourceForge.net's Techsay panel and you'll get the chance to > > share your opinions on IT & business topics through brief > > surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace of multi inc. spans
You can't just replace the listView by a label, because the markup won't match. Safest solution probably not to replace the listView, just ide it and show the label next to lisview. On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > Hi, > > maybe its a noobish question, but how can i replace a markup that spans > other markup wihtout touching the inner one? > > e.g: > > > foo > foo > > > wich is a simple ListView repeater - that should be replaced by a single > Label Component > > getPage().replace(new Label("data","Error - no datasource defined")); > > I know i can do it via having a the DataView as a panel, but wonder if there > isnt a quick dirty aproach here... > > currently, it tells me: > > "Expected close tag for '' Possible attempt to embed > component(s) '" and all i want is that wicket discards the inner ones > and replaces them like it does for all content sittin within its part. > > Regards > > Korbinian > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace of multi inc. spans
Thax for quick reply - i then stick with the "panel-replace-solution" as i dont have the space to display a view and a label (mobile thing) Regards > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von Matej Knopp > Gesendet: Donnerstag, 5. April 2007 13:22 > An: wicket-user@lists.sourceforge.net > Betreff: Re: [Wicket-user] replace of multi inc. spans > > You can't just replace the listView by a label, because the > markup won't match. Safest solution probably not to replace > the listView, just ide it and show the label next to lisview. > > On 4/5/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > > Hi, > > > > maybe its a noobish question, but how can i replace a markup that > > spans other markup wihtout touching the inner one? > > > > e.g: > > > > > > foo > > foo > > > > > > wich is a simple ListView repeater - that should be replaced by a > > single Label Component > > > > getPage().replace(new Label("data","Error - no datasource > defined")); > > > > I know i can do it via having a the DataView as a panel, > but wonder if > > there isnt a quick dirty aproach here... > > > > currently, it tells me: > > > > "Expected close tag for '' Possible > attempt to > > embed > > component(s) '" and all i want is that wicket discards > the inner > > ones and replaces them like it does for all content sittin > within its part. > > > > Regards > > > > Korbinian > > > > > > > -- > > --- Take Surveys. Earn Cash. Influence the Future of IT Join > > SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief > surveys-and earn > > cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > > DEV ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > -- > --- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to > share your opinions on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge &CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] replace of multi inc. spans
Hi, maybe its a noobish question, but how can i replace a markup that spans other markup wihtout touching the inner one? e.g: foo foo wich is a simple ListView repeater - that should be replaced by a single Label Component getPage().replace(new Label("data","Error - no datasource defined")); I know i can do it via having a the DataView as a panel, but wonder if there isnt a quick dirty aproach here... currently, it tells me: "Expected close tag for '' Possible attempt to embed component(s) '" and all i want is that wicket discards the inner ones and replaces them like it does for all content sittin within its part. Regards Korbinian - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user