It makes sense to me to do this. Does anyone object?

Eelco


On 4/25/07, Peter Ertl <[EMAIL PROTECTED]> wrote:
> I have a login form which persists username and password using
> FormComponent.setPersistent(boolean)
>
> On page load I want to set the focus on
>
> - username, if username is empty
> - password, if username is not empty
>
> The form values are initialized from the cookie values in
>
>    Page.renderPage() -->  call setFormComponentsFromCookies() -->
> Form.loadPersistentFormComponentValues()
>
> so, basically, the form values will not be there before rendering starts
>
> unfortunately, render time is too late to generate some javascript
> for form focus : document.getElementById('..').focus() in the head of
> the page
>
> I tried to call Form.loadPersistentFormComponentValues in
>
>    @Override
>    LoginForm::onAttach
>    {
>      super.onAttach
>      this.loadFormComponentsFromCookies
>    }
>
> and it worked...
>
> I could generate the javascript before rendering start
>
> So I am wondering...
>
> Shouldn't the form values being filled out at attach time already and
> not at render time by wicket?
>
> Regards
> Peter
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to