From richfaces-svn-commits at lists.jboss.org Wed Oct 31 12:19:31 2007 Content-Type: multipart/mixed; boundary="===============8606585099277538695==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r3641 - in trunk/ui/calendar/src/main: templates/org/richfaces and 1 other directory. Date: Wed, 31 Oct 2007 12:15:30 -0400 Message-ID: --===============8606585099277538695== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akushunin Date: 2007-10-31 12:15:30 -0400 (Wed, 31 Oct 2007) New Revision: 3641 Modified: trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRenderer= Base.java trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx Log: Calendar refactoring Modified: trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarR= endererBase.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/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendere= rBase.java 2007-10-31 16:09:13 UTC (rev 3640) +++ trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendere= rBase.java 2007-10-31 16:15:30 UTC (rev 3641) @@ -223,7 +223,10 @@ } = if(divStyle.length()!=3D0){ - writer.writeText("." + clientId + "DayCell{"+divStyle+"}", null); + writer.startElement("style", component); + getUtils().writeAttribute(writer, "type", "text/css"); + writer.writeText("." + clientId.replace(':', '_') + "DayCell{"+divStyle= +"}", null); + writer.endElement("style"); } } = @@ -239,7 +242,7 @@ && cellheight.intValue() > 0) { = String clientId =3D component.getClientId(context); - writer.writeText(",\n dayCellClass: '" + clientId + "DayCell'", null); + writer.writeText(",\n dayCellClass: '" + clientId.replace(':', '_') + "= DayCell'", null); } } = Modified: trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.j= spx =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/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 20= 07-10-31 16:09:13 UTC (rev 3640) +++ trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 20= 07-10-31 16:15:30 UTC (rev 3641) @@ -115,9 +115,7 @@ } = ]]> - =