Dave Boyd

Greenhorn
+ Follow
since May 29, 2006
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 Dave Boyd

Hey All,

this is actaully a commons beanutil question but hoping this forum is a good spot for it.

I have a problem with custom objects and java beans

e.g.

class MyCustomNumber
{
}

class MyJavaBean
{
private MyCustomNumber someProp;
//getter and setter
}

I am having allot of difficult in working with custom objects and binding them using commons bean.

PropertyUtils doesn't seem to have type conversion, so i looked into BeanUtils

However the problem I have, some of my properties are collections, but BeanUtils.getProperty() converts everything to a string ( very anoying )

I need to use BeanUtils.setProperty() so I can do the type conversion, but it just doesn't seem right to

set properties using BeanUtils.setProperty() and
get properties using PropertyUtils.getProperty() just so I can support custom value objects and collections as bean properties.

Can anyone give me some advice?
Hey all

anyone know how to turn off myfaces warnings?

i am getting

WARNING: Response has no <head> or <body> tag:

but the response is an ajax response.

The application works fine just getting my console filled with junk


P.s using ajaxanywhere
[ October 26, 2006: Message edited by: Dave Boyd ]
17 years ago
JSF
Hey All,

i did a bit of development with JSF 1.1 but have not been working with 1.1 for a while now

Just wondering experiences people have had with 1.2 and glassfish, is it worth porting over yet? or are there still a few things missing?

Also does anyone knows what kind of timeline before we will see other web servers supporting J2EE 5?


Finally if anyone can link some articles describing the differences between jsf 1.1 and 1.2 that would be excellent

Thanks
17 years ago
JSF
Core Java Server Faces

really good book as well
17 years ago
JSF
your approach should be fine

but instead of binding your components why not bind the disabled property

i.e <h:inputText ... disabled="#{someBean.someProperty}"/>

have someProperty be true or false

that way all you have to do is change the someProperty variable in your bean to true and all yoru components are disabled

or set it to false and all yoru components are enabled


the structure you used should be fine i.e will work from action listener
17 years ago
JSF
if you ever wanted to check out the source that JSF procedures you may be shocked just how much javascript is used

just look at the command components for example
17 years ago
JSF
You dont need JSF

but it helps

for a simple login page i would not even consider JSF unless you already know how to use it

for a massive complex web app JSF will make your life alot easier than straight JSP

If its small dont worrie about JSF

if your web app is big or has the chance of growing use JSF will make your life easier in the long run
17 years ago
JSF
check out

www.jenia.org

dataTools project
17 years ago
JSF