J Haley

Ranch Hand
+ Follow
since Jul 22, 2004
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 J Haley

px

Thanks! I think that's what I was missing. I've added "px" to my units and it seems to be rendering properly.
At first I thought this fixed it, but it does not. Once I include the doctype that our projects using the top sprite gets cut off.

I'm having problems changing an existing site to use sprites. In the example below, I'm using the attached sprite to wrap my test text with a background. The background consist of 3 images, but I can't get the top image to render. This is my first use of sprites and I'm not sure what I'm missing.


If an error occurs for a particular field, I want to show something using a rendered.

How to test for any error.


But how would I do this for a particular error?

[ November 19, 2008: Message edited by: J Haley ]
13 years ago
JSF
I am also interested in figuring out how to do this. Anyone have an idea?
13 years ago
JSF
It was a typo. My min and max values are pointing to different bean values. I guess my main question is how to do this with a binding.
13 years ago
JSF
I�m trying to use validateDoubleRange with an inputText. I seem to have a problem when the minimum and maximum ranges are pulled from my bean. I think I should be able to get around this by using a binding attribute with f:validateDoubleRange. I�m not clear on how to this.

Works, but I need to build min and max dynamically


Does not work. Thinks range is from 0 to 0


Think this may work, but not clear on how binding method in bean would look.
13 years ago
JSF
I think you will have to write your own custom tag that mimics c:import. I like using facelets with jsf, but am very disappointed with the lack of jstl support. If you find a better solution, please post it.
14 years ago
JSF
If you are using facelets, c:import is not supported.
14 years ago
JSF
I am considering taking the SCBCD 1.3 exam (CX-310-090). Prior to beginning to study for this exam, I would like to find out when this exam will no longer be offered. I am not interested in purchasing the exam prior to me being ready to take it, so if it exists I�m looking for the last date it will be offered. I've dug around sun's site, but had no luck.
Using the following tag may also help. You can use this to change your base url.

<base href=""/>


[ February 15, 2007: Message edited by: J Haley ]
15 years ago
JSF
I have also successfully used c:import with jsf. My problem occurs with facelet pages. I have faclets pages that need to import content from outside of my container. When I look at the doc, facelets only supports 4 c: tags and import is not one of them.
https://facelets.dev.java.net/nonav/docs/dev/docbook.html

jsp:include and directive include won�t work in a facelets page. In addtion, they will not pull pages from outside of my container.

I think I�ve finally arrived at a solution. I'm going to have to write a custom tag that mimics what c:import does. I still think I may be missing something. It is very surprising to me that faclets does not support c:import.
15 years ago
JSF
Ok, I get it. I did not have a proper understanding of how this worked. Thanks for clearing this up.

Two more follow ups
1. Sounds like there is no point in hiding faces or facelet templates pages behind WEB-INF since the faces servlet mapping will find them.

2. In JSF, if I have a multi-page wizard. Sounds like I�ll have to create my own logic to prevent the user from accessing the pages out of order. By out of order, I mean prevent them from bypassing page 1 by typing in page 2's url. If I remember correctly with Struts. All I had to do was hid my wizard pages behind WEB-INF
15 years ago
JSF
I only have one WEB-INF directory. �FaceletsWeb� is my context root. And �faces� is my servlet-mapping in web.xml. If I type my url without �faces�, WEB-INF hides my pages, but the problem comes in when I include �faces�.
15 years ago
JSF
I�ve put a example together, but WEB-INF does not seem to hide the pages. For example, after putting my facelets layout page in a subdirectory under WEB-INF, the page will render if the url is typed in. Or otherwise said, I typed in the following url and the layout was displayed.

http://localhost:9080/FaceletsWeb/faces/WEB-INF/pages/layouts/layout.jspx

I�m puzzled. I thought that you could not access pages behind WEB-INF with a browser.
[ February 07, 2007: Message edited by: J Haley ]
15 years ago
JSF