source: vanHelsing/trunk/gui/WebContent/selectedResource.jspx@ 1117

Last change on this file since 1117 was 872, checked in by tobias, on May 17, 2010 at 4:33:53 PM

created an include out of the simple resource table rendering component

File size: 2.6 KB
RevLine 
[872]1 <ice:panelGrid cellpadding="0" cellspacing="3"
2 columns="2" rendered="#{configurationBean.selectedObject.viewItemList != null}">
3 <ice:dataTable
4 var="item"
5 value="#{configurationBean.selectedObject.viewItemList}"
6 style="float:left,bottom; width:90%"
7 >
8 <ice:column>
9 <f:facet name="header">
10 <ice:outputText value="Key" />
11 </f:facet>
12 <ice:outputText rendered="#{item.required eq true}" value="#{item.key}" />
13 <ice:outputText style="color:grey" rendered="#{item.required eq false}" value="#{item.key}" />
14 </ice:column>
15 <ice:column>
16 <f:facet name="header">
17 <ice:outputText value="Value" />
18 </f:facet>
19 <!-- required="#{item.requiredeq true}" -->
20 <ice:inputText rendered="#{item.inputText eq true}" partialSubmit="true" value="#{item.keyValue}" />
21 <ice:panelGroup>
22 <ice:selectOneMenu id="KeyValue"
23 rendered="#{item.selectOneMenu eq true}"
24 valueChangeListener="#{configurationBean.userObjectItemOptionSelected}"
25 value="#{item.keyValue}"
26 partialSubmit="true">
27 <f:selectItems id="KeyValueItems"
28 value="#{item.keyValueList}"/>
29 </ice:selectOneMenu>
30 <ice:commandButton id="newRes"
31 value="+"
32 rendered="#{item.selectOneMenu eq true}"
33 actionListener="#{configurationBean.newResourceButtonListener}"/>
34 </ice:panelGroup>
35 <ice:panelGroup styleClass="selectionRadioGroup">
36 <ice:selectOneRadio id="RadioValue"
37 rendered = "#{item.radioGroup eq true}"
38 value="#{item.keyValue}"
39 valueChangeListener="#{configurationBean.userObjectItemOptionSelected}"
40 partialSubmit="true" >
41 <f:selectItems id="RadioValueItems"
42 value="#{item.keyValueList}"/>
43 </ice:selectOneRadio>
44 </ice:panelGroup>
45 </ice:column>
46 </ice:dataTable>
47 <ice:commandButton id="createResource"
48 value="save"
49 rendered="#{configurationBean.createResource eq true}"
50 actionListener="#{configurationBean.saveClientButtonListener}" />
51 </ice:panelGrid>
Note: See TracBrowser for help on using the repository browser.