Peter Braun

Ranch Hand
+ Follow
since Feb 09, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Peter Braun

Hi Marco,

I've checked your work and I love it. Especially the screencasts.
So far I've seen such mostly for JS frameworks. It's so good to have it for these Java topics too.

Regards,
Peter
6 years ago
Thanks. The "Work around for some common issues" section is nice for me. I run into those issues. Maybe I'll try these workarounds if I'll have time.

But can you tell me about this? "Don�t create managed beans in session scope. Always create in request scope." Why do you recommend it?

P.
15 years ago
JSF
Hi!

I have a Spring based simple JavaSE application packed into a jar file with spring configuration xml in the META-INF. A main method starts the application. Everything works fine, but I run into a problem:
I have to use an external Jar file(s) which names are not predefined and I have to access them runtime.
I don't know how could I solve this. Maybe I should do class loading manually, or something, but I have never done such thing before.

I'd appreciate any recommendation or idea if you have any experience with such things?


Thanks in advance,
Peter
Thanks!

Peter
16 years ago
JSF
Hi!

Do you know any book/article on JSF design and architecture? Some kind of design patterns or best practices about that how should I structure a JSF-based web application.

Thanks in advance,
Peter
16 years ago
JSF
Thanks for your help!

Recently have I found some good example related to table row selection in this book:
JavaServer Faces By Hans Bergsten: Chapter 10 / Processing Row-Specific Events
http://www.oreilly.com/catalog/jsvrfaces/toc.html

It helped me, so I thought it's worth considering.

Thanks again.
Peter
16 years ago
JSF
Hi!

I have a simple problem but I'm a beginner in JSF so I couldn't solve it.
I have a DataTable with a link (or a button) on each row. If the user clicks on it, I would like to show the details of the selected row on an other page.

My problem is I can't pass the id of the row to an action. Actually I don't know how to do that, or what is the good solution.

I know it must be a very basic problem, but I didn't find any examples or tutorials which show how to do this particular thing.


Thanks in advance,
Peter
16 years ago
JSF
Hi!

Recently I had been playing with Java EE 5 features. I would like to use the @Resource annotation to inject a java.sql.DataSource into a simple Servlet.
I'm using Glassfish V2 (with JavaDB) where I configured a connection pool and a JDBC resource with an appropriate JNDI name. (Successfully pinged in admin console.)

I have the following code in my servlet:


The web application (a JSP and this servlet) works fine but the datasource variable is always null. I checked my code against the references and it seems to be fine. Still it's not working.

Could you help me please? Do you have any ideas what did I miss? Is it requires some configuration in the web.xml or something?

Thanks in advance,
Peter

ps.: I hope I posted my question to the appropriate topic.
[ June 02, 2007: Message edited by: Peter Braun ]
16 years ago
Somebody please tell me why don't create the Sun create methods for calculate difference between two dates? Days between two dates for example.

Thanks,
Peter
17 years ago
Hi!

The basic principles and advantages of iBATIS is obvious for me and I think it could be effective/productive.
But what about advanced features? For example how can transactions be used with iBATIS?

Thanks,
Peter
Hi,

I would like to add new features to a webapp with AspectJ 5 and I would like to get my Tomcat to do loadtime weaving.

Have you ever tried something like this?


Thanks in advance,
Peter
17 years ago
Hello,

I decided to ask this question in this topic because I suppose it's a complicated one.

I would like to log method calls with AOP in our project. I'm absolutely not an AOP expert, but I managed to make a simple aspect which provides this functionality in normal Java classes.

My question is, is it possible to achieve this with Servlets and JSP-s? Have you ever seen this before?

Thanks in advance.

Best regards,
Peter
17 years ago
Thank you. I have heard about CruiseControl in connection with continouos integration. It's a good opportunity to take a look at it.
18 years ago
Hi,

I thought I could study some Open Source projects which use JUnit for unit testing to see how it is being used in real life projects.

Can you suggest me some?

Peter
18 years ago
Hello,

I run into a problem that a cannot solve. I want to test a class which requires a mock object. The problem is the required object is created by a Factory, and to top it all it, it is a Singleton.

I'd better to describe it in details:
My object uses a NetFactory class which creates a Singleton CfgData via a static method. This CfgData should be substituted by a MockCfgData.


Cloud you please give me some advise how to solve this problem?

Thanks in advance.
Peter
18 years ago