• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to write A custom ELResolver?

 
Prash Singh
Ranch Hand
Posts: 103
jQuery Netbeans IDE Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am creating a custom development of my own using jsf 1.2.

I want to know that Do I have to code a separate ELResolver for my component?

Please reply .
 
Tim Holloway
Saloon Keeper
Posts: 18301
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one can say you lack ambition, Prash!

You only need to create custom ELResolvers when you need to resolve information that isn't resolvable using the standard ELResolvers. For example, my webapps are usually Spring-based, so my faces-config file incorporates an ELResolver that allows the system to resolve Spring object names as though they were regular JSF beans.

You're going to a lot of effort here. This is stuff that even I don't do very often and I'm old and evil in the ways of JSF.

You're also doing it for an obsolete version of JSF. The current standard is JSF 2.0 and I won't guarantee how much of what you're doing is going to work in a JSF2 web application. A lot of internals changed between the 1.x and 2.x releases.
 
Prash Singh
Ranch Hand
Posts: 103
jQuery Netbeans IDE Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply Tim.

No one can say you lack ambition, Prash!

Is it a bad thing?


I agree with you that JSF 1.2 version is obsolete, but due to some circumstances I am allowed to use
only JSF 1.2.

The reason I asked this question is because I have to create a component .
Component has been created, but still there are some bugs which need to be fixed in it.

For example,
For the attribute values for the custom component, I am trying to pass values to them using ValueExpression,
But so far , no luck.

Also there is something strange happening, and I am just not that much experienced in JSF to figure out what's going wrong
The component values get updated on the click of commandAction , but are not updated on ValueChangeEvent of some input box
in the same form.It will be a huge help if you can throw some light on this.

I am trying to work this out, but some guidance from you would be a huge boost .

Thanks

 
Tim Holloway
Saloon Keeper
Posts: 18301
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prash Singh wrote:Thanks for reply Tim.

No one can say you lack ambition, Prash!

Is it a bad thing?



In a purely academic sense, definitely not. However, in a practical sense, it's about on par with becoming expert in the repair of mechanical-style fax machines. Or I could be real sarky and say "WebSphere 6.1", but that would be pushing it.

In a practical sense, as I've said before, custom JSF binary controls are atrociously expensive to design, build, and maintain. Relatively few tasks can justify that kind of effort in an age where "faster-cheaper" is the Rule of the Day. In most cases, even in JSF 1.2, you can build a custom tag in an hour or so using Facelets technology that would take more like 2-3 weeks to do as a binary control, even if they DID tell you that "All You Have To Do Is..."

As it happens, I've just recently resurrected a project done back in 2009 that has one of the few binary JSF controls I've ever written. It hooks into the Apache Myfaces internal resource managers to generate JavaScript and CSS in odd corners of the outgoing HTML. The techniques I used are now totally obsolete, and I'm not even using MyFaces on any current projects, although they were wonderful back then. So I'm going to pretty much scrap all that work and redo it.

I do realize, BTW that I haven't actually answered your technical questions. But that's because that knowledge is so specialized and so localized in time that I'd have to go back and RTFM all over again. Then I'd have to bill you for it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic