Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
Hi, I have a mounted, bookmarkable page with a form in it. My problem is that I want to keep state in the page. However, at every request, the page is constructed anew and, obviously, I lose the state I'd like to keep. At the same time (and this mystifies me a little), form components seem to

RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Swinsburg, Stephen
On your component attach an AttributeAppender or AttributeModifier, set the class attribute to be the name of your class. Done :) -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:05 AM To: users@wicket.apache.org Subject: Reading an attribute that is

Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread egolan74
Hello, Suppose I have a CSS file that is used in our application (HeaderContributer etc.) In this file I have many classes. Suppose I want to get an attribute that is in one of these classes. Example: In my CSS file I have: ... .colored-table { border: thin; background-color: #BB ... } I

RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread egolan74
Steve Swinsburg-2 wrote: On your component attach an AttributeAppender or AttributeModifier, set the class attribute to be the name of your class. Done :) Thanks Steve but this is not what I meant. Adding a class as an attribute to a component is a pretty basic stuff. What I want is,

RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Swinsburg, Stephen
What do you need it for? Why can't you just make another class with just the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is

Re: TextField inside a ModalWindow problems

2008-11-16 Thread richardwilko
Im at a loss then, the only other thing i could suggest is that you put the code directly into the page, rather than in the domready event. form ..form code.. script type=text/javascript !--/*--![CDATA[/*!--*/ Event.observe('peopleLocatorForm18', 'submit', function(event){ Event.stop(event);

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
I have the same sort of need in my application. I need to do an overlay on an existing image using the same colors that are defined in a CSS document. I guess I could dynamically generate the CSS, but I have no idea how to go about that. :) On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Ernesto Reinaldo Barreiro
I see two options: 1-Generate the css out for of some other data you can easily use at Java level (a velocity template maybe?) 2-Parse the CSS (e.g. with http://cssparser.sourceforge.net/)http://cssparser.sourceforge.net/ http://www.w3.org/Style/CSS/SAC/ For a project I had to use approach 2

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
I was thinking about learning how to use TextTemplates to generate the CSS. Is there any good reference out there? On Sun, Nov 16, 2008 at 9:44 AM, Ernesto Reinaldo Barreiro [EMAIL PROTECTED] wrote: I see two options: 1-Generate the css out for of some other data you can easily use at Java

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Ernesto Reinaldo Barreiro
I don't know on the Wicket wiki... but when I have to use such things I always look into the existing wicket code. A quick search on my IDE leads me to this the class org.wicketstuff.yui.markup.html.slider.Slider where a text template is used to populate the init.js file... Hope this helps...

Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos
Hi, I'm running into an issue where my Wicket-based application will absolutely not load in the shared hosting environment. I'm trying out GoDaddy's Java Web hosting that uses Java 1.5 and Tomcat 5.0.27. I have this same setup on my box and deploying my Wicket 1.3.4-based application works.

RE: Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos
Hi, Thanks for the reply. I did a quick check and would assume that Tomcat 5.0 supported 2.4 since the description on Apache's Web site says Apache Tomcat 5.5.x supports the same Servlet and JSP Specification versions as Apache Tomcat 5.0.x., which happens to be Servlet 2.4 / JSP 2.0 (

Re: Adding/Removing a AjaxSelfUpdatingTimerBehavior...

2008-11-16 Thread Graeme Knight
Maybe I'm trying to do something silly. Is there an alternative? Graeme Knight wrote: Hi. What's the best way of achieving this effect: 1) Button is pressed to start a process. 2) Updating of various panels contained within a WebMarkupContainer occurs on a 5 second period. 3)

RE: Unable to load Wicket app in hosting provider

2008-11-16 Thread Stefan Lindner
It was just a guess! -Ursprüngliche Nachricht- Von: moraleslos [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 16. November 2008 17:37 An: users@wicket.apache.org Betreff: RE: Unable to load Wicket app in hosting provider Hi, Thanks for the reply. I did a quick check and would assume

RE: Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos
BTW, I did test this on my box using Tomcat 5.0.27 with that same v2.4 deployment descriptor and the wicket filters and it worked fine. Not sure if one can enforce Tomcat 5.0.27 to use 2.3 instead of 2.4. -los -- View this message in context:

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Martijn Dashorst
sounds like a rights problem on godaddy's part. Either they need to do some tweaking of their apache side (I assume they have apache httpd running in front of tomcat) or something else is fishy. this does not sound like a Wicket problem. Did you try deploying a helloworld servlet? Martijn On

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos
Thanks for the reply. I think it could be a rights problem since a 403 error is typically a permissions issue but I'm not sure how to explain it to these GoDaddy people because they're really inexperienced. If this is an apache issue, what are the things I need to look for in order for me to

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
Thanks for the tip, Ernesto. I'll check it out. On Sun, Nov 16, 2008 at 10:23 AM, Ernesto Reinaldo Barreiro [EMAIL PROTECTED] wrote: I don't know on the Wicket wiki... but when I have to use such things I always look into the existing wicket code. A quick search on my IDE leads me to this the

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Anton Veretennikov
Didn't try GoDaddy but left 3 other hostings because Wicket did not work there. On one it didn't work at all. On two others app opened 1-2 times and then hanged down for unknown time. Now I opened an account on javaprovider.net - Private JVM Developer. Wicket works here and I'm glad BUT works

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Erik van Oosten
Maybe this helps. I've found that you need to start Tomcat from a directory that is writable for the user you are using (no idea why though). Besides the application log, you should also check Tomcat's log files. Good luck, Erik. moraleslos wrote: Hi, I'm running into an issue where my

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
Hi Igor, thanks for the response. No, I don't mean when I press the refresh button. Here's exactly what happens: - I type the URL into my browser. In my debugger, I can see that a new page is constructed (the page constructor runs). - There is a form on the page. I type something into the form

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Igor Vaynberg
try adding a Link to the page and see if it still happens. also, what is the action url of the form? -igor On Sun, Nov 16, 2008 at 12:06 PM, Ilja [EMAIL PROTECTED] wrote: Hi Igor, thanks for the response. No, I don't mean when I press the refresh button. Here's exactly what happens: - I

RE: Page references and serialization

2008-11-16 Thread Mikko Pukki
Hi, I tried to recreate similar situation where Page A has a link to PageB and PageB holds a reference to PageA. I got similar result with as Cristiano. though I only tried Wicket 1.3.5. PageA is serialized twice and pageId, versionNumber and ajaxVersionNumber are same with two instances of

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread jWeekend
Ilja, This does indeed sound strange, in fact, worse than that! I'd like to take a look so if you can, make the *simplest possible* Quickstart demonstrating this problem. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk King Of All Germans wrote: Hi Igor, thanks for the

RE: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Jeremy Thomerson
Put a breakpoint in your constructor (sounds like you already have) and see what's calling it. Is it possible that you're constructing the page yourself (accidentally for a page link or something)? Also - what's the URL after you submit the form? Are you redirecting to the page in your

Re: @Configurable instead of @SpringBean

2008-11-16 Thread Robert
I made a test case and it works. BTW - My thread seems to be put inside another thread. I did not expect this to happen if I would hit reply in Thunderbird using Gmail IMAP. Sorry! James Carman wrote: Are you sure they're being deserialized? I'd try a test case On 11/15/08, Robert

Re: @Configurable instead of @SpringBean

2008-11-16 Thread Igor Vaynberg
as jweekend told you, you should read this thread [1] [1] http://www.nabble.com/%40SpringBean-vs-%40Configurable-to18572291.html -igor On Sun, Nov 16, 2008 at 1:14 PM, Robert [EMAIL PROTECTED] wrote: I made a test case and it works. BTW - My thread seems to be put inside another thread. I

Re: @Configurable instead of @SpringBean

2008-11-16 Thread Robert
Yes, I read it. I was just responding to James. I understand now the problem that would occur when passing a bean to another object that will be serialized. So both methods seems to have its positive and negative sides. Igor Vaynberg wrote: as jweekend told you, you should read this thread

Firefox 2.0.0.18

2008-11-16 Thread Cristi Manole
Hello, Since Firefox automatically updated to 2.0.0.18 every ajax I had in the application (for instance ajax link / button) stopped working if it didn't have fallback. The applications I have are all in production so this is very annoying. In Internet Explorer all work. Did anybody else

Re: Firefox 2.0.0.18

2008-11-16 Thread Martijn Dashorst
It would be helpful if you posted the wicket version and errors you get from the firefox console and if the wicket debugger shows any errors. Now we're just left to guess. See also [1] Martijn [1] http://www.catb.org/~esr/faqs/smart-questions.html On Mon, Nov 17, 2008 at 12:08 AM, Cristi Manole

Re: Firefox 2.0.0.18

2008-11-16 Thread jWeekend
Cristi, We have just upgraded to 2.0.0.18 on one of our machines and all the AJAX on http://jweekend.com/dev/BookingPage/ this page works fine. Try that link and if it fails to work check Tools/Options/Content to ensure JavaScript is enabled. Regards - Cemal http://www.jWeekend.co.uk

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos
Ok, Finally talked to someone at GoDaddy who gave me some advice. With their Java hosting, it seems that they force Tomcat to look for a default file (e.g. index.html) at the root directory. Since I don't have one (all of my files are under WEB-INF/classes/...), I get the 403 error. Now

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Martijn Dashorst
mount the wicket filter under context root app and tell the index.html to redirect to that url with a pragma header. Martijn On Mon, Nov 17, 2008 at 1:10 AM, moraleslos [EMAIL PROTECTED] wrote: Ok, Finally talked to someone at GoDaddy who gave me some advice. With their Java hosting, it

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
You guys will want to know this: I figured that perhaps the problem lies with Wicket1.4-m3. So I swapped it out for Wicket1.4-m2. I did not change my code at all. I didn't change anything else. All I did was swap out the two Wicket versions. After I switched to Wicket1.4-m2, the page worked fine.

Graphs, Charts and Wicket

2008-11-16 Thread Yazbek, Daniel (Daniel)
Hi all, I'd like to put some simple bar graphs, pie graphs and possible line graphs into my wicket pages. Have any of you used a good framework that you can recommend, that also plays nicely with Wicket? Thanks! -Daniel.

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
P.S.By my problem is solved I mean, obviously, that I'll stick with m2 for the time being. Didn't mean to sound like that is ideal, or that I'm not concerned that the problem appears in m3. Let me know if I can do anything to help out with that. Cheers, ilja On Sun, Nov 16, 2008 at 5:15 PM, Ilja

Re: Graphs, Charts and Wicket

2008-11-16 Thread Jurek Piasek
I have been using Amcharts http://www.amcharts.com/ together with SWFObject http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html Regards, Jurek On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel) [EMAIL PROTECTED]wrote: Hi all, I'd like to put some

isEnabled on AjaxSelfUpdatingTimerBehavior.

2008-11-16 Thread Graeme Knight
Hi. I have looked at removing the timer from a component when a condition is not true, but according to the forums this is not possible. Recommended is the use of isEnabled. I have the following code, but isEnabled doesn't appear to be working. I'm after a way of allowing a user to start a

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Igor Vaynberg
rc1 is out, why dont you try with that. -igor On Sun, Nov 16, 2008 at 5:23 PM, Ilja [EMAIL PROTECTED] wrote: P.S.By my problem is solved I mean, obviously, that I'll stick with m2 for the time being. Didn't mean to sound like that is ideal, or that I'm not concerned that the problem appears

Re: Graphs, Charts and Wicket

2008-11-16 Thread James Carman
You can check out how I used JFreeChart in one of my Wicket presentations... http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story10/resource/StudentPerRankChart.java and the resource class itself:

Re: browser back button - shouldn't onBeforeRender() execute?

2008-11-16 Thread Timo Rantalaiho
On Fri, 14 Nov 2008, dukehoops wrote: -user clicks browser back button and lands on A without server being hit at all. At this point I expected browser to issue GET /A and A's onBeforeRender to run. is my expectation correct? If not, what is the expected behavior. The reason for my

Problem with Crypted URL

2008-11-16 Thread Andrew Berman
I upgraded from 1.3.4 to 1.3.5 and now I am seeing this error all over the place in my log files.. [ERROR] 21:44:24 CryptedUrlWebRequestCodingStrategy - Invalid URL: foo/?x=kSQEmQImbZiH47lvkBIVh0gnXDVDx7-UQqHufLUVx5IVu10xEJYI8UXQ2B0gQCTDdAzJ7rUByXI org.apache.wicket.WicketRuntimeException: Unable

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
Igor, rc1 gives me the exact same problem m3 gave me... On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: rc1 is out, why dont you try with that. -igor On Sun, Nov 16, 2008 at 5:23 PM, Ilja [EMAIL PROTECTED] wrote: P.S.By my problem is solved I mean, obviously, that

ProxyPass will not work?

2008-11-16 Thread Anton Veretennikov
Good day, My hosting provider says that they use ProxyPass for aliases. Seems that site opens but links don't work: 404 error (ContextName/ContextName is not found) Why ContextName is doubled? May be ProxyPass is not a way to work with Wicket. I found for example that Wicket adds ContextPath()

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Igor Vaynberg
i guess then we need more info. if you can create a quickstart that would be optimal. -igor On Sun, Nov 16, 2008 at 9:28 PM, Ilja [EMAIL PROTECTED] wrote: Igor, rc1 gives me the exact same problem m3 gave me... On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: rc1 is

Re: ProxyPass will not work?

2008-11-16 Thread Igor Vaynberg
there is a page on the wiki that talks about proxy config. -igor On Sun, Nov 16, 2008 at 9:31 PM, Anton Veretennikov [EMAIL PROTECTED] wrote: Good day, My hosting provider says that they use ProxyPass for aliases. Seems that site opens but links don't work: 404 error

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
Yeah... like I said before, I don't use Maven and you're probably talking about a Maven QuickStart? Is that right?Can you give a few pointers on how to do a QuickStart? Is there anything on the web? ilja On Sun, Nov 16, 2008 at 9:51 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: i guess then we need

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Igor Vaynberg
there are two ways to do this: a) there is wicket-quickstart project in svn which you can customize and zip. b) use maven. download and install maven, go to wicket.apache.org and find the quickstart page which will gen the command line necessary to let maven build the project. if this is the first

Re: ProxyPass will not work?

2008-11-16 Thread Anton Veretennikov
there is a page on the wiki that talks about proxy config. -igor Thank you, Igor. I found it: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html Don't understand how to setContextPath() in Wicket 1.3.5? Seems getApplicationSettings().setContextPath(/) is an old API.

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Nino Saturnino Martinez Vazquez Wael
Hi ' If I were you I would pick up the wicket in action book, or follow a tutorial... These are very basic questions... Wicket has a application class which specify the home folder with a method, you would override that and return your index.class wicket will then use that to display as

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Igor Vaynberg
you just need a file named index.html in your /xyz dir -igor On Sun, Nov 16, 2008 at 5:01 PM, moraleslos [EMAIL PROTECTED] wrote: Hi, Thanks for the reply. I'm a bit confused on how to write the index.html. So, let's say my godaddy directory structure looks like this: / /xyz

Simple GET based stateless form

2008-11-16 Thread Vinayak Borkar
Hi, I am trying to create a simple GET based stateless form to implement search. My code is broken up into two parts 1. A SearchPanel component that renders the form containing the text field 2. A SearchPage that renders the search results. The search page also has the SearchPanel component