【问题标题】:liferay-ui:search-container with model-context, inputs hiddenliferay-ui:search-container with model-context, input hidden
【发布时间】:2015-11-25 13:45:30
【问题描述】:
<aui:form action="<%=url %>" method="post" name="fm">

         <aui:model-context bean="<%=bean %>" model="<%=MyBean.class %>" />

         <aui:input name="attribute1" />

</aui:form>

从这段代码中,我预计我的表单输入由模型上下文填充。但是在我的 jsp 中,表单输入都是隐藏的,我只能看到每个输入的标签。

liferay 服务层是在一个隔离的 portlet 插件上实现的,并且在每个需要服务实现的 portlet 上我都添加了依赖项。

如果我尝试手动添加输入类型,它会出现,但只是在输入文本类型上。如果我有一个布尔属性并且我在特定输入上指定 type="checkbox",则不会为输入设置任何值。

【问题讨论】:

  • 我在您发布的代码 sn-p 中没有看到任何搜索容器标签。你是说aui标签吗?

标签: java liferay liferay-aui


【解决方案1】:

我的意思是具有模型上下文实现的搜索容器,用于自动评估输入类型和值。输入被隐藏,因为 service.xml 中缺少命名空间定义。问题解决了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-23
    • 1970-01-01
    • 1970-01-01
    • 2015-07-23
    • 2015-03-17
    • 2013-04-24
    相关资源
    最近更新 更多