我有这张桌子:
<body>
<table id="page" >
<tr id="header" >
<td colspan="2" id="tdheader" >je suis</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
</table>
</body>
Run Code Online (Sandbox Code Playgroud)
这是css
html, body, #page {
height:100%;
width:100%;
margin:0;
padding:0;
}
#header {
margin:0;
padding:0;
height:20px;
background-color:green;
}
Run Code Online (Sandbox Code Playgroud)
我想删除所有边距和填充但总是我有:

我该如何解决这个问题?
有没有办法DatePickerDialog用法语显示日期
我搜索了这个,但没有找到结果
这是我的代码:
Calendar c = Calendar.getInstance();
picker = new DatePickerDialog(PaymentView.this,
PaymentView.this,
c.get(Calendar.YEAR),
c.get(Calendar.MONTH),
c.get(Calendar.DAY_OF_MONTH));
picker.setIcon(R.drawable.ic_launcher);
picker.setTitle("Choisir la date");
picker.getDatePicker().setMinDate(System.currentTimeMillis() - 2000);
Run Code Online (Sandbox Code Playgroud)
而不是星期五,2014年11月21日我希望有法语缩写我还添加了在实例化之前:
Locale locale = new Locale("FR");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getApplicationContext().getResources().updateConfiguration(config, null);
Run Code Online (Sandbox Code Playgroud) 我已经安装上genymotion模拟器的Facebook应用程序nexus 4.1.1
版本2.0.1的Genymotion.
但它不起作用......
安装成功后,我在家中看到了Facebook应用程序的快捷方式,但是当我按下一个黑屏时出现大约三秒钟并关闭
你知道如何解决这个问题吗?
我用这个:
<p:calendar id="popupCal" yearRange="c:c+1" lang="fr" required="true"
requiredMessage="Date obligatoire" readonlyInput="true"
navigator="true" pattern="dd-M-yyyy" locale="fr"
showOn="both" value="#{commandeMB.commande.dateCmd}"
mindate="#{commandeMB.todaysDate}" />
Run Code Online (Sandbox Code Playgroud)
正如我所写,我将readonyinput设置为true
我也测试了readonly为true,两者都是true但没有结果,总是可以改变日期
这是一个错误吗?
谢谢你的推荐
我有这个问题:

这是代码:
<p:panelGrid styleClass="newArticlePanelGrid" >
<!-- __________________________________________row1________________________________________________ -->
<p:row>
<p:column>
<h:outputLabel value="Designation : " />
</p:column>
<p:column colspan="3" >
<p:inputText id="new-article-designation" style="width: 449px;"
value="#{articlesMB.article.designation}" required="true"
requiredMessage="designation requise" />
</p:column>
</p:row>
<p:row>
<p:column />
<p:column colspan="3" >
<p:message id="for-new-article-designation"
for="new-article-designation" display="text" />
</p:column>
</p:row>
<!-- __________________________________________row2________________________________________________ -->
<p:row>
<p:column>
<h:outputLabel value="Type : " />
</p:column>
<p:column>
<p:selectOneMenu id="new-article-typeggg" required="true"
requiredMessage="type requis" converter="#{typeConverter}"
style="width:100%" value="#{articlesMB.article.type}">
<!-- <f:selectItem itemLabel="Selectionner Type" itemValue="" />-->
<f:selectItems value="#{articlesMB.listTypes}" var="v"
itemLabel="#{v.libelle}" itemValue="#{v}" />
</p:selectOneMenu>
</p:column>
<p:column>
<h:outputLabel value="Unité …Run Code Online (Sandbox Code Playgroud) 我想设置自定义对话框的宽度以包装内容,但始终将其填满屏幕的所有宽度
我已经测试过了
android.view.WindowManager.LayoutParams params = mydialog.getWindow().getAttributes();
params.width = android.view.WindowManager.LayoutParams.WRAP_CONTENT;
mydialog.getWindow().setAttributes((android.view.WindowManager.LayoutParams) params);
Run Code Online (Sandbox Code Playgroud)
然后
mydialog.getWindow().setLayout(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
Run Code Online (Sandbox Code Playgroud) 我的android活动中有这个editText
<EditText
android:id="@+id/payment_expiration"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/payment_expiration_label"
android:layout_centerHorizontal="true"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:clickable="true"
android:onClick="update_expiration_date"
android:editable="false"
android:layout_marginTop="-4dp"
android:cursorVisible="false"
android:maxLength="7"
android:padding="10dp"
android:textSize="13dp" />
Run Code Online (Sandbox Code Playgroud)
正如您在用户点击时所看到的那样
我调用这个方法来启动datePickerDialog:
public void update_expiration_date(View v){
Log.i("","cliqué");
picker.show();
can_update_expiration_date = true;
}
Run Code Online (Sandbox Code Playgroud)
我遇到的问题是:在我第一次打开此活动时,用户必须单击两次才能启动对话框
但在那之后,只需点击一下即可
我该如何解决这个问题
我有这个命令按钮:
<p:commandButton value="Enregistrer" action="#{reglementClientMB.ajouter}"
process="@this @form" update="@form" >
<f:setPropertyActionListener target="#{reglementClientMB.est_ajouter}" value="false" />
</p:commandButton>
Run Code Online (Sandbox Code Playgroud)
action方法返回到另一个页面,我想p:growl在下一页加载时显示一个
我测试了它是托管bean的构造函数,但是growl显示在页面中的数据下面
FacesContext.getCurrentInstance().addMessage(
null,
new FacesMessage(FacesMessage.SEVERITY_INFO, ""
+ "Confirmation", "Réglement crée avec sucée"));
RequestContext.getCurrentInstance().update("messages");
Run Code Online (Sandbox Code Playgroud)
我该怎么做到这一点
先感谢您
我有这个
<p:selectOneMenu id="dec" value="#{editCommandController.myCom.decision}" >
<f:selectItems value="#{editCommandController.decisions}" />
<p:ajax update="etat :myform:alors" event="change" />
</p:selectOneMenu>
Run Code Online (Sandbox Code Playgroud)
它允许禁用它
<p:selectOneMenu id="etat" value="#{editCommandController.myCom.etat}" disabled="#{editCommandController.myCom.decision eq 'rejettée'}" >
<f:selectItems value="#{editCommandController.etats}" />
</p:selectOneMenu>
Run Code Online (Sandbox Code Playgroud)
当检查条件时,我还想在检查相同条件时隐藏此panelgrid:
<h:panelGrid id="alors" rendered="#{editCommandController.myCom.decision ne 'rejettée'}" >
<p:dataTable id="cars" style="width: 80px;" var="car" value="#{editCommandController.pdm}" paginator="true" rows="10"
selection="#{editCommandController.selectedPapier}" selectionMode="single" >
<p:ajax event="rowSelect" listener="#{editCommandController.onRowSelect()}"
update=":myform:jesuis" />
<f:facet name="header">
RadioButton Based Selection
</f:facet>
<p:column headerText="libelle">
#{car.libelle}
</p:column>
<p:column headerText="format">
#{car.format}
</p:column>
<p:column headerText="stock" >
#{car.stock}
</p:column>
</p:dataTable>
<h:outputText id="jesuis" value=" c est la papier : #{editCommandController.selectedPapier.libelle}" />
<h:panelGrid …Run Code Online (Sandbox Code Playgroud) android ×4
jsf-2 ×4
primefaces ×4
css ×2
calendar ×1
click ×1
datepicker ×1
dialog ×1
events ×1
facebook ×1
genymotion ×1
growl ×1
html-table ×1
java ×1
java-ee ×1
launch ×1
load ×1
localization ×1
margin ×1
padding ×1
panel ×1
readonly ×1
rendering ×1
width ×1