custom icons on LinkTree nodes?

2007-10-03 Thread wfaler
Hi, I'm using a LinkTree to display a tree-structure with links in a sidebar. What do I have to do to get it to display custom icons (on a per node-basis) in the tree? Help would be very much appreciated. / Wille -- View this message in context:

Re: custom icons on LinkTree nodes?

2007-10-03 Thread swaroop belur
If you are referring to open/close images Try this in ur LinkTree class impl: protected Component newNodeComponent(String id, IModel model) { return new LinkIconPanel(id, model, LinkTree.this) { private static final long

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Johan Compagner
are you talking about 1.2 or 1.3? in 1.2 a session could grow a little bit because we have there max 7 pages that all also can contain some version info. But as you said when you do setResponsePage(Page.class) everything drops to normal that means that you have to use 1.3 because then the newly

Re: wicket datetime / YUI calendar

2007-10-03 Thread Nino Saturnino Martinez Vazquez Wael
GREAT!! :) Thanks. Did you also get the patch for the standalone (always shown) calendar commited? regards Nino Gerolf Seitz wrote: On 10/1/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Multipage calendar http://developer.yahoo.com/yui/examples/calendar/calgrp.html

Re: wicket datetime / YUI calendar

2007-10-03 Thread Gerolf Seitz
On 10/3/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: GREAT!! :) Thanks. Did you also get the patch for the standalone (always shown) calendar commited? which patch? do you mean the DatePicker#renderOnLoad and #hideOnSelect thingy? that should be in. gerolf regards

Re: wicket datetime / YUI calendar

2007-10-03 Thread Nino Saturnino Martinez Vazquez Wael
Yup thats the one:).. Gerolf Seitz wrote: On 10/3/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: GREAT!! :) Thanks. Did you also get the patch for the standalone (always shown) calendar commited? which patch? do you mean the DatePicker#renderOnLoad and

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Johan Compagner
ok found it, We are leaking auto add html header containers. Looking to fix it. On 10/3/07, Johan Compagner [EMAIL PROTECTED] wrote: are you talking about 1.2 or 1.3? in 1.2 a session could grow a little bit because we have there max 7 pages that all also can contain some version info.

Re: Google Maps API

2007-10-03 Thread Martin Funk
hmm.. how do you deploy? To get a first glimpse, a: mvn jetty:run should get the jetty server running and the examples should be visible at: http://localhost:8080/wicket-contrib-gmap2-examples/ If you want to start it from within Eclipse using the Start class a: mvn eclipse:clean

Re: pass information through ajax without form

2007-10-03 Thread David Bernard
For a similar case, I override (in MyBehavior) @Override public final void respond(AjaxRequestTarget target) { try { Request req = RequestCycle.get().getRequest(); String param1 = req.getParameter(param1); // to stuff

Re: pass information through ajax without form

2007-10-03 Thread ywtsang
i have traced the wicket source codes at the place that how it generates the ajax js like wcall=wicketAjaxGet('xxx') but i don't know exactly what this does, so how to add parameter to the wicket ajax request? i can add custom js to the wicket ajax javascript, but how can I pass the some

Re: pass information through ajax without form

2007-10-03 Thread David Bernard
Currently I have no simple example :-( In my case (wicketstuff-jquery), I've got a link that call a javascript function generated (with a template on server side). In this function : var wcall = wicketAjaxGet('${callbackUrl}' + DnDSortableBehavior.asQueryString(), function(){}, function(){});

Wicket Ajax Debug window - font color

2007-10-03 Thread Daniel Stoch
Hi, The Wicket Ajax Debug (WAD) window has a background color set to white but the font color is not set (in wicket-ajax-debug.js) - it uses the base page defaults. So when I have in css for my page setting like this: body {color: #FF;} the text in WAD is not visible. Maybe you should add

Re: pass information through ajax without form

2007-10-03 Thread ywtsang
my case is: there is a javascript variable (let say var STATE;) that will be updated througout the client side javascript event there is a link (for example) that I want to use to pass the STATE through ajax to server. in your codes, does client side javascript method

Re: pass information through ajax without form

2007-10-03 Thread David Bernard
ywtsang wrote: my case is: there is a javascript variable (let say var STATE;) that will be updated througout the client side javascript event there is a link (for example) that I want to use to pass the STATE through ajax to server. in your codes, does client side javascript method

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Martin2
Hi, thanks for the quick response. Should I open a JIRA issue for this or is it to minor to justify the overhead? bw, Martin Johan Compagner wrote: ok found it, We are leaking auto add html header containers. Looking to fix it. On 10/3/07, Johan Compagner [EMAIL PROTECTED]

Adding a Link for a Whole ListItem

2007-10-03 Thread Christopher Gardner
With a ListView is there a way to actually create a Link component that encompasses the whole ListItem, such that when you click anywhere on a row the onClick event is fired? I know you can do this with Ajax support, but I'm curious if you can do this using the traditional way, i.e., with a full

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Gerolf Seitz
i think johan already fixed it in trunk. gerolf On 10/3/07, Martin2 [EMAIL PROTECTED] wrote: Hi, thanks for the quick response. Should I open a JIRA issue for this or is it to minor to justify the overhead? bw, Martin Johan Compagner wrote: ok found it, We are leaking auto

How to match File Pattern?

2007-10-03 Thread Edi
Hello Guys, I have different file patterns like *.xls (all the xls files) n*.xls (xls file starts with n) - all the xls files starts with n How can we do this pattern matching in wicket? Please let me know. Thanking you. Regards, Edi -- View this message in context:

Re: Adding a Link for a Whole ListItem

2007-10-03 Thread Maurice Marrink
Yes you can, The trick is to extend ListItem and have it implement ILinkListener you can then add the onclick behavior through an attributemodifier or override oncomponenttag. To prevent having to make a subclass per page you should make the onLinkClicked method in your listitem redirect to a

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Johan Compagner
jip, but open and close a jira if you want to have this in the change list.. On 10/3/07, Gerolf Seitz [EMAIL PROTECTED] wrote: i think johan already fixed it in trunk. gerolf On 10/3/07, Martin2 [EMAIL PROTECTED] wrote: Hi, thanks for the quick response. Should I open a JIRA issue

CompoundPropertyModel stops working when form validation fails.

2007-10-03 Thread Fabio Fioretti
Hi all, thanks for your time and for keeping up this precious users' list. I have a page with a page-global currentRecommendation variable. The instance of this variable is updated by selecting one of the entries of a ListChoice; basically, the ListChoice deals with a list of recommendations

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Martin2
I'm using trunk right now and the issue is resolved, the session size does not increase anymore when setting the response page. Since this was a critical one on our issue tracking, thanks for the quick fix. I opened jira https://issues.apache.org/jira/browse/WICKET-1036 WICKET-1036 and I'll

Re: Graceful handling of ajax after session expiration

2007-10-03 Thread leok
Thanks for the response! I'm not sure if this solves my problem though, or if I understand this correctly. Even if I use HybridUrlCodingStrategy to mount the page, I will still get redirected to a Session Expired page if I try to use any ajax-enabled component. A second problem emerges when I

Re: Wicket Ajax Debug window - font color

2007-10-03 Thread Daniel Stoch
Done: https://issues.apache.org/jira/browse/WICKET-1037 Daniel On 10/3/07, Matej Knopp [EMAIL PROTECTED] wrote: Sure, please add a issue to JIRA. thanks. -Matej On 10/3/07, Daniel Stoch [EMAIL PROTECTED] wrote: Hi, The Wicket Ajax Debug (WAD) window has a background color set to

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-03 Thread Martin-2
Hi, if I understand correctly, the page variable and the panel model should always point to the same thing. I suggest you give your page a model with currentRecommendation as model object. Then construct your panel with the same model instance as the page (or wrap it with an IChainingModel) and

Getting started with Hibernate and Wicket

2007-10-03 Thread Neil B. Cohen
I'm trying to learn both Hibernate and Wicket at the same time, and I could use a couple of pointers... I have managed to take the Wicket 'signin' example and added a tiny Hibernate database which I can access to extract a 'User' object to validate the user's name and password. That works

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-03 Thread Fabio Fioretti
On 10/3/07, Martin-2 [EMAIL PROTECTED] wrote: Hi, Hi, thanks for the quick reply. if I understand correctly, the page variable and the panel model should always point to the same thing. Right. I suggest you give your page a model with currentRecommendation as model object. Then construct

CheckBox is misbehaving...

2007-10-03 Thread V. Jenks
NOTE: I'm stuck at Wicket 1.2.4 and cannot upgrade yet. I've got a very simple form with an input class that looks like this: public class PaymentInfoInput implements Serializable { private Boolean optedForNewsletter; .

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-03 Thread Martin-2
Ok, now I undestand better. So if the model of your page is complex, just put the complex data in a custom model object and then use page.setModel(new Model(complexObject)). Just move the get/set of your variable into the model object. In the form on submit then do

Re: Getting started with Hibernate and Wicket

2007-10-03 Thread Landry Soules
You will find good examples here : http://www.wicketstuff.org/wicket13/repeater/ and http://cwiki.apache.org/WICKET/reading-from-a-database.html Neil B. Cohen a écrit : I'm trying to learn both Hibernate and Wicket at the same time, and I could use a couple of pointers... I have managed

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-03 Thread anita nichols
How do I use datagrid on wicket? I tried the datagrid sample on wicket 1.2 is sooo confusing. Any sugestion where to look

Re: Getting started with Hibernate and Wicket

2007-10-03 Thread Alexandre Bairos
http://databinder.net does a good job. On 10/3/07, Neil B. Cohen [EMAIL PROTECTED] wrote: I'm trying to learn both Hibernate and Wicket at the same time, and I could use a couple of pointers... I have managed to take the Wicket 'signin' example and added a tiny Hibernate database which I

Re: CheckBox is misbehaving...

2007-10-03 Thread V. Jenks
I apologize if this is a dumb question but can anyone offer any advice? A work-around would be fine, if necessary. I'm unable to figure this thing out. It's the last issue before I can put my app into production today. Thanks! V. Jenks wrote: NOTE: I'm stuck at Wicket 1.2.4 and cannot

Re: CheckBox is misbehaving...

2007-10-03 Thread Igor Vaynberg
you are not tying your checkbox's model to the form's model object so it saves into its own model.. as you can see here: IModel checkedModel = new Model(customer.isOptedForNewsletter()); form.add(new CheckBox(optedForNewsletter, checkedModel)); you are giving it its own model... so in your

Re: Adding a Link for a Whole ListItem

2007-10-03 Thread Christopher Gardner
Thank you. I got this to work. Now I'm wondering how the ILinkListener gets registered to pick up the event. Does anything that happens to implement that interface automatically get registered? On 10/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Yes, but odds are you already had to do that,

Dumb question about page transfer

2007-10-03 Thread Neil B. Cohen
Ok - I'm feeling kind of stupid at the moment, but I'm missing something basic here... I have a Wicket web page displayed with a button on it. When I click the button, the onSubmit routine fires and my java code logs a message so I know it is working. But from there, I want to transfer to

Re: Dumb question about page transfer

2007-10-03 Thread Igor Vaynberg
onsubmit() { setresponsepage(MyPage.class); or setresponsepage(new MyPage(...)); } -igor On 10/3/07, Neil B. Cohen [EMAIL PROTECTED] wrote: Ok - I'm feeling kind of stupid at the moment, but I'm missing something basic here... I have a Wicket web page displayed with a button on it.

Re: Dumb question about page transfer

2007-10-03 Thread Nick Heudecker
You're looking for the setResponsePage(...) methods. On 10/3/07, Neil B. Cohen [EMAIL PROTECTED] wrote: Ok - I'm feeling kind of stupid at the moment, but I'm missing something basic here... I have a Wicket web page displayed with a button on it. When I click the button, the onSubmit

Re: Dumb question about page transfer

2007-10-03 Thread Neil B. Cohen
Igor Vaynberg wrote: onsubmit() { setresponsepage(MyPage.class); or setresponsepage(new MyPage(...)); } -igor Thanks for the quick response... Much obliged, nbc On 10/3/07, Neil B. Cohen [EMAIL PROTECTED] wrote: Ok - I'm feeling kind of stupid at the moment, but I'm missing

Re: CheckBox is misbehaving...

2007-10-03 Thread V. Jenks
Ah ha, that makes sense...I understand now. I reorganized the code so I could pre-load the input class first and it works. Thanks much! igor.vaynberg wrote: you are not tying your checkbox's model to the form's model object so it saves into its own model.. as you can see here: IModel

Article about Wicket on javamagazin.de

2007-10-03 Thread Gerolf Seitz
for all those who are capable of reading german, here is an article about wicket on javamagazin.de http://javamagazin.de/itr/online_artikel/psecom,id,933,nodeid,11.html i'll add a link to it in the wiki gerolf

Re: Article about Wicket on javamagazin.de

2007-10-03 Thread Gerolf Seitz
it's also on the frontpage of the magazine. see http://javamagazin.de/itr/ausgaben/pspic/bildgross/66/big4700f14df0a73.gif the second smaller heading right below the jruby heading oh, and the authors of the article will have a talk at the conference w-jax07 in germany. gerolf On 10/3/07, Gerolf

webpage instance scope?

2007-10-03 Thread dukehoops
Hi, I'm evaluating Wicket as a potential replacement for JSF and have a question (tried searching, read wiki): What is the lifespan of a WebPage / Panel subclass instance? In JSF, page-backing beans can be request/session/app scoped. I read that Wicket is an unmanaged framework. Does that mean

is wicket well-suited for integrating JS widgets?

2007-10-03 Thread dukehoops
I'm a complete newbie to wicket (coming from JSF, Swing world) and am in process of building small examples as part of framework eval. I'm looking for a framework that'd make it easy to integrate arbitrary JS ui components. Let's say Y!UI or Script.aculo.us develops a new super-accordion (or

Re: Getting started with Hibernate and Wicket

2007-10-03 Thread Tauren Mills
Wicketstuff Phonebook is a good starting place for wicket/spring/hibernate integration: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On 10/3/07, Alexandre Bairos [EMAIL PROTECTED] wrote: http://databinder.net does a good job. On 10/3/07, Neil B. Cohen [EMAIL

Re: webpage instance scope?

2007-10-03 Thread Johan Compagner
pages are stored in the session (if they are statefull, that means they have callbacks) A stateless page could maybe been seen as a request scope object. there is no such thing as a combination of those 2. johan On 10/3/07, dukehoops [EMAIL PROTECTED] wrote: Hi, I'm evaluating Wicket as

Re: is wicket well-suited for integrating JS widgets?

2007-10-03 Thread David Bernard
Hi, It's lot of easier to integrate JS lib with wicket, than with JSF. I currently work on JQuery's widget. About integration with YUI or Scriptaclus, take a look at wicketstuff.org (svn and wiki), there is already some project about it. Regards. dukehoops wrote: I'm a complete newbie to

Missing resource parameters for an Image using a ResourceReference

2007-10-03 Thread Doug Leeper
I am using a ResourceReference to access a SharedResource for an Image. I am also passing parameters via a ValueMap to obtain the correct image. However, when I look at my URL, the parameters are missing. I traced it to Image.onComponentTag() code final ResourceReference

Re: webpage instance scope?

2007-10-03 Thread dukehoops
Sorry, I am still a bit unclear: 1.say I go to an app at localhost/MyApp/app 2.App's home page is HomePage.class; its' constructor executes 3.I do browser reload, HomePage's contructor is executed again (so I'm getting a new object and not one costructed in #2) How can I get Wicket to reuse

Re: Missing resource parameters for an Image using a ResourceReference

2007-10-03 Thread Doug Leeper
BTW...if I change LocaledImageResource.setResourceReference( ResourceReference ref ) to the following: public final void setResourceReference(final ResourceReference resourceReference) { setResourceReference(resourceReference, resourceParameters); }

Custom label for number and currency formatting?

2007-10-03 Thread Tauren Mills
Does such a thing exist? I thought it did, but can't find it now. Basically, I want a Label that allows me to format floats/doubles as currency. I don't need i18n built in (for different currencies, etc.), just take double x=8.3 and output $8.30. Any pointers are appreciated! Thanks. Tauren

Re: Article about Wicket on javamagazin.de

2007-10-03 Thread Eelco Hillenius
Very nice. Eelco On 10/3/07, Gerolf Seitz [EMAIL PROTECTED] wrote: it's also on the frontpage of the magazine. see http://javamagazin.de/itr/ausgaben/pspic/bildgross/66/big4700f14df0a73.gif the second smaller heading right below the jruby heading oh, and the authors of the article will

Re: is wicket well-suited for integrating JS widgets?

2007-10-03 Thread Igor Vaynberg
see wiclet-stuff svn repo, there are projects that integrate wicket with yui, scriptaculous, animator.js, gmap, mootools, openlayers, tinymce, dojo. if all those projects do it then its not so bad... :) https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/ -igor On 10/3/07,

Re: Google Maps API

2007-10-03 Thread Ballist1c
Ah that might explain it... ive attempted to deploy it in the current Netbeans IDE im using with the crappy tomcat integrated server (v5.5 or osmething i think) My main project is destined to run on a base tomcat server at the moment, and as a team we are not considering adding any other

Re: webpage instance scope?

2007-10-03 Thread Eelco Hillenius
1.say I go to an app at localhost/MyApp/app 2.App's home page is HomePage.class; its' constructor executes 3.I do browser reload, HomePage's contructor is executed again (so I'm getting a new object and not one costructed in #2) Your home page is a bookmarkable page (and are thus not session

Re: webpage instance scope?

2007-10-03 Thread Eelco Hillenius
Scoping depends. RequestCycles and stateless pages are per request, Sessions are per session, Application is per Wicket filter. How pages are scoped basically depends on the session store you use, and whether they are reachable by the back button. By default, the current page is stored in the

Re: Adding a Link for a Whole ListItem

2007-10-03 Thread swaroop belur
Look up how requesttargets work in wicket. In particular look up ListenerInterfaceRequestTarget for this use case. It just knows how to call ur component(link for example) in ur page object. Call will land in onLinkClicked. -swaroop Christopher Gardner-2 wrote: Thank you. I got this

Re: Custom label for number and currency formatting?

2007-10-03 Thread swaroop belur
Do this double x= 8.3; Label dbl = new Label(dbllbl,+x){ @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) {