• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RichFaces connection problem to databases

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a page that contains a tab (Oracle, Teradata), each tab is the connection settings, but when I click connect, nothing is happening, while the methods of connections are good (I tested before moving to RichFaces)

Login.xhtml


Login.xhtml page is linked (in faces-config.xml) with welcome.xhtml page that contains a method called getConnection

welcome.xhtml


For example, if the user tab ORACLE, and click connect, how am I going to call the getConnection located in ManagedBeanO (Oracle) and the same question if the user use Teradata tab.

Thank you in advance
 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is any error message?
 
Yas El
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I click on Connect Button, there is nothing happen
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your code inside a h:form?
 
Yas El
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, all my code is above, I didn't use h:form, if I should use it to resolve my issue, how can I use it ?
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try something like this:
 
Yas El
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have now this error message



when I click Yes, it redirect me to Microsoft script editor, and then I see a toousund of line code, and I see finally{window.document.open=oldDocOpen;} in YELLOW

I don't know what is this ( it's not a code that I writte )
reply
    Bookmark Topic Watch Topic
  • New Topic