[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/utils ObjectStore.java,1.6,1.7
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2002-11-22 07:16:28
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/utils
In directory sc8-pr-cvs1:/tmp/cvs-serv9439/net/sourceforge/idrs/utils
Modified Files:
ObjectStore.java
Log Message:
added portal and selectInput tags
Index: ObjectStore.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/utils/ObjectStore.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ObjectStore.java 23 Mar 2002 04:48:28 -0000 1.6
--- ObjectStore.java 22 Nov 2002 07:16:24 -0000 1.7
***************
*** 324,328 ****
if (numArgs == 1) {
argClass = meths[i].getParameterTypes()[0];
! if (name.substring(0,3).equalsIgnoreCase("set") && argClass.equals("".getClass())) {
props.add(meths[i].getName());
}
--- 324,328 ----
if (numArgs == 1) {
argClass = meths[i].getParameterTypes()[0];
! if (name.substring(0,3).equalsIgnoreCase("set") && (argClass.equals("".getClass()) || argClass.equals(String[].class))) {
props.add(meths[i].getName());
}
***************
*** 346,353 ****
StringBuffer buf = new StringBuffer();
String[] args = new String[1];
for (int i=0,m=this.propNames.length;i<m;i++) {
buf.setLength(0);
buf.append(this.id).append('-').append("prop").append('_').append(propNames[i].substring(3));
! args[0] = req.getParameter(buf.toString());
props[i].invoke(this.obj,args);
}
--- 346,363 ----
StringBuffer buf = new StringBuffer();
String[] args = new String[1];
+ String[] vals;
for (int i=0,m=this.propNames.length;i<m;i++) {
buf.setLength(0);
buf.append(this.id).append('-').append("prop").append('_').append(propNames[i].substring(3));
! args[0] = req.getParameter(buf.toString());
!
! /*if (vals == null) {
! args[0] = req.getParameter(buf.toString());
! }
! else {
! args[0] = vals;
! }*/
!
! //args[0] = vals.length==1 ? vals[0] : vals;
props[i].invoke(this.obj,args);
}
|