Re: DropDownChoice-Choose One Selected Item

2011-02-09 Thread Nivedan Nadaraj
@James - Thank you will try that out and get back. @Martin - Thanks mate will get back I guess I am using 1.4.9 version and don't have the option to setDefaultModelObject on the ChoiceRenderer anyhow appreciate your time and thoughts to write back. Thanks again Nive On Thu, Feb 10, 2011 at 12:01 P

Re: DropDownChoice-Choose One Selected Item

2011-02-09 Thread Martin Makundi
Hi! You can do defaultChoiceRenderer.setDefaultModelObject(xxx) Or if you don't want to dirty it, you can use public static > void fakeRawInput(T formComponent, T existingComponent) { try { String rawInput = (String) rawInputField.get(existingComponent); fakeRawInput(formCompo

Re: Best Wicket security practice

2011-02-09 Thread Nivedan Nadaraj
Apache shiro is one more - http://shiro.apache.org/ On Wed, Feb 9, 2011 at 3:14 AM, sakthi vel wrote: > Hello All, > > There are few security things in wicket like SWARM, Spring security with > wicket and so on. > Could anyone tell the best security practice in wicket and any possible > link

Re: DropDownChoice-Choose One Selected Item

2011-02-09 Thread James Carman
The DDC will reflect whatever is in its model (the model for the selected value, not the one for the list of items to choose from). So, just set your model. On Wed, Feb 9, 2011 at 10:52 PM, Niv wrote: > > Hi > Is there a way I can have the selected option on a DropDownChoice to be set > with  one

DropDownChoice-Choose One Selected Item

2011-02-09 Thread Niv
Hi Is there a way I can have the selected option on a DropDownChoice to be set with one of the items in the Model instead of ' Choose One' as the selected item by default? I know this has been asked around in a different sense but I could not find a closer match to this. Code Snippet List coun

Re: Estimated number of developers in the Wicket community

2011-02-09 Thread Jeremy Thomerson
On Wed, Feb 9, 2011 at 2:10 PM, Bruno Borges wrote: > > Does anyone have an update over this? > > It seems the website > > http://people.apache.org/~coar/mlists.html#wicket.apache.org > > does not show anymore the Wicket dashboard. > > I'm looking for a number of active members on the mailing lis

RE: Estimated number of developers in the Wicket community

2011-02-09 Thread Bruno Borges
Does anyone have an update over this? It seems the website http://people.apache.org/~coar/mlists.html#wicket.apache.org does not show anymore the Wicket dashboard. I'm looking for a number of active members on the mailing list (also, number of messages). -- View this message in context: h

Re: StatelessForm growing url when there is errorvalidation

2011-02-09 Thread Olivier Dutrieux
I already attach on my first post a sample (quickstart) : http://apache-wicket.1842946.n4.nabble.com/file/n3296950/Wicket-test.rar I fill too a jira ticket : https://issues.apache.org/jira/browse/WICKET-3438 Best regards - Duto -- View this message in context: http://apache-wicket.18429

Re: what doctype should I use

2011-02-09 Thread Daniel Soneira
This has nothing to do with Wicket. I would recommend researching selfhtml (http://de.selfhtml.org/) since you seem to be from Germany. On 09.02.2011 17:58, fachhoch wrote: please suggest what doctype should I use to make IE work , and not cause any new issues. i am not sure If my applicatio

Re: what doctype should I use

2011-02-09 Thread Martin Makundi
Hi! Use http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> It is not strict. However, nothing will guarantee things will work in IE. ** Martin 2011/2/9 fachhoch : > > please suggest what doctype should I use to  make IE work  , and not cause > any new issues. > i am not sure If my appl

what doctype should I use

2011-02-09 Thread fachhoch
please suggest what doctype should I use to make IE work , and not cause any new issues. i am not sure If my application is xhtml or just html , I am not sure if every thing is valid , in this case what would be the right doctype for my pages , please suggest me. -- View this message in cont

Re: When 1.4.16 going to be released

2011-02-09 Thread Igor Vaynberg
i may have time this weekend. may being the operative word. you dont need to patch the version of wicket, just use the latest snapshot jar. -igor On Wed, Feb 9, 2011 at 8:52 AM, Przemek Kubicki wrote: > Hey, > > WICKET-3321 https://issues.apache.org/jira/browse/WICKET-3321 is crucial for > us.

Re: When 1.4.16 going to be released

2011-02-09 Thread Przemek Kubicki
Hey, WICKET-3321 https://issues.apache.org/jira/browse/WICKET-3321 is crucial for us. It is already fixed. We need to release our product version asap. Without 1.4.16 we would need to patch the wicket, but i'd like to avoid it. Cheers, W dniu 09.02.2011 17:25, Igor Vaynberg pisze: is the

Re: When 1.4.16 going to be released

2011-02-09 Thread Martin Makundi
Ajax-enclosures would be nice ;) 2011/2/9 Igor Vaynberg : > is there anything particularly important in it that you need? > > -igor > > On Wed, Feb 9, 2011 at 3:18 AM, Przemek Kubicki wrote: >> Hi folks, >> >> anyone know when 1.4.16 will get released? >> >> Cheers >> >> -

Re: StatelessForm growing url when there is errorvalidation

2011-02-09 Thread Igor Vaynberg
hrm. i thought this was fixed a long time ago. please file a bug with a quickstart. -igor On Wed, Feb 9, 2011 at 2:09 AM, Olivier Dutrieux wrote: > > Hello, > > I have a strange problem with statelessForm : > > I would like a stateless application with 2 statelessForm and with somes > required v

Re: ajax versioning

2011-02-09 Thread Igor Vaynberg
mount it with hybrid url coding strategy -igor On Wed, Feb 9, 2011 at 8:01 AM, Istvan De wrote: > Hi! > > In case I have a bookmarkable page with some AJAX on it (form+table) and the > user can navigate away and back to this page (using the back button). How > can I make sure that in case of the

Re: When 1.4.16 going to be released

2011-02-09 Thread Igor Vaynberg
is there anything particularly important in it that you need? -igor On Wed, Feb 9, 2011 at 3:18 AM, Przemek Kubicki wrote: > Hi folks, > > anyone know when 1.4.16 will get released? > > Cheers > > - > To unsubscribe, e-mail: use

Re: Ajax onChange but also submit all data on a form

2011-02-09 Thread Michael O'Cleirigh
Use AjaxFormSubmitBehavior instead of AjaxFormComponentUpdatingBehaviour. AjaxFormComponentUpdatingBehaviour is just for updating a single field in a form. AjaxButton uses AjaxFormSubmitBehaviour internally so look at that for an example. Mike Can you submit all of the data on a form based

ajax versioning

2011-02-09 Thread Istvan De
Hi! In case I have a bookmarkable page with some AJAX on it (form+table) and the user can navigate away and back to this page (using the back button). How can I make sure that in case of the back button, the user will see the state of the page after the AJAX modifications? Best regards, Istv

Ajax onChange but also submit all data on a form

2011-02-09 Thread Brown, Berlin [GCG-PFS]
Can you submit all of the data on a form based on an onchange event? Is adding javascript the only way to submit the data? Pseudo Code: Panel { Form form = new Form(new CompoundPropertyModel()); add(form); form.add(new TextField("val"); form.add(childList = new DropDownChoice());

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Attila Király
Hi, 2011/2/9 Dmitriy Neretin > Thank you it finally works! :) > Great! > But what I still don't understand: the problem appeared after I inserted > following in the custom session constructor: > > InjectorHolder.getInjector().inject(this); > > And why it worked with only one WicketTester cons

RE: Wicket Philosophy/Best Practice

2011-02-09 Thread Wilhelmsen Tor Iver
> I tell people that I think you should let your Model and Model backing > object control the look and feel/display/content of your components. > Even visibility should be delegated to the model or model object and not > set by the component. Am I wrong here? Yes. :) The model should NOT car

Wicket Philosophy/Best Practice

2011-02-09 Thread Brown, Berlin [GCG-PFS]
I tell people that I think you should let your Model and Model backing object control the look and feel/display/content of your components. Even visibility should be delegated to the model or model object and not set by the component. Am I wrong here? I use this approach (only work with the M

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
Thank you it finally works! :) But what I still don't understand: the problem appeared after I inserted following in the custom session constructor: InjectorHolder.getInjector().inject(this); And why it worked with only one WicketTester constructor parameter (new MyApplication)? And after Spring

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Attila Király
The problem is that your test is not actualy running in a servlet container, only in a wicket mocked servlet context. To access webapp resources in the test you have to specify in the second parameter of WicketTester constructor where your web app's root is. Like this (in a maven project): WicketT

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
Hi, thank you! Now I know how to get the ServletContext :) But it didn't solve the main problem. This time I got following exception: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Attila Király
Hi, Try this in your application's #init() method (before calling #refresh() on ctx) ctx.setServletContext(getServletContext()); Attila 2011/2/9 Dmitriy Neretin > Thank you for reply, > > yes! And I get then another exception :) > > Cannot resolve ServletContextResource without ServletContext

Re: AjaxCheckBox not Disabling Checkbox on call to onUpdate

2011-02-09 Thread sheadley3228
I have found a solution to my first problem which was Disabling my checkbox. I did it by changing my listView to a RefreshingView and then using AjaxEventBehavior on my checkbox like so: final RefreshingView rv = new RefreshingView("mychanges") { @Override

When 1.4.16 going to be released

2011-02-09 Thread Przemek Kubicki
Hi folks, anyone know when 1.4.16 will get released? Cheers - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
Thank you for reply, yes! And I get then another exception :) Cannot resolve ServletContextResource without ServletContext Does andybody know how can I get/set the servletContext? Dmitriy On 8 February 2011 18:01, Igor Vaynberg wrote: > did you call context.refresh() ? like the error message

Re: cleanup form values and feedback messages

2011-02-09 Thread Hans Lesmeister 2
Hi, hrbaer wrote: > > > ... > try { > pm.makePersistent( ent ); > modal.show( target ); > target.add(feedback); <=== I guess this was missing > } > > - > You need to add the feedback to the target on success as well Cheers Hans

StatelessForm growing url when there is errorvalidation

2011-02-09 Thread Olivier Dutrieux
Hello, I have a strange problem with statelessForm : I would like a stateless application with 2 statelessForm and with somes required validators on form : public class HomePage extends WebPage { private static final long serialVersionUID = 1L; public HomePage(final PageParameters

Re: Is there anyway to get a bookmarkable url from calling setResponsePage?

2011-02-09 Thread Martijn Dashorst
On Wed, Feb 9, 2011 at 10:20 AM, Wayne W wrote: > Another question if you don't mind? Quite often we have a bookmarkable > page with a form or link on it. This form/link will update the model > and redisplay the current page. When this happens we loose the > bookmarkable url. At the end of the onS

Re: Is there anyway to get a bookmarkable url from calling setResponsePage?

2011-02-09 Thread Wayne W
thanks Martijn, I was looking at someone's else code and it was : params.add(PROJECTID, info.getId().toString()); setResponsePage(new =ProjectPage(params)); rather than: params.add(PROJECTID, info.getId().toString()); setResponsePage(ProjectPage.class, params); Need coffee. Sorry about that. Th

Re: Is there anyway to get a bookmarkable url from calling setResponsePage?

2011-02-09 Thread Martijn Dashorst
On Wed, Feb 9, 2011 at 9:37 AM, Wayne W wrote: > 2- is there a better strategy to having all url's bookmarkable > (providing the page supports pageparamters)? Are there any changes in > wicket 1.5 to make life more easy? Default constructor or constructor with pageparameters: you can take a look

Re: Is there anyway to get a bookmarkable url from calling setResponsePage?

2011-02-09 Thread Martijn Dashorst
setResponsePage(Page.class, new PageParameters()); On Wed, Feb 9, 2011 at 9:37 AM, Wayne W wrote: > Hi, > > I love using wicket (1.4) its by far the best web framework for java I > have used. However the one thing that really is hard work is the url > handling for me. > > Our users all the time w

Is there anyway to get a bookmarkable url from calling setResponsePage?

2011-02-09 Thread Wayne W
Hi, I love using wicket (1.4) its by far the best web framework for java I have used. However the one thing that really is hard work is the url handling for me. Our users all the time want to copy and paste the url of a given page in to an email or use in a comment to link to something in the app