Re: [Wicket-user] Question about Panel

2007-02-28 Thread Zhang Hailong

It looks good. I will try it. Thank you!

best,
hailong

On 3/1/07, Ryan Holmes <[EMAIL PROTECTED]> wrote:


Use a WebMarkupContainer component instead of a Panel.

You might also be interested in fragments:
http://wicket.sourceforge.net/ExampleUsingFragments.html
http://cwiki.apache.org/WICKET/fragments.html

-Ryan

On Feb 28, 2007, at 1:56 AM, Zhang Hailong wrote:

> Hi all,
>
> I found it is inconvenient to create a separate page and class for
> Panel every time. Sometimes, I just want keep things as simple as
> possible. For example, I just want to hide some components
> together, so I put them in a Panel.
> Is it possible to use Panel like this?Or add this feature in later
> version?(I'm using 1.2.4)
> HTML:
> 
>  
> You believe
> 
>
> 
> 
> text
> 
> 
> 
>
> Java:
> Panel myPanel = new Panel("myPanel");
> Label label = new Label("label", "test");
> myPanel.add(label);
> .
>
> Thanks.
>
>
> Regards,
> Hailong Zhang
>
> --
> ---
> 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] Question about Panel

2007-02-28 Thread Ryan Holmes
Use a WebMarkupContainer component instead of a Panel.

You might also be interested in fragments:
http://wicket.sourceforge.net/ExampleUsingFragments.html
http://cwiki.apache.org/WICKET/fragments.html

-Ryan

On Feb 28, 2007, at 1:56 AM, Zhang Hailong wrote:

> Hi all,
>
> I found it is inconvenient to create a separate page and class for  
> Panel every time. Sometimes, I just want keep things as simple as  
> possible. For example, I just want to hide some components  
> together, so I put them in a Panel.
> Is it possible to use Panel like this?Or add this feature in later  
> version?(I'm using 1.2.4)
> HTML:
> 
>  
> You believe
> 
>
> 
> 
> text
> 
> 
> 
>
> Java:
> Panel myPanel = new Panel("myPanel");
> Label label = new Label("label", "test");
> myPanel.add(label);
> .
>
> Thanks.
>
>
> Regards,
> Hailong Zhang
>
> -- 
> ---
> 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] Question about Panel

2007-02-28 Thread Nino Wael
Just create the panel as an anonym class in your page or inner class...

 

 

Pseudo Snipplet:

 

Webpage extends page

{

Mypanel panel=new Mypanel();

This.add(panel);

 

}

 

Mypanel extends panel{}

 

As I remember it should work...

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zhang Hailong
Sent: 28. februar 2007 10:56
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Question about Panel

 

Hi all,

I found it is inconvenient to create a separate page and class for Panel every 
time. Sometimes, I just want keep things as simple as possible. For example, I 
just want to hide some components together, so I put them in a Panel. 
Is it possible to use Panel like this?Or add this feature in later version?(I'm 
using 1.2.4)
HTML:
 
 
You believe

  


text 

  


Java:
Panel myPanel = new Panel("myPanel");
Label label = new Label("label", "test"); 
myPanel.add(label);
.

Thanks.


Regards,
Hailong Zhang

-
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] Question about Panel

2007-02-28 Thread Zhang Hailong

Hi all,

I found it is inconvenient to create a separate page and class for Panel
every time. Sometimes, I just want keep things as simple as possible. For
example, I just want to hide some components together, so I put them in a
Panel.
Is it possible to use Panel like this?Or add this feature in later
version?(I'm using 1.2.4)
HTML:


   You believe
   

   
   
   text
   
   


Java:
Panel myPanel = new Panel("myPanel");
Label label = new Label("label", "test");
myPanel.add(label);
.

Thanks.


Regards,
Hailong Zhang
-
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] Question about Panel in Form

2006-02-17 Thread Martijn Dashorst
Yes.MartijnOn 2/17/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:
I've seen examples of putting widgets into a Form, but I've not seen onewhere a Panel is added to a Form.Suppose I have a collection of form widgets (text boxes, radio buttons,etc.) that I need to put in forms on many different pages.
If I put these components in a Panel, does adding the Panel to each Formgive me the same effect as adding to each form all the widgets containedin the Panel (but with re-use of the Panel's HTML)?
---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1.1 is out: 
http://wicket.sourceforge.net/wicket-1.1


[Wicket-user] Question about Panel in Form

2006-02-17 Thread Frank Silbermann
I've seen examples of putting widgets into a Form, but I've not seen one
where a Panel is added to a Form.

Suppose I have a collection of form widgets (text boxes, radio buttons,
etc.) that I need to put in forms on many different pages.

If I put these components in a Panel, does adding the Panel to each Form
give me the same effect as adding to each form all the widgets contained
in the Panel (but with re-use of the Panel's HTML)?

 


---
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://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user