[Wicket-user] sorted localized DropDownChoice
all, what's the best way to sort DropDownChoice of strings in alphabetical order according to the current locale? it looks like IChoiceRenderer can only localize 1 value at a time and cannot sort. also looks like i cannot attach a comparator to IChoiceRenderer or DropDownChoice. the only way i see is to localize and sort strings in IModel. are there better alternatives? is there a way for a model to get notified when locale changes? Thanks, Vadim _ Exercise your brain! Try Flexicon. http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglineapril07 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to get a form's field when i click on an ajax object
if you use wicket validators and the component is invalid the onerror() will be called instead of onupdate() the value is available via getformcomponent().getmodelobject() inside onupdate() -igor On 4/27/07, wicket0123 <[EMAIL PROTECTED]> wrote: I want to use ajax to check if a field value is valid w/o submitting the entire form. I add AjaxFormComponentUpdatingBehavior to my ajax object (link/button/etc). But, I don't know how to retrieve the edit field's value inside the onUpdate method. See the code I have: fc = new RequiredTextField("userName"); fc.setLabel(new Model("User Name")); add(fc); fc = new Button("checkId"); fc.add(new AjaxFormComponentUpdatingBehavior("onClick") { protected void onUpdate(AjaxRequestTarget target) { System.out.println("This gets called"); // TODO: how to get the userName field's value? } }); add(fc); -- View this message in context: http://www.nabble.com/how-to-get-a-form%27s-field-when-i-click-on-an-ajax-object-tf3660473.html#a10228341 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to get a form's field when i click on an ajax object
I want to use ajax to check if a field value is valid w/o submitting the entire form. I add AjaxFormComponentUpdatingBehavior to my ajax object (link/button/etc). But, I don't know how to retrieve the edit field's value inside the onUpdate method. See the code I have: fc = new RequiredTextField("userName"); fc.setLabel(new Model("User Name")); add(fc); fc = new Button("checkId"); fc.add(new AjaxFormComponentUpdatingBehavior("onClick") { protected void onUpdate(AjaxRequestTarget target) { System.out.println("This gets called"); // TODO: how to get the userName field's value? } }); add(fc); -- View this message in context: http://www.nabble.com/how-to-get-a-form%27s-field-when-i-click-on-an-ajax-object-tf3660473.html#a10228341 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] question on localization
in the current implementation sure, its fine. but what if later down the road you do override it in some subclass and depend on something? its just not a good practice because it is error prone. -igor On 4/27/07, Vadim Tesis <[EMAIL PROTECTED]> wrote: Thank you all for your help. it worked. Igor, do you mean that getPageTitle() virtual method of subclass will be called from constructor of the base class? but in the implementation below it doesn't reference any members of subclass, it simply creates new ResourceModel object. am i missing something? and in the fix you suggested pagetitlemodel.getObject() will be called when subclass page will be rendered, that is after subclass is constructed. is this correct? Vadim >From: "Igor Vaynberg" <[EMAIL PROTECTED]> >Reply-To: wicket-user@lists.sourceforge.net >To: wicket-user@lists.sourceforge.net >Subject: Re: [Wicket-user] question on localization >Date: Tue, 24 Apr 2007 11:00:05 -0700 > >this is bad. getpagetitle() might get called from a partially constructed >object > >it should be > >public BasePage() { >add(new Label("pageHeaderTitle", new pagetitlemodel())); >} > >private class pagetitlemodel extends abstractreadonlymodel { >object getobject() { return getpagetitle().getobject(); } >void detach() { getpagetitle().detach(); } > } > >-igor > >On 4/24/07, John Krasnay <[EMAIL PROTECTED]> wrote: >> >>You might want to make it so you can dynamically generate a page title >>where you need to, instead of always requiring a static page title. The >>trick is to return an IModel from the getPageTitle method in your base >>page. Here's how I've done it: >> >>Foo >> >>public class BasePage extends WebPage { >> >> public BasePage() { >> add(new Label("pageHeaderTitle", getPageTitle())); >> } >> >> public IModel getPageTitle() { >> return new ResourceModel("page.title"); >> } >>} >> >>jk >> >>On Tue, Apr 24, 2007 at 10:33:54AM +0900, David Leangen wrote: >> > > i tried to use Label() with PropertyModel("pageTitle") but didn't >>work >>for >> > > me. it rendered "Home" string all the time, no matter what the >>locale >>was. >> > > any ideas how to do this? >> > >> > You can do something like this: >> > >> > new Label( componentId, new StringResourceModel( "pageTitle", this, new >> > Model() ) ); >> > >> > In your properties file: >> > pageTitle=Home >> > >> > In your html: >> > Dummy text >> > >> > >> > Look for StringResourceModel in ProWicket or in the API docs. >> > >> > >> > HTH >> > Dave >> > >> > >> > >> > >> > >>- >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> >>- >>This SF.net email is sponsored by DB2 Express >>Download DB2 Express C - the FREE version of DB2 express and take >>control of your XML. No limits. Just data. Click to get it now. >>http://sourceforge.net/powerbar/db2/ >>___ >>Wicket-user mailing list >>Wicket-user@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/wicket-user >> >- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >___ >Wicket-user mailing list >Wicket-user@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/wicket-user _ Exercise your brain! Try Flexicon. http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglineapril07 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-
Re: [Wicket-user] How to include a form field in the ajax request without form submit
like i said, use formcomponentupdatingbehavior, it only sends over data for that one field. if you want to do stuff liek validate on the fly there is an example in wicket-examples under ajax/form what you do is add that formcomponentupdatingbehavior to onchange event of the textbox and throttle it down to only fire once every 5 seconds or whatever. -igor On 4/27/07, wicket0123 <[EMAIL PROTECTED]> wrote: Wasn't the initial question to get a form field's value w/o submitting the entire form? The goal was to get 1 field's value w/o submitting the entire form. ckuehne wrote: > > 2007/1/31, Marc-Andre Houle <[EMAIL PROTECTED]>: >> >> Why not simply use AjaxSubmitLink or AjaxSubmitButton ? It will submit >> all >> the form, evidently, but you can do which ever action you want in the >> onClick handler? > > > > That's exactly the conclusion I came up with after thinking a bit about > the > problem. Thank's again to all for the help! > > Conny > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/-Wicket-user--How-to-include-a-form-field-in-the-ajax-request-without-form-submit-tf3145142.html#a10228176 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] question on localization
Thank you all for your help. it worked. Igor, do you mean that getPageTitle() virtual method of subclass will be called from constructor of the base class? but in the implementation below it doesn't reference any members of subclass, it simply creates new ResourceModel object. am i missing something? and in the fix you suggested pagetitlemodel.getObject() will be called when subclass page will be rendered, that is after subclass is constructed. is this correct? Vadim >From: "Igor Vaynberg" <[EMAIL PROTECTED]> >Reply-To: wicket-user@lists.sourceforge.net >To: wicket-user@lists.sourceforge.net >Subject: Re: [Wicket-user] question on localization >Date: Tue, 24 Apr 2007 11:00:05 -0700 > >this is bad. getpagetitle() might get called from a partially constructed >object > >it should be > >public BasePage() { >add(new Label("pageHeaderTitle", new pagetitlemodel())); >} > >private class pagetitlemodel extends abstractreadonlymodel { >object getobject() { return getpagetitle().getobject(); } >void detach() { getpagetitle().detach(); } > } > >-igor > >On 4/24/07, John Krasnay <[EMAIL PROTECTED]> wrote: >> >>You might want to make it so you can dynamically generate a page title >>where you need to, instead of always requiring a static page title. The >>trick is to return an IModel from the getPageTitle method in your base >>page. Here's how I've done it: >> >>Foo >> >>public class BasePage extends WebPage { >> >> public BasePage() { >> add(new Label("pageHeaderTitle", getPageTitle())); >> } >> >> public IModel getPageTitle() { >> return new ResourceModel("page.title"); >> } >>} >> >>jk >> >>On Tue, Apr 24, 2007 at 10:33:54AM +0900, David Leangen wrote: >> > > i tried to use Label() with PropertyModel("pageTitle") but didn't >>work >>for >> > > me. it rendered "Home" string all the time, no matter what the >>locale >>was. >> > > any ideas how to do this? >> > >> > You can do something like this: >> > >> > new Label( componentId, new StringResourceModel( "pageTitle", this, new >> > Model() ) ); >> > >> > In your properties file: >> > pageTitle=Home >> > >> > In your html: >> > Dummy text >> > >> > >> > Look for StringResourceModel in ProWicket or in the API docs. >> > >> > >> > HTH >> > Dave >> > >> > >> > >> > >> > >>- >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> >>- >>This SF.net email is sponsored by DB2 Express >>Download DB2 Express C - the FREE version of DB2 express and take >>control of your XML. No limits. Just data. Click to get it now. >>http://sourceforge.net/powerbar/db2/ >>___ >>Wicket-user mailing list >>Wicket-user@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/wicket-user >> >- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >___ >Wicket-user mailing list >Wicket-user@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/wicket-user _ Exercise your brain! Try Flexicon. http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglineapril07 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to include a form field in the ajax request without form submit
Wasn't the initial question to get a form field's value w/o submitting the entire form? The goal was to get 1 field's value w/o submitting the entire form. ckuehne wrote: > > 2007/1/31, Marc-Andre Houle <[EMAIL PROTECTED]>: >> >> Why not simply use AjaxSubmitLink or AjaxSubmitButton ? It will submit >> all >> the form, evidently, but you can do which ever action you want in the >> onClick handler? > > > > That's exactly the conclusion I came up with after thinking a bit about > the > problem. Thank's again to all for the help! > > Conny > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/-Wicket-user--How-to-include-a-form-field-in-the-ajax-request-without-form-submit-tf3145142.html#a10228176 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] setting an attribute on the HttpSession.
On Thursday 26 April 2007 1:02 pm, Eelco Hillenius escreveu: > > I need to work with a servlet from another group and they need to see the > > user as an attribute on the HttpSession.It seems as though > > setAttribute on my wicket.Session doesn't actually set it on the > > HttpSession. Is that correct? > > Typicaly it does, but it depends on your configuration. Session > delegates this to the ISessionStore your application uses. For Wicket > 1.3, the default store is SecondLevelCacheSessionStore, which extends > HttpSessionStore (which was the default for 1.2). Both these session > stores pass and the attributes from/ to the underlying HttpSession. So I found that it indeed stores my user as an attribute on the http session, but it stores it with the following prefix: "wicket:/app/login:", so the servlet that's looking up "user" doesn't find it. So I guess that going directly to the HttpSession to store the user is the only thing I can do. Thanks, Tom - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] newbie: how do I put wicket-injected objects into an html comment?
yeah, with setEscapeModelStrings(false). igor.vaynberg wrote: > > we do not support this, the only way i can think of doing something like > this is: > > add(new label("foo", "")); > > -igor > > > On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: >> >> What I'd like to do is something like: >> >> >> >> Does this make sense? How can I do that? >> >> Thanks, >> Lowell >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/newbie%3A-how-do-I-put-wicket-injected-objects-into-an-html-comment--tf3659208.html#a10227692 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] newbie: how do I put wicket-injected objects into an html comment?
its not a component -igor On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: Would that be usable for what I want to do (in addition to what you proposed)? On 4/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > what about it? > > -igor > > > > On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > What about the Comment class? > > > > "Class representing a comment in an HTML document." > > > > > http://wicketframework.org/wicket-1.2/apidocs/wicket/protocol/http/documentvalidation/Comment.html > > > > > > On 4/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > we do not support this, the only way i can think of doing something like > > > this is: > > > > > > add(new label("foo", "")); > > > > > > -igor > > > > > > > > > > > > On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED] > wrote: > > > > > > > > What I'd like to do is something like: > > > > > > > > > > > > > > > > Does this make sense? How can I do that? > > > > > > > > Thanks, > > > > Lowell > > > > > > > > > > > > - > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I cannot add Ajax behavior to an AutoCompleteTextField
Thanks Igor! Inspecting your patch I realized the bug is fixed for Wicket 1.2.6, so upgrading solved my problem :-) (but indeed, your solution was right). Thanks again. --Andrés Igor Vaynberg wrote: > test this patch, and see if it works. looks like autocomplete takes over > onblur when it attaches to the textfield, this should help. it is untested > because im a bit short on time, so you will have to do the confirmation. > > -igor > > > Index: D:/source/wicket/trunk/jdk-1.4 > /wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/h >tml/autocomplete/wicket- autocomplete.js > === > --- D:/source/wicket/trunk/jdk-1.4 > /wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/h >tml/autocomplete/wicket- autocomplete.js(revision 531257) > +++ D:/source/wicket/trunk/jdk-1.4 > /wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/h >tml/autocomplete/wicket- autocomplete.js(working copy) > @@ -61,6 +61,7 @@ >obj.onblur=function(event){ > if(mouseactive==1)return false; >hideAutoComplete(); > + objonblur(); > } > > obj.onkeydown=function(event){ > > On 4/27/07, Andrés Ferrari <[EMAIL PROTECTED]> wrote: > > (Sorry the following mail is duplicated... I sent the original to the > > wrong > > thread) > > > > --- > > > > Hi everyone! > > > > I'm having trouble with an AutoCompleteTextField. I want to add an ajax > > behavior to it (specifically, for "onblur") like can I do with other > > wicket > > components, but somehow it doesn't work. > > > > I can add an AjaxFormComponentUpdatingBehavior to a TextField and it > > works. > > > > I cannot add it to an AutoCompleteTextField. The Ajax debug console shows > > no > > errors. It seems that the autocomplete has its own hardcoded behavior > > which > > cannot be overridden, if I understood the code correctly. > > > > Is there any way of adding other behaviors, specifically "onblur"? > > > > I'm using Wicket 1.2.4. > > > > Thanks! > > --Andrés > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] using wicket like sitemesh
* Thomas R. Corbin: > On Friday 27 April 2007 9:46 am, Johan Compagner escreveu: > > > you could place one label on the position where the static > > html should go in And that label loads the static from > > somewhere depending on an external param. > > But if this whole hierarchy of html pages refers to one another, > I'd have to somehow intercept that and send it to my one > HtmlWrapper page, right? with the page name or part of the > hierarchy as the external param? > > And that would take a filter or redirect rule or something to do > that? You can have a look at URIRequestTargetUrlCodingStrategy Examples at http://wicketstuff.org/wicket13/staticpages/ -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] encoding of AttributeModifier's model
* Ludovic Orban: > > I recently faced an annoying problem with AttributeModifier and encoding of > its model. I have something looking like this in my code: > > String url = "http://www.somewhere.com?param1=a¶m2=b";; > component.add(new AttributeModifier("href", true, new Model(url))); Please specify which Wicket version you are using. If this issue can also be reproduced on the latest and greatest Wicket (trunk, 1.3) would you be kind enough to open a JIRA issue? Thanks in advance, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] newbie: how do I put wicket-injected objects into an html comment?
Would that be usable for what I want to do (in addition to what you proposed)? On 4/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > what about it? > > -igor > > > > On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > What about the Comment class? > > > > "Class representing a comment in an HTML document." > > > > > http://wicketframework.org/wicket-1.2/apidocs/wicket/protocol/http/documentvalidation/Comment.html > > > > > > On 4/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > we do not support this, the only way i can think of doing something like > > > this is: > > > > > > add(new label("foo", "")); > > > > > > -igor > > > > > > > > > > > > On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED] > wrote: > > > > > > > > What I'd like to do is something like: > > > > > > > > > > > > > > > > Does this make sense? How can I do that? > > > > > > > > Thanks, > > > > Lowell > > > > > > > > > > > > - > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] newbie: how do I put wicket-injected objects into an html comment?
what about it? -igor On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: What about the Comment class? "Class representing a comment in an HTML document." http://wicketframework.org/wicket-1.2/apidocs/wicket/protocol/http/documentvalidation/Comment.html On 4/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > we do not support this, the only way i can think of doing something like > this is: > > add(new label("foo", "")); > > -igor > > > > On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > What I'd like to do is something like: > > > > > > > > Does this make sense? How can I do that? > > > > Thanks, > > Lowell > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] newbie: how do I put wicket-injected objects into an html comment?
What about the Comment class? "Class representing a comment in an HTML document." http://wicketframework.org/wicket-1.2/apidocs/wicket/protocol/http/documentvalidation/Comment.html On 4/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > we do not support this, the only way i can think of doing something like > this is: > > add(new label("foo", "")); > > -igor > > > > On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > > > What I'd like to do is something like: > > > > > > > > Does this make sense? How can I do that? > > > > Thanks, > > Lowell > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] newbie: how do I put wicket-injected objects into an html comment?
add(new Label("foo", "").setEscape...(false).setRenderBodyOnly(true)); should do this trick, but then inside out. Martijn On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > What I'd like to do is something like: > > > > Does this make sense? How can I do that? > > Thanks, > Lowell > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] newbie: how do I put wicket-injected objects into an html comment?
we do not support this, the only way i can think of doing something like this is: add(new label("foo", "")); -igor On 4/27/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: What I'd like to do is something like: Does this make sense? How can I do that? Thanks, Lowell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] newbie: how do I put wicket-injected objects into an html comment?
What I'd like to do is something like: Does this make sense? How can I do that? Thanks, Lowell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket 1.2.6 critical bug
hm, from the old days of doing struts level stuff it was always an array, even if there is only a single param. -igor On 4/27/07, Gwyn Evans <[EMAIL PROTECTED]> wrote: On Friday, April 27, 2007, 5:16:08 PM, Igor <[EMAIL PROTECTED]> wrote: > afaik servlet spec is not , or has this changed recently? The servlet spec hasn't, but looking back, the Wicket ServletWebRequest.getParameterMap() implementation used to store if there was only a single underlying value... What I doubt that Jan's aware of is that if there had been multiple values for a paramater, it would have stored an array! /Gwyn > -igor > On 4/27/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > we do follow the spec now... so we could change it back for 1.2 but for 1.3 i would keep it. > johan > On 4/27/07, jan_bar < [EMAIL PROTECTED]> wrote: > Hi, > I have posted new bug in 1.2.6: > https://issues.apache.org/jira/browse/WICKET-511. > For me, this is a show stopper (1.2.6 is unusable). > Thanks, for your support, Jan > -- > Jan Bares > http://jan.vegetband.cz - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket 1.2.6 critical bug
On Friday, April 27, 2007, 5:16:08 PM, Igor <[EMAIL PROTECTED]> wrote: > afaik servlet spec is not , or has this > changed recently? The servlet spec hasn't, but looking back, the Wicket ServletWebRequest.getParameterMap() implementation used to store if there was only a single underlying value... What I doubt that Jan's aware of is that if there had been multiple values for a paramater, it would have stored an array! /Gwyn > -igor > On 4/27/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > we do follow the spec now... so we could change it back for 1.2 but for 1.3 i > would keep it. > johan > On 4/27/07, jan_bar < [EMAIL PROTECTED]> wrote: > Hi, > I have posted new bug in 1.2.6: > https://issues.apache.org/jira/browse/WICKET-511. > For me, this is a show stopper (1.2.6 is unusable). > Thanks, for your support, Jan > -- > Jan Bares > http://jan.vegetband.cz - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] using wicket like sitemesh
On Friday 27 April 2007 9:46 am, Johan Compagner escreveu: > you could place one label on the position where the static html should go > in And that label loads the static from somewhere depending on an external > param. But if this whole hierarchy of html pages refers to one another, I'd have to somehow intercept that and send it to my one HtmlWrapper page, right? with the page name or part of the hierarchy as the external param? And that would take a filter or redirect rule or something to do that? > > johan > > On 4/27/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote: > > We've got a nice base wicket page with authorization and menus and > > headers and > > such that we'd like to use to wrap a whole host of static html pages. > > > > Should we do that by writing a servlet filter for that whole url path > > with all > > the html pages? > > > > Thanks, > > Tom > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket 1.2.6 critical bug
Thanks for your support, I now use PageParameters.getString() instead of PageParameters().get(). Spec says . Jan -- Jan Bares http://jan.vegetband.cz "Igor Vaynberg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] afaik servlet spec is not , or has this changed recently? -igor On 4/27/07, Johan Compagner < [EMAIL PROTECTED]> wrote: we do follow the spec now... so we could change it back for 1.2 but for 1.3 i would keep it. johan On 4/27/07, jan_bar < [EMAIL PROTECTED]> wrote: Hi, I have posted new bug in 1.2.6: https://issues.apache.org/jira/browse/WICKET-511. For me, this is a show stopper (1.2.6 is unusable). Thanks, for your support, Jan -- Jan Bares http://jan.vegetband.cz - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ -- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Linking to a specific ajaxtabbedpanel
class TabLink extends Link { private final int tab; private final TabbedPanel panel; public TabLink(TabbedPanel panel, int tab) {...}; public void onClick() { panel.setactivetab(tab); } } -igor On 4/27/07, John Carlson <[EMAIL PROTECTED]> wrote: Hello, I have a page with 4 tabs (ajaxtabbedpanels), on the first tab I want to describe the other tabs and have a link next to the description that goes directly to another tab within the same page. So far the only reliable way I found was to determine the link that wicket generates and then copy paste it into the markup page where I want the link to show up. … http://localhost:8081/quickstart/app?wicket:interface=:4:tabs:tabs:1:link::ILinkListener";>link to tab 2 Would this cause any problems across multiple instances of the page? Is there a way to use wicket links? I toyed with setResponsePage inside onClick for a AjaxFallbacklink… setResponsePage(page.class, new PageParameters("wicket:interface=:4:tabs:tabs:1:link::ILinkListener"); but only got page expired as a result. Thanks in Advance John - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Way to prevent page versioning for a request in 1.3?
We are experiencing a problem in our application because we are doing something out of the ordinary. We have an applet on our page which makes a wicket request on behalf of the page. The request is a form submit which causes a file upload, but it doesn't affect the state of the page. When wicket 1.3 processes the request and calls getResponsePage() it identifies the response as an instance of PageRequestTarget which causes the last version in the cache to increment. The applet doesn't do anything with the response from wicket, so the existing wicket urls on the page all still refer to the old page version. Therefore, when you click anything (e.g. ajax links) we get a page expired because the versioning is out of synch. How would you recommend we approach this problem? Is there someway to tell wicket in the request not to increment the last page version or tell it that we are using a different target type than PageRequestTarget? Thanks, Jamie -- View this message in context: http://www.nabble.com/Way-to-prevent-page-versioning-for-a-request-in-1.3--tf3658645.html#a10222425 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page Map clarification
are they really using the same pagemap? that means they all share a single session? pagemaps are stored in the user's sessions. -igor Thanks I seemed to missed that point altogether. I saw that the page map names were the same and arrived at my incorrect conclusion :(. I'll check up on that and see what happens. Shams. On 4/27/07, Shams Mahmood <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a web site for mobiles that has around 3-4 thousand users. > > Now some particular mobile models get page expired error. > I fopund that increasing page map size didn't help. > I figured that all the users are using the same Page Map. > ( they all have '' as their page map name) > > Is there some limit to how many pages a Page Map can store. > > Can anyone help with what the problem could be. > > Thanx in advance.] > > Shams > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Linking to a specific ajaxtabbedpanel
Hello, I have a page with 4 tabs (ajaxtabbedpanels), on the first tab I want to describe the other tabs and have a link next to the description that goes directly to another tab within the same page. So far the only reliable way I found was to determine the link that wicket generates and then copy paste it into the markup page where I want the link to show up. ... http://localhost:8081/quickstart/app?wicket:interface=:4:tabs:tabs:1:link::ILinkListener";>link to tab 2 Would this cause any problems across multiple instances of the page? Is there a way to use wicket links? I toyed with setResponsePage inside onClick for a AjaxFallbacklink... setResponsePage(page.class, new PageParameters("wicket:interface=:4:tabs:tabs:1:link::ILinkListener"); but only got page expired as a result. Thanks in Advance John - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wanted: Example about Tree Menu Navigation
Crag wrote: > > I want the example, a simple tree menu . > See http://www.nabble.com/Tree-for-navigation-tf3524348.html#a9859828 http://www.nabble.com/Tree-for-navigation-tf3524348.html#a9859828 for a simple solution. Julian -- View this message in context: http://www.nabble.com/Beg%C2%A3%C2%BA-example-about-tree-as-navigation-tf3655286.html#a10222055 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I cannot add Ajax behavior to an AutoCompleteTextField
test this patch, and see if it works. looks like autocomplete takes over onblur when it attaches to the textfield, this should help. it is untested because im a bit short on time, so you will have to do the confirmation. -igor Index: D:/source/wicket/trunk/jdk-1.4 /wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket- autocomplete.js === --- D:/source/wicket/trunk/jdk-1.4 /wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket- autocomplete.js(revision 531257) +++ D:/source/wicket/trunk/jdk-1.4 /wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket- autocomplete.js(working copy) @@ -61,6 +61,7 @@ obj.onblur=function(event){ if(mouseactive==1)return false; hideAutoComplete(); + objonblur(); } obj.onkeydown=function(event){ On 4/27/07, Andrés Ferrari <[EMAIL PROTECTED]> wrote: (Sorry the following mail is duplicated... I sent the original to the wrong thread) --- Hi everyone! I'm having trouble with an AutoCompleteTextField. I want to add an ajax behavior to it (specifically, for "onblur") like can I do with other wicket components, but somehow it doesn't work. I can add an AjaxFormComponentUpdatingBehavior to a TextField and it works. I cannot add it to an AutoCompleteTextField. The Ajax debug console shows no errors. It seems that the autocomplete has its own hardcoded behavior which cannot be overridden, if I understood the code correctly. Is there any way of adding other behaviors, specifically "onblur"? I'm using Wicket 1.2.4. Thanks! --Andrés - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket 1.2.6 critical bug
afaik servlet spec is not , or has this changed recently? -igor On 4/27/07, Johan Compagner <[EMAIL PROTECTED]> wrote: we do follow the spec now... so we could change it back for 1.2 but for 1.3 i would keep it. johan On 4/27/07, jan_bar < [EMAIL PROTECTED]> wrote: > > Hi, > > I have posted new bug in 1.2.6: > https://issues.apache.org/jira/browse/WICKET-511. > For me, this is a show stopper (1.2.6 is unusable). > > Thanks, for your support, Jan > > -- > Jan Bares > http://jan.vegetband.cz > > > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page Map clarification
are they really using the same pagemap? that means they all share a single session? pagemaps are stored in the user's sessions. -igor On 4/27/07, Shams Mahmood <[EMAIL PROTECTED]> wrote: Hi, I have a web site for mobiles that has around 3-4 thousand users. Now some particular mobile models get page expired error. I fopund that increasing page map size didn't help. I figured that all the users are using the same Page Map. ( they all have '' as their page map name) Is there some limit to how many pages a Page Map can store. Can anyone help with what the problem could be. Thanx in advance.] Shams - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] encoding of AttributeModifier's model
i dont know if it should be done all the time. but what you can do is write a XmlSafeModel that escapes the string, and use that in your attrib modifier. -igor On 4/27/07, Ludovic Orban <[EMAIL PROTECTED]> wrote: Hi all, I recently faced an annoying problem with AttributeModifier and encoding of its model. I have something looking like this in my code: String url = "http://www.somewhere.com?param1=a¶m2=b";; component.add(new AttributeModifier("href", true, new Model(url))); After rendering the component looks like this: http://www.somewhere.com?param1=a¶m2=b"/> My application is not outputting HTML but XML instead and this is obviously not valid XML (the '&' should be escaped) so I have to manually re-code the URL. Since attributes values should always be escaped, shouldn't that be performed automatically by AttributeModifier ? If not, is there a way to do this without having to encode the URL in my code ? Thanks, Ludovic -- View this message in context: http://www.nabble.com/encoding-of-AttributeModifier%27s-model-tf3657412.html#a10218271 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wanted: Wicket presentation
On 4/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > ive noticed, a big thank you from me and the rest of the team :) +1 Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Beg£º example about tree as navi gation
You can download the wicket examples http://wicket.sourceforge.net/Download.html Or you can click on "source code" in the top left corner of the online example. http://wicketstuff.org/wicket13/nested/ On 4/26/07, Crag <[EMAIL PROTECTED]> wrote: > Can someone share the code for me? I couldn't get the example from internet. > > thanks~ > > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Scott Swank reformed mathematician - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wanted: Wicket presentation
ive noticed, a big thank you from me and the rest of the team :) -igor On 4/27/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: Yes, no problem. I have been keeping the 'articles' page up to date for a couple of months already :) Erik. > On 4/27/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: >> Bedankt Martijn! > > Can you add the discovered presentations to a wiki page please? > > Martijn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to force WicketTester object to type cast in other Application object
ah, not sure how to do it in 1.2.5 :| not sure if you even can. -igor On 4/26/07, Akshat <[EMAIL PROTECTED]> wrote: Hi Igor, Thanks for your reply. Here is the thing: (using wicket 1.2.5) I could not find the constructor that takes the "Application" object. So I tried the following. tester = new WicketTester(); tester.set(new xyzApplication()); But this gives me the following stack trace. wicket.WicketRuntimeException: Use Application.init() method for configuring your application object at wicket.Application.getSettings(Application.java:606) at wicket.Application.getDebugSettings(Application.java:449) at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java :51) at wicket.protocol.http.AbstractHttpSessionStore.bind( AbstractHttpSessionStore.java:165) at wicket.protocol.http.MockWebApplication.setupRequestAndResponse( MockWebApplication.java:411) at wicket.util.tester.WicketTester.startPage(WicketTester.java :282) at com.xxx.abc.wicket.pages.sections.TestDefaultHomePage.setUp( TestDefaultHomePage.java:23) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run( JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java :38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196) Can you please suggest. Also is there any place where i could find some wicketTester samples. That would surely be helpfull to the community. I would like to thank you for an amazing framework "WICKET" :) Thanks & Regards, Ravi Gidwani. igor.vaynberg wrote: > > myapplication app=nnew myapplication(); > wickettester tester=new wicketteseter(app); > > -igor > > > On 4/26/07, Akshat <[EMAIL PROTECTED]> wrote: >> >> >> package com.xyz.xyzcom.wicket.pages.sections; >> >> import com.xyz.xyzcom.wicket.pages.DefaultxyzPage; >> >> public class DefaultHomePage extends DefaultxyzPage { >> >> >>public static final String HOME = "home"; >> >> public String getSection() { >> return HOME; >> } >> >> public String getTitle() { >> return "xyz Home"; >> } >> >> } >> >> On testing the above code the test case gives following error: -- The >> stack >> trcae of the test code is given below >> >> package com.xyz.xyzcom.wicket.pages.sections; >> import junit.framework.TestCase; >> import wicket.util.tester.WicketTester; >> import com.xyz.xyzcom.wicket.xyzApplication; >> import com.xyz.xyzcom.wicket.pages.Home; >> >> public class TestDefaultHomePage extends TestCase{ >> private WicketTester tester; >> public TestDefaultHomePage(){ >> super ("Test DefaultHomePage class"); >> } >> protected void setUp() >> { >> tester = new WicketTester(); >> >> } >> >> public void testGetTitle(){ >> >> tester.startPage(DefaultHomePage.class); >> tester.assertRenderedPage(DefaultHomePage.class); >> >> java.lang.ClassCastException: wicket.util.tester.WicketTester >> at com.xyz.xyzcom.wicket.xyzApplication.get(xyzApplication.java >> :68) >> at >> com.xyz.xyzcom.wicket.pages.sections.TestDefaultHomePage.setUp( >> TestDefaultHomePage.java:21) >> at junit.framework.TestCase.runBare(TestCase.java:125) >> at junit.framework.TestResult$1.protect(TestResult.java:106) >> at junit.framework.TestResult.runProtected(TestResult.java:124) >> at junit.framework.TestResult.run(TestResult.java:109) >> at junit.framework.TestCase.run(TestCase.java:118) >> at junit.framework.TestSuite.runTest(TestSuite.java:208) >> at junit.framework.TestSuite.run(TestSuite.java:203) >> at >> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run( >> JUnit3TestReference.java:128) >> at >> org.eclipse.jdt.internal.junit.runner.TestExecution.run( TestExecution.java >> :38) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( >> RemoteTestRunner.java:460) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe
Re: [Wicket-user] using wicket like sitemesh
you could place one label on the position where the static html should go in And that label loads the static from somewhere depending on an external param. johan On 4/27/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote: We've got a nice base wicket page with authorization and menus and headers and such that we'd like to use to wrap a whole host of static html pages. Should we do that by writing a servlet filter for that whole url path with all the html pages? Thanks, Tom - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Nested Forms and onSubmit()?
Yes it does. I have found out what was happening. It turned out that the web designer had put some javascript in that was confusing the matter with the outer form. I change the javascript onClick() to be on the input rather than the form and it worked fine. Thanks for the advice and sorry for the trouble. Martijn Dashorst wrote: > > On 4/27/07, jan_bar <[EMAIL PROTECTED]> wrote: >> I think that you cannot nest in HTML. You have to "nest" them with >> CSS. This will also solve your trouble with form submits - I think that >> the >> browser simply ignores the nested tags. > > Wicket supports nested forms. The inner form tags are replaced with > elements. This is a component framework, where you expect forms > to be able to be nested (form on a reusable panel anyone?). > > Martijn > -- > Learn Wicket at ApacheCon Europe: http://apachecon.com > Join the wicket community at irc.freenode.net: ##wicket > Wicket 1.2.6 contains a very important fix. Download Wicket now! > http://wicketframework.org > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Nested-Forms-and-onSubmit%28%29--tf3657476.html#a10220155 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] I cannot add Ajax behavior to an AutoCompleteTextField
(Sorry the following mail is duplicated... I sent the original to the wrong thread) --- Hi everyone! I'm having trouble with an AutoCompleteTextField. I want to add an ajax behavior to it (specifically, for "onblur") like can I do with other wicket components, but somehow it doesn't work. I can add an AjaxFormComponentUpdatingBehavior to a TextField and it works. I cannot add it to an AutoCompleteTextField. The Ajax debug console shows no errors. It seems that the autocomplete has its own hardcoded behavior which cannot be overridden, if I understood the code correctly. Is there any way of adding other behaviors, specifically "onblur"? I'm using Wicket 1.2.4. Thanks! --Andrés - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket 1.2.6 critical bug
we do follow the spec now... so we could change it back for 1.2 but for 1.3i would keep it. johan On 4/27/07, jan_bar <[EMAIL PROTECTED]> wrote: Hi, I have posted new bug in 1.2.6: https://issues.apache.org/jira/browse/WICKET-511. For me, this is a show stopper (1.2.6 is unusable). Thanks, for your support, Jan -- Jan Bares http://jan.vegetband.cz - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] using wicket like sitemesh
We've got a nice base wicket page with authorization and menus and headers and such that we'd like to use to wrap a whole host of static html pages. Should we do that by writing a servlet filter for that whole url path with all the html pages? Thanks, Tom - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Page Map clarification
Hi, I have a web site for mobiles that has around 3-4 thousand users. Now some particular mobile models get page expired error. I fopund that increasing page map size didn't help. I figured that all the users are using the same Page Map. ( they all have '' as their page map name) Is there some limit to how many pages a Page Map can store. Can anyone help with what the problem could be. Thanx in advance.] Shams - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Nested Forms and onSubmit()?
On 4/27/07, jan_bar <[EMAIL PROTECTED]> wrote: > I think that you cannot nest in HTML. You have to "nest" them with > CSS. This will also solve your trouble with form submits - I think that the > browser simply ignores the nested tags. Wicket supports nested forms. The inner form tags are replaced with elements. This is a component framework, where you expect forms to be able to be nested (form on a reusable panel anyone?). Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Nested Forms and onSubmit()?
Hi, I think that you cannot nest in HTML. You have to "nest" them with CSS. This will also solve your trouble with form submits - I think that the browser simply ignores the nested tags. Jan -- Jan Bares http://jan.vegetband.cz "John RDF" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I have nested forms and need them for the following reason.. > > I have a reusable panel for addresses which has its own form "lookup from > postcode" submit button to auto fill the address. > > This panel is used in another form 3 times which needs addresses for > different people. > > My problem is that the lookup button on each address panel is also causing > submission of the outer form which I think should be incorrect behaviour. > > Is there a way to do this in wicket and get my expected behaviour (only one > form submitted)? > > -- > View this message in context: http://www.nabble.com/Nested-Forms-and-onSubmit%28%29--tf3657476.html#a10218520 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Nested Forms and onSubmit()?
I have nested forms and need them for the following reason.. I have a reusable panel for addresses which has its own form "lookup from postcode" submit button to auto fill the address. This panel is used in another form 3 times which needs addresses for different people. My problem is that the lookup button on each address panel is also causing submission of the outer form which I think should be incorrect behaviour. Is there a way to do this in wicket and get my expected behaviour (only one form submitted)? -- View this message in context: http://www.nabble.com/Nested-Forms-and-onSubmit%28%29--tf3657476.html#a10218520 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] encoding of AttributeModifier's model
Hi all, I recently faced an annoying problem with AttributeModifier and encoding of its model. I have something looking like this in my code: String url = "http://www.somewhere.com?param1=a¶m2=b";; component.add(new AttributeModifier("href", true, new Model(url))); After rendering the component looks like this: http://www.somewhere.com?param1=a¶m2=b"/> My application is not outputting HTML but XML instead and this is obviously not valid XML (the '&' should be escaped) so I have to manually re-code the URL. Since attributes values should always be escaped, shouldn't that be performed automatically by AttributeModifier ? If not, is there a way to do this without having to encode the URL in my code ? Thanks, Ludovic -- View this message in context: http://www.nabble.com/encoding-of-AttributeModifier%27s-model-tf3657412.html#a10218271 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] question about date format for textfield
try this .. public Object convert(Object value, Class c) { //If the value is already of the same type as 'c' //then return it if (c== value.getClass()){ return value; } On 4/27/07, kubino <[EMAIL PROTECTED]> wrote: Hi Johan, I tried this TextField dateFrom = new TextField("dateFrom",new PropertyModel(filtr,"dateFrom")) { public IConverter getConverter() { return new IConverter() { public Object convert(Object value, Class c) { try { if(c == String.class) { return new SimpleDateFormat("dd-MM-").format((Date)value); } else return new SimpleDateFormat("dd-MM-").parse((String)value); } catch(ParseException pex) { return null; } } public Locale getLocale() { return getLocale(); } public void setLocale(Locale locale) { } }; }}; filtr is instance of class where is property Date dateFrom with apropriate getter and setter. I always get this exception when I try fill and post the field. icketMessage: unable to set object 11.05.2000, model: Model:classname=[wicket.model.PropertyModel]:attached=true:nestedModel=[ [EMAIL PROTECTED] ]:expression=[dateFrom]:propertyType=[null], called with component [MarkupContainer [Component id = dateFrom, page = cz.artin.mnp.web.pages.administrative.PortedNumbersPage, path = 4:portedNumbersFiltr:validityFiltrRadioGroup:dateFrom.PortedNumbersForm1$1 , isVisible = true, isVersioned = false]] Root cause: wicket.util.convert.ConversionException: Can't convert value: 11.05.2000to class: class java.util.Date for setting it on [EMAIL PROTECTED] at wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue( PropertyResolver.java:833) at wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue( PropertyResolver.java:447) at wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) at wicket.model.AbstractPropertyModel.onSetObject(AbstractPropertyModel.java :182) at wicket.model.AbstractDetachableModel.setObject( AbstractDetachableModel.java:131) at wicket.Component.setModelObject(Component.java:2035) at wicket.markup.html.form.FormComponent.updateModel(FormComponent.java :840) at wicket.markup.html.form.Form$11.formComponent(Form.java:917) DateTextField is unusable for me, becouse I'am planning to have more acceptable format for my date - dd.MM. and dd.MM. hh:mm , maybe you can consider this to be useful for next releases of wicket :-) Thanks for help. Johan Compagner wrote: > > you have to test to which class the converter wants to go to: > > public Object convert(Object o, Class c) > { > try >{ > if(c == String.class) > { > return new > SimpleDateFormat("dd-MM-").format((Date)o); > } > else > return new > SimpleDateFormat("dd-MM-").parse((String)o); > } > catch(ParseException pex) >{ > return null; >} > > or test ofcourse if the value is an instanceof date or string. > > We are planning to change the converter interface for the next version of > wicket. > Because the current on is a bit to confusing for most people. > > johan > > > On 3/23/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote: >> >> Hi, I've been trying to develop an application with wicket, but I don't >> know how to customize the date format for a textfield. I'm using the >> DatePickercomponent but I use a different format : dd-MM-, when I >> submit >> the form an exception is thrown because the format is not recognized, I >> tried to redefine the getConverter method as follows : >> >> TextField fecha = new TextField("fecha", Date.class) >> { >> public IConverter getConverter() >> { >>return new IConverter() >>{ >> public Object convert(Object o, Class c) >> { >> try >>{ >> return new >> >> SimpleDateFormat("dd-MM-").parse((String)o); >> } >> catch(ParseException pex) >>{ >> return null; >>} >> } >>
[Wicket-user] wicket 1.2.6 critical bug
Hi, I have posted new bug in 1.2.6: https://issues.apache.org/jira/browse/WICKET-511. For me, this is a show stopper (1.2.6 is unusable). Thanks, for your support, Jan -- Jan Bares http://jan.vegetband.cz - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] encoding problem
> Is it this one? > > Parameters of nice URL's pages with 'sensitive' characters > https://issues.apache.org/jira/browse/WICKET-40 Probably, yes. Thanks for the url and the patch... Janos - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wanted: Wicket presentation
Yes, no problem. I have been keeping the 'articles' page up to date for a couple of months already :) Erik. > On 4/27/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: >> Bedankt Martijn! > > Can you add the discovered presentations to a wiki page please? > > Martijn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wanted: Wicket presentation
On 4/27/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Bedankt Martijn! Can you add the discovered presentations to a wiki page please? Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wanted: Example about Tree Menu Navigation
I want the example, a simple tree menu . thanks all. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)?
Ok, no problem:) Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: fr 27-04-2007 11:24 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)? Been busy on the list again. Nino, if you think it's a bug, would you mind opening up a JIRA issue for it? Thanks, Eelco On 4/26/07, Nino Wael <[EMAIL PROTECTED]> wrote: > Hi > > Something's not right with RadioGroup when using > wantOnSelectionChangedNotifications or I am doing something wrong. > > When the same Radio are selected for the 2nd time, the radio becomes > unselected and cannot be selected again until another radio has been > selected. However the RadioGroup's model remains the same even though the > radio does not appear to be selected. > > I've created a Quickstart project that showes this behavior. You can get it > here: http://www.badongo.com/file/2868077 > > Im not sure what the normal behavior should be for the radioGroup? Im > guessing/expecting that not matter how many times you click on a radio to > select it, it should always be selected? > > Also some would argue that wantOnSelectionChangedNotifications, > arent the best name since it tells that you only get notifications when > selection changes, however you > also get notified if the selection remains the same. A more proper name would > be wantSelectionNotifications? > > Since english arent my primary language I might be somewhat off here, also I > guess it will break dependant code, if it were to be renamed :(. > > > BTW: I noticed this behavior when using 1.2.5, but it could also be there > before. > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user <>- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wanted: Wicket presentation
Bedankt Martijn! Erik. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wanted: Wicket presentation
http://wiki.javapolis.com/confluence/download/attachments/17206/Wicket+-+Martijn+Dashorst.pdf On 4/27/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > JavaPolis '05 presentation is online and the JavaOne '05 presentation > too (8617 iirc), also I think the NL-JUG presentation for '05 is > available. There was also a denver JUG presentation. > > Google for wicket pdf and ppt > > http://developers.sun.com/learning/javaoneonline/2005/webtier/TS-8617.pdf > http://www.bloggingaboutjava.org/cms/wordpress/?action=download&file_id=12 > > Martijn > > On 4/27/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I have been asked to give an introduction presentation on Wicket for my > > colleagues. > > Is there any presentation out there that I may re-use? > > > > Regards, > > Erik. > > > > > > -- > > Erik van Oosten > > http://www.day-to-day-stuff.blogspot.com/ > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > -- > Learn Wicket at ApacheCon Europe: http://apachecon.com > Join the wicket community at irc.freenode.net: ##wicket > Wicket 1.2.6 contains a very important fix. Download Wicket now! > http://wicketframework.org > -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wanted: Wicket presentation
JavaPolis '05 presentation is online and the JavaOne '05 presentation too (8617 iirc), also I think the NL-JUG presentation for '05 is available. There was also a denver JUG presentation. Google for wicket pdf and ppt http://developers.sun.com/learning/javaoneonline/2005/webtier/TS-8617.pdf http://www.bloggingaboutjava.org/cms/wordpress/?action=download&file_id=12 Martijn On 4/27/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hello, > > I have been asked to give an introduction presentation on Wicket for my > colleagues. > Is there any presentation out there that I may re-use? > > Regards, > Erik. > > > -- > Erik van Oosten > http://www.day-to-day-stuff.blogspot.com/ > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Contributing to wicket-contrib-yui
David and Thomas, you're both in. Make something beautiful :) And Josh, thanks for your previous effort. Hope you don't mind this, and you like anyone else are most welcome to help with the it. Cheers, Eelco On 4/27/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > Eelco / David, > > I would be interested in helping out with wicket-contrib-yui as well - my sf > id is ptrthomas > > Thanks, > > Peter. > > > On 4/27/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: > > * David Leangen: > > > > > On Fri, 2007-04-27 at 14:13 +0800, Joshua Lim wrote: > > > > > > > I also hope that it could be a wicket package. I don't want to > > > > be dependent on the hosting. > > > > > > What about having the option to do either one? > > > > Sure, use by default a local copy, and let the user choose the > > script to load. That's what we do on WS Dojo. > > -- > > Jean-Baptiste Quenot > > aka John Banana Qwerty > > http://caraldi.com/jbq/ > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RadioGroup Broken(1.2.5+?/when using wantOnSelectionChangedNotifications)?
Been busy on the list again. Nino, if you think it's a bug, would you mind opening up a JIRA issue for it? Thanks, Eelco On 4/26/07, Nino Wael <[EMAIL PROTECTED]> wrote: > Hi > > Something's not right with RadioGroup when using > wantOnSelectionChangedNotifications or I am doing something wrong. > > When the same Radio are selected for the 2nd time, the radio becomes > unselected and cannot be selected again until another radio has been > selected. However the RadioGroup's model remains the same even though the > radio does not appear to be selected. > > I've created a Quickstart project that showes this behavior. You can get it > here: http://www.badongo.com/file/2868077 > > Im not sure what the normal behavior should be for the radioGroup? Im > guessing/expecting that not matter how many times you click on a radio to > select it, it should always be selected? > > Also some would argue that wantOnSelectionChangedNotifications, > arent the best name since it tells that you only get notifications when > selection changes, however you > also get notified if the selection remains the same. A more proper name would > be wantSelectionNotifications? > > Since english arent my primary language I might be somewhat off here, also I > guess it will break dependant code, if it were to be renamed :(. > > > BTW: I noticed this behavior when using 1.2.5, but it could also be there > before. > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Contributing to wicket-contrib-yui
Eelco / David, I would be interested in helping out with wicket-contrib-yui as well - my sf id is ptrthomas Thanks, Peter. On 4/27/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: * David Leangen: > On Fri, 2007-04-27 at 14:13 +0800, Joshua Lim wrote: > > > I also hope that it could be a wicket package. I don't want to > > be dependent on the hosting. > > What about having the option to do either one? Sure, use by default a local copy, and let the user choose the script to load. That's what we do on WS Dojo. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wanted: Wicket presentation
Hello, I have been asked to give an introduction presentation on Wicket for my colleagues. Is there any presentation out there that I may re-use? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Contributing to wicket-contrib-yui
* David Leangen: > On Fri, 2007-04-27 at 14:13 +0800, Joshua Lim wrote: > > > I also hope that it could be a wicket package. I don't want to > > be dependent on the hosting. > > What about having the option to do either one? Sure, use by default a local copy, and let the user choose the script to load. That's what we do on WS Dojo. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RadioGroup Broken(1.2.5+?/whenusingwantOnSelectionChangedNotifications)?
Igor please answer:) Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 26-04-2007 16:01 Til: wicket-user@lists.sourceforge.net; wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] RadioGroup Broken(1.2.5+?/whenusingwantOnSelectionChangedNotifications)? bump anyone for answer? Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 26-04-2007 09:25 Til: wicket-user@lists.sourceforge.net Emne: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)? Hi Something's not right with RadioGroup when using wantOnSelectionChangedNotifications or I am doing something wrong. When the same Radio are selected for the 2nd time, the radio becomes unselected and cannot be selected again until another radio has been selected. However the RadioGroup's model remains the same even though the radio does not appear to be selected. I've created a Quickstart project that showes this behavior. You can get it here: http://www.badongo.com/file/2868077 Im not sure what the normal behavior should be for the radioGroup? Im guessing/expecting that not matter how many times you click on a radio to select it, it should always be selected? Also some would argue that wantOnSelectionChangedNotifications, arent the best name since it tells that you only get notifications when selection changes, however you also get notified if the selection remains the same. A more proper name would be wantSelectionNotifications? Since english arent my primary language I might be somewhat off here, also I guess it will break dependant code, if it were to be renamed :(. BTW: I noticed this behavior when using 1.2.5, but it could also be there before. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user <>- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SLF4J and wicket
On Thursday, April 26, 2007, 8:46:08 PM, Igor <[EMAIL PROTECTED]> wrote: > and this is a problem only for things that are deployed into a SHARED > classpath. > no body (at least i hope not) is sharing wicket.jar between > multiple web applications. so there is no problem. Well, I did have a look at doing just that a few months back, as multiple Wicket & Spring jars do bulk out an EAR! Unfortunately, it wasn't a major requirement, so couldn't justify spending much time on it & as I came across some (probably minor, but...) class-loading issues, I just accepted the extra overhead in deployment time. (The link between me & the server seems to run at ~IDSN speed!) /Gwyn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] question about date format for textfield
Hi Johan, I tried this TextField dateFrom = new TextField("dateFrom",new PropertyModel(filtr,"dateFrom")) { public IConverter getConverter() { return new IConverter() { public Object convert(Object value, Class c) { try { if(c == String.class) { return new SimpleDateFormat("dd-MM-").format((Date)value); } else return new SimpleDateFormat("dd-MM-").parse((String)value); } catch(ParseException pex) { return null; } } public Locale getLocale() { return getLocale(); } public void setLocale(Locale locale) { } }; }}; filtr is instance of class where is property Date dateFrom with apropriate getter and setter. I always get this exception when I try fill and post the field. icketMessage: unable to set object 11.05.2000, model: Model:classname=[wicket.model.PropertyModel]:attached=true:[EMAIL PROTECTED]:expression=[dateFrom]:propertyType=[null], called with component [MarkupContainer [Component id = dateFrom, page = cz.artin.mnp.web.pages.administrative.PortedNumbersPage, path = 4:portedNumbersFiltr:validityFiltrRadioGroup:dateFrom.PortedNumbersForm1$1, isVisible = true, isVersioned = false]] Root cause: wicket.util.convert.ConversionException: Can't convert value: 11.05.2000 to class: class java.util.Date for setting it on [EMAIL PROTECTED] at wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:833) at wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:447) at wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) at wicket.model.AbstractPropertyModel.onSetObject(AbstractPropertyModel.java:182) at wicket.model.AbstractDetachableModel.setObject(AbstractDetachableModel.java:131) at wicket.Component.setModelObject(Component.java:2035) at wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:840) at wicket.markup.html.form.Form$11.formComponent(Form.java:917) DateTextField is unusable for me, becouse I'am planning to have more acceptable format for my date - dd.MM. and dd.MM. hh:mm , maybe you can consider this to be useful for next releases of wicket :-) Thanks for help. Johan Compagner wrote: > > you have to test to which class the converter wants to go to: > > public Object convert(Object o, Class c) > { > try >{ > if(c == String.class) > { > return new > SimpleDateFormat("dd-MM-").format((Date)o); > } > else > return new > SimpleDateFormat("dd-MM-").parse((String)o); > } > catch(ParseException pex) >{ > return null; >} > > or test ofcourse if the value is an instanceof date or string. > > We are planning to change the converter interface for the next version of > wicket. > Because the current on is a bit to confusing for most people. > > johan > > > On 3/23/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote: >> >> Hi, I've been trying to develop an application with wicket, but I don't >> know how to customize the date format for a textfield. I'm using the >> DatePickercomponent but I use a different format : dd-MM-, when I >> submit >> the form an exception is thrown because the format is not recognized, I >> tried to redefine the getConverter method as follows : >> >> TextField fecha = new TextField("fecha", Date.class) >> { >> public IConverter getConverter() >> { >>return new IConverter() >>{ >> public Object convert(Object o, Class c) >> { >> try >>{ >> return new >> >> SimpleDateFormat("dd-MM-").parse((String)o); >> } >> catch(ParseException pex) >>{ >> return null; >>} >> } >>public void setLocale(Locale loc) >>{} >>public Locale getLocale() >> { >> return Locale.getDefault(); >>
Re: [Wicket-user] Formatting non-html templates
> > test > > > > wicket will output this: > > > > test > > > > and now component.setRenderBodyOnly(true) Ah! Eureka! Thank you for this. :-) Looks like this approach does exactly what I want after all. :-D - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Formatting non-html templates
> test > > wicket will output this: > > test > and now component.setRenderBodyOnly(true) Juergen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user