Re: [Notice] wicketstuff-core trunk is now tracking wicket 1.5-SNAPSHOT

2010-08-17 Thread Martin Grigorov
Thank you, Mike! On Tue, Aug 17, 2010 at 2:12 AM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote: Hello, Based on the vote there were 3 votes for and none against. All those who voted wanted trunk to track 1.5-SNAPSHOT versus a stable milestone. I have created a branch to track

Re: How to render Enum values as RadioGroup and set default value

2010-08-17 Thread Sven Meier
datazuul wrote: But as I have to use different models for the group and the listview, the default setting with user.setGender has no effect. Sure, the group has a model pointing to the user's gender, the listview a model holding all available genders. Your code looks fine to me,

Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Steve Mactaggart
Hi all, I have a simple problem that I wanted to cast out to the wider Wicket community for a best practice. We try and use BookmarkablePageLinks for as much as we can, obviously so that pages can be bookmarked. Therefore nearly every page is constructed via the PageParameters method. We have a

Re: AjaxPagingNavigator give out strange error

2010-08-17 Thread Igor Vaynberg
and yet it works just fine here: http://wicketstuff.org/wicket14/ajax/pageables create a quickstart and attach it somewhere. that way we dont have to grasp at straws. -igor On Mon, Aug 16, 2010 at 12:42 PM, btbluesky btblue...@gmail.com wrote: I tried to use AjaxPagingNavigator in a simple

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Josh Kamau
HI Steve; When i want to maintain bookmarkable pages, i normally pass the record primary key in the PageParameters map . Once i have the primary key on the next page, i can use my dao to retrieve the object and may be float a div to display the record. On Tue, Aug 17, 2010 at 10:57 AM, Steve

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Sven Meier
See Session#info() , it stores messages in the session. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-Practice-passing-data-between-Bookmarkable-pages-tp2327897p2328021.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: DropDownChoice does not push value into Model

2010-08-17 Thread nivs
Hi James Point(s) noted. I have got something going here and it is working but is this what you meant? Please see attached code and do bear with my questions. The variable studyReference which is the one that is wrapped within a PropertyModel, remains or maintains the same reference even if the

Problem with page being redirected/loaded over and over again

2010-08-17 Thread Laurentiu Trica
Hello, I followed the https://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs tutorial. I have, since, a problem with my homepage. It gets from / to /en and then to /en/welcome and back again to /, then /en and /en/welcome. The first redirect is correct as I want it to go

Re: How to render Enum values as RadioGroup and set default value

2010-08-17 Thread datazuul
Sven Meier wrote: datazuul wrote: But as I have to use different models for the group and the listview, the default setting with user.setGender has no effect. Sure, the group has a model pointing to the user's gender, the listview a model holding all available genders. As

inmethod grid test fails

2010-08-17 Thread nino martinez wael
Hi Guys I am having some trouble testing the inmethod grid, specifically when I remove a row from the data list. On pagerender the grid tries to render the deleted row, which of course does not exist anymore. This problem does not occur running the application for real. I try to click the column

RadioGroup not selected on error

2010-08-17 Thread Bilgin Ibryam
Hi, I have a form with few fields and a RadioGroup. The RadioGroup model is bound like this radioGroup.setModel(model.bind(searchType)); Initally the radio options are selected correctly depending on model values. The problem happens when I submit the form, and there are validation errors. Then

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread MattyDE
Are there any other ways? I need to pass a complex object-list to a BookmarkablePage for loading them properly, but i dont want to see them in the URI (PageParameters)... and using a Session-Variable is not multi-tasking save, i think? Any other hints? Thanks a lot! -- View this message in

Re: DropDownChoice does not push value into Model

2010-08-17 Thread James Carman
In your onSubmit() method, you're referring to the local variable studyReference. Why not try getting the model value while inside the method? On Tue, Aug 17, 2010 at 6:04 AM, nivs shravann...@gmail.com wrote: Hi James Point(s) noted. I have got something going here and it is working but is

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Martijn Dashorst
How does the user request the page with your list items without page parameters? I'm confused how you can say it should be bookmarkable without providing the necessary information to the client needed to reconstruct the page? Martijn On Tue, Aug 17, 2010 at 12:58 PM, MattyDE

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread MattyDE
I see, i didn't explain it clearly ;) I've a Page which displays a list of objects. But in some cases i want to preselect some elements of this list by a user-choice from a formular on another site. So i want the user to choice a few objects, and than i want to redirect to my ListPage an mark

Re: RadioGroup not selected on error

2010-08-17 Thread Bilgin Ibryam
The answer for my question was in the Radio class documentation: STATELESS NOTES: By default this component cannot be used inside a stateless form. If it is desirable to use this inside a stateless form then override #getValue() and return some stateless value to uniquely identify this radio (eg

Re: DropDownChoice does not push value into Model

2010-08-17 Thread Nivedan Nadaraj
Hi James protected void doLookup(AjaxRequestTarget target, Study studyReference); I really do not need this studyReference. That was just a test I wanted to do. It is the study reference that is used to populate the dropdown. I wanted to see if it gets changed with each submit. I noticed that it

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Steve Mactaggart
We do pass params for the actual page's content, but this is transient information that I don't want leaking into my URLs. Its usually a simple text message, so I'll look into Session#info(), but I have had some success with my earlier ideas of setMetaData. Is there a true purpose for

Re: Re Wicket Web Beans

2010-08-17 Thread Nivedan Nadaraj
Hi Thanks for that Nick. I guess I will investigate more on this, actually i did get to lookup Dynamic Forms and then linked to WWB. I will do some homework on this topic and bounce any questions. Thanks for that Niv On Tue, Aug 17, 2010 at 11:11 AM, Nick Heudecker nheudec...@gmail.comwrote:

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Martijn Dashorst
It's a good usecase for metadata. No problem there. Martijn On Tue, Aug 17, 2010 at 2:59 PM, Steve Mactaggart st...@whitesquaresoft.com wrote: We do pass params for the actual page's content, but this is transient information that I don't want leaking into my URLs.  Its usually a simple text

Re: Re Wicket Web Beans

2010-08-17 Thread Nivedan Nadaraj
Hi Daniel It is more of a dynamic form thinking of it I might investigate more on this in Wicket. But here is a link and is pretty much what we want to achieve using wicket

Re: BrowserInfoPage and HelloBrowser on Firefox

2010-08-17 Thread Dirk Forchel
I still got no solution for the problem mentioned above. I assume the detection of JavaScript with the following line of code does not work for Firefox even if JavaScript support is enabled: ((WebClientInfo)Session.get().getClientInfo()).getProperties().isJavaEnabled(); This works for IE but

AjaxFormSubmitBehavior causes serialization issues inside onBeforeRender()

2010-08-17 Thread allgo
Hi fellow wicket users, I am a user of Wicket 1.4.8 I am trying to use a TabbedPanel inside which there are several individual Panels. Now one of the Panel has a form with quite a few RadioChoices and DropDownChoice objects. I am updating a top level flag whenevr there is any change on any form

Re: using cometd with threads

2010-08-17 Thread fachhoch
I wan to inject Bayeaux service in a pojo initialized by spring , please sugest me how can I get servlet context in a spring bean ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2328511.html Sent from the Wicket - User

Re: using cometd with threads

2010-08-17 Thread Rodolfo Hansen
You may use a servlet context listener... Get the spring applicationContext and add the Bayuex Service been to it when it context is initialized http://www.java-tips.org/java-ee-tips/java-servlet/how-to-work-with-servletcontextlistener.html On Tue, 2010-08-17 at 08:06 -0700, fachhoch wrote:

Re: using cometd with threads

2010-08-17 Thread jcgarciam
I haven't tried this myself, but take a look into the Spring interface ServletContextAwarehttp://static.springsource.org/spring/docs/2.5.x/api/org/springframework/web/context/ServletContextAware.htmlit may shed some light to achieve what you want. * * * * On Tue, Aug 17, 2010 at 12:06 PM,

Re: DynamicWebResource duplicate request

2010-08-17 Thread DmitryM
Missed an obvious thing (use the source, Luke) - there is the getLength() method on the resourcestate (which also needs to load the data). So, needed more accurate implementation of the getResourceState. Closing the topic. -- View this message in context:

Re: Custom AJAX component...

2010-08-17 Thread Erik Brakkee
On Tue, Aug 17, 2010 at 7:02 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: In case of wiQuery, many behaviors wicket AJAX is used (not jquery AJAX) so it seem natural to use AbstractDefaultAjaxBehavior. In other cases probably you are right and it is over killing. Is that what you

Re: Custom AJAX component...

2010-08-17 Thread Erik Brakkee
Thanks to wicket's clean code I am a bit further now. It looks like it is possible to add custom javascript to be executed just before and after rendering the components. This can be done using AjaxRequestTarget.append/prependJavascript(). So in other words, using this method it is possible to

Re: Custom AJAX component...

2010-08-17 Thread Ernesto Reinaldo Barreiro
1-use the behavior to generate a URL. 2-use that URL on client side to call the behavior 3-use the behavior to produce the content you want to stream (XML). 4-do what ever you want with that contents. That's more or less what the jqgrid example does. Does that approach fit your use case? Ernesto

Re: Custom AJAX component...

2010-08-17 Thread Erik Brakkee
I have found this page https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html which talks about wicketAjaxGet() and wicketAjaxPost(), but again no mention of how to access the body that is sent using wicketAjaxPost(). Only request parameters are discussed. Is accessing the body

RE: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Alex Rass
I may be missing smth simple, but usually to pass data within a session, I override Session and add whatever holders I need there. You can add a generic set/getMetaObject one if you want - it's your class. Wicket should be able to manage the session objects happily. - Alex -Original

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread James Carman
You mean metadata on the session? On Tue, Aug 17, 2010 at 9:11 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: It's a good usecase for metadata. No problem there. Martijn On Tue, Aug 17, 2010 at 2:59 PM, Steve Mactaggart st...@whitesquaresoft.com wrote: We do pass params for the

RE: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Alex Rass
No. I mean: You can getSession() to get to the session object. (I saw you use that so I know you know about it) But in your Application class, you can create whatever session object you want as long as it overrides the right class (there's a method for creating the session you'd override). Then

Re: BrowserInfoPage and HelloBrowser on Firefox

2010-08-17 Thread Igor Vaynberg
javaEnabled=true for me with firefox on wicketstuff.org/wicket14 -igor On Tue, Aug 17, 2010 at 7:18 AM, Dirk Forchel dirk.forc...@exedio.com wrote: I still got no solution for the problem mentioned above. I assume the detection of JavaScript with the following line of code does not work

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread James Carman
Notice my reply wasn't to your email. It was to Martijn's. :) On Tue, Aug 17, 2010 at 5:09 PM, Alex Rass a...@itbsllc.com wrote: No. I mean: You can getSession() to get to the session object. (I saw you use that so I know you know about it) But in your Application class, you can create

Re: Problem with page being redirected/loaded over and over again

2010-08-17 Thread Igor Vaynberg
is your homepage mounted on /welcome? maybe you did not correctly implement the url coding strategy, make sure it encodes your homepage as /en/welcome and not as / just guessing since you didnt show any code. feel free to create a quickstart that reproduces the issue and attach it to a jira

Re: AjaxFormSubmitBehavior causes serialization issues inside onBeforeRender()

2010-08-17 Thread Igor Vaynberg
because your behavior is an anonymous class it keeps a reference to its parent - the visitor. visitors are not serializable. the easiest way to fix it is to make the behavior you are adding an inner class of the page. -igor On Tue, Aug 17, 2010 at 8:05 AM, allgo soumya_...@yahoo.co.in wrote:

Delegate loading of wicket-event.js?

2010-08-17 Thread bht
Hi, I get two instances of wicket-event.js and other resources in the browser cache due to the probing for client cookie suport on the first page in the browser session. One with jsessionid in the URl and one without. Can Wicket delegate the loading of these (extracted from the jar file) files

Re: Delegate loading of wicket-event.js?

2010-08-17 Thread Igor Vaynberg
you should file this as a bug, packagedresourcereference urls should not be encoded with the session id -igor On Tue, Aug 17, 2010 at 6:30 PM, b...@actrix.gen.nz wrote: Hi, I get two instances of wicket-event.js and other resources in the browser cache due to the probing for client cookie

dialog

2010-08-17 Thread james yong
Hi, Is there any suggestion on creating a dialog? I have look at the following: 1. wiquery has little documentation on creating dialog, and no source codes for the example war file. 2. visural-wicket isn't working for me at 1st try. Maybe due to some javascript conflict with my existing

Re: dialog

2010-08-17 Thread Martin Makundi
http://wicketstuff.org/wicket14/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.modal.ModalWindowPage 2010/8/18 james yong i_yon...@yahoo.com.sg: Hi, Is there any suggestion on creating a dialog? I have look at the following: 1. wiquery has little documentation on

Re: Delegate loading of wicket-event.js?

2010-08-17 Thread bht
Thanks Igor. https://issues.apache.org/jira/browse/WICKET-2999 Regards, Bernard On Tue, 17 Aug 2010 18:31:50 -0700, you wrote: you should file this as a bug, packagedresourcereference urls should not be encoded with the session id -igor On Tue, Aug 17, 2010 at 6:30 PM, b...@actrix.gen.nz