[Wicket-user] How to programatically link to a css or a script ?

2006-07-23 Thread Peewhy

Hello,

I have started using Wicket few weeks ago and I am still unable to find
simple solutions to simple problems ! The problem I am facing now (after
many others !) is to link to a resource at run time. For example, to link to
a css, I am using :



in the HTML template and

add(new StyleSheetReference("menucss", getClass(), "menu.css"));

or

add(new StyleSheetReference("menucss", new ResourceReference("menu.css")));

Although the file menu.css is in the same directory as the page class, I
only get an error message :

Unable to resolve shared resource [ResourceReference name = menu.css, scope
= class wicket.Application, locale = null, style = null]

Thanks for any advice !

BTW, I am posting this from Nable since my mail was refused by the list
server because I have no posmaster address in my domain. This is not very
practical !

Pierre-Yves



-- 
View this message in context: 
http://www.nabble.com/How-to-programatically-link-to-a-css-or-a-script---tf1988255.html#a5456479
Sent from the Wicket - User forum at Nabble.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.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] How to programatically link to a css or a script ?

2006-07-23 Thread Frank Bille Jensen
Hey


On Sun, 2006-07-23 at 08:38 -0700, Peewhy wrote:
> add(new StyleSheetReference("menucss", getClass(), "menu.css"));

is getClass() returning the correct class which is in the same package
as menu.css? To be sure you could instead use
MyPageWhichIsInTheSamePackage.class or something like that.


> add(new StyleSheetReference("menucss", new ResourceReference("menu.css")));

This looks for menu.css in the same package as your "My"Application. Use
the format above instead.


> BTW, I am posting this from Nable since my mail was refused by the list
> server because I have no posmaster address in my domain. This is not very
> practical !

http://sourceforge.net/docs/C04/en/#s_no_postmaster


Regards
Frank Bille


-
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] Wicket & Portals

2006-07-23 Thread Janne Hietamäki
Hi,Wicket's native portlet support is still a work in progress, but so far it works fine. So far I have only done some testing with it (see wicket-portlet-examples subproject), but I'm expecting to start a real world application based on it in a month or two. So far I have tested running the examples on Apache JetSpeed2 and Liferay.I committed the support for portlet modes and window states today (so they will not make it to the wicket 1.2.1, but are available on the 1.2 branch on the svn), and the basic portlet support is pretty much complete now. There is a couple of pending issues on my TODO list, but they are not going to change the actual functionality. Actually, opposed to what Eelco said, portlet matches a wicket application, so a portlet can contain multiple pages, and for example setResponsePage functions in the portlets exactly as in the normal web pages. Also, for different window states (like normal or maximized), you can have different wicket pages.I believe wicket would fit nice on your project, if you don't mind the fact the portlet support has not yet been tested in any real world projects. What CMS framework are you going to use?JanneOn 21.7.2006, at 23.55, Eelco Hillenius wrote:Janne will try to answer some more later, but JSR 168 is support isbuilt in Wicket in a basic version. It uses a page per portlet, so ifyou have four wicket portlets in your portal, you'll have four wicketpages. The match is there.I think it basically works, but is a bit rough in the sense that itdoesn't have specific support for portlet modes etc, and to myknowledge, other than the other parts of Wicket, there isn't anyproject the core team is running to eat our own dog food.For the rest, I'll gladly let Janne and Ate answer. Same for whatportal environment has good CMS features etc.EelcoOn 7/21/06, Julian Klappenbach <[EMAIL PROTECTED]> wrote: Does anyone have experience using Wicket with a Portal solution?  Wehave a set of requirements that are very nicely satisfied with a CMSframework.  It might help to reduce effort if we utilized the platform,and design the elements in the UI featuring dynamic content as portlets(JSR 168).  We'd like to use Wicket for this, but at first glance, itdoesn't seem like Wicket would fit, since the architecture of Wicketassumes (correct me if I'm wrong) that there's a single backing objectper page.  What would be optimal is a single backing object per portletper page.Perhaps this is outside of the intended domain of Wicket, and if so,we'll save Wicket for later (as I'm very interested in exploring itspotential) and go the JSF route that's supported by the CMS framework.Oh, I did notice that there was a CMS project in the Wicket SVN.  Whatis the status of that project (alpha, beta, etc?)Thanks in advance,Julian KlappenbachArchitect / Development LeadRamp Technology Groupmailto:[EMAIL PROTECTED] Janne HietamäkiCemron Ltdhttp://www.cemron.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.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] How to programatically link to a css or a script ?

2006-07-23 Thread Eelco Hillenius
>
> Hello,
>
> I have started using Wicket few weeks ago and I am still unable to find
> simple solutions to simple problems ! The problem I am facing now (after
> many others !) is to link to a resource at run time. For example, to link to
> a css, I am using :
>
> 
>
> in the HTML template and
>
> add(new StyleSheetReference("menucss", getClass(), "menu.css"));
>
> or
>
> add(new StyleSheetReference("menucss", new ResourceReference("menu.css")));
>
> Although the file menu.css is in the same directory as the page class, I
> only get an error message :
>
> Unable to resolve shared resource [ResourceReference name = menu.css, scope
> = class wicket.Application, locale = null, style = null]
>
> Thanks for any advice !

If you're running Wicket 1.2 (final) or before, you had to register
shared resources in advance, using an initializer. If you use the
current svn version - which if Martijn makes it will hopefully
released later today or within the next few days -, that is fixed in
the sense that you don't have to pre-register resources anymore.

Btw, the easiest way of adding header references now - at least it's
my preferred way - is to use HeaderContributors. I wrote a little bit
about it here: 
http://chillenious.wordpress.com/2006/05/03/wicket-header-contributions-with-behaviors/
but the javadoc should hopefully be enough too.

Btw, I wouldn't say this is a 'simple' problem. Wicket is about the
only project that has such header contribution support for reusable
components. Many other frameworks either have very rudimentary
support, or not at all, requiring you to do your includes in the page
(thus breaking the whole idea of having encapsulated components).

If there are other issues you are struggling with, please post them
here (after searching whether other people had a similar post first of
course), or visit ##wicket on freenode.

> BTW, I am posting this from Nable since my mail was refused by the list
> server because I have no posmaster address in my domain. This is not very
> practical !

We are just using sourceforge's mailing list facility, which uses the
most widely used mailing list management program in the world. Can't
do better than that :)

Eelco

-
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] How to programatically link to a css or a script ?

2006-07-23 Thread Eelco Hillenius
> > add(new StyleSheetReference("menucss", new ResourceReference("menu.css")));
>
> This looks for menu.css in the same package as your "My"Application. Use
> the format above instead.

Ah, yeah. That too :)

Eelco

-
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] How to programatically link to a css or a script ?

2006-07-23 Thread Peewhy

Thank you very much !

It is not yet fully working, but I have no more exception. I used 

add(new StyleSheetReference("menucss", getClass(),
"stylesheets/menu/menu.css"));

as Frank said and put the menu.css file where it belongs (the above
directory structure starting whe the page class is).

Among the remaining problems, is the fact that references to image files
inside the css don't work, although this images are in the same directory as
the css and I am using references such as 

background-image: url(button.jpg);

I also tried 

background-image: url(/stylesheets/menu/button.jpg);

after placing a copy of the button.jpg file in /stylesheets/menu/. (starting
at the context root, which is by the way something IDEA likes !) It does not
work either although the graphics is accessible in the browser through 

http://localhost:8080/learnwicket/stylesheets/menu/button.jpg

(learnwicket being the context fro the application.)

I am using Wicket 1.2. I did not know about HeaderContributors, but I am
going to read your article asap.

BTW, I have struggled with another problem about loading images dynamically
at run time while having to pass not only the file name but the width,
height and alt attributes. After days of experiments, I ended with this
solution :

WebMarkupContainer wmc = new WebMarkupContainer("image0");
wmc.add(new AttributeModifier("src", new
Model("images/vd-contrebasse.png")));
wmc.add(new AttributeModifier("width", new Model("132")));
wmc.add(new AttributeModifier("height", new Model("101")));
wmc.add(new AttributeModifier("alt", new Model("Mains sur une
contrebasse")));
add(wmc);

Although it works, it looks a bit like brute force ! (This approach also
work for linking to a css file, and I suppose it could work for setting any
attribute of any element, but it looks ugly ! Is there a better way to
achieve this ?

Thanks al lot for your help,

Pierre-Yves


-- 
View this message in context: 
http://www.nabble.com/How-to-programatically-link-to-a-css-or-a-script---tf1988255.html#a5457215
Sent from the Wicket - User forum at Nabble.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.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] How to programatically link to a css or a script ?

2006-07-23 Thread Eelco Hillenius
>
> Among the remaining problems, is the fact that references to image files
> inside the css don't work

Probably all the same problem of not having them pre-registered.
Please could you try using the version in svn (WICKET_1_2 branch), or
download the intermediate version at
http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=173489&release_id=428730
?

There are many components, like the Tree, DatePicker, YUI Slider and
Calendar etc that work with relative images like that. So far -
besides that pre-registering - that didn't give any problems.


> BTW, I have struggled with another problem about loading images dynamically
> at run time while having to pass not only the file name but the width,
> height and alt attributes. After days of experiments, I ended with this
> solution :
>
> WebMarkupContainer wmc = new WebMarkupContainer("image0");
> wmc.add(new AttributeModifier("src", new
> Model("images/vd-contrebasse.png")));
> wmc.add(new AttributeModifier("width", new Model("132")));
> wmc.add(new AttributeModifier("height", new Model("101")));
> wmc.add(new AttributeModifier("alt", new Model("Mains sur une
> contrebasse")));
> add(wmc);
>
> Although it works, it looks a bit like brute force ! (This approach also
> work for linking to a css file, and I suppose it could work for setting any
> attribute of any element, but it looks ugly ! Is there a better way to
> achieve this ?

Well, first off, programming will always take a few lines here and
there. The whole trick with Wicket and it's philosophy of reusable
components is that you hide the ugly parts in components and expose a
nice API on them.

Instead of those static models (new Model("value")), use dynamic
models that e.g. work on properties of your component (new
PropertyModel(this, "alt")).

Furthermore, instead of using attribute modifiers, you could e.g.
override onComponentTag body, and do your attribute modification there
like: openTag.getAttributes().put(key, value) or in 2.0 (alpha
currently) you can even do it int the constructor:
getMarkupAttributes().put(key, value);

Eelco

-
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] How to programatically link to a css or a script ?

2006-07-23 Thread Igor Vaynberg
class MyImage extends WebComponent {   private int width;   private int height;   private string url;   private string text;   public myimage(string id, string url, string text, int width, int height) {
  super(id);  this.url="">  ...    }    void oncomponenttag(tag tag) {    checkcomponenttag(tag, "img");    tag.put("src",url);    tag.put("alt", text);
    tag.put("width", width);    tag.put("height", "height"); }}add(new MyImage("img1", "foo.gif", "bar", 200, 330);
add(new MyImage("img2", "foo2.gif", "bar2", 232, 523);-IgorOn 7/23/06, Eelco Hillenius <
[EMAIL PROTECTED]> wrote:>> Among the remaining problems, is the fact that references to image files
> inside the css don't workProbably all the same problem of not having them pre-registered.Please could you try using the version in svn (WICKET_1_2 branch), ordownload the intermediate version at
http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=173489&release_id=428730
?There are many components, like the Tree, DatePicker, YUI Slider andCalendar etc that work with relative images like that. So far -besides that pre-registering - that didn't give any problems.
> BTW, I have struggled with another problem about loading images dynamically> at run time while having to pass not only the file name but the width,> height and alt attributes. After days of experiments, I ended with this
> solution :>> WebMarkupContainer wmc = new WebMarkupContainer("image0");> wmc.add(new AttributeModifier("src", new> Model("images/vd-contrebasse.png")));
> wmc.add(new AttributeModifier("width", new Model("132")));> wmc.add(new AttributeModifier("height", new Model("101")));> wmc.add(new AttributeModifier("alt", new Model("Mains sur une
> contrebasse")));> add(wmc);>> Although it works, it looks a bit like brute force ! (This approach also> work for linking to a css file, and I suppose it could work for setting any
> attribute of any element, but it looks ugly ! Is there a better way to> achieve this ?Well, first off, programming will always take a few lines here andthere. The whole trick with Wicket and it's philosophy of reusable
components is that you hide the ugly parts in components and expose anice API on them.Instead of those static models (new Model("value")), use dynamicmodels that e.g. work on properties of your component (new
PropertyModel(this, "alt")).Furthermore, instead of using attribute modifiers, you could e.g.override onComponentTag body, and do your attribute modification therelike: openTag.getAttributes().put(key, value) or in 
2.0 (alphacurrently) you can even do it int the constructor:getMarkupAttributes().put(key, value);Eelco-Take Surveys. Earn Cash. Influence the Future of IT
Join 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.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-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] How to programatically link to a css or a script ?

2006-07-23 Thread Eelco Hillenius
Action speaks louder than words...

Eelco :)

On 7/23/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> class MyImage extends WebComponent {
>private int width;
>private int height;
>private string url;
>private string text;
>
>public myimage(string id, string url, string text, int width, int height)
> {
>   super(id);
>   this.url=url;
>   ...
> }
>
> void oncomponenttag(tag tag) {
> checkcomponenttag(tag, "img");
> tag.put("src",url);
> tag.put("alt", text);
> tag.put("width", width);
> tag.put("height", "height");
>  }
> }
>
> 
>
> add(new MyImage("img1", "foo.gif", "bar", 200, 330);
> add(new MyImage("img2", "foo2.gif", "bar2", 232, 523);
>
> -Igor
>
>
>
> On 7/23/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> >
> >
> > Among the remaining problems, is the fact that references to image files
> > inside the css don't work
>
> Probably all the same problem of not having them pre-registered.
> Please could you try using the version in svn (WICKET_1_2 branch), or
> download the intermediate version at
> http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=173489&release_id=428730
> ?
>
> There are many components, like the Tree, DatePicker, YUI Slider and
> Calendar etc that work with relative images like that. So far -
> besides that pre-registering - that didn't give any problems.
>
>
> > BTW, I have struggled with another problem about loading images
> dynamically
> > at run time while having to pass not only the file name but the width,
> > height and alt attributes. After days of experiments, I ended with this
> > solution :
> >
> > WebMarkupContainer wmc = new WebMarkupContainer("image0");
> > wmc.add(new AttributeModifier("src", new
> > Model("images/vd-contrebasse.png")));
> > wmc.add(new AttributeModifier("width", new Model("132")));
> > wmc.add(new AttributeModifier("height", new Model("101")));
> > wmc.add(new AttributeModifier("alt", new Model("Mains sur une
> > contrebasse")));
> > add(wmc);
> >
> > Although it works, it looks a bit like brute force ! (This approach also
> > work for linking to a css file, and I suppose it could work for setting
> any
> > attribute of any element, but it looks ugly ! Is there a better way to
> > achieve this ?
>
> Well, first off, programming will always take a few lines here and
> there. The whole trick with Wicket and it's philosophy of reusable
> components is that you hide the ugly parts in components and expose a
> nice API on them.
>
> Instead of those static models (new Model("value")), use dynamic
> models that e.g. work on properties of your component (new
> PropertyModel(this, "alt")).
>
> Furthermore, instead of using attribute modifiers, you could e.g.
> override onComponentTag body, and do your attribute modification there
> like: openTag.getAttributes().put(key, value) or in 2.0 (alpha
> currently) you can even do it int the constructor:
> getMarkupAttributes().put(key, value);
>
> Eelco
>
> -
> 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] How to programatically link to a css or a script ?

2006-07-23 Thread Pierre-Yves Saumont
Thanks Igor ! It looks really smart and works perfectly. I have now to 
read Eelco's explanations to understand how all this is working, and try 
1.2.1.

Igor Vaynberg a écrit :
> class MyImage extends WebComponent {
>private int width;
>private int height;
>private string url;
>private string text;
> 
>public myimage(string id, string url, string text, int width, int 
> height) {
>   super(id);
>   this.url=url;
>   ...
> }
> 
> void oncomponenttag(tag tag) {
> checkcomponenttag(tag, "img");
> tag.put("src",url);
> tag.put("alt", text);
> tag.put("width", width);
> tag.put("height", "height");
>  }
> }
> 
> 
> 
> add(new MyImage("img1", "foo.gif", "bar", 200, 330);
> add(new MyImage("img2", "foo2.gif", "bar2", 232, 523);
> 
> -Igor
> 
> 
> On 7/23/06, *Eelco Hillenius* < [EMAIL PROTECTED] 
> > wrote:
> 
>  >
>  > Among the remaining problems, is the fact that references to
> image files
>  > inside the css don't work
> 
> Probably all the same problem of not having them pre-registered.
> Please could you try using the version in svn (WICKET_1_2 branch), or
> download the intermediate version at
> 
> http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=173489&release_id=428730
> 
> 
> 
> ?
> 
> There are many components, like the Tree, DatePicker, YUI Slider and
> Calendar etc that work with relative images like that. So far -
> besides that pre-registering - that didn't give any problems.
> 
> 
>  > BTW, I have struggled with another problem about loading images
> dynamically
>  > at run time while having to pass not only the file name but the
> width,
>  > height and alt attributes. After days of experiments, I ended
> with this
>  > solution :
>  >
>  > WebMarkupContainer wmc = new WebMarkupContainer("image0");
>  > wmc.add(new AttributeModifier("src", new
>  > Model("images/vd-contrebasse.png")));
>  > wmc.add(new AttributeModifier("width", new Model("132")));
>  > wmc.add(new AttributeModifier("height", new Model("101")));
>  > wmc.add(new AttributeModifier("alt", new Model("Mains sur une
>  > contrebasse")));
>  > add(wmc);
>  >
>  > Although it works, it looks a bit like brute force ! (This
> approach also
>  > work for linking to a css file, and I suppose it could work for
> setting any
>  > attribute of any element, but it looks ugly ! Is there a better
> way to
>  > achieve this ?
> 
> Well, first off, programming will always take a few lines here and
> there. The whole trick with Wicket and it's philosophy of reusable
> components is that you hide the ugly parts in components and expose a
> nice API on them.
> 
> Instead of those static models (new Model("value")), use dynamic
> models that e.g. work on properties of your component (new
> PropertyModel(this, "alt")).
> 
> Furthermore, instead of using attribute modifiers, you could e.g.
> override onComponentTag body, and do your attribute modification there
> like: openTag.getAttributes().put(key, value) or in 2.0 (alpha
> currently) you can even do it int the constructor:
> getMarkupAttributes().put(key, value);
> 
> Eelco
> 
> -
> 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. E

Re: [Wicket-user] ayxiz VljAGRA

2006-07-23 Thread Nefertari Dicus



 
VljAGRA from 3 , 33 $
 
http://www.beparofte.com
 
,
,
,
,
The  Commanders line of sight. The thing must have then  climbed  the
back of my chair because Aidas voice whispered in my ear.
 I  have  done  a  voice analysis of a recording I  made  during  the-
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] CSS background images

2006-07-23 Thread Ryan Sonnek
I know this is a pretty newbie question, but how can i package an image
with my wicket app, and reference it within a static css file? 
I've been searching through the wicket wiki, with no luck.  is
there a wicket-stuff app or someplace i can dig through for an example?

Just to be clear, here's what i'm expecting to do with my css:

.myapplicationClass {
  background-image: url('/com/codecrate/app/BackgroundImage.gif');
}
-
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] How to change value of a Textfield from popup page

2006-07-23 Thread Srinivas Sunkara
Hi All - I am sort of new to Wicket and just trying to get my hands dirty now... ;-)I have a input text field on a page and a link to open a popup page. Once the popup is opened, I would like to make some selections from a pallete and set those selections to the parent input field as text (comma separated values). I have the page and popup with pallete built. Now I was wondering how I can set the selections from the popup to the parent page's input text field. Any help you can offer is greatly appreciated.Thank you so much in advance,-Srinu-
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] CSS background images

2006-07-23 Thread Igor Vaynberg
i guess it is not something that we support right now, but something that is cleary needed. we need to build a resource that can load a css file, parse for images, replace them, and then serve the altered content.i know almaw has been working on something like this but i dont know how far he got. a patch would be welcome, if not then i guess you will have to wait until one of the core devels has the time.
even a patch to parse css and figure out where the paths are would be very helpful.-IgorOn 7/23/06, Ryan Sonnek <
[EMAIL PROTECTED]> wrote:I know this is a pretty newbie question, but how can i package an image
with my wicket app, and reference it within a static css file? 
I've been searching through the wicket wiki, with no luck.  is
there a wicket-stuff app or someplace i can dig through for an example?

Just to be clear, here's what i'm expecting to do with my css:

.myapplicationClass {
  background-image: url('/com/codecrate/app/BackgroundImage.gif');
}

-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.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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] How to change value of a Textfield from popup page

2006-07-23 Thread Igor Vaynberg
you have to do this using _javascript_.call setoutputmarkupid(true) on the textfield and pass this id into the popup page, then have the popup page output this _javascript_ when you want to set the value:window.opener.document.getElementById
(id).value='foo';-IgorOn 7/23/06, Srinivas Sunkara <[EMAIL PROTECTED]> wrote:
Hi All - I am sort of new to Wicket and just trying to get my hands dirty now... ;-)I have a input text field on a page and a link to open a popup page. Once the popup is opened, I would like to make some selections from a pallete and set those selections to the parent input field as text (comma separated values). I have the page and popup with pallete built. Now I was wondering how I can set the selections from the popup to the parent page's input text field. Any help you can offer is greatly appreciated.
Thank you so much in advance,-Srinu
-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.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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] wicket.markup.html.tree.Tree is not suitable for very big tree

2006-07-23 Thread David Leangen

>   Could you give me more detailed information on what methods in Tree
> I should override?
> 

There may be other/better ways, but what I did was this:

class MyTree extends Tree
{
  private TreeModelProvider m_provider;

  ...

  @Override
  protected void junctionLinkClicked( DefaultMutableTreeNode node )
  {
  // Keep the functionality of the super class, it is what we want
  super.junctionLinkClicked( node );

  if( isExpanding( node ) )
  {
TreeModel newModel = m_provider.expandNode( node );
if( null != newModel )
setTreeModel( newModel );
expandNode( node );
  }
  else
  {
TreeModel newModel = m_provider.collapseNode( node );
if( null != newModel )
setTreeModel( newModel );
expandNodes((DefaultMutableTreeNode)node.getParent());
  }
  }

  ...
}

The TreeModelProvider class provides the model for my tree. In this
class, I decide what data I need to load to properly display the tree,
without loading any unnecessary data.

And of course, when adding this tree to my Wicket page, I use:

  Tree tree = new MyTree( "tree", provider )
  {
  private static final long serialVersionUID = 1L;

  protected String getNodeLabel( DefaultMutableTreeNode node )
  {
  final MyTreeNode treeNode = (MyTreeNode)node.getUserObject();
  return treeNode.getLabel();
  }
  };

  add( tree );


Good luck!


On Fri, 2006-07-21 at 16:20 +0800, Rice Yeh wrote:



-
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] how to disable all choices of a radio choice

2006-07-23 Thread Nili Adoram
Hi all,
I have a radio choice add to form:
FormComponentfc = new RadioChoice("types", types),
new IChoiceRenderer() {
//some code
});
fc.setEnabled(false);
add(fc);

I wanted to disabled all choices so I call fc.setEnabled(false).
However, in the markup, only the div is disabled and not the choices.
When markup is created (RadioChoice.onComponentTagBody()) disbaled 
property is not considered per choice.
So my question is, how can I disable all/some choices from Java code?
Thanks,
Nili

-
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] how to disable all choices of a radio choice

2006-07-23 Thread Igor Vaynberg
please file a bug-IgorOn 7/23/06, Nili Adoram <[EMAIL PROTECTED]> wrote:
Hi all,I have a radio choice add to form:FormComponentfc = new RadioChoice("types", types),new IChoiceRenderer() {//some code});fc.setEnabled
(false);add(fc);I wanted to disabled all choices so I call fc.setEnabled(false).However, in the markup, only the div is disabled and not the choices.When markup is created (RadioChoice.onComponentTagBody
()) disbaledproperty is not considered per choice.So my question is, how can I disable all/some choices from Java code?Thanks,Nili-
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.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-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