ktlili 2005/08/03 14:57:17 CEST
Modified files:
war/src/webapp/templates editParameters.jsp
Log:
- activate visibility for user parameters
Revision Changes Path
1.5 +9 -6
webclip_portlet/war/src/webapp/templates/editParameters.jsp
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/webclip_portlet/war/src/webapp/templates/editParameters.jsp.diff?r1=1.4&r2=1.5&f=h
Index: editParameters.jsp
===================================================================
RCS file:
/home/cvs/repository/webclip_portlet/war/src/webapp/templates/editParameters.jsp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- editParameters.jsp 3 Aug 2005 12:39:05 -0000 1.4
+++ editParameters.jsp 3 Aug 2005 12:57:17 -0000 1.5
@@ -46,6 +46,8 @@
FormParamBean fpb = (FormParamBean) formParamList.get(i);
String mapping = fpb.getMapping();
String usedValue = fpb.getUsedValue();
+ //process visibility
+ String showParam = fpb.getVisibility();
/*
<tr>
<td>mapping</td>
@@ -55,10 +57,12 @@
//build tr
TR trTag = new TR();
// build td for Mapping
- TD tdMapping = new TD();
- tdMapping.setClass("leftlevel2 waInput");
- tdMapping.setTagText(mapping);
- trTag.addElement(tdMapping);
+ if (showParam.equalsIgnoreCase("1")) {
+ TD tdMapping = new TD();
+ tdMapping.setClass("leftlevel2 waInput");
+ tdMapping.setTagText(mapping);
+ trTag.addElement(tdMapping);
+ }
// build td for the used value
TD tdUsedValue = new TD();
tdUsedValue.setClass("leftlevel2 waInput");
@@ -68,8 +72,7 @@
if (!type.equalsIgnoreCase("password")) {
type = "text";
}
- //process visibility
- String showParam = fpb.getVisibility();
+ //input param visibility
if (showParam.equalsIgnoreCase("0")) {
type = "hidden";
}