【问题标题】:Creating Custom Springboard and link to pages创建自定义跳板和页面链接
【发布时间】:2019-01-03 02:42:54
【问题描述】:

我在 oracle maf 上创建了跳板,链接到 AMX 页面。我点击了以下链接:https://docs.oracle.com/cd/E53569_01/tutorials/tut_jdev_maf_spring/tut_jdev_maf_spring.html

但是,我无法从 Springboard menu 进入另一个链接。第一页反复出现。我发现其他开发人员也面临这个问题,如下链接: https://community.oracle.com/thread/3650470 我也尝试遵循他的解决方案。但是,我在 gotofeature 的绑定中传递了#{pageFlowScope.FeatureId}。

这是我的 Springboard 代码。

<?xml version="1.0" encoding="UTF-8" ?>
<amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
          xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
  <amx:panelPage id="pp1">
    <amx:facet name="header">
      <amx:tableLayout id="tl1" halign="center">
        <amx:rowLayout id="rl1">
          <amx:cellFormat id="cf5" >
            <amx:outputText value="Care Apps" id="ot1" styleClass="titleText" />
          </amx:cellFormat>
        </amx:rowLayout>
      </amx:tableLayout>
    </amx:facet>
    <amx:facet name="primary">
        <amx:tableLayout id="tl2" halign="center">
        <amx:rowLayout id="rl2">
                <amx:cellFormat id="cf4" >
            <amx:image id="i3" source="/images/CARE_logo_60.png"/>
          </amx:cellFormat>
        </amx:rowLayout>
        </amx:tableLayout>
    </amx:facet>
    <amx:tableLayout id="tl4" styleClass="menuUserLayout">
      <amx:rowLayout id="rl6">
        <amx:cellFormat id="cf6" halign="center" valign="middle">
          <amx:image id="i4" source="/images/user_logo.png" inlineStyle="width:100px; height:100px; margin-left: auto; margin-right: auto;"/>
        </amx:cellFormat>
      </amx:rowLayout>
      <amx:rowLayout id="rl5">
        <amx:cellFormat id="cf3">
          <amx:outputText value="User Name" id="ot3" styleClass="menuText"/>
        </amx:cellFormat>
      </amx:rowLayout>
    </amx:tableLayout>
    <amx:tableLayout id="tl3" styleClass="menuTabLayout">
      <amx:iterator var="row" value="#{bindings.features.collectionModel}" id="i1" >
        <amx:rowLayout id="rl3">
          <amx:cellFormat id="cf1">
            <amx:commandLink actionListener="#{bindings.gotoFeature.execute}"
                             disabled="#{!bindings.gotoFeature.enabled}" id="cl1">
              <amx:image id="i2" source="#{row.image}" inlineStyle="width:45px;height:45px;"/>
              <amx:setPropertyListener id="spl1" from="#{row.id}" to="#{pageFlowScope.FeatureId}" type="action"/>
            </amx:commandLink>
          </amx:cellFormat>
          <amx:cellFormat id="cf2">
            <amx:outputText value="#{row.name}" id="ot2" styleClass="menuText"/>
          </amx:cellFormat>         
        </amx:rowLayout>
        <amx:rowLayout id="rl4">       
        </amx:rowLayout>
      </amx:iterator>
    </amx:tableLayout>
  </amx:panelPage>
</amx:view>

但菜单链接不起作用。

【问题讨论】:

    标签: java xml mobile oracle-maf springboard


    【解决方案1】:

    我已经找到了解决方案。我在 SpringboardPageDef.xml 的 methodAction 中从 InstanceName="bindings.gotoFeature.dataControl.dataProvider" 更改为 InstanceName="data.ApplicationFeatures.dataProvider"。

    最后,链接有效。 :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-27
      • 2020-06-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多