Guest User

Untitled

a guest
Jul 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. <ui:define name="editPanelContext">
  2. <h:panelGrid id="streetDicEditPanel" columns="2">
  3. <h:outputText value="#{addressBundle.country}"/>
  4. <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.country}"
  5. entityType="country" format="{name}" style="width:150px">
  6. <a4j:support event="onchange" reRender="streetDicEditPanel"/>
  7. </itdep:entitySelectMenu>
  8. <h:outputText value="#{addressBundle.region}" rendered="#{not empty streetDictionaryBean.filter.country}"/>
  9. <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.region}"
  10. filter="#{streetDictionaryBean.filter}"
  11. entityType="region" format="{name}" rendered="#{not empty streetDictionaryBean.filter.country}" style="width:150px">
  12. <a4j:support event="onchange" reRender="streetDicEditPanel"/>
  13. </itdep:entitySelectMenu>
  14. <h:outputText value="#{addressBundle.district}" rendered="#{not empty streetDictionaryBean.filter.region}"/>
  15. <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.district}"
  16. filter="#{streetDictionaryBean.filter}"
  17. entityType="district" format="{name}" rendered="#{not empty streetDictionaryBean.filter.region}" style="width:150px">
  18. <a4j:support event="onchange" reRender="streetDicEditPanel"/>
  19. </itdep:entitySelectMenu>
  20. <h:outputText value="#{addressBundle.settlement}" rendered="#{not empty streetDictionaryBean.filter.district}"/>
  21. <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.settlement}"
  22. filter="#{streetDictionaryBean.filter}"
  23. entityType="settlement" format="#[{id}] {name}" rendered="#{not empty streetDictionaryBean.filter.district}" style="width:150px">
  24. <a4j:support event="onchange" reRender="streetDicEditPanel"/>
  25. </itdep:entitySelectMenu>
  26. <h:outputText value="#{addressBundle.cityType}" rendered="#{not empty streetDictionaryBean.filter.settlement}"/>
  27. <itdep:entitySelectMenu value="#{streetDictionaryBean.filter.cityType}"
  28. entityType="city-type" format="{i18n.fullName}" rendered="#{not empty streetDictionaryBean.filter.settlement}" style="width:150px">
  29. <a4j:support event="onchange" reRender="streetDicEditPanel"/>
  30. </itdep:entitySelectMenu>
  31. <h:outputText value="#{addressBundle.city}" rendered="#{not empty streetDictionaryBean.filter.cityType}"/>
  32. <itdep:entitySelectMenu value="#{streetDictionaryBean.record.city}"
  33. filter="#{streetDictionaryBean.filter}"
  34. entityType="city" format="{name}" rendered="#{not empty streetDictionaryBean.filter.cityType}" style="width:150px">
  35. <a4j:support event="onchange" reRender="streetDicEditPanel"/>
  36. </itdep:entitySelectMenu>
  37. <h:outputText value="#{addressBundle.streetType}" rendered="#{not empty streetDictionaryBean.record.city}"/>
  38. <itdep:entitySelectMenu value="#{streetDictionaryBean.record.streetType}"
  39. entityType="street-type" format="{i18n.fullName}" rendered="#{not empty streetDictionaryBean.record.city}" style="width:150px">
  40. <a4j:support event="onchange" reRender="streetDicEditPanel"/>
  41. </itdep:entitySelectMenu>
  42. <h:outputText value="#{addressBundle.street}" style="font-weight:900;" rendered="#{not empty streetDictionaryBean.record.streetType}"/>
  43. <h:panelGroup>
  44. <h:inputText id="streetDicInput" value="#{streetDictionaryBean.record.name}" required="true" rendered="#{not empty streetDictionaryBean.record.streetType}"
  45. style="width:150px" maxlength="100"/>
  46. <itdep:errorMessage for="streetDicInput"/>
  47. </h:panelGroup>
  48. </h:panelGrid>
  49. </ui:define>
Add Comment
Please, Sign In to add comment