Re: [Wicket-user] More CSS support in wicket?

2006-07-20 Thread Ayodeji Aladejebi
Okay here my little CSS solution for wicket, so if u have had my headache, you can use it. Please if you have more powerful regex approach...teach me please. May not be killer but it works just fine for me.
In your CSS File (textfield.css):.textfieldStyle {

background: url(${myImage});}In your Wicket Code:

PackageResourceReference imageRef = new PackageResourceReference(MyPanel.class

, image.gif);CSSSettings css = new CSSSettings(

MyPanel.class,textfield.css);String imageRefString = 

urlForcss.addAttribute(myImage
,); 

//and according to igor

add(new StringHeaderContributor(css.getStyle()); /*

* CSSSettings.java*

* Created on July 20, 2006, 3:15 AM*

* Wicket lover license :)* 

www.dabarobjects.com*/

package net.cowblock.wicketx.util;

import java.io.BufferedReader;import java.io.IOException;

import java.io.InputStreamReader;import java.io.Serializable;

import java.net.URL;import java.util.Hashtable;

import java.util.Map;import java.util.regex.Matcher;

import java.util.regex.Pattern;import wicket.Resource;

import wicket.WicketRuntimeException;

/ @author Aladejebi Ayodeji (dabar)
*/public class CSSSettings implements Serializable {
 private Map customStyle;

  private static final Pattern customAttrRegex = Pattern.compile([$][{][a-zA-Z]++[-]?+[a-zA-Z]++[}]|[$][{][a-zA-Z]++[}]);
 private static final Pattern innerAttrValue = Pattern.compile([a-zA-Z]++[-]?+[a-zA-Z]++|[a-zA-Z]++);
 private String css;

 private URL cssPath; private Class scope;

 /** Creates a new instance of CSSSettings */ public CSSSettings(Class cssScope, String cssFileName) {

 customStyle = new Hashtable(); 

 URL path = cssScope.getResource(cssFileName); 

 if(path == null)

 throw new WicketRuntimeException(CSS Resource missing); 

 this.cssPath = path; 

 this.scope = cssScope; 

  }

 /** * You will define this in your CSS File

 * list-style-image: url(${bgimage}); * and add strongbgimage/strong as attribute, then use urlFor(ResourceReference) to insert value
 */ public void addAttribute(String attribute, String value){
 this.customStyle.put(attribute,value);

 } public void removeAttribute(String attribute){

 this.customStyle.remove(attribute); }

 public String getCss(){ Matcher _attrDefMatch = null;

 Matcher _attrValueMatch = null; 

 StringBuffer buffer = new StringBuffer(); try {

  BufferedReader read = new BufferedReader(new InputStreamReader(
cssPath.openStream())); String r =;

 while((r = read.readLine()) != null){ _attrDefMatch = customAttrRegex.matcher(r);

  while(_attrDefMatch.find()){

 

 _attrValueMatch = innerAttrValue.matcher(_attrDefMatch.group()); 

 while(_attrValueMatch.find()){ //System.out.println(_attrValueMatch.group());
 String key = _attrValueMatch.group();

 if(customStyle.containsKey(key.trim())) r = 
r.replaceAll([$][{][a-zA-Z]++[-]?+[a-zA-Z]++[}]|[$][{][a-zA-Z]++[}], 
customStyle.get(key.trim()).toString()); }

 } buffer.append(r);

  }

  

 } catch (IOException ex) { throw new WicketRuntimeException(ex);
 } 
 return buffer.toString();

 } //TODO:

 private Resource getAsResource() { return null;

 } public static void main(String args[]){

 CSSSettings set = new CSSSettings(CSSSettings.class,FormX.css); 

 set.addAttribute(bgimage,web.gif);

 set.addAttribute(line-color,#343444); 

 System.out.println(set.getCss()); }

  

}On 7/19/06, Igor Vaynberg 
[EMAIL PROTECTED]
 wrote:or you can do add(new StringHeaderContributor(css.getStyle()); instead of using a label
-IgorOn 7/19/06, Ayodeji Aladejebi 

[EMAIL PROTECTED] wrote:
well it doesnt necessarily have to be like that...anything that reduces stress for developers will always fly in dev space. so may things can be worked out...but i believe that more CSS support is needed in wicket. I am making something that looks like this for my project.
CssMap css = CssMap.parseCSS(MyPanel.class, style.css);css.add(bg-image,urlFor(imageReference)); // replaces ${bg-image} with image pathadd(new Label(styleHead, 
css.getStyle());this works fine for me now though still crappy but suits my work for now.On 7/19/06, 
Julian Klappenbach 


[EMAIL PROTECTED] wrote:







In general, I doubt that you're going to findmuch 
support for that kind of approach. This is because you'd 
behard-coding styles into the component, which make them difficult to 
skin later on without changing code.

-jjk


From: 



[EMAIL PROTECTED] 
[mailto:


[EMAIL PROTECTED]
] On Behalf Of Ayodeji 
AladejebiSent: Wednesday, July 19, 2006 1:46 AMTo: 


wicket-user@lists.sourceforge.net
Subject:
 Re: [Wicket-user] More CSS 
support in wicket?
Please can one regex expert give me the regex for retrieving name from ${name}?Thanks and for 
CSS integration, i dream of this: @CSS 
(font-family=Verdana,[EMAIL PROTECTED](bg.gif,MyPanel.class)})private 
class MyPanel extends Panel {}will generate this header for the 
panel:style type=text/css.[panel_id] 
{font-family=Verdana...;}/styleits a dream 
:)
On 7/19/06, Jean-Baptiste 
Quenot 
[EMAIL PROTECTED] 
wrote:
* 
  Eelco Hillenius

Re: [Wicket-user] More CSS support in wicket?

2006-07-20 Thread Ayodeji Aladejebi
 
AladejebiSent: Wednesday, July 19, 2006 1:46 AMTo: 



wicket-user@lists.sourceforge.net
Subject:
 Re: [Wicket-user] More CSS 
support in wicket?
Please can one regex expert give me the regex for retrieving name from ${name}?Thanks and for 
CSS integration, i dream of this: @CSS 
(font-family=Verdana,[EMAIL PROTECTED](bg.gif,MyPanel.class)})private 
class MyPanel extends Panel {}will generate this header for the 
panel:style type=text/css.[panel_id] 
{font-family=Verdana...;}/styleits a dream 
:)
On 7/19/06, Jean-Baptiste 
Quenot 

[EMAIL PROTECTED] 
wrote:
* 
  Eelco Hillenius:  Did you take a look at what's in 
  wicket.extensions.util.resource? I think that package has exactly what 
  you are looking for, e.g. PackagedTextTemplate.I can't find it 
  neither in Wicket's API documentation nor in Wicket 
  Extensions's.Do you have a link 
  please?-- Jean-Baptiste 
  QuenotakaJohn Banana Qwerty


http://caraldi.com/jbq/
- 
  Take Surveys. Earn Cash. Influence the Future of ITJoin 
  SourceForge.net's Techsay panel and you'll get the chance to share 
  youropinions 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
-- It takes insanity to drive in sanity - Me 
Aladejebi Ayodeji A., DabarObjects SolutionsEmail: 



[EMAIL PROTECTED]
Mobile: +234 
803 589 1780Web: 


www.dabarobjects.com 
Community:


www.cowblock.net
 


-Take Surveys. Earn Cash. Influence the Future of ITJoin 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
-- It takes insanity to drive in sanity - MeAladejebi Ayodeji A., DabarObjects Solutions
Email: 


[EMAIL PROTECTED]Mobile: +234 803 589 1780Web: 


www.dabarobjects.com
Community:
www.cowblock.net


-Take Surveys. Earn Cash. Influence the Future of ITJoin 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 ITJoin 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
-- It takes insanity to drive in sanity - MeAladejebi Ayodeji A., DabarObjects Solutions
Email: 

[EMAIL PROTECTED]Mobile: +234 803 589 1780Web: 
www.dabarobjects.com
Community:www.cowblock.net


-- It takes insanity to drive in sanity - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: 
[EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity:www.cowblock.net
-
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] More CSS support in wicket?

2006-07-19 Thread Jean-Baptiste Quenot
* Eelco Hillenius:
 Did you take a look at what's in wicket.extensions.util.resource? I
 think that package has exactly what you are looking for, e.g.
 PackagedTextTemplate.

I can't find it neither in Wicket's API documentation nor in
Wicket Extensions's.  Do you have a link please?
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-
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] More CSS support in wicket?

2006-07-19 Thread Ayodeji Aladejebi
Please can one regex expert give me the regex for retrieving name from ${name}?Thanks and for CSS integration, i dream of this:
@CSS (font-family=Verdana,[EMAIL PROTECTED](bg.gif,MyPanel.class)})private class MyPanel extends Panel {}will generate this header for the panel:
style type=text/css.[panel_id] {font-family=Verdana...;}/styleits a dream :)On 7/19/06, Jean-Baptiste Quenot
 [EMAIL PROTECTED] wrote:* Eelco Hillenius:
 Did you take a look at what's in wicket.extensions.util.resource? I think that package has exactly what you are looking for, e.g. PackagedTextTemplate.I can't find it neither in Wicket's API documentation nor in
Wicket Extensions's.Do you have a link please?-- Jean-Baptiste QuenotakaJohn Banana Qwertyhttp://caraldi.com/jbq/-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- It takes insanity to drive in sanity - Me
Aladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.com
Community:www.cowblock.net
-
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] More CSS support in wicket?

2006-07-19 Thread Eelco Hillenius
http://svn.sourceforge.net/viewcvs.cgi/wicket/branches/WICKET_1_2/wicket-extensions/src/java/wicket/extensions/util/resource/

Or check out the project from SVN:

https://svn.sourceforge.net/svnroot/wicket/branches/WICKET_1_2/wicket-extensions

Or download wicket-extensions-1.2

Eelco


On 7/19/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 * Eelco Hillenius:
  Did you take a look at what's in wicket.extensions.util.resource? I
  think that package has exactly what you are looking for, e.g.
  PackagedTextTemplate.

 I can't find it neither in Wicket's API documentation nor in
 Wicket Extensions's.  Do you have a link please?
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/

 -
 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] More CSS support in wicket?

2006-07-19 Thread Julian Klappenbach



In general, I doubt that you're going to findmuch 
support for that kind of approach. This is because you'd 
behard-coding styles into the component, which make them difficult to 
"skin" later on without changing code.

-jjk


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Ayodeji 
AladejebiSent: Wednesday, July 19, 2006 1:46 AMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] More CSS 
support in wicket?
Please can one regex expert give me the regex for retrieving name from ${name}?Thanks and for 
CSS integration, i dream of this: @CSS 
(font-family="Verdana",[EMAIL PROTECTED]("bg.gif,MyPanel.class")})private 
class MyPanel extends Panel {}will generate this header for the 
panel:style type="text/css".[panel_id] 
{font-family="Verdana...";}/styleits a dream 
:)
On 7/19/06, Jean-Baptiste 
Quenot [EMAIL PROTECTED] 
wrote:
* 
  Eelco Hillenius:  Did you take a look at what's in 
  wicket.extensions.util.resource? I think that package has exactly what 
  you are looking for, e.g. PackagedTextTemplate.I can't find it 
  neither in Wicket's API documentation nor in Wicket 
  Extensions's.Do you have a link 
  please?-- Jean-Baptiste 
  QuenotakaJohn Banana Qwertyhttp://caraldi.com/jbq/- 
  Take Surveys. Earn Cash. Influence the Future of ITJoin 
  SourceForge.net's Techsay panel and you'll get the chance to share 
  youropinions on IT  business topics through brief surveys -- and earn 
  cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user 
  mailing listWicket-user@lists.sourceforge.net 
  https://lists.sourceforge.net/lists/listinfo/wicket-user-- "It takes insanity to drive in sanity" - Me 
Aladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 
803 589 1780Web: www.dabarobjects.com 
Community:www.cowblock.net 

-
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] More CSS support in wicket?

2006-07-19 Thread Ayodeji Aladejebi
well it doesnt necessarily have to be like that...anything that reduces stress for developers will always fly in dev space. so may things can be worked out...but i believe that more CSS support is needed in wicket. I am making something that looks like this for my project.
CssMap css = CssMap.parseCSS(MyPanel.class, style.css);css.add(bg-image,urlFor(imageReference)); // replaces ${bg-image} with image pathadd(new Label(styleHead, 
css.getStyle());this works fine for me now though still crappy but suits my work for now.On 7/19/06, Julian Klappenbach 
[EMAIL PROTECTED] wrote:




In general, I doubt that you're going to findmuch 
support for that kind of approach. This is because you'd 
behard-coding styles into the component, which make them difficult to 
skin later on without changing code.

-jjk


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]
] On Behalf Of Ayodeji 
AladejebiSent: Wednesday, July 19, 2006 1:46 AMTo: 
wicket-user@lists.sourceforge.netSubject:
 Re: [Wicket-user] More CSS 
support in wicket?
Please can one regex expert give me the regex for retrieving name from ${name}?Thanks and for 
CSS integration, i dream of this: @CSS 
(font-family=Verdana,[EMAIL PROTECTED](bg.gif,MyPanel.class)})private 
class MyPanel extends Panel {}will generate this header for the 
panel:style type=text/css.[panel_id] 
{font-family=Verdana...;}/styleits a dream 
:)
On 7/19/06, Jean-Baptiste 
Quenot [EMAIL PROTECTED] 
wrote:
* 
  Eelco Hillenius:  Did you take a look at what's in 
  wicket.extensions.util.resource? I think that package has exactly what 
  you are looking for, e.g. PackagedTextTemplate.I can't find it 
  neither in Wicket's API documentation nor in Wicket 
  Extensions's.Do you have a link 
  please?-- Jean-Baptiste 
  QuenotakaJohn Banana Qwertyhttp://caraldi.com/jbq/- 
  Take Surveys. Earn Cash. Influence the Future of ITJoin 
  SourceForge.net's Techsay panel and you'll get the chance to share 
  youropinions on IT  business topics through brief surveys -- and earn 
  cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user 
  mailing listWicket-user@lists.sourceforge.net 
  https://lists.sourceforge.net/lists/listinfo/wicket-user
-- It takes insanity to drive in sanity - Me 
Aladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]
Mobile: +234 
803 589 1780Web: www.dabarobjects.com 
Community:www.cowblock.net 


-Take Surveys. Earn Cash. Influence the Future of ITJoin 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- It takes insanity to drive in sanity - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: 
[EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity:www.cowblock.net
-
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] More CSS support in wicket?

2006-07-17 Thread Ayodeji Aladejebi
Well,should i say i have specifics yet, okay yesterday i was trying to make a small customizable menubar widget and i needed a way to ensure that an time i want to reuse it or even give it out for others to use, they can simple change certain general schemes in the CSS like border color, background image, etc...
Now currently, whatever CSS you package as a wicket resource with the widget is what users stick to. Now somewhere in my code I had to do this:
ul.append(border-top: 1px solid  + this.bordercolor +
 ;); ul.append(border-bottom: 1px solid  +
 this.bordercolor +
 ;); ul.append(background:url( +
 this.linkBgImage +
 ) repeat;);Basically if i did not want to make anything reuseable, i could stick to the normal wicket way, just dump some CSS in the header and then any reuse will have to keep it that way. But i dont think it will be much fun to keep recoding styles into your wicket component everytime you need to reuse it. Infact a wicket developer like myself..i am really taking time to build up my widget framework so that laying out interface for any coming project will just be add(), add() and add().
Now what i think is just some form of templating support for CSS: Since CSS is not an XML file (i really wonder why CSS is not XML) but in a file calledMyWidget.css
.${wicket:id of component that needs this css} ul {border-top: 
${border-thickness}; solid ${border-color}
;background:url(${bg-image}) repeat; 
padding-bottom: 3px;
padding-top: ${pad-top};
}Something like this...and then in my custom component, i want toclass MyWidget extends Panel{
private Component component;add(component = new Component(wicket:id)
}maybe some interface or a class for filling in the css parameters in the ${}.But Wicket will generate the CSS header from the template on behalf of that component and attach the 
class attribute etc etc. hey..wait i think i can even develop something like this right now...even as i am talking about it, its kind of clear to me what i can do. 
ah sorry to bug yu guys with RFC ...thanks eelcoOn 7/15/06, Eelco Hillenius [EMAIL PROTECTED]
 wrote:Could you please be more specific to what kind kind of additionalsupport you would like to see? Could you give a few end-user (from the
perspective of framework users of course) examples of what you'd like?EelcoOn 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: i think wicket needs to kind of improve CSS templating support. I think more
 than just a resource...more of CSS and WebPage\Panel integration support needs to be in wicket especially when yu needs to create widgets where you want to generate certain Styles on the fly...anyway it's not like an
 urgently needed feature but just a kind of suggestion that may reduce the stress in bindingtwo tightly close couples like HTML and CSS thanks
 -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED]
 Web: www.dabarobjects.com Community: www.cowblock.net -
 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=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user-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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- 
It takes insanity to drive in sanity - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: 
www.dabarobjects.comCommunity:www.cowblock.net

-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Eelco Hillenius
Did you take a look at what's in wicket.extensions.util.resource? I
think that package has exactly what you are looking for, e.g.
PackagedTextTemplate.

Eelco



On 7/17/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 Well,
 should i say i have specifics yet, okay yesterday i was trying to make a
 small customizable menubar widget and i needed a way to ensure that an time
 i want to reuse it or even give it out for others to use, they can simple
 change certain general schemes in the CSS like border color, background
 image, etc...

 Now currently, whatever CSS you package as a wicket resource with the widget
 is what users stick to. Now somewhere in my code I had to do this:

  ul.append(border-top: 1px solid  +
 this.bordercolor +
  ;);
 ul.append(border-bottom: 1px solid  +
 this.bordercolor +
  ;);
 ul.append(background:url( +
 this.linkBgImage +
  ) repeat;);

 Basically if i did not want to make anything reuseable, i could stick to the
 normal wicket way, just dump some CSS in the header and then any reuse will
 have to keep it that way. But i dont think it will be much fun to keep
 recoding styles into your wicket component everytime you need to reuse it.
 Infact a wicket developer like myself..i am really taking time to build up
 my widget framework so that laying out interface for any coming project will
 just be add(), add() and add().

 Now what i think is just some form of templating support for CSS: Since CSS
 is not an XML file (i really wonder why CSS is not XML) but in a file called

 MyWidget.css

  .${wicket:id of component that needs this css} ul {
 border-top: ${border-thickness}; solid ${border-color} ;
 background:url(${bg-image}) repeat;
 padding-bottom: 3px;
  padding-top: ${pad-top};
  }


 Something like this...and then in my custom component, i want to

 class MyWidget extends Panel{
 private Component component;

 add(component = new Component(wicket:id)
 }

 maybe some interface or a class for filling in the css parameters in the
 ${}.

 But Wicket will generate the CSS header from the template on behalf of that
 component and attach the class attribute etc etc.

 hey..wait i think i can even develop something like this right now...even as
 i am talking about it, its kind of clear to me what i can do.

 ah sorry to bug yu guys with RFC ...thanks eelco


 On 7/15/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:
  Could you please be more specific to what kind kind of additional
  support you would like to see? Could you give a few end-user (from the
  perspective of framework users of course) examples of what you'd like?
 
  Eelco
 
 
  On 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
   i think wicket needs to kind of improve CSS templating support. I think
 more
   than just a resource...more of CSS and WebPage\Panel integration support
   needs to be in wicket especially when yu needs to create widgets where
 you
   want to generate certain Styles on the fly...anyway it's not like an
   urgently needed feature but just a kind of suggestion that may reduce
 the
   stress in bindingtwo tightly close couples like HTML and CSS
  
   thanks
  
  
  
  
  
  
  
  
   --
   It takes insanity to drive in sanity - Me
  
   Aladejebi Ayodeji A.,
   DabarObjects Solutions
   Email: [EMAIL PROTECTED]
   Web: www.dabarobjects.com
  
   Community:
   www.cowblock.net
  
  
 -
   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=lnkkid=120709bid=263057dat=121642
  
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 
 -
  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=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 --

  It takes insanity to drive in sanity - Me

 Aladejebi Ayodeji A.,
 DabarObjects Solutions
 Email: [EMAIL PROTECTED]
 Mobile: +234 803 589 1780

 Web: www.dabarobjects.com

 Community:
 www.cowblock.net

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly 

Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Ayodeji Aladejebi
really?...shit!!..thanksOn 7/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Did you take a look at what's in wicket.extensions.util.resource? Ithink that package has exactly what you are looking for, e.g.PackagedTextTemplate.EelcoOn 7/17/06, Ayodeji Aladejebi 
[EMAIL PROTECTED] wrote: Well, should i say i have specifics yet, okay yesterday i was trying to make a small customizable menubar widget and i needed a way to ensure that an time i want to reuse it or even give it out for others to use, they can simple
 change certain general schemes in the CSS like border color, background image, etc... Now currently, whatever CSS you package as a wicket resource with the widget is what users stick to. Now somewhere in my code I had to do this:
ul.append(border-top: 1px solid  + this.bordercolor +;); ul.append(border-bottom: 1px solid  + 
this.bordercolor +;); ul.append(background:url( + this.linkBgImage +) repeat;); Basically if i did not want to make anything reuseable, i could stick to the
 normal wicket way, just dump some CSS in the header and then any reuse will have to keep it that way. But i dont think it will be much fun to keep recoding styles into your wicket component everytime you need to reuse it.
 Infact a wicket developer like myself..i am really taking time to build up my widget framework so that laying out interface for any coming project will just be add(), add() and add(). Now what i think is just some form of templating support for CSS: Since CSS
 is not an XML file (i really wonder why CSS is not XML) but in a file called MyWidget.css.${wicket:id of component that needs this css} ul { border-top: ${border-thickness}; solid ${border-color} ;
 background:url(${bg-image}) repeat; padding-bottom: 3px;padding-top: ${pad-top};} Something like this...and then in my custom component, i want to class MyWidget extends Panel{
 private Component component; add(component = new Component(wicket:id) } maybe some interface or a class for filling in the css parameters in the ${}. But Wicket will generate the CSS header from the template on behalf of that
 component and attach the class attribute etc etc. hey..wait i think i can even develop something like this right now...even as i am talking about it, its kind of clear to me what i can do.
 ah sorry to bug yu guys with RFC ...thanks eelco On 7/15/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:  Could you please be more specific to what kind kind of additional
  support you would like to see? Could you give a few end-user (from the  perspective of framework users of course) examples of what you'd like?   Eelco  
  On 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:   i think wicket needs to kind of improve CSS templating support. I think more
   than just a resource...more of CSS and WebPage\Panel integration support   needs to be in wicket especially when yu needs to create widgets where you   want to generate certain Styles on the fly...anyway it's not like an
   urgently needed feature but just a kind of suggestion that may reduce the   stress in bindingtwo tightly close couples like HTML and CSS thanks
   --   It takes insanity to drive in sanity - Me
 Aladejebi Ayodeji A.,   DabarObjects Solutions   Email: [EMAIL PROTECTED]   Web: 
www.dabarobjects.com Community:   www.cowblock.net -
   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=lnkkid=120709bid=263057dat=121642
   ___   Wicket-user mailing list   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user   
   -  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=lnkkid=120709bid=263057dat=121642
  ___  Wicket-user mailing list  Wicket-user@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/wicket-user  --It takes insanity to drive in sanity - Me Aladejebi Ayodeji A.,
 DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com
 Community: www.cowblock.net - 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 

Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Eelco Hillenius
That package is just a few months old :) If you come up with some
useful contributions specific for CSS, I'd be happy to incorporate
them.

Eelco


On 7/17/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 really?...shit!!..thanks


 On 7/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Did you take a look at what's in wicket.extensions.util.resource? I
 think that package has exactly what you are looking for, e.g.
 PackagedTextTemplate.

 Eelco



 On 7/17/06, Ayodeji Aladejebi  [EMAIL PROTECTED] wrote:
  Well,
  should i say i have specifics yet, okay yesterday i was trying to make a
  small customizable menubar widget and i needed a way to ensure that an
 time
  i want to reuse it or even give it out for others to use, they can simple
  change certain general schemes in the CSS like border color, background
  image, etc...
 
  Now currently, whatever CSS you package as a wicket resource with the
 widget
  is what users stick to. Now somewhere in my code I had to do this:
 
   ul.append(border-top: 1px solid  +
  this.bordercolor +
   ;);
  ul.append(border-bottom: 1px solid  +
  this.bordercolor +
   ;);
  ul.append(background:url( +
  this.linkBgImage +
   ) repeat;);
 
  Basically if i did not want to make anything reuseable, i could stick to
 the
  normal wicket way, just dump some CSS in the header and then any reuse
 will
  have to keep it that way. But i dont think it will be much fun to keep
  recoding styles into your wicket component everytime you need to reuse it.
  Infact a wicket developer like myself..i am really taking time to build up
  my widget framework so that laying out interface for any coming project
 will
  just be add(), add() and add().
 
  Now what i think is just some form of templating support for CSS: Since
 CSS
  is not an XML file (i really wonder why CSS is not XML) but in a file
 called
 
  MyWidget.css
 
   .${wicket:id of component that needs this css} ul {
  border-top: ${border-thickness}; solid ${border-color} ;
  background:url(${bg-image}) repeat;
  padding-bottom: 3px;
   padding-top: ${pad-top};
   }
 
 
  Something like this...and then in my custom component, i want to
 
  class MyWidget extends Panel{
  private Component component;
 
  add(component = new Component(wicket:id)
  }
 
  maybe some interface or a class for filling in the css parameters in the
  ${}.
 
  But Wicket will generate the CSS header from the template on behalf of
 that
  component and attach the class attribute etc etc.
 
  hey..wait i think i can even develop something like this right now...even
 as
  i am talking about it, its kind of clear to me what i can do.
 
  ah sorry to bug yu guys with RFC ...thanks eelco
 
 
  On 7/15/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:
   Could you please be more specific to what kind kind of additional
   support you would like to see? Could you give a few end-user (from the
   perspective of framework users of course) examples of what you'd like?
  
   Eelco
  
  
   On 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
i think wicket needs to kind of improve CSS templating support. I
 think
  more
than just a resource...more of CSS and WebPage\Panel integration
 support
needs to be in wicket especially when yu needs to create widgets where
  you
want to generate certain Styles on the fly...anyway it's not like an
urgently needed feature but just a kind of suggestion that may reduce
  the
stress in bindingtwo tightly close couples like HTML and CSS
   
thanks
   
   
   
   
   
   
   
   
--
It takes insanity to drive in sanity - Me
   
Aladejebi Ayodeji A.,
DabarObjects Solutions
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
   
Community:
www.cowblock.net
   
   
 
 -
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=lnkkid=120709bid=263057dat=121642
   
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
  
  
  
 
 -
   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=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 

[Wicket-user] More CSS support in wicket?

2006-07-15 Thread Ayodeji Aladejebi
i think wicket needs to kind of improve CSS templating support. I think more than just a resource...more of CSS and WebPage\Panel integration support needs to be in wicket especially when yu needs to create widgets where you want to generate certain Styles on the fly...anyway it's not like an urgently needed feature but just a kind of suggestion that may reduce the stress in bindingtwo tightly close couples like HTML and CSS
thanks-- It takes insanity to drive in sanity - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: 
[EMAIL PROTECTED]Web: www.dabarobjects.comCommunity:www.cowblock.net

-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] More CSS support in wicket?

2006-07-15 Thread Eelco Hillenius
Could you please be more specific to what kind kind of additional
support you would like to see? Could you give a few end-user (from the
perspective of framework users of course) examples of what you'd like?

Eelco


On 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 i think wicket needs to kind of improve CSS templating support. I think more
 than just a resource...more of CSS and WebPage\Panel integration support
 needs to be in wicket especially when yu needs to create widgets where you
 want to generate certain Styles on the fly...anyway it's not like an
 urgently needed feature but just a kind of suggestion that may reduce the
 stress in bindingtwo tightly close couples like HTML and CSS

 thanks








 --
 It takes insanity to drive in sanity - Me

 Aladejebi Ayodeji A.,
 DabarObjects Solutions
 Email: [EMAIL PROTECTED]
 Web: www.dabarobjects.com

 Community:
 www.cowblock.net

 -
 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=lnkkid=120709bid=263057dat=121642


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user