Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Lec
Hie, Apart from this suggested workaround - moving the API version to 1.3, is there any other temporary way to give a component focus in the AjaxRequestTarget. I realise if I replace the 1.2.6 version with 1.3.0 API, there is alot of changes I need to make in the code and I prefer not t

Re: [Wicket-user] Exception Strategy in 1.3

2007-05-21 Thread Maurice Marrink
As far as i know the wicket session is mandatory in wicket but that does not mean you have to use it to store information. Other then that i see no reason why your proposed strategy should not work. Maurice On 5/22/07, craigdd <[EMAIL PROTECTED]> wrote: > > Basically what I want to do is set the

[Wicket-user] cannot find wicket-fvalidate

2007-05-21 Thread Alex Objelean
I am very curious to analyze the existing wicket-fvalidate project.. but all the reference to it are not valid. Can somebody help me to find it? Thank you! -- View this message in context: http://www.nabble.com/cannot-find-wicket-fvalidate-tf3794524.html#a10732301 Sent from the Wicket - User m

[Wicket-user] The herself kahuku

2007-05-21 Thread Bettye Vincent
HXPN IS GAINING TRACTION! UP ALMOST 10% ON DAY ONE! WATCH IT LIKE A HAWK ON TUES MAY 22! - Company: HARRIS EXPL INC Symbol:HXPN Price: 0.85 (+9%) 3-D Target: 2.50 - WATCH HARRIS EXPLORATIONS GROW BIG! THERE IS MUCH RESOURCES TO BE DISCOVERED! HXPN IS DOING JUST THAT! WATCH IT TUES

Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-21 Thread Ravindra Wankar
Thanks. A few things are unclear to me... 1. How do wrap the link that when clicked opens the div with the palette in it? 2. How can I make this "reusable" so that the div can have something other than the palette? 3. We have the _javascript_ to intelligently place the div close to the link.

Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-21 Thread Igor Vaynberg
yep, thats easy. create a div with an absolute position and put a palette [1] component into it [1] http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.PalettePage -igor On 5/21/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: Go to... http

Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-21 Thread Ravindra Wankar
Go to... http://www.celoxis.com/psa/user.do?bxn=umyhome&p_auth_authenticate=true&p_auth_login=mark&p_auth_password=celoxis1 On this page click the "Pick Columns" link in the top right corner of the "My Projects" table. Thanks Ravi Igor Vaynberg wrote: got a screenshot? dont really understa

Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-21 Thread Igor Vaynberg
got a screenshot? dont really understand what you are describing. maybe something like our palette component in extensions? -igor On 5/21/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: In order to allow users to pick columns they wish to see in a table, we open/close a div layer that has 2 s

Re: [Wicket-user] Multiple item actions in table.

2007-05-21 Thread Igor Vaynberg
here is a start: http://papernapkin.org/pastebin/view/67 -igor On 5/21/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote: When we show a list of items in a table, the first column is a checkbox which allows you to check more than 1 item and then select an action to be performed on them. There i

[Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-21 Thread Ravindra Wankar
In order to allow users to pick columns they wish to see in a table, we open/close a div layer that has 2 selectors to move columns to/from "Available" to "Selected" and a submit/cancel button. We also position this div layer close to the "Pick Columns" link. Is there a component in Wicket I c

[Wicket-user] Multiple item actions in table.

2007-05-21 Thread Ravindra Wankar
When we show a list of items in a table, the first column is a checkbox which allows you to check more than 1 item and then select an action to be performed on them. There is also a check all/uncheck all. How would I do this in Wicket? Thanks Ravi -

Re: [Wicket-user] Exception Strategy in 1.3

2007-05-21 Thread craigdd
Basically what I want to do is set the internal error page to my own internal page, i.e. my login page, and add a message from the a resource bundle, .properties file, that includes an error code that is generated from an internal RuntimeException. Another requirement is that a Session is optiona

Re: [Wicket-user] Add feedback message to internal error page.

2007-05-21 Thread craigdd
What if there is no Session available though? Plus I need to make sure there is a Localizer available for internationalized messages. -Craig Eelco Hillenius wrote: > > I think using a flash message (add direcly to session, e.g. > Session.get().info("hello")) and then an error page with a > fe

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-21 Thread Andrew Berman
I commented out the DefaultServlet that comes with Tomcat and that seems to have resolved the issue (at least I can no longer replicate it on my local machine). I don't know why, but I'm guessing that since my app is mapped to / and tomcat's DefaultServlet is mapped to / it creates a session for

Re: [Wicket-user] Header contribution in ModalWindow

2007-05-21 Thread OHKAWA Tomohisa
Thanks, I'm using wicket-1.3.0-incubating-SNAPSHOT. I opened a bug report and posted the testcase. https://issues.apache.org/jira/browse/WICKET-583 On Mon, 21 May 2007 19:50:58 +0200 "Matej Knopp" <[EMAIL PROTECTED]> wrote: > I don't really see why this shouldn't work. Can you please open a bug

[Wicket-user] Exception Strategy in 1.3

2007-05-21 Thread craigdd
What is the best way to implement your own exception strategy in wicket 1.3? I want to add some added logic to my application when an unexcepted exception occurs. During this added logic I want a handle on the page that is being redirected to, ie the internal error page. Thanks Craig -- View t

Re: [Wicket-user] Updating formComponents on round trip

2007-05-21 Thread kubino
I tried form.clear() also, but it did not do anything. I can see strange behaviour in my example : I put process(); in onselectionChanged method. Now when I start the page, first model is set and selected. Now, when I update the textfield and click the other radio button, screen is refreshed ,

Re: [Wicket-user] Custom Message Resolver

2007-05-21 Thread Scott Sauyet
I wrote: > I see the experimental class WicketMessageTagHandler and note that it's > disabled by default. If I were to mimic this class for my own custom > filter, is there any way I could go about registering it without hacking > into MarkupParser? Or is there some simpler way to do this? Ok

Re: [Wicket-user] relative urls?

2007-05-21 Thread ChuckDeal
Al Maw wrote: > > ChuckDeal wrote: >> Al Maw wrote: >>> What you'd ideally like to be able to do is have a Wicket page which has >>> a in it, and render the JSP in there, yes? >> >> Have you had the chance to write up any of the details of your solution? >> I >> would be interested in seeing

Re: [Wicket-user] Wicket Unit Testing

2007-05-21 Thread Timo Rantalaiho
On Mon, 21 May 2007, Yann Nicolas wrote: > Testcase: testValidLinks(org.yannart.wicket.pages.IndexTest):Caused an > ERROR > javax/servlet/GenericServlet > java.lang.NoClassDefFoundError: javax/servlet/GenericServlet >at org.yannart.wicket.pages.IndexTest.testValidLinks(IndexTest.java >

[Wicket-user] Wicket Unit Testing

2007-05-21 Thread Yann Nicolas
Hello, I have troubles with Wicket Unit Testing. I have built an application on NetBeans with Wicket 1.2.6 and everything works fine but when I try to do some Unit tests with WicketTester it throws always an exception at Runtime: Testcase: testValidLinks(org.yannart.wicket.pages.IndexTest):Ca

Re: [Wicket-user] Header contribution in ModalWindow

2007-05-21 Thread Matej Knopp
I don't really see why this shouldn't work. Can you please open a bug report and provide a reproducable testcase? What wicket version are you using? -Matej On 5/21/07, OHKAWA Tomohisa <[EMAIL PROTECTED]> wrote: > Is it possible to use header contribution on the panel in ModalWindow? > I want to

Re: [Wicket-user] Receive event when user navigates away from current page

2007-05-21 Thread Matej Knopp
Yeah, this will work but only for IE and Firefox. For other browsers (opera, safari) there is no way to get this event i'm affraid. -Matej On 5/21/07, Flavius <[EMAIL PROTECTED]> wrote: > > > Thanks Martijn. > > getBodyContainer().getBodyContainer().add(new AjaxEventBehavior("onunload") > { >

Re: [Wicket-user] Receive event when user navigates away from current page

2007-05-21 Thread Flavius
Thanks Martijn. getBodyContainer().getBodyContainer().add(new AjaxEventBehavior("onunload") { protected void onEvent(AjaxRequestTarget target) { //handle cleanup here } }); This works well, except it doesn't fire when the browser is closed. I'm keepi

Re: [Wicket-user] exception form submit using current wicket (built from trunk)

2007-05-21 Thread Igor Vaynberg
i have also encountered it when accessing a stateless mounted page. al is taking care of it, he said it should be done withing 24 hours. if its not please file a bug. -igor On 5/21/07, Wouter de Vaal <[EMAIL PROTECTED]> wrote: updated this morning (CET) Wouter On 5/21/07, Igor Vaynberg <[EM

Re: [Wicket-user] exception form submit using current wicket (built from trunk)

2007-05-21 Thread Wouter de Vaal
updated this morning (CET) Wouter On 5/21/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > looks like a wicket bug. how old was the trunk code you used? > > -igor > > > > On 5/21/07, Wouter de Vaal <[EMAIL PROTECTED] > wrote: > > > > Hi, > > > > I'm now using the trunk for wicket 1.3 to test a patc

Re: [Wicket-user] Wicket-Kronos-CMS repository locked on startup

2007-05-21 Thread Ted Roeloffzen
It's possible to delete the repository directory. When this is done it should work. best regards, Ted Roeloffzen 2007/5/16, Daniel Stoch <[EMAIL PROTECTED]>: Hi, I want to run a Wicket-Kronos-CMS on Tomcat. When I try to enter a home page I have an error: "WicketMessage: Can't instantiate p

Re: [Wicket-user] ajax update for header

2007-05-21 Thread dx74a19
That was one quick response. Thanks. Now I got the latest wicket-1.3-SNAPSHOT - and it works ok. I'll investigate further if I find something again... igor.vaynberg wrote: > > yes wicket should take care of that for you. if it doesnt file a bug with > a > reproducable test case. > > -igor > >

Re: [Wicket-user] ajax update for header

2007-05-21 Thread Igor Vaynberg
yes wicket should take care of that for you. if it doesnt file a bug with a reproducable test case. -igor On 5/21/07, dx74a19 <[EMAIL PROTECTED]> wrote: Hi all, When I call ajaxRequestTarget.addComponent(theUpdatedComponent), and that component has associated markup, AND it includes Css (via

Re: [Wicket-user] Saving user preferences transparently across login sessions

2007-05-21 Thread Igor Vaynberg
you can use a model: class preferencemodel implements imodel { private final IModel delegate; private final String key; public preferencemodel(string key, imodel delegate) { this.key=key;this.delegate=delegate; } object getobject() { object o=delegate.getobject(); if (o==null)

[Wicket-user] ajax update for header

2007-05-21 Thread dx74a19
Hi all, When I call ajaxRequestTarget.addComponent(theUpdatedComponent), and that component has associated markup, AND it includes Css (via add(.forCss("x")) ... does the ajax request take care of the css (add it to the page's styles somehow, automatique')? Dont know how or why, I found that iss

Re: [Wicket-user] Strange WicketNotSerializableException for NavigatorLabel

2007-05-21 Thread Igor Vaynberg
On 5/21/07, Harald Gruber <[EMAIL PROTECTED]> wrote: i got a WicketNotSerializableException since today. does anybody else have those exceptions? org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.wicket.extensions.markup.html.

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Igor Vaynberg
you do this using javascript, no roundtrip to the server is required. see some "smooth scroll" javascripts on the net. -igor On 5/21/07, Lec <[EMAIL PROTECTED]> wrote: Im trying to figure out a way to make button behave as if it's like a link component upon clicked. I want a button to archie

Re: [Wicket-user] exception form submit using current wicket (built from trunk)

2007-05-21 Thread Igor Vaynberg
looks like a wicket bug. how old was the trunk code you used? -igor On 5/21/07, Wouter de Vaal <[EMAIL PROTECTED]> wrote: Hi, I'm now using the trunk for wicket 1.3 to test a patch, but I get an error on my signin form. Below is the markup: This is the trace. org.apache.wicket.WicketRunt

[Wicket-user] Saving user preferences transparently across login sessions

2007-05-21 Thread Ravindra Wankar
Hello, In our current application, we remember a lot of form parameters, sorting preferences across user sessions by saving them in the database. The implementation is simple and *transparent*; we name these fields (text boxes, select lists, etc.) starting with "saved." and for every request,

Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-05-21 Thread Reinout van Schouwen
Op vrijdag 06-04-2007 om 13:18 uur [tijdzone -0500], schreef Philip Weaver: > I am interested in helping to improve the Quickstart download. I would > be more pleased if the quickstart first presented a generic > quickstart with NetBeans, Idea, and Eclipse as additional setups. The > QuickStart s

[Wicket-user] Recommended way to localize messages with positional parameters?

2007-05-21 Thread Dimitrio
Hi All, I need to display localized messages that use the standard Java approach to message parameterization. What is the best way to achieve that in Wicket by using Wicket's Localizer class? For example, my resource file may look like this: WelcomePage.properties: message=Welcome back

[Wicket-user] Ideas on how to keep backwards compatibility to JSP framework

2007-05-21 Thread Fabian Lange
Hello, I know this is a difficult one. I hope it can be coped somehow and my problem is understandable. We have a JSP based framework. Our value is contained in JSP custom tags. So what our customers did is they created HTML and put in some of our value adding JSP custom tags. What those do is

[Wicket-user] Strange WicketNotSerializableException for NavigatorLabel

2007-05-21 Thread Harald Gruber
hi all, i got a WicketNotSerializableException since today. does anybody else have those exceptions? org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.wicket.extensions.markup.html.repeater.data.table.NavigatorLabel$1 i'm usin

Re: [Wicket-user] Stateless Forms?

2007-05-21 Thread Martijn Dashorst
I think there are two possibilities: - use Wicket 1.3's stateless forms - don't use a Form component, but make the form submit to a bookmarkable url and parse the request parameter. Not sure about the second one, but I think it should work: Notice the absence of wicket:id's in this

[Wicket-user] Stateless Forms?

2007-05-21 Thread Jeremy Thomerson
In our application, I have a global search bar that appears in the navigation bar of all pages (texashuntfish.com). The problem is that if you leave your browser open on a certain page for a long time, as many of our users do, and then the first thing you try to do is perform a search, you get a

[Wicket-user] Recommended way to localize messages with positional parameters?

2007-05-21 Thread Dmitrijs Londarenko
Hi All, I need to display localized messages that use the standard Java approach to message parameteriazation. What is the best way to achieve that in Wicket by using Wicket's Localizer class? For example, my resource file may look like this: WelcomePage.properties: message=Welcome ba

[Wicket-user] AjaxFormComponentUpdatingBehavior issue in wicket-1.3-snapshot

2007-05-21 Thread Alex Objelean
I've notices a strange behavior of the AjaxFormComponentUpdatingBehavior after migration to 1.3... it does not update the backing model object. Am I wrong or there is an issue with the latest snapshot? Thank you! -- View this message in context: http://www.nabble.com/AjaxFormComponentUpdatingBe

Re: [Wicket-user] Receive event when user navigates away from current page

2007-05-21 Thread Martijn Dashorst
body.onunload could be your friend However, don't depend on this behavior to be a failsafe: kill -9 will not trigger the body onunload in the browser, or a power failure on the client side, or a BSOD, or ... Martijn On 5/18/07, Flavius <[EMAIL PROTECTED]> wrote: > > I would like to receive an ev

Re: [Wicket-user] reseting the input in form components

2007-05-21 Thread Martijn Dashorst
Doesn't help? The browser should cache all original values on the client side. Martijn On 5/16/07, j n <[EMAIL PROTECTED]> wrote: > Hi, > > > > I'd like to have a feature in a form to reset the input in the form > components to the original value in the model (thus allowing the user > to "cance

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Johan Compagner
AjaxRequestTarget has an own method now for giving a component focus: http://wicketstuff.org/wicket13doc/org/apache/wicket/ajax/AjaxRequestTarget.html On 5/21/07, Lec <[EMAIL PROTECTED]> wrote: That's what I did, but after clicking, I can't seems to link it to the component i want to

Re: [Wicket-user] wicket stuff GMap: New Exciting Features:)

2007-05-21 Thread Martijn Dashorst
On 5/14/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Just happy to contribute something back, for once:) And we're glad to receive it! Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6

Re: [Wicket-user] Howto override method org.apache.wicket.Application.newCrypt() ?

2007-05-21 Thread Martijn Dashorst
Your cryptClass doesn't seem to have a default constructor (which is what you are trying to invoke). Martijn On 5/19/07, "C. Bergström" <[EMAIL PROTECTED]> wrote: > I'm using an OS which does not ship with JCE installed by default. I've > installed both the Sun JCE (some time ago) and now bouncyc

Re: [Wicket-user] continueToOriginalDestination / RestartResponseAtInterceptPageException with page parameters

2007-05-21 Thread Wouter de Vaal
To summarize my problem: Original call: /admin/editquote?id=13 Redirect url after login: /admin/editquote I did some more debugging and it went down like this: PageMap: interceptContinuationURL = cycle.getRequest().getPath(); calls ServletWebRequest public String getPath() {

[Wicket-user] exception form submit using current wicket (built from trunk)

2007-05-21 Thread Wouter de Vaal
Hi, I'm now using the trunk for wicket 1.3 to test a patch, but I get an error on my signin form. Below is the markup: This is the trace. org.apache.wicket.WicketRuntimeException: unable to find component with path signInPanel:signInForm::IFormSubmitListener on page [Page class = nl.huibeo.nie

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Lec
That's what I did, but after clicking, I can't seems to link it to the component i want to add( new AjaxSubmitButton("sendemail", this) { protected void onSubmit(AjaxRequestTarget target, Form form)

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Timo Rantalaiho
On Mon, 21 May 2007, Lec wrote: > component. But the thing now is that, button doesn't provide any method to > set an anchor. How do we do that? Override Button.onSubmit() - Timo -- Timo Rantalaiho +358-45-6709709 Reaktor Innovations Oyhttp://www.ri.fi/ > ---

Re: [Wicket-user] continueToOriginalDestination / RestartResponseAtInterceptPageException with page parameters

2007-05-21 Thread Johan Compagner
what does the getURL string return of a normal http request? thats also without the query string? What call do we need to have to really have the complete url? johan On 5/19/07, Wouter de Vaal <[EMAIL PROTECTED]> wrote: Ok sure, but I need some help. Usually the part of the request that is

Re: [Wicket-user] Process Page After Redirect

2007-05-21 Thread Johan Compagner
what is "process the page" what would you do then? johan On 5/17/07, Joe Toth <[EMAIL PROTECTED]> wrote: I have a Template class that each page extends. In the template it does... *boolean* isSecure = ((WebRequest) WebRequestCycle.*get*().getRequest*()). *getHttpServletRequest().isSecure();

[Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Lec
Im trying to figure out a way to make button behave as if it's like a link component upon clicked. I want a button to archieve the same behaviour as link, and upon clicked, a particular html region will be focused or displayed, just like the same behaviour when you setAnchor in link component. But

Re: [Wicket-user] Check the mime type of uploaded file and its binary content

2007-05-21 Thread Lec
Thanks Johan Lec wrote: > > How to check the binary contents of the uploaded file. For example, to > prevent the fake file being uploaded, because I really want to check if > the uploaded file is really the pdf file or image file. How can you do it? > I realise checking the mime type of the fil

Re: [Wicket-user] Common table layout for all tables

2007-05-21 Thread Igor Vaynberg
something like this: class panelwithanychild extends panel implements icomponentresolver { public panelwithanychild(string id) { super(id); } public boolean resolve(final MarkupContainer container, final MarkupStream markupStream, final ComponentTag tag) { if

Re: [Wicket-user] Common table layout for all tables

2007-05-21 Thread Ravindra Wankar
I think I'm going to have to use Panel instead of Border because it is not just a decoration but placement of multiple components. How do I write a ThreePanelLayout which lays out any 3 panels with the constructor ThreePanelLayout(Panel a, Panel b, Panel c). For obvious reasons I do not want

Re: [Wicket-user] Updating formComponents on round trip

2007-05-21 Thread Johan Compagner
you need to clear the input of the fields: Form.clearInput() On 5/19/07, kubino <[EMAIL PROTECTED]> wrote: Yes Igor, i tried, right in this example , I have added getForm().process(); , but nothing happend. :-( Kubino igor.vaynberg wrote: > > have you tried: > > onselectionchanged() { f