Louis Bros

Ranch Hand
+ Follow
since Jun 03, 2011
Louis likes ...
Tomcat Server Java Ubuntu
NZ
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Louis Bros

I usually use tomee running on a VPS. mammothVPS is what I use. I've just seen DigitalOcean which looks pretty cheap.
9 years ago
JSF
I think in this case '@this' is the commandButton since it's a child of the commandButton element, so if you want the inputText processed you'd need to use @form or the inputText's id.

Why is 'item.amount' kept read only? I've done something like this in the past where 'item.amount' is set and 'item' is passed to the bean method:

9 years ago
JSF
Hey, do you need to tell the ajax tag what jsf component to execute?

If you don't specify an execute attribute on your ajax tag it'll default to @this, so your inputText might be missed.

You could try:

9 years ago
JSF
Hey

Rather than targeting specific questions I recommend putting alot of time into the Enthuware Practice Exams. I found the questions in those exams to be very similar to the real exam.

Cheers,

Louis
Hi, you can call a parent's method with 'super.method()' but you can't call a parent's parent's method directly. You could implement a super call in the parent class?
9 years ago
Hi George,

I want to say that packages, imports and running of code through the command line with command line args was in the exam but I have to admit I might be thinking of the practice exams I took beforehand.

Louis
Usually you'd run this command from within the WEB-INF directory since that's where you'll find the 'classes' and 'src' directories.

The -classpath or -cp flag is used to specify where to find class files you need while compiling. In this case you need class files that are stored in the tomcat lib jars. It is the absolute path to the tomcat lib directory.
9 years ago
Well done mate. I started Java with 1.6. Had to study a fair bit which was good as I learned about some things that I'd rarely used before.

Looking forward to the Java SE 7 Programmer II exam. I think I'll sit it in January after the new K&B book has been released.
Hey guys, sat the Java SE 7 Programmer 1 exam today and passed with 93%

Some info:

I finished the exam with 10min left which I used to review 3 questions I'd 'marked'.

To prepare I used the K&B book. Having read it a while ago I reread only the chapters suggested by Bert Bates https://coderanch.com/t/587227/ocaja/certification/Java-OCA.
I then reviewed the relevant two minute drills a few times and made small programs to clear any of the points I wasn't sure on.

Instead of doing the practice exams in the book I also used the Enthuware practice exams. I did all five Standard tests over until I got a mark over 90%.

Hope this info helps.

Cheers,

Louis
Hi,

The '<h:messages />' component has the attributes 'infoClass' and 'errorClass' class you could use.

Ta
10 years ago
JSF
Hi,

You can use JSF AJAX to process selected components on the server and render selected elements on the client.



With PrimeFaces:



Ta
10 years ago
JSF
Thanks Tim, I usually use the 'return' but wasn't sure of it's purpose since it seemed to work the same without. Now I know, cheers
10 years ago
JSF
Hi,

The <h:commandButton/> has the 'onclick' attribute you could use for this.

Something like:



Ta
10 years ago
JSF
Hi, I'm not sure what you mean by "populate image through HtmlGraficImage". From what it seems like you're describing, PrimeFaces' 'FileUpload' might work for you.
10 years ago
JSF
Have you included the 'servlet-api.jar' on your class path?
10 years ago