Re: Mount causes strange effects on my web application

2008-04-04 Thread SteamR
My project structure is as follows: root -- WEB-INF -- classes -- libs -- css --css-files -- js --javascript files. -- images --image files. -- html files. I have changed the default location of the resources, to reflect the

Re: Mount causes strange effects on my web application

2008-04-04 Thread Igor Vaynberg
see ContextImage and how it generates the necessary ../../ prefix, do the same for your javascript inside iheadercontributor. -igor On Thu, Apr 3, 2008 at 11:22 PM, SteamR [EMAIL PROTECTED] wrote: My project structure is as follows: root -- WEB-INF -- classes --

Re: Changing Wickets default styles

2008-04-04 Thread Nino Saturnino Martinez Vazquez Wael
Strange, but that is the way with browsers:) Steen Larsen wrote: More or less. Rearranging the order of the styles, seems to have an influence. No idea why but it looks ok now. Firebug only showed the first style (background-image), but changing the order made more show up (not all). Go figure.

IE 6 7 Ajax Refresh Issue

2008-04-04 Thread Cristi Manole
Hello, I have on a page 3 radio buttons in a group and for each radio a drop down: xDropDown1 V oDropDown2 V oDropDown3 V When the user selects a radio, the corresponding dropdown will be enabled and the other two disabled. In Firefox, this works as I need it to, but in IE, the

Re: Writing to .properties files and make changes happen?

2008-04-04 Thread Azzeddine Daddah
Why don't you try to use the Apache Commons Configuration? Take a look http://commons.apache.org/configuration Azzeddine On Fri, Apr 4, 2008 at 8:35 AM, unka_hahrry [EMAIL PROTECTED] wrote: I call this method from inside a WebPage: public static void setNewText(String path, String textId,

Re: Writing to .properties files and make changes happen?

2008-04-04 Thread Johan Compagner
What is the path you write it in? Where sits the property file? On 4/4/08, unka_hahrry [EMAIL PROTECTED] wrote: I call this method from inside a WebPage: public static void setNewText(String path, String textId, String neuerText) throws IOException { ...

Re: IE 6 7 Ajax Refresh Issue

2008-04-04 Thread Igor Vaynberg
make sure you dont have any span tags attached to wicket components that have div tags inside. also past the output of wicket ajax console -igor On Thu, Apr 3, 2008 at 11:52 PM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, I have on a page 3 radio buttons in a group and for each radio a

Re: Problems with wicketstuff-contrib-jasperreports

2008-04-04 Thread Maurice Marrink
Not sure what the status is of that project, but it not that hard to do it yourself. Something like this should get you started. InputStream is = getClass().getResourceAsStream(template.jrxml); JasperDesign design = JRXmlLoader.load(is); //do something with template JasperReport report =

Re: Throw AbortWithWebErrorCodeException in onBeforeRender

2008-04-04 Thread Michael Sparer
While creating a quickstart for the jira issue, I noticed that it only occurs when using custom error pages as described on http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html ... so maybe jetty creates a new (internal) web request and the application gets detached before the

DataPicker problem

2008-04-04 Thread lienok
Hello, I am following book Enjoying web development with wicket, using Wicket 1.3.2. Everythink worked fine till I added form.add(quoteDate). Please check code and stack trace below and let me know any advice. Thank you public class GetQuoteSymbol extends WebPage { private Model

Re: DataPicker problem

2008-04-04 Thread Gerolf Seitz
you don't have joda-time in your classpath. Gerolf On Fri, Apr 4, 2008 at 9:55 AM, lienok [EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello, I am following book Enjoying web development with wicket, using Wicket 1.3.2. Everythink worked fine till I added form.add(quoteDate). Please check

Re: Throw AbortWithWebErrorCodeException in onBeforeRender

2008-04-04 Thread Michael Sparer
Maybe I didn't explain it precise enough, the subclass ain't the right place to do that cause my usecase is like: class Super { onBeforeRender() { if (!isValid()) { throw Abort...Exception(404); } } abstract boolean isValid(); } class Sub extends

Re: DataPicker problem

2008-04-04 Thread Igor Vaynberg
you werent kidding about 3 hours of sleep... -igor On Fri, Apr 4, 2008 at 12:57 AM, Gerolf Seitz [EMAIL PROTECTED] wrote: you don't have joda-time in your classpath. Gerolf On Fri, Apr 4, 2008 at 9:55 AM, lienok [EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello, I am

Get back value for a RatingPanel

2008-04-04 Thread Fabien D.
Hi I have a problem to get back the value of a rating panel. It displays well. This is the déclaration : RatingPanel rating = new RatingPanel(str_rating,model_rating,5,true){ private double rating = 0;

Re: DataPicker problem

2008-04-04 Thread TonyVegas
Did you include the JodaTime package into your project? lienok wrote: Hello, I am following book Enjoying web development with wicket, using Wicket 1.3.2. Everythink worked fine till I added form.add(quoteDate). Please check code and stack trace below and let me know any advice.

Re: DataPicker problem

2008-04-04 Thread Thijs
http://joda-time.sourceforge.net/ lienok schreef: I did not. I do not have that package. I do not use anything special. I supposed it should be included in wicket jars. I tryied to find JodaTime package through google, bo no success. :( TonyVegas wrote: Did you include the JodaTime

Re: DataPicker problem

2008-04-04 Thread Fabien D.
search joda-time... and this package is obligatory :) -- View this message in context: http://www.nabble.com/DataPicker-problem-tp16487490p16490804.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Customerize captcha image

2008-04-04 Thread wenm
Thank you very much! I just create my own captcha by extends RenderedDynamicImageResource. Vitaly Tsaplin wrote: Create your own captcha :) The idea of the RenderedDynamicImageResource is brilliant. You just need to implement the render (Graphics2D gfx) method. Draw there whatever you

Re: Get back value for a RatingPanel

2008-04-04 Thread Maurice Marrink
Where do you set the value of the model? It looks to me like you need to get rid of rating double in the panel and use that as the model value. Something like this: protected boolean onIsStarActive(int star) { return star ((int)(model_rating.getObject()+

Re: DataPicker problem

2008-04-04 Thread lienok
Hi, thank you for the obvious advice =) It helped of course. I just do not understand what was the problem. I have run the same code few weeks ago on my home computer without any problem and I did NOT add any joda-time jar. confused .. :confused: Fabien D. wrote: search joda-time... and

Re: Writing to .properties files and make changes happen?

2008-04-04 Thread unka_hahrry
Damn... Yes, it was the false path... Obviously the .properties file must be changed in the context of classes, not in the source... Thank you very much!!! Johan Compagner wrote: What is the path you write it in? Where sits the property file? On 4/4/08, unka_hahrry [EMAIL PROTECTED]

Re: wicket, spring and aop

2008-04-04 Thread Korbinian Bachl - privat
Hello, im quite new to spring, but afaik you cant have spring manipulating wicket itself; however you could create a spring based proxy-class for those purposes and have it used by @SpringBean(name=name) where you put the logic in it; maybe its possible to have a wicket-PageClass be also a

Re: Removing the jsessionid for SEO

2008-04-04 Thread Korbinian Bachl - privat
Hi Jeremy, Hi Dan, for a project long ago I had the trail of making a product-browser SEO friendly; I used a plain PagingNavigator at first, and then extended it to have it to use the IndexedUrlPageParameters; this allowed me to put anything into the path to have a nice URL; the key here is

RE: Default selection in radio group?

2008-04-04 Thread Hoover, William
see http://cwiki.apache.org/confluence/display/WICKET/Using+RadioGroups -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 8:49 PM To: users@wicket.apache.org Subject: Default selection in radio group? I created a RadioGroup with three

Re: Default selection in radio group?

2008-04-04 Thread Cristi Manole
Hi, What I did is use the same model for the group and for the radio item I want selected. For example: add(radioGroup = new RadioGroup(group, new Model(selectthis))); //the radio who has the same model will be selected radioGroup.add(someradio1Radio = new Radio(someradio1radio, new

Re: ModalWindow and Ajax?

2008-04-04 Thread Nino Saturnino Martinez Vazquez Wael
:) After instantiating your modal window. You can do something like this: AjaxLink popupLink = new AjaxLink(manageWeightPop) { @Override public void onClick(AjaxRequestTarget target) { * target.appendJavascript(Wicket.Window.unloadConfirmation =

Re: IE 6 7 Ajax Refresh Issue

2008-04-04 Thread Cristi Manole
Hi, I've been searching around a bit and found the solution. I figured maybe someone else will face the same issue. It's pretty darn simple anyway. I used to do what I wanned like this: someRadio.add(new AjaxEventBehavior(onchange){...} This worked great in FF, but in IE7 it didn't... all i

Multiple TextField in ListView

2008-04-04 Thread Mathias P.W Nilsson
Hi! In my application a user should be able to connect keywords to a datasheet. When clicking the link add keywords 10-20 textfields should appear and the user can enter data to the fields. #1 textField #2 textfield .. How can I handle this like an array in wicket? I do not want to add

ListView params from 1.2 to 1.3 - detached data

2008-04-04 Thread V. Jenks
I'm having some trouble finding out how to use detached data with a ListView, as I would have in Wicket 1.2. In 1.2 I would have used a detachable model: IModel model = new LoadableDetachableModel() { protected Object load()

Re: ListView params from 1.2 to 1.3 - detached data

2008-04-04 Thread Scott Swank
The 2nd constructor, below, takes an id IModel. http://wicketstuff.org/wicket13doc/org/apache/wicket/markup/html/list/ListView.html ListView(java.lang.String id) ListView(java.lang.String id, IModel model) ListView(java.lang.String id, java.util.List list) - Scott On Fri, Apr 4, 2008 at 9:07

Sorting and ListView

2008-04-04 Thread mnwicket
I'm using a ListView to display contents of a List of a domain object. Pretty simply. However, the domain has a name on it that is internationalized, ie it will used a key value from a dot properties file. The issue is is that the List of object must be sorted based on the internationalized

Re: Sorting and ListView

2008-04-04 Thread Mathias P.W Nilsson
Couldn't you just use the Comparator? Add all items to a list, with the translated name implement Comparator and make the sort. Return the sorted list as a model. -- View this message in context: http://www.nabble.com/Sorting-and-ListView-tp16493832p16494143.html Sent from the Wicket - User

Re: Sorting and ListView

2008-04-04 Thread mnwicket
This issue isn't about how to sort, this issue is at what point do you grab the translated name. Mathias P.W Nilsson wrote: Couldn't you just use the Comparator? Add all items to a list, with the translated name implement Comparator and make the sort. Return the sorted list as a model.

Re: Multiple TextField in ListView

2008-04-04 Thread Nino Saturnino Martinez Vazquez Wael
A listview with a listview or a repeater? Mathias P.W Nilsson wrote: Hi! In my application a user should be able to connect keywords to a datasheet. When clicking the link add keywords 10-20 textfields should appear and the user can enter data to the fields. #1 textField #2 textfield

RE: Removing the jsessionid for SEO

2008-04-04 Thread Dan Kaplan
That is helpful, but: This is an extension of the standard, so not all bots may follow it. I wonder if the major ones do... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Levy Sent: Thursday, April 03, 2008 6:16 PM To: users@wicket.apache.org

Re: DataPicker problem

2008-04-04 Thread Matthew Young
If you use Maven, just add the dependency: dependency groupIdorg.apache.wicket/groupId artifactIdwicket-extensions/artifactId version${wicket.version}/version /dependency dependency

Re: [WUG] Copenhagen

2008-04-04 Thread Flemming Boller
I will also be there :-) /Flemming On Thu, Apr 3, 2008 at 3:26 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Thanks:) Frank Bille wrote: Good initiative. I'm glad you are taking lead on this. I think I can come and have signed up on the wiki page. Frank

Re: Strange behaviour with autocomplete

2008-04-04 Thread Erik van Oosten
This may be related to the bug I reported in https://issues.apache.org/jira/browse/WICKET-1355. Maybe the attached fix works for you. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ David Leangen wrote: Hi, Using the standard wicket autocomplete widget, I

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-04 Thread Daniel Wu
I think I've found the solution for my StreamCorruptedException problem. Inside the org.apache.wicket.Page, there is a constant LATEST_VERSION which value is -1. In my application, the versionNumber passed as parameter to the method getVersion(final int versionNumber) inside Page is never -1, the

Re: Multiple TextField in ListView

2008-04-04 Thread jeredm
Here is how I would do it: HTML: table tr wicket:id=tableRow td . input wicket:id=textInput type=text / /td /tr /table Model Object: // this is a simple object I am going to use for my model. // It holds the value the user

Re: UploadProgress Bar and cancel button

2008-04-04 Thread sunraider
I doubt its a workerthread issue, it calls the submit form even though the default form processing is set to false. Nino.Martinez wrote: This is something not really wicket related, but more workerthread... You need for it to run asynch in order for wicket to be able to process it the

RE: Default selection in radio group?

2008-04-04 Thread Michael Mehrle
Yes, that actually worked for me - thanks!! Michael -Original Message- From: Cristi Manole [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2008 5:33 AM To: users@wicket.apache.org Subject: Re: Default selection in radio group? Hi, What I did is use the same model for the group and

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-04 Thread Matej Knopp
passing 0 instead of -1 is definitely not the solution. This can result in wrong page version set to other page references. I wish you could provide a quickstart that reproduces the problem. It looks like a bug in wicket but so far I'm not able to reproduce this behavior. -Matej On Fri, Apr 4,

Error using JUnit: Can't instantiate page using constructor

2008-04-04 Thread PhilipJohnson
Greetings, all, I am getting started with Wicket and just wrote my first simple JUnit test for a small Wicket application (taken from the Wicket in Action book). The test is: public class TestIndexPage { @Test public void labelContainsHelloWorld() { WicketTester tester = new

Re: Error using JUnit: Can't instantiate page using constructor

2008-04-04 Thread Igor Vaynberg
look at the stacktrace, the root cause is: Caused by: java.lang.ClassCastException: org.apache.wicket.util.tester.WicketTester$DummyWebApplication cannot be cast to com.cheesr.CheesrApplication in your page you are trying to cast application to cheesrapplicatio, but by default wickettester uses

wicketstuff-push-examples compilation error

2008-04-04 Thread Enrique Rodriguez
Hi, Wicket users, I thought I'd examine wicketstuff-push, since I could use push on a project. After a fresh check-out of wicketstuff-push, wicketstuff-push-examples, and wicket-stuff-dojo, I found that wicketstuff-push-examples wouldn't compile. Keep in mind I just starting looking at this