Hi,
I have a scenario that , showing a terms and conditions content in Html page inside of Vaadin subwindow. below end of that subwindow i need a button to accept it. Please help me to fix issue.
Thanks in Advance…!
Hi,
I have a scenario that , showing a terms and conditions content in Html page inside of Vaadin subwindow. below end of that subwindow i need a button to accept it. Please help me to fix issue.
Thanks in Advance…!
Hi,
what have you tried so far? A BrowserFrame in a Window would be my first attempt.
-Olli
Hi Olli Tietäväinen,
Thanks for your reply.
I just trying to use
BrowserWindowOpener
.
terms_of_use_btn.addClickListener(new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
BrowserWindowOpener bwo = new BrowserWindowOpener(new ExternalResource(“resources/Register.html”));
bwo.extend(terms_of_use_btn);
}
}.
Its not working
You can’t just display a HTML file as an exteral resource unless you’re serving that HTML file somewhere - the resources folder isn’t a web server. Put it on a web host and then you can use an ExternalResource like that, but it’s still not a good solution if you need an accept button; in that situation, I’d still suggest a BrowserFrame in a Window.
-Olli
Hi,
Okay… now i am trying in BrowserFrame window.
Thank you so much for your reply Olli.
Great, just ask more if you get stuck.
-Olli