James McCluskey

Greenhorn
+ Follow
since Aug 23, 2007
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by James McCluskey

Can you not just use standard servlet security for this?

[ August 26, 2007: Message edited by: James McCluskey ]
16 years ago
JSF
Have you tried Ajax4JSF? I'm not sure if it will meet your requirements exactly, but it enables you to make an Ajax call from a standard JSF component, and you simply identify the component to rerender when the response is received. Trivial access to the bean data therefore.

I hate anything in JSF where I have to pull apart the lifecycle and apply phase listeners.

16 years ago
JSF
I much prefer the latest (second) edition of Core JSF - its a friendly read and yet is fairly complete - certainly there's plenty in there to get you started.
16 years ago
JSF
Could you show us the contents of your webapps directory once Tomcat has unpacked the war file?

If you have:

<tomcat_dir>/webapps/<app_name>/index.jsp

Your URL should be localhost:8080/app_name/index.faces
16 years ago
JSF
Seems there a lot of confusion about this then - I've definitely read articles where the opposite is advised (I would fish some links out, but I'm on a slow connection right now).

As a by the way, doesn't ASP.NET use client side as its default?

What about back button problems with server side state? Has that been ironed out on JSF 1.2?
16 years ago
JSF
Ah sorry, I'm IDE-phobic I'm afraid so I can't help there.

Out of interest, what do you mean by Spring Controller?
16 years ago
JSF
How are you deploying the app to Tomcat?
16 years ago
JSF
Forgive me if I've misunderstood your question...

I think you need to inject a spring configured service object into your JSF bean, something like this (sorry for the clunky example):



How to get Spring to actually set up the ApplicationContext and do the injection of the service object? Full information in the Spring User Guide at http://static.springframework.org/spring/docs/2.0.x/reference/webintegration.html#jsf

Cheers, Jim.
16 years ago
JSF
The following added to your web.xml will switch the state saving strategy to client side:



It seems that the recommended approach is for client state for most applications. Of course, this will increase the amount of network traffic - I understand this can be compressed too (I've no idea how to do that but I'm sure google will come up with something).
16 years ago
JSF
Hi all, hope I'm not asking something obvious here

I'm currently getting up to speed with Facelets - I'm generally liking it, but I'm failing to spot the main point of it.

I've bought the idea that Facelets is more design friendly, and I've followed the example in Core JSF of using jsfc to switch html input fields for <h:inputText> - excellent.

I'm missing something though - how can this apporach be applied to the "bigger" JSF components, like h:dataTables? As a dataTable is a higher level component, it doesn't have a direct analogy in HTML and it doesn't seem easy or natural to fit in with design friendly facelets.

Any advice gratefully received!

Jim.
16 years ago
JSF