From portal-commits at lists.jboss.org Sat Mar 10 17:32:31 2007 Content-Type: multipart/mixed; boundary="===============3711868852133807636==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r6631 - in trunk/widget/src: resources/widget-war/WEB-INF/jsp and 1 other directory. Date: Sat, 10 Mar 2007 17:32:31 -0500 Message-ID: --===============3711868852133807636== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien(a)jboss.com Date: 2007-03-10 17:32:31 -0500 (Sat, 10 Mar 2007) New Revision: 6631 Modified: trunk/widget/src/main/org/jboss/portal/widget/google/type/DataType.java trunk/widget/src/resources/widget-war/WEB-INF/jsp/edit.jsp Log: GG : handle hidden types in an input type=3Dhidden Modified: trunk/widget/src/main/org/jboss/portal/widget/google/type/DataTyp= e.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/widget/src/main/org/jboss/portal/widget/google/type/DataType.java= 2007-03-10 22:29:21 UTC (rev 6630) +++ trunk/widget/src/main/org/jboss/portal/widget/google/type/DataType.java= 2007-03-10 22:32:31 UTC (rev 6631) @@ -23,6 +23,8 @@ package org.jboss.portal.widget.google.type; = /** + * An abstract type for the different datatypes. + * * @author Julien Viet * @version $Revision: 1.1 $ */ Modified: trunk/widget/src/resources/widget-war/WEB-INF/jsp/edit.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/widget/src/resources/widget-war/WEB-INF/jsp/edit.jsp 2007-03-10 2= 2:29:21 UTC (rev 6630) +++ trunk/widget/src/resources/widget-war/WEB-INF/jsp/edit.jsp 2007-03-10 2= 2:32:31 UTC (rev 6631) @@ -64,6 +64,19 @@

You have selected the widget <%=3D selWidget.getTitle().getDefaultStrin= g() %>

"/>" method=3D"post"> + <% + for (Iterator i =3D selWidget.getPreferencesInfo().getPreferences= Info().iterator(); i.hasNext();) + { + GGPreferenceInfo prefInfo =3D (GGPreferenceInfo)i.next(); + if (prefInfo.getType().getOrdinal() =3D=3D DataType.HIDDEN) + { + + %> + " va= lue=3D"<%=3D prefInfo.getDefaultValue() !=3D null ? prefInfo.getDefaultValu= e() : "" %>"/> + <% + } + } + %> <% @@ -76,6 +89,8 @@ <% switch (prefInfo.getType().getOrdinal()) { + case DataType.HIDDEN: + break; case DataType.ENUM: %>