Re: DatePicker NaN
On Thu, 3 Jan 2008 21:29:18 +0100 "Gerolf Seitz" <[EMAIL PROTECTED]> wrote: > Federico, is it possibly that you try it with the latest trunk? > the fix is in and it will be included in 1.3.1 I'll try it ASAP, many thanks! :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Apache Wicket 1.3 released
Hello, Are 1.3.1-SNAPSHOT builds available somewhere? I could only find the old 1.3.0-SNAPSHOTs here: http://wicketstuff.org/maven/repository/org/apache/wicket/ Congratulations on the release! Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Session and threading
You're right, we should mention this in WIA. Would you mind leaving a comment on the author forum? http://www.manning-sandbox.com/forum.jspa?forumID=328 Cheers, Eelco On Jan 3, 2008 11:10 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > > Eelco Hillenius wrote: > >> Am I right in concluding that I must make my wicket session thread-safe? > >> > >> That is, if I want to store an "int" value in the session, I should use > >> a volatile or AtomicInteger? > > > > Yes. We try our best to make pages/ components as thread safe as > > possible, but making the session thread safe would impose a too large > > performance penalty. > > > >> Is there anywhere a small piece on how to deal with threading within > >> Wicket (i.e., what is/is not synchronized in a request/response > >> roundtrip?). I did some quick searching in the mailing list archives and > >> google, but could not find anything related to version 1.3. > > > > Pages are synced on pagemaps, which basically relates to browser > > windows. RequestCycles are separate instances which are not reused, so > > no sync needed there. Sessions are not synced so you need to sync > > manually. Though in practice this wouldn't give much trouble to start > > with. Applications are shared an not synced. > > > > Eelco > > Thanks for the answer. :-) > > Before really thinking about it I kind of implicitly assumed that > session access was synced. It hasn't really gone wrong yet either, but > that's probably because of the use of ThreadLocal which acts as a memory > barrier (for session/application) and the fact that it's very hard to > get two threads to interleave within one session unless you start having > a fit on the mouse (or use lots of autoupdating ajaxy stuff). > > It could be (very) useful to have this info in the Wicket in Action book > though. For example in listing 2.1 there is a Session object with a > get/setUser, but it is completely unsynchronized; similarly, there is no > synchronization at all on the Cheesr session. Again the visibility seems > to be ensured by the fact that the session is set in a thread local, but > the code somehow seems to suggest (to me anyway) that no synchronization > is necessary... > > There are some comments on multithreadedness and threads (2.3; but in > the context of detaching, not thread-safety, and 4.1.1 in the context of > the Application object). However it also says (in 4.1.1) that all is > safe if the Application only has read-only properties, however, in the > CheesrApplication the list of cheeses is not final. This must mean that > Wicket does ensure visibility (or else it's a bug ;-)), but that is not > trivial and should probably be mentioned. > > Regards, > Sebastiaan > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BookmarkablePageLink giving a different URL
Dont use query string but use the normal mounting Query string does exactly what it says it does it builds a query string for params On 1/3/08, David Shepherdson <[EMAIL PROTECTED]> wrote: > On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: > > > I would like to get a url similar to"/editor?note=123456" > > > > But when i execute this code i get "/editor/note/123456" > > Can anyone tell me how i can get the format that i would like. > > I believe you can do this by mounting the page using a > QueryStringUrlCodingStrategy. In your application's init() method, do > something like: > > mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); > > That should cause it to encode the parameters using the query string, > rather than as part of the URL path. > > (Incidentally, it looks like the JavaDoc for > QueryStringUrlCodingStrategy could do with an update -- it still has > references to QueryStringRequestTargetUrlCodingStrategy, which I > presume was the old name for the class.) > > David Shepherdson > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tag is adding background-color attribute while rendering
umm, wicket doesnt do that. something else is probably doing it like some javascript you have added to the page. -igor On Jan 3, 2008 7:12 PM, venky221 <[EMAIL PROTECTED]> wrote: > > Hi, > > I am constructing an input text box as > > > This markup, I am making available using the getMarkupResourceStream() > method. > Now the problem is, when the content is rendered, the STYLE element will be > appended with "background-color: rgb(255, 255, 160)" attibute to it(which > fills the text box with yellow). > I am using plain html(no css is used). > Is there any way I can avoid this ?? > > Thanks, > Venkat > -- > View this message in context: > http://www.nabble.com/%3Cinput-type%3Dtext%3E-tag-is-adding-background-color-attribute-while-rendering-tp14610176p14610176.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tag is adding background-color attribute while rendering
Hi, I am constructing an input text box as This markup, I am making available using the getMarkupResourceStream() method. Now the problem is, when the content is rendered, the STYLE element will be appended with "background-color: rgb(255, 255, 160)" attibute to it(which fills the text box with yellow). I am using plain html(no css is used). Is there any way I can avoid this ?? Thanks, Venkat -- View this message in context: http://www.nabble.com/%3Cinput-type%3Dtext%3E-tag-is-adding-background-color-attribute-while-rendering-tp14610176p14610176.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice with -1 value
ty Jeremy, but usually we'll get these values from db. Imagine this, a dropdown of customers, if I do it the way that you said, using a properties file, for each new client, what I have to do? To change that file and It's really bad if you have many inserts. About my trouble, to see what I mean just do an update on data that fills any dropdown putting a negative value on id. something like this: customer_id = -1 thanks. - Original Message - From: "Jeremy Levy" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 02, 2008 6:14 PM Subject: Re: DropDownChoice with -1 value If you create a properties file for the page class and use dot notation matching your page hierarchy but leave the last value as null you can set the default value: For example: theForm.birthdayMonth.null=M theForm.birthdayYear.null=Y theForm.birthdayDay.null=D See if that helps.. J On Jan 2, 2008 2:14 PM, Juliano Gaio <[EMAIL PROTECTED]> wrote: Hello Everybody I'm using wicket.markup.html.form.DropDownChoice and it works fine until now, when I got a suspicious behavior Into database I have one data called "TEMP CUSTOMER" that has id = -1 (it's business logic of our client, that data came through database importation, and I can not update that data) Following my code: List relations = relationManager.list(); final DropDownChoice ddRelations = new DropDownChoice("relation", ( task.getRelation() == null) ? new Model() : new Model(task.getRelation()), relations, new IChoiceRenderer() { public Object getDisplayValue(Object object) { return ((Relation) object).getName(); } public String getIdValue(Object object, int index) { return String.valueOf(((Relation) object).getId()); } }); form.add(ddRelations); and HERE is the source code generate on html : Choose one TEMP CUSTOMER CUSTOMER 1 CUSTOMER 2 .. and so on ... As you can see, there are two options with selected attribute, therefore always "TEMP CUSTOMER" will be selected. When I saw this, I though why in all other dropdownchoices that I had already implemented following the same sample are working very well ? I had no doubts, and I changed the TEMP CUSTOMER id on database to "1" and ... sup.. the dropdownchoice works fine. But I can't change that data, so I rollback, and also the problem rollback. I ask to you , experts guys, if I put a negative value into a dropdownchoice, it will be the default value if none is selected ? How I can do "Choose one" be the default value in this specific case ? Any idea to solve this problem ? Thank you Best Regards Juliano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
external login pages
I am building a new wicket app that has to use an existing login page. The legacy login page is written in perl and sets a login cookie before redirecting the user back to a specified URL. I'm hoping to keep things simple and use role-based authorization for pages. In my authenticated app the login page is set to a RedirectPage which redirects to the external login page. My problem is that I can't figure out how to grab the original URL that sent me to the login page, so that I can pass that URL to the external login page, and thereby be sent to my original destination after login. (Currently I just send them back to the home page, which is annoying.) Has anyone tried this before? I've got a feeling there's a better way I could be doing this -- my current version using AuthenticatedWebApp is very kludgy. Thanks for any ideas, Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to use wicket without having any html page?
what would you like it to display? a web page or contents of some file/dynamic content? -igor On Jan 3, 2008 3:01 PM, legolas <[EMAIL PROTECTED]> wrote: > > Hi > Is it possible to use wicket without having any html page? > Just writing java code and pointing the browser to some url and it goes > forward? > > Thanks > -- > View this message in context: > http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14607438.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to use wicket without having any html page?
Hi Is it possible to use wicket without having any html page? Just writing java code and pointing the browser to some url and it goes forward? Thanks -- View this message in context: http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14607438.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question. Override class attributes from a tabPanel component
if you update to trunk there is a new overridable protected LoopItem newTabContainer(int tabIndex); -igor On Jan 3, 2008 2:19 PM, Fernando Wermus <[EMAIL PROTECTED]> wrote: > Great! I will take a look at that. Thanks! > > It seems to be hardcoded the tabbedPanel class attribute :( > > Looking at the code tabbedPanel constructor, > > protected LoopItem newItem(int iteration) > { > return new LoopItem(iteration) > { > private static final long serialVersionUID = 1L; > > protected void onComponentTag(ComponentTag tag) > { > super.onComponentTag(tag); > String cssClass = (String)tag.getString("class"); > if (cssClass == null) > { > cssClass = " "; > } > cssClass += " tab" + getIteration(); > > if (getIteration() == getSelectedTab()) > { > cssClass += " selected"; > } > if (getIteration() == getIterations() - 1) > { > cssClass += " last"; > } > tag.put("class", cssClass.trim()); > } > > }; > > > On Jan 3, 2008 8:05 PM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > Take a look at AttributeAppender, AttributeModifier or > > SImpleAttributeModifier. You can add them to a component and they > > allow you to modify tag attributes. > > > > Martijn > > > > On Jan 3, 2008 10:45 PM, Fernando Wermus <[EMAIL PROTECTED]> > > wrote: > > > I am trying to use the themes from Drupal in a wicket app. I need then > > to > > > override the class tag attributes for the ones named in the themes. But > > I > > > don't know how to do it, for instance in tabpanel tags such as li and > > ul. I > > > imagine is pretty easy. > > > > > > > > > for instance, > > > > > > li class="tab0 selected" > > > > > > to > > > > > > li class="menu-1-2-2" > > > > > > Thanks in advance. > > > > > > > > > > > > > > > -- > > > Fernando Wermus. > > > > > > > > > > > -- > > Buy Wicket in Action: http://manning.com/dashorst > > Apache Wicket 1.3.0 is released > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Fernando Wermus. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question. Override class attributes from a tabPanel component
Great! I will take a look at that. Thanks! It seems to be hardcoded the tabbedPanel class attribute :( Looking at the code tabbedPanel constructor, protected LoopItem newItem(int iteration) { return new LoopItem(iteration) { private static final long serialVersionUID = 1L; protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String cssClass = (String)tag.getString("class"); if (cssClass == null) { cssClass = " "; } cssClass += " tab" + getIteration(); if (getIteration() == getSelectedTab()) { cssClass += " selected"; } if (getIteration() == getIterations() - 1) { cssClass += " last"; } tag.put("class", cssClass.trim()); } }; On Jan 3, 2008 8:05 PM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Take a look at AttributeAppender, AttributeModifier or > SImpleAttributeModifier. You can add them to a component and they > allow you to modify tag attributes. > > Martijn > > On Jan 3, 2008 10:45 PM, Fernando Wermus <[EMAIL PROTECTED]> > wrote: > > I am trying to use the themes from Drupal in a wicket app. I need then > to > > override the class tag attributes for the ones named in the themes. But > I > > don't know how to do it, for instance in tabpanel tags such as li and > ul. I > > imagine is pretty easy. > > > > > > for instance, > > > > li class="tab0 selected" > > > > to > > > > li class="menu-1-2-2" > > > > Thanks in advance. > > > > > > > > > > -- > > Fernando Wermus. > > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Fernando Wermus.
Re: [ANNOUNCE] Apache Wicket 1.3 released
Hi Congratulations ! I put a word about it there http://blog.developpez.com/index.php?blog=136&title=wicket_1_3_est_arrive , I hope it'll help ! Cheers ! ZedroS On Jan 3, 2008 10:37 PM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Help promote wicket: digg our release: > > http://digg.com/programming/Apache_Wicket_1_3_released > > Martijn > > > On Jan 3, 2008 8:58 AM, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > > > > yeah, baby, yeah!!! way to go everyone! > > > > > > > > Martijn Dashorst-4 wrote: > > > > > > Starting the new year with a bang the Wicket Team has released Apache > > > Wicket 1.3. With this release comes a lot of great successes, but most > > > of all the team wanted to express their wishes to everyone for a happy > > > new year. > > > > > > You can download Apache Wicket 1.3 here: > > > > > > http://wicket.apache.org/getting-wicket.html > > > > > > Apache Wicket is one of the fastest growing Java open source component > > > based web frameworks. With a focus on producing valid html and a > > > logical separation between design and code. Within minutes you can > > > start to enjoy throwing out tag soup, complex components and high > > > maintenance overhead for a simple POJO + html data model. > > > > > > See the Apache Wicket website for more information: > > > > > > http://wicket.apache.org > > > > > > Take a look at some of the following highlights or skip to the bottom > > > and get started now. > > > > > > * last JDK-1.4 release (next release will be Java 5 based) > > > * first Apache release: renamed packages to org.apache.wicket > > > * simplified several core APIs > > > * now works with zero-config behind a proxy server using relative URLs > > > * added Google Guice support > > > * use your Wicket pages directly in a portal without changing a line > > > of code (JSR-168/JSR-286 support) > > > * switched logging API from commons-logging to slf4j > > > * integrate velocity templates as panels in your pages > > > * YUI-calendar and Joda time based date picker (wicket-datetime) > > > * contribute new javascript dependencies to the page header using an > > > Ajax requeset > > > * improved, more robust header contributions > > > * scale to extremely large numbers of users with stateless pages and > > > components > > > * improved AjaxTree/AjaxTreeTable > > > * hybrid URL encoding to make search engines and your users happy > > > * create form panels and use them anywhere without worrying about the > > > nesting of form tags > > > * minimized session use by storing component hierarchy in file system > > > (DiskPageStore) > > > > > > Get started today by downloading Wicket using this link: > > > > > > http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 > > > > > > The distribution contains all the Wicket libraries, and all the source > > > code including the examples project. In the root of the download you > > > will find a README document with full instructions. > > > > > > Migrate your Wicket 1.2 application to Wicket 1.3 using our migration > > > guide: > > > > > > http://cwiki.apache.org/WICKET/migrate-12.html > > > > > > Best wishes from the Wicket Team and a prosperous 2008! > > > > > > - The Wicket Team > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > -- > > View this message in context: > > http://www.nabble.com/-ANNOUNCE--Apache-Wicket-1.3-released-tp14585070p14593193.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BookmarkablePageLink generating wrong URL
Hi Igor, Its working now. I just extended the class QueryStringUrlCodingStrategy and changed appendParameters() method. Thanks Haritha - Original Message From: Igor Vaynberg <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, January 3, 2008 12:19:23 PM Subject: Re: BookmarkablePageLink generating wrong URL i think thats how wicket works by default when it generates urls. you can probably write your own coding strategy that doesnt append the slash after the mount. -igor On Jan 3, 2008 11:53 AM, Haritha Juturu <[EMAIL PROTECTED]> wrote: > Hi All > I am using mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); in the init() function of my application > > The webpage DashBoard.java has the code > new BookmarkablePageLink("myLink", Editor.class).setParameter("note","123456"); > > The corresponding webpage DashBoard.html has wicket:id > > > When i click on the link i am expecting the url "/editor?note=123456" to be called > but instead i get the url "/editor/?note=123456" . The code generated an additional / slash . > > Is this because of some setting in web.xml that is causing this ? > Thanks > Haritha > > > > - Original Message > From: Haritha Juturu <[EMAIL PROTECTED]> > To: users@wicket.apache.org > Sent: Thursday, January 3, 2008 10:20:54 AM > Subject: Re: BookmarkablePageLink giving a different URL > > > nope William... > ultimately i get the url as "/editor/?note=119871054906381055" and not > "/editor?note=119871054906381055" > Haritha > - Original Message > From: William Hoover <[EMAIL PROTECTED]> > To: users@wicket.apache.org > Sent: Thursday, January 3, 2008 9:43:22 AM > Subject: RE: BookmarkablePageLink giving a different URL > > > doesn't this work? > > new BookmarkablePageLink("yourLink", Editor.class).setParameter("note", > "123456") > > -Original Message- > From: Haritha Juturu [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 03, 2008 12:37 PM > To: users@wicket.apache.org > Subject: Re: BookmarkablePageLink giving a different URL > > > Hi David/All > I put in the QueryStringUrlCodingStrategy code as suggested by you in > the init class. > Now the url comes as > /editor/?note=119871054906381055 > > with an additional '/?' > what is the reason for that. > > Haritha > > - Original Message > From: David Shepherdson <[EMAIL PROTECTED]> > To: users@wicket.apache.org > Sent: Thursday, January 3, 2008 9:19:35 AM > Subject: Re: BookmarkablePageLink giving a different URL > > > On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: > > > I would like to get a url similar to"/editor?note=123456" > > > > But when i execute this code i get "/editor/note/123456" > > Can anyone tell me how i can get the format that i would like. > > I believe you can do this by mounting the page using a > QueryStringUrlCodingStrategy. In your application's init() method, do > something like: > > mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); > > That should cause it to encode the parameters using the query string, > rather than as part of the URL path. > > (Incidentally, it looks like the JavaDoc for > QueryStringUrlCodingStrategy could do with an update -- it still has > references to QueryStringRequestTargetUrlCodingStrategy, which I > presume was the old name for the class.) > > David Shepherdson > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > > > > > > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: wicketstuff issue...
Do you know when that will be? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Frank Bille Sent: Thursday, January 03, 2008 3:19 PM To: users@wicket.apache.org Subject: Re: wicketstuff issue... It's because of a bug, but it has been fixed. Now we just have to wait until the examples are updated again. Frank On Jan 3, 2008 9:11 PM, William Hoover <[EMAIL PROTECTED]> wrote: > Does anyone have any clue why all the links are dead in Internet Exploder > for http://wicketstuff.org/wicket13/? > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Newbie question. Override class attributes from a tabPanel component
Take a look at AttributeAppender, AttributeModifier or SImpleAttributeModifier. You can add them to a component and they allow you to modify tag attributes. Martijn On Jan 3, 2008 10:45 PM, Fernando Wermus <[EMAIL PROTECTED]> wrote: > I am trying to use the themes from Drupal in a wicket app. I need then to > override the class tag attributes for the ones named in the themes. But I > don't know how to do it, for instance in tabpanel tags such as li and ul. I > imagine is pretty easy. > > > for instance, > > li class="tab0 selected" > > to > > li class="menu-1-2-2" > > Thanks in advance. > > > > > -- > Fernando Wermus. > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question. Override class attributes from a tabPanel component
I am trying to use the themes from Drupal in a wicket app. I need then to override the class tag attributes for the ones named in the themes. But I don't know how to do it, for instance in tabpanel tags such as li and ul. I imagine is pretty easy. for instance, li class="tab0 selected" to li class="menu-1-2-2" Thanks in advance. -- Fernando Wermus.
Re: Problem with tomcat 6.0 and wicket 1.3
Thank you for your help, I got resolve this problem with your help! Thanks and sorry for my poor english, I am Brazilian and my primary language is portuguese! i'm learn english... thank you very much! see you ;-) 2008/1/3, Igor Vaynberg <[EMAIL PROTECTED]>: > > i think those jars are in the wrong place where tomcat cant see them > which is clearly stated in your stack trace > > SEVERE: Exception starting filter Codes4LifeTest > > java.lang.ClassNotFoundException: > > org.apache.wicket.protocol.http.WicketFilter > >at org.apache.catalina.loader.WebappClassLoader.loadClass( > WebappClassLoader.java:1358) > > > -igor > > > On Jan 3, 2008 1:06 PM, Danilo Barsotti <[EMAIL PROTECTED]> wrote: > > This application already have all the jars that wicket require: > > > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-velocity-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-auth-roles-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-datetime-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-extensions-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-guice-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-ioc-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-jmx-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-objectsizeof-agent-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-spring-1.3.0.jar > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-spring-annot-1.3.0.jar > > > > I thing that the jars isen't the problem! > > What do you thing? > > > > 2008/1/3, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > > > > doesnt look like you included wicket jars in your war > > > > > > -igor > > > > > > > > > On Jan 3, 2008 12:46 PM, Danilo Barsotti <[EMAIL PROTECTED]> wrote: > > > > Hi all! > > > > > > > > I need build my application wrote with wicket 1.3 under tomcat 6.0, > but > > > I > > > > don't know how to do this. > > > > When I try start the server I receive a exception: > > > > > > > > 03/01/2008 18:31:12 org.apache.catalina.core.AprLifecycleListenerinit > > > > INFO: The Apache Tomcat Native library which allows optimal > performance > > > in > > > > production environments was not found on the java.library.path: > > > C:\Arquivos > > > > de > > > > > > > > programas\Java\jre1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Arquivos > > > > de programas\Java\jre1.6.0_03\bin\client;C:\Arquivos de > > > > > > > > programas\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos > > > > de programas\Subversion\bin;C:\Arquivos de > > > > programas\QuickTime\QTSystem\;C:\Java\apache-maven-2.0.8\bin > > > > 03/01/2008 18:31:12 org.apache.coyote.http11.Http11Protocol init > > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 > > > > 03/01/2008 18:31:12 org.apache.catalina.startup.Catalina load > > > > INFO: Initialization processed in 401 ms > > > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardService start > > > > INFO: Starting service Catalina > > > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardEngine start > > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 > > > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContextfilterStart > > > > SEVERE: Exception starting filter Codes4LifeTest > > > > java.lang.ClassNotFoundException: > > > > org.apache.wicket.protocol.http.WicketFilter > > > > at org.apache.catalina.loader.WebappClassLoader.loadClass( > > > > WebappClassLoader.java:1358) > > > > at org.apache.catalina.loader.WebappClassLoader.loadClass( > > > > WebappClassLoader.java:1204) > > > > at org.apache.catalina.core.ApplicationFilterConfig.getFilter( > > > > ApplicationFilterConfig.java:249) > > > > at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef > ( > > > > ApplicationFilterConfig.java:397) > > > > at org.apache.catalina.core.ApplicationFilterConfig.( > > > > ApplicationFilterConfig.java:108) > > > > at org.apache.catalina.core.StandardContext.filterStart( > > > > StandardContext.java:3696) > > > > at org.apache.catalina.core.StandardContext.start( > > > StandardContext.java > > > > :4343) > > > > at org.apache.catalina.core.ContainerBase.start( > ContainerBase.java > > > :1045) > > > > at org.apache.catalina.core.StandardHost.start(StandardHost.java > > > :719) > > > > at org.apache.catalina.core.ContainerBase.start( > ContainerBase.java > > > :1045) > > > > at org.apache.catalina.core.StandardEngine.start( > StandardEngine.java > > > > :443) > > > > at org.apache.catalina.core.StandardService.start( > > > StandardService.java > > > > :516) > > > > at org.apache.catalina.core.StandardServer.start( > StandardServer.java > > > > :710) > > > > at org.apache.catalina.startup.Catalina.start(Catalina.java:566) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > at sun.reflect.NativeMethodAccessorImpl.
Re: [ANNOUNCE] Apache Wicket 1.3 released
Help promote wicket: digg our release: http://digg.com/programming/Apache_Wicket_1_3_released Martijn On Jan 3, 2008 8:58 AM, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > yeah, baby, yeah!!! way to go everyone! > > > > Martijn Dashorst-4 wrote: > > > > Starting the new year with a bang the Wicket Team has released Apache > > Wicket 1.3. With this release comes a lot of great successes, but most > > of all the team wanted to express their wishes to everyone for a happy > > new year. > > > > You can download Apache Wicket 1.3 here: > > > > http://wicket.apache.org/getting-wicket.html > > > > Apache Wicket is one of the fastest growing Java open source component > > based web frameworks. With a focus on producing valid html and a > > logical separation between design and code. Within minutes you can > > start to enjoy throwing out tag soup, complex components and high > > maintenance overhead for a simple POJO + html data model. > > > > See the Apache Wicket website for more information: > > > > http://wicket.apache.org > > > > Take a look at some of the following highlights or skip to the bottom > > and get started now. > > > > * last JDK-1.4 release (next release will be Java 5 based) > > * first Apache release: renamed packages to org.apache.wicket > > * simplified several core APIs > > * now works with zero-config behind a proxy server using relative URLs > > * added Google Guice support > > * use your Wicket pages directly in a portal without changing a line > > of code (JSR-168/JSR-286 support) > > * switched logging API from commons-logging to slf4j > > * integrate velocity templates as panels in your pages > > * YUI-calendar and Joda time based date picker (wicket-datetime) > > * contribute new javascript dependencies to the page header using an > > Ajax requeset > > * improved, more robust header contributions > > * scale to extremely large numbers of users with stateless pages and > > components > > * improved AjaxTree/AjaxTreeTable > > * hybrid URL encoding to make search engines and your users happy > > * create form panels and use them anywhere without worrying about the > > nesting of form tags > > * minimized session use by storing component hierarchy in file system > > (DiskPageStore) > > > > Get started today by downloading Wicket using this link: > > > > http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 > > > > The distribution contains all the Wicket libraries, and all the source > > code including the examples project. In the root of the download you > > will find a README document with full instructions. > > > > Migrate your Wicket 1.2 application to Wicket 1.3 using our migration > > guide: > > > > http://cwiki.apache.org/WICKET/migrate-12.html > > > > Best wishes from the Wicket Team and a prosperous 2008! > > > > - The Wicket Team > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/-ANNOUNCE--Apache-Wicket-1.3-released-tp14585070p14593193.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jetty, images and 404 http
Jetty is not allowing to download the resources of my pages. It dumps this into the log, 42150 [btpool0-1 - /misPartidos/resources/bg-header.jpg] DEBUG org.mortbay.log - RESPONSE /misPartidos/resources/bg-header.jpg 404 42150 [btpool0-1 - /misPartidos/resources/bg-header.jpg] DEBUG org.mortbay.log - RESPONSE /misPartidos/resources/bg-header.jpg 404 42150 [btpool0-1 - /misPartidos/resources/bg-header.jpg] DEBUG org.mortbay.log - RESPONSE /misPartidos/resources/bg-header.jpg 404 I was trying to figure it out if it is a linux permission problem or a problem from jetty itself. Thanks a lot! -- Fernando Wermus.
Re: Problem with tomcat 6.0 and wicket 1.3
i think those jars are in the wrong place where tomcat cant see them which is clearly stated in your stack trace SEVERE: Exception starting filter Codes4LifeTest java.lang.ClassNotFoundException: org.apache.wicket.protocol.http.WicketFilter at org.apache.catalina.loader.WebappClassLoader.loadClass( WebappClassLoader.java:1358) -igor On Jan 3, 2008 1:06 PM, Danilo Barsotti <[EMAIL PROTECTED]> wrote: > This application already have all the jars that wicket require: > > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-velocity-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-auth-roles-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-datetime-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-extensions-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-guice-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-ioc-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-jmx-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-objectsizeof-agent-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-spring-1.3.0.jar > C:\Java\libs\apache-wicket-1.3.0\lib\wicket-spring-annot-1.3.0.jar > > I thing that the jars isen't the problem! > What do you thing? > > 2008/1/3, Igor Vaynberg <[EMAIL PROTECTED]>: > > > > > doesnt look like you included wicket jars in your war > > > > -igor > > > > > > On Jan 3, 2008 12:46 PM, Danilo Barsotti <[EMAIL PROTECTED]> wrote: > > > Hi all! > > > > > > I need build my application wrote with wicket 1.3 under tomcat 6.0, but > > I > > > don't know how to do this. > > > When I try start the server I receive a exception: > > > > > > 03/01/2008 18:31:12 org.apache.catalina.core.AprLifecycleListener init > > > INFO: The Apache Tomcat Native library which allows optimal performance > > in > > > production environments was not found on the java.library.path: > > C:\Arquivos > > > de > > > > > programas\Java\jre1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Arquivos > > > de programas\Java\jre1.6.0_03\bin\client;C:\Arquivos de > > > > > programas\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos > > > de programas\Subversion\bin;C:\Arquivos de > > > programas\QuickTime\QTSystem\;C:\Java\apache-maven-2.0.8\bin > > > 03/01/2008 18:31:12 org.apache.coyote.http11.Http11Protocol init > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 > > > 03/01/2008 18:31:12 org.apache.catalina.startup.Catalina load > > > INFO: Initialization processed in 401 ms > > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardService start > > > INFO: Starting service Catalina > > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardEngine start > > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 > > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext filterStart > > > SEVERE: Exception starting filter Codes4LifeTest > > > java.lang.ClassNotFoundException: > > > org.apache.wicket.protocol.http.WicketFilter > > > at org.apache.catalina.loader.WebappClassLoader.loadClass( > > > WebappClassLoader.java:1358) > > > at org.apache.catalina.loader.WebappClassLoader.loadClass( > > > WebappClassLoader.java:1204) > > > at org.apache.catalina.core.ApplicationFilterConfig.getFilter( > > > ApplicationFilterConfig.java:249) > > > at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef( > > > ApplicationFilterConfig.java:397) > > > at org.apache.catalina.core.ApplicationFilterConfig.( > > > ApplicationFilterConfig.java:108) > > > at org.apache.catalina.core.StandardContext.filterStart( > > > StandardContext.java:3696) > > > at org.apache.catalina.core.StandardContext.start( > > StandardContext.java > > > :4343) > > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java > > :1045) > > > at org.apache.catalina.core.StandardHost.start(StandardHost.java > > :719) > > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java > > :1045) > > > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java > > > :443) > > > at org.apache.catalina.core.StandardService.start( > > StandardService.java > > > :516) > > > at org.apache.catalina.core.StandardServer.start(StandardServer.java > > > :710) > > > at org.apache.catalina.startup.Catalina.start(Catalina.java:566) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext start > > > SEVERE: Error filterStart > > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext start > >
Re: Problem with tomcat 6.0 and wicket 1.3
This application already have all the jars that wicket require: C:\Java\libs\apache-wicket-1.3.0\lib\wicket-velocity-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-auth-roles-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-datetime-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-extensions-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-guice-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-ioc-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-jmx-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-objectsizeof-agent-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-spring-1.3.0.jar C:\Java\libs\apache-wicket-1.3.0\lib\wicket-spring-annot-1.3.0.jar I thing that the jars isen't the problem! What do you thing? 2008/1/3, Igor Vaynberg <[EMAIL PROTECTED]>: > > doesnt look like you included wicket jars in your war > > -igor > > > On Jan 3, 2008 12:46 PM, Danilo Barsotti <[EMAIL PROTECTED]> wrote: > > Hi all! > > > > I need build my application wrote with wicket 1.3 under tomcat 6.0, but > I > > don't know how to do this. > > When I try start the server I receive a exception: > > > > 03/01/2008 18:31:12 org.apache.catalina.core.AprLifecycleListener init > > INFO: The Apache Tomcat Native library which allows optimal performance > in > > production environments was not found on the java.library.path: > C:\Arquivos > > de > > > programas\Java\jre1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Arquivos > > de programas\Java\jre1.6.0_03\bin\client;C:\Arquivos de > > > programas\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos > > de programas\Subversion\bin;C:\Arquivos de > > programas\QuickTime\QTSystem\;C:\Java\apache-maven-2.0.8\bin > > 03/01/2008 18:31:12 org.apache.coyote.http11.Http11Protocol init > > INFO: Initializing Coyote HTTP/1.1 on http-8080 > > 03/01/2008 18:31:12 org.apache.catalina.startup.Catalina load > > INFO: Initialization processed in 401 ms > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardService start > > INFO: Starting service Catalina > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardEngine start > > INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext filterStart > > SEVERE: Exception starting filter Codes4LifeTest > > java.lang.ClassNotFoundException: > > org.apache.wicket.protocol.http.WicketFilter > > at org.apache.catalina.loader.WebappClassLoader.loadClass( > > WebappClassLoader.java:1358) > > at org.apache.catalina.loader.WebappClassLoader.loadClass( > > WebappClassLoader.java:1204) > > at org.apache.catalina.core.ApplicationFilterConfig.getFilter( > > ApplicationFilterConfig.java:249) > > at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef( > > ApplicationFilterConfig.java:397) > > at org.apache.catalina.core.ApplicationFilterConfig.( > > ApplicationFilterConfig.java:108) > > at org.apache.catalina.core.StandardContext.filterStart( > > StandardContext.java:3696) > > at org.apache.catalina.core.StandardContext.start( > StandardContext.java > > :4343) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java > :1045) > > at org.apache.catalina.core.StandardHost.start(StandardHost.java > :719) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java > :1045) > > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java > > :443) > > at org.apache.catalina.core.StandardService.start( > StandardService.java > > :516) > > at org.apache.catalina.core.StandardServer.start(StandardServer.java > > :710) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:566) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext start > > SEVERE: Error filterStart > > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext start > > SEVERE: Context [/Codes4LifeTest] startup failed due to previous errors > > 03/01/2008 18:31:12 org.apache.coyote.http11.Http11Protocol start > > INFO: Starting Coyote HTTP/1.1 on http-8080 > > 03/01/2008 18:31:12 org.apache.jk.common.ChannelSocket init > > INFO: JK: ajp13 listening on /0.0.0.0:8009 > > 03/01/2008 18:31:12 org.apache.jk.server.JkMain start > > INFO: Jk running ID=0 time=0/16 config=null > > 03/01/2008 18:31:12 org.apache.catalina.startup.Catalina start > > INFO: Server startup in 293 ms > > > > I would like to know what is happen and how to solve it. > > > > Sorry for my poor e
Re: Problem with tomcat 6.0 and wicket 1.3
doesnt look like you included wicket jars in your war -igor On Jan 3, 2008 12:46 PM, Danilo Barsotti <[EMAIL PROTECTED]> wrote: > Hi all! > > I need build my application wrote with wicket 1.3 under tomcat 6.0, but I > don't know how to do this. > When I try start the server I receive a exception: > > 03/01/2008 18:31:12 org.apache.catalina.core.AprLifecycleListener init > INFO: The Apache Tomcat Native library which allows optimal performance in > production environments was not found on the java.library.path: C:\Arquivos > de > programas\Java\jre1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Arquivos > de programas\Java\jre1.6.0_03\bin\client;C:\Arquivos de > programas\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos > de programas\Subversion\bin;C:\Arquivos de > programas\QuickTime\QTSystem\;C:\Java\apache-maven-2.0.8\bin > 03/01/2008 18:31:12 org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > 03/01/2008 18:31:12 org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 401 ms > 03/01/2008 18:31:12 org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > 03/01/2008 18:31:12 org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext filterStart > SEVERE: Exception starting filter Codes4LifeTest > java.lang.ClassNotFoundException: > org.apache.wicket.protocol.http.WicketFilter > at org.apache.catalina.loader.WebappClassLoader.loadClass( > WebappClassLoader.java:1358) > at org.apache.catalina.loader.WebappClassLoader.loadClass( > WebappClassLoader.java:1204) > at org.apache.catalina.core.ApplicationFilterConfig.getFilter( > ApplicationFilterConfig.java:249) > at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef( > ApplicationFilterConfig.java:397) > at org.apache.catalina.core.ApplicationFilterConfig.( > ApplicationFilterConfig.java:108) > at org.apache.catalina.core.StandardContext.filterStart( > StandardContext.java:3696) > at org.apache.catalina.core.StandardContext.start(StandardContext.java > :4343) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java > :443) > at org.apache.catalina.core.StandardService.start(StandardService.java > :516) > at org.apache.catalina.core.StandardServer.start(StandardServer.java > :710) > at org.apache.catalina.startup.Catalina.start(Catalina.java:566) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext start > SEVERE: Error filterStart > 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext start > SEVERE: Context [/Codes4LifeTest] startup failed due to previous errors > 03/01/2008 18:31:12 org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > 03/01/2008 18:31:12 org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > 03/01/2008 18:31:12 org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/16 config=null > 03/01/2008 18:31:12 org.apache.catalina.startup.Catalina start > INFO: Server startup in 293 ms > > I would like to know what is happen and how to solve it. > > Sorry for my poor english. I'm learn. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with tomcat 6.0 and wicket 1.3
Hi all! I need build my application wrote with wicket 1.3 under tomcat 6.0, but I don't know how to do this. When I try start the server I receive a exception: 03/01/2008 18:31:12 org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Arquivos de programas\Java\jre1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Arquivos de programas\Java\jre1.6.0_03\bin\client;C:\Arquivos de programas\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Subversion\bin;C:\Arquivos de programas\QuickTime\QTSystem\;C:\Java\apache-maven-2.0.8\bin 03/01/2008 18:31:12 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 03/01/2008 18:31:12 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 401 ms 03/01/2008 18:31:12 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 03/01/2008 18:31:12 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter Codes4LifeTest java.lang.ClassNotFoundException: org.apache.wicket.protocol.http.WicketFilter at org.apache.catalina.loader.WebappClassLoader.loadClass( WebappClassLoader.java:1358) at org.apache.catalina.loader.WebappClassLoader.loadClass( WebappClassLoader.java:1204) at org.apache.catalina.core.ApplicationFilterConfig.getFilter( ApplicationFilterConfig.java:249) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef( ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.( ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart( StandardContext.java:3696) at org.apache.catalina.core.StandardContext.start(StandardContext.java :4343) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java :443) at org.apache.catalina.core.StandardService.start(StandardService.java :516) at org.apache.catalina.core.StandardServer.start(StandardServer.java :710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext start SEVERE: Error filterStart 03/01/2008 18:31:12 org.apache.catalina.core.StandardContext start SEVERE: Context [/Codes4LifeTest] startup failed due to previous errors 03/01/2008 18:31:12 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 03/01/2008 18:31:12 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 03/01/2008 18:31:12 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/16 config=null 03/01/2008 18:31:12 org.apache.catalina.startup.Catalina start INFO: Server startup in 293 ms I would like to know what is happen and how to solve it. Sorry for my poor english. I'm learn.
Re: DatePicker NaN
Federico, is it possibly that you try it with the latest trunk? the fix is in and it will be included in 1.3.1 Regards, Gerolf On Jan 3, 2008 10:58 AM, Federico Fanton <[EMAIL PROTECTED]> wrote: > On Wed, 19 Sep 2007 18:19:15 +0200 > "Gerolf Seitz" <[EMAIL PROTECTED]> wrote: > > > ivana filed an issue today (WICKET-989) and i already attached a patch > to > > it. > > so either you persuade any of the committers to apply the patch and > commit > > it, or you do an svn checkout and apply the patch to your local copy of > > wicket-datetime. > > > > Gerolf > > > > On 9/19/07, Philip Köster <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > ivana wrote: > > > > > > > > Hi > > > > I have a problem with the DatePicker. It works fine if the input is > a > > > > valid date or if the input is very wrong, for example: ''xxx". > > > > But when the input consists of numbers and but is not a valid date, > the > > > > calendar is rendered with NaN in every field. > > > > I'm sorry, could it be that somehow this patch wasn't included in 1.3.0? I > upgraded today and I'm still having the same problem.. If I write "123" in > the text box and I press the calendar icon, the datepicker is full of NaNs. > I checked wicket-date.js and it looks like it doesn't check for NaNs.. > Thanks for your time! > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: BookmarkablePageLink generating wrong URL
i think thats how wicket works by default when it generates urls. you can probably write your own coding strategy that doesnt append the slash after the mount. -igor On Jan 3, 2008 11:53 AM, Haritha Juturu <[EMAIL PROTECTED]> wrote: > Hi All > I am using mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); > in the init() function of my application > > The webpage DashBoard.java has the code > new BookmarkablePageLink("myLink", > Editor.class).setParameter("note","123456"); > > The corresponding webpage DashBoard.html has wicket:id > src="img/manhattan/edit_16.png" /> > > When i click on the link i am expecting the url "/editor?note=123456" to be > called > but instead i get the url "/editor/?note=123456" . The code generated an > additional / slash . > > Is this because of some setting in web.xml that is causing this ? > Thanks > Haritha > > > > - Original Message > From: Haritha Juturu <[EMAIL PROTECTED]> > To: users@wicket.apache.org > Sent: Thursday, January 3, 2008 10:20:54 AM > Subject: Re: BookmarkablePageLink giving a different URL > > > nope William... > ultimately i get the url as "/editor/?note=119871054906381055" and not > "/editor?note=119871054906381055" > Haritha > - Original Message > From: William Hoover <[EMAIL PROTECTED]> > To: users@wicket.apache.org > Sent: Thursday, January 3, 2008 9:43:22 AM > Subject: RE: BookmarkablePageLink giving a different URL > > > doesn't this work? > > new BookmarkablePageLink("yourLink", Editor.class).setParameter("note", > "123456") > > -Original Message- > From: Haritha Juturu [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 03, 2008 12:37 PM > To: users@wicket.apache.org > Subject: Re: BookmarkablePageLink giving a different URL > > > Hi David/All > I put in the QueryStringUrlCodingStrategy code as suggested by you in > the init class. > Now the url comes as > /editor/?note=119871054906381055 > > with an additional '/?' > what is the reason for that. > > Haritha > > - Original Message > From: David Shepherdson <[EMAIL PROTECTED]> > To: users@wicket.apache.org > Sent: Thursday, January 3, 2008 9:19:35 AM > Subject: Re: BookmarkablePageLink giving a different URL > > > On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: > > > I would like to get a url similar to"/editor?note=123456" > > > > But when i execute this code i get "/editor/note/123456" > > Can anyone tell me how i can get the format that i would like. > > I believe you can do this by mounting the page using a > QueryStringUrlCodingStrategy. In your application's init() method, do > something like: > > mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); > > That should cause it to encode the parameters using the query string, > rather than as part of the URL path. > > (Incidentally, it looks like the JavaDoc for > QueryStringUrlCodingStrategy could do with an update -- it still has > references to QueryStringRequestTargetUrlCodingStrategy, which I > presume was the old name for the class.) > > David Shepherdson > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > > > > > > > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicketstuff issue...
It's because of a bug, but it has been fixed. Now we just have to wait until the examples are updated again. Frank On Jan 3, 2008 9:11 PM, William Hoover <[EMAIL PROTECTED]> wrote: > Does anyone have any clue why all the links are dead in Internet Exploder > for http://wicketstuff.org/wicket13/? > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
wicketstuff issue...
Does anyone have any clue why all the links are dead in Internet Exploder for http://wicketstuff.org/wicket13/? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BookmarkablePageLink generating wrong URL
Hi All I am using mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); in the init() function of my application The webpage DashBoard.java has the code new BookmarkablePageLink("myLink", Editor.class).setParameter("note","123456"); The corresponding webpage DashBoard.html has wicket:id When i click on the link i am expecting the url "/editor?note=123456" to be called but instead i get the url "/editor/?note=123456" . The code generated an additional / slash . Is this because of some setting in web.xml that is causing this ? Thanks Haritha - Original Message From: Haritha Juturu <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, January 3, 2008 10:20:54 AM Subject: Re: BookmarkablePageLink giving a different URL nope William... ultimately i get the url as "/editor/?note=119871054906381055" and not "/editor?note=119871054906381055" Haritha - Original Message From: William Hoover <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, January 3, 2008 9:43:22 AM Subject: RE: BookmarkablePageLink giving a different URL doesn't this work? new BookmarkablePageLink("yourLink", Editor.class).setParameter("note", "123456") -Original Message- From: Haritha Juturu [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 12:37 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink giving a different URL Hi David/All I put in the QueryStringUrlCodingStrategy code as suggested by you in the init class. Now the url comes as /editor/?note=119871054906381055 with an additional '/?' what is the reason for that. Haritha - Original Message From: David Shepherdson <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, January 3, 2008 9:19:35 AM Subject: Re: BookmarkablePageLink giving a different URL On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: > I would like to get a url similar to"/editor?note=123456" > > But when i execute this code i get "/editor/note/123456" > Can anyone tell me how i can get the format that i would like. I believe you can do this by mounting the page using a QueryStringUrlCodingStrategy. In your application's init() method, do something like: mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); That should cause it to encode the parameters using the query string, rather than as part of the URL path. (Incidentally, it looks like the JavaDoc for QueryStringUrlCodingStrategy could do with an update -- it still has references to QueryStringRequestTargetUrlCodingStrategy, which I presume was the old name for the class.) David Shepherdson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: nesting repeaters? A child with id 'rows' already exists
dooh! Thank you! Frank Bille wrote: add(new ListView("rows", field.getValues() ) { = listItem.add(new ListView("rows", field.getValues() ) { On Jan 3, 2008 7:44 PM, Ryan McKinley <[EMAIL PROTECTED]> wrote: Hello- I'm struggling with how to nest repeaters - a list within a list. I have a data structure that returns a List of Lists. My Panel.java code looks like: add(new ListView("fields", new FacetFieldsModel( rsp ) ) { @Override public void populateItem(final ListItem listItem) { final FacetField field = (FacetField)listItem.getModelObject(); listItem.add(new Label("name", new PropertyModel( field, "name" ) )); add(new ListView("rows", field.getValues() ) { @Override protected void populateItem(ListItem item) { Count cnt = (Count)item.getModelObject(); item.add( new Label( "row", cnt.toString() ) ); } }); } }); the markup looks like: This gives the error: java.lang.IllegalArgumentException: A child with id 'rows' already exists: [MarkupContainer [Component id = fields, page = wicket.solr.QueryPage, path = 0:facets:fields.FacetsPanel$1, isVisible = true, isVersioned = false]] I feel like I'm missing something basic. Thanks for any pointers! ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: nesting repeaters? A child with id 'rows' already exists
you have to add it to the listItem listItem.add(new ListView("rows instead of just add(new ListView("rows... ryantxu wrote: > > Hello- > > I'm struggling with how to nest repeaters - a list within a list. I > have a data structure that returns a List of Lists. My Panel.java code > looks like: > > add(new ListView("fields", new FacetFieldsModel( rsp ) ) > { >@Override >public void populateItem(final ListItem listItem) >{ > final FacetField field = (FacetField)listItem.getModelObject(); > listItem.add(new Label("name", new PropertyModel( field, "name" ) )); > > add(new ListView("rows", field.getValues() ) { >@Override >protected void populateItem(ListItem item) { > Count cnt = (Count)item.getModelObject(); > item.add( new Label( "row", cnt.toString() ) ); >} > }); >} > }); > > the markup looks like: > > > > > > > > > > > > > > > This gives the error: > java.lang.IllegalArgumentException: A child with id 'rows' already exists: > [MarkupContainer [Component id = fields, page = wicket.solr.QueryPage, > path = 0:facets:fields.FacetsPanel$1, isVisible = true, isVersioned = > false]] > > I feel like I'm missing something basic. Thanks for any pointers! > > ryan > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/nesting-repeatersA-child-with-id-%27rows%27-already-exists-tp14602993p14603027.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: nesting repeaters? A child with id 'rows' already exists
add(new ListView("rows", field.getValues() ) { = listItem.add(new ListView("rows", field.getValues() ) { On Jan 3, 2008 7:44 PM, Ryan McKinley <[EMAIL PROTECTED]> wrote: > Hello- > > I'm struggling with how to nest repeaters - a list within a list. I > have a data structure that returns a List of Lists. My Panel.java code > looks like: > > add(new ListView("fields", new FacetFieldsModel( rsp ) ) > { > @Override > public void populateItem(final ListItem listItem) > { > final FacetField field = (FacetField)listItem.getModelObject(); > listItem.add(new Label("name", new PropertyModel( field, "name" ) )); > > add(new ListView("rows", field.getValues() ) { > @Override > protected void populateItem(ListItem item) { > Count cnt = (Count)item.getModelObject(); > item.add( new Label( "row", cnt.toString() ) ); > } > }); > } > }); > > the markup looks like: > > > > > > > > > > > > > > > This gives the error: > java.lang.IllegalArgumentException: A child with id 'rows' already exists: > [MarkupContainer [Component id = fields, page = wicket.solr.QueryPage, > path = 0:facets:fields.FacetsPanel$1, isVisible = true, isVersioned = > false]] > > I feel like I'm missing something basic. Thanks for any pointers! > > ryan > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
nesting repeaters? A child with id 'rows' already exists
Hello- I'm struggling with how to nest repeaters - a list within a list. I have a data structure that returns a List of Lists. My Panel.java code looks like: add(new ListView("fields", new FacetFieldsModel( rsp ) ) { @Override public void populateItem(final ListItem listItem) { final FacetField field = (FacetField)listItem.getModelObject(); listItem.add(new Label("name", new PropertyModel( field, "name" ) )); add(new ListView("rows", field.getValues() ) { @Override protected void populateItem(ListItem item) { Count cnt = (Count)item.getModelObject(); item.add( new Label( "row", cnt.toString() ) ); } }); } }); the markup looks like: This gives the error: java.lang.IllegalArgumentException: A child with id 'rows' already exists: [MarkupContainer [Component id = fields, page = wicket.solr.QueryPage, path = 0:facets:fields.FacetsPanel$1, isVisible = true, isVersioned = false]] I feel like I'm missing something basic. Thanks for any pointers! ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nested list structures and RecursivePanel
Thanks Igor, that did the trick. I knew it had to be a simple solution. Sometimes learning a new technology is like hammering nails with your forehead! Jay On Jan 3, 2008 1:17 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you can use the wicket:container tag instead of span if you dont want > anything in the output. > > alternatively you can call setrenderbodyonly(true) on the offending > container, if it is part of the listview/refreshingview you have to > call > > onpopulateitem(Item item, ...) { item.setrenderbodyonly(true); } > > -igor > > > On Jan 3, 2008 8:28 AM, Jay Hogan <[EMAIL PROTECTED]> wrote: > > I am trying to create a nested unordered list structure similar to the > one > > demonstrated by the nested example from org.apache.wicket.examples. > However, > > there are some key differences that have me stumped. > > > > Here is an example of the structure I am trying to create: > > > > > > > > > > > > 1.1 > > > > > > 1.2 > > > > > > 1.2.1 > > > > > > 1.2.2 > > > > > > > > 1.2.2.1 > > > > > > > > 1.2.3 > > > > > > > > > > 1.3 > > > > > > > > > > > > The code I have attached comes close to replicating this structure but > has > > one key difference that is throwing off the css/javascript combination > > required to style this block for IE. In the code attached, each tag > is > > wrapped in a tag. From what I can tell, this > element > > is required by the org.apache.wicket.markup.html.list.ListView class I > am > > using to recursively build the nested list. > > > > I have tried using a ListView (attached), a RepeatingView, plus several > html > > template structures but I haven't come upon a solution that eliminates > the > > elements. I could try to tweak the style sheet or the script but > I'm > > the kind of person who is more comfortable working in Java. Plus, I know > > wicket can do it and it burns me that I can't figure it out. > > > > Anyone have any ideas? > > > > Thanks, > > > > Jay > > > > > > NavigationPanel.java: > > > > public class NavigationPanel extends Panel { > > private static final long serialVersionUID = 1013065866921645502L; > > > > /** > > * Constructor > > * @param id - Wicket ID > > * @param menus - List of NavMenuItems > > * @param parentID - HTML ID of parent (or null if root menu) > > */ > > public NavigationPanel(String id, List menus, String > > parentID) { > > super(id); > > AttributeModifier idModifier = null; > > if (parentID == null) { > > idModifier = new AttributeModifier("id",new Model("nav")); > > add(HeaderContributor.forCss(NavigationPanel.class, " > > NavigationPanel.css")); > > add(HeaderContributor.forJavaScript(NavigationPanel.class, " > > NavigationPanel.js")); > > } else > > idModifier = new AttributeModifier("id",new > Model(parentID)); > > add(new MenuPanel("menu", menus).add(idModifier)); > > } > > > > private class MenuPanel extends Panel { > > private static final long serialVersionUID = > -59572567635752L; > > > > MenuPanel(String id, List menus) { > > super(id); > > add(new Rows("rows", menus)); > > setVersioned(false); > > } > > > > /** > > * The list class. > > */ > > private class Rows extends ListView { > > private static final long serialVersionUID = > > -5175513182419457939L; > > > > /** > > * Constructor > > * @param name - name of the component > > * @param list - a list where each element is either a > string or > > another list > > */ > > public Rows(String name, List list) { > > super(name, list); > > } > > > > /** > > * @see > org.apache.wicket.markup.html.list.ListView#populateItem > > (org.apache.wicket.markup.html.list.ListItem) > > */ > > protected void populateItem(ListItem listItem) { > > NavMenuItem navMenuItem = > > (NavMenuItem)listItem.getModelObject(); > > > > WebMarkupContainer row = new > WebMarkupContainer("menuItem"); > > String linkText = navMenuItem.getMenuText(); > > > > NavigationPanel nested = new NavigationPanel ( > > "subMenu", > > navMenuItem.getSubMenus(), > > navMenuItem.getMenuText() > > ); > > if (navMenuItem.getSubMenus() == null) > > nested.setVisible(false); > > else > > linkText = l
Re: BookmarkablePageLink giving a different URL
nope William... ultimately i get the url as "/editor/?note=119871054906381055" and not "/editor?note=119871054906381055" Haritha - Original Message From: William Hoover <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, January 3, 2008 9:43:22 AM Subject: RE: BookmarkablePageLink giving a different URL doesn't this work? new BookmarkablePageLink("yourLink", Editor.class).setParameter("note", "123456") -Original Message- From: Haritha Juturu [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 12:37 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink giving a different URL Hi David/All I put in the QueryStringUrlCodingStrategy code as suggested by you in the init class. Now the url comes as /editor/?note=119871054906381055 with an additional '/?' what is the reason for that. Haritha - Original Message From: David Shepherdson <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, January 3, 2008 9:19:35 AM Subject: Re: BookmarkablePageLink giving a different URL On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: > I would like to get a url similar to"/editor?note=123456" > > But when i execute this code i get "/editor/note/123456" > Can anyone tell me how i can get the format that i would like. I believe you can do this by mounting the page using a QueryStringUrlCodingStrategy. In your application's init() method, do something like: mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); That should cause it to encode the parameters using the query string, rather than as part of the URL path. (Incidentally, it looks like the JavaDoc for QueryStringUrlCodingStrategy could do with an update -- it still has references to QueryStringRequestTargetUrlCodingStrategy, which I presume was the old name for the class.) David Shepherdson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: Nested list structures and RecursivePanel
you can use the wicket:container tag instead of span if you dont want anything in the output. alternatively you can call setrenderbodyonly(true) on the offending container, if it is part of the listview/refreshingview you have to call onpopulateitem(Item item, ...) { item.setrenderbodyonly(true); } -igor On Jan 3, 2008 8:28 AM, Jay Hogan <[EMAIL PROTECTED]> wrote: > I am trying to create a nested unordered list structure similar to the one > demonstrated by the nested example from org.apache.wicket.examples. However, > there are some key differences that have me stumped. > > Here is an example of the structure I am trying to create: > > > > > > 1.1 > > > 1.2 > > > 1.2.1 > > > 1.2.2 > > > > 1.2.2.1 > > > > 1.2.3 > > > > > 1.3 > > > > > > The code I have attached comes close to replicating this structure but has > one key difference that is throwing off the css/javascript combination > required to style this block for IE. In the code attached, each tag is > wrapped in a tag. From what I can tell, this element > is required by the org.apache.wicket.markup.html.list.ListView class I am > using to recursively build the nested list. > > I have tried using a ListView (attached), a RepeatingView, plus several html > template structures but I haven't come upon a solution that eliminates the > elements. I could try to tweak the style sheet or the script but I'm > the kind of person who is more comfortable working in Java. Plus, I know > wicket can do it and it burns me that I can't figure it out. > > Anyone have any ideas? > > Thanks, > > Jay > > > NavigationPanel.java: > > public class NavigationPanel extends Panel { > private static final long serialVersionUID = 1013065866921645502L; > > /** > * Constructor > * @param id - Wicket ID > * @param menus - List of NavMenuItems > * @param parentID - HTML ID of parent (or null if root menu) > */ > public NavigationPanel(String id, List menus, String > parentID) { > super(id); > AttributeModifier idModifier = null; > if (parentID == null) { > idModifier = new AttributeModifier("id",new Model("nav")); > add(HeaderContributor.forCss(NavigationPanel.class, " > NavigationPanel.css")); > add(HeaderContributor.forJavaScript(NavigationPanel.class, " > NavigationPanel.js")); > } else > idModifier = new AttributeModifier("id",new Model(parentID)); > add(new MenuPanel("menu", menus).add(idModifier)); > } > > private class MenuPanel extends Panel { > private static final long serialVersionUID = -59572567635752L; > > MenuPanel(String id, List menus) { > super(id); > add(new Rows("rows", menus)); > setVersioned(false); > } > > /** > * The list class. > */ > private class Rows extends ListView { > private static final long serialVersionUID = > -5175513182419457939L; > > /** > * Constructor > * @param name - name of the component > * @param list - a list where each element is either a string or > another list > */ > public Rows(String name, List list) { > super(name, list); > } > > /** > * @see org.apache.wicket.markup.html.list.ListView#populateItem > (org.apache.wicket.markup.html.list.ListItem) > */ > protected void populateItem(ListItem listItem) { > NavMenuItem navMenuItem = > (NavMenuItem)listItem.getModelObject(); > > WebMarkupContainer row = new WebMarkupContainer("menuItem"); > String linkText = navMenuItem.getMenuText(); > > NavigationPanel nested = new NavigationPanel ( > "subMenu", > navMenuItem.getSubMenus(), > navMenuItem.getMenuText() > ); > if (navMenuItem.getSubMenus() == null) > nested.setVisible(false); > else > linkText = linkText + " »"; > > Label link = new Label("link", linkText); > > row.add(nested); > row.add(link); > listItem.add(row); > } > } > } > } > > > > NavigationPanel.html: > > > > > Navigation menu goes here > > > > > > > NavigationPanel$MenuPanel.html: > > > > > Link Text wicket:id="subMenu"/> > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co
StringResourceModel and wicket:message tag handle umlauts differently
Hi, I was just wondering why StringResourceModels and wicket:message tags handle umlauts (mutated vowels) such as the German ö, ä or ü differently. More precisely, if a put the following word into a properties file (I used a $ instead of the & to prevent browsers and mail-clients taking this as html ;-)): M$auml;nner StringResourceModel's output is: M$auml;nner (in the Browser) and M$amp;auml;nner (in HTML) whereas wicket:message's output is: Männer (in the Browser) and M$auml;nner (in HTML) obviously StringResourceModel escapes the special characters and wicket:message doesn't. It isn't that big problem that keeps my project stuck, but I'd like to know if this is a desired behaviour and what the wicket-way to handle umlauts in property files would be like - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/StringResourceModel-and-wicket%3Amessage-tag-handle-umlauts-differently-tp14602077p14602077.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anchoring back to a submitted form
It's a bug (or maybe a feature) of Safari. Wicket can't do anything about it. And I don't track safari issues. -Matej On Jan 3, 2008 6:13 PM, TheMayor <[EMAIL PROTECTED]> wrote: > > > > Matej Knopp-2 wrote: > > > > > > however, this will not work in safari. Wicket does redirect after post > > and in safari the redirect doesn't preserve the anchor. > > > > -Matej > > > > > > Thanks, this should do the trick. Is the problem with Safari a known issue > (in JIRA)? I tried some quick queries but didn't find an issue. > > -hc > > -- > View this message in context: > http://www.nabble.com/Anchoring-back-to-a-submitted-form-tp14593381p14601155.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BookmarkablePageLink giving a different URL
doesn't this work? new BookmarkablePageLink("yourLink", Editor.class).setParameter("note", "123456") -Original Message- From: Haritha Juturu [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 12:37 PM To: users@wicket.apache.org Subject: Re: BookmarkablePageLink giving a different URL Hi David/All I put in the QueryStringUrlCodingStrategy code as suggested by you in the init class. Now the url comes as /editor/?note=119871054906381055 with an additional '/?' what is the reason for that. Haritha - Original Message From: David Shepherdson <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, January 3, 2008 9:19:35 AM Subject: Re: BookmarkablePageLink giving a different URL On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: > I would like to get a url similar to"/editor?note=123456" > > But when i execute this code i get "/editor/note/123456" > Can anyone tell me how i can get the format that i would like. I believe you can do this by mounting the page using a QueryStringUrlCodingStrategy. In your application's init() method, do something like: mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); That should cause it to encode the parameters using the query string, rather than as part of the URL path. (Incidentally, it looks like the JavaDoc for QueryStringUrlCodingStrategy could do with an update -- it still has references to QueryStringRequestTargetUrlCodingStrategy, which I presume was the old name for the class.) David Shepherdson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BookmarkablePageLink giving a different URL
Hi David/All I put in the QueryStringUrlCodingStrategy code as suggested by you in the init class. Now the url comes as /editor/?note=119871054906381055 with an additional '/?' what is the reason for that. Haritha - Original Message From: David Shepherdson <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, January 3, 2008 9:19:35 AM Subject: Re: BookmarkablePageLink giving a different URL On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: > I would like to get a url similar to"/editor?note=123456" > > But when i execute this code i get "/editor/note/123456" > Can anyone tell me how i can get the format that i would like. I believe you can do this by mounting the page using a QueryStringUrlCodingStrategy. In your application's init() method, do something like: mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); That should cause it to encode the parameters using the query string, rather than as part of the URL path. (Incidentally, it looks like the JavaDoc for QueryStringUrlCodingStrategy could do with an update -- it still has references to QueryStringRequestTargetUrlCodingStrategy, which I presume was the old name for the class.) David Shepherdson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: BookmarkablePageLink giving a different URL
On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: I would like to get a url similar to"/editor?note=123456" But when i execute this code i get "/editor/note/123456" Can anyone tell me how i can get the format that i would like. I believe you can do this by mounting the page using a QueryStringUrlCodingStrategy. In your application's init() method, do something like: mount(new QueryStringUrlCodingStrategy("/editor", Editor.class)); That should cause it to encode the parameters using the query string, rather than as part of the URL path. (Incidentally, it looks like the JavaDoc for QueryStringUrlCodingStrategy could do with an update -- it still has references to QueryStringRequestTargetUrlCodingStrategy, which I presume was the old name for the class.) David Shepherdson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anchoring back to a submitted form
Matej Knopp-2 wrote: > > > however, this will not work in safari. Wicket does redirect after post > and in safari the redirect doesn't preserve the anchor. > > -Matej > > Thanks, this should do the trick. Is the problem with Safari a known issue (in JIRA)? I tried some quick queries but didn't find an issue. -hc -- View this message in context: http://www.nabble.com/Anchoring-back-to-a-submitted-form-tp14593381p14601155.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wickettester and session?
On 21 Dec 2007, at 6.03 pm, Nino Saturnino Martinez Vazquez Wael wrote: There seems to be a problem with wicket tester and the session created (I use my own custom session). I create the wicket tester like this: ... wicketTester = new WicketTester(ZeuzGroupApplication.class); ... The application works fine without testing. But I get a class cast exception when testing, since the session arent my custom one, We also have our own custom session class, and our version of newSession() looks practically identical to yours. However, when we construct the WicketTester, we construct our application too, rather than passing in a class name -- something like: wicketTester = new WicketTester(new ZeuzGroupApplication()); ...and we're not seeing any ClassCastExceptions -- the session being constructed is definitely our custom class. From the look of the JavaDoc/code for WIcketTester, the constructor that takes in a Class is expecting that to be the class of the application's home page, *not* the application itself; it constructs a WebApplication to wrap the home page in and uses that. Is it possible, therefore, that you're mistakenly calling the wrong constructor? Alternatively, if ZeuzGroupApplication really is a page class (and not an application), I would say that your best bet would be to construct the WicketTester with an application instance, as in my example above, and then use the tester's startPage(Class) method to test your page. David Shepherdson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Floating Column
I've found solution for the problem of freezing columns. Here is the link to the solution if anyone is interested: http://home.tampabay.rr.com/bmerkey/examples/locked-column-csv.html -- View this message in context: http://www.nabble.com/Floating-Column-tp13969119p14601066.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BookmarkablePageLink giving a different URL
Hi Everyone I am trying to generate a url using the BookmarkablePageLink. Below is the code snippet i use PageParameters params = new PageParameters(); params.add("note", "123456"); item.add(new BookmarkablePageLink("editLink", Editor.class, new PageParameters("note="+snId))); I would like to get a url similar to"/editor?note=123456" But when i execute this code i get "/editor/note/123456" Can anyone tell me how i can get the format that i would like. Thanks Haritha Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
DropDwonChoice always on the top
Hi, I've noticed that no matter what z-index I set for dropdownchoice component it stays on the top. I needed it hidden under ModalWindow and under list displayed by AutoCompleteTextField. Did someone have similar problem? Regards, Dariusz -- View this message in context: http://www.nabble.com/DropDwonChoice-always-on-the-top-tp14600922p14600922.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Nested list structures and RecursivePanel
I am trying to create a nested unordered list structure similar to the one demonstrated by the nested example from org.apache.wicket.examples. However, there are some key differences that have me stumped. Here is an example of the structure I am trying to create: 1.1 1.2 1.2.1 1.2.2 1.2.2.1 1.2.3 1.3 The code I have attached comes close to replicating this structure but has one key difference that is throwing off the css/javascript combination required to style this block for IE. In the code attached, each tag is wrapped in a tag. From what I can tell, this element is required by the org.apache.wicket.markup.html.list.ListView class I am using to recursively build the nested list. I have tried using a ListView (attached), a RepeatingView, plus several html template structures but I haven't come upon a solution that eliminates the elements. I could try to tweak the style sheet or the script but I'm the kind of person who is more comfortable working in Java. Plus, I know wicket can do it and it burns me that I can't figure it out. Anyone have any ideas? Thanks, Jay NavigationPanel.java: public class NavigationPanel extends Panel { private static final long serialVersionUID = 1013065866921645502L; /** * Constructor * @param id - Wicket ID * @param menus - List of NavMenuItems * @param parentID - HTML ID of parent (or null if root menu) */ public NavigationPanel(String id, List menus, String parentID) { super(id); AttributeModifier idModifier = null; if (parentID == null) { idModifier = new AttributeModifier("id",new Model("nav")); add(HeaderContributor.forCss(NavigationPanel.class, " NavigationPanel.css")); add(HeaderContributor.forJavaScript(NavigationPanel.class, " NavigationPanel.js")); } else idModifier = new AttributeModifier("id",new Model(parentID)); add(new MenuPanel("menu", menus).add(idModifier)); } private class MenuPanel extends Panel { private static final long serialVersionUID = -59572567635752L; MenuPanel(String id, List menus) { super(id); add(new Rows("rows", menus)); setVersioned(false); } /** * The list class. */ private class Rows extends ListView { private static final long serialVersionUID = -5175513182419457939L; /** * Constructor * @param name - name of the component * @param list - a list where each element is either a string or another list */ public Rows(String name, List list) { super(name, list); } /** * @see org.apache.wicket.markup.html.list.ListView#populateItem (org.apache.wicket.markup.html.list.ListItem) */ protected void populateItem(ListItem listItem) { NavMenuItem navMenuItem = (NavMenuItem)listItem.getModelObject(); WebMarkupContainer row = new WebMarkupContainer("menuItem"); String linkText = navMenuItem.getMenuText(); NavigationPanel nested = new NavigationPanel ( "subMenu", navMenuItem.getSubMenus(), navMenuItem.getMenuText() ); if (navMenuItem.getSubMenus() == null) nested.setVisible(false); else linkText = linkText + " »"; Label link = new Label("link", linkText); row.add(nested); row.add(link); listItem.add(row); } } } } NavigationPanel.html: Navigation menu goes here NavigationPanel$MenuPanel.html: Link Text
Re: Wicket Session and threading
Eelco Hillenius wrote: Am I right in concluding that I must make my wicket session thread-safe? That is, if I want to store an "int" value in the session, I should use a volatile or AtomicInteger? Yes. We try our best to make pages/ components as thread safe as possible, but making the session thread safe would impose a too large performance penalty. Is there anywhere a small piece on how to deal with threading within Wicket (i.e., what is/is not synchronized in a request/response roundtrip?). I did some quick searching in the mailing list archives and google, but could not find anything related to version 1.3. Pages are synced on pagemaps, which basically relates to browser windows. RequestCycles are separate instances which are not reused, so no sync needed there. Sessions are not synced so you need to sync manually. Though in practice this wouldn't give much trouble to start with. Applications are shared an not synced. Eelco Thanks for the answer. :-) Before really thinking about it I kind of implicitly assumed that session access was synced. It hasn't really gone wrong yet either, but that's probably because of the use of ThreadLocal which acts as a memory barrier (for session/application) and the fact that it's very hard to get two threads to interleave within one session unless you start having a fit on the mouse (or use lots of autoupdating ajaxy stuff). It could be (very) useful to have this info in the Wicket in Action book though. For example in listing 2.1 there is a Session object with a get/setUser, but it is completely unsynchronized; similarly, there is no synchronization at all on the Cheesr session. Again the visibility seems to be ensured by the fact that the session is set in a thread local, but the code somehow seems to suggest (to me anyway) that no synchronization is necessary... There are some comments on multithreadedness and threads (2.3; but in the context of detaching, not thread-safety, and 4.1.1 in the context of the Application object). However it also says (in 4.1.1) that all is safe if the Application only has read-only properties, however, in the CheesrApplication the list of cheeses is not final. This must mean that Wicket does ensure visibility (or else it's a bug ;-)), but that is not trivial and should probably be mentioned. Regards, Sebastiaan smime.p7s Description: S/MIME Cryptographic Signature
Re: Wicket Session and threading
> Am I right in concluding that I must make my wicket session thread-safe? > > That is, if I want to store an "int" value in the session, I should use > a volatile or AtomicInteger? Yes. We try our best to make pages/ components as thread safe as possible, but making the session thread safe would impose a too large performance penalty. > Is there anywhere a small piece on how to deal with threading within > Wicket (i.e., what is/is not synchronized in a request/response > roundtrip?). I did some quick searching in the mailing list archives and > google, but could not find anything related to version 1.3. Pages are synced on pagemaps, which basically relates to browser windows. RequestCycles are separate instances which are not reused, so no sync needed there. Sessions are not synced so you need to sync manually. Though in practice this wouldn't give much trouble to start with. Applications are shared an not synced. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DatePicker NaN
i reopened the issue and will take a look at it tonight. thanks for reporting it. Gerolf On Jan 3, 2008 10:58 AM, Federico Fanton <[EMAIL PROTECTED]> wrote: > On Wed, 19 Sep 2007 18:19:15 +0200 > "Gerolf Seitz" <[EMAIL PROTECTED]> wrote: > > > ivana filed an issue today (WICKET-989) and i already attached a patch > to > > it. > > so either you persuade any of the committers to apply the patch and > commit > > it, or you do an svn checkout and apply the patch to your local copy of > > wicket-datetime. > > > > Gerolf > > > > On 9/19/07, Philip Köster <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > ivana wrote: > > > > > > > > Hi > > > > I have a problem with the DatePicker. It works fine if the input is > a > > > > valid date or if the input is very wrong, for example: ''xxx". > > > > But when the input consists of numbers and but is not a valid date, > the > > > > calendar is rendered with NaN in every field. > > > > I'm sorry, could it be that somehow this patch wasn't included in 1.3.0? I > upgraded today and I'm still having the same problem.. If I write "123" in > the text box and I press the calendar icon, the datepicker is full of NaNs. > I checked wicket-date.js and it looks like it doesn't check for NaNs.. > Thanks for your time! > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Floating Column
Sorry, I've been dragged to another task and my floating column got low priority. I'm not sure how would I style the table cell if I have dataview and my table has headers. E.g. : header1 header2 ... headern column1 column2 ... columnn and I want column1 to stay on the screen all the time. Even if user scrolls to the right and normally the column wouldn't be seen. Thx, Dariusz I've done something similar. The entire component was in a table with two cells. The fixed column was in a first TD, while the rest was contained in another TD element. The point is, that it has nothing to do with wicket, it is about how you choose your markup and style it using CSS. -- View this message in context: http://www.nabble.com/Floating-Column-tp13969119p14598509.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DatePicker NaN
One way I work around this problem is to put the following on the textfield for the date picker: onfocus="this.blur();" Doing that means the user can't simply type in the date, but you don't have the NaN problem either. On Jan 3, 2008 3:58 AM, Federico Fanton <[EMAIL PROTECTED]> wrote: > On Wed, 19 Sep 2007 18:19:15 +0200 > "Gerolf Seitz" <[EMAIL PROTECTED]> wrote: > > > ivana filed an issue today (WICKET-989) and i already attached a patch > to > > it. > > so either you persuade any of the committers to apply the patch and > commit > > it, or you do an svn checkout and apply the patch to your local copy of > > wicket-datetime. > > > > Gerolf > > > > On 9/19/07, Philip Köster <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > ivana wrote: > > > > > > > > Hi > > > > I have a problem with the DatePicker. It works fine if the input is > a > > > > valid date or if the input is very wrong, for example: ''xxx". > > > > But when the input consists of numbers and but is not a valid date, > the > > > > calendar is rendered with NaN in every field. > > > > I'm sorry, could it be that somehow this patch wasn't included in 1.3.0? I > upgraded today and I'm still having the same problem.. If I write "123" in > the text box and I press the calendar icon, the datepicker is full of NaNs. > I checked wicket-date.js and it looks like it doesn't check for NaNs.. > Thanks for your time! > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Nick Heudecker Professional Wicket Training & Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com
Re: Trouble with HybridUrlCodingStrategy and PageParameters
Hi, this is unfortunately not possible at the moment. The reason is that the pageparameters are set to page as page metadata, but the metadata key is private (HybridUrlCodingStaretegy#PAGE_PARAMETERS_META_DATA_KEY). So while I could make the key public, but you'd have to use snapshot releases until 1.3.1 is out. -Matej On Jan 3, 2008 3:09 PM, Daniel Fernández Garrido <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > I have the following scenario: > > * I have a page PageA with lots of Ajax-driven state, with a link to > PageB > > * PageB needs a parameter (an object id, to be specific), which it > can receive with a PageParameters constructor argument. > > * PageB needs a reference to the PageA object that the user came > from, so that it can link back to a PageA with the very same > ajax-modified state. > > * Both PageA and PageB must have bookmarkable URLs. > > > For that, I am using: > > * HybridUrlCodingStrategy for both PageA and PageB. > > * Two constructors in PageB, one wich only receives PageParameters > (so that the page is considered bookmarkable) and another one which > receives PageParameters and a WebPage (which will be the PageA object). > > * Anonymously-defined Link subtypes for links in both directions. > > > My problem is that, although everything works fine, when I get to PageB, > I have a bookmarkable URL like: "/my/path/my/page/.3", which includes a > version number, but not the contents of the PageParameters (so, it's not > truly bookmarkable). > > I need to have "/my/path/my/page/param1/value1/.3"... how can I get this? > > > Thank you very much in advance. And congratulations for 1.3! ;-) > > Regards, > Daniel. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trouble with HybridUrlCodingStrategy and PageParameters
Hello everyone, I have the following scenario: * I have a page PageA with lots of Ajax-driven state, with a link to PageB * PageB needs a parameter (an object id, to be specific), which it can receive with a PageParameters constructor argument. * PageB needs a reference to the PageA object that the user came from, so that it can link back to a PageA with the very same ajax-modified state. * Both PageA and PageB must have bookmarkable URLs. For that, I am using: * HybridUrlCodingStrategy for both PageA and PageB. * Two constructors in PageB, one wich only receives PageParameters (so that the page is considered bookmarkable) and another one which receives PageParameters and a WebPage (which will be the PageA object). * Anonymously-defined Link subtypes for links in both directions. My problem is that, although everything works fine, when I get to PageB, I have a bookmarkable URL like: "/my/path/my/page/.3", which includes a version number, but not the contents of the PageParameters (so, it's not truly bookmarkable). I need to have "/my/path/my/page/param1/value1/.3"... how can I get this? Thank you very much in advance. And congratulations for 1.3! ;-) Regards, Daniel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Websphere Portal 6 + Wicket Portlet Experience
Hello everyone, i'm currently research the best way to use framework that can do "clean as possible" development for normal web apps and portlets. What i understand the way that wicket do that, its using Apache Portals Bridges, but that require that the portal server implements the current interfaces bellow: a) Apache Portals Bridges ServletContextProvider interface b) Apache Portals Bridges PortletResourceURLFactory interface My problem here its the fact i use webfear, ops.. websphere application/portal 6.0. I want to know all kind of feedback related with the experience using wicket in this specific portal/version. Thanks very much for your attention. Best Regards, Fernando. -- View this message in context: http://www.nabble.com/Websphere-Portal-6-%2B-Wicket-Portlet-Experience-tp14597270p14597270.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anchoring back to a submitted form
You can try adding an abstractbehavior to the form overriding the onComponentTag where you add the anchor to the action attribute, such as public void onComponentTag(final Component component, final ComponentTag tag) { String action = tag.getString("action"); tag.put("action", action + "#formAnchor"); } however, this will not work in safari. Wicket does redirect after post and in safari the redirect doesn't preserve the anchor. -Matej On Jan 3, 2008 9:26 AM, TheMayor <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a couple of forms on a page. I would like a user to be able to submit > a form at the bottom of the page and be anchored back to the form. Is there > a non-javascript way to do this in Wicket? Kinda like using href="#[id]" in > links. > > Thanks, > > -hc > -- > View this message in context: > http://www.nabble.com/Anchoring-back-to-a-submitted-form-tp14593381p14593381.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication
I am aware that the wiki needs a rewrite... And also the examples.. Please notice how you can switch out your dbprovider with a mocked one, thats really cool.. Korbinian Bachl wrote: Hi Dan, I know the wiki - but this somehow confuses me... in the Wicket-Examples all Springapps are extending SpringWebApplication - and that file has more than just a line in the init()... - No If I look at the SpringWebApplication I doubt that they would provide all those lines in it if a simple line in the init() would be enough? I mean if I just do: e.g: addComponentInstantiationListener(new SpringComponentInjector(this)); like you said why are they doing all this then in the SpringWebApplication e.g: public abstract class SpringWebApplication extends WebApplication implements ApplicationContextAware { private ApplicationContext applicationContext; /** * Singleton instance of spring application context locator */ private final static ISpringContextLocator contextLocator = new ISpringContextLocator() { public ApplicationContext getSpringContext() { Application app = Application.get(); return ((SpringWebApplication)app).internalGetApplicationContext(); } }; . --- as well as more things - arent this needed? Best, Korbinian Dan Kaplan schrieb: The wiki has a section on spring integration. You put a line in your app's init() method to accomplish this. It should be easy to find. -Original Message- From: Korbinian Bachl [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 1:44 PM To: users@wicket.apache.org Subject: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication Hi, usually my WebApp is based on Wicket-Auth-Roles, so I do: MyWebApp extends AuthenticatedWebApplication { Lately I played around with spring 2.5 a bit and so used MyWebApp extends SpringWebApplication { but how can I now integrate a SpringWebApplication to use Wicket-Auth-Roles? The only way I currently see is to copy'n paste the content of the SpringWebApplication into MyWebApp and let it extend AuthenticatedWebApplication - but copy'n paste is not my preferable way however... Any ideas? Best, Korbinian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication
no its not. just add the componentinstantionlistener... Look here for sample code: http://svn2.assembla.com/svn/wicketBaisc/trunk/wicketBasic/ Just check one of the labs... regards Nino Korbinian Bachl wrote: Hi Dan, I know the wiki - but this somehow confuses me... in the Wicket-Examples all Springapps are extending SpringWebApplication - and that file has more than just a line in the init()... - No If I look at the SpringWebApplication I doubt that they would provide all those lines in it if a simple line in the init() would be enough? I mean if I just do: e.g: addComponentInstantiationListener(new SpringComponentInjector(this)); like you said why are they doing all this then in the SpringWebApplication e.g: public abstract class SpringWebApplication extends WebApplication implements ApplicationContextAware { private ApplicationContext applicationContext; /** * Singleton instance of spring application context locator */ private final static ISpringContextLocator contextLocator = new ISpringContextLocator() { public ApplicationContext getSpringContext() { Application app = Application.get(); return ((SpringWebApplication)app).internalGetApplicationContext(); } }; . --- as well as more things - arent this needed? Best, Korbinian Dan Kaplan schrieb: The wiki has a section on spring integration. You put a line in your app's init() method to accomplish this. It should be easy to find. -Original Message- From: Korbinian Bachl [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 1:44 PM To: users@wicket.apache.org Subject: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication Hi, usually my WebApp is based on Wicket-Auth-Roles, so I do: MyWebApp extends AuthenticatedWebApplication { Lately I played around with spring 2.5 a bit and so used MyWebApp extends SpringWebApplication { but how can I now integrate a SpringWebApplication to use Wicket-Auth-Roles? The only way I currently see is to copy'n paste the content of the SpringWebApplication into MyWebApp and let it extend AuthenticatedWebApplication - but copy'n paste is not my preferable way however... Any ideas? Best, Korbinian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket Session and threading
Hi, Am I right in concluding that I must make my wicket session thread-safe? That is, if I want to store an "int" value in the session, I should use a volatile or AtomicInteger? Using a debugger I just tested and found that I could get the same instance of my MySession class in two different threads (two different Page classes that do MySession.get()), thus supporting my conclusion that I need to do the thread safety myself and it is not taken care of by Wicket. Is there anywhere a small piece on how to deal with threading within Wicket (i.e., what is/is not synchronized in a request/response roundtrip?). I did some quick searching in the mailing list archives and google, but could not find anything related to version 1.3. Regards, Sebastiaan smime.p7s Description: S/MIME Cryptographic Signature
Re: Old Wicket QuickStart
Yes I think so, dates anyone? Currently im free, although in the start of next week our car has to go to the mechanic.. And what about topics? Should we have one about testing with wicket, and while some where exploring testing with wicket others could fix bugs with the wicket tester? brtw:I have a nice blog tutorial for wicket, using JPA-SPRING and hibernate for new comers... regards Nino Flemming Boller wrote: dammit :-) Cheers /FLemming ps: Should we arrange on a wicket meeting in copenhagen, now that 1.3.0 is released -> Nino, Frank ? On Jan 2, 2008 10:11 PM, Flemming Boller <[EMAIL PROTECTED]> wrote: Hi First of all, congrats with the new release, great work! I am behind a corporate firewall that "infect" downloading of jarfiles, so I like the "old" wicket quickstart :-) I have updated the old "Wicket QuickStart" zip file for use with 1.3.0. I have only set it up with Eclipse and with JDK 1.4, so the jar file for jmx is excluded in the classpath together with wicke-velocity. You can download it from my homepage, if you need it http://boller.dk/wicket-quickstart-1.3.0.zip Cheers and -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DatePicker NaN
On Wed, 19 Sep 2007 18:19:15 +0200 "Gerolf Seitz" <[EMAIL PROTECTED]> wrote: > ivana filed an issue today (WICKET-989) and i already attached a patch to > it. > so either you persuade any of the committers to apply the patch and commit > it, or you do an svn checkout and apply the patch to your local copy of > wicket-datetime. > > Gerolf > > On 9/19/07, Philip Köster <[EMAIL PROTECTED]> wrote: > > > > > > > > ivana wrote: > > > > > > Hi > > > I have a problem with the DatePicker. It works fine if the input is a > > > valid date or if the input is very wrong, for example: ''xxx". > > > But when the input consists of numbers and but is not a valid date, the > > > calendar is rendered with NaN in every field. I'm sorry, could it be that somehow this patch wasn't included in 1.3.0? I upgraded today and I'm still having the same problem.. If I write "123" in the text box and I press the calendar icon, the datepicker is full of NaNs. I checked wicket-date.js and it looks like it doesn't check for NaNs.. Thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ways of making components in a page optional?
Yes, I use this approach in conjunction to an ajax action to refresh/create UI components in response to user interaction. Paolo On Jan 3, 2008 7:43 AM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Wed, 02 Jan 2008, Paolo Di Tommaso wrote: > > An easy trick to avoid this is to use a Panel/Fragment instantiating > just a > > WebMarkupContainer when you don't want to display/create the full > component. > > Ah, you mean something like > > add(new WebmarkupContainer("myComplexComponent")); > > at construction and then later on > > replace(new MyComplexComponent("myComplexComponent")) > > ? > > That's an interesting idea, thanks! > > Best wishes, > Timo > > -- > Timo Rantalaiho > Reaktor Innovations Oyhttp://www.ri.fi/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication
Hi Dan, I know the wiki - but this somehow confuses me... in the Wicket-Examples all Springapps are extending SpringWebApplication - and that file has more than just a line in the init()... - No If I look at the SpringWebApplication I doubt that they would provide all those lines in it if a simple line in the init() would be enough? I mean if I just do: e.g: addComponentInstantiationListener(new SpringComponentInjector(this)); like you said why are they doing all this then in the SpringWebApplication e.g: public abstract class SpringWebApplication extends WebApplication implements ApplicationContextAware { private ApplicationContext applicationContext; /** * Singleton instance of spring application context locator */ private final static ISpringContextLocator contextLocator = new ISpringContextLocator() { public ApplicationContext getSpringContext() { Application app = Application.get(); return ((SpringWebApplication)app).internalGetApplicationContext(); } }; . --- as well as more things - arent this needed? Best, Korbinian Dan Kaplan schrieb: The wiki has a section on spring integration. You put a line in your app's init() method to accomplish this. It should be easy to find. -Original Message- From: Korbinian Bachl [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 1:44 PM To: users@wicket.apache.org Subject: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication Hi, usually my WebApp is based on Wicket-Auth-Roles, so I do: MyWebApp extends AuthenticatedWebApplication { Lately I played around with spring 2.5 a bit and so used MyWebApp extends SpringWebApplication { but how can I now integrate a SpringWebApplication to use Wicket-Auth-Roles? The only way I currently see is to copy'n paste the content of the SpringWebApplication into MyWebApp and let it extend AuthenticatedWebApplication - but copy'n paste is not my preferable way however... Any ideas? Best, Korbinian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wickettester and session?
Here it is, https://issues.apache.org/jira/browse/WICKET-1256 Thanks for reminding me. Eelco Hillenius wrote: On Jan 2, 2008 2:28 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Bump on this one.. If no-one is reacting, you can best open a JIRA issue for it. It helps to have a test case that proves the issue attached to it. Cheers, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anchoring back to a submitted form
Hi, I have a couple of forms on a page. I would like a user to be able to submit a form at the bottom of the page and be anchored back to the form. Is there a non-javascript way to do this in Wicket? Kinda like using href="#[id]" in links. Thanks, -hc -- View this message in context: http://www.nabble.com/Anchoring-back-to-a-submitted-form-tp14593381p14593381.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]