SalesForce呈现为调用javascript函数(SalesForce rendered to call a javascript function)
有没有办法让渲染的属性调用javascript函数? 我希望它调用javascript函数的原因是我正在使用的页面没有控制器,因此我无法执行
rendered="{!canRender}"
我正在使用apex:outputText来显示文本,我想要为某些用户隐藏此文本。
我尝试了以下操作并且没有使用它们。
rendered="javascript:myfucntion();" rendered="myfunction();"
Is there a way I can make the rendered attribute call a javascript function? The reason I want it to call a javascript function is that the page I'm using doesn't have a controller so I can't do something like
rendered="{!canRender}"
I'm using an apex:outputText to display a text and I want this text to be hidden for certain users.
I tried doing the following and non of them worked.
rendered="javascript:myfucntion();" rendered="myfunction();"
原文:https://stackoverflow.com/questions/10745099
最满意答案
我终于找到了解决方案。
.so
文件必须位于<project>/app/src/main/jniLibs/
中才能包含在.apk
。 之前,我已将它们放入libs文件夹中。I finally found a solution here. The
.so
file must be located in<project>/app/src/main/jniLibs/
to be included in the.apk
. Before, I had put them into the libs folder instead.
相关问答
更多-
最简单的方法来做到这一点: 在Android Studio中右键单击您打开的项目,然后选择New > Module 在左侧窗格中选择Android库,然后单击下一步。 输入所有详细信息,取消创建活动,主题和全部(如果不需要)。 选择与您的项目相同的API级别,然后选择Next,Next,Next。 现在您将在您的项目中看到另一个目录,库的build.gradle将自动为您配置。 如果你的模块/库名称是“mylibrary” , include ':mylibrary' 会自动添加到项目根目录下的sett ...
-
为了在Android环境中使用CMake加载你的库,你必须在native-lib CMakeLists.txt中添加下面的代码: 设置你的libs路径 set(LIBS_DIR ${CMAKE_SOURCE_DIR}/../jniLibs) 添加库来导入 add_library(DYNAMIC_LIB SHARED IMPORTED) 为每个ABI设置库位置 set_target_properties(DYNAMIC_LIB PROPERTIES IMPORTED_LOCATION ${LIBS_DIR}/ ...
-
您可以从sdk \ extras \ android \ support \ design \ libs中找到来自sdk的android jars,如android-support-design ,并做更多。 外部罐子,如改造 , okhttp等 http://www.java2s.com/Code/Jar/ You can find android jars from your sdk like android-support-design from sdk\extras\android\support\ ...
-
如果可以从npm获得,你可以执行npm install packageName --save然后使用'packages.js'中的import Package 请记住反应本机不是javascript和一些浏览器特定的功能将不会转换,换句话说,你正在使用的插件可能无法在本机反应。 顺便说一下,除了启动模拟设备以运行本机响应之外,不需要Android工作室。你应该能够做出反应原生的run-android并提供你正确设置模拟设备它将启动包管理器并在其上安装你的应用程序然后刷新保存。 你在使用反应原生cli吗? 在 ...
-
创建新的文件夹project/app/src/main/jniLibs ,然后把你的*.so文件与他的abi文件夹放到这个位置。 已弃用的解决方案 将您的模块gradle.build文件中的两个代码片段添加为依赖关系: compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar') 如何创建这个自定义jar: task nativeLibsToJar(type: Jar, description: 'create a j ...
-
Android Studio转换和使用子库/共享库(Android Studio transition and using sub libraries / sharing libraries)[2021-03-19]
我做了什么: 切换到:git 将我们的子项目从svn转换为git 使所有子项目成为主要项目的外部 在这篇文章的帮助下,将子项目包含在gradle中: Android Studio 0.8.1创建模块而不复制文件? 缺点: Android Studio无法完全管理 - 必须在Studio中执行一半提交,另一半+在控制台中推送 - 所以我完全抛弃了Studio并再次将所有内容移动到控制台。 可能这毕竟不是那么糟糕:) 我所做的是使用Blundell的建议 - 虽然我真的......真的......真的不想完全转 ... -
大多数Android应用都是用Java编写的。 谷歌发布了Native Developer Kit(NDK),以允许开发人员用C ++编写库。 但是,这些库通常级别很低,并且从定义UI和更高级别应用程序逻辑的Java代码调用。 您很可能需要为库编写一个包装器,以便可以从Java代码中调用它。 看起来这个博客是一个很好的起点。 Most Android apps are written in Java. Google has released the Native Developer Kit (NDK) in ...
-
在你的build.gradle包含http://jcenter.bintray.com作为mavenCentral 之前的仓库,如下所示: repositories { maven { url "http://jcenter.bintray.com" } mavenCentral() } 像往常一样在你的项目依赖中使用: dependencies { compile 'com.github.amlcurran.showcaseview:library:5.0.0' } 为什么在m ...
-
我终于找到了解决方案。 .so文件必须位于
/app/src/main/jniLibs/中才能包含在.apk 。 之前,我已将它们放入libs文件夹中。 I finally found a solution here. The .so file must be located in /app/src/main/jniLibs/ to be included in the .apk. Before, I had put them into the libs folder in ... -
如何在我的项目中包含GitHut库(Android Studio)(How to include GitHut library in my project (Android Studio))[2021-09-15]
引用文档 : 如果您想使用此库,您只需下载MaterialDesign项目,将其导入您的工作区并将项目作为库添加到您的android项目设置中。 步骤1:下载项目,无论是通过GitHub提供的ZIP文件还是使用git克隆存储库 步骤2:将MaterialDesign/目录移动到项目目录中,作为现有app/模块的对等项 步骤3:修改项目目录中的settings.gradle以包含:MaterialDesign在要构建的模块列表中 步骤4:在app模块的build.gradle文件中,将compile proj ...