I am using JSF and want to have a component that should be rendered only when the value of a String in the associated managed bean is greater than zero. I am doing this :
rendered="#{tabbedToolbarBean.editor.selectedQuery.length() gt 0}"
Additionally the signature of getter for selectedQuery
is public String getSelectedQuery(){}
. I get the following error with the latest version of weblogic server.
Error: Function length has an invalid prefix or uses the default namespace which is not defined. Correct the prefix or in a jsp document, put the function inside a tag that defines the tag library namespace
What am I missing?Not getting much help after googling.