Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsp Can';无法从选项卡ui获取参数_Jsp_Liferay - Fatal编程技术网

Jsp Can';无法从选项卡ui获取参数

Jsp Can';无法从选项卡ui获取参数,jsp,liferay,Jsp,Liferay,当make click一个选项卡无法显示此选项卡时,因为WAB值始终为红色,我无法获取值,当make click _redirectorportlet _WAR _redirectorportlet _tab值更改但我无法获取它:/。如何获取此值并显示用户单击的选项卡 我有这样一个标签: <liferay-ui:tabs names="red,white" param="tabValue" tabsValues="red,white" value="<%=tabValue %>

当make click一个选项卡无法显示此选项卡时,因为WAB值始终为红色,我无法获取值,当make click _redirectorportlet _WAR _redirectorportlet _tab值更改但我无法获取它:/。如何获取此值并显示用户单击的选项卡

我有这样一个标签:

<liferay-ui:tabs names="red,white" param="tabValue" tabsValues="red,white" value="<%=tabValue %>">
<c:if test="<%= tabValue.equals("red") %>">
<%@ include file ="red/view.jsp" %> 
</c:if>

<c:if test="<%= tabValue.equals("white") %>">
<%@ include file ="white/view.jspf" %> 
</c:if>

</liferay-ui:tabs>
始终返回红色,但在url处我可以看到:

http://localhost:8080/group/rercer/administracion?_rercerorportlet_WAR_rercerportlet_tabValue=Red

发生了什么事(

您不必一直手动检查选项卡参数。 请参阅下面的代码片段示例。liferay ui标记将负责持久化选项卡值/显示












http://localhost:8080/group/rercer/administracion?_rercerorportlet_WAR_rercerportlet_tabValue=Red