<h:selectOneMenu id="dropdownDevice"
value="#{skinningBean.currentDevice}" converter="SkinConverter">
<f:selectItems value="#{skinningBean.myDevicesSI}" var="c"
itemValue="#{c}" />
<f:ajax event="change" render="preview" />
</h:selectOneMenu>
Run Code Online (Sandbox Code Playgroud)
是否可以在此下拉列表中重新加载整个页面?我需要这个,因为我还需要在选择其他设备时重新加载javascript.
我有问题,我的RecyclerView在AppBarLayout后面被切断了
这是我的XML
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.MainActivity">
<android.support.design.widget.CoordinatorLayout
android:id="@+id/root_coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing_tool_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:color="@android:color/white"
app:contentScrim="@color/blue_grey_900"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<ProgressBar
android:id="@+id/loadingProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<android.support.v7.widget.Toolbar
android:id="@+id/toolBar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:layout_scrollFlags="snap|enterAlways"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/rvList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/activity_vertical_margin"
android:src="@android:drawable/ic_menu_share"
app:layout_behavior="irisrecognition.example.com.irisrecognition.adapter.ScrollAwareFABBehavior" />
</android.support.design.widget.CoordinatorLayout>
<android.support.design.widget.NavigationView
android:id="@+id/navigation_drawer"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:menu="@menu/menu_main" />
Run Code Online (Sandbox Code Playgroud)
我想执行以下命令
SELECT * FROM `auktionen` LIMIT 0, 5 ORDER BY createdat DESC
Run Code Online (Sandbox Code Playgroud)
这告诉我我有一个SQL语法错误.我按照这个问题回答了.
每当我删除LIMIT或ORDER BY语句时,它将再次执行:
SELECT * FROM `auktionen` ORDER BY createdat DESC
SELECT * FROM `auktionen` LIMIT 0, 5
Run Code Online (Sandbox Code Playgroud)
那我究竟做错了什么?
我正在尝试对 json 文件执行 GET 请求:
https://www.someurl.com/appconfiguration.json
所以我使用以下 GET 方法创建了一个接口
@GET("appconfiguration.json}")
Call<AppConfigParent> loadAppConfigParent();
Run Code Online (Sandbox Code Playgroud)
并这样称呼它:
final MMSATServices.AppConfigResponse appConfigResponse = new MMSATServices.AppConfigResponse();
appConfigResponse.appConfigParent = new AppConfigParent();
appConfigResponse.appConfigParent.configuration = null;
Call<AppConfigParent> call = api.loadAppConfigParent();
call.enqueue(new Callback<AppConfigParent>() {
@Override
public void onResponse(Call<AppConfigParent> call, Response<AppConfigParent> response) {
appConfigResponse.appConfigParent.configuration = response.body().configuration;
bus.post(appConfigResponse);
}
@Override
public void onFailure(Call<AppConfigParent> call, Throwable t) {
}
});
Run Code Online (Sandbox Code Playgroud)
请注意,该api对象是在超类中定义的接口的实例。
实际问题是我收到 404 响应:
请求{method=GET,url= https://someurl.com/appconfiguration.json%7D,标签=Request{method=GET,url= https://someurl.com/appconfiguration.json%7D,tag=null } }
正如您所看到的%7D,附加到 URL 后,这会导致 404 错误。我怎样才能摆脱这种行为?
给定以下字符串: be_de=Interessant für Dich; be_fr=Intéressant pour toi;
在Kotlin中为给定语言环境提取子字符串的最佳方法是什么?例如,我已经给出了be_fr想要的语言环境Intéressant pour toi。该字符串始终位于语言环境之间,后跟a =和a;
给定字符串的地方可能更多,提取值的位置总是变化的。
当然,我可以只在区域设置的第一个索引之后创建一个子字符串,然后搜索分号的第一个索引,但是我认为还有一种更优雅的方式,例如using removeSurrounding,我想不到atm。
我想减少列表中数量增加的每个元素的字体大小:
<ul>
<li>Number 1</li>
<li>Number 2</li>
<li>Number 3</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
应该会产生类似的结果
其中第一个元素的字体大小为25px,第二个元素的字体大小为20px,第三个元素的字体大小为15像素,依此类推.
有没有办法只用CSS做到这一点?