1 Reply Latest reply on Jun 11, 2010 5:34 AM by damienmc3

    No resolving of jsf-tags ?

    damienmc3

      Hello all,


      I got a problem, configured now my spring-integration and so on, JBoss AS 5.1 runs fine, project deploys correctly. When I start my webapp and look for the generated code, it shows the following:




      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html  xmlns="http://www.w3.org/1999/xhtml"><head></head><ui:composition xmlns="http://www.w3.org/1999/xhtml"
          xmlns:s="http://jboss.com/products/seam/taglib"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:rich="http://richfaces.org/rich"
          template="layout/template.xhtml">
      
          <ui:define name="body">
      
              <h1>Welcome to PURPL</h1>
              <rich:panel>
                  <h:panelGrid columns="2">
                      <h:graphicImage value="/img/seamlogo.png" alt="Seam logo"/>
                      <s:div styleClass="info">
      
                          <p><strong>TEST</strong> TEST</p>
                          <ul class="bullets">
                              <li><h:outputText value="#{main.user.username}"/></li>
                          </ul>
                      </s:div>
                  </h:panelGrid>
              </rich:panel>
      
          </ui:define>
      </ui:composition>
      </html>



      So there's no resolving of jsf/richfaces tags and so on, correct ? What's the problem ? Thanks for any hints !

        • 1. Re: No resolving of jsf-tags ?
          damienmc3

          Okay this problem solved, new problem:


          javax.el.PropertyNotFoundException: Target Unreachable, identifier 'main' resolved to  null




          @Scope(SESSION)
          @Name("main")
          public class MainAction {
              
              @In("#{userService}")
              private UserManager userManager;
              
              @In @Out
              private User user;
              
              public String userName;
              
              @Logger
              private Log log;
              
              @Create
              public void onStartup() {
                  System.out.println("FUNZT");
                  log.error("FUNZT!!!!!");
                  setUser(userManager.findUserByUsername("test"));
              }
              
              public String test() {
                  System.out.println("FUNZT TEST");
                  log.error("FUNZT TEST!!!!!");
                  return null;
              }
           
              public UserManager getUserManager() {
                  return userManager;
              }
           
              public void setUserManager(UserManager userManager) {
                  this.userManager = userManager;
              }
           
              public String getUserName() {
                  return userName;
              }
           
              public void setUserName(String userName) {
                  this.userName = userName;
              }
           
              public void setUser(User user) {
                  this.user = user;
              }
           
              public User getUser() {
                  return user;
              }
              
           
          }



          Any hints ??