Announcement Announcement Module
Collapse
No announcement yet.
Set up displayTag and web flow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Set up displayTag and web flow

    Hello,

    I am working on an interface using Spring web flow.
    I have this uebersicht.xhtml

    HTML Code:
    <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                    xmlns:ui="http://java.sun.com/jsf/facelets"
                    xmlns:display="http://displaytag.sf.net"
                    xmlns:h="http://java.sun.com/jsf/html"
                    template="/WEB-INF/layouts/standard.xhtml">
    
        <ui:define name="content">      
    
            <h:dataTable value="#{arrayVar}" var="conv">
                      <h:column>
                                   <h:outputText value="#{conv.id}"/>
                      </h:column>
            </h:dataTable>
    
            <div>
                <div>
                    Table:
                    <display:table id="row" name="arrayVar" pagesize="3" requestURI="/spring/uebersicht">
                        <display:column title="row number" sortable="true" sortName="rowNum">
                            <h:outputText value="${row_rowNum}"/>
                        </display:column>
                        <display:column title="name" sortable="true" sortName="name">
                            <h:outputText value="${row.id}"/>
                        </display:column>
                    </display:table>
                </div>
            </div>
    
        </ui:define>
    
    </ui:composition>

    arrayVar is the variable where I save the value from an action on one flow:

    HTML Code:
    <on-start>
    		<evaluate expression="databaseActionsBean.getArrayVar()" result="flowScope.arrayVar " />
    	</on-start>
    Using the first example, I get the values that I need. But I want to use displayTag, so I built this java class:

    Code:
    @Controller
    @RequestMapping(value="/spring/uebersicht")
    public class UebersichtController {
    
        private DatabaseActionsBean databaseActionsBean = new DatabaseActionsBean();
    
        @RequestMapping(method = RequestMethod.GET)
        public String conversationsToShow(Model model) {
            model.addAttribute("arrayVar", databaseActionsBean.getStoppedConversations());
            return "uebersicht";
        }
    }

    But the second table does not give me any result, and I can see this warning message

    HTML Code:
    Warning: This page calls for XML namespace http://displaytag.sf.net declared with prefix display but no taglibrary exists for that namespace.
    What could be the problem?

    I include the pom dependencies:

    HTML Code:
    <!--Display tag-->
            <dependency>
                <groupId>displaytag</groupId>
                <artifactId>displaytag</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl104-over-slf4j</artifactId>
                <version>1.4.2</version>
            </dependency>
            <dependency>
                <groupId>taglibs</groupId>
                <artifactId>standard</artifactId>
                <version>1.1.2</version>
            </dependency>
    Thanks in advance
Working...
X