Thursday 21 June 2012

JSTL Error: According to TLD or attribute directive in tag file, attribute items does not accept any expressions

_________________________________________________________

When you get this sort of exception, you just need to make some small changes in your path.

You may have used

<%@ taglib uri=”http://java.sun.com/jstl/core” prefix=”c”%>

so changed it to

<%@ taglib uri=”http://java.sun.com/jsp/jstl/core” prefix=”c”%>

and most probably you will get your problem solved ( it worked for me)


Wednesday 20 June 2012

Disable a button using CSS

__________________________________________________________


Disabling a button is actually disabling event on button, CSS is use to style elements like Divs, buttons etc. But in CSS we can use some sort of firefox hack to disable events on button.
IE does not support "pointer-event: none". Other browsers like Firefox, safari and chrome support.

Add ".active" class to the button.


.active {
   pointer-events: none;
   cursor: default;
}


your code would be like
<input type="image" id="ButtonId" name="buttonName" class="active"/>