4 Replies Latest reply on Jan 30, 2006 4:20 PM by kryptontri

    Seam examples

    kryptontri

      Hi there

      I am in process of developing an application morphed from the booking
      example. Can somone post or direct me to some presentation examples
      that deal with if/else type logic. As an example

      <h1>Profile Name</h1>
       <p>
       <h:outputText value="No Profile Found" rendered="#{user.profileName}".>
       #{user.profileName}
       </p>
      


      If there is no userProfile value set on the User object, how do i display a link to create a new profile etc ? Can direct me to an example ? I am looking at the examples again.

      TIA
      k

        • 1. Re: Seam examples
          kryptontri

          Sorry, i just realised, is this more a question directed towards jsf/tags rather than seam ?

          Does the user object/var mean the same in terms of managed jsf object hence using jsf control logic as seam is a bind framework between jsf and ejb3 etc ?

          TIA
          k

          • 2. Re: Seam examples
            kryptontri

            Hi guys,

            Sorry about my question, seems like jstl/jsf is new to me, anyway, this is the way

            Declare:

             xmlns:c="http://java.sun.com/jstl/core"
            


            then kowabunga! errr ok i'm outta date

            <h1>Profile Name</h1>
             <p>
             <c:if test="${user.profileName==null}">
             Click here to create a profile
             </c:if>
             </p>
            


            WASSUP mofo !

            Err Sorry, so there you go. Hope this helps newbies

            k

            • 3. Re: Seam examples
              kryptontri

              WASSUP !

              :-)

              K is happy now.

              • 4. Re: Seam examples
                kryptontri

                Ahh .. life is good.

                ok i stop now.