i get a date from server side and how do I compare this in my xhtml code, so that if it is less than today's date, I'll render the panel, otherwise not.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
You can have a method in your bean
on XHTML
Update:
As per your comment, if you want to accomplish it through javascript then.
take two hidden parameter. One current millis and another representing your date's millis
compare them using javascript and apply DIV's style
visibility:hidden
to hidetry
{mbean.cardExpiryDate gt now}