RestartResponseAtInterceptPageException

2012-08-13 Thread Madasamy Sankarapandian
Our application throw this exception when the session is invalidated. throw new RestartResponseAtInterceptPageException(LoginPage.class); it is working fine on wicket 1.4.x but it is not working on wicket 1.5.7.

Re: RestartResponseAtInterceptPageException

2012-08-13 Thread Josh Kamau
Whoever put that code there wanted it to take a user back to the LoginPage whenever there is no valid session. It makes sense. Do you want it to behave otherwise? Josh. On Mon, Aug 13, 2012 at 10:53 AM, Madasamy Sankarapandian < madas...@mcruncher.com> wrote: > Our application throw this except

Generic search form/panel implementation

2012-08-13 Thread nunofaria11
Hi, I am trying to implement a generic search form/panel in Wicket. The form should allow searches in several fields in an Entity (using the DAO pattern) in order to filter the output of a ListView or a DataView. What is the best way to do this? I've thought of doing this using an extended DataPro

Re: Searching for new experience with wicket

2012-08-13 Thread nunofaria11
Hello there, I would also be interested in contributing to Wicket. I've recently started working (recent graduate) and I am now working with technologies such as Java, Wicket, Hibernate, CSS (messing around with Twitter Bootstrap) and a little bit of JavaScript and JQuery. Also I think it would b

Re: RestartResponseAtInterceptPageException

2012-08-13 Thread Madasamy Sankarapandian
In our application we are intent to throw the RestartResponseAtInterceptPageException. but it is not properly redirect to the LoginPage.

RE: wicket-dnd strange situation

2012-08-13 Thread Hielke Hoeve
Hi Decebal, Sorry for the late response but I was on holiday. The 2 code snippets below do exactly the same. They look different but they both perform "new wicketdnd.DropTarget(...)" when the dom is loaded and ready. Can you provide a better/bigger example? I checked your other posts and saw a

Re: issue refreshing covered panel when modalwindow is open

2012-08-13 Thread David JavaDeveloper
Try to use the "replaceWith" method on the dataTable component. I'm attaching a piece of code where we use this method in (*another *but similiar) situation where we need to replace the content of a modal window when the selected line (of dataTable) is changed: add(new AjaxLink("details")

Checkbox in DataTable is not reflecting its sts in checkbox

2012-08-13 Thread Delange
Hi, in this program i use a datatable with selections. In the column beneath the filtercolum i added a checkbox. The user must select wich records the program must add to another file (at the end) In this example the table is shown correctly, it has a checkbox. But whatever I do I'll never see an

Re: Using Jasypt for URL encryption not working (Wicket 1.5.7)

2012-08-13 Thread Michael M
Hi, I tried that, however I'm not familiar enough with the URL encryption procedure to find the error. Also, the Jasypt exception is very general due to security reasons. Here's a link to the FAQ: http://www.jasypt.org/faq.html#i-keep-on-receiving-encryption-operation-not-possible I've uploaded a

Basic JUnit Test

2012-08-13 Thread JCoder
Hi all, Im working at a basic Unit Test that looks like this: 1. tester.assertRenderedPage(FirstPage.class); 2. FormTester formTester = tester.newFormTester("myForm"); 3. formTester.submit("myButton"); 4. tester.assertRenderedPage(SecondPage.class); All lines work as expected. Only line 4 fails.

WicketRuntimeException: "Submit Button ... is not enabled"

2012-08-13 Thread eugenebalt
We have an Ajax button which, when clicked, occasionally produces this WicketRuntimeException: ERROR [WebContainer : 17] (RequestCycle.java:1521) - Submit Button myPanel:editButton (path=myForm:myPanel:editButton) is not enabled org.apache.wicket.WicketRuntimeException: Submit Button myPanel:edit

How to control IMG/CSS URL-Rewriting in mounted pages?

2012-08-13 Thread Joachim Schrod
Hi, I'm new to Wicket and write my first application in it. I use "Wicket in Action" and online resources as documentation. (I stumbled already about the 1st few roadblocks owing to changes from Wicket 1.4 to 1.5. ;-)) So, if there's an easy pointer to answer my question, don't hesitate to just se

Has anyone an example of a checkbox in a DataTable

2012-08-13 Thread Delange
I tried everything, I spent a whole day reading comments in this on the internet. Please please please, thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Has-anyone-an-example-of-a-checkbox-in-a-DataTable-tp4651182.html Sent from the Users forum

Re: Has anyone an example of a checkbox in a DataTable

2012-08-13 Thread Martin Grigorov
http://www.wicket-library.com/inmethod-grid/data-grid/item-selection The code is at https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/inmethod-grid-parent On Mon, Aug 13, 2012 at 6:19 PM, Delange wrote: > I tried everything, I spent a whole day reading comments in this on the > in

Re: Searching for new experience with wicket

2012-08-13 Thread Martin Grigorov
Hi, Check my previous message for the details. Checkout the new code, investigate it for a while, checkout the code for the old wicket-examples (https://github.com/apache/wicket/tree/master/wicket-examples) and start migrating the old examples one by one to the new design. When ready with migrati

Re: Checkbox in DataTable is not reflecting its sts in checkbox

2012-08-13 Thread Bertrand Guay-Paquet
Hi, In the constructor of UserActionsPanel, the checkbox is created like so: add(new CheckBox("select", item.getModel())); However, I think item.getModel() returns an IModel> type. This can't work in a CheckBox which requires a Boolean model. On 13/08/2012 8:33 AM, Delange wrote: Hi, in th

Re: Basic JUnit Test

2012-08-13 Thread Martin Grigorov
Hi, Put a breakpoint in the button's onSubmit() method and see whether it is actually called. It could be that you need to call formTester.submit("myForm:myButton"); On Mon, Aug 13, 2012 at 5:18 PM, JCoder wrote: > Hi all, > > Im working at a basic Unit Test that looks like this: > > 1. tester.a

Re: RestartResponseAtInterceptPageException

2012-08-13 Thread Martin Grigorov
Hi, Please give more details what actually happens. "It doesn't work" doesn't explain much. On Mon, Aug 13, 2012 at 12:15 PM, Madasamy Sankarapandian wrote: > In our application we are intent to throw the > RestartResponseAtInterceptPageException. > but it is not properly redirect to the LoginPa

Re: enabling and disabling the components

2012-08-13 Thread wicket user
Thanks, it is working but some wierd thing is happening. I have checked the values in the object also it is getting populated but just one component is visible otherwise none. PriceVO priceVO if(priceVO.getOnSalePrice()!=null) add(new Label("onSalePrice", " " + p

how to get HttpServletRequest in My Application class

2012-08-13 Thread wicket user
Hi, I need to get the HttpServletRequest object in My Application class. In the WebPage we can get from ((HttpServletRequest) ((ServletWebRequest) getRequest()).getContainerRequest()) but its not working in Application class. Please suggest any ideas. -- View this message in context: http

Re: WicketRuntimeException: "Submit Button ... is not enabled"

2012-08-13 Thread Bertrand Guay-Paquet
Hi, When a form is submitted, it checks whether the submitting component is a Wicket component. If it is (your case), it makes sure that it's enabled and visible. I guess this is to prevent users manipulating with the form submission process. In any case, if any of the 2 conditions is not met

Re: how to get HttpServletRequest in My Application class

2012-08-13 Thread Andrea Del Bene
Try this: ((ServletWebRequest)RequestCycle.get().getRequest()).getContainerRequest() Hi, I need to get the HttpServletRequest object in My Application class. In the WebPage we can get from ((HttpServletRequest) ((ServletWebRequest) getRequest()).getContainerRequest()) but its not working in

Re: How is the better way to use repeated forms using ajax?

2012-08-13 Thread Bertrand Guay-Paquet
Hi, On 13/08/2012 12:13 PM, Roger Palacios wrote: Hi every all. This is my first mail in wicket mailing list. Welcome! I want to update the groups doing ajax submits. I tried using ListView, but, I dont know why, when I click 'save' button the changes are reflected on in the first group pane

RE: Searching for new experience with wicket

2012-08-13 Thread Paul Bors
Also read the articles on http://wicket.apache.org from under the Contribute left side section :) ~ Thank you, Paul Bors -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, August 13, 2012 11:52 AM To: users@wicket.apache.org Subject: Re: Searching for

RE: Basic JUnit Test

2012-08-13 Thread Paul Bors
Also get familiar with the API for the WicketTester that extends BaseWicketTester. There are quite a few useful methods that can aid you during unit testing such as BaseWicketTester#debugComponentTrees() which will output the wicket component tree. In our unit tests we extended from WicketTest

Re: how to get HttpServletRequest in My Application class

2012-08-13 Thread wicket user
I am getting java.lang.NullPointerException ((ServletWebRequest)RequestCycle.get().getRequest()).getContainerRequest() . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-HttpServletRequest-in-My-Application-class-tp4651189p4651196.html Sent from the Use

RE: Generic search form/panel implementation

2012-08-13 Thread Paul Bors
We have some proprietary small projects in our product developed in Wicket that matches your request. I had to develop something similar for a form that draws itself on the screen in a tab panel whose meta-data is in XML which in turn is uploaded to the product as a plug-in at run-time. To get thi

RE: how to get HttpServletRequest in My Application class

2012-08-13 Thread Paul Bors
For your reference also see: https://cwiki.apache.org/WICKET/getting-a-url-for-display.html ~ Thank you, Paul Bors -Original Message- From: wicket user [mailto:samd...@live.com] Sent: Monday, August 13, 2012 1:07 PM To: users@wicket.apache.org Subject: Re: how to get HttpServletRequest

RE: how to get HttpServletRequest in My Application class

2012-08-13 Thread Paul Bors
BTW, if you get a NPE on RequestCycle.get() then you most likely place this code outside a Wicket Component like a Page. Try moving it to a page first and see if you grab a reference to the request object. If you do, then pass it as a parameter to your other method/class. For older version of Wic

Re: How is the better way to use repeated forms using ajax?

2012-08-13 Thread Roger Palacios
Thanks for responding. The code I did send before is simplified, and translated to english: The equivalents classes are: Grupo = Group Solicitante = Person here is: public class PanelGrupo extends Panel { private AsignacionModel asignacionModel; private WebMarkupContainer listContainer;

Re: How is the better way to use repeated forms using ajax?

2012-08-13 Thread Bertrand Guay-Paquet
Which part doesn't work in that code? The only ajax part is the cancelButton but this doesn't fit the description from your first email. On 13/08/2012 1:25 PM, Roger Palacios wrote: Thanks for responding. The code I did send before is simplified, and translated to english: The equivalents cla

Not to validate the Html while rendering in wicket

2012-08-13 Thread vinitty
I want to disable the Html validation while rendering in wicket 1.5.7 I am running wicket in deployment mode Please suggest its urgent -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-to-validate-the-Html-while-rendering-in-wicket-tp4651202.html Sent from th

Re: Not to validate the Html while rendering in wicket

2012-08-13 Thread Bertrand Guay-Paquet
That's weird. I thought this was disabled by default when Wicket is in deployment mode... On 13/08/2012 3:36 PM, vinitty wrote: I want to disable the Html validation while rendering in wicket 1.5.7 I am running wicket in deployment mode Please suggest its urgent -- View this message in co

Re: how to get HttpServletRequest in My Application class

2012-08-13 Thread Joachim Schrod
wicket user wrote: > > I need to get the HttpServletRequest object in My Application class. In the > WebPage we can get from > > ((HttpServletRequest) ((ServletWebRequest) > getRequest()).getContainerRequest()) > > but its not working in Application class. I'm new to Wicket, but it seems obvi

Re: Not to validate the Html while rendering in wicket

2012-08-13 Thread vinitty
I was thinking the same thing but it looks like it is not and its throwing an exception -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-to-validate-the-Html-while-rendering-in-wicket-tp4651202p4651205.html Sent from the Users forum mailing list archive at Nabble

Re: RestartResponseAtInterceptPageException

2012-08-13 Thread b...@sharklasers.com
Please refer to http://apache-wicket.1842946.n4.nabble.com/RestartResponseAtInterceptPageException-problem-in-1-5-td4255020.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RestartResponseAtInterceptPageException-tp4651162p4651171.html Sent from the Users forum m

RE: Is there a way to search component by its wicket ID ?

2012-08-13 Thread Paul Bors
In my unit test code I use: com.googlecode.londonwicket wicket-component-expressions 0.2.0 test org.apache.wicket wicket Or see: http://code.google.com/p/londonwicket/source/browse/repo/com/googlecode/lond onwicket/wicket-component-exp

Re: RestartResponseAtInterceptPageException

2012-08-13 Thread Madasamy Sankarapandian
we are identify the problem in our application.we are properly handle the continueToOriginalDestination() method,our application working fine. Thank you very much for your help

Problem sending email using SSL after upgrading to Wicket 1.5

2012-08-13 Thread James Eliyezar
Greetings to all of you. We recently upgraded our application to Wicket 1.5. However, after upgrading we had problems sending email using SSL from our application. This may not be related to wicket at all but I promise we didn't change any dependencies other than wicket's. What amuses me is that i

Re: Is there a way to search component by its wicket ID ?

2012-08-13 Thread James Eliyezar
You can definitely search by wicket id but you may have to specify the hierarchy as well. Something like this, TextField usernameField = (TextField) get("userForm:username"); > to get the text field component with the wicket id "username" inside the form whose wicket id is "userForm". Hope this

Avoiding XMlPullParser Parse exception

2012-08-13 Thread vinitty
I am migrating from 1.3.4 to 1.5.7 No in my Html some places extra quotes are exits but my Html was working fine in 1.3.4 Now in 1.5.7 parsing exception is coming I can not modified htmls as i am having around 1k htmls please suggest what to do and how to solve this -- View this message in

Re: How to control IMG/CSS URL-Rewriting in mounted pages?

2012-08-13 Thread Martin Grigorov
Hi, If your images/css are in the web root then use something like "images/image.img" in your .html. Wicket will make the url relative to the web root no matter what mount path you use for the page. On Mon, Aug 13, 2012 at 5:41 PM, Joachim Schrod wrote: > Hi, > > I'm new to Wicket and write my f

Re: Problem sending email using SSL after upgrading to Wicket 1.5

2012-08-13 Thread Martin Grigorov
Hi, I don't think this is anyhow related to Wicket. Here are the GMail SMTP related props I use successfully: mail.server.host=smtp.gmail.com mail.server.port=587 mail.server.username=my.em...@gmail.com mail.server.password=my-passwd mail.server.starttls.enable=true You may also check the docs o

Re: Avoiding XMlPullParser Parse exception

2012-08-13 Thread Martin Grigorov
Hi, You better fix your HTML. This will improve the way it is rendered too. I hope you don't have invalid HTML in all these 1k html files. On Tue, Aug 14, 2012 at 9:09 AM, vinitty wrote: > I am migrating from 1.3.4 to 1.5.7 > No in my Html some places extra quotes are exits but my Html was worki

Re: Avoiding XMlPullParser Parse exception

2012-08-13 Thread vinitty
Hmm So there is no other way ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Avoiding-XMlPullParser-Parse-exception-tp4651210p4651214.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: How to control IMG/CSS URL-Rewriting in mounted pages?

2012-08-13 Thread Joachim Schrod
Yes, that's what I observed and described below. And that behavior is not appropriate for my use case. So, how can I stop Wicket to "make the url relative to the web root no matter what mount path I use for the page"? I want to *change* that: my designer delivers HTML where the images are *not* r