To open a page, I still didn't get.

Hello friends. I speak about Brazil! I would like to click in a button, to open the address of a page web that this typed in a component text How to do?
[180 byte] By [jg1234a] at [2007-11-27 4:01:23]
# 1
Hi!Try add this in action event handler for button:String URL = textField1.getText().toString();try {getFacesContext().getExternalContext().redirect(URL);}catch (IOException ioe) {//exception handler}Thanks,Roman.
-Grif-a at 2007-7-12 9:06:05 > top of Java-index,Development Tools,Java Tools...
# 2
Friend,I click in compoment button and mensage error apears http://localhost:8084/WebApplication2/faces/www.google.comI typed in the jtextField www.google.comHow to solve?and you speak from where, Me south of Brazil, Apucarana..Thak磗
jg1234a at 2007-7-12 9:06:05 > top of Java-index,Development Tools,Java Tools...
# 3

Hi!

Try just to create Visual Web Application, add 'Text Field' and 'Button' components from 'Basic' part of Palette, doubleclick on button and add following in button_action:

String URL = textField1.getText().toString();

try {

getFacesContext().getExternalContext().redirect(URL);

}

catch (IOException ioe) {

//exception handler

}

Then deploy application, type in text filed: "http://www.google.com", and then click button. For me this works fine.

Thanks,

Roman.

-Grif-a at 2007-7-12 9:06:05 > top of Java-index,Development Tools,Java Tools...
# 4
thank you, thank you very much, resolvedplace do you speak?
jg1234a at 2007-7-12 9:06:05 > top of Java-index,Development Tools,Java Tools...
# 5
Hi!I'm from Russia!Thanks,Roman.
-Grif-a at 2007-7-12 9:06:05 > top of Java-index,Development Tools,Java Tools...
# 6
You Have Skype?:my skype is marciofermino
jg1234a at 2007-7-12 9:06:05 > top of Java-index,Development Tools,Java Tools...