junit for wicket webpage/panel

2012-08-23 Thread wicket user
Hi, I am wondering how to cover the junit cases for the webpages/ panel as the constructors are only taking the id's , but in the constructors of the webpages/panel i have created the some methods for ex: My Panel extends Panel{ MyPanel(String id){ super(id); buildPage(); } private void

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, +

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:

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

enabling and disabling the components

2012-08-09 Thread wicket user
Hi, I am newbie to Wicket,My requirement is to show some components based on the conditions. I have written on WebMarkUpContainer and in that I am add the components based on the conditions, but on html i have added that wicket:id. It is throwing MarkupException Unable to find component with id

Re: enabling and disabling the components

2012-08-09 Thread wicket user
I was reading about setEnable(false), will that will be sufficient for my requirement ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/enabling-and-disabling-the-components-tp4651107p4651108.html Sent from the Users forum mailing list archive at Nabble.com.

Re: enabling and disabling the components

2012-08-09 Thread wicket user
Hi, I tried this . public class MyContainer extends WebMarkupContainer{ public MyContainer(String id, MyVO myVO) { super(id); if(myVO.getName()!=null) add( new Label(fName, myVO.getName())); else add( new Label(fName, )).setVisible(false); } public MyContainer(String id){

Re: how to include jsp into wicket htmls

2012-07-19 Thread wicket user
Can you give a example of include jsp with g.apache.wicket.markup.html.include.Include -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-include-jsp-into-wicket-htmls-tp4650615p4650617.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Form Submission problem

2012-07-18 Thread wicket user
custom filter is extended by the other framework which filter we cannot see as it is Out of the Box. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submission-problem-tp4650575p4650614.html Sent from the Users forum mailing list archive at Nabble.com.

how to include jsp into wicket htmls

2012-07-18 Thread wicket user
I a newbie to Wicket, please can anyone guide how to include a jsp in the wicket. I have existing jsp's I need to include it. i am getting this jsp's dynamically from services. What I did is created a class extending WebMarkContainer. in my class i did like this

Form Submission problem

2012-07-17 Thread wicket user
Hi , I have inserted my custom filter in which i have specified url-pattern as /*, but now the form submission is not going just getting a blank page, Please advise how to handle this. I dont see any Exceptions on my logs too. Thanks, -- View this message in context:

Re: jboss ignoring html request

2012-07-13 Thread wicket user
I dont have Wicket Filter in my web.xml though i can see this servlet-nameWicketApplication/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class I am assuming this will call WicketFilter intern. But before this i have make sure my filter is being

jboss ignoring html request

2012-07-12 Thread wicket user
Hi, We are using Jboss app server, we wrote a filter each wicket html's should pass through this filter(which is a j2ee servlet filter) and we added this filter/filter mapping in the web.xml for *.html ---url-pattern . But still this Request is not going through this filter. Wondering why ? is

Re: jboss ignoring html request

2012-07-12 Thread wicket user
Thanks for the quick reply , yes i checked FilterChain.doFilter(req,res), and i have verified also the url pattern in web.xml filter filter-nameMyFilter/filter-name filter-classcom.xyz.util.MyFilter/filter-class /filter filter-mapping filter-nameMyFilter/filter-name

Servlet Filter calling chain of Servlets

2012-07-05 Thread wicket user
Hi, I was wondering we can write a custom servlet filter , and in that filter call the servlet chain. If so what would be Request and Reponse Objects if I dont write any Request/Response Wrappers, and how to get that. Thanks, -- View this message in context:

Re: Servlet Filter calling chain of Servlets

2012-07-05 Thread wicket user
so in this case i can get the Request/Response object by (WebRequest) getRequestCycle().getRequest() and (WebReponse) getRequestCycle().getResponse() right? and all the parameters or cookies can get from the WebRequest which will be passing thorough the Servlet Chain . -- View this message

Adding Cookie in 1.5.5

2012-06-27 Thread wicket user
Hi, I was trying to add a cookie getWebRequestCycle().getWebResponse().addCookie() but couldnt find getWebRequestCycle() in 1.5.5. i found getRequestCycle() but did not find addCookie in getResponse(). Please suggest how to add/get cookie in 1.5.5 Thanks -- View this message in

Re: Sync up sessions

2012-06-21 Thread wicket user
Thank you guys , i got it what i was looking for. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650175.html Sent from the Users forum mailing list archive at Nabble.com.

Sync up sessions

2012-06-20 Thread wicket user
Hi, we are using Wicket as a Presentation layer, so we need to sync up with the Session of the Business Layer framework, we kept this in the same WAR. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134.html Sent from the Users forum mailing

Re: Sync up sessions

2012-06-20 Thread wicket user
Yes taking Wicket Session and Spring Session and maintaining one session across layers (presentation and business layers) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650141.html Sent from the Users forum mailing list archive at

Re: handling user agent

2012-06-01 Thread wicket user
Awesome thanks alot !! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565p4649658.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Re: handling user agent

2012-05-31 Thread wicket user
just wondering how to implement it , i tried the following code not sure am i doing correct, public class MyMapper implements IRequestMapper { private final IRequestMapper delegate; public MyMapper(IRequestMapper delegate) { this.delegate = delegate; } public

handling user agent

2012-05-30 Thread wicket user
Hi all, I wondering what will be the difference if i use *((WebRequest)RequestCycle.get().getRequest()).getHeader(User-Agent);* or *WebSession.get().getClientInfo().getUserAgent();* As the client info per session would be same . and If I need to control this on the WebApplication level ,

Re: handling user agent

2012-05-30 Thread wicket user
Question was how to handle user agent on the application level , i dont wanna write same code on each page to check the user agent then render the appropriate page -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565p4649584.html Sent from

Re: Jackrabbit APi thorugh Apache wicket

2008-10-14 Thread wicket user
i have written some classes to access items in Jackrabbit repository and as Edmund mentioned it was specific to my node types and repository. Alternatively you can look at Brix http://code.google.com/p/brix-cms/ Cheers Dipu On Mon, Oct 13, 2008 at 4:22 PM, Edmund Urbani [EMAIL PROTECTED]

Re: build from the wicket-1.4-m3 source failing

2008-09-01 Thread wicket user
i am using the version 1.5.0_04 thanks Dipu On Sun, Aug 31, 2008 at 12:39 PM, Timo Rantalaiho [EMAIL PROTECTED]wrote: On Tue, 26 Aug 2008, wicket user wrote: when i try to build the wicket from the wicket-1.4-m3 source its failing with the following message What Java version do you use

Re: build from the wicket-1.4-m3 source failing

2008-09-01 Thread wicket user
are using? The latest is IIRC updated 16 so your JDK/JRE is really outdated. Please update your JDK first before complaining. And when it still doesn't work let us know. -Matej On Mon, Sep 1, 2008 at 3:34 PM, wicket user [EMAIL PROTECTED] wrote: i am using the version 1.5.0_04 thanks Dipu

build from the wicket-1.4-m3 source failing

2008-08-26 Thread wicket user
Hi, when i try to build the wicket from the wicket-1.4-m3 source its failing with the following message \wicket-1.4-m3\wicket\src\main\java\org\apache\wicket\util\tester\FormTester.java:[600,20] inconvertible types found : org.apache.wicket.markup.html.form.FormComponentcapture of ? required:

Re: sneak peek - brix - wicket/jcr cms

2008-07-10 Thread wicket user
improve our documentation, let us know. wicket user-2 wrote: i am very impressed with what i see there, i had created a simple POC in my company for managing the contents in our wicket apps, i can see pretty much everything i used here like jackrabbit, code mirror, rich editor

Re: listchoice filtered by textfield ajax help

2008-07-10 Thread wicket user
help would be greatly appreciated Thanks T -- View this message in context: http://www.nabble.com/listchoice-filtered-by-textfield-ajax-help-tp18384359p18384359.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: sneak peek - brix - wicket/jcr cms

2008-07-09 Thread wicket user
cool , sounds very good On Tue, Jul 8, 2008 at 11:06 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: a few of us have been quietly working on a wicket/jcr cms called Brix for a while now. it is almost at a point where we are ready to release a beta, just waiting for wicket-m3 build to go official.

Re: sneak peek - brix - wicket/jcr cms

2008-07-09 Thread wicket user
i am very impressed with what i see there, i had created a simple POC in my company for managing the contents in our wicket apps, i can see pretty much everything i used here like jackrabbit, code mirror, rich editor etc looking forward for the release and some more documentation. you guys

Re: update table with ajax

2008-06-19 Thread wicket user
add the DataTable in a WebmarkupContainer and repaint the container cheers dipu On Thu, Jun 19, 2008 at 4:27 PM, Manuel Corrales [EMAIL PROTECTED] wrote: Hi, i have an input and a link. The link is an ajax link, and then i want to update a table on the same page according to the input.

Re: Javascript/Ajax in wicket, how to?

2008-06-09 Thread wicket user
Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread wicket user
1) Generifying* Wicket [X ] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. 2) How strongly do you

Re: FYI: new wicket site

2008-05-15 Thread wicket user
Hi Lars, Very good site, i like it its, pretty cool Dipu On Wed, May 14, 2008 at 9:36 AM, lars vonk [EMAIL PROTECTED] wrote: Hi all, A new Wicket site is born! It's a Dutch site on which you can search for day trips and such. See: www.eropuit.nl. Thanks to the user- and dev-group for

Updating the wicket stuff wicket-contrib-tinymce with the latest version of tinyMCE

2008-04-16 Thread wicket user
Hi, Can we please update the wicket-contrib-tinymce project to use the latest version of tinyMCE. I would like to use the HTML Source Editor Syntax Highlighting Word Wrap using CodeMirror mentioned in this thread http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=31049#p31049 I grabbed the

Re: Updating the wicket stuff wicket-contrib-tinymce with the latest version of tinyMCE

2008-04-16 Thread wicket user
i am more than willing to do it if i have the permission to do it. regards -dipu 2008/4/16 Uwe Schäfer [EMAIL PROTECTED]: wicket user schrieb: Can we please update the wicket-contrib-tinymce project to use the latest version of tinyMCE. +1 I grabbed the wicket-contrib-tinymce

Re: wicket support for page customisation at runtime

2008-04-03 Thread wicket user
://www.nabble.com/wicket-support-for-page-customisation-at-runtime-tp16447326p16447326.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Page expiration error while using popup

2008-03-27 Thread wicket user
Hi everyone,

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread wicket user
+1 Regards Dipu

Re: Basic Knowledge on Wicket - reload content of a panel

2008-02-27 Thread wicket user
-of-a-panel-tp15711163p15711163.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multi buttons in ajax form

2008-02-20 Thread wicket user
there is a method called findSubmittingButton() regards Dipu On Feb 20, 2008 10:41 AM, Pierre Gilquin [EMAIL PROTECTED] wrote: hi all, I try to have to have 2 buttons in a form. This form is used in an ajax window. in html, they are 2 standards buttons input type=submit value=Do Task1

Re: Combining Ajax and non Ajax pages

2008-02-20 Thread wicket user
-tp15587166p15587166.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using Forms

2008-01-14 Thread wicket user
Hi, Take a look at the FormInput example in wicket example projects. Wicket examples have everything to get you started. Regards Dipu On Jan 14, 2008 8:58 AM, j.bokobza [EMAIL PROTECTED] wrote: Hello I'm new with wicket and I'm looking for samples of basics forms. I didn't find how to

Re: Update panel from lists

2008-01-14 Thread wicket user
-tp14800898p14800898.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How do I call my javascript after each wicket partial update?

2008-01-11 Thread wicket user
in context: http://www.nabble.com/How-do-I-call-my-javascript-after-each-wicket-partial-update--tp14759508p14759508.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing

2008-01-09 Thread wicket user
done, *Key:* *WICKET-1271https://issues.apache.org/jira/browse/WICKET-1271 Regards Dipu * On Jan 8, 2008 5:37 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: yes please, and attach a patch -igor On Jan 8, 2008 2:31 AM, wicket user [EMAIL PROTECTED] wrote: Hi Igor, Thank you very much

Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing

2008-01-08 Thread wicket user
On Jan 4, 2008 8:53 AM, wicket user [EMAIL PROTECTED] wrote: Hi all, I am trying to add AjaxFormComponentUpdateBehavior to Radio/RadioGroup, I cant add the behaviour to the Radio as its not a FormComponent. Adding the behaviour to RadioGroup is not working as well. Is there any work

AjaxFormComponentUpdateBehavior not working with Radio/RadioGroup

2008-01-04 Thread wicket user
Hi all, I am trying to add AjaxFormComponentUpdateBehavior to Radio/RadioGroup, I cant add the behaviour to the Radio as its not a FormComponent. Adding the behaviour to RadioGroup is not working as well. Is there any work around to get it working. Regards Dipu

Re: How to dynamic load a HTML file

2007-12-14 Thread wicket user
override getVariation() in your page to get the appropriate html/markup picked. regards -dipu On Dec 14, 2007 9:43 AM, qinyi lai [EMAIL PROTECTED] wrote: Hi I wanne to dynamic load a HTML file to mapping a JAVA class page! a JAVA class file will have many HTML files(1:n mapping), and in

Re: How to dynamic load a HTML file

2007-12-14 Thread wicket user
You don't have to worry about the path. You should name your file like YourWebPage_variation.html and place the file where you would place it in normal case. For example If the variants of the page are YourWebPage_1.html, YourWebPage_2.html, YourWebPage_n.html ,.,YourWebPage_n.html String

Re: When to use getModelObject, getConvertedInput, getInput

2007-12-12 Thread wicket user
to an option object. johan On Dec 11, 2007 1:47 PM, wicket user [EMAIL PROTECTED] wrote: Hi, This is more a question of understanding models and input of a particular component, lets say DropDownChoice (DDC) for example. You give it a model initially on creation, this has nothing

When to use getModelObject, getConvertedInput, getInput

2007-12-11 Thread wicket user
Hi, This is more a question of understanding models and input of a particular component, lets say DropDownChoice (DDC) for example. You give it a model initially on creation, this has nothing to do with, in the case of a DDC the selected values as that is supplied by the Choices paramater in the

Re: Using ajax to update a panel

2007-12-05 Thread wicket user
via ajax. Sorry for the amount of code, but it's the only way I think to try and describe what I've currently got. Thanks Andrew -- View this message in context: http://www.nabble.com/Using-ajax-to-update-a-panel-tf4949239.html#a14170394 Sent from the Wicket - User mailing list archive

Re: Using ajax to update a panel

2007-12-05 Thread wicket user
to be able to refresh the values from the database. Should I be creating a Model overriding the setObject to do this? wicket user wrote: Hi Andrew, So what's actually happening? Anything? Exceptions or does the image just stay the same? On 05/12/2007, Andrew Moore [EMAIL PROTECTED

Re: Problems deploying Wicket application with Tomcat

2007-12-05 Thread wicket user
:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437) Any thoughts? On Dec 5, 2007 1:00 PM, James Perry [EMAIL PROTECTED] wrote: Bare with me. I am just redeploying it. On Dec 5, 2007 12:56 PM, wicket user [EMAIL PROTECTED] wrote: I'm getting a 503, HTTP

Re: unable to lazily register a javascript file

2007-12-05 Thread wicket user
upgrading 1.3 RC1 fixed this by the way On 20/11/2007, wicket user [EMAIL PROTECTED] wrote: Hi, It's been a while since I've had to come and check the mailing list out (always a good sign of a framework). Anyway 300 unit tests down and the first version is live, that's the good part

Re: annoying alert message while closing modal window with wizard

2007-12-04 Thread wicket user
. I tried to use the new wicket 1.3 wizard but got the same problem if anyone has any idea please let me know. Thanks -- View this message in context: http://www.nabble.com/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14136120 Sent from the Wicket

two dropdownchoice inputs combined as a fragment/panel/component ??

2007-12-04 Thread wicket user
Hi all, I'm now on the second phase of the project I'm working on and starting to find cases where I'm repeating code which means one thing : refactor. As an example I've got two dropdowns that select make and model with a bit of ajax to populate the second dropdown, these are always going to be

unable to lazily register a javascript file

2007-11-20 Thread wicket user
Hi, It's been a while since I've had to come and check the mailing list out (always a good sign of a framework). Anyway 300 unit tests down and the first version is live, that's the good part, the bad part is that I'm finding a few things I've obviously missed and I'm getting a few wierd

South African Wicket Users?

2007-11-20 Thread wicket user
Hey, Are there any South African wicket users, if so where are you base, JHB or CT? Cheers Simon

Re: WicketTester and Page parameters Wicket Example Unit tests?

2007-09-12 Thread wicket user
a look at JDave (jdave.org), which is a nice project for test lovers. I also know that we have several folks that attain nearly 100% test coverage of their user interface (during a visit about 18 months ago to the KNAW they showed me). Martijn On 9/11/07, wicket user [EMAIL PROTECTED] wrote

Re: WicketTester and Page parameters Wicket Example Unit tests?

2007-09-12 Thread wicket user
made my testing a lot more simple now. Thanks again Simon On 12/09/2007, cwilkes [EMAIL PROTECTED] wrote: wicket user wrote: 1) I've got a page that gets hit by an outside credit card merchant once they have validated the card, they post me my transaction ID along with a whole host

WicketTester and Page parameters Wicket Example Unit tests?

2007-09-11 Thread wicket user
Ok, Two questions really: 1) I've got a page that gets hit by an outside credit card merchant once they have validated the card, they post me my transaction ID along with a whole host of other parameters. Getting them from the request is easy in the page itself but trying to unit test it is

Page state, undo and versioning?

2007-09-06 Thread wicket user
Hi, My scenario is the following, I've got a page that allows a user to send an sms to themselves every 20 seconds to a maximum of two times just incase something in the network stopped the sms from getting to them in the first place. I have an ajax timer that enables the resend button after the

Re: WicketTester, testing Form and SubmitLink

2007-09-05 Thread wicket user
improvements required for the issue description, first JIRA issue raised. Thanks Simon On 03/09/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * wicket user: I'm trying to test a form submission with SubmitLink, test code below: tester.setParameterForNextRequest

Re: WicketTester, testing Form and SubmitLink

2007-09-05 Thread wicket user
... Thanks again, Simon On 05/09/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * wicket user: I've raised the issue, https://issues.apache.org/jira/browse/WICKET-932 Thanks! Jean, please excuse my ignorance but when you request a quickstart project do you mean you want the whole

WicketTester, testing Form and SubmitLink

2007-08-30 Thread wicket user
Hi Folks, I'm trying to test a form submission with SubmitLink, test code below: tester.setParameterForNextRequest(numberChangeForm:numberToChangeTo, numberToChangeTo); reset(smsServiceMock); smsServiceMock.sendActivationSms(isA(Subscriber.class));

Re: url mapping and wizards

2007-08-17 Thread wicket user
change the state of any page it is no longer bookmarkable and thus cannot have a ncie url. -igor On 8/16/07, wicket user [EMAIL PROTECTED] wrote: Hi, I've just started using Wicket and I've managed to mount pages so that the urls are cleaned up but for the life of me I can't seem to get

Re: Unit testing - updating a DropDownChoice with Ajax : follow on from old mailing list

2007-08-17 Thread wicket user
I managed to solve it by setting the values directly using: tester.setParameterForNextRequest(wizard:form:view:phoneMaker, 1); and completely bypassing the ajax. sorry for the trouble. Simon On 17/08/07, wicket user [EMAIL PROTECTED] wrote: I'm not entirely sure that this isn't bad mailing

url mapping and wizards

2007-08-16 Thread wicket user
Hi, I've just started using Wicket and I've managed to mount pages so that the urls are cleaned up but for the life of me I can't seem to get it to work with Wizard pages. Is there a trick to this? At the moment it looks like this: http://localhost:8080/myapp/app/?wicket:interface=:12 I've