but I'd like
to avoid that route if possible.
On Mon, May 3, 2010 at 5:32 PM, Igor Vaynberg wrote:
> you can append the class name of the last visited page to every url by
> creating your own url coding strategy
>
> -igor
>
> On Mon, May 3, 2010 at 4:59 PM, Tony Wu wrote:
>
I have an application where on session timeout, I want to redirect to
different pages based on what their last visited page was. Currently my app
only redirects to the same page all the time through
getApplicationSettings().setPageExpiredErrorPage(LoginPage.class). Is there
any way to capture the p
I've been using BookmarkablePageLink for my site navigation. A month or so
ago I remember each BookmarkablePageLink would autogenerate a
name="{wicket:id}" in the HTML, and I was using this to hook into functional
testing as the locator, etc.
For example:
.html
.java
add(new BookmarkablePageLink
I have an AjaxFallbackButton which onSubmit does some validation and then
sets a container visible. When I do:
FormTester.submit("path.to.ajaxFallbackButton");
It seems to work fine (no errors in the console or junit), but the button
doesn't actually get onSubmitted (assert container visible fail
Any way to do it without running Selenium?
On Mar 12, 2010, at 6:01 AM, Kent Tong wrote:
>
>
> Tony Wu-5 wrote:
>>
>> However, I can't
>> do this unit test in Wicket because a FormTester can only submit once. I
>> can't resetup the FormTester d
I'm trying to write a unit test for a form. I have a form with 2 submit
buttons. The 1st submit button is an AjaxSubmitButton which allows the user
to enter a ID, that then shows all the products associated with that ID (it
requires validators to run which is why it's a submit button). The 2nd
subm
I have a FormComponentPanel which holds 3 dropdowns for month-day-year (it's
a birthday FormComponentPanel). I override convertInput on the
FormComponentPanel to return the age based on the 3 drop downs. I have an
age validator which makes sure they're over 18.
Now, this all works fine on form sub
Thanks, the new version does fix this issue.
On Tue, Mar 9, 2010 at 8:50 AM, vineet semwal wrote:
> are you on 1.4.6, if yes please upgrade to 1.4.7 and see if the problem
> disappears.
>
> On Tue, Mar 9, 2010 at 9:16 PM, Tony Wu wrote:
>
> > I have a Signup page
I have a Signup page that's mounted using
mountBookmarkablePage("/section/signup", Signup.class). On that page I have a
panel which has a button that onclick, will basically redirect to itself - it
does setResponsePage(panel.getPage().getClass()). When the button is clicked it
redirects me to /
are preserved.
>
> there is a wiki page which explains how embedded forms work.
>
> -igor
>
> On Thu, Feb 25, 2010 at 4:30 PM, Tony Wu wrote:
> > Thanks Igor, my use case was an attempt to solve a bigger problem. Let me
> > try to describe the main problem I am tryin
>
> public final void onclick() {
> onclick(getrequest().getattribute(tf.getinputname()); }
>
> protected abstract void onclick(string value);
> }
>
> -igor
>
> On Thu, Feb 25, 2010 at 3:51 PM, Tony Wu wrote:
> > Is there a way to get a TextField's valu
Is there a way to get a TextField's value without submitting the form? For
example, if I have a TextField and a Link (not a submit Button), I want the
Link's onClick to System.out.println the TextField's value at that time. I
tried using TextField.getInput, getConvertedInput, no dice on both.
I ev
Is there a way in Wicket for Button form onSubmit to refresh the page and
scroll to a particular anchor? For example if I have 3 separate forms with a
FeedbackPanel in each, if I click the submit button for the final form and
there's a validation error, when the page refreshes the error messages ar
For form submission I can override onSubmit to do my own processing, but is
there anything I can override that happens BEFORE the form validation? I
need to for example, based on which Button they press, .setRequired(false)
on some components before the form processing kicks in.
I tried @Override
In total I have 4 DropDownChoices:
I have a DropDownChoice which allows a user to select whether they are an
adult or minor. I have another FormComponentPanel with 3 DropDownChoices
representing their birthdate (year, month, day) with a setConvertedValue set
to how old they are. I have 2 validator
Can someone point me in the right direction for setting the default console
log output to include DEBUG level messages? It's currently showing INFO and
WARN only. I'm using the default maven generated project. Can I do something
like System.setProperty("org.apache.wicket.level", "DEBUG"); in
Wicket
I have a PatternValidator and cannot figure out what is the correct path to
target a custom error message (page.properties) to a field inside a
fragment. Here's the markup: http://pastebin.com/m4c4744e3
I tried targeting:
zones.fullRecord.recordForm.fragment.insuranceFragment.insuranceProvider.Pat
Not sure if this is a bug or something I overlooked, but I get a strange cast
exception (org.apache.wicket.markup.RawMarkup cannot be cast to
org.apache.wicket.markup.ComponentTag) when I have create a Form in a Fragment,
which is inside a ListView, inside another ListView. Here's the exception:
18 matches
Mail list logo