Bindesh Nair

Greenhorn
+ Follow
since Oct 09, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Bindesh Nair

I tried the following with JSF1.2 Mojarra build and it worked for me.

The JSF code looks like this



And in the backing bean, I had the following code


[ September 19, 2008: Message edited by: Bindesh Nair ]
15 years ago
JSF
Tried the same code, yes, required= true does not help, the form gets posted.

Consider using a java script instead.
15 years ago
JSF
For getting started, I would recommend

Core Java Server Faces 2nd edition

And

Java Server Faces In Action
15 years ago
JSF
You have 2 methods where the data pull is happening. It would be difficult for anyone looking at these 2 methods only to point out the issue.

In general the error means that you have an issue with the code logic. However, a stack trace of the error would help explain more about the issue.

Moreover, I see that you have the logger turned on, so you can look into the flow of the logger output in conjunction with the stack trace.
Never worked in websphere, but my gut feeling is that we need to drop the driver in J2EE environment too e.g. in apache tomcat i would have dropped it in the lib folder for Tomcat to check if it works.
Looks like you don't have the driver in your build classpath. Can you check ?
Hello Sreeni

Use a panelGroup with 3 cols and drop a outputText component binded to the userBean.name property.

Thanks
16 years ago
JSF
Hello Guys

I have some previous experience (3 yrs back) in Java and had done a course on J2EE way back. Since I was working in a small start up, I had the option of switching to .net and did so successfully. My recent assignments were and are on asp.net.

Now i have started to learn J2EE (JSF,JPA,Spring etc) and have a plan of doing a sample project on these technologies. Just to put the learning into a real time kind of stuff.

Now that i am trying to switch over, will the sample project be accepted by the companies also considering the fact that I have real time experience, in the past in JSP/Servlets and now in .net project.

Just seeking my options here. Any opinions ?

Thanks
16 years ago
Few quick things that I would check for are :


1. Is the current user a local admin on the box, else you wont have permissions to set the firewall (to the best i know)

2. Take an output of netstat - aon and see which process is binded to what .. If possible paste it here too

3. Did you give a password at the time of configuration ?

4. Are you able to do a telnet to port 3306 ?

Thanks
[ December 03, 2007: Message edited by: Bindesh Vijayan ]
Thanks, but I already tried that and it failed too.

I think I will agree with Mark, it has something to do with improper classpath. Perhaps it could be that I am depending on Eclipse inbuilt compilation option and so unable to give correct classpath for the Hibernate Tool. And hence, it might be complaining about it.

I will write my own build script and set the classpath and see how it goes.

Thanks once again.
[ December 03, 2007: Message edited by: Bindesh Vijayan ]
yes, since the following method works fine


It only fails when i try session.createQuery("from Authors");
Hello Everyone

I am facing an issue with Hibernate mapping.

I have the following code that tries to get all the Authors from the sql server table using the MS JDBC Driver.

The code snippet looks like this




Here is what the Authors.hbm.xml looks like



I get the following error in Eclipse "Authors is not mapped [from Authors]"
I am using Eclipse 3.3.0 along with Hibernate Tool 3.2.0 cr1.

Am i missing something ?

Thanks for looking into this
[ December 02, 2007: Message edited by: Bindesh Vijayan ]