• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RichFaces connection problem to databases

 
Yas El
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
 
Yas El
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I click on Connect Button, there is nothing happen
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
 
Yas El
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Try something like this:
 
Yas El
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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 )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic