Re: [Wicket-user] Issue about working with designer

2006-12-13 Thread Carfield Yim
Hi , I have create a very simple wicket panel as a base panel for all
panel we create:

wicket:panel
div
span class=filelocation wicket:id=class
/span
wicket:child/
/div
/wicket:panel

public class BasePanel extends Panel {
public BasePanel(String id) {
super(id);
if(((WebRequest)
getRequest()).getHttpServletRequest().getServerName().equals(localhost))
add(new Label(class, getClass().getName()));
else
add(new Label(class, ));
}
private static final long serialVersionUID = 1L;
}

And the designer love it a lot, just wonder may be this is a common
request already and it is worth to add similar support at wicket
internally so user of wicket can show the classname for a panel /
border as wish through similar configuration?

On 12/8/06, Carfield Yim [EMAIL PROTECTED] wrote:
 That is a really good new

 On 12/8/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  panels can use inheritance markup just like pages, so you can have the label
  and markup encapsulated in your base panel
 
  -igor
 
 
 
  On 12/6/06, Carfield Yim [EMAIL PROTECTED] wrote:
  
   One issue I encounter now is the designer have problem of locating
   HTML template that he like to edit so everytime he need to ask me
   where is the template is.
  
   As most the the component I use is Panel, so I've thought of extending
   Panel to a custom BasePanel and just add one label at the top to show
   the classname for development mode. However, if I doing that I have to
   modify every templates to have that label. Which don't sound like a
   good approach. By the way I would like to wrap the panel with outlines
   so the designer can see region of that panel taken.
  
   Just wonder if wicket already support this kind of debug mode? Or will
   anyone have any better suggestion?
  
  
  -
   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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Issue about working with designer

2006-12-07 Thread Carfield Yim
In fact I've using this, but look like if I use Border for this case,
then I need to wrap that border wherever I going to add a panel. Is
that what you mean?

Of course I can do that, may be better than extending Panel, but I
wish there is something more elegant

On 12/7/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 Hi Carfield,

 Did you already look whether Border fits your need?

 Regards,
   Erik.


 Carfield Yim schreef:
  One issue I encounter now is the designer have problem of locating
  HTML template that he like to edit so everytime he need to ask me
  where is the template is.
 
  As most the the component I use is Panel, so I've thought of extending
  Panel to a custom BasePanel and just add one label at the top to show
  the classname for development mode. However, if I doing that I have to
  modify every templates to have that label. Which don't sound like a
  good approach. By the way I would like to wrap the panel with outlines
  so the designer can see region of that panel taken.
 
  Just wonder if wicket already support this kind of debug mode? Or will
  anyone have any better suggestion?
 

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Issue about working with designer

2006-12-06 Thread Carfield Yim
One issue I encounter now is the designer have problem of locating
HTML template that he like to edit so everytime he need to ask me
where is the template is.

As most the the component I use is Panel, so I've thought of extending
Panel to a custom BasePanel and just add one label at the top to show
the classname for development mode. However, if I doing that I have to
modify every templates to have that label. Which don't sound like a
good approach. By the way I would like to wrap the panel with outlines
so the designer can see region of that panel taken.

Just wonder if wicket already support this kind of debug mode? Or will
anyone have any better suggestion?

-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Issue about working with designer

2006-12-06 Thread Erik van Oosten
Hi Carfield,

Did you already look whether Border fits your need?

Regards,
  Erik.


Carfield Yim schreef:
 One issue I encounter now is the designer have problem of locating
 HTML template that he like to edit so everytime he need to ask me
 where is the template is.

 As most the the component I use is Panel, so I've thought of extending
 Panel to a custom BasePanel and just add one label at the top to show
 the classname for development mode. However, if I doing that I have to
 modify every templates to have that label. Which don't sound like a
 good approach. By the way I would like to wrap the panel with outlines
 so the designer can see region of that panel taken.

 Just wonder if wicket already support this kind of debug mode? Or will
 anyone have any better suggestion?
   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user