I thought the moment you do a submit() the whole screen is re-rendered automatically? I think you would still get the whole screen even without calling the renderResponse() method. However in order to populate new data in various text boxes I find myself having to do a whole series of the following:

 

                        FacesContext context = FacesContext.getCurrentInstance();

                        UIViewRoot view = context.getViewRoot();

                        HtmlInputText input = (HtmlInputText) view.findComponent(“myform:username);

                        input.setValue(newUsername);

                        and so on …

 

 

I am new to JSF – so please correct me if I am wrong.

 

Best regards,

Yee


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 26 October 2005 4:49 PM
To: [email protected]
Subject: Screen refresh

 

Having implemented a valueChangeListener, using an >

With the code resulting in

 

            //          Now update GUI

            FacesContext.getCurrentInstance().renderResponse();

 

My screen is redrawn – it has quite a few components displayed and so the User sees the top of the screen being displayed

Is there any way to ‘mark’ which component should be scrolled into view when the redraw occurs

 

Thanks

 

Stefan Maric | IT & Professional Services | BT Global Services

E: [EMAIL PROTECTED]  |  www.bt.com/globalservices

 

This electronic message contains information from British Telecommunications plc, which may be privileged

or confidential.  The information is intended for use only by the individual(s) or entity named above.  If you

are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of

this information is strictly prohibited.  If you have received this electronic message in error, please notify

me by telephone or email (to the number or email address above) immediately.

 

Activity and use of the British Telecommunications plc e-mail system is monitored to secure its effective

operation and for other lawful business purposes. Communications using this system will also be monitored

and may be recorded to secure effective operation and for other lawful business purposes.

 

British Telecommunications plc. Registered office:  81 Newgate Street London EC1A 7AJ   Registered in

England no:  1800000

Reply via email to