Re: [Wicket-user] validator.w3.org validation
Maris Orbidans wrote: The problem here is another one - not with wicket tags or attributes, but with wicket-generated links. They use a simple ampersand between GET-parameters, which should be xml-encoded in an XHTML document (amp; instead of ). It works in every browser like this, but is not valid XML. I hope it will be fixed. Is there a JIRA issue so we can vote for it ? My WEB app. would be 100% valid, if not those ampersands in links. Maris Make a quickstart or some equivalent and I'm sure this will be fixed rather quickly. I don't follow jira closely so make sure to drop the link/issue number here or just CC me on the issue. Also let us know which version you're using as I know a couple trivial amp; issues which have been fixed and maybe just not backported yet. Happy validation ./C - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Making response.renderJavascript HTML Strict
I'm trying to make part of the wicket-contrib-push-examples validate to html strict doctype... For example this bit.. script type=text/javascript id=org.wicketstuff.dojo.AbstractDefaultDojoBehavior/namespaces/wicketstuff!--/*--![CDATA[/*!--*/ dojo.registerModulePath(wicketstuff, ../../../resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior); /*--]]*//script With the validation service complaining about Error Line 14 column 83: character / is not allowed in the value of attribute id You can trace this back in the code to line 92 of wicketstuff-dojo AbstractDefaultDojoBehavior.java private static final String DOJO_NAMESPACE_PREFIX = AbstractDefaultDojoBehavior.class.getName() + /namespaces/; In this case it's maybe a straight forward fix by just replacing hte / with -.. However the next script tag with an invalid id= attribute makes me a bit more reserved to just replace invalid characters with - eg script type=text/javascript id=[Page class = org.wicketstuff.push.examples.pages.WicketCometdChat, id = 0, version = 0]Interceptor!--/*--![CDATA[/*!--*/ Here we have to replace [ = , ] and also can't begin the id attribute with a - so replacing the first [ wouldn't work.. I'm also not sure the repercussions as it looks like there may be some data in the id attribute. It's also possible to use :: in place of the -, but if this is done for non-script elements you may trigger a css bug. My question is... What's the eaxy way and the correct way to fix this so that it validates? Thanks Christopher - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Making response.renderJavascript HTML Strict
I'm trying to make part of the wicket-contrib-push-examples validate to html strict doctype... For example this bit.. script type=text/javascript id=org.wicketstuff.dojo.AbstractDefaultDojoBehavior/namespaces/wicketstuff!--/*--![CDATA[/*!--*/ dojo.registerModulePath(wicketstuff, ../../../resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior); /*--]]*//script With the validation service complaining about Error Line 14 column 83: character / is not allowed in the value of attribute id You can trace this back in the code to line 92 of wicketstuff-dojo AbstractDefaultDojoBehavior.java private static final String DOJO_NAMESPACE_PREFIX = AbstractDefaultDojoBehavior.class.getName() + /namespaces/; In this case it's maybe a straight forward fix by just replacing hte / with -.. However the next script tag with an invalid id= attribute makes me a bit more reserved to just replace invalid characters with - eg script type=text/javascript id=[Page class = org.wicketstuff.push.examples.pages.WicketCometdChat, id = 0, version = 0]Interceptor!--/*--![CDATA[/*!--*/ Here we have to replace [ = , ] and also can't begin the id attribute with a - so replacing the first [ wouldn't work.. I'm also not sure the repercussions as it looks like there may be some data in the id attribute. It's also possible to use :: in place of the -, but if this is done for non-script elements you may trigger a css bug. My question is... What's the eaxy way and the correct way to fix this so that it validates? Thanks Christopher - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Paging data without using DataProvider.size() ?
Gwyn Evans wrote: Hi, Anyone got any suggestions as to the best way to provide a paging data view without requiring using size() to actually count the records in DB? I've got a site that has a production DB such that select COUNT(*) from mytable takes a non-trivial amount of time/cpu to return, whereas to get the actual data for the page is effectively immediate! I'm curently using a DefaultDataTable and the quick hack is to just hard-code DataProvider.size() to just return a fixed number, but while that's probably OK, it's sub-optimal (it is just a util for my own use though, really). Having said that, I'd be interested in alternative suggestions. It's the Production DB only that shows this behaviour (which is probably related to them not purging the the old data for 4 years or so, so I'm limited as to what might be possible with the DB itself). I smell Postgres and just going to go out on a limb here.. :) triggers that update a counts table, db maintenance, or search the postgres perform archive for other ways to achieve this.. I'm pretty sure I see this question nearly every two weeks and from what I've read and remember it pretty much falls on the responsibility of the backend. There's also certainly more commentary in the wicket-users archives as well. Good luck, ./C - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3
ZedroS Schwart wrote: Hi all Thanks for your advice ! So finally, using 7 Zip, it has worked out really well. It was both quick and working ! :) (to finish the side note : I already tried to boot on my ubuntu cd, but the wifi didn't work, even if the card was detected, it wouldn't let me configure my WPA network because the card doesn't support it. So it's no so straightforward.) Thanks for the follow-up.. While nothing to do with wicket. It's always encouraged with open source projects to test, provide feedback and where applicable file bug reports. So if you get a chance make sure there's at least a bug report on your wireless card to add the support you need. Even better would be if you could send a patch. I mean it could be as trivial as adding a device id to a header. This same type of philosophy and feedback process goes for Wicket as well. Best, ./C ps. Also try to remember to inline/bottom-post and trim. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3
ZedroS Schwart wrote: Hi all I'm using my brand new vista pc to extract Wicket and I've 8 files too long to be extracted, like for example AdminAnnotationsBookmarkablePage. I'm trying to extract them under d:\wicket, so the root path isn't that big. Do you have any clue on what to do ? Sure.. may not be the answer you want to hear though ;) sarcasm action=try-another-os http://www.ubuntu.com/ http://www.freebsd.org/ http://www.opensolaris.org/os/ /sarcams In truth I don't know and more likely it's a problem with Vista.. NTFS which to the best of my knowledge is what Vista's default fs is supports greater than 8.3 naming.. d:\ wouldn't happen to be like fat-8 or something like that would it? Beyond this you can try explaining in more detail what you're doing and maybe someone else can offer assistance. ./C - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3
ZedroS Schwart wrote: On 6/24/07, C. Bergström [EMAIL PROTECTED] wrote: ZedroS Schwart wrote: Hi all I'm using my brand new vista pc to extract Wicket and I've 8 files too long to be extracted, like for example AdminAnnotationsBookmarkablePage. I'm trying to extract them under d:\wicket, so the root path isn't that big. Do you have any clue on what to do ? Sure.. may not be the answer you want to hear though ;) sarcasm action=try-another-os http://www.ubuntu.com/ http://www.freebsd.org/ http://www.opensolaris.org/os/ /sarcams In truth I don't know and more likely it's a problem with Vista.. NTFS which to the best of my knowledge is what Vista's default fs is supports greater than 8.3 naming.. d:\ wouldn't happen to be like fat-8 or something like that would it? Beyond this you can try explaining in more detail what you're doing and maybe someone else can offer assistance. I'm planning to install ubuntu as well, but on a RAID + Wifi pc it's not that easy. Depends on your experience level, but someone new may have a difficult time. I'm not an Ubuntu user, but my preception is they take away a lot of the command line which can be difficult for MS refugees. For I'm trying to do, it's really simple : I've downloaded apache-wicket-1.3.0-incubating-beta1.zip and I just would like to unzip it. And then, after a long while but that's the Vista way isnit, I'm told that 8 files' names are too long to be extracted. When looking at one the files, AdminAnnotationsBookmarkablePage for example, it appears that this file is really deep in the repository architecture and, most probably, ends up behind a too long path name for Vista. I agree it's vista fault somewhere, but hey, more and more people are coming into it (or should at least) and it's quite a pain some wicket's files names are too long no ? Vista or other 3rd party bugs should land squarely on the shoulders of the vendor and *not* at all the on developers. Especially since there are fine alternative choices. I'll try not to rant too much.. Also please inline or bottom-post and trim your replies. It makes threads a lot easier to read for everyone. I have noticed a few senior people around here starting and if you're reading this VERY big thank you. Kindly, C. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [OT] Wicket Real World Performance!
Gwyn Evans wrote: On Friday, June 22, 2007, 7:33:40 AM, C. [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: believe me, i know that. but hopefully the way i repsonded has cured at least one person, no hard feelings :) I'm mostly just read-only on this list and not able to contribute as much useful bits as others, but since this thread is gone way OT I don't mind hijacking it. It would very much help myself and I'm sure many others if everyone could attempt to cut down on the top posting. There's usually a setting that handles the default reply-to behavior. That's a blast from the past - not many would believe just how far back, though! I don't want to get into a pro's con's discussion, but the fact is that while I'm using The Bat to reply, I'll use bottom-posting but when I (and more importantly, the more knowledgable commiters) reply, the chances are that we'd be using GMail, which doesn't have the option to set it as a default position but does have significant advantages for this sort of list. As such, I believe that I'm afraid that you're just going to have to accept that as a lost cause, here at least! :-) It's not a blast from the past at all.. Many lists I'm on will as politely as possible ask those new to the list not to top-post. I didn't realize that the gmail web interface was so broken, but in a vain attempt to find a solution, I also found this [0] . You're correct though that nearly all of the most knowledgeable and informative posters are top-posting unfortunately. In the reply section ^end and backspace was the fastest way I could do a bottom post reply. Cheers, Christopher [0] http://css-discuss.incutio.com/?page=GmailAndCssDiscuss - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket did not make the grade.
big snip / You know all technology aside... It should be clear even to a lay person the value of the wicket community is tremendous.. Outside of a few well deserved smart-a** comments you can always get help and or someone to even go the extra mile to teach.. So thank you... ./C - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bug in 1.3? HeaderContributor.forCss(String)
Jeremy Thomerson wrote: I agree that relative URLs are good. But, I have multiple (20+) sites set up running through a single Wicket application, and I am using Apache's ProxyPass to front-end all of them under their respective domains. I use an absolute slash / because I actually want it to be absolute - not relative. I do this for all static resources because I have it configured so that Apache does what it does best - serve static resources, and let Tomcat handle only the dynamic stuff. This allows for maximum scalability. I think if someone uses an absolute slash - it should treat it as absolute. That is what the standard is anywhere else within a web app, console environment, you name it. If you want relative to where you are, you leave the slash off. If you want absolute, you use the slash. With the bug I mention below, I have no way of forcing an absolute URL - Wicket takes that away from me and makes it where I would have to inject the actual domain into my application to be able to accomplish this. Any other input? Yes, I agree.. I've yet to push any apps into full production, but will be doing something similar.. It will also make things especially difficult since I can't do mount(/, PackageName.forPackage(BasePage.class.getPackage())); JIRA Issue: http://issues.apache.org/jira/browse/WICKET-551 If a path starts with / then it should work as is it does almost everywhere else and be aboslute.. Just my quiet input.. ./C - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Any objections to removing any reference to 2.0
Some pages still mention 2.0 eg. http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html Other pages while there is a big note on the reference link, the landing page may still contain erroneous references to 2.0. a) Delete all mention of 2.0 in the wiki/docs b. Any 2.0 reference/doc page strip of content and put a BIG note at the top to see the current development Example: http://cwiki.apache.org/WICKET/migrate-20.html If I find the time I plan to strip 2.0 from existence unless someone objects.. Feedback welcomed. ./C - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Howto override method org.apache.wicket.Application.newCrypt() ?
I'm using an OS which does not ship with JCE installed by default. I've installed both the Sun JCE (some time ago) and now bouncycastle.. I'm fairly certainly the Sun JCE is installed correctly as before I installed it I wasn't able to use 1024 bit certs with another program. In any event.. I'm not sure how to override newCrypt and hoping maybe someone can share an example.. Thanks ./C --- // ?? @Override public ICrypt newCrypt() { try { ICrypt crypt = (ICrypt) cryptClass.newInstance(); crypt.setKey(encryptionKey); return crypt; --- My debug log.. 2007-05-19 16:17:21,806 DEBUG org.apache.wicket.util.crypt.ClassCryptFactory - exception: java.lang.InstantiationException: org.apache.wicket.util.crypt.ICrypt at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.apache.wicket.util.crypt.ClassCryptFactory.newCrypt(ClassCryptFactory.java:66) at org.apache.wicket.markup.html.form.PasswordTextField.getModelValue(PasswordTextField.java:95) at org.apache.wicket.markup.html.form.FormComponent.getValue(FormComponent.java:492) at org.apache.wicket.markup.html.form.TextField.onComponentTag(TextField.java:101) at org.apache.wicket.markup.html.form.PasswordTextField.onComponentTag(PasswordTextField.java:154) at org.apache.wicket.Component.renderComponent(Component.java:1827) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1278) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1163) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1333) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1268) at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:865) at org.apache.wicket.Component.renderComponent(Component.java:1858) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1278) at org.apache.wicket.markup.html.form.Form.onRender(Form.java:951) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1163) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1333) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:621) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:107) at org.apache.wicket.Component.renderComponent(Component.java:1858) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1278) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1163) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1333) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1268) at org.apache.wicket.Component.renderComponent(Component.java:1858) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1278) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1163) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1295) at org.apache.wicket.Page.onRender(Page.java:1295) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.Page.renderPage(Page.java:868) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:223) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1011) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1073) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1142) at org.apache.wicket.RequestCycle.request(RequestCycle.java:490) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:356) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:265) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430) at
Re: [Wicket-user] Multiple wicket:child tags in the same page
Igor Vaynberg wrote: On 5/17/07, Chris Colman [EMAIL PROTECTED] wrote: Let's say I have a page which can be almost completely marked up in a base class markup. There are only two sections of the page that change in the derived pages/classes. Is it possible to use the wicket:child tag twice in the one page and then have two wicket:extend tags in the derived pages? Markup for base page: body div id=master span wicket:id=organizationHeader/ div id=bodywrap wicket:child /wicket:child pThe stuff in here is common to all pages and so I only want to define it once in this base page markup/p wicket:child /wicket:child span wicket:id=organizationFooter/ /div /div /body Markup for the derived page: body wicket:extend div id=maincol span wicket:id=welcomePanel/ /div /wicket:extend This text is ignored - only the extend parts will be used wicket:extend h1Hi there!/h1 /wicket:extend /body I've tried this and I get the following error message: WicketMessage: The component [MarkupContainer [Component id = _child, page = com.sas.av.ui.wicket.HomePage, path = 4:_body:_child.MarkupInheritanceResolver$TransparentWebMarkupContainer , isVisible = true, isVersioned = true]] has the same wicket:id as another component already added at the same level Root cause: wicket.markup.MarkupException: The component [MarkupContainer [Component id = _child, page = com.sas.av.ui.wicket.HomePage, path = 4:_body:_child.MarkupInheritanceResolver$TransparentWebMarkupContainer , isVisible = true, isVersioned = true]] has the same wicket:id as another component already added at the same level at wicket.Page.componentRendered(Page.java:936) at wicket.Component.rendered(Component.java:1755) at wicket.Component.render(Component.java:1534) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917) as others have stated, wicket:extend and wicket:child are used to work in conjunction with class heiararchies. so since you only have one superclass you only have one wicket:child. however, none of the stuff that implements this uses any private api. you can create your own markup filters and class resolvers and tags that work the way you want. if it works out great we can include it into core if you want to donate. -igor This extend child thing really didn't seem to be intuitive at all. However, once I completely removed it things became more clear. 1) It has no id tag.. So w/o asking or rtfm you're not going to know what's going on 2) Wouldn't naming the hierarchy parent child be more logical? In english.. extend + child have no relation... 3) Instead of relying on the idea of child tags.. Just add more panels or other components that fit your need. You have to break out of the OO mindset a bit, but there's a lot of potential once you think outside the bun. I'm still learning and exploring.. So if I'm way off track just ignore me :) Cheers, ./C - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user