Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8035537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:20:34+00:00 2026-06-05T02:20:34+00:00

I have a new problem with a Form and the BACK button. Take this

  • 0

I have a new problem with a Form and the BACK button.

Take this kind of FORM:

public SearchSomethingForm() {
super(ORSAWebConstants.FORM);
setModel(new CompoundPropertyModel<Void>(this));

add(section01Panel);
add(section02Panel);
add(section03Panel);
add(new SubmitButton());

}

As you see, I don’t have a property model base on a single Object.

Inside the form I only add some panel with some INPUT inside. For Example:

private String name;
protected void onInitialize() {
 super.onInitialize();
 final TextField<String> foo = new TextField<String> ("name",new PropertyModel<String>(this,"name"));
 add (foo);
}

Every Panel code has something like that. Some input with a BIND to a local Property.

Then in FORM SUBMIT, I can read the value with

section01Panel.getName();

PROBLEM

After the form submit, I open a new Page with result. I want a BACK button to the FORM’s Page with every pre-entered field already compiled so the user has only to change a portion of form to make a new search.

Without a specific PropertyModel, I can’t compile the Object with its property mapped on form fields. The Form doesn’t Know which kind of FIELD will be added.

How can I resolve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:20:35+00:00Added an answer on June 5, 2026 at 2:20 am

    After some test I discovered that Wicket can pass entire page from pages so when I call the new page, I pass the form page:

    SheetPage page = new SheetPage("SheetPage", idPojo,FormPage.this);
    setResponsePage(page);
    

    In the SheetPage I will have a LINK to the previous page:

    public SheetPage(String title, String idPojo, final FormPage fPage) {
        Link back = new Link("back"){
           private static final long serialVersionUID = 1L;
    
           public void onClick() {
             setResponsePage(fPage);
          };
        };
    }
    

    When I return to FormPage, I will find the page as was before opening the sheet page with form entirely pre-compiled. Awesome!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have new problem. My code: .method public static void Main() cil managed {
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I am having a new little problem; I have a little pointer called: int
I'm new to Vim (almost new) and have some questions. The problem came from
I have the problem I just installed the new Monodevelop 2.2.2 on Windows but
I have some problem with my open new window popup which it can read
I have a problem in running a new project which I downloaded from github.
I have problem on my blog: http://osify.com while processing add new post with above
I have a problem at some customer pc's (new Dell PCs) windows XP Professional
I have a problem with IE8 and the opening of a new window with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.