Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor, thanx a lot for this clarification! cheers, martin On Sun, 2007-04-29 at 18:05 -0700, Igor Vaynberg wrote: in reality this isnt how its supposed to work. usually you would have something like this: searchpage { private criteria crit; searchpage() { add(new

Re: [Wicket-user] Way to prevent page versioning for a request in 1.3?

2007-04-30 Thread Matej Knopp
Hi, at actually looks like the bug. What you can try to do is to enable versioning on the link. What's the URL the link generates? Does it contain IUnversionedBehaviorListener? If it does you should have the AbstractDefaultAjaxBehavior.getCallbackScript called with first parameter = true. -Matej

Re: [Wicket-user] Different JS 'this' object using ajax

2007-04-30 Thread Matej Knopp
Safest solution is to do item.setOutputMarkupId(true);; and then target.appendJavascript(selectRow(document.getElementById('+item.getMarkuipId()+')); -Matej On 4/29/07, Tauren Mills [EMAIL PROTECTED] wrote: Hi, It appears that the javascript this object is different when I hardcode the

Re: [Wicket-user] Different JS 'this' object using ajax

2007-04-30 Thread Tauren Mills
Ahh, that makes sense. I'll give that a try tomorrow. Thanks! Tauren On 4/30/07, Matej Knopp [EMAIL PROTECTED] wrote: Safest solution is to do item.setOutputMarkupId(true);; and then target.appendJavascript(selectRow(document.getElementById('+item.getMarkuipId()+')); -Matej On

[Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-04-30 Thread James Perry
I am trying to model a hashset in a wicket webpage that allows to edit an user's details. I have a hashset of the user's roles however I cannot model them using the CheckBoxMultipleChoice component. How can I model this hashset so roles can selected and deselected. Thanks in advance, - James

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-30 Thread D.Alexander
imho all he should do is extend a panel, and make sure that panel is always inside a form. there is no need to have a form to group a few fields together. Thanks, that's how I was thinking it should be a Fieldset so to speak. Have progressed a bit down that route but still have a couple of

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-30 Thread Martijn Dashorst
On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Second question is whether Wicket provides support for creating unique id's for elements. My html for the PostalAddressFieldset includes things like: input wicket:id=addressLine id=addressLine type=text size=40/ Obviously this is no

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-30 Thread Matej Knopp
hi, i just want to mentioned that there were a nasty bug in 1.3 nested form processing that was fixed today, so if you have any issues with it i suggest you upgrading wicket to see if it helps. -Matej On 4/30/07, Martijn Dashorst [EMAIL PROTECTED] wrote: As for your first question, I think the

Re: [Wicket-user] how to get a form's field when i click on an ajax object

2007-04-30 Thread ChuckDeal
igor.vaynberg wrote: 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

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-30 Thread D.Alexander
Nice, I thought this should be easy - and it is! Derek -Original Message- From: [EMAIL PROTECTED] on behalf of Martijn Dashorst Sent: Mon 4/30/2007 2:01 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Nested Forms and onSubmit()? As for your first question, I think

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-30 Thread D.Alexander
Ok, but name != id in xhtml and the value of xhtml id attributes on the page must be unique or it isn't valid. Do I need to ensure that any custom components do not include an xhtml id attribute? Derek -Original Message- From: [EMAIL PROTECTED] on behalf of Martijn Dashorst Sent:

[Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-04-30 Thread D.Alexander
Ta, I've just upgraded and prefixed all wicket imports with org.apache. Only problemo seems to be that wicket.extensions.markup.html.datepicker.DatePicker has disappeared. Any idea where it went? Derek -Original Message- From: [EMAIL PROTECTED] on behalf of Matej Knopp Sent: Mon

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-04-30 Thread D.Alexander
ok, found it: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-datepicker -Original Message- From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Mon 4/30/2007 3:52 PM To: wicket-user@lists.sourceforge.net Subject: from 1.2.6 to 1.3.0 snapshot Ta, I've just

[Wicket-user] Back-button / versioning

2007-04-30 Thread Joshua Lim
Hi I was having a little problem with back-button and versioning... I am using 1.3 snapshot from trunk. (as of today) I have a few wicket pages :- ParentPage contains a form and a submit button without form components. ChildPage(s) of this ParentPage calls getForm().add(some component). The

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-30 Thread Martijn Dashorst
On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, but name != id in xhtml and the value of xhtml id attributes on the page must be unique or it isn't valid. Do I need to ensure that any custom components do not include an xhtml id attribute? Yes you do, but you can let Wicket

Re: [Wicket-user] Back-button / versioning

2007-04-30 Thread Eelco Hillenius
I've complained about custom serialization being the default before, and I've had it with that thing. I've reported at least two instances of problems before in threads on I believe the dev list, and they haven't been fixed so far either. I really want to set the default to

[Wicket-user] Cancel doesn't work for AjaxEditableLabel (1.3.0-incubating-SNAPSHOT)

2007-04-30 Thread Dragos Bobes
Hey guys, I'm a newbie with wicket so it may be my fault but I tried to debug this error and I couldn't find any solutions. I build a simple page with an editable ajax label, everything works fine except when I try to cancel the changes (using the Esc key). After that all AJAX features stop

Re: [Wicket-user] Back-button / versioning

2007-04-30 Thread Igor Vaynberg
seeing how slow we were at fixing issues with this i dont have any objections. i did fix the error reporting though. before the exceptions were swallowed and just did e.printstacktrace(). now a proper rte is thrown. -igor On 4/30/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I've complained

[Wicket-user] Forgot password feature

2007-04-30 Thread Tauren Mills
I'm considering different ways to implement a Forgot Password feature. I normally see it done one of two ways. 1. On registration, get a Question and Answer from user. Ask them this question when they forget their password. On correct answer, let them change password. I don't have any

Re: [Wicket-user] Forgot password feature

2007-04-30 Thread Igor Vaynberg
class resetpage extends webpage { public resetpage(pageparameters params) { string key=params.get(0); ... } public static urlfor(string key) { pageparameters params=new pageparameters(); params.put(0, key); return requestcycle.get().urlfor(resetpage.class,

Re: [Wicket-user] Forgot password feature

2007-04-30 Thread Tauren Mills
Igor, Thanks so much! Tauren On 4/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote: class resetpage extends webpage { public resetpage(pageparameters params) { string key=params.get(0); ... } public static urlfor(string key) { pageparameters params=new

Re: [Wicket-user] Cancel doesn't work for AjaxEditableLabel (1.3.0-incubating-SNAPSHOT)

2007-04-30 Thread Dragos Bobes
I've just noticed that the behaviour is specific to Firefox 2.0. In Internet Explorer 7 everything works fine. Thanks, Dragos Dragos Bobes wrote: Hey guys, I'm a newbie with wicket so it may be my fault but I tried to debug this error and I couldn't find any solutions. I build a simple

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-04-30 Thread Martin Funk
Sorry Eelco for beeing such a pain ;-) but unless I missed something, wicket-datetime's DateField is still throwing NPE's, making it somewhat hard to use. Martin Eelco Hillenius schrieb: yeah. And there's a separate project with a new datepicker now as well: wicket-datetime. Eelco On

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor, i'm trying to implement your advice, but don't really know how to do this. what would the SearchForm then look like? does the form itself use the model and how is the input field added to the form? and how can the ResultsView access the value of the PropertyModel? the model has a

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg
i suggest you read here: http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models the idea is pretty simple: the form submits its data into a bean, and the view renders according to that bean. this is accomplished by having the form and the view's models connected to the same

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-04-30 Thread Eelco Hillenius
The issue you reported doesn't make sense to me atm, but I'm sure it's not bug free yet. However, it'll be someday (and hopefully that is soon), and the issue is not related to the datepicker I think. The datetime project is still new, and the datepicker more limited than the old one, but we can

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor, i hope i got the idea now. i post my beans here, it would be nice if could tell me if anything's not following the right path :) // the start page, simply with the search form public Index(final PageParameters parameters) { LOG.debug( Creating new Index page with params +

[Wicket-user] Google Guice

2007-04-30 Thread cowwoc
http://video.google.com/videoplay?docid=6068447410873108038q=user%3A%22Google+engEDU This might be of interest to Wicket and its users. I personally like their design :) Gili signature.asc Description: OpenPGP digital signature

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote: hi igor, i hope i got the idea now. i post my beans here, aehem, sorry - forgot to include SearchResultsView: public SearchResultsView(String id, PropertyModel model ) { super( id, model ); final String query =

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg
On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote: hi igor, i hope i got the idea now. i post my beans here, aehem, sorry - forgot to include SearchResultsView: public SearchResultsView(String id, PropertyModel model ) {

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:07 -0700, Igor Vaynberg wrote: On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote: hi igor, i hope i got the idea now. i post my beans here, aehem, sorry - forgot to

Re: [Wicket-user] Forgot password feature

2007-04-30 Thread Tauren Mills
One more thing on this. I have it working so that my URL looks like this: /sa/app/reset/1/4xYD6JctlSPwU23eN%2Fm1isA5Cf8%3D/0/tauren The key is the PageParameter #1. I'm encoding a value using Base64, which appears to include slashes, =, etc. When this string is used in a browser, the value is

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg
if you want to maintain the bookmarkable url then no. but this is atypical of how wicket lifecycle usually works. the model i showed is better because if you reuse the searchresultsview outside of this lifecycle you are creating it will still work properly, but if you have no plans on reusing it

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote: if you want to maintain the bookmarkable url then no. but this is atypical of how wicket lifecycle usually works. ok. do I have to take anything in acount if i use wicket in this atypical way? however, until now it feels very good to work

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg
On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote: if you want to maintain the bookmarkable url then no. but this is atypical of how wicket lifecycle usually works. ok. do I have to take anything in acount if i use wicket in this

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:42 -0700, Igor Vaynberg wrote: On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote: if you want to maintain the bookmarkable url then no. but this is atypical of how wicket

[Wicket-user] wicket-bench for 1.3-SNAPSHOT

2007-04-30 Thread Ryan Sonnek
is there anyone from the wicket-bench team out there that can provide info on a new version for the upcoming 1.3 release? now that the package names have changed, my wicket bench tests are totally hosed up... - This SF.net

[Wicket-user] Button using button tag instead of input

2007-04-30 Thread Ryan Sonnek
I'm trying to use a wicket Button on an html button tag instead of an input tag, but wicket keeps throwing this error: WicketMessage: Component deleteSlideButton must be applied to a tag of type 'input', not 'button wicket:id=deleteSlideButton' Is this possible, or is there a different wicket

Re: [Wicket-user] Button using button tag instead of input

2007-04-30 Thread Igor Vaynberg
use link or submitlink. -igor On 4/30/07, Ryan Sonnek [EMAIL PROTECTED] wrote: I'm trying to use a wicket Button on an html button tag instead of an input tag, but wicket keeps throwing this error: WicketMessage: Component deleteSlideButton must be applied to a tag of type 'input', not

Re: [Wicket-user] Forgot password feature

2007-04-30 Thread n8han
There's org.apache.wicket.util.crypt.Base64UrlSafe Tauren Mills-2 wrote: Is there a built-in way in Wicket to url-encode the string again, making it doubly encoded? Or is there a different solution? Perhaps using something besides Base64, but I don't know what would be good to use.