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 : > Thanks for the resp

Re: Potential HTTPS redirects bug with deactivated js

2014-02-27 Thread Dmitriy Neretin
too, 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

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 > Hi, > > 4) Add a Servlet Filter *before* WicketFilter in web.xml > The new filter will check whether there is an authenticated user or not

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 t

Re: FormComponent independent from the Model/Model object

2013-07-10 Thread Dmitriy Neretin
ew > PropertyModel("myCheckBoxState", MyPanel.this)); > add(form); >} > > } > > ~ 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

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, IModel model){ super(id, new CompoundPropertyModel(model); Form form = new Form("id", model); form.add(new AjaxCheck

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)

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 loadabledetach

Re: How to unit test AttributeModifier

2013-05-09 Thread Dmitriy Neretin
t; > > 2013/5/8 Martin Grigorov > > > Also check AttributeModifierTest in wicket-core/src/test/java/.. > > > > > > On Tue, May 7, 2013 at 5:31 PM, Igor Vaynberg > >wrote: > > > > > attribute modifiers are behaviors, so use > > >

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) teste

Re: Problem with markup inheritance in Wicket 6

2013-02-06 Thread Dmitriy Neretin
think there are no changes in this area. > Do you extend/inherit the markup or completely override it ? > I expect to see instead of 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 &

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: ... stuff ... Some months ago I needed for the

Re: FeedbackMessage from FormComponent in Wicket 6

2013-02-01 Thread Dmitriy Neretin
is it right? 2013/1/31 Martin Grigorov > 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 Wick

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 ca

Re: Strange behavior of TextField and AjaxFormComponentUpdatingBehavior

2012-11-28 Thread Dmitriy Neretin
d:** > > DXImageTransform.Microsoft.**Alpha(Opacity=50)";) > > > > > > Sven Meier wrote: > > > >> "oncklick" > >>> > >> > >> ... or "onclick" ? > >> > >> I'd recommend a javascript only solu

Re: Strange behavior of TextField and AjaxFormComponentUpdatingBehavior

2012-11-28 Thread Dmitriy Neretin
r-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

Re: Strange behavior of TextField and AjaxFormComponentUpdatingBehavior

2012-11-27 Thread Dmitriy Neretin
koverflow.com/**questions/2851794/clear-text-** > onclick-textfield<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

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: dayField.setModel(

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 AjaxFormComp

(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 Worl

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 > On Wed, Sep 26, 2012 at 2:31 PM, Dmitriy Neretin > wrote: > > Thank You! > > > > Well I have the second case. What I don't really understand is how to get > > the '

Re: Anchor and Link between different Wicket Pages

2012-09-26 Thread Dmitriy Neretin
append '#anchor' to the returned url from super.getURL(); > > On Wed, Sep 26, 2012 at 11:18 AM, Dmitriy Neretin > wrote: > > Hi Folks, > > > > I don't really unterstand how to do it. > > > > I have two Wicket Pages: Page1 and Page2 > >

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 t

Re: "ChangeListener" for the RadioGroup Component

2012-06-15 Thread Dmitriy Neretin
Perfect! Thank you! 2012/6/15 Martin Grigorov > 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 > wrote: > > Thanks! It was really help

Re: "ChangeListener" for the RadioGroup Component

2012-06-15 Thread Dmitriy Neretin
{ >@Override >protected void onUpdate(AjaxRequestTarget target) >{ > > label.setDefaultModelObject(sites.getModelObject()); >target.add(label); >} > });

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 > Hi, > > #onSelectionChanged() works only if you override > #wantOnSelectionChanged() to return true. > Otherwise you can also use AjaxFormChoiceComponentUpdatingBehav

"ChangeListener" for the RadioGroup Component

2012-06-15 Thread Dmitriy Neretin
Hi all, I have a little problem with my RadioGroup component. I have 2 radio buttons inside of a ListView, witch is inside of the RadioGroup I mentioned above. The amount of the radios is not predefined that's because I use RadioGroup instead of RadioChoise. There can be 2 or 1000... The Problem

Re: Panel update after Ajax Submit

2011-03-01 Thread Dmitriy Neretin
o 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...@googl

Re: Panel update after Ajax Submit

2011-03-01 Thread Dmitriy Neretin
e point is , what ever you want 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! > > > &

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");

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
roject): > > WicketTester tester = new WicketTester(new MockApplication(), > "target/my-webapp-name"); > > Assert.assertNotNull(tester.getServletContext().getResource("WEB-INF/web.xml")); > > Attila > > 2011/2/9 Dmitriy Neretin > > > Hi, >

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
) method (before calling #refresh() on > ctx) > > ctx.setServletContext(getServletContext()); > > Attila > > 2011/2/9 Dmitriy Neretin > > > Thank you for reply, > > > > yes! And I get then another exception :) > > > > Cannot resolve ServletContextRe

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
ror message said? > > -igor > > On Tue, Feb 8, 2011 at 1:31 AM, Dmitriy Neretin > wrote: > > Hi, > > > > my complete setUp looks like this: > > > > @Before > >public void setUp() { > >MworldWi

Re: Question about Unit Testing with custom Session

2011-02-08 Thread Dmitriy Neretin
, Igor Vaynberg 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-07 Thread Dmitriy Neretin
ter(myapp); > > Martijn > > On Mon, Feb 7, 2011 at 2:10 PM, Dmitriy Neretin > wrote: > > Hello everybody, > > > > After integration with spring I have following problem: > > > > if I add following to my CustomSession: > > > > InjectorHolder.get

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 init

Re: WicketTester and the test of image visibility

2011-02-04 Thread Dmitriy Neretin
rendered markup. > > -igor > > On Thu, Feb 3, 2011 at 1:16 AM, Dmitriy Neretin > wrote: > > Hello everybody! > > > > Is the WicketTester method isVisible() the right solution to test if the > >

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: 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: javax.servlet servlet-api 2.4 provided On 1 February 2011 14:51, Dmitriy Neretin wrote: > I don't really understand how to do that? > > > On 1 February

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 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> wr

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 i

Re: Question about the Page state

2010-12-28 Thread Dmitriy Neretin
s://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.c

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 name.