Forums Register Login

JSF, Set attribute type dynamically.

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 576 times.
Similar Threads
Weblogic Connection Pool Issue
Pattern to hold list of objects attribute name, value and data type
session attribute and javascript function
ServletContext
Passing data to and from a jsp page
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 22:19:27.