No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
ページブロックコンポーネントのベストプラクティス
- <apex:pageBlockSectionItem> への複数の子コンポーネントの追加
- <apex:pageBlockSectionItem> コンポーネントに含めることができる子コンポーネントは最大でも 2 つだけです。ただし、子コンポーネントを 3 つ以上追加する必要がある場合があります。たとえば、<apex:outputLabel> の前にアスタリスクを追加し、さらに関連付けられている入力テキスト項目を表示する必要がある場合などです。これを実行するには、次のように <apex:outputPanel> コンポーネントでアスタリスクおよび出力ラベルをラップします。
1swfobject.registerObject("clippy.codeblock-1", "9");<!-- Page: --> 2<apex:page standardController="Account"> 3 <apex:form > 4 <apex:pageBlock title="My Content" mode="edit"> 5 <apex:pageBlockSection title="My Content Section" columns="2"> 6 <apex:pageBlockSectionItem > 7 <apex:outputPanel> 8 <apex:outputText>*</apex:outputText> 9 <apex:outputLabel value="Account Name" for="account__name"/> 10 </apex:outputPanel> 11 <apex:inputText value="{!account.name}" id="account__name"/> 12 </apex:pageBlockSectionItem> 13 </apex:pageBlockSection> 14 </apex:pageBlock> 15 </apex:form> 16</apex:page> 17