这里我遇到了mat选项卡的问题。为了导航到新路线,我需要点击标签而不是标签,但我需要的是每当我点击垫子标签时我需要导航到新路线。
我的代码如下所示
17:26:33,450 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017534: Registered web context: /f3ls
17:26:33,535 INFO [org.jboss.as.server] (XNIO-1 task-3) JBAS018565: Replaced deployment "f3ls-ear.ear" with deployment "f3ls-ear.ear"
17:26:40,405 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: Unexpected Error
17:26:40,407 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.TransportService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,410 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.MaterialService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,412 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.PlatzService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,415 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.TransportService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,417 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.MaterialService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,420 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.PlatzService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,422 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.TransportService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,425 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.MaterialService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,427 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.PlatzService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,429 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.TransportService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,432 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.MaterialService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,434 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.PlatzService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,437 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.TransportService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,439 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.MaterialService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,442 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.PlatzService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,444 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.TransportService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,447 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.MaterialService$Proxy$_$$_Weld$EnterpriseProxy$
...
...
17:26:40,702 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.TransportService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:40,704 ERROR [org.jboss.as.ejb3] (default task-10) javax.ejb.EJBTransactionRolledbackException: WELD-000079: Could not find the EJB in JNDI: class de.hydro.gv.f3ls.services.data.MaterialService$Proxy$_$$_Weld$EnterpriseProxy$
17:26:42,045 ERROR [io.undertow.request] (default task-10) UT005023: Exception handling request to /f3ls/transport/verwaltung/transporte.jsf: java.lang.OutOfMemoryError: Java heap space

答案 0 :(得分:0)
将click
事件移至mat-tab
元素,如下所示:
<mat-tab *ngFor="let name of names; let i = index" (click)="route(routes[i])">
<ng-template mat-tab-label>
<a class="routes">{{ name }}</a>
</ng-template>
</mat-tab>
答案 1 :(得分:0)
<mat-tab-group class="form-wizard" [(selectedIndex)]="selectedIndex" (selectChange)="route(routes[selectedIndex])">
<mat-tab *ngFor="let name of names; let i = index">
<ng-template mat-tab-label>
<a class="routes">{{ name }}</a>
</ng-template>
</mat-tab>
</mat-tab-group>
&#13;