0
私のプライムフォームはウェブブラウザ(Firefox)ではOKであると思われますが、とにかくEclipse内部ブラウザではそれは広すぎます(4画面幅のようなものかもしれません)。 私はその問題がコードにあるとは思わないが、とにかく添付されている。Eclipseのプライムプレビュー - ダイアログが広すぎる
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
>
<h:head>
<h:outputScript library="javax.faces" name="jsf.js"/>
</h:head>
<h:body>
<br/>
<br/>
<h:form prependId="false" id="form" styleClass="styleGreen">
<p:panel id="panel" header="Login" style="width: 400px; position:relative; left:100px">
<br/>
<p:panelGrid columns="2">
<p:outputLabel for="articleCount" value="Count"/>
<p:inputText id="articleCount" value="#{articleBean.articleCount}" requiered="true" requiredMessage="Enter Count"/>
<p:outputLabel for="articleName" value="Name"/>
<p:inputText id="articleName" value="#{articleBean.articleName}" requiered="true" requiredMessage="Enter Name"/>
<p:outputLabel for="articleDescription" value="Description"/>
<p:inputText id="articleDescription" value="#{articleBean.articleDescription}" requiered="true" requiredMessage="Enter Description"/>
</p:panelGrid>
<br/><br/>
<p:commandButton id="saveBtn" value="Save" icon="ui-icon-save" action="#{articleBean.save}"/>
<p:commandButton id="cancelBtn" value="Cancel" action="index"/>
</p:panel>
</h:form>
次に、eclipseで実際のブラウザを使用してみてください。また、FFやIEなどを使用するように設定することもできます。スペックコンプライアンスに関する不明なブラウザで原因を見つける時間を無駄にします。 – Kukeltje
ああ、btw、手動でjsfスクリプトを含む奇妙なので、必要はありません – Kukeltje
とprependIdをfalseに使用しないでくださいhttp://stackoverflow.com/a/7416770/6546865 – SiMag