facebook

ui:composition

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #271030 Reply

    Tony Herstell
    Participant

    This is directly out of Seam doco.
    In MyEclipse, now, the xmlns are marked invalid.
    Is this configurable in MyEclipse to allow it.
    Or is this really incorrect?

    
    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:s="http://jboss.com/products/seam/taglib">
    <div>
    <s:label styleClass="#{invalid?'error':''}">
    <ui:insert name="label"/>
    <s:span styleClass="required" rendered="#{required}">*</s:span>
    </s:label>
    <span class="#{invalid?'error':''}">
    <h:graphicImage src="img/error.gif" rendered="#{invalid}"/>
    <s:validateAll>
    <ui:insert/>
    </s:validateAll>
    </span>
    <s:message styleClass="error"/>
    </div>
    </ui:composition>
    
    #271096 Reply

    Riyad Kalla
    Member

    This is a known issue we are hoping to correct in 6.0/6.1

    #271111 Reply

    Tony Herstell
    Participant

    That is great news.
    Thanks.

    #271159 Reply

    Tony Herstell
    Participant

    I have lots and lots of warning where given:

    
    <ice:outputText value="#{messages.fieldset_create_organisation}"
                                        rendered="#{cRUDOrganisationController.modeIsCreate}" />
    

    These parts of the xhtml are not know:
    messages
    cRUDOrganisationController

    In Seam these are scoped beans that are visible for the page to use.
    They are not defined in the normal JSF way. An annotation and they just automagically appear usable in the page.

    I don’t expect you to add in Seam support today, but I would love it if you could add a option on the facelets or JSF validator to:
    [ ] Ignore unresolved bean references in JSF.
    or just
    [ ] Use Seam Mode

    So we can clear our Errors and Warnings easier and see the wood for the trees.

    🙂

    #271180 Reply

    Riyad Kalla
    Member

    Duely noted, having false errors floating around is certainly not helpful.

    #271189 Reply

    Tony Herstell
    Participant

    Thanks riyad.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: ui:composition

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