Getting the html output of a wicket panel

2011-10-31 Thread mango-object
we are trying to get the rendered output of a wicket panel (inside the current page) into a string variable so that it can be embedded into a email or let the user edit it in an editor such as TinyMCE. I found this post that is really helpful, but we only need the output of a panel, not the curren

PageExpired in non bookmarkable page with 1.5.2

2011-10-31 Thread Seko Masaya
Hi. I'm having trouble PageExpired exception in non Bookmark page. In the case of Wicket 1.5.2 is the log output when sending PageExpired exception. No output in Wicket 1.5.0. I hope behavior of Wicket 1.5.0. log: ERROR - RequestHandlerStack- Error detaching RequestHandler org.apache.wick

Re: request parameters

2011-10-31 Thread Igor Vaynberg
getRequest().getQueryParameters() will get you the query string params -igor On Mon, Oct 31, 2011 at 6:07 PM, kamiseq wrote: > well this is not fixed. > the url will alwyas begin with > * > myapp.com/mypage/val1/val2* > > but it may also contain additional keys like > > *myapp.com/mypage/val1/va

Re: request parameters

2011-10-31 Thread kamiseq
well this is not fixed. the url will alwyas begin with * myapp.com/mypage/val1/val2* but it may also contain additional keys like *myapp.com/mypage/val1/val2?key=val* or *myapp.com/mypage/val1/val2?otherkey=val&keykey=val* etc inside my page im only interested in val1, val2 and depend on those v

Re: Wrong path for resources on redirected login page

2011-10-31 Thread bjolletz
Hi! I saw that you made a commit to trunk to fix the WICKET-4138 issue, so I tried running my project with the snapshot version of wicket-core, and now it seems to work as it should! Good job and a big thank you! I guess you dont need me to create a quickstart now? Also, I didn't realize that th

Re: request parameters

2011-10-31 Thread Igor Vaynberg
under what key should ${param1}/${param2} be stored? -igor On Mon, Oct 31, 2011 at 3:30 PM, kamiseq wrote: > hej, > I need to obtain request parameters as Map like I would if I had > access to HttpServletRequest but with PageParameters I can't find a > way to do it > > I have mounted page with p

request parameters

2011-10-31 Thread kamiseq
hej, I need to obtain request parameters as Map like I would if I had access to HttpServletRequest but with PageParameters I can't find a way to do it I have mounted page with pattern : /mypage/${param1}/${param2} so every time I get request to myapp.com/mypage/val1/val2?key=val I would like to g

Re: HTML5

2011-10-31 Thread anantasthana
Thanks I really appreciate it ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTML5-tp3961486p3961694.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: use

Re: Stale models in a form with a lot of AJAX

2011-10-31 Thread Andrew Schetinin
Hi again, Sorry, it looks like the model object got assigned to an old copy along the road, so there is no any problem with the models. Regards, Andrew On Mon, Oct 31, 2011 at 10:28 PM, Andrew Schetinin wrote: > Hi, > > I have a form that contains a complex object in a model, and I pass that >

Re: HTML5

2011-10-31 Thread anantasthana
Oh good to know thanks for the good work. -Original Message- From: Marek Šabo [via Apache Wicket] ml-node+s1842946n3961497...@n4.nabble.com Date: Mon, 31 Oct 2011 13:26:24 To: anantasthana Subject: Re: HTML5 Hi, HTML5 extension for wicket is in wicketstuff repisitory: https://github

Stale models in a form with a lot of AJAX

2011-10-31 Thread Andrew Schetinin
Hi, I have a form that contains a complex object in a model, and I pass that model to several panels within the form. Various components on the panels may invoke AJAX calls and update pieces of that object, and then update other controls to reflect the changes. What happens is that one drop-down

Re: HTML5

2011-10-31 Thread Marek Šabo
Hi, HTML5 extension for wicket is in wicketstuff repisitory: https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent I'm currently analyzing support for offline features and semantic support (microdata/scheme.org) and plan to work on it in near future. Regards, Ma

HTML5

2011-10-31 Thread anantasthana
Hi, I was looking at a lot of new features of HTML5. I did see HTML 5 support was one of the things in the wicket wish list. Does any one have an idea of when and if wicket plans to support HTML5 ? It would be great if it did provide HTML5 support soon. -- View this message in context: http://apa

Re: Error with tree component with 1.5.2

2011-10-31 Thread Pavol Zibrita
Probably serialization issue? And the browser still holds some old serialized classes? Or somwhere saved old sessions with old classes? just guess. Regards, Pavol On Mon, Oct 31, 2011 at 7:27 PM, Martin Grigorov wrote: > I guess only IE is problematic ? > > Create a quickstart and attach it to

Re: Simple question: RESTful page parameters

2011-10-31 Thread Igor Vaynberg
mount(new MountedMapper("user", new UrlPathPageParametersEncoder())); -igor On Mon, Oct 31, 2011 at 11:34 AM, Sky USC wrote: > > Hi This is a simple question with a simple answere I have not yet been able > to figure out in wicket 1.5.2. I did get it working in 1.4 but since > migration, have

Simple question: RESTful page parameters

2011-10-31 Thread Sky USC
Hi This is a simple question with a simple answere I have not yet been able to figure out in wicket 1.5.2. I did get it working in 1.4 but since migration, have been unable to fix.I read the article at https://cwiki.apache.org/WICKET/request-mapping.html but I think I need a bit more explainat

Re: Error with tree component with 1.5.2

2011-10-31 Thread Martin Grigorov
I guess only IE is problematic ? Create a quickstart and attach it to Jira On Mon, Oct 31, 2011 at 7:26 PM, Peter Diefenthaeler wrote: > Hallo, > I tried to upgrade my wicket projects to the new wicket 1.5.2 release and now > my tree component crashes. > Any Idea? > Thanks, Peter > > ERROR [htt

Error with tree component with 1.5.2

2011-10-31 Thread Peter Diefenthaeler
Hallo, I tried to upgrade my wicket projects to the new wicket 1.5.2 release and now my tree component crashes. Any Idea? Thanks, Peter ERROR [http-bio-8037-exec-9]: Connection lost, give up responding. at org.apache.wicket.DefaultExceptionMapper.internalMap(DefaultExceptionMapper.java

Re: AW: Dynamically choosing component to add

2011-10-31 Thread Bertrand Guay-Paquet
Thank you Sven! On 31/10/2011 11:19 AM, Sven Meier wrote: onBeforeRender() and addOrReplace() are the right combination. Note that according to the javadoc you're not supposed to alter the component hierarchy in onConfigure(). Sven -Ursprüngliche Nachricht- Von: Bertrand Guay-Paquet [m

Re: AJAX-update on ajaxButton click

2011-10-31 Thread Igor Vaynberg
create a quickstart, its hard to grasp what you are doing from your description. -igor On Sun, Oct 30, 2011 at 11:21 PM, Alec Swan wrote: > I am still having a problem after doing the following. > > I created a small panel on the page which contributes JavaScript that > I want to be updated when

AW: Dynamically choosing component to add

2011-10-31 Thread Sven Meier
onBeforeRender() and addOrReplace() are the right combination. Note that according to the javadoc you're not supposed to alter the component hierarchy in onConfigure(). Sven -Ursprüngliche Nachricht- Von: Bertrand Guay-Paquet [mailto:ber...@step.polymtl.ca] Gesendet: Montag, 31. Oktober

Re: Modal Window with Ajax in Firefox

2011-10-31 Thread Jan Ferko
Hi, i am sorry that i didnt reply earlier. I forgot to mention that, when I close modal window with form, I show other modal window and it seems that javascript opens first window instead of new one. On 10/27/2011 12:36 AM, Andrea Del Bene wrote: Hi, I've tried to reproduce your issue but w

Re: Sorting a column containing translated data

2011-10-31 Thread Bertrand Guay-Paquet
Hi, I do exactly what you require in a SortableDataProvider. The provider can access the session's locale and use the translated values to sort its data. The post at http://apache-wicket.1842946.n4.nabble.com/Sorting-a-column-populated-through-pupulateItem-method-tp1877340p1877343.html gives

Re: Dynamically choosing component to add

2011-10-31 Thread Bertrand Guay-Paquet
Thanks for the answer, but that is not what I am looking for. I already know how to replace a component with another one. My question is: I need to access a model's object to know which panel to add to a page (a persisted user preference). Since I shouldn't access a model's object in a compone

Re: Dynamically choosing component to add

2011-10-31 Thread manuelbarzi
MarkupContainer addOrReplace :? . On Mon, Oct 31, 2011 at 2:49 PM, Bertrand Guay-Paquet < ber...@step.polymtl.ca> wrote: > Hi, > > Was is the proper way to choose which panel to add to a page based on a > model's object value? Currently, I directly access the model and check the > value during

Sorting a column containing translated data

2011-10-31 Thread htaneva
Hi all, i am working on applicatation that must support multiple languages. I am using a AjaxFallbackDefaultDataTable and PropertyColumns to represent the data on the screen. I have an Enum objects that must be translated before they are shown. When i try to sort it, the original data is sorte

Dynamically choosing component to add

2011-10-31 Thread Bertrand Guay-Paquet
Hi, Was is the proper way to choose which panel to add to a page based on a model's object value? Currently, I directly access the model and check the value during construction of the page. However, this is wrong since a model's object shouldn't be accessed until component rendering (see thre

Re: Using DropDownChoice to select chexboxes

2011-10-31 Thread htaneva
Hi, thank you for your help. I have solved the problem this way: I put custom logic that updates the sel -HashSet in the AjaxFormComponentUpdatingBehavior of the drop down control. Everytime when the user changes the state of the control , the objects with the certain states are added to the s

Re: WicketTester, enclosures, and assertInvisible

2011-10-31 Thread Martin Grigorov
I just added a note to Enclosure's javadoc about this restriction. If you use Wicket 1.5 then you can use EnclosureContainer instead of and all should be fine. On Mon, Oct 31, 2011 at 3:28 PM, Sebastiaan van Erk wrote: > Hi, > > Thanks for the answer. > > I guess this is the expected behavior o

Re: WicketTester, enclosures, and assertInvisible

2011-10-31 Thread Sebastiaan van Erk
Hi, Thanks for the answer. I guess this is the expected behavior of WicketTester then. Best regards, Sebastiaan On 2011-10-31 14:12, Martin Grigorov wrote: Hi, I hit the very same problem while trying to make a test case for https://issues.apache.org/jira/browse/WICKET-4172. It seems WicketT

Re: WicketTester, enclosures, and assertInvisible

2011-10-31 Thread Martin Grigorov
Hi, I hit the very same problem while trying to make a test case for https://issues.apache.org/jira/browse/WICKET-4172. It seems WicketTester is not able to check that because the Enclosure component is used only at render time (the so called 'auto component') where it says "I'm not visible" and t

WicketTester, enclosures, and assertInvisible

2011-10-31 Thread Sebastiaan van Erk
Hi, I'm using WicketTester to assertInvisible some components. Now I have the following situation: In the code I say comp1 is invisible, so the whole enclosure is invisible. However, in WicketTester, assertInvisible("comp2") fails. I am aware of a previous post about this: http://

Re: Wrong path for resources on redirected login page

2011-10-31 Thread Martin Grigorov
Hi, On Sun, Oct 30, 2011 at 8:04 PM, bjolletz wrote: > Hi! > > After som more hours of debugging I finally think I'm starting to understand > what is happening here. The short version is that I think that this might > indeed be an example of the forward problem in the case you pointed to > above.

Re: DI in wicket

2011-10-31 Thread Chantal Ackermann
Hi, don't forget that the jndi resource needs to be declared in the web.xml, as well. jdbc/Chicago javax.sql.DataSource Container Chantal On Mon, 2011-10-31 at 10:01 +0100, Martin Grigorov wrote: > It depends how you have conf

Re: DI in wicket

2011-10-31 Thread Martin Grigorov
It depends how you have configured your DataSource in Spring's .xml. It should be looked up from JNDI. This problem is Spring related, not Wicket. Please ask for more help in Spring's forums or StackOverflow. On Sun, Oct 30, 2011 at 4:42 PM, vela wrote: > Hi, > > I have configured db configurati