I used StateLess form but there is no difference. both the Problems still
there.
i.e. 
1. Query parameter goes away when the form is submitted and if there are
validation errors.
2. URL changes to http://localhost:8080/app/?wicket:interface=:0::::

My hierarchy looks like.

--MyApplication extends WebApplication
   |
  has
   |__HomePage [ <--Constructor looks like HomePage(PageParameters params) ]
           |
          has
           |___DisplayPanel [<-- Constructor looks like DisplayPanel(String
id,PageParameters params)]
                     |
                    has
                     |
              DisplayForm  extends StatelessForm [<-- Constructor looks like
DisplayForm(String id,PageParameters params) ]
   


igor.vaynberg wrote:
> 
> use statelessform
> 
> -igor
> 
> On Fri, Jun 13, 2008 at 12:46 PM, nanotech <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi All,
>>
>> In my application the Home Page of the class has the url that looks like
>> this
>>
>> http://localhost:8080/app/?id=ABCXYZ
>>
>> This form has a textfield that I am pre-filling with value of "id" from
>> query param (in this case ABCYXZ).
>> It also has JCaptcha component and a text field component to validate
>> that
>> captcha.
>> And there is Submit button.
>>
>> Now, The problem is:
>> When I Submit the form and if any of the required fields is not filled up
>> then it shows validation errors which is all good. But, the  page
>> refreshes
>> and url of the page changes to
>> http://localhost:8080/app/?wicket:interface=:0::::  .
>>
>>  - How can I prevent query param from disappearing?
>>  - How can I prevent from ?wicket:interface=:0:::: from appearing so that
>> it
>> does not expire after server re-boot (Note: this is the home page of the
>> application)
>>
>>
>> Thanks for the help,
>> RG
>>
>> --
>> View this message in context:
>> http://www.nabble.com/BookMarkable-Home-Page--tp17830736p17830736.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]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/BookMarkable-Home-Page--tp17830736p17831329.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]

Reply via email to