Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ui:define name="editPanelContext">
- <h:panelGrid id="streetDicEditPanel" columns="2">
- <h:outputText value="#{addressBundle.country}"/>
- <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.country}"
- entityType="country" format="{name}" style="width:150px">
- <a4j:support event="onchange" reRender="streetDicEditPanel"/>
- </itdep:entitySelectMenu>
- <h:outputText value="#{addressBundle.region}" rendered="#{not empty streetDictionaryBean.filter.country}"/>
- <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.region}"
- filter="#{streetDictionaryBean.filter}"
- entityType="region" format="{name}" rendered="#{not empty streetDictionaryBean.filter.country}" style="width:150px">
- <a4j:support event="onchange" reRender="streetDicEditPanel"/>
- </itdep:entitySelectMenu>
- <h:outputText value="#{addressBundle.district}" rendered="#{not empty streetDictionaryBean.filter.region}"/>
- <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.district}"
- filter="#{streetDictionaryBean.filter}"
- entityType="district" format="{name}" rendered="#{not empty streetDictionaryBean.filter.region}" style="width:150px">
- <a4j:support event="onchange" reRender="streetDicEditPanel"/>
- </itdep:entitySelectMenu>
- <h:outputText value="#{addressBundle.settlement}" rendered="#{not empty streetDictionaryBean.filter.district}"/>
- <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.settlement}"
- filter="#{streetDictionaryBean.filter}"
- entityType="settlement" format="#[{id}] {name}" rendered="#{not empty streetDictionaryBean.filter.district}" style="width:150px">
- <a4j:support event="onchange" reRender="streetDicEditPanel"/>
- </itdep:entitySelectMenu>
- <h:outputText value="#{addressBundle.cityType}" rendered="#{not empty streetDictionaryBean.filter.settlement}"/>
- <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.cityType}"
- entityType="city-type" format="{i18n.fullName}" rendered="#{not empty streetDictionaryBean.filter.settlement}" style="width:150px">
- <a4j:support event="onchange" reRender="streetDicEditPanel"/>
- </itdep:entitySelectMenu>
- <h:outputText value="#{addressBundle.city}" rendered="#{not empty streetDictionaryBean.filter.cityType}"/>
- <itdep:entitySelectMenu value="#{streetDictionaryBean.record.city}"
- filter="#{streetDictionaryBean.filter}"
- entityType="city" format="{name}" rendered="#{not empty streetDictionaryBean.filter.cityType}" style="width:150px">
- <a4j:support event="onchange" reRender="streetDicEditPanel"/>
- </itdep:entitySelectMenu>
- <h:outputText value="#{addressBundle.streetType}" rendered="#{not empty streetDictionaryBean.record.city}"/>
- <itdep:entitySelectMenu value="#{streetDictionaryBean.record.streetType}"
- entityType="street-type" format="{i18n.fullName}" rendered="#{not empty streetDictionaryBean.record.city}" style="width:150px">
- <a4j:support event="onchange" reRender="streetDicEditPanel"/>
- </itdep:entitySelectMenu>
- <h:outputText value="#{addressBundle.street}" style="font-weight:900;" rendered="#{not empty streetDictionaryBean.record.streetType}"/>
- <h:panelGroup>
- <h:inputText id="streetDicInput" value="#{streetDictionaryBean.record.name}" required="true" rendered="#{not empty streetDictionaryBean.record.streetType}"
- style="width:150px" maxlength="100"/>
- <itdep:errorMessage for="streetDicInput"/>
- </h:panelGroup>
- </h:panelGrid>
- </ui:define>
Add Comment
Please, Sign In to add comment