RE: Get informed about invalidation of a session

2008-04-03 Thread BatiB80
Hi Warren, thanks for your answer. But I'm not sure how I could use this. The information that I need to access are stored in the session. How can I access a single instance of this session from the session store? Thanks, Sebastian -- View this message in context:

Re: Writing to .properties files and make changes happen?

2008-04-03 Thread unka_hahrry
Yes, but only if I edit the .properties file with an editor and save, then it will be recognized, if overwriting the .properties file with BufferedWriter it will not be recognized. Is there a better way to provide the future admin the possiblity of adaptable content, without putting all the

RE: Multiple TreeTables: wrong table expanded

2008-04-03 Thread Jaap Bos
Just created an issue with a simplified quickstart example: https://issues.apache.org/jira/browse/WICKET-1475. In this case the problem is slightly different though: expanding the child of the root of the first tree just doesn't work. Jaap -Original Message- From: Matej Knopp

Re: Get informed about invalidation of a session

2008-04-03 Thread Johan Compagner
thats impossible If a session is invalidated you can't access the attributes anymore (or call getId() at least that is or will be solved in the coming servlet spec) johan On Thu, Apr 3, 2008 at 8:51 AM, BatiB80 [EMAIL PROTECTED] wrote: Hi Warren, thanks for your answer. But I'm not sure

Re: Problems and Questions about MultiFileUploadField, UploadProgressBar

2008-04-03 Thread Fabien D.
Yes, it was just a problem of Model to get back data this.form_importerarticle = new Form(form_importerarticle) { protected void onSubmit() { List list = (List)model_upload.getObject();

Modifying inline CSS in head of document

2008-04-03 Thread rzechner
I want to resize the height of my pages dynamically, therefore I need to set the height of some markup elements dynamically. I don't want to use Javascript (although I found a nice solution with jquery). Is there a way to add a textblock like the following to the page header? !--[if lt IE 8]

Re: [WUG] Copenhagen

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
So in order to have this meetin, i'd like to see how many we are (if below 5 or something around there it's not gonna happen). So please fill in if you will come here : http://cwiki.apache.org/confluence/display/WICKET/Community+meetups#Communitymeetups-Denmark Or if youre really lazy,

Re: Mount causes strange effects on my web application

2008-04-03 Thread SteamR
I found out that it was a js sourcefile reference which were added in code (in a onRendered method), that when app was mounted, caused the lookups to be sent to the page instead... So that seems that relative paths are nogos when mounted??? But strange is that images seems to work ok, they also

Re: Mount causes strange effects on my web application

2008-04-03 Thread SteamR
OK, it seems that image paths are filtered with correct path, and thus leaves my javascript reference as is, since I add it myself. Is there somehow I can find out what path is correct, since I am adding javascript reference in my java code??? SteamR wrote: I found out that it was a js

Re: wicket support for page customisation at runtime

2008-04-03 Thread kumark
Thanks Igor. Here's an example of the usecase I am referring to. Two panels lets say (one with sports headlines and other with weather headlines) are shown one below the other by default. I want the user to be able to move their order (lets say with up and down arrows) provided in each of those

Re: Removing the jsessionid for SEO

2008-04-03 Thread Artur W.
Hi! igor.vaynberg wrote: also by doing what you have done users with cookies disabled wont be able to use your site... In my opinion session id is a problem. Google index the same page again and again. About the users without cookies we can do like this: static class

Re: wicket support for page customisation at runtime

2008-04-03 Thread wicket user
Check the wicket stuff jquery project, you will get the idea https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery-examples regards -dipu On Thu, Apr 3, 2008 at 10:34 AM,

Re: Removing the jsessionid for SEO

2008-04-03 Thread Johan Compagner
isnt google always saying that you shouldn't alter behavior of your site depending of it is there bot or not? On Thu, Apr 3, 2008 at 1:00 PM, Artur W. [EMAIL PROTECTED] wrote: Hi! igor.vaynberg wrote: also by doing what you have done users with cookies disabled wont be able to use

Re: [WUG] Copenhagen

2008-04-03 Thread Frank Bille
Good initiative. I'm glad you are taking lead on this. I think I can come and have signed up on the wiki page. Frank On Thu, Apr 3, 2008 at 10:54 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: So in order to have this meetin, i'd like to see how many we are (if below 5 or

Customerize captcha image

2008-04-03 Thread wenm
Does anybody have an idea how to change the background image and font size etc of wicket captcha image? -- View this message in context: http://www.nabble.com/Customerize-captcha-image-tp16467447p16467447.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Throw AbortWithWebErrorCodeException in onBeforeRender

2008-04-03 Thread lars vonk
Why not implement this in the subclass itself? It sounds really specific for a certain class right? So I think the subclass itself is the correct place. On Wed, Apr 2, 2008 at 11:41 AM, Michael Sparer [EMAIL PROTECTED] wrote: (Using wicket 1.3.2) I have a super class (WebPage) that throws a

Re: Customerize captcha image

2008-04-03 Thread Vitaly Tsaplin
Create your own captcha :) The idea of the RenderedDynamicImageResource is brilliant. You just need to implement the render (Graphics2D gfx) method. Draw there whatever you want. It's even better. No one will be able to reuse the algorithm to teach a neuronet :) On Thu, Apr 3, 2008 at 2:32 PM,

should DataView.setItemsPerPage(int items) be in IDataProvider?

2008-04-03 Thread i ii
when i need to get items per page in data provider i cannot unless i have data view. should this method be in data provider and not data view? the data provider is providing data and items per page is data, no?

Re: should DataView.setItemsPerPage(int items) be in IDataProvider?

2008-04-03 Thread Martijn Dashorst
iterator(int start, int count) the count parameter is the items per page. Martijn On 4/3/08, i ii [EMAIL PROTECTED] wrote: when i need to get items per page in data provider i cannot unless i have data view. should this method be in data provider and not data view? the data provider is

Re: Ajax DropDownChoice and null values

2008-04-03 Thread Java Programmer
I added onError when Required failed, now works - closed: @Override protected void onError(AjaxRequestTarget target, RuntimeException e) { carPartsModel.setCarModel(null);

Re: [WUG] Copenhagen

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
Thanks:) Frank Bille wrote: Good initiative. I'm glad you are taking lead on this. I think I can come and have signed up on the wiki page. Frank On Thu, Apr 3, 2008 at 10:54 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: So in order to have this meetin, i'd like to

RE: should DataView.setItemsPerPage(int items) be in IDataProvider?

2008-04-03 Thread i ii
but what if items per page is needed not in iterator? Date: Thu, 3 Apr 2008 15:08:27 +0200 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: should DataView.setItemsPerPage(int items) be in IDataProvider? iterator(int start, int count) the count parameter is the items

CheckBoxMultipleChoice with sections

2008-04-03 Thread Brian Edwards
I am trying to create a CheckBoxMultipleChoice subclass that supports sections. The class of items in the list will have a section name and a description. The list will guarantee that it is grouped by sections. My idea was to override getPrefix(), call a getter to get the current choice, and if

Re: StackOverflowError using 1.3.2

2008-04-03 Thread Gerolf Seitz
i was able to reproduce it in a quickstart. see WICKET-1476 Gerolf On Wed, Apr 2, 2008 at 9:02 PM, Johan Compagner [EMAIL PROTECTED] wrote: if we have a quickstart for this we could look for the solution... On Wed, Apr 2, 2008 at 8:26 PM, André Souza [EMAIL PROTECTED] wrote: I have

Is there an AJAX Panel in Wicket

2008-04-03 Thread kumark
I was wondering if there is a AJAXPanel available in wicket. If a page has 10 panels with in it, I want all of them to load in an asynchronous fashion, which ever is available first and so on, Instead of waiting for all the 10 panels to load before the page is displayed? Many Thanks. -- View

Re: Is there an AJAX Panel in Wicket

2008-04-03 Thread Erik van Oosten
I think AjaxLazyLoadPanel does the job exactly as you desribe it. Regards, Erik. kumark schreef: I was wondering if there is a AJAXPanel available in wicket. If a page has 10 panels with in it, I want all of them to load in an asynchronous fashion, which ever is available first and so

I cannot understand why would a panel have the getparent null

2008-04-03 Thread Cristi Manole
Hello, I have a HomePage where, in constructor, i add a Panel : public HomePage(final PageParameters parameters) { Date clientDate = getClientCalendar().getTime(); Label label = new Label(today, Today's Status [ +

Render body only

2008-04-03 Thread Scott Sauyet
Hi, I'm looking to do exactly what was discussed in a thread a few years ago (http://tinyurl.com/3yo43s), namely to dynamically include or exclude a group of TR tags. I can wrap them in a SPAN with a WebMarkupContainer, but I like to have valid HTML and really don't want the SPAN tag in the

Re: Render body only

2008-04-03 Thread Jeremy Levy
Did you try setRenderBodyOnly(true) ? On Thu, Apr 3, 2008 at 10:28 AM, Scott Sauyet [EMAIL PROTECTED] wrote: Hi, I'm looking to do exactly what was discussed in a thread a few years ago (http://tinyurl.com/3yo43s), namely to dynamically include or exclude a group of TR tags. I can wrap them

Re: Render body only

2008-04-03 Thread Ryan Gravener
You can try wicket:container wicket:container wicket:id=foo tr wicket:id=dd.../tr /wicket:container http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags On Thu, Apr 3, 2008 at 10:28 AM, Scott Sauyet [EMAIL PROTECTED] wrote: Hi, I'm looking to do exactly what

ModalWindow and Ajax?

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
Hi I have a modalwindow which contains a dropdown. I've attached an ajaxbehavior to the dropdown but when it fires I get a confirmation box are you sure you want to navigate away from this page... Is it supposed to work this way? -- -Wicket for love Nino Martinez Wael Java Specialist @

Re: Render body only

2008-04-03 Thread Scott Sauyet
Ryan Gravener wrote: You can try wicket:container wicket:container wicket:id=foo tr wicket:id=dd.../tr /wicket:container http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags And that's even better. No ugly SPAN tags in the markup either. Thanks Jeremy and

RE: Removing the jsessionid for SEO

2008-04-03 Thread Zappaterrini, Larry
When Google asks to not have special treatment for their bot, they are referring to content more than anything. Regarding the session id being coded in the URL, see the Technical guidelines section of Google's Webmaster Guidelines -

Re: ModalWindow and Ajax?

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
this did not do the trick in my onchange: target.appendJavascript(Wicket.Window.unloadConfirmation = false;); should it be prepended or when should it be append before the onchange event in my dropdown? As a kind of setup, I guess? Ryan Gravener wrote: Yes, append this

Re: Render body only

2008-04-03 Thread Charlie Dobbie
Off Topic, but does anyone else apart from Scott and me get confused by this duality? Should I setProperty, or override getProperty? And the equally annoying Does getComponentX give me a reference to an already-created ComponentX, or do I override it to supply my own ComponentX? Charlie. On

Re: Unit testing wizards

2008-04-03 Thread romand
cruiserdude wrote: Hi, Bit of a noob question but I was hoping somebody might be able to give an example of unit testing a Wizard, I'm not entirely sure how to test the individual pages. So far I've got to the point that I can check that my child of Wizard.class has rendered but

Displaying date as Label.

2008-04-03 Thread nanotech
Hi All, I need some help displaying date correctly in Label. I am using a text field(and DatePicker) to take date input and storing it in mySQL database. But while displying it as a Label I am only seeing time (i.e it always shows 12:00 am).The date in database is correct. Here is how I am

Re: ModalWindow and Ajax?

2008-04-03 Thread Ryan Gravener
You can set it as soon as the Wicket js object has been created. You need to be using wicket 1.3.x for this to work and yes, you will need to have it set before the onchange. On Thu, Apr 3, 2008 at 11:00 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: this did not do the

Re: Render body only

2008-04-03 Thread John Krasnay
On Thu, Apr 03, 2008 at 03:50:42PM +0100, Charlie Dobbie wrote: Off Topic, but does anyone else apart from Scott and me get confused by this duality? Should I setProperty, or override getProperty? And the equally annoying Does getComponentX give me a reference to an already-created

RE: Get informed about invalidation of a session

2008-04-03 Thread Warren
I am extending HttpSessionStore and keeping track of my sessions there. I am able to get a hold of members of my Session while it is being invalidated. I am not quite sure what you mean by on the unBind() / onDestroy the actual session object does not exist anymore, the session seems to be

Re: Modifying inline CSS in head of document

2008-04-03 Thread Igor Vaynberg
see IHeaderContributor -igor On Thu, Apr 3, 2008 at 12:43 AM, rzechner [EMAIL PROTECTED] wrote: I want to resize the height of my pages dynamically, therefore I need to set the height of some markup elements dynamically. I don't want to use Javascript (although I found a nice solution with

Re: Removing the jsessionid for SEO

2008-04-03 Thread Johan Compagner
the problem is that then you have to have all stateless pages. Else google can't crawl your website. And if that is the case then you could be completely stateless so you dont have a session (id) to worry about at all. johan On Thu, Apr 3, 2008 at 4:54 PM, Zappaterrini, Larry [EMAIL

Re: Changing Wickets default styles

2008-04-03 Thread Steen Larsen
More or less. Rearranging the order of the styles, seems to have an influence. No idea why but it looks ok now. Firebug only showed the first style (background-image), but changing the order made more show up (not all). Go figure. But thanks for the input all. /Steen 2008/4/2, Nino Saturnino

Re: Is there an AJAX Panel in Wicket

2008-04-03 Thread Michael Sparer
wicket has plenty of ajax components out of the box. i think what you're looking for is the lazyloading panel which is from wicket-extensions (i think) have a look at the example(s) on wicketstuff.org: http://www.wicketstuff.org/wicket13/ajax/lazy-loading.1 kumark wrote: I was wondering if

Tabbed Panel

2008-04-03 Thread Milan Křápek
Hi, I want to use tabbed panel in my web application, because this type of navigation seem good for me. I looked the examples and I have this question. Is it posible to use tabbed panel as some page navigator? The situation: My application is composed from few user models and one base

Re: wicket support for page customisation at runtime

2008-04-03 Thread Igor Vaynberg
they click the up link, you update the db with the correct order, and repaint the page. where is the problem? -igor On Thu, Apr 3, 2008 at 2:34 AM, kumark [EMAIL PROTECTED] wrote: Thanks Igor. Here's an example of the usecase I am referring to. Two panels lets say (one with sports

Re: Tabbed Panel

2008-04-03 Thread Igor Vaynberg
tabbedpanel is meant for swapping inner panels not urls. you will need to roll your own variant that only has tabs and no body. see the source of tabbedpanel for inspiration. -igor On Thu, Apr 3, 2008 at 9:34 AM, Milan Křápek [EMAIL PROTECTED] wrote: Hi, I want to use tabbed panel in my web

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
right. if you strip sessionid then all your nonbookmarkable urls will resolve to a 404. that will probably drop your rank a lot faster -igor On Thu, Apr 3, 2008 at 9:16 AM, Johan Compagner [EMAIL PROTECTED] wrote: the problem is that then you have to have all stateless pages. Else google

Re: Throw AbortWithWebErrorCodeException in onBeforeRender

2008-04-03 Thread Igor Vaynberg
jira... -igor On Wed, Apr 2, 2008 at 2:41 AM, Michael Sparer [EMAIL PROTECTED] wrote: (Using wicket 1.3.2) I have a super class (WebPage) that throws a AbortWithWebErrorCodeException(404) depending on some properties of its subclasses. Therefore I can't check the subclasses' properties in

Re: CheckBoxMultipleChoice with sections

2008-04-03 Thread Igor Vaynberg
you could use CheckGroup/Check components -igor On Thu, Apr 3, 2008 at 6:37 AM, Brian Edwards [EMAIL PROTECTED] wrote: I am trying to create a CheckBoxMultipleChoice subclass that supports sections. The class of items in the list will have a section name and a description. The list

Re: should DataView.setItemsPerPage(int items) be in IDataProvider?

2008-04-03 Thread Igor Vaynberg
whats the usecase there? -igor On Thu, Apr 3, 2008 at 6:29 AM, i ii [EMAIL PROTECTED] wrote: but what if items per page is needed not in iterator? Date: Thu, 3 Apr 2008 15:08:27 +0200 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: should

Wicket fail-over with Terracotta - sticky or non-sticky sessions?

2008-04-03 Thread Stefan Fußenegger
Hi all, I am currently evaluating a Wicket fail-over solution (two equal nodes with a floating IP, probably using Linux Heartbeat) with Terracotta. Of course, it would be desirable to switch between nodes without any impact on a user's session. In order to provide this, the cluster must be able

Re: Removing the jsessionid for SEO

2008-04-03 Thread Matej Knopp
On the other hand, crawling non-bookmarkable pages is not very useful anyway, since ?wicket:interface url will always get page expired when you click on the result. However, preserving session makes lot of sense with hybrid url. Google remembers the original url (without page instance) while

[Wicket 1.3.3] Possible wicket:enclosure regression.

2008-04-03 Thread Fabio Fioretti
Hi All, I'm experiencing a possible regression for wicket:enclosure in Wicket 1.3.3 (maybe related to the couple of patches that involved enclosures for 1.3.3). It thought of a regression because the following code works just fine in 1.3.1, even if I haven't tested it in 1.3.2. Basically, I have

Re: Validate HTML generated from getMarkupResourceStream()

2008-04-03 Thread hjuturu
Hi Igor,All I tried to use MarkupParser as u suggested This is how my code looks public IResourceStream getMarkupResourceStream(MarkupContainer container, Class containerClass){ IResourceStream rStream = new StringResourceStream(HTMLString); MarkupResourceStream

Re: I cannot understand why would a panel have the getparent null

2008-04-03 Thread Al Maw
ajaxTable.setCurrentPage(ajaxTable.getUserRow(user.getUsername(), new Date(((HomePage)getParent()).getClientCalendar().getTimeInMillis())) / ROWS_PER_PAGE); Eeek. Not to be rude, but I really can't read that at all. Some well-named intermediate variables and a comment might not go amiss. Your

Re: Validate HTML generated from getMarkupResourceStream()

2008-04-03 Thread hjuturu
I got a solution for this and would like to share it with those interested I replaced the catch block with this code' catch (Exception e) { getSession().error(Parse Exception Occured); throw new

Re: Render body only

2008-04-03 Thread Al Maw
Yeah. It's a bit nasty, but there's not really any other way to have both the flexibility and the convenience, unless you have some brilliant other idea? It's like jk says, normally you would use the setter, unless you need on-demand evaluation per page-view. Regards, Alastair On Thu, Apr 3,

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-03 Thread Al Maw
You can use as many anonymous inner classes as you like. I have them coming out of my ears, personally. It's very odd for tomcat to die with no output. There will be output somewhere. Check logs/catalina.out and also logs/localhost*. If the JVM dies, it will hotspot or even segfault and log that,

Re: Displaying date as Label.

2008-04-03 Thread Roman Zechner | Liland
use this DateLabel.forDatePattern(java.lang.String id, IModel model, java.lang.String datePattern) cheers, roman users@wicket.apache.org wrote: Hi All, I need some help displaying date correctly in Label. I am using a text field(and DatePicker) to take date input and storing it in mySQL

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-03 Thread Jeremy Thomerson
The oddness is what baffles me: Tomcat has no output anywhere. I have grepped and tailed the entire Tomcat logs directory, stdout*, stderr*, localhost*, etc. Nothing in eventvwr. It must be memory related, though. There is a steadily increasing memory footprint - it was increasing so fast

Re: ModalWindow and Ajax?

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
Ok.. Thanks, thought it was some setup thingy. And works fine now. regards Nino Ryan Gravener wrote: You can set it as soon as the Wicket js object has been created. You need to be using wicket 1.3.x for this to work and yes, you will need to have it set before the onchange. On Thu, Apr

Re: Unit testing wizards

2008-04-03 Thread lizz
Here is how you test wizards: // check that buttons main view and feedback panel exists for wizard tester.assertComponent(myWizard:form: + Wizard.VIEW_ID, Component.class); tester.assertComponent(myWizard:form: + Wizard.BUTTONS_ID, WizardButtonBar.class);

Re: Get informed about invalidation of a session

2008-04-03 Thread Johan Compagner
when a session is invalidated you cant call get or set attribute anymore on it also holding on the sessions outside of request is not something you should do On Thu, Apr 3, 2008 at 5:51 PM, Warren [EMAIL PROTECTED] wrote: I am extending HttpSessionStore and keeping track of my sessions there.

Re: ModalWindow and Ajax?

2008-04-03 Thread Per Newgro
Hello Nino Saturnino Martinez Vazquez Wael: could you please provide a small example on this issue / solution. I think about a similiar way of doin things and i don't want to ask the same question as you in a month again :-) Thanks Per

[discuss] What do you want the Amsterdam Meetup to be?

2008-04-03 Thread Martijn Dashorst
Unfortunately Cyrille is unable to attend the Wicket meetup, so the presentation on the web framework competition (where Wicket was the winner) will not happen. So there is some room in our schedule and I'd like to know what the community expects to happen in our meetup outside the presentations?

RE: Get informed about invalidation of a session

2008-04-03 Thread Warren
Can't I rely on HttpSessionStore#onBind(...) and HttpSessionStore#onUnbind(...) to manage a ConcurrentHashMap() of Sessions? I remove the session in onUnbind(). And doesn't invalidating and onUnbind() happen in the same request?. I have some special use cases that require one device to communicate

Re: Is there an AJAX Panel in Wicket

2008-04-03 Thread Johan Compagner
cant be done for the components the think you can do is what is slow (the data for the components) and do that in another thread(s) and then poll if it is ready johan On Thu, Apr 3, 2008 at 3:52 PM, kumark [EMAIL PROTECTED] wrote: I was wondering if there is a AJAXPanel available in wicket.

Re: Get informed about invalidation of a session

2008-04-03 Thread Johan Compagner
that there only can be 100 can be checked by just having a counter And communication should just be pulled from a central data object you shouldn't push that in into the session objects (same for logging off) Ofcourse this can all work but you dont know what the container does and failover or

Re: Throw AbortWithWebErrorCodeException in onBeforeRender

2008-04-03 Thread Johan Compagner
thats really a strange error at that time the application should still be there. On Wed, Apr 2, 2008 at 11:41 AM, Michael Sparer [EMAIL PROTECTED] wrote: (Using wicket 1.3.2) I have a super class (WebPage) that throws a AbortWithWebErrorCodeException(404) depending on some properties of its

Problems with wicketstuff-contrib-jasperreports

2008-04-03 Thread Peter Neubauer
Hi all, I tried using a copy of the page at http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-jasperreports/src/examples/java/wicket/contrib/jasperreports/examples/ReportLinksPage.java to get some Jasperreport out, but instead, I am getting ERROR - RequestCycle

RE: Get informed about invalidation of a session

2008-04-03 Thread Warren
Just for my information, what would be some of the uses of AbstractHttpSessionStore#onBind(...) and AbstractHttpSessionStore#onUnbind(...)? It looks like they are there to manage sessions in some way. My use cases are a little more complicated, but you made some good points and I do need to

Re: Modifying inline CSS in head of document

2008-04-03 Thread Roman Zechner | Liland
Thanks Igor, I came up with this solution public abstract class BasePage extends WebPage() { int height = .../*get Browser height*/ String headerCss = String.format(style type=\text/css\#leftmenu {height:%spx}/style, height); add(new StringHeaderContributor(headerCss)); which isn't free of

wicket, spring and aop

2008-04-03 Thread [EMAIL PROTECTED]
Hi there, I'm just trying to integrate wicket 1.3.2, spring 2.0 and aspect oriented programming (spring-aop). I've an aspect for instrumenting a dao provider that is defined as follow: @Aspect() public class DaoProviderInstrumentation { @Around(execution(* *(..))

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
Regardless, at the very least this makes your site look weird and unprofessional when google puts a jsessionid on your url. There has got to be some negative effect when google visits it the second time and the jsessionid has changed but it sees the same exact content. Worst case, it'll think

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
dataview can work in a stateless mode, just use bookmarkable links inside it -igor On Thu, Apr 3, 2008 at 3:22 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Regardless, at the very least this makes your site look weird and unprofessional when google puts a jsessionid on your url. There has got to

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
Clarifications: When I said About those 404s, I was talking about if you use the fix I provided and turn off cookies on your browser. When I said, If I ban cookies I mean to say, If I require cookies -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Thursday, April

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
How? I asked how to do it before and nobody suggested this as a possibility. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 3:26 PM To: users@wicket.apache.org Subject: Re: Removing the jsessionid for SEO dataview can work in a

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
instead of item.add(new link(foo) { onclick() }); do item.add(new bookmarkablepagelink(foo, page.class)); -igor On Thu, Apr 3, 2008 at 3:28 PM, Dan Kaplan [EMAIL PROTECTED] wrote: How? I asked how to do it before and nobody suggested this as a possibility. -Original Message-

Re: Removing the jsessionid for SEO

2008-04-03 Thread Martijn Dashorst
On 4/4/08, Dan Kaplan [EMAIL PROTECTED] wrote: Regardless, at the very least this makes your site look weird and unprofessional when google puts a jsessionid on your url. 0.5% of your users care about the URL that is displayed in a google search result. It doesn't look weird or unprofessional.

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
I wasn't talking about the links that are on the list (I already make those bookmarkable). I'm talking about the links that the Navigator generates. How do I make it so page 2 is bookmarkable? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03,

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
you subclass the pagenavigator and make it use bookmarkable links also. it has factory methods for all the links it uses. -igor On Thu, Apr 3, 2008 at 3:36 PM, Dan Kaplan [EMAIL PROTECTED] wrote: I wasn't talking about the links that are on the list (I already make those bookmarkable). I'm

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
Awesome, thanks -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 3:40 PM To: users@wicket.apache.org Subject: Re: Removing the jsessionid for SEO you subclass the pagenavigator and make it use bookmarkable links also. it has factory methods

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
-Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 3:36 PM To: users@wicket.apache.org Subject: Re: Removing the jsessionid for SEO On 4/4/08, Dan Kaplan [EMAIL PROTECTED] wrote: Regardless, at the very least this makes your site look

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-03 Thread Daniel Wu
I debugged my application and it really doesn't have a ClassNotFoundException eaten by ObjectInputStream. I compared the flow of two screens of my application, one that works and another that doesn't: 1) The line 298 of SecondLevelCacheSessionStore = getLastPage().getVersion(versionNumber) is

Re: Removing the jsessionid for SEO

2008-04-03 Thread Martijn Dashorst
On 4/4/08, Dan Kaplan [EMAIL PROTECTED] wrote: My URL ends with ;jsessionid=an7goabg0az (my actual situation). I personally think that looks weirder than .php or .asp. Nah, it shows that you are using Java. Much more sophisticated! Where did you get that 0.5% statistic? Regardless, my

RE: should DataView.setItemsPerPage(int items) be in IDataProvider?

2008-04-03 Thread i ii
i need update method to know how many items updated out of how many items shown on page Date: Thu, 3 Apr 2008 10:02:18 -0700 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: should DataView.setItemsPerPage(int items) be in IDataProvider? whats the usecase there? -igor

Re: should DataView.setItemsPerPage(int items) be in IDataProvider?

2008-04-03 Thread Igor Vaynberg
what is that have to do with dataprovider? i think you are doing something very strange. maybe you should subclass the dataview instead of dataprovider -igor On Thu, Apr 3, 2008 at 5:22 PM, i ii [EMAIL PROTECTED] wrote: i need update method to know how many items updated out of how many

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
On Thu, Apr 3, 2008 at 5:31 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Ok I did a little preliminary research on this. Right now PagingNavigator uses PagingNavigationLink's to represent its page. This extends Link. I'm supposed to override PagingNavigator's newPagingNavigationLink() method to

Default selection in radio group?

2008-04-03 Thread Michael Mehrle
I created a RadioGroup with three radios attached. For some reason the form is being drawn with the last radio pre-selected, which I don't want. How can I pre-select a default radio and also how can I set the group to nothing selected? Thanks, Michael

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
Ok I did a little preliminary research on this. Right now PagingNavigator uses PagingNavigationLink's to represent its page. This extends Link. I'm supposed to override PagingNavigator's newPagingNavigationLink() method to accomplish this (I think) but past that, this isn't very straightforward

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
Ok, at least I'm not missing anything. I understand the benefits it's providing with its stateful framework. Developing a site with Wicket is easier than with any other framework I've used. But this statefulness, which makes websites so easy to develop, seems to be counter productive to SEO:

Re: Removing the jsessionid for SEO

2008-04-03 Thread Jeremy Levy
We have a similar issue, and are trying the following out right now.. http://www.google.com/support/webmasters/bin/answer.py?hl=enanswer=40367 User-agent: * Disallow: /*? On Thu, Apr 3, 2008 at 9:09 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Ok, at least I'm not missing anything. I

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
On Thu, Apr 3, 2008 at 6:09 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Ok, at least I'm not missing anything. I understand the benefits it's providing with its stateful framework. Developing a site with Wicket is easier than with any other framework I've used. But this statefulness, which

Re: Removing the jsessionid for SEO

2008-04-03 Thread Jeremy Levy
To clarify my message below: With a CryptedUrlWebRequestCodingStrategy and alot of BookmarkablePages. On Thu, Apr 3, 2008 at 9:16 PM, Jeremy Levy [EMAIL PROTECTED] wrote: We have a similar issue, and are trying the following out right now..

Strange behaviour with autocomplete

2008-04-03 Thread David Leangen
Hi, Using the standard wicket autocomplete widget, I just noticed that I am getting some strange behaviour. When I mouseover or scroll the list via the keyboard, the entire screen jumps to the bottom. I never noticed before because there wasn't enough content to cause the page to scroll and

Re: Removing the jsessionid for SEO

2008-04-03 Thread Jeremy Thomerson
I've been building a community-driven hunting and fishing site in Texas for the past year and a half. Since I have converted it to Wicket from ColdFusion, our search engine rankings have gone WAY UP. That's right, we're on the first page for tons of searches. Search for texas hunting - we're

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-03 Thread Jeremy Thomerson
Nope - one page never holds on to another. I never even pass pages into another page or link or something as a reference. Interestingly, I DECREASED the memory the JVM could have from 1.5 GB to 1.0 GB today, and it has been stable all day (after also releasing a version using Wicket 1.3.3).

Re: Writing to .properties files and make changes happen?

2008-04-03 Thread unka_hahrry
I call this method from inside a WebPage: public static void setNewText(String path, String textId, String neuerText) throws IOException { ... getting old text as StringBuffer alt ... //create new String from content of