RE: wiquery css
Strange that the system cannot find it while it can in production. Are you sure the package is present on production, you did not forget a library? Hielke -Original Message- From: N. Metzger [mailto:nmetz...@odu.edu] Sent: vrijdag 2 maart 2012 3:03 To: users@wicket.apache.org Subject: RE: wiquery css Me again, I figured it all out and it work beautifully ... when deployed in weblogic. For my production environment I unfortunately have to use oc4j, and somehow I'm unable to load the resource in this environment: 2012-03-01 20:51:03,471 WARN (PackageResource.java:594) - Unable to find package resource [path = org/odlabs/wiquery/ui/themes/mytheme/jquery-ui-1.8.18.custom.min.css, style = null, locale = null] Maybe this is not the right forum, but perhaps someone has an idea. Thanks! Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4437198.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wiquery css
Well, the library is there, and I tried running it without the modification to my Application which loads my local theme. In that case it displays the default theme. I'm going to debug some more... Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4438600.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wiquery css
Details: 1) I downloaded a theme from jquery and added the relevant part to wiquery-1.2.3.jar, jar is part of my libararies 2) I updated my Application to implement IThemableApplication: public ResourceReference getTheme(Session session) { if (session instanceof MidasSession){ MidasSession msession = (MidasSession) session; if(msession.getMetaData(msession.WIQUERY_THEME_KEY) == null){ msession.setMetaData(msession.WIQUERY_THEME_KEY, MidasWiQueryThemeResourceReference.get(midas, 1.8.18)); } log.debug(theme key is + msession.getMetaData(msession.WIQUERY_THEME_KEY)); return msession.getMetaData(msession.WIQUERY_THEME_KEY); } else{ log.debug(Session is not a Midas session); return null; } } 3) As there was a jquery version hardcoded, I created my own resource reference: public class MidasWiQueryThemeResourceReference extends WiQueryStyleSheetResourceReference{ private static final long serialVersionUID = 6795863553105608280L; /** * Singleton instance. */ private static MidasWiQueryThemeResourceReference instance; /** * Returns the {@link CoreJavaScriptResourceReference} instance. */ public static MidasWiQueryThemeResourceReference get(String theme, String version) { if (instance == null) instance = new MidasWiQueryThemeResourceReference(theme, version); return instance; } /** * Builds a new instance of {@link CoreJavaScriptResourceReference}. */ private MidasWiQueryThemeResourceReference(String theme, String version) { super(WiQueryCoreThemeResourceReference.class, theme + /jquery-ui-+version+.custom.css); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4438639.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wiquery css
I'm one step further. It's not oc4j or weblogic, it's the fact that I switch from development mode to deployment mode. It happens in both containers. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4439118.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wiquery css
Found it! In deployment mode it looks for the minified css which didn't exist in the jar file. I added it and - voila - all works fine. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4439324.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wiquery css
Me again, I figured it all out and it work beautifully ... when deployed in weblogic. For my production environment I unfortunately have to use oc4j, and somehow I'm unable to load the resource in this environment: 2012-03-01 20:51:03,471 WARN (PackageResource.java:594) - Unable to find package resource [path = org/odlabs/wiquery/ui/themes/mytheme/jquery-ui-1.8.18.custom.min.css, style = null, locale = null] Maybe this is not the right forum, but perhaps someone has an idea. Thanks! Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4437198.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wiquery css
I tried the easy way out because I just need the style for one page so far. Unfortunately it didn't work with wicket:head /wicket:head Should I have used any other style definitions? And if I go the whole route with the themeroller: I got myself a zip file with all the definitions for my layout. Where in my code do I put this zip file or the unzipped files so it gets called with the new theme name I give it in my WebApplication? Thanks, Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4414854.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wiquery css
Natalie, On Tue, Feb 21, 2012 at 3:10 PM, N. Metzger nmetz...@odu.edu wrote: Hi all, I'm having another of my blind mornings. I just tried wiquery for the first time and had an accordion running within a few minutes, so first of all: thanks!!! Now: what's the best way to change the look and feel? I saw a that you can define a jquery theme and upload if somehow. How? You can roll your own theme(s) making your web application implement IThemableApplication... Or should I just define the css for my page? If the latter, what should I use as my base? if changes are minor you can always override default theme rolling you own CSS. Ernesto
RE: wiquery css
To roll your own theme use www.themeroller.com and when done choose download. You can then use the contents of the zipfile to create your own resourcereference to use in IThemableApplication. Hielke -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: woensdag 22 februari 2012 9:36 To: users@wicket.apache.org Subject: Re: wiquery css Natalie, On Tue, Feb 21, 2012 at 3:10 PM, N. Metzger nmetz...@odu.edu wrote: Hi all, I'm having another of my blind mornings. I just tried wiquery for the first time and had an accordion running within a few minutes, so first of all: thanks!!! Now: what's the best way to change the look and feel? I saw a that you can define a jquery theme and upload if somehow. How? You can roll your own theme(s) making your web application implement IThemableApplication... Or should I just define the css for my page? If the latter, what should I use as my base? if changes are minor you can always override default theme rolling you own CSS. Ernesto - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wiquery css
Hi all, I'm having another of my blind mornings. I just tried wiquery for the first time and had an accordion running within a few minutes, so first of all: thanks!!! Now: what's the best way to change the look and feel? I saw a that you can define a jquery theme and upload if somehow. How? Or should I just define the css for my page? If the latter, what should I use as my base? Thanks, Natalie P.S. I'm using wicket 1.4.19 with wiquery 1.2.4 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4407116.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org