マイページ--- ---h:panelGridのセルの一貫性のない割り当て
何かが原因で、いくつかの行に空のセルが作成されています。
私は可視の2列テーブル、最初の列のラベル、2列目のinputText要素、またはツールチップを持つselectMenuを持っています。
私の回避策は3列のテーブルを作成し、空のセルを作成しないようにpanelGridを設定する場合は、<br></br>
を追加するよう促します。
<h:panelGrid columns="3" style="text-align:left">
<p:remoteCommand name="startJobActivate" actionListener="#{provisioningBean.startJobActivate}" />
<h:outputLabel for="longitudeIdAct" value="Longitude: " />
<p:inputText id="longitudeIdAct" value="#{provisioningBean.longitude}" title="Longitude" />
<p:watermark for="longitudeIdAct" value="Longitude" />
<h:outputLabel id="equipmentDropMenuActLabel" for="equipmentDropMenuAct" value="#{provisioningBean.accessDeviceLabel}" />
<p:selectOneMenu id="equipmentDropMenuAct" value="#{provisioningBean.equipment}" title="Not needed for CSI or SIP"
disabled="#{provisioningBean.equipDisabled}" style="width: 100% !important">
<f:selectItem itemLabel=" Equipment" itemValue="" noSelectionOption="true" />
<f:selectItems value="#{provisioningBean.equipments}" />
</p:selectOneMenu>
<p:tooltip for="equipmentDropMenuAct" />
<h:outputLabel for="rangeActId" value="Range: " />
<p:spinner id="rangeActId" value="#{provisioningBean.rangeAct}" min="1" title="Amount of telephone numbers to provide" size="3"
disabled="#{provisioningBean.rangeDisabled}" />
<br></br>
</h:panelGrid>
これはバグですか? 私はここで何が欠けていますか?
EDIT: まあまあ!私は、最小限の例を作成するために管理し、それはまだ同じ問題があります:D https://gist.github.com/WurmD/f3cb45669e6871acc77462f34891862f
screenshot - you need 10 rep to post images
は、これは3列hである:panelGridが、3番目のセルは何か
に巻き取られていますEDIT2:Pと同じ動作:panelGrid
あなたはの画像をアップロードできますそれはどのようなものか? p:panelGridを使用するとどうなりますか?ハードコーデットテキストを使用した簡単な例を作成して簡単にテストできますか? –
@ JaqenH'ghar:done :) – WurmD
3列は、それぞれの3番目の要素の後に新しい行が始まることを意味します。関連するものはパネルグリッドの外側に移動しないか、物をグループ化しパネルグループの数を1にするために 'h:panelgroup'素子 – Kukeltje