aspose file tools*
The moose likes JSF and the fly likes RichFaces connection problem to databases Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "RichFaces connection problem to databases" Watch "RichFaces connection problem to databases" New topic
Author

RichFaces connection problem to databases

Yas El
Greenhorn

Joined: Dec 29, 2011
Posts: 11
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

Joined: Jul 14, 2010
Posts: 754

Is any error message?


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Yas El
Greenhorn

Joined: Dec 29, 2011
Posts: 11
When I click on Connect Button, there is nothing happen
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Is your code inside a h:form?
Yas El
Greenhorn

Joined: Dec 29, 2011
Posts: 11
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

Joined: Jul 14, 2010
Posts: 754

Try something like this:
Yas El
Greenhorn

Joined: Dec 29, 2011
Posts: 11
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 )
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RichFaces connection problem to databases