Question about the Page state

2010-12-28 Thread Dmitriy Neretin
Hello everybody, The question isn't really simple :) So, the official documentation says ( http://wicket.apache.org/apidocs/1.4/org/apache/wicket/RequestCycle.html): 1) A page that does not yet exist in a user Session may be encoded as a URL that references the not-yet-created page by class

Re: Question about the Page state

2010-12-28 Thread Dmitriy Neretin
://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html martin-g On Tue, Dec 28, 2010 at 9:27 PM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody, The question isn't really

Problem with Wickettester and Maven

2011-02-01 Thread Dmitriy Neretin
Hello everybody, I have problems with unit testing. All the time I have used NetBeans 6.9.1 with Glassfish and there wasn't any problems. Just create a new UnitTest with WicketTester and it worked pretty fine. Today I changed the project infrastructure to Maven with surifire plug-in. The problem

Re: Problem with Wickettester and Maven

2011-02-01 Thread Dmitriy Neretin
I don't really understand how to do that? On 1 February 2011 14:46, Pedro Santos pedros...@gmail.com wrote: You need to add the test or provided scope servlet-api dependency in your project pom On Tue, Feb 1, 2011 at 11:11 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello

Re: Problem with Wickettester and Maven

2011-02-01 Thread Dmitriy Neretin
Oh sorry!!! It works now! Thank you! I should add this to my pom: dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopeprovided/scope /dependency On 1 February 2011 14:51, Dmitriy Neretin

WicketTester and the test of image visibility

2011-02-03 Thread Dmitriy Neretin
Hello everybody! Is the WicketTester method isVisible() the right solution to test if the Image is shown on the webpage? Thank you!

Re: WicketTester and the test of image visibility

2011-02-04 Thread Dmitriy Neretin
appears in the rendered markup. -igor On Thu, Feb 3, 2011 at 1:16 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody! Is the WicketTester method isVisible() the right solution to test if the Image is shown on the webpage? Thank you

Question about Unit Testing with custom Session

2011-02-07 Thread Dmitriy Neretin
Hello everybody, After integration with spring I have following problem: if I add following to my CustomSession: InjectorHolder.getInjector().inject(this); (because I store some spring beans in the custom session) My WicketTester doesn't work anymore. I get this exception: BeanFactory not

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Dmitriy Neretin
= new WicketTester(myapp); Martijn On Mon, Feb 7, 2011 at 2:10 PM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody, After integration with spring I have following problem: if I add following to my CustomSession: InjectorHolder.getInjector().inject(this); (because

Re: Question about Unit Testing with custom Session

2011-02-08 Thread Dmitriy Neretin
February 2011 07:37, Igor Vaynberg igor.vaynb...@gmail.com wrote: make sure your setup() code runs before wicket tester instance is created. -igor On Mon, Feb 7, 2011 at 7:41 AM, Dmitriy Neretin

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
() ? like the error message said? -igor On Tue, Feb 8, 2011 at 1:31 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hi, my complete setUp looks like this: @Before public void setUp() { MworldWicketApplication wicketWebApp = new MworldWicketApplication

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
(before calling #refresh() on ctx) ctx.setServletContext(getServletContext()); Attila 2011/2/9 Dmitriy Neretin dmitriy.nere...@googlemail.com Thank you for reply, yes! And I get then another exception :) Cannot resolve ServletContextResource without ServletContext Does andybody

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
tester = new WicketTester(new MockApplication(), target/my-webapp-name); Assert.assertNotNull(tester.getServletContext().getResource(WEB-INF/web.xml)); Attila 2011/2/9 Dmitriy Neretin dmitriy.nere...@googlemail.com Hi, thank you! Now I know how to get the ServletContext :) But it didn't

Panel update after Ajax Submit

2011-03-01 Thread Dmitriy Neretin
Hello everybody! Hope someone can help me. I don't really understand, what I should add as ajax target :( So, I have an abstract class Index where I add all my panels (3) and it is my masterlayout. I add the panels in the index class like this: add(new ShoppingCartPanel(id, anotherMehod); The

Re: Panel update after Ajax Submit

2011-03-01 Thread Dmitriy Neretin
to refresh via ajax must have outputMarkupId set to true. Hope that helps. Josh. On Tue, Mar 1, 2011 at 11:51 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody! Hope someone can help me. I don't really understand, what I should add as ajax target :( So, I

Re: Panel update after Ajax Submit

2011-03-01 Thread Dmitriy Neretin
, you need to update it's submit link component outside this panel also. onsubmit(target){ target.addComponent(formPanel); target.addComponent(submitLinkNotNestedInsideTheFormPanel); } On Tue, Mar 1, 2011 at 9:51 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Thanks for reply

Re: ChangeListener for the RadioGroup Component

2012-06-15 Thread Dmitriy Neretin
Thanks! Can you describe how can I use the AjaxFormChoiceComponentUpdatingBehavior() with the label? 2012/6/15 Martin Grigorov mgrigo...@apache.org Hi, #onSelectionChanged() works only if you override #wantOnSelectionChanged() to return true. Otherwise you can also use

Re: ChangeListener for the RadioGroup Component

2012-06-15 Thread Dmitriy Neretin
protected void onUpdate(AjaxRequestTarget target) { label.setDefaultModelObject(sites.getModelObject()); target.add(label); } }); On Fri, Jun 15, 2012 at 11:25 AM, Dmitriy

Re: ChangeListener for the RadioGroup Component

2012-06-15 Thread Dmitriy Neretin
Perfect! Thank you! 2012/6/15 Martin Grigorov mgrigo...@apache.org either make 'sites' final or use Wicket events ( http://www.wicket-library.com/wicket-examples/events/ ) On Fri, Jun 15, 2012 at 12:42 PM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Thanks! It was really helpful

Anchor and Link between different Wicket Pages

2012-09-26 Thread Dmitriy Neretin
Hi Folks, I don't really unterstand how to do it. I have two Wicket Pages: Page1 and Page2 On the Page1 I define the Label, wich will be contain the anchor id. So now I want to define a link on the Page1, wich will get setResponsePage(Page1) but I also want that the user will be forwarded to

Re: Anchor and Link between different Wicket Pages

2012-09-26 Thread Dmitriy Neretin
26, 2012 at 11:18 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hi Folks, I don't really unterstand how to do it. I have two Wicket Pages: Page1 and Page2 On the Page1 I define the Label, wich will be contain the anchor id. So now I want to define a link on the Page1

Re: Anchor and Link between different Wicket Pages

2012-09-26 Thread Dmitriy Neretin
You know, you are a wicket god :) Thanks and have a nice day! 2012/9/26 Martin Grigorov mgrigo...@apache.org On Wed, Sep 26, 2012 at 2:31 PM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Thank You! Well I have the second case. What I don't really understand is how to get

(String)RessourceModel and Location of resources in the *.props files

2012-10-22 Thread Dmitriy Neretin
Hello everybody, I have a little problem. I use in my webpages ressource models. For example: public class MyPage{ ... add(new Label(id, new ResourceModel(myResourceKey)); ... I also have a MyPage.properties where I placed following String: myResourceKey=Hello World!

Strange behavior of AutoCompleteTextField choice list and mouse

2012-11-20 Thread Dmitriy Neretin
Hello everybody! I have a strange behavior of a text field above. When I see a choice list and try to select an entry with a enter key - no problem. But when I try to select an entry with a mouse - no chance! The selected entry doesn't appear in the text field... I added to the filed

Strange behavior of TextField and AjaxFormComponentUpdatingBehavior

2012-11-27 Thread Dmitriy Neretin
Hi wicket-users, I have a question about a combination of the TextField and AjaxFormComponentUpdatingBehavior. I have a text field with content. Just to indicate what user should enter. For example a day text filed, which already contains following DD. I do it by following:

Re: Strange behavior of TextField and AjaxFormComponentUpdatingBehavior

2012-11-28 Thread Dmitriy Neretin
05:09 PM, Dmitriy Neretin wrote: Hi wicket-users, I have a question about a combination of the TextField and AjaxFormComponentUpdatingBehav**ior. I have a text field with content. Just to indicate what user should enter. For example a day text filed, which already contains following DD. I do

Re: Strange behavior of TextField and AjaxFormComponentUpdatingBehavior

2012-11-28 Thread Dmitriy Neretin
http://stackoverflow.com/questions/2851794/clear-text-onclick-textfield Sven On 11/27/2012 05:09 PM, Dmitriy Neretin wrote: Hi wicket-users, I have a question about a combination of the TextField and AjaxFormComponentUpdatingBehav**ior. I have a text field with content. Just

FeedbackMessage from FormComponent in Wicket 6

2013-01-31 Thread Dmitriy Neretin
Hi folks, We are migrating from Wicket 1.5 to 1.6 Here is an example what we did in 1.5: formComponent.getFeedbackMessage().getMessage().toString() So, the FormComponent class doesn't have the method getFeedbackMessage() anymore. But getFeedbackMessages()... Can somebody show/explain me how I

Re: FeedbackMessage from FormComponent in Wicket 6

2013-02-01 Thread Dmitriy Neretin
? 2013/1/31 Martin Grigorov mgrigo...@apache.org Hi, formComponent.getFeedbackMessages().getFirst(level) On Thu, Jan 31, 2013 at 5:14 PM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hi folks, We are migrating from Wicket 1.5 to 1.6 Here is an example what we did in 1.5

Problem with markup inheritance in Wicket 6

2013-02-01 Thread Dmitriy Neretin
Hi Folks, I have another problem during Wicket 6 migration. This time it is a problem with markup inheritance. I have an old wicket panel and appropriate markup file: MyOldGoodWicketPanel MyOldGoodWicketPanel.html Markup file looks like this: wicket:panel ... stuff ... /wicket:panel Some

Re: Problem with markup inheritance in Wicket 6

2013-02-06 Thread Dmitriy Neretin
there are no changes in this area. Do you extend/inherit the markup or completely override it ? I expect to see wicket:extend instead of wicket:panel in MyNewPanel.html. Create a quickstart and attach it to a ticket in Jira please. On Fri, Feb 1, 2013 at 2:12 PM, Dmitriy Neretin

How to unit test AttributeModifier

2013-05-07 Thread Dmitriy Neretin
Hello, Is it possible to unit test an AttributeModifier? I have a simple component: WebMarkupContainer container = new WebMarkupContainer(containerId); container.add(new AttributeModifier(name, anyDynamicValue)); In the unit test: WebMarkupContainer container = (WebMarkupContainer)

Re: How to unit test AttributeModifier

2013-05-09 Thread Dmitriy Neretin
/.. On Tue, May 7, 2013 at 5:31 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: attribute modifiers are behaviors, so use component.getbehavior(AttributeModifier.class) to get it. -igor On Tue, May 7, 2013 at 8:24 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote

Empy choices durring unit tests with DropDownChoice

2013-06-17 Thread Dmitriy Neretin
Hi everyone! I have a little problem. When I unit test a wicket panel with a DropDownChoice I can't get the choices list into dropdown... So, that is how I use it: a) ... new DropDownChoice(aWicketId, new ChoicesModel.getObject(), myOwnChoicesRenderer) b) The choices Model ist a

Re: Empy choices durring unit tests with DropDownChoice

2013-06-18 Thread Dmitriy Neretin
:)) You should better dive into your new project :)) It didn't work... And I don't have any idea why... The constructor (id, myModel, choicesModel, renderer) didn't work too :)) But the example is too complicated to discuss it here. But it works fine if I use this: (id, choisesModel, renderer)

FormComponent independent from the Model/Model object

2013-07-09 Thread Dmitriy Neretin
Hi everyone, I have a dummy question: If I have a panel with a form (not everything is my code) - public class MyPanel{ public MyPanel(id, IModelMyObj model){ super(id, new CompoundPropertyModelMyObj(model); FormMyObj form = new Form(id, model);

Re: FormComponent independent from the Model/Model object

2013-07-10 Thread Dmitriy Neretin
); } } ~ Thank you, Paul Bors -Original Message- From: Joachim Schrod [mailto:jsch...@acm.org] Sent: Tuesday, July 09, 2013 6:27 PM To: users@wicket.apache.org Subject: Re: FormComponent independent from the Model/Model object Dmitriy Neretin wrote: Hi everyone, I have a dummy

Disabling of the Textfields and update of the model

2013-08-01 Thread Dmitriy Neretin
Hi everyone, I have a problem with textfield enabling/disabling and with update of the appropriate model. I have a wizzard with 3 steps: - Step one: show some info fields - Step two: let the user edit his info with textfields - Step three: show the user new info. Now I built an ajaxcheckbox in

Re: Best way to do authentication in external system

2014-01-16 Thread Dmitriy Neretin
I think the 4-th option will be the best way to do it. As an external solution you can consider Spring Security or Apache Shiro 2014/1/16 Martin Grigorov mgrigo...@apache.org Hi, 4) Add a Servlet Filter *before* WicketFilter in web.xml The new filter will check whether there is an

Re: Potential HTTPS redirects bug with deactivated js

2014-02-27 Thread Dmitriy Neretin
, no need to tinker with deactivated JS: form.add(new AjaxButton(ajaxGo, form){}); form.add(new Button(go)); Please change your quickstart before attaching it to the issue. Thanks Sven On 02/27/2014 11:45 AM, Dmitriy Neretin wrote: Hi, I'm not sure if that a realy bug

Re: Potential HTTPS redirects bug with deactivated js

2014-02-27 Thread Dmitriy Neretin
There is a workaround for the problem: Extend RedirectPage - anotate it with RequireHttps - insert this page between source (http) and target (https) pages. The second redirect leads to the https page! Dmitriy 2014-02-27 13:04 GMT+01:00 Dmitriy Neretin dmitriy.nere...@googlemail.com: Thanks