Re: [Wicket-user] Including Javascript the Wicket way
Anyway, I am now trying to include my javascript files in the way But this page only really describes css in any detail. The approach does not appear to be exactly the same for javascript. For those like me who are doing this for the first time and haven't got it yet, it's not quite enough to get me to the ah ha! point. So, what is the best way to do this? For instance: script wicket:id=js language=javascript type=text/javascript src=scripts/main.js/ Along with something like: JavaScriptReference js = new JavaScriptReference(js, ThisPage.class, scripts/main.js); add(js); JavaScriptReference is what we call a packaged resource. That is, it is relative to the java package of a class (in your case relative to ThisPage.getPackage()). E.g. ThisPage.class = wicket.myApp.ThisPage Than scripts/main.js must reside on wicket/myApp/scripts/main.js BTW, are there any detailed references to the components/tags (including a list of attributes/parameters) anywhere like Tapestry has on their site? All I see are: yes your are right. External documentation needs to be improved, thought the javadoc should be fairly good. http://www.wicket-library.com/wicket-examples/compref (seems to be a fairly complete list of components along with working examples, but I don't see a listing of the tags, parameters, or attributes to use. Also, I can't find the code for these examples...) Compref is part of wicket-examples (cvs). wicket-stuff is a completely separate sourceforge project with various add-ons to wicket-core. And wicket-phonebook is nice quickstart application including spring and hibernate integration. Juergen --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Including Javascript the Wicket way
This is how i include _javascript_ add( new _javascript_Reference("validation",validations()) ); public final PackageResourceReference validations() { return new PackageResourceReference(Application.get(), MyPage.class, "myValidator.js");} and the mark up will be like given below wicket:head script wicket:id="validation" /script /wicket:head Regards Dipu - Original Message - From: "David Leangen" [EMAIL PROTECTED] To: "Wicket List" wicket-user@lists.sourceforge.net Sent: Tuesday, November 01, 2005 4:46 AM Subject: [Wicket-user] Including _javascript_ the "Wicket" way Sorry for making so much noise!! I guess I should have taken more time before moving over to Wicket from Tapestry. Until I get used to the Wicket way, my productivity has gone way down. :-( Sorry for all the questions, but your help is much appreciated. Anyway, I am now trying to include my _javascript_ files in the way described here: http://www.wicket-wiki.org.uk/wiki/index.php/_javascript_ But this page only really describes css in any detail. The approach does not appear to be exactly the same for _javascript_. For those like me who are doing this for the first time and haven't "got" it yet, it's not quite enough to get me to the "ah ha!" point. So, what is the best way to do this? For instance: script wicket:id="js" language="_javascript_" type="text/_javascript_" src=""/ Along with something like: _javascript_Reference js = new _javascript_Reference("js", ThisPage.class, "scripts/main.js"); add(js); (Obviously, this is not right, but it's all I can come up with right now...) BTW, are there any detailed references to the components/tags (including a list of attributes/parameters) anywhere like Tapestry has on their site? All I see are: http://www.wicket-wiki.org.uk/wiki/index.php/Tags (unfortunately, almost no useful information) http://www.wicket-library.com/wicket-examples/compref (seems to be a fairly complete list of components along with working examples, but I don't see a listing of the tags, parameters, or attributes to use. Also, I can't find the code for these examples...) Or at least, where should I look in the code to figure this out? Thanks again! Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
i think overriding isvisible() is the best approach. Dipu - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 7:28 PM Subject: Re: [Wicket-user] refreshing page content IMHO this isnt the right place for this kind of stuff you can override isvisible() on the login panel and make it something like this: LoginPanel { isVisible() { return isUserLoggedin(); } } that way you dont even need to toggle it anywhere, its fully automatic and only shows up when it needs to. -Igor On 10/31/05, pepone pepone [EMAIL PROTECTED] wrote: onBeginRequest ensure that login panel is reshow if session is notstill alive in next requestOn 10/31/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. What do you mean by "reopen" it? The following works for me, it toggles between panels when the button is pressed:public Index(final PageParameters parameters) { add(new TestPanel("a")); add(new TestPanelB("b").setVisible(false)); add(new Form("form") {protected void onSubmit(){ Component a=getPage().get("a"); a.setVisible(!a.isVisible()); Component b=getPage().get("b");b.setVisible(!b.isVisible());} });} -Igor--- This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training CourseFree Certification Exam for All Training Attendees Through End of 2005Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
Yes, you'll find it in wicket-extensions and an example in wicket-examples Juergen On 11/1/05, David Liebeherr [EMAIL PROTECTED] wrote: I guess i will find this all in the CVS versions, do i? Thank you very much, Dave Igor Vaynberg wrote: Just checked in my first pass at implementation. Its in wicket-extensions wicket.extensions.markup.html.tabs.TabbedPanel. There is also an example in the component reference that shows four different css styles. Check it out and let me know what you think and how we can make it better. -Igor On 10/31/05, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Tabs like that could work too. Maybe easier than navmenu. The idea behind navmenu was that navigation inherently is a tree structure - possibly just one level - but in such a way that you wnat to access each level seperately (so that you can render each level independently). Having a tree makes it easy to have a dependency like when you select 'option 1' from the first level, you'll have 'option a' and 'option b' for the second level (childs of 'option 1'). I'd propose to see whether we can merge the ideas somehow. There's enough overlap already, I'd like to see one good tabbed panel/ navigation component ('cause I think it is the same thing in the end) that is supported (part of one of the wicket core projects). Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user -- Rent-a-Developer David Liebeherr Tel.: 0721 3504990 mail: [EMAIL PROTECTED] SUN Certified Java Associate (SCJA) --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
I guess i will find this all in the CVS versions, do i? Thank you very much, Dave Igor Vaynberg wrote: Just checked in my first pass at implementation. Its in wicket-extensions wicket.extensions.markup.html.tabs.TabbedPanel. There is also an example in the component reference that shows four different css styles. Check it out and let me know what you think and how we can make it better. -Igor On 10/31/05, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Tabs like that could work too. Maybe easier than navmenu. The idea behind navmenu was that navigation inherently is a tree structure - possibly just one level - but in such a way that you wnat to access each level seperately (so that you can render each level independently). Having a tree makes it easy to have a dependency like when you select 'option 1' from the first level, you'll have 'option a' and 'option b' for the second level (childs of 'option 1'). I'd propose to see whether we can merge the ideas somehow. There's enough overlap already, I'd like to see one good tabbed panel/ navigation component ('cause I think it is the same thing in the end) that is supported (part of one of the wicket core projects). Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user -- Rent-a-Developer David Liebeherr Tel.: 0721 3504990 mail: [EMAIL PROTECTED] SUN Certified Java Associate (SCJA) --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Including Javascript the Wicket way
I am now trying to include my javascript files... So, what is the best way to do this? JavaScriptReference is what we call a packaged resource... Ok, thank you for this info! BTW, are there any detailed references to the components/tags (including a list of attributes/parameters) anywhere like Tapestry has on their site? All I see are: yes your are right. External documentation needs to be improved, thought the javadoc should be fairly good. Sorry, didn't mean to sound like I was complaining. I am very impressed at all that you guys have done so fast! I look forward to the future releases as well. My first impression is that Wicket is much cleaner than Tapestry. Having a bit more doc would lessen the learning curve a bit. Once one is past the learning curve, I think that it is generally simpler to use than Tapestry. I'll try to help out a bit on the wiki if I have the time. :-) Cheers, Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Extensions of extensions
Is it not possible to extend an extension with the wicket:child and wicket:extension tags? It is supported. BaseBase.html baseBase: before wicket:child/ baseBase: after Base.html extension: before (will be ignored) wicket:extend base before wicket:child/ base after /wicket:extend extension: after (will be ignored) Page.html extension: before (will be ignored) wicket:extend extension /wicket:extend extension: after (will be ignored) Juergen --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Extensions of extensions
Another question... Is it not possible to extend an extension with the wicket:child and wicket:extension tags? I have a ContentPage that extends a SubsectionPage that itself extends a SectionPage. However, only content from the (concrete) ContentPage and the (abstract) SectionPage is being included in the HTML output. It seems that the (abstract) SubsectionPage is being ignored... Thanks for any tips... Dave --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Including Javascript the Wicket way
yes your are right. External documentation needs to be improved, thought the javadoc should be fairly good. Sorry, didn't mean to sound like I was complaining. It is not complaining, it is making us aware what needs to be improved. I'll try to help out a bit on the wiki if I have the time. :-) That'd be very much appreciated. Jürgen --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with DateConverter
Problem solved. I just forget to pack the DateToStringConverter into a StringConverter :-) Cu, Dave David Liebeherr wrote: Hi all, i want to change the default behaviour of java.lang.Date to HTML-Input field conversion from 2 Digit Year Numbers to 4 Digit Numbers. I have tried it like this: --- public IConverterFactory getConverterFactory() { return new IConverterFactory() { public IConverter newConverter(Locale locale) { DateToStringConverter dateConverter = new DateToStringConverter(); dateConverter.setDateFormat(locale, DateFormat.getDateInstance(DateFormat.MEDIUM)); Converter converter = new Converter(locale); converter.set(Date.class, dateConverter); return converter; } }; } --- In my App-Servlet. But the Problem is still there that when i try to edit (TextField) or show (Label) (both with compoundProperty) the Year is still rendered with only 2 Digits. What do i do wrong? Thanks, Dave -- Rent-a-Developer David Liebeherr Tel.: 0721 3504990 mail: [EMAIL PROTECTED] SUN Certified Java Associate (SCJA) --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket back-button support
we could look at it when we are diving more in to ajax. But if i read it then i see already one thing (the first point they mention): First, a hidden HTML form is used to allow for a large transient session cache of client-side information; this cache is robust against navigation to and away from the page I am not a big fan of large clientside state. johan On 11/1/05, Gili [EMAIL PROTECTED] wrote: Hi,I haven't actually read this at all, just thought I'd mention it onpassing: http://www.theserverside.com/news/thread.tss?thread_id=37307 The article discusses AJAX and back-button support. Is there anythingin there we could pick up to improve Wicket?Gili--http://www.desktopbeautifier.com/ ---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training CourseFree Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] servletapi-2.3.jar included?
Why is servletapi-2.3.jar included with wicket? Isn't the servletapi included with whatever JSP web server that I use? Is the wicket servletapi-2.3.jar a newer version and so supersede what is on my web server (Tomcat 5.5.12)? Thanks, JeffJeff Miller[EMAIL PROTECTED] Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] servletapi-2.3.jar included?
It's there for the purpose of building. It is not necessary to put it in your webapps lib directory as Tomcat already has servlet 2.4 support.On 11/1/05, Jeff Miller [EMAIL PROTECTED] wrote: Why is servletapi-2.3.jar included with wicket? Isn't the servletapi included with whatever JSP web server that I use? Is the wicket servletapi-2.3.jar a newer version and so supersede what is on my web server (Tomcat 5.5.12)? Thanks, JeffJeff Miller[EMAIL PROTECTED] Yahoo! FareChase - Search multiple travel sites in one click.
Re: [Wicket-user] servletapi-2.3.jar included?
As others already said: it is used for building Wicket. You can see in the documentation which jars are mandatory for building and deploying, and which are optional. Click on the 'Dependencies' link. Martijn On 11/1/05, Jeff Miller [EMAIL PROTECTED] wrote: Why is servletapi-2.3.jar included with wicket? Isn't the servletapi included with whatever JSP web server that I use? Is the wicket servletapi-2.3.jar a newer version and so supersede what is on my web server (Tomcat 5.5.12)? Thanks, Jeff Jeff Miller [EMAIL PROTECTED] Yahoo! FareChase - Search multiple travel sites in one click. -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] servletapi-2.3.jar included?
Jeff Miller wrote: Why is servletapi-2.3.jar included with wicket? Isn't the servletapi included with whatever JSP web server that I use? Is the wicket servletapi-2.3.jar a newer version and so supersede what is on my web server (Tomcat 5.5.12)? I believe that the servletapi jar includes only the interfaces defined in the servlet specification. This lets one compile Wicket against the spec and not against a particular implementation. And if your code needs access to the raw HTTP stuff, you can code it against this. There will be an implementation of the Servlet spec inside Tomcat. -- Scott --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AccessibleCheckBoxMultipleChoice - Or, what's up with element IDs?
Yeah I know that it can be done with CheckGroup/Check, but why not do it for CheckBoxMultiChoice? It just seems to make more sense to use label tags than to just display the text. I think it will be an improvement to the current component just because it makes it more accessible and follow better HTML standards. Plus, it's an easy change that would benefit everyone. --AndreOn 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Did you guys try using a CheckGroup/Check components? You can create your own component that does what the CheckBoxMultipleChoice does and be completely in control of the markup. And there is a nifty CheckGroupSelector that generates a cheeckbox that toggles the whole group. There are examples in the component reference. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree, I was going to raise this issue too. It makes a lot more sense to use label tags than to just output the text. On 11/1/05, Nathan Hamblen [EMAIL PROTECTED] wrote: I love the simplicity of CheckBoxMultipleChoice, but its markup leaves alittle to be desired. There aren't any label tags, and the lines end with br /. Of course the break is easily fixed with calls tosetPrefix(div), setSuffix(/div), but since onComponentTagBody() is final I don't have any way to get at the internal markup. I MUST have label tags (not so much for the blind as for the haters-of-tiny-buttons,a group I pledge allegiance to), so I'm left copying pasting the whole class to change about 5 lines of code. Gross.What is up with element IDs, anyway? It seems that Wicket stays away from them, which is usually fine since you can do whatever you want withAttributeModifiers. But here I can't, and I suspect that this component was left without labels because of general element ID shyness. If there were a webmarkup level method to get a (probably) unique element ID,then CheckBoxMultipleChoice could do a little extra to make it uniquewithin its set and then render some labels.Well, anyway, here are the changes I made to CheckBoxMultipleChoice to make it churn out labels tied to IDs:... private String prefix = div; private String suffix = /div\n;... String elementId = _wicket_ + getInputName() + _ + id; ... buffer.append(input name=\ + getInputName() + \ + type=\checkbox\ + (isSelected(choice,index) ? checked : ) + value=\ + id + \ id=\ + elementId + \); ... buffer.append(label for="" .append(escaped).append(/label);...It's not art, but it does give me a click area bigger than 10 x 10 pixels. Nathan--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AccessibleCheckBoxMultipleChoice - Or, what's up with element IDs?
I love the simplicity of CheckBoxMultipleChoice, but its markup leaves a little to be desired. There aren't any label tags, and the lines end with br /. Of course the break is easily fixed with calls to setPrefix(div), setSuffix(/div), but since onComponentTagBody() is final I don't have any way to get at the internal markup. I MUST have label tags (not so much for the blind as for the haters-of-tiny-buttons, a group I pledge allegiance to), so I'm left copying pasting the whole class to change about 5 lines of code. Gross. What is up with element IDs, anyway? It seems that Wicket stays away from them, which is usually fine since you can do whatever you want with AttributeModifiers. But here I can't, and I suspect that this component was left without labels because of general element ID shyness. If there were a webmarkup level method to get a (probably) unique element ID, then CheckBoxMultipleChoice could do a little extra to make it unique within its set and then render some labels. Well, anyway, here are the changes I made to CheckBoxMultipleChoice to make it churn out labels tied to IDs: ... private String prefix = div; private String suffix = /div\n; ... String elementId = _wicket_ + getInputName() + _ + id; ... buffer.append(input name=\ + getInputName() + \ + type=\checkbox\ + (isSelected(choice,index) ? checked : ) + value=\ + id + \ id=\ + elementId + \); ... buffer.append(label for=\).append(elementId).append(\) .append(escaped).append(/label); ... It's not art, but it does give me a click area bigger than 10 x 10 pixels. Nathan --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: checkAccess question
Nevermind. I was able to do the clearing of the cart in the onEndRequest() method which occurs after the checkAccess method.On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote:I have a CheckoutPage which implements a flow of panels. Basically, it contains a list of panels and adds/replaces the appropriate panel based on the link or button that is clicked. The CheckoutPage requires that there be an authenticated user as well as a non-empty shopping cart. Consequently I override the checkAccess method and redirect to the appropriate page based on what exists and what does not exist. However, the problem is that the last panel in the flow clears the cart. I do this in the panel's constructor and as a result, checkAccess is called after this, and the user is redirected to the empty cart page in checkAccess instead of the final page of the flow. Is there some other way I can accomplish this or is there something I'm doing wrong? Thanks, Andrew
Re: [Wicket-user] AccessibleCheckBoxMultipleChoice - Or, what's up with element IDs?
Did you guys try using a CheckGroup/Check components? You can create your own component that does what the CheckBoxMultipleChoice does and be completely in control of the markup. And there is a nifty CheckGroupSelector that generates a cheeckbox that toggles the whole group. There are examples in the component reference. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree, I was going to raise this issue too. It makes a lot more sense to use label tags than to just output the text. On 11/1/05, Nathan Hamblen [EMAIL PROTECTED] wrote: I love the simplicity of CheckBoxMultipleChoice, but its markup leaves alittle to be desired. There aren't any label tags, and the lines end with br /. Of course the break is easily fixed with calls tosetPrefix(div), setSuffix(/div), but since onComponentTagBody() is final I don't have any way to get at the internal markup. I MUST have label tags (not so much for the blind as for the haters-of-tiny-buttons,a group I pledge allegiance to), so I'm left copying pasting the whole class to change about 5 lines of code. Gross.What is up with element IDs, anyway? It seems that Wicket stays away from them, which is usually fine since you can do whatever you want withAttributeModifiers. But here I can't, and I suspect that this component was left without labels because of general element ID shyness. If there were a webmarkup level method to get a (probably) unique element ID,then CheckBoxMultipleChoice could do a little extra to make it uniquewithin its set and then render some labels.Well, anyway, here are the changes I made to CheckBoxMultipleChoice to make it churn out labels tied to IDs:... private String prefix = div; private String suffix = /div\n;... String elementId = _wicket_ + getInputName() + _ + id; ... buffer.append(input name=\ + getInputName() + \ + type=\checkbox\ + (isSelected(choice,index) ? checked : ) + value=\ + id + \ id=\ + elementId + \); ... buffer.append(label for="" .append(escaped).append(/label);...It's not art, but it does give me a click area bigger than 10 x 10 pixels. Nathan--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AccessibleCheckBoxMultipleChoice - Or, what's up with element IDs?
meanwhile would you mind creating an rfe so we can keep track of this change. Thanks, -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Very nice..--Andrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Im working on that right now :) -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Yeah I know that it can be done with CheckGroup/Check, but why not do it for CheckBoxMultiChoice? It just seems to make more sense to use label tags than to just display the text. I think it will be an improvement to the current component just because it makes it more accessible and follow better HTML standards. Plus, it's an easy change that would benefit everyone. --Andre On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Did you guys try using a CheckGroup/Check components? You can create your own component that does what the CheckBoxMultipleChoice does and be completely in control of the markup. And there is a nifty CheckGroupSelector that generates a cheeckbox that toggles the whole group. There are examples in the component reference. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree, I was going to raise this issue too. It makes a lot more sense to use label tags than to just output the text. On 11/1/05, Nathan Hamblen [EMAIL PROTECTED] wrote: I love the simplicity of CheckBoxMultipleChoice, but its markup leaves alittle to be desired. There aren't any label tags, and the lines end with br /. Of course the break is easily fixed with calls tosetPrefix(div), setSuffix(/div), but since onComponentTagBody() is final I don't have any way to get at the internal markup. I MUST have label tags (not so much for the blind as for the haters-of-tiny-buttons,a group I pledge allegiance to), so I'm left copying pasting the whole class to change about 5 lines of code. Gross.What is up with element IDs, anyway? It seems that Wicket stays away from them, which is usually fine since you can do whatever you want withAttributeModifiers. But here I can't, and I suspect that this component was left without labels because of general element ID shyness. If there were a webmarkup level method to get a (probably) unique element ID,then CheckBoxMultipleChoice could do a little extra to make it uniquewithin its set and then render some labels.Well, anyway, here are the changes I made to CheckBoxMultipleChoice to make it churn out labels tied to IDs:... private String prefix = div; private String suffix = /div\n;... String elementId = _wicket_ + getInputName() + _ + id; ... buffer.append(input name=\ + getInputName() + \ + type=\checkbox\ + (isSelected(choice,index) ? checked : ) + value=\ + id + \ id=\ + elementId + \); ... buffer.append(label for="" .append(escaped).append(/label);...It's not art, but it does give me a click area bigger than 10 x 10 pixels. Nathan--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AccessibleCheckBoxMultipleChoice - Or, what's up with element IDs?
Im working on that right now :) -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Yeah I know that it can be done with CheckGroup/Check, but why not do it for CheckBoxMultiChoice? It just seems to make more sense to use label tags than to just display the text. I think it will be an improvement to the current component just because it makes it more accessible and follow better HTML standards. Plus, it's an easy change that would benefit everyone. --Andre On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Did you guys try using a CheckGroup/Check components? You can create your own component that does what the CheckBoxMultipleChoice does and be completely in control of the markup. And there is a nifty CheckGroupSelector that generates a cheeckbox that toggles the whole group. There are examples in the component reference. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree, I was going to raise this issue too. It makes a lot more sense to use label tags than to just output the text. On 11/1/05, Nathan Hamblen [EMAIL PROTECTED] wrote: I love the simplicity of CheckBoxMultipleChoice, but its markup leaves alittle to be desired. There aren't any label tags, and the lines end with br /. Of course the break is easily fixed with calls tosetPrefix(div), setSuffix(/div), but since onComponentTagBody() is final I don't have any way to get at the internal markup. I MUST have label tags (not so much for the blind as for the haters-of-tiny-buttons,a group I pledge allegiance to), so I'm left copying pasting the whole class to change about 5 lines of code. Gross.What is up with element IDs, anyway? It seems that Wicket stays away from them, which is usually fine since you can do whatever you want withAttributeModifiers. But here I can't, and I suspect that this component was left without labels because of general element ID shyness. If there were a webmarkup level method to get a (probably) unique element ID,then CheckBoxMultipleChoice could do a little extra to make it uniquewithin its set and then render some labels.Well, anyway, here are the changes I made to CheckBoxMultipleChoice to make it churn out labels tied to IDs:... private String prefix = div; private String suffix = /div\n;... String elementId = _wicket_ + getInputName() + _ + id; ... buffer.append(input name=\ + getInputName() + \ + type=\checkbox\ + (isSelected(choice,index) ? checked : ) + value=\ + id + \ id=\ + elementId + \); ... buffer.append(label for="" .append(escaped).append(/label);...It's not art, but it does give me a click area bigger than 10 x 10 pixels. Nathan--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with multiple submit buttons in form
The beauty of the @Override notation. :D On 10/29/05, Dan Gould [EMAIL PROTECTED] wrote: Thanks Andrew (and everyone) -- my dumb mistake. [I'm in the cleanup phase of the beta for my new app; I'll send a link to wicket-user pretty soon to try out.] --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AccessibleCheckBoxMultipleChoice - Or, what's up with element IDs?
its in cvs for both 1.1 and 1.2 branches. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Here you go https://sourceforge.net/tracker/index.php?func=detailaid=1345198group_id=119783atid=684978 On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: meanwhile would you mind creating an rfe so we can keep track of this change. Thanks, -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Very nice..--Andrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Im working on that right now :) -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Yeah I know that it can be done with CheckGroup/Check, but why not do it for CheckBoxMultiChoice? It just seems to make more sense to use label tags than to just display the text. I think it will be an improvement to the current component just because it makes it more accessible and follow better HTML standards. Plus, it's an easy change that would benefit everyone. --Andre On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Did you guys try using a CheckGroup/Check components? You can create your own component that does what the CheckBoxMultipleChoice does and be completely in control of the markup. And there is a nifty CheckGroupSelector that generates a cheeckbox that toggles the whole group. There are examples in the component reference. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree, I was going to raise this issue too. It makes a lot more sense to use label tags than to just output the text. On 11/1/05, Nathan Hamblen [EMAIL PROTECTED] wrote: I love the simplicity of CheckBoxMultipleChoice, but its markup leaves alittle to be desired. There aren't any label tags, and the lines end with br /. Of course the break is easily fixed with calls tosetPrefix(div), setSuffix(/div), but since onComponentTagBody() is final I don't have any way to get at the internal markup. I MUST have label tags (not so much for the blind as for the haters-of-tiny-buttons,a group I pledge allegiance to), so I'm left copying pasting the whole class to change about 5 lines of code. Gross.What is up with element IDs, anyway? It seems that Wicket stays away from them, which is usually fine since you can do whatever you want withAttributeModifiers. But here I can't, and I suspect that this component was left without labels because of general element ID shyness. If there were a webmarkup level method to get a (probably) unique element ID,then CheckBoxMultipleChoice could do a little extra to make it uniquewithin its set and then render some labels.Well, anyway, here are the changes I made to CheckBoxMultipleChoice to make it churn out labels tied to IDs:... private String prefix = div; private String suffix = /div\n;... String elementId = _wicket_ + getInputName() + _ + id; ... buffer.append(input name=\ + getInputName() + \ + type=\checkbox\ + (isSelected(choice,index) ? checked : ) + value=\ + id + \ id=\ + elementId + \); ... buffer.append(label for="" .append(escaped).append(/label);...It's not art, but it does give me a click area bigger than 10 x 10 pixels. Nathan--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ListView for navigation menu?
<>Hi all, I'm a new user to Wicket. I love what I have seen so far. The HelloWorld example was very convincing for me to give Wicket a try! I am trying to create a menu to go above my pages. I have been browsing through the Wiki and looked at the navigation example. The navigation example uses borders, but before I delve into those, I thought of trying something else, and I wonder if you could give me some feedback on it. I thought I might use a ListView. I think I could add a ListView to my page that would contain Links to WebPages to create a simple navigation bar. I found some example code and HTML in the javadoc: A ListView holds ListItem children. Items can be re-ordered and deleted, either one at a time or many at a time. Example: tbody tr wicket:id="rows" class="even" tdspan wicket:id="id"Test ID/span/td ... Though this example is about a HTML table, ListView is not at all limited to HTML tables. Any kind of list can be rendered using ListView. And the related Java code: add(new ListView("rows", listData) { public void populateItem(final ListItem item) { final UserDetails user = (UserDetails)item.getModelObject(); item.add(new Label("id", user.getId())); } }); For a navigation bar I could think of this for the HTML: div id="navigation" span class="item" wicket:id="navigationitems" a wicket:id="link" href=""Item/a span class="separator" | /span /span /div But I need some way to identify the last separator in the stylesheet, so I can hide it. In the example the class "even" is used in the table row, but how is this updated to "odd" ? Am I on the right track here? Any suggestions, Greetings, -Stijn
[Wicket-user] Issues with GridView in Wicket-extensions
I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get: java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project. Should I file bugs for these or am I missing something? Thanks, Andrew
Re: [Wicket-user] Issues with GridView in Wicket-extensions
Please file a bug. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get:java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project.Should I file bugs for these or am I missing something? Thanks,Andrew
Re: [Wicket-user] Issues with GridView in Wicket-extensions
Two bugs filed: 1. http://sourceforge.net/tracker/index.php?func=detailaid=1345332group_id=119783atid=684975 2. http://sourceforge.net/tracker/index.php?func=detailaid=1345337group_id=119783atid=684975 Thanks Igor Andrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Please file a bug. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get:java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project.Should I file bugs for these or am I missing something? Thanks,Andrew
Re: [Wicket-user] Issues with GridView in Wicket-extensions
fixed and fixed couldnt reproduce the exception you got from (1), see the bug report for more info. changes are in 1.1 branch and HEAD cvs. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Two bugs filed:1. http://sourceforge.net/tracker/index.php?func=detailaid=1345332group_id=119783atid=684975 2. http://sourceforge.net/tracker/index.php?func=detailaid=1345337group_id=119783atid=684975 Thanks IgorAndrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Please file a bug. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get:java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project.Should I file bugs for these or am I missing something? Thanks,Andrew
Re: [Wicket-user] Issues with GridView in Wicket-extensions
Hmmm...I just pulled from HEAD and #2 is still not working. Looking at the code, I didn't see the change you made for defaulting the number of rows to Integer.MAX_VALUE, so I'm assuming I don't have the code you fixed. Are the commits slow or something? I gave you more info in the first bug too as you requested. --AndrewOn 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: fixed and fixed couldnt reproduce the exception you got from (1), see the bug report for more info. changes are in 1.1 branch and HEAD cvs. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Two bugs filed:1. http://sourceforge.net/tracker/index.php?func=detailaid=1345332group_id=119783atid=684975 2. http://sourceforge.net/tracker/index.php?func=detailaid=1345337group_id=119783atid=684975 Thanks IgorAndrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Please file a bug. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get:java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project.Should I file bugs for these or am I missing something? Thanks,Andrew
Re: [Wicket-user] Issues with GridView in Wicket-extensions
sometimes takes sf.net up to 8 hours to sync up the devel cvs with the public one would you like a patch in the meantime? -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Hmmm...I just pulled from HEAD and #2 is still not working. Looking at the code, I didn't see the change you made for defaulting the number of rows to Integer.MAX_VALUE, so I'm assuming I don't have the code you fixed. Are the commits slow or something?I gave you more info in the first bug too as you requested.--Andrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: fixed and fixed couldnt reproduce the exception you got from (1), see the bug report for more info. changes are in 1.1 branch and HEAD cvs. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Two bugs filed:1. http://sourceforge.net/tracker/index.php?func=detailaid=1345332group_id=119783atid=684975 2. http://sourceforge.net/tracker/index.php?func=detailaid=1345337group_id=119783atid=684975 Thanks IgorAndrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Please file a bug. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get:java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project.Should I file bugs for these or am I missing something? Thanks,Andrew
Re: [Wicket-user] Issues with GridView in Wicket-extensions
There is a delay of a couple of hours between the developer servers (ssh) and the public servers (pserver) of sourceforge. Eelco On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Hmmm...I just pulled from HEAD and #2 is still not working. Looking at the code, I didn't see the change you made for defaulting the number of rows to Integer.MAX_VALUE, so I'm assuming I don't have the code you fixed. Are the commits slow or something? I gave you more info in the first bug too as you requested. --Andrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: fixed and fixed couldnt reproduce the exception you got from (1), see the bug report for more info. changes are in 1.1 branch and HEAD cvs. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Two bugs filed: 1. http://sourceforge.net/tracker/index.php?func=detailaid=1345332group_id=119783atid=684975 2. http://sourceforge.net/tracker/index.php?func=detailaid=1345337group_id=119783atid=684975 Thanks Igor Andrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Please file a bug. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get: java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project. Should I file bugs for these or am I missing something? Thanks, Andrew --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Issues with GridView in Wicket-extensions
No, the commits aren't slow. There is a (about 5 hour) time difference between developer CVS (via SSH) and anonymous CVS (via pserver). As you aren't a committer on Wicket, you'll have to be patient for the commits to be synchronized to anonymous CVS. I think the sourceforge team is trying to solve the time difference between both CVS access methods, but I don't know the status of the effort. See the SF.net's status page for more info regarding this. Martijn On 11/2/05, Andrew Berman [EMAIL PROTECTED] wrote: Hmmm...I just pulled from HEAD and #2 is still not working. Looking at the code, I didn't see the change you made for defaulting the number of rows to Integer.MAX_VALUE, so I'm assuming I don't have the code you fixed. Are the commits slow or something? I gave you more info in the first bug too as you requested. --AndrewOn 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: fixed and fixed couldnt reproduce the exception you got from (1), see the bug report for more info. changes are in 1.1 branch and HEAD cvs. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Two bugs filed:1. http://sourceforge.net/tracker/index.php?func=detailaid=1345332group_id=119783atid=684975 2. http://sourceforge.net/tracker/index.php?func=detailaid=1345337group_id=119783atid=684975 Thanks IgorAndrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Please file a bug. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get:java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project.Should I file bugs for these or am I missing something? Thanks,Andrew -- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
[Wicket-user] Using WebResponse/RequestCrawlerSave?
I've been trying to use the WebResponse/RequestCrawlerSave functionality, and have migrated up to 1.1 in hopes this was fixed. But I keep getting this IllegalArgumentException. Anyone know what this could be about? What am I missing?java.lang.IllegalArgumentException: Invalid key value list: 'path=0:inputForminterface=IFormSubmitListener' at wicket.util.value.ValueMap.init(ValueMap.java:136) at wicket.protocol.http.WebResponseCrawlerSave.encodeQueryString(WebResponseCrawlerSave.java:89) at wicket.protocol.http.WebResponseCrawlerSave.encodeURL(WebResponseCrawlerSave.java:70) at wicket.markup.html.WebPage.urlFor(WebPage.java:232) at wicket.Component.urlFor(Component.java:1468) at wicket.markup.html.form.Form.onComponentTag(Form.java:475) at wicket.Component.renderComponent(Component.java:1866) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.markup.html.form.Form.onRender(Form.java:517) at wicket.Component.render(Component.java:1163) at wicket.markup.html.BodyOnLoadContainer.resolve(BodyOnLoadContainer.java:106) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1159) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170) at wicket.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:57) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170) at wicket.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:64) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170) at wicket.markup.html.BodyOnLoadResolver.resolve(BodyOnLoadResolver.java:60) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146) at wicket.MarkupContainer.renderAll(MarkupContainer.java:779) at wicket.Page.onRender(Page.java:788) at wicket.Component.render(Component.java:1163) at wicket.Page.doRender(Page.java:251) at wicket.RequestCycle.respond(RequestCycle.java:948) at wicket.RequestCycle.request(RequestCycle.java:411) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:350) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:172) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) to our success! ___ andrew
[Wicket-user] Page Expiration
If I load a wicket page that contains some PageLinks, then I walk away for awhile and then come back and click on one of the links, I get sent to the Page Expired page. (I haven't restarted the server or hit any other pages in the meantime). I'm probably missing something obvious, but I'm not sure how to avoid this (other than using BookmarkablePageLinks everywhere, but that won't help with forms). Am I misusing detatchable models somehow? Is there a way to save state? Is there a way to change the timeout that I'm missing? Is it a tomcat issue? Thank you very much (for this and all the help on the list), Dan --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page Expiration
oh, and yes, the only way to never have timeouts is to use bookmarkable page links as bookmarkable pages do not use a prior session (in fact, if you don't have a session yet and you navigate to a bookmarkable page, a new session is created). Eelco On 11/1/05, Eelco Hillenius [EMAIL PROTECTED] wrote: It your session that timed out. You can configure it as part of web.xml. Eelco On 11/1/05, Dan Gould [EMAIL PROTECTED] wrote: If I load a wicket page that contains some PageLinks, then I walk away for awhile and then come back and click on one of the links, I get sent to the Page Expired page. (I haven't restarted the server or hit any other pages in the meantime). I'm probably missing something obvious, but I'm not sure how to avoid this (other than using BookmarkablePageLinks everywhere, but that won't help with forms). Am I misusing detatchable models somehow? Is there a way to save state? Is there a way to change the timeout that I'm missing? Is it a tomcat issue? Thank you very much (for this and all the help on the list), Dan --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using WebResponse/RequestCrawlerSave?
Please open a bug for it. Juergen On 11/2/05, Andrew Lombardi [EMAIL PROTECTED] wrote: I've been trying to use the WebResponse/RequestCrawlerSave functionality, and have migrated up to 1.1 in hopes this was fixed. But I keep getting this IllegalArgumentException. Anyone know what this could be about? What am I missing? java.lang.IllegalArgumentException: Invalid key value list: 'path=0:inputForminterface=IFormSubmitListener' at wicket.util.value.ValueMap.init(ValueMap.java:136) at wicket.protocol.http.WebResponseCrawlerSave.encodeQueryString(WebResponseCrawlerSave.java:89) at wicket.protocol.http.WebResponseCrawlerSave.encodeURL(WebResponseCrawlerSave.java:70) at wicket.markup.html.WebPage.urlFor(WebPage.java:232) at wicket.Component.urlFor(Component.java:1468) at wicket.markup.html.form.Form.onComponentTag(Form.java:475) at wicket.Component.renderComponent(Component.java:1866) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.markup.html.form.Form.onRender(Form.java:517) at wicket.Component.render(Component.java:1163) at wicket.markup.html.BodyOnLoadContainer.resolve(BodyOnLoadContainer.java:106) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1159) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170) at wicket.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:57) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170) at wicket.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:64) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170) at wicket.markup.html.BodyOnLoadResolver.resolve(BodyOnLoadResolver.java:60) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146) at wicket.MarkupContainer.renderAll(MarkupContainer.java:779) at wicket.Page.onRender(Page.java:788) at wicket.Component.render(Component.java:1163) at wicket.Page.doRender(Page.java:251) at wicket.RequestCycle.respond(RequestCycle.java:948) at wicket.RequestCycle.request(RequestCycle.java:411) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:350) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:172) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at
[Wicket-user] How can i get tree node detail and show in another panel?
I used wicket1.0.2. In my Application, i want to show a tree as navigator and detail message as body.It is a parellel layout, left panel is a treeview, right is content view. What i want isshownode name in right panel when i click a tree node. Followed the example(1.0.2), i used twoBorder-left and right.In methodnodeLinkClickedi used following code: protected void nodeLinkClicked(DefaultMutableTreeNode node){super.nodeLinkClicked(node);Page p = this.getPage();p.replace(new Label(detailMsg,tree node link was clicked, user object: + node.getUserObject()));//NullPointerExceptionlog.info(tree node link was clicked, user object: + node.getUserObject());} But i cannot replace the content in right border. Thanks for your advice. navtree.rar Description: Binary data