[Lift] Re: Overriding widgets stylesheets

2009-08-30 Thread Indrajit Raychaudhuri

4. Additionally, you have to add this in Boot environment. Often we
end up missing out on this step, or don't get the pattern right :)

ResourceServer.allow {
  case _ :: style.css :: Nil = true
}

Of course, you can narrow the PF argument to better adjust to the
need.

Cheers, Indrajit


On Aug 27, 9:06 pm, Marius marius.dan...@gmail.com wrote:
 Someone encountered the problem where he couldn't override the
 stylesheet used by some widget. Damn I can't find any more that
 thread ...

 Anyways here it is:

 1. Include the widget in your application say monthview.
 2. The url to the stylesheet is: /classpath/calendars/monthview/
 style.css
 3. In order to override this put your changed style.css in WEB-INF/
 classes/toserve/calendars/monthview/style.css

 This works for me.

 Br's,
 Marius

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Overriding widgets stylesheets

2009-08-30 Thread marius d.

No you don't have to do this because In Boot you are already calling
CalendarMonthlyView.init

Br's,
Marius

On Aug 30, 7:22 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote:
 4. Additionally, you have to add this in Boot environment. Often we
 end up missing out on this step, or don't get the pattern right :)

 ResourceServer.allow {
   case _ :: style.css :: Nil = true

 }

 Of course, you can narrow the PF argument to better adjust to the
 need.

 Cheers, Indrajit

 On Aug 27, 9:06 pm, Marius marius.dan...@gmail.com wrote:

  Someone encountered the problem where he couldn't override the
  stylesheet used by some widget. Damn I can't find any more that
  thread ...

  Anyways here it is:

  1. Include the widget in your application say monthview.
  2. The url to the stylesheet is: /classpath/calendars/monthview/
  style.css
  3. In order to override this put your changed style.css in WEB-INF/
  classes/toserve/calendars/monthview/style.css

  This works for me.

  Br's,
  Marius
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Overriding widgets stylesheets

2009-08-30 Thread Indrajit Raychaudhuri

Oops, I didn't follow that this is about the bundled
CalendarMonthView.

I stand corrected, ResourceServer.allow {} isn't necessary because
CalendarMonthlyView.init does the needful.

Cheers, Indrajit

On Aug 30, 9:32 pm, marius d. marius.dan...@gmail.com wrote:
 No you don't have to do this because In Boot you are already calling
 CalendarMonthlyView.init

 Br's,
 Marius

 On Aug 30, 7:22 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote:

  4. Additionally, you have to add this in Boot environment. Often we
  end up missing out on this step, or don't get the pattern right :)

  ResourceServer.allow {
    case _ :: style.css :: Nil = true

  }

  Of course, you can narrow the PF argument to better adjust to the
  need.

  Cheers, Indrajit

  On Aug 27, 9:06 pm, Marius marius.dan...@gmail.com wrote:

   Someone encountered the problem where he couldn't override the
   stylesheet used by some widget. Damn I can't find any more that
   thread ...

   Anyways here it is:

   1. Include the widget in your application say monthview.
   2. The url to the stylesheet is: /classpath/calendars/monthview/
   style.css
   3. In order to override this put your changed style.css in WEB-INF/
   classes/toserve/calendars/monthview/style.css

   This works for me.

   Br's,
   Marius

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Overriding widgets stylesheets

2009-08-30 Thread marius d.

Yeah ... in general all existent lift widgets have an init method that
needs to be called in boot.


On Aug 30, 8:39 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote:
 Oops, I didn't follow that this is about the bundled
 CalendarMonthView.

 I stand corrected, ResourceServer.allow {} isn't necessary because
 CalendarMonthlyView.init does the needful.

 Cheers, Indrajit

 On Aug 30, 9:32 pm, marius d. marius.dan...@gmail.com wrote:

  No you don't have to do this because In Boot you are already calling
  CalendarMonthlyView.init

  Br's,
  Marius

  On Aug 30, 7:22 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote:

   4. Additionally, you have to add this in Boot environment. Often we
   end up missing out on this step, or don't get the pattern right :)

   ResourceServer.allow {
     case _ :: style.css :: Nil = true

   }

   Of course, you can narrow the PF argument to better adjust to the
   need.

   Cheers, Indrajit

   On Aug 27, 9:06 pm, Marius marius.dan...@gmail.com wrote:

Someone encountered the problem where he couldn't override the
stylesheet used by some widget. Damn I can't find any more that
thread ...

Anyways here it is:

1. Include the widget in your application say monthview.
2. The url to the stylesheet is: /classpath/calendars/monthview/
style.css
3. In order to override this put your changed style.css in WEB-INF/
classes/toserve/calendars/monthview/style.css

This works for me.

Br's,
Marius
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---