• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF, Set attribute type dynamically.  RSS feed

 
lalit kaithal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

context.getELContext().getELResolver().getType(context.getELContext(), null, "value")

Here "value" is an attribute name. By this we can get data type of the attribute.

By somehow can we set the type also?

Thanks in advance for your answer.
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Lalit!

The first thing I always have to ask when I see JSF-specific code is "why". What is this complex platform-specific construct supposed to do that something simpler and less JSF-specific could not?

In this particular case, especially I don't understand. Attributes are the named properties of JSF tags and they're not something that you should be meddling with directly under virtually any scenario I can hallucinate.

Did you mean "backing bean properties"? If so, you've taken the Inversion of Control mechanism and re-inverted it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!