facebook

JSF rendered attribute gives warning on EL

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #275280 Reply

    The rendered attribute in JSF components gives the following warning in the editor when using an expression:

    Valid values are “true” or “false”

    E.g. I have the following:

    <h:commandButton id=”pickAnyway” rendered=”#{order.user.supervisor}”
    value=”#{msgs.PICKWARNINGS_PICKANYWAY}”
    action=”#{order.firstItemToPick}”/>

    where the rendered attribute uses an expression which does evaluate at run time.

    Not a big issue but it would be good if the warning did not appear.

    #275281 Reply

    Even better if you could actually validate the expression to see if it returns a boolean. Then the warning could be trusted and actually quite valuable

    #275294 Reply

    Loyal Water
    Member

    Can you paste your installation details here for me. The posting guidelines thread can be found at the top of the forum.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSF rendered attribute gives warning on EL

You must be logged in to post in the forum log in