Re: 302 vs. 301 Redirect
I think so...something like res.setHeader("Location", "http://301redirect.com/ ); res.setStatus(301); On Thu, 2007-12-06 at 15:43 +0100, Johan Compagner wrote: > what is the right way for a permanent redirect in the servlet spec? > do it all yourself? Including making the url fully qualified? > > On Dec 6, 2007 9:49 AM, Joe Toth <[EMAIL PROTECTED]> wrote: > > > I wasn't suggesting changing the functionality of setRedirect, but > > instead maybe adding setPermanentRedirect(true) or another way for > > wicket to be able to perform a 301. > > > > > > On Wed, 2007-12-05 at 13:43 +, Gwyn Evans wrote: > > > I think the one thread was "Consistent homepage URL" from 2005Q2 - I > > > think the gist was that in the scenario there, it wasn't desirable > > > having the redirected URL becoming the one that the search engines > > > would always go to. > > > > > > /Gwyn > > > > > > On 04/12/2007, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > Long long time ago we had discussions about this, i think also related > > > > to what google expects. I guess what we now have is a result of that. > > > > But i cant remember what the pros and cons are > > > > > > > > 2007/12/4, Joe Toth <[EMAIL PROTECTED]>: > > > > > When you setRedirect(true), wicket does a 302, temporary, redirect. > > The > > > > > basic rule of thumb in SEO is if you want to pass all authority to a > > > > > different page use 301 (permanent). > > > > > > > > > > > > http://www.seotoday.com/browse.php/category/articles/id/477/index.php > > > > > > > > > > Thoughts on adding something to Wicket to support this > > functionality? > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is changing component hierarchy in onBeforeRender not recommended ?
should be fine as long as the children are downstream of the component tweaking their visibility -igor On Dec 6, 2007 7:41 PM, rkanadam <[EMAIL PROTECTED]> wrote: > Hi, > > I am using onBeforeRender for setting the visibility of some children. > Wanted to know if this was ok or was dangerous and not recommended. > Could someone more knowledgeable help please ? > > Thanks, > Raghu > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is changing component hierarchy in onBeforeRender not recommended ?
Hi, I am using onBeforeRender for setting the visibility of some children. Wanted to know if this was ok or was dangerous and not recommended. Could someone more knowledgeable help please ? Thanks, Raghu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML & .properties reload
I just upgraded from wicket beta2 to rc1 and found that my HTML pages and .properties aren't automatically being reloaded as usual. Did something change? I didn't see anything in the release notes. Thanks -- View this message in context: http://www.nabble.com/HTML---.properties-reload-tf4959815.html#a14205374 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket meetup in San Francisco
Cant wait to be part of the next meetup preferably soon. Farhan. Orion Letizi wrote: > > Al, > > No worries. Since this is the first wicket meetup in San Francisco, > I'd like to do it anyway to get the ball rolling. If you can make it, > that would be awesome, even if you don't want to do a formal > presentation. A number of people have expressed interest in just > talking to a Wicket expert. Eelco has kindly offered to step in via > videoconference if you can't make it, but having someone physically > here would be great. > > There have actually been a few more people who have replied to me > personally that haven't put themselves on the wiki. There should also > be some folks from Terracotta there who would like to learn more about > Wicket. > > I expect the next meetup to be more organized with an agenda of > scheduled speakers, but I want to get something happening now before > the initial local interest wanes. We've had interest from as far away > as San Diego, so I think it's an important step just to get the first > one started. > > Cheers, > Orion > > Al Maw-2 wrote: > > > > > > Sorry, I've been pretty busy lately - I've not been checking the > > wicket-users list every day. If you want to get hold of me in a > hurry, > > personal e-mail is a lot better. ;-) > > > > This is all rather last minute - it looks like we'd only be perhaps > four > > people at best. I won't be very well prepared for a talk. Also, > I'll be > > back out here fairly soon, I'm sure. With at least nine people > > potentially interested, maybe we should postpone this to a later > date, > > with a bit more planning and notice for everyone concerned? > > > > If people are keen on pushing on with tomorrow regardless, I can make > > it, but I'll need to know by 2pm. > > > > Kind regards, > > > > Al > > > > Orion Letizi wrote: > >> It looks like this Thursday, Dec. 6 is the leading contender, > especially > >> if > >> Al Maw can give a presentation (haven't heard back from him yet, > though). > >> Otherwise, Eelco Hillenius has agreed to be there via > teleconference, so > >> there will be at least one Wicket expert available to answer the > hard > >> questions. > >> > >> Unless there are any objections, let's say Dec. 6th at 7:00 PM at > the > >> Terracotta offices: > >> > >> Terracotta > >> 650 Townsend St., Suite 325 > >> San Francisco, CA 94107 > >> > >> Cheers, > >> Orion > >> > >> > >> Orion Letizi wrote: > >>> For anyone interested in a meetup in San Francisco, it looks like > this > >>> week might be best for two people and next week would be better for > >>> one person. > >>> > >>> I suppose we should vote. I'll propose two dates: > >>> > >>> Thurs. Dec. 6 > >>> Fri. Dec 14 > >>> > >>> Vote away... > >>> > >>> --Orion > >>> > >>> > >>> > >>> > - > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >> > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > Quoted from: > http://www.nabble.com/Wicket-meetup-in-San-Francisco-tf4937692.html#a14187737 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Wicket-meetup-in-San-Francisco-tf4937692.html#a14203327 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [wicket-contrib] TinyMCE Hackery
I have just added TinyMCE to bamboo[1], but it won't build because of some log4j dependency problems[2]. Do you have to use log4j 1.2.15 instead of 1.2.14? Frank [1]: http://wicketstuff.org/bamboo/browse/WSTINYMCE-TRUNK [2]: http://wicketstuff.org/bamboo/browse/WSTINYMCE-TRUNK-1 On Nov 29, 2007 12:55 AM, Michael Laccetti <[EMAIL PROTECTED]> wrote: > Either way the CodeOgre one isn't going to go away, as it is where the > Jazzy plugin will be fed from. > > --- > Michael Laccetti (416)558-9718 > S2G Limited http://www.s2g.ca/ > --- > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Frank Bille > Sent: November 28, 2007 3:57 PM > To: users@wicket.apache.org > Subject: Re: [wicket-contrib] TinyMCE Hackery > > On Nov 28, 2007 5:24 PM, Michael Laccetti <[EMAIL PROTECTED]> wrote: > > > Okay, I have made the modifications, committed, and pushed a new > > snapshot to the Maven repo. > > > > > When bamboo comes up again I can ensure that the tinymce project is > configured. Then it should post snapshots to the wicketstuff repo[1] > > Frank > > [1]: http://wicketstuff.org/maven > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Wicket meetup in San Francisco
Great. See you at 7pm. Best regards, Al Orion Letizi wrote: Al, No worries. Since this is the first wicket meetup in San Francisco, I'd like to do it anyway to get the ball rolling. If you can make it, that would be awesome, even if you don't want to do a formal presentation. A number of people have expressed interest in just talking to a Wicket expert. Eelco has kindly offered to step in via videoconference if you can't make it, but having someone physically here would be great. There have actually been a few more people who have replied to me personally that haven't put themselves on the wiki. There should also be some folks from Terracotta there who would like to learn more about Wicket. I expect the next meetup to be more organized with an agenda of scheduled speakers, but I want to get something happening now before the initial local interest wanes. We've had interest from as far away as San Diego, so I think it's an important step just to get the first one started. Cheers, Orion Al Maw-2 wrote: > > > Sorry, I've been pretty busy lately - I've not been checking the > wicket-users list every day. If you want to get hold of me in a hurry, > personal e-mail is a lot better. ;-) > > This is all rather last minute - it looks like we'd only be perhaps four > people at best. I won't be very well prepared for a talk. Also, I'll be > back out here fairly soon, I'm sure. With at least nine people > potentially interested, maybe we should postpone this to a later date, > with a bit more planning and notice for everyone concerned? > > If people are keen on pushing on with tomorrow regardless, I can make > it, but I'll need to know by 2pm. > > Kind regards, > > Al > > Orion Letizi wrote: >> It looks like this Thursday, Dec. 6 is the leading contender, especially >> if >> Al Maw can give a presentation (haven't heard back from him yet, though). >> Otherwise, Eelco Hillenius has agreed to be there via teleconference, so >> there will be at least one Wicket expert available to answer the hard >> questions. >> >> Unless there are any objections, let's say Dec. 6th at 7:00 PM at the >> Terracotta offices: >> >> Terracotta >> 650 Townsend St., Suite 325 >> San Francisco, CA 94107 >> >> Cheers, >> Orion >> >> >> Orion Letizi wrote: >>> For anyone interested in a meetup in San Francisco, it looks like this >>> week might be best for two people and next week would be better for >>> one person. >>> >>> I suppose we should vote. I'll propose two dates: >>> >>> Thurs. Dec. 6 >>> Fri. Dec 14 >>> >>> Vote away... >>> >>> --Orion >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Quoted from: http://www.nabble.com/Wicket-meetup-in-San-Francisco-tf4937692.html#a14187737 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket meetup in San Francisco
Al, No worries. Since this is the first wicket meetup in San Francisco, I'd like to do it anyway to get the ball rolling. If you can make it, that would be awesome, even if you don't want to do a formal presentation. A number of people have expressed interest in just talking to a Wicket expert. Eelco has kindly offered to step in via videoconference if you can't make it, but having someone physically here would be great. There have actually been a few more people who have replied to me personally that haven't put themselves on the wiki. There should also be some folks from Terracotta there who would like to learn more about Wicket. I expect the next meetup to be more organized with an agenda of scheduled speakers, but I want to get something happening now before the initial local interest wanes. We've had interest from as far away as San Diego, so I think it's an important step just to get the first one started. Cheers, Orion Al Maw-2 wrote: > > > Sorry, I've been pretty busy lately - I've not been checking the > wicket-users list every day. If you want to get hold of me in a hurry, > personal e-mail is a lot better. ;-) > > This is all rather last minute - it looks like we'd only be perhaps four > people at best. I won't be very well prepared for a talk. Also, I'll be > back out here fairly soon, I'm sure. With at least nine people > potentially interested, maybe we should postpone this to a later date, > with a bit more planning and notice for everyone concerned? > > If people are keen on pushing on with tomorrow regardless, I can make > it, but I'll need to know by 2pm. > > Kind regards, > > Al > > Orion Letizi wrote: >> It looks like this Thursday, Dec. 6 is the leading contender, especially >> if >> Al Maw can give a presentation (haven't heard back from him yet, though). >> Otherwise, Eelco Hillenius has agreed to be there via teleconference, so >> there will be at least one Wicket expert available to answer the hard >> questions. >> >> Unless there are any objections, let's say Dec. 6th at 7:00 PM at the >> Terracotta offices: >> >> Terracotta >> 650 Townsend St., Suite 325 >> San Francisco, CA 94107 >> >> Cheers, >> Orion >> >> >> Orion Letizi wrote: >>> For anyone interested in a meetup in San Francisco, it looks like this >>> week might be best for two people and next week would be better for >>> one person. >>> >>> I suppose we should vote. I'll propose two dates: >>> >>> Thurs. Dec. 6 >>> Fri. Dec 14 >>> >>> Vote away... >>> >>> --Orion >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Quoted from: http://www.nabble.com/Wicket-meetup-in-San-Francisco-tf4937692.html#a14187737 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax Feedback Problem in 1.3
We need some code to go with your problem to correctly diagnose your problem. Martijn On Dec 6, 2007 1:13 PM, SantiagoA <[EMAIL PROTECTED]> wrote: > > Hi, > I have a "FeedbackTextField" which extends TextField and implements > IValidator (build with 1.2.5). > If the textfield lose the focus, an Ajax call is submitted. The Validator > looks if the textfield is left empty and throws a FeedbackMessage and the > backgroundcolor of the TextField changes to yellow. > First everything works as suspected. > > Then I changed the version to 1.3beta3. > From that moment, there was no longer an AjaxCall when the TextField lost > the Focus when its empty, if it wasn´t empty Ajax call worked fine. > So the backgroundcolor didn´t change and the FeedbackMessage was not > displayed until a formSubmit was called( by a button, e.g.). On a form > submit, the feedbackMessage works correctly, and the Color changes. > > Then I changed to 1.3rc1 > Now the same happens like 1.3beta3 (ajax + feedback problem), but on form > submit, the feedbackMessage works, but the color does not change anymore > for > any reason. > > I guess the validator prevents the ajax call, but why does the color > doesn´t > change anymore. > > thanks in advance, > > Santiago > -- > View this message in context: > http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tf4955701.html#a14191234 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-rc1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
Re: Using the tags
thx On Dec 5, 2007 3:59 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > see (Simple)FormComponentLabel > > -igor > > > On Dec 5, 2007 10:57 AM, Francisco Diaz Trepat - gmail > <[EMAIL PROTECTED]> wrote: > > Hi I wish to add tag to my form and put some styling on it. > > > > Is there a wicket side version of it? > > > > What would be the best way of using it? > > > > For instance, tag has the for attribute, which should hold the > id of > > the form component that it is asociated with. How can I render it from > > wicket? > > > > Can I use a WebMarkupContainer and an AttributeModifier? > > > > what would be a wicket way of handling form with etc? > > > > > > Thanks, > > f(t) > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
extending cometd/server-push problem with html-inheritance
hi, i just extended existing source of wicketstuff-push in order to get myself a progress-bar running. I use CometdService as my IChannelService-Impl. i noticed a strange behaviour when trying to publish ChannelEvents. On my TestPage( extends WebPage) my example is running fine and all events i try to publish from my working thread in background will be published and handled as i expected. Now when i try to integrate my progress-bar into a webpage with markup-inheritance and lot more components, the event-handling and publishing is somekind of unusual. sometimes events will be published once, but the event-handler will be called two or more times. and most often the event will not even published so that the event-handler will be called. the consol-output looks fine for registering client to a channel. is it possible to publish my whole progress-bar implementation somewhere? it's very hard to follow my problem without any code. but my code is too much posting it into this thread. regards tim this is my web-inf. cometd org.mortbay.cometd.CometdServlet timeout 150 multi-timeout 1500 verbose true 1 cometd /cometd/* -- View this message in context: http://www.nabble.com/extending-cometd-server-push-problem-with-html-inheritance-tf4957111.html#a14195860 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to dynamic pdf (jasperreports)
Hi, Have you seen this other thread? http://www.nabble.com/wicket-File-downlaod-tf4874269.html#a13946961 There i've made some suggestions for dynamic generated pdf, with working code. Again, i don't know anything of jasper reports, but the person asked that time liked it. Also there is in the code the needed call to make it work with the download dialog. Bye, German It seems that Newgro wrote: > > Is this really unsolvable? Please can someone give me a hint? > > Thanks > Per > -- > View this message in context: > http://www.nabble.com/Link-to-dynamic-pdf-%28jasperreports%29-tf4936362.html#a14191604 > Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
remember, wicket meetup in San Francisco TONIGHT at Terracotta, 7:00 PM, 650 Townsend St. Suite 325
For those of you who expressed interest in a Wicket meetup in San Francisco, remember we're meeting TONIGHT at 7:00 PM. Here's the address: Terracotta 650 Townsend St. Suite 325 San Francisco, CA Any Terracotta folks who want to come are enthusiastically invited-- the more the merrier. I'm buying pizza, beer, and snacks. We're in the Sega building at the corner of Eighth and Townsend. The building is locked after six, but I'll let the security guards know people are coming. Hope to see you there! Cheers, --Orion - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to dynamic pdf (jasperreports)
Use a JRPdfResource The onResourceRequested() gives you a dialog with open report, save report or cancel buttons if you have set the filename Newgro wrote: > > Is this really unsolvable? Please can someone give me a hint? > > Thanks > Per > -- View this message in context: http://www.nabble.com/Link-to-dynamic-pdf-%28jasperreports%29-tf4936362.html#a14194722 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 302 vs. 301 Redirect
what is the right way for a permanent redirect in the servlet spec? do it all yourself? Including making the url fully qualified? On Dec 6, 2007 9:49 AM, Joe Toth <[EMAIL PROTECTED]> wrote: > I wasn't suggesting changing the functionality of setRedirect, but > instead maybe adding setPermanentRedirect(true) or another way for > wicket to be able to perform a 301. > > > On Wed, 2007-12-05 at 13:43 +, Gwyn Evans wrote: > > I think the one thread was "Consistent homepage URL" from 2005Q2 - I > > think the gist was that in the scenario there, it wasn't desirable > > having the redirected URL becoming the one that the search engines > > would always go to. > > > > /Gwyn > > > > On 04/12/2007, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > Long long time ago we had discussions about this, i think also related > > > to what google expects. I guess what we now have is a result of that. > > > But i cant remember what the pros and cons are > > > > > > 2007/12/4, Joe Toth <[EMAIL PROTECTED]>: > > > > When you setRedirect(true), wicket does a 302, temporary, redirect. > The > > > > basic rule of thumb in SEO is if you want to pass all authority to a > > > > different page use 301 (permanent). > > > > > > > > > http://www.seotoday.com/browse.php/category/articles/id/477/index.php > > > > > > > > Thoughts on adding something to Wicket to support this > functionality? > > > > > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Control where CSS files are loaded from
I think, in this case, you should extend ResourceReference and override protected Resource newResource() method. Alex. Csaba Madai wrote: > > And how can i load the CSS when it is on the filesystem (outside of war, > jar etc.) ? > > Alex Objelean wrote: >> Images mentioned in the CSS are relative to the css file. I wouldn't >> recommend to load css files from the markup, a better approach would be >> using HeaderContributor.forCSS(ResourceReference). >> >> Regards, >> Alex. >> >> >> Csaba Madai wrote: >> >>> Hi All! >>> >>> I found on the wiki how i can control where my markup files are loaded >>> from, but how can i control where the CSS files refered in the markup >>> loaded from and also the images mentioned in the CSS? >>> >>> Thanks, >>> Csaba >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Control-where-CSS-files-are-loaded-from-tf4955428.html#a14192366 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Control where CSS files are loaded from
And how can i load the CSS when it is on the filesystem (outside of war, jar etc.) ? Alex Objelean wrote: Images mentioned in the CSS are relative to the css file. I wouldn't recommend to load css files from the markup, a better approach would be using HeaderContributor.forCSS(ResourceReference). Regards, Alex. Csaba Madai wrote: Hi All! I found on the wiki how i can control where my markup files are loaded from, but how can i control where the CSS files refered in the markup loaded from and also the images mentioned in the CSS? Thanks, Csaba - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to dynamic pdf (jasperreports)
Is this really unsolvable? Please can someone give me a hint? Thanks Per -- View this message in context: http://www.nabble.com/Link-to-dynamic-pdf-%28jasperreports%29-tf4936362.html#a14191604 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: yui calendar in IFRAME on IE7
Ok i think i got this now. I had to resize the calendar, because IE7 seems to show all only in the IFRAME itself. Overlaying seems not to be allowed. Cheers Per -- View this message in context: http://www.nabble.com/yui-calendar-in-IFRAME-on-IE7-tf4935092.html#a14191603 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Control where CSS files are loaded from
Images mentioned in the CSS are relative to the css file. I wouldn't recommend to load css files from the markup, a better approach would be using HeaderContributor.forCSS(ResourceReference). Regards, Alex. Csaba Madai wrote: > > Hi All! > > I found on the wiki how i can control where my markup files are loaded > from, but how can i control where the CSS files refered in the markup > loaded from and also the images mentioned in the CSS? > > Thanks, > Csaba > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Control-where-CSS-files-are-loaded-from-tf4955428.html#a14191262 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajax Feedback Problem in 1.3
Hi, I have a "FeedbackTextField" which extends TextField and implements IValidator (build with 1.2.5). If the textfield lose the focus, an Ajax call is submitted. The Validator looks if the textfield is left empty and throws a FeedbackMessage and the backgroundcolor of the TextField changes to yellow. First everything works as suspected. Then I changed the version to 1.3beta3. >From that moment, there was no longer an AjaxCall when the TextField lost the Focus when its empty, if it wasn´t empty Ajax call worked fine. So the backgroundcolor didn´t change and the FeedbackMessage was not displayed until a formSubmit was called( by a button, e.g.). On a form submit, the feedbackMessage works correctly, and the Color changes. Then I changed to 1.3rc1 Now the same happens like 1.3beta3 (ajax + feedback problem), but on form submit, the feedbackMessage works, but the color does not change anymore for any reason. I guess the validator prevents the ajax call, but why does the color doesn´t change anymore. thanks in advance, Santiago -- View this message in context: http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tf4955701.html#a14191234 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to dynamically generate HTML page?
Hi Praveen, Attached is the AutoComponentPanel.java. I've just re-written it so that it implements IComponentResolver. Parts of the code might be too complex and need to be refactored (some parts working with org.w3c.dom), but for now it works. If you have additions or modifications, please let me know. We plan to release this code anyway either as part of a Qti framework, or just this panel as part of some wicket-contrib / wicketstuff project. Matthijs PS. Wouter has uploaded his slides to slideshare: http://www.slideshare.net/Func/wicket-dynamic-components Pen wrote: Thanks Matthijs, I got a chance to look at Wouter Huijnink slides. This is what exactly I am looking. Can you please forward the AutoComponentPanel code. That would be great. ~Praveen Matthijs Wensveen-2 wrote: Hello Praveen, Wouter Huijnink presented something similar to what you need at the wicket meetup in Amsterdam. We generate html dynamically from xml, using xslt. A component called AutoComponentPanel parses the html and adds components to the hierarchy accordingly. This is actually a two-step process. The first step is telling wicket you want to supply markup yourself instead of letting wicket read it from the corresponding html file. You can do this by implementing IMarkupResourceStreamProvider and if applicable also IMarkupCacheKeyProvider. Then you need to parse the markup stream and add components. If you're interested I can send the AutoComponentPanel code. It still needs some work to make it shine, but we plan to open source it anyway as part of a wicket-based QTI framework. PS. Unfortunately Wouter's slides aren't uploaded yet. Pen wrote: thanks Johan for your reply. I did take look into your slides. We can generate HTML pages, we have no issue with it. But how to display this newly created HTML pages which only exists in memory, there is no physical file. And also to navigate to this new HTML page. For example If I create a simple HTML page at runtime like below test.html. How to display it and navigate to it. As it also requires corresponding test.java. This is simple one. But what if we have wicket:Ids we need construct the Java files with all the action listener also. test.html Hello world! ~Praveen Johan Compagner wrote: Generate on one side the html by a servlet or special template generator, that reads in your db data and generate the component structure on the other side. Look at he slides i put on of the presentation that i did for the wicket user group in the netherlands 2007/12/4, Pen <[EMAIL PROTECTED]>: I looked into the example wicketstuff-crud, this is basically in memory database with basic CRUD operation. this is not what exactly I am looking. Let me restate the question. We have application where in user can create a webpages using web designer by drag-n-drop where is html elements like text, image, selection box, combo box and save it in DB. It will be Json format parse it to POJO and store in DB. for example Image object looks like this which has got position, style, etc . [{"position":({left:60, top:40}), "size":({width:100,height:80}), "positionTop":40,"positionLeft":60,"sizeWidth":100,"sizeHeight":80, "cssClass":"", "style":"left:60px;top:40px;width:100px;height:80px;", ]}}]}) Now we need to read from the DB and reconstruct the same Image object has a html page. We can construct the above object with HTML tags. But the question is how to display this html pages, since it exists only in memory and also how to navigate to this newly created page. ~Praveen igor.vaynberg wrote: see how wicketstuff-crud does it in wicket-stuff svn -igor On Dec 3, 2007 6:30 PM, Pen <[EMAIL PROTECTED]> wrote: I am a new wicker user. We need to construct/generate a HTML page dynamically at runtime from the HTML elements like image and text. This page only exists in memory(session/cache) and there is no physical file. so how to generate such page and corresponding java class. How this can be done for static elements like image and text versus dynamically for form submit. Also how to navigate to this newly generated html page. ~Praveen -- View this message in context: http://www.nabble.com/How-to-dynamically-generate-HTML-page--tf4940771.html#a14143413 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View
Control where CSS files are loaded from
Hi All! I found on the wiki how i can control where my markup files are loaded from, but how can i control where the CSS files refered in the markup loaded from and also the images mentioned in the CSS? Thanks, Csaba - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using ajax to update a panel
I finally managed to get it working using the replaceWith method to replace the entire panel. -- View this message in context: http://www.nabble.com/Using-ajax-to-update-a-panel-tf4949239.html#a14190250 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AutoCompleteTextField problem
I've put the AutoComplete outside the form and then it works. It refreshes the DropDown and it can refresh the whole form as well. Thx for help on that. Regards, Dariusz -Original Message- From: wicket user [mailto:[EMAIL PROTECTED] Sent: 05 December 2007 16:38 To: users@wicket.apache.org Subject: Re: AutoCompleteTextField problem I am not sure why it doesn't work when we try to repaint the form itself. Some one else with more knowledge of the wicket internals will be able to help us with the answer of that question. Regarding refreshing the form - if i were you ( if required ) i would add all the form components in a web markup container and refresh the container, or will try adding all the form components to a panel and refreshing the panel. regards dipu On Dec 5, 2007 3:50 PM, Holda, Dariusz <[EMAIL PROTECTED]> wrote: > > Yes it did work. And if I want to refresh the form? Do I have to enclose > all the form components in the web markup? > > Dariusz > > -Original Message- > From: Dipu Seminlal [mailto:[EMAIL PROTECTED] > Sent: 05 December 2007 14:28 > To: users@wicket.apache.org > Subject: Re: AutoCompleteTextField problem > > can you please try enclosing the dropdown in a webmarkupcontainer and > repaint the container instead of repainting the whole form. That will > work. > > regards > dipu > > On Dec 5, 2007 2:23 PM, Dipu Seminlal <[EMAIL PROTECTED]> wrote: > > > agreed, onBlur doesn't seem to work, in my project had added onChange > and > > OnBlur to be on the safer side, > > but now noticed that onBlur is not getting fired > > > > > > > > > > On Dec 5, 2007 12:20 PM, Holda, Dariusz < [EMAIL PROTECTED]> > wrote: > > > > > > > > Onblur is not the thing I want but I've tried it and it doesn't > work. > > > > > > -Original Message- > > > From: Dipu Seminlal [mailto:[EMAIL PROTECTED] > > > Sent: 05 December 2007 12:10 > > > To: users@wicket.apache.org > > > Subject: Re: AutoCompleteTextField problem > > > > > > can you try changing the event from onchange to onblur > > > > > > On Dec 5, 2007 12:08 PM, dariusz.holda < [EMAIL PROTECTED]> > > > wrote: > > > > > > > > > > > Hi, > > > > I have AutoCompleteTextField with > > > > AjaxFormComponentUpdatingBehavior("onchange"). When the value is > > > chosen > > > > from > > > > the auto complete it populates the model object of a drop down. > Both > > > of > > > > the > > > > components are in a form. The problem is it is working only the > first > > > > time. > > > > Then IE reports Error on Page: Object required. I've tried to > debug > > > the > > > > error in FireFox but when I'm using Firefox it works fine with no > > > error. > > > > If > > > > I use DropDownChoice instead of AutoCompleteTextField it works > with no > > > > errors as well. > > > > I'm using wicket-1.2.6 and wicket-extensions-1.2.6. Has anybody > seen > > > > something like this? Is it a bug in 1.2.6 AutoCompleteTextField > for > > > IE? > > > > Unfortunately I almost all of the clients are using IE and it has > to > > > work > > > > with this browser. > > > > Here is the code snippet: > > > > acTextField.add(new AjaxFormComponentUpdatingBehavior("onchange"){ > > > > > > > >private static final long > > > serialVersionUID > > > > = 1L; > > > > > > > >@Override > > > >public void > onUpdate(AjaxRequestTarget > > > > target){ > > > >String name = > > > > acTextField.getModelObjectAsString(); > > > > > dropDown.setModelObject(name); > > > > target.addComponent(form); > > > >} > > > >}); > > > > > > > > dropDown and acTextField are added to the form. > > > > > > > > -- > > > > View this message in context: > > > > > > > > http://www.nabble.com/AutoCompleteTextField-problem-tf4949236.html#a1417 > > > 0390 > > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - > > > - - - - - - - - > > > > > > This message is intended only for the personal and confidential use > of > > > the designated recipient(s) named above. If you are not the > intended > > > recipient of this message you are hereby notified that any review, > > > dissemination, distribution or copying of this message is strictly > > > prohibited. This communication is for information purposes only and > should > > > not be regarded as an offer to sell or as a solicitation of an offer > to buy > > > any financial product, an official confirmation of any transaction, > or as an > > > official statement of Lehman Brothers. Email transmission cannot be > > > guaranteed to be secure or error-free. Therefore
Re: IComponentResolver question
Igor Vaynberg wrote: icomponentresolver does exactly what its javadoc says - match markup tags to components. if you want you can create those components on the fly - but remember that this happens at render time so it might have some side effects for you. The javadoc mentions "component names", but you can create components based on anything of the ComponentTag. Would "IComponentResolvers are responsible for mapping ComponentTags to Wicket components." be a better description? Of course, you don't even have to look at the component tag to create a component (i.e. RandomComponentResolver) but that would be pretty useless :) you dont need to rewrite your panel as a component resolver and add it to application settings - not many global component resolvers make sense unless you use namespaced markup tags. instead it is most times easier to simply let your component implement the interface directly - it works that way too. Okay, that's good to know. I'll do that. Do I need to add the created component to the container with container.autoAdd() ? if you want to see how it is meant to be used then simply search our codebase for references to it. I did do that, but I was unsure whether or not to use it myself. Thanks for the explanation, Matthijs -igor On Dec 5, 2007 7:15 AM, Matthijs Wensveen <[EMAIL PROTECTED]> wrote: Hello, I have developed a panel named AutoComponentPanel that automatically adds wicket components based on (dynamic) markup. Looking at IComponentResolver I noticed some similarities. Can someone explain this class and its uses to me? Is it something that I should want to use for AutoComponentPanel? We use AutoComponentPanel as a base class for some other panels that provide dynamic markup. For example transformed xml (xml -> xslt -> xhtml + wicket:id attributes). Would it be better (aka the wicket-way (tm)) when AutoComponentPanel is re-written as an IComponentResolver that can be used by the currently subclassing panels? They would then need to implement IComponentResolver too but can call my rewritten AutoComponentPanelAsResolverSomething in their implementing methods. Would this be a better way to go? How should this work when I add my resolver with Application.getPageSettings().addComponentResolver(resolver)? Thanks, Matthijs Wensveen -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getApplication
On Dec 5, 2007 11:32 PM, Uwe Schäfer <[EMAIL PROTECTED]> wrote: > Martin Funk schrieb: > > The Application you declare in the web.xml, so if you want your > > MyApplication you do it there and no need to fiddle with the > > getApplication() method. > > sorry, i did not make myself clear. i do declare my application in the > web.xml. thats not what i am talking about. what i want here is > typesafety without sprinkling my code with typecasts, but have one > central cast in getApplication() of a base-page instead. That's what my suggestion does. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getApplication
Uwe Schäfer schrieb: Martin Funk schrieb: The Application you declare in the web.xml, so if you want your MyApplication you do it there and no need to fiddle with the getApplication() method. sorry, i did not make myself clear. i do declare my application in the web.xml. thats not what i am talking about. what i want here is typesafety without sprinkling my code with typecasts, but have one central cast in getApplication() of a base-page instead. cu uwe hmmm... for that case I don't have an elegant reasoning either and looking at the wide spread usage of Application.get() I wouldn't be suprised if there isn't any. carpe diem, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WicketTester failure (1.2.6)
Solved using WicketTester#setStartPage( ITestPageSource ) instead of WicketTester#setStartPage( Page ) Bye, Paolo On Dec 5, 2007 4:18 PM, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote: > Guys, > > I'm getting a WicketRuntimeExceptionin this simple unit test: > > class SimpleTest { > > @Test > public void createPage() { > WicketTester tester = new WicketTester(); > > PageParameters params = new PageParameters("office_code=FAAFG"); > Page page = new PremisesListPage(params); > tester.startPage( page ); > tester.assertNoErrorMessage(); > } > > } > > > I'm missing something to run test on page instances (instead of using > WicketTester#startPage(Class) ) > > Here it is the stack trace: > > wicket.WicketRuntimeException: Can not set the attribute. No RequestCycle > available > at wicket.Session.setAttribute(Session.java:933) > at wicket.PageMap.put(PageMap.java :531) > at wicket.Session.touch(Session.java:744) > at wicket.util.tester.WicketTester.startPage(WicketTester.java:264) > at > org.fao.ocd.applications.coin.premises.ui.PremisesListPageTest.createListPage > (PremisesListPageTest.java :52) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.junit.internal.runners.TestMethodRunner.executeMethodBody( > TestMethodRunner.java:99) > at org.junit.internal.runners.TestMethodRunner.runUnprotected ( > TestMethodRunner.java:81) > at org.junit.internal.runners.BeforeAndAfterRunner.runProtected( > BeforeAndAfterRunner.java:34) > at org.junit.internal.runners.TestMethodRunner.runMethod( > TestMethodRunner.java:75) > at org.junit.internal.runners.TestMethodRunner.run( > TestMethodRunner.java:45) > at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod( > TestClassMethodsRunner.java:66) > at org.junit.internal.runners.TestClassMethodsRunner.run ( > TestClassMethodsRunner.java:35) > at org.junit.internal.runners.TestClassRunner$1.runUnprotected( > TestClassRunner.java:42) > at org.junit.internal.runners.BeforeAndAfterRunner.runProtected( > BeforeAndAfterRunner.java :34) > at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java > :52) > at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run( > JUnit4TestReference.java:38) > at org.eclipse.jdt.internal.junit.runner.TestExecution.run ( > TestExecution.java:38) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( > RemoteTestRunner.java:460) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( > RemoteTestRunner.java:673) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( > RemoteTestRunner.java:386) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( > RemoteTestRunner.java:196 > > > > Thank, Paolo >
Re: 302 vs. 301 Redirect
I wasn't suggesting changing the functionality of setRedirect, but instead maybe adding setPermanentRedirect(true) or another way for wicket to be able to perform a 301. On Wed, 2007-12-05 at 13:43 +, Gwyn Evans wrote: > I think the one thread was "Consistent homepage URL" from 2005Q2 - I > think the gist was that in the scenario there, it wasn't desirable > having the redirected URL becoming the one that the search engines > would always go to. > > /Gwyn > > On 04/12/2007, Johan Compagner <[EMAIL PROTECTED]> wrote: > > Long long time ago we had discussions about this, i think also related > > to what google expects. I guess what we now have is a result of that. > > But i cant remember what the pros and cons are > > > > 2007/12/4, Joe Toth <[EMAIL PROTECTED]>: > > > When you setRedirect(true), wicket does a 302, temporary, redirect. The > > > basic rule of thumb in SEO is if you want to pass all authority to a > > > different page use 301 (permanent). > > > > > > http://www.seotoday.com/browse.php/category/articles/id/477/index.php > > > > > > Thoughts on adding something to Wicket to support this functionality? > > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot render a menubar using menu2 package
The trick to solve the problem is to add getMarkupSettings().setStripWicketTags(true); in the method init() of the webapp, as indicated by Doug Thanks Doug! Rik > From: [EMAIL PROTECTED]> To: users@wicket.apache.org> Subject: RE: cannot > render a menubar using menu2 package> Date: Wed, 5 Dec 2007 15:07:56 +> > > Hi Doug,> I've created a simple menu with menu2 and on Internet Explorer it > works perfectly.> But I have a problem with Firefox, because the submenus are > not displayed, and the little symbol (the down pointing arrow right side the > menu) is not displayed, too.> The strange thing is that the MenuBar2Page > wicket example works properly, because the submenus are correctly displayed > on Firefox, too.> The sources of the generated html seem equals (the > references to the scripts are the same), but using firebug the only > difference I noticed is that MenuBar2Page > there is a request of map.gif, > and this request is not present calling my page.> Maybe I'm making another > error, but I don't understand where I'm going wrong...> Regards> > Rik> > > > > > Date: Mon, 3 Dec 2007 10:14:20 -0800> From: [EMAIL PROTECTED]> To: > users@wicket.apache.org> Subject: RE: cannot render a menubar using menu2 > package> > > Fantastic!> > I was getting a little nervous there for a > second.> > Let me know if you have any problems/thoughts on menu2. Not sure > how many> are using it but my experience has been great (of course ;-)> > - > Doug> -- > View this message in context: > http://www.nabble.com/wicket-success-stories-tf4877640.html#a14135545> Sent > from the Wicket - User mailing list archive at Nabble.com.> > > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]> > > _> Scarica > GRATIS 30 emoticon per Messenger!> > http://www.emoticons-livemessenger.com/pages/msnit/index.htm _ Scarica GRATIS le emoticon della tua squadra del cuore e il calendario di serie A! http://www.emoticons-livemessenger.com/pages/msnitcalcio/index.htm