Re: Must I settle for bookmarkable pages?

2008-06-26 Thread David Leangen
The thing is that I'm in an OSGi environment, and I have a WicketService that provides my Wicket instance. I attach Applications as bundles to the Wicket instance and mount them on a certain path. so why are the /?wicket:interface urls interfering with that? He he... that goes

Re: Must I settle for bookmarkable pages?

2008-06-26 Thread Igor Vaynberg
i dont know, i might got the multi-wicket-app in the same webapp way, just like wicket-examples. that way you dont have any of these goofy issues. every bundle provides its own application instance and registers its own url slice. -igor On Wed, Jun 25, 2008 at 10:59 PM, David Leangen [EMAIL

Having a base url parameter for the whole application?

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
Hi I've tried like a crazy mad man to get apache to set a special header depending on which domain my requests comes from, I just cant get it to work(sets the same header no matter which domain). So I thought that wicket could come to the rescue again.. Instead of setting a header I could

Re: Having a base url parameter for the whole application?

2008-06-26 Thread Igor Vaynberg
write your own webrequestcodingstrategy? -igor On Wed, Jun 25, 2008 at 11:29 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi I've tried like a crazy mad man to get apache to set a special header depending on which domain my requests comes from, I just cant get it to

Re: Having a base url parameter for the whole application?

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
Thanks, could have been though there were something there already.. I'll roll my own then:) Igor Vaynberg wrote: write your own webrequestcodingstrategy? -igor On Wed, Jun 25, 2008 at 11:29 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi I've tried like a crazy mad

Re: Refresh component from non-wicket js

2008-06-26 Thread Martin Funk
Mats Norén wrote: Hi, I've been searching the archives on a simple way to repaint a component from a non-wicket javascript, ie the javascript is not attached or associated with a wicket component. The usecase: 1. A user updates data in the browser (non wicket) 2. Presses save (could be a

Re: Having a base url parameter for the whole application?

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
Yup, it's being rewritten to the ip of the server and setting preserve hosts on brings other issues. However I found out that if I place one vhost before the other and omitting set header on the first one. It'll actually work, and since I only have to sites its okay.. And working sort of as

Re: FeedbackPanel and page refresh (f5) after submit

2008-06-26 Thread Benny Weingarten
I am fronting a similar problem. My users don't refresh, they go back and forward using the browser's back and forward buttons. In my wicket application, I have a FeedbackPanel in my page that displays error or success, depending on whether the form submitted successfully or not. My Form is a

Panel switching and back button

2008-06-26 Thread Cristi Manole
Hello, I am implementing navigation through my application by switching panels. When the user presses the back button, I'd like to show the previously displayed panel. Is this possible? Thanks, Cristi Manole

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread cretzel
Thanks for the immediate replies. Seems that, when using that pattern, one really always has to be aware of the fact that changes are made directly to persistent instances. Otherwise it could easily happen to get inconsistent data into the DB. Michael Sparer wrote: I'd say either enable

Re: PackagedTextTemplate does not load resource from application resource stream locator? - BUG??

2008-06-26 Thread Erik van Oosten
Hi Ritz, You'd better just open a Jira issue if you want a dev to look at this. Regards, Erik. Ritz123 wrote: I did some investigation and seems like there is a bug. PackagedTextTemplate @line:92 is creating a new ResourceStreamLocator() instead of using the one from the application.

Column with Link/Button in a treetable

2008-06-26 Thread ulrik
Hello! I am building a simple application with a EditableTreeTable (http://www.wicketstuff.org/wicket13/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.tree.EditableTreeTablePage) Here is how I create the columns for the table: IColumn columns[] = new IColumn[] {

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
Yes, thats true. It's a thing to watch out for.. Someone suggested that you could use maps to contain your temporary variables in (a lot easier than having duplicate classes), and you can use that as well in compound models etc.. cretzel wrote: Thanks for the immediate replies. Seems that,

How to add nodes to a tree using Ajax

2008-06-26 Thread Kai Schubert-Altmann
Hi, how can I add nodes to a wicket tree using a AjaxLink? I tried to add a node to the SimpleTree of this example: http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1 with this code: add(new AjaxLink(addNode) { public void onClick(AjaxRequestTarget

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread James Carman
Are you positive that hibernate will write this data to the session? The default flush mode of Spring's OpenSessionInViewFilter is NEVER:

Re: Panel switching and back button

2008-06-26 Thread Cristi Manole
yes, with Ajax On Thu, Jun 26, 2008 at 2:15 PM, Thomas Mäder [EMAIL PROTECTED] wrote: I would expect that to happen by default. Replacing a panel should create a new page version which should change the Page URL. Are you using AJAX? Thomas On Thu, Jun 26, 2008 at 10:07 AM, Cristi Manole

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
Yeah, I believe it's flushed after requests right? But that's also good enough since validation should have stopped unwanted values from comming in.. He could try to use the wicket Iolite archetype for this, should be simple to see, and Im very sure that he will see that only validated

Re: Panel switching and back button

2008-06-26 Thread Thomas Mäder
Aha, the problem is that ajax does not cause a history entry to be created. I've seen workarounds for this (not with wicket, though) which reload a hidden IFrame each time they make a relevant change. I can't see right now how that helps you in wicket, tough. Thomas On Thu, Jun 26, 2008 at 1:56

Re: Panel switching and back button

2008-06-26 Thread Thomas Mäder
Hmhhh... isn't there a Javascript function which allows to replace the URL of the current page in the history? I'm not sure this would work, but couldn't you try this: 1) replace the panel 2) reload the IFrame 3) now manipulate the browser history to point to the currect URL for the current page

Re: Panel switching and back button

2008-06-26 Thread Cristi Manole
will try that. tks On Thu, Jun 26, 2008 at 4:16 PM, Thomas Mäder [EMAIL PROTECTED] wrote: Hmhhh... isn't there a Javascript function which allows to replace the URL of the current page in the history? I'm not sure this would work, but couldn't you try this: 1) replace the panel 2) reload

Is it okay to use an EmptyPanel for if?

2008-06-26 Thread Sergey Podatelev
Hello, I'm sorry for this maybe stupid question, but is it okay to use an EmptyPanel with an empty template in case I want to do an if and display nothing in some cases and contains of a certain panel in all other cases? I know, this also could be handled by inheritance, but in certain cases an

Wicket elements and character encoding

2008-06-26 Thread David Nedrow
Does each wicket object attempt to set the character encoding for that objects output? I've been trying to track down what is causing GlassFish to generate a number of the following warnings... PWC4011: Unable to set request character encoding to UTF-8 from context /FilterRequest,

Re: Is it okay to use an EmptyPanel for if?

2008-06-26 Thread Sergey Podatelev
Thanks, Jeremy, I've actually completely forgotten about Wasp/Swarm, which actually allow me to chose, whether to display a component automatically and on a deeper level. On Thu, Jun 26, 2008 at 7:05 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: This is an acceptable solution. However, there

Gmap2 problem with Firefox 3.0

2008-06-26 Thread kiot
Hello, i have a problem with gmap2 example application under the Firefox 3.0 . Maps are loaded, but are not shown correctly. I tried the same app in FF2, Opera 9, IE 7 and it works fine. Firebug shown any error so i don't where the problem can be. Is there anybody with the solution? Thanks,

Re: FeedbackPanel and page refresh (f5) after submit

2008-06-26 Thread Igor Vaynberg
this has nothing to do with versioning. when you press the back button in the browser there shouldnt even be a hit to the serverside, the browser simply pulls what it thinks the last page is out of its cache. -igor On Thu, Jun 26, 2008 at 12:36 AM, Benny Weingarten [EMAIL PROTECTED] wrote: I

Re: Column with Link/Button in a treetable

2008-06-26 Thread Igor Vaynberg
see how the select column is created in datatable examples in wicket-examples -igor On Thu, Jun 26, 2008 at 1:56 AM, ulrik [EMAIL PROTECTED] wrote: Hello! I am building a simple application with a EditableTreeTable

Re: redirect page in the constructor

2008-06-26 Thread Igor Vaynberg
if you can find another way to abort creation of a class instance in java feel free to let us know. -igor On Thu, Jun 26, 2008 at 4:29 AM, Eyal Golan [EMAIL PROTECTED] wrote: Igor, That is what we used before. Then I looked on the links above, tried the setResponsePage and found out that it

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread Igor Vaynberg
no, the point of osiv is that you can use the beans you loaded even after the transactions has ended without getting lazyload exceptions. it has nothing to do with writing changes or not having to use dtos. -igor On Thu, Jun 26, 2008 at 1:30 AM, cretzel [EMAIL PROTECTED] wrote: Thanks for the

London-based jWeekend Apache Wicket course, July 12 13th

2008-06-26 Thread Al Maw
Hi folks, Bit of shameless self-promotion here, but it's right on-topic so I hope no one minds... Just a quick heads-up that Cemal and I are running a rather comprehensive Apache Wicket course in a couple of weeks' time, on July 12th and 13th. The course is mature, well proven, and nicely

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread cretzel
you are right. That's the reason of using OSIV, although these two concepts are somewhat related to each other. I mean, when you are not using OSIV, you have to collect all the data you want to display on the presentation tier within a facade, for example. One possiblity is then to

Re: Wicket + iText ?

2008-06-26 Thread nanotech
I am trying to integrate iText on the lines of example provided by John Krasnay below. My question is : 1. While iterating over the list of IColumn .How to I get hold of the column's headers which I had created earlier using...(See TODO::1) final ListIColumn columns = new

RE: Must I settle for bookmarkable pages?

2008-06-26 Thread David Leangen
He he... that goes back to the proxy issue. For what I'm doing, it's important that the single Wicket instance be mounted on /, which means that top pages become inaccessible from outside of the firewall. If you're using Apache to reverse proxy, it's possible to do this by having it

Re: Effect for Ajax

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
Which version of the scriptaculous contrib are you using? And which version of wicket? It looks okay btw... Mathias P.W Nilsson wrote: I'm trying this really simple example on wicket-stuff but nothing happens public class RegisterPage extends RootPage{ public RegisterPage(){

SecureTextField problem

2008-06-26 Thread Sergey Podatelev
Hello, I'm using Wicket-Security-1.3, and can't enable SecureTextFields. The SecureTextField sitting in a panel, which extends SecurePanel, which sits in another secured panel, and all this is on SecureWebPage. The problem is, no matter what I write in my policies.hive file, that textfield won't

wicket-stuff jar files

2008-06-26 Thread jchappelle
I have checked out the entire wicket-stuff project from svn. However, I have not figured out a good way to get the jar files for the individual components. Am I overlooking something? I know there is a pom file in each of the projects but I've never used maven and every time I run mvn compile or

scriptaculus contrib v 1.3

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
I can't figure out why, but I am getting these in my scriptaculous pages (using ff2, safari3 does not complain): unterminated string literal document.write(script id=__onDOMContentLoaded defer src=\n prototype.js (line 3661) Prototype is not defined linear: Prototype.K, effects.js (line 54)

Re: Gmap2 problem with Firefox 3.0

2008-06-26 Thread Sven Meier
Hi, I'm investigation the issue: It seems that Google's css is being screwed up in FF3. When I let Wicket strip all wicket tags *or* assign pixel width (instead of 100%) to the element holding the map, everthing works fine in FF3. Sven kiot schrieb: Hello, i have a problem with gmap2

Re: Effect for Ajax

2008-06-26 Thread Mathias P.W Nilsson
Wicket 1.3.3 wicketstuff-scriptaculous 1.3-SNAPSHOT -- View this message in context: http://www.nabble.com/Effect-for-Ajax-tp18138812p18144246.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Gmap2 problem with Firefox 3.0

2008-06-26 Thread Martin Funk
Sven Meier wrote: Hi, I'm investigation the issue: It seems that Google's css is being screwed up in FF3. When I let Wicket strip all wicket tags *or* assign pixel width (instead of 100%) to the element holding the map, everthing works fine in FF3. btw. Sven, I now can confirm the effect of

Re: wicket-stuff jar files

2008-06-26 Thread Martijn Dashorst
mvn package in the target/ directory you'll find the jar file (it is a temporary artifact, so it is generated there). Alternatively you could download several of the jar files from our snapshot repository: http://wicketstuff.org/maven/repository/ Martijn On Thu, Jun 26, 2008 at 11:03 PM,

Home page accepting IndexedParamUrlCodingStrategy

2008-06-26 Thread Tauren Mills
How do I go about making my HomePage accept index parameters? I want a home page that will accept URLs like: localhost:8080/us/ca/sacramento Instead of having a mount point first, for example /home: localhost:8080/home/us/ca/sacramento I've tried this in my app: getHomePage() { return

[ANNOUNCE] Apache Wicket 1.3.4 is released!

2008-06-26 Thread Martijn Dashorst
The Apache Wicket team is proud to announce the availability of the fourth maintenance release: Apache Wicket 1.3.4. A lot of bugs have been squashed and several improvements implemented. Two noteworthy bugs have been squashed: - cross session leakage due to a dangling thread local in

RE: Home page accepting IndexedParamUrlCodingStrategy

2008-06-26 Thread David Leangen
IIUC, the home page is automatically mounted on the path where you wicket app is located. So, if you put your wicket on /home, then the home page will be mounted on /home. Guess you'll need to put your home page on / to make this work. -Original Message- From: [EMAIL PROTECTED]

Re: Home page accepting IndexedParamUrlCodingStrategy

2008-06-26 Thread Tauren Mills
Thanks for the suggestion, but I'm unclear on how to mount the home page on /. I guess that is the main problem I'm having. Before adding PageParameters to the page, I used this: mountBookmarkablePage(/home, HomePage.class); With that, going to localhost:8080/ would redirect to

Re: Wicket + iText ?

2008-06-26 Thread John Krasnay
If you look closely at my example, I'm not using IColumn from wicket-extensions, but rather my own interface, ReportColumn. ReportColumn defines a couple of methods to address just what you need: IModel getHeadingModel(); Object getCellValue(IModel rowModel); It's not very complex to roll

Re: Checkbox tree component

2008-06-26 Thread vishy_sb
Hey Doug, I am fairly new to wicket. I am trying to use the checkbox tree component and it seems to be working well. However I would like to check or uncheck all the child nodes if the parent node is selected(i.e. if the check box in front of the parent node is checked or unchecked). Kindly let

Re: problem at startup

2008-06-26 Thread Igor Vaynberg
what version are you on? -igor On Thu, Jun 26, 2008 at 12:34 PM, Sergiy Yevtushenko [EMAIL PROTECTED] wrote: Hi, At some point after refreshing wicket sources to latest from repository, I started getting following error at jetty startup: ... java.lang.NoSuchMethodError:

Re: WebResource vs DynamicWebResource character encoding question

2008-06-26 Thread Dreamltf
Oh no... I found when I use the StringResourceStream, it works fine but when I use the StringBufferResourceStream, it still return a wrong length Dreamltf wrote: Thanks Wicket! I found the answer in the Wicket 1.3.4 release notes * [WICKET-1704] -

Re: FeedbackPanel and page refresh (f5) after submit

2008-06-26 Thread Timo Rantalaiho
On Thu, 26 Jun 2008, James Carman wrote: Well, IE actually does refresh the page in certain situations, I've seen. Firefox doesn't have this problem at least in my experience. It depends on the cache settings of the browser and the relevant headers sent by the page. Best wishes, Timo --

wicket AutoComplete

2008-06-26 Thread Umesh Paliwal
HI , I am trying to use the AutoComplete Text field from wicket 1.3.3. This works fine in firefox. But in IE I get an error and the autoCompleteTextField vanishes. Could you please suggest how should I go about it ? Thanks and regards, Umesh Paliwal

New browser window on RedirectRequestTarget(url)

2008-06-26 Thread Karen Schaper
Hello Again, I'm hoping there is a simple solution for this. I can't seem to find the right place to look. Basically this line of code, I'd like to open a new browser window to display it in. getRequestCycle().setRequestTarget(new RedirectRequestTarget( url ) ); Thanks for

Re: Checkbox tree component

2008-06-26 Thread Doug Leeper
It depends. Are you building the entire tree up front or are you building the child nodes dynamically (i.e. when the parent node is selected/expanded)? -- View this message in context: http://www.nabble.com/Checkbox-tree-component-tp13433102p18147561.html Sent from the Wicket - User mailing

Re: Checkbox tree component

2008-06-26 Thread vishy_sb
Well currently I am testing the tree using a model which creates the entire tree up front... however for the final implementation I would be building the child nodes dynamically hence I guess I would be using both of them Thanks for the quick reply Doug Leeper wrote: It

Re: FeedbackPanel and page refresh (f5) after submit

2008-06-26 Thread James Carman
Right, I don't know what the exact settings were, but my IE version automatically did a refresh on a page when FF didn't (this is my vague recollection). I don't typically do a whole lot of tweaking of my browser settings. I'm way too lazy for that. On Thu, Jun 26, 2008 at 10:15 PM, Timo

IResourceFinder vs IResourceStreamLocator

2008-06-26 Thread Ned Collyer
I need to find resources (property resources)... from an external point and fall back to wickets inbuilt property resolution. I'm a little baffled... when stumbling upon: IResourceFinder vs IResourceStreamLocator I'm not sure which interface I should be implementing. I've checked the javadoc

Re: StatelessForm doesn't work with GET method

2008-06-26 Thread Chris Lintz
Is there a patch for this in the 1.3.x branch or something i can override as a fix? I am using 1.3.3. Doug Donohoe wrote: As part of my effort to submit a form to a bookmarkable page, I discovered this bug when trying to uses a stateless form with the GET method of a form. I've

Re: Gmap2 problem with Firefox 3.0

2008-06-26 Thread Ryan Sonnek
On 6/26/08, Martin Funk [EMAIL PROTECTED] wrote: Sven Meier wrote: Hi, I'm investigation the issue: It seems that Google's css is being screwed up in FF3. When I let Wicket strip all wicket tags *or* assign pixel width (instead of 100%) to the element holding the map, everthing works fine

Re: scriptaculus contrib v 1.3

2008-06-26 Thread Ryan Sonnek
That's odd. I run all of my examples in FF2 and have never seen that issue. On 6/26/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I can't figure out why, but I am getting these in my scriptaculous pages (using ff2, safari3 does not complain): unterminated string literal

Re: problem at startup

2008-06-26 Thread Sergiy Yevtushenko
Igor Vaynberg wrote: what version are you on? I've resolved the issue by rolling back IValueMap.java from latest 669997 to previous 660341. Differences between these two versions are following: ... --- IValueMap.java.660341 2008-06-26 23:54:09.0 +0300 +++

Re: Effect for Ajax

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, they match then (its the same I use).. Do you get any javascript errors? I had to package/roll my own header contrib wich scriptacolulus to get it to work... Mathias P.W Nilsson wrote: Wicket 1.3.3 wicketstuff-scriptaculous 1.3-SNAPSHOT -- -Wicket for love Nino Martinez Wael Java

Re: scriptaculus contrib v 1.3

2008-06-26 Thread Nino Saturnino Martinez Vazquez Wael
Yeah it must be some kind of clashing.. However switching to newest version of scriptaculous and prototype fixes the problem and actually improves performance.. Ryan Sonnek wrote: That's odd. I run all of my examples in FF2 and have never seen that issue. On 6/26/08, Nino Saturnino Martinez

Re: problem at startup

2008-06-26 Thread Igor Vaynberg
we removed those methods because they are declared in java.util.map IValueMap extends MapString, Object and map has Object putString,Object so i dont see why it wouldnt find the method... -igor On Thu, Jun 26, 2008 at 10:01 PM, Sergiy Yevtushenko [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: