So what you basically want is a panel but defined in the same file, like:
<html>
blah
</html>
<wicket:panel>
boo
</wicket:panel>
Where of course the panel should have some kind of id as there might
be more of them? Personally, I think that you lose clarity oposed to
having seperate files for the panel. And we would lose clarity on what
the best way of doing things is, as there would then be two different
ways of specifying a panel.
Eelco
On 1/11/06, Ali Zaid <[EMAIL PROTECTED]> wrote:
> ingram;
>
> Thanks, I know that I can use WebMarkupContainer, but I can't reuse it
> in the same page more than once, incase of Listview for example, when
> I say I don't want to reuse it I should have clearified that I don't
> want to reuse in anothe page.
>
> I did mention I can use WebMarkupContainer in my first post, anyway, I
> think my question is more into the lazy part than the practical part.
>
> Thanks for the reply.
>
> Regards, Ali
>
>
> On 1/11/06, Ingram Chen <[EMAIL PROTECTED]> wrote:
> > You don't need to use Panel if you don't want to reuse it.
> >
> > try WebMarkupContainer:
> >
> > <html>
> > <body>
> > <div class="ShowInfo" wicket:id="showInfo">
> > ...Markup
> > </div>
> > <div class="EditInfo" wicket:id=''editInfo">
> > ...Markup
> > </div>
> > </body>
> > </html>
> >
> > and in Your page:
> >
> > public class InfoPage extends WebPage {
> >
> > public InfoPage() {
> > WebMarkupContainer showInfo = new WebMarkupContainer("showInfo") {
> > public boolean isVisible() {
> > return ! isEdit();
> > }
> > };
> > showInfo.add(...some component for show...) ;
> > add(showInfo);
> >
> > WebMarkupContainer editInfo = new WebMarkupContainer("editInfo") {
> > public boolean isVisible() {
> > return isEdit();
> > }
> > };
> > editInfo.add(...some component for edit...) ;
> > add(editInfo);
> >
> > }
> >
> > }
> >
> >
> >
> >
> >
> > On 1/11/06, Ali Zaid <[EMAIL PROTECTED]> wrote:
> > >
> > > that's a different file
> > >
> > > What I want to do is to place the
> > >
> > > <wicket:panel>
> > > ...Markup
> > > </wicket:panel>
> > >
> > > inside the page that use it, ok I know that this will harm the
> > > reusablitity, but sometimes you don't need reusability...
> > >
> > > I kinda want something like
> > >
> > >
> > > <html>
> > > <body>
> > >
> > > <span wicket:id="info"/>
> > >
> > >
> > > <wicket:panel class="ShowInfo">
> > > ...Markup
> > > </wicket:panel>
> > >
> > > <wicket:panel class="EditInfo">
> > > ...Markup
> > > </wicket:panel>
> > >
> > > </body>
> > > </html>
> > >
> > > So when wicket see panels difinisions inside the page it just don't
> > > render them, but it uses them to render "info" component.
> > >
> > > To be honest, I'm kinda againest what I'm asking for :), but I think
> > > it can have a use sometimes, specially in design time.
> > >
> > > Regards, Ali
> > >
> > >
> > > On 1/11/06, karthik Guru < [EMAIL PROTECTED]> wrote:
> > > > Am a newbie, so i might be wrong. But if i understand your problem
> > > > correctly, you need to name the markup YourPage$YourPanel.html and place
> > it
> > > > in the same package.
> > > >
> > > > On 1/11/06, Ali Zaid <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi;
> > > > >
> > > > > I was wondering if I can define a panel inside a page, let me explain:
> > > > >
> > > > > Say I was develping a page that shows different panel depending on
> > > > > whatever :), so if whatever is true it show panel01 if false panel02.
> > > > > Now, the way to do it (or how I know to do it) is to have the page,
> > > > > with a span that say where the panel go, and have 2 markup files that
> > > > > define the 2 panels in seperate files. say I want to tell wiicket to
> > > > > look for this markup inside the page, is there a way?
> > > > >
> > > > > I know this can also be solved by markup container, but what I really
> > > > > want to use this for is a table that show some info and when the row
> > > > > is clicked it show a form to change this info.
> > > > >
> > > > > --
> > > > > Regards, Ali
> > > > >
> > > > >
> > > > >
> > -------------------------------------------------------
> > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > > files
> > > > > for problems? Stop! Download the new AJAX search engine that makes
> > > > > searching your log files as easy as surfing the web. DOWNLOAD
> > SPLUNK!
> > > > > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > > > > _______________________________________________
> > > > > Wicket-user mailing list
> > > > > [email protected]
> > > > >
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Regards, Ali
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > files
> > > for problems? Stop! Download the new AJAX search engine that makes
> > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> >
> > --
> > Ingram Chen
> > Java [EMAIL PROTECTED]
> > Institue of BioMedical Sciences Academia Sinica Taiwan
> > blog: http://www.javaworld.com.tw/roller/page/ingramchen
>
>
> --
> Regards, Ali
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user