Re: Ajax update works from second time on

2008-04-01 Thread Johan Compagner
So the serverside is not called the first time at all? (you have debugged that?) Then it seems that it is a javascript issue. Look in the browser why it isnt called. On 3/31/08, Thomas Kappler [EMAIL PROTECTED] wrote: Hi, I'm seeing a strange behavior on one of my pages. Using

Re: ListView with a Set instead of a List

2008-04-01 Thread Johan Compagner
1 because you dont have that detacheable list in the listview?? You are just giving a ArrayList directly to the listview 2 i dont see exactly where you call getModelObject on in onsubmit but i guess thats on page? Then it is loaded yes, this has nothing to do with the listview model. On 3/28/08,

export excel file via an OutputStream

2008-04-01 Thread dvd
Hello: I am trying to export dynamically generated excel file. The generator would send the file.xls to an OutputStream. In wicket, I am trying to use example as below but  how can I connect the OutputStream to the inputstream ins.  Pipedoutputstream would block. Using a separate thread is not

Re: export excel file via an OutputStream

2008-04-01 Thread Igor Vaynberg
see Streams.copy() in wicket utils package -igor On Tue, Apr 1, 2008 at 12:31 AM, [EMAIL PROTECTED] wrote: Hello: I am trying to export dynamically generated excel file. The generator would send the file.xls to an OutputStream. In wicket, I am trying to use example as below but how

Re: export excel file via an OutputStream

2008-04-01 Thread dvd
This does not apply as it copies input to output. My issue is that in OnClick() I call excelGen(OutputStream) to produce the bytes on the fly. but the ResourceStream needs InputStream that wicket would read data to send as response. My take is that I need to get a handle of the reponse

Re: export excel file via an OutputStream

2008-04-01 Thread Igor Vaynberg
is it really that difficult to do some legwork? the hint in downloadlink is to do getrequestcycle().setrequesttarget(new irequesttarget() {..}); irequesttarget has a respond(requestcycle cycle); cycle in turn has a cycle.getresponse().getoutputstream(). -igor On Tue, Apr 1, 2008 at 12:59 AM,

Re: export excel file via an OutputStream

2008-04-01 Thread dvd
In a raw servlet programming, it is trivial, just get response outputstream, set headers and pass it to the excelGen (as a poorman's way, close the connection after done) Wicket got to have a more structured api for this common task. This one (even with model args) falls to the same category of

Re: convert open-close to open

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
Yeah I saw the thread on the dev list.. Gerolf Seitz wrote: well, not wrt the blablabla thing, but it does change open-close tags to open-body-close. On Mon, Mar 31, 2008 at 9:12 PM, Johan Compagner [EMAIL PROTECTED] wrote: No, wicket doesnt alter html like that On 3/31/08, Nino

Re: export excel file via an OutputStream

2008-04-01 Thread dvd
FY. Once you reach getResponse.getOutputStream, you are back to square one with servlet programming. wtf -igor On Tue, Apr 1, 2008 at 1:12 AM, [EMAIL PROTECTED] wrote: In a raw servlet programming, it is trivial, just get response outputstream, set headers and pass it to the excelGen

Re: Ajax update works from second time on

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
Yeah, and if you dont know it. Firebug is great for that.. http://www.getfirebug.com/ Johan Compagner wrote: So the serverside is not called the first time at all? (you have debugged that?) Then it seems that it is a javascript issue. Look in the browser why it isnt called. On 3/31/08, Thomas

Re: export excel file via an OutputStream

2008-04-01 Thread Mats Norén
What's the problem with that? You want an OutputStream to send to your excelGen and Igor showed you how to obtain one...what else do you need? /M On Tue, Apr 1, 2008 at 12:06 PM, [EMAIL PROTECTED] wrote: FY. Once you reach getResponse.getOutputStream, you are back to square one with

Multiple TreeTables: wrong table expanded

2008-04-01 Thread Jaap Bos
On my ModalWindow I have a number of (about 6) TreeTables, all using Ajax, generated in a ListView. These trees have some equal nodes, but are not exact the same. When I expand the roots of one of these, everything is fine. However, if I want to Expand one of the subnodes of the root,

Re: consume rss feeds in wicket

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
Great! I'll look into it:) Ryan Sonnek wrote: I just published a new wicketstuff-rome component that will allow users to consume rss feeds in wicket. This is something that I've been meaning to do for a *long* time, and finally got around to it.

Re: London Wicket Event - Wednesday evening at Google

2008-04-01 Thread jweekend
Thanks for all the emails about the http://jweekend.com/dev/LWUGReg/ site misbehaving. It has been restarted and at your service. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Al Maw wrote: Further to this, we'd really like to hear some user stories about what you're up

Dynamic Creation of a button using style

2008-04-01 Thread Eyal Golan
Hi, After many tries and questions (also in this user group) I manged to create a nice button that I want to share. First, I used the example from: http://www.hedgerwow.com/360/dhtml/css-round-button/demo.php?foo=we%2C As you can see in this link, the button markup is surrounded with span . That

Re: export excel file via an OutputStream

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
I guess what he wanted where something like response.writeArray or like? Mats Norén wrote: What's the problem with that? You want an OutputStream to send to your excelGen and Igor showed you how to obtain one...what else do you need? /M On Tue, Apr 1, 2008 at 12:06 PM, [EMAIL PROTECTED]

Re: Bug on modal window

2008-04-01 Thread Marco Aurélio Silva
My point is: It doesn't work if the span is inside the p. And I can't put a div (with div works) because the div has a line break. On Mon, Mar 31, 2008 at 5:57 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: What is your point? it works != it is good/legal/standards compliant/works

Re: Bug on modal window

2008-04-01 Thread Wouter Huijnink
Marco Aurélio Silva wrote: My point is: It doesn't work if the span is inside the p. And I can't put a div (with div works) because the div has a line break. then add a class attribute to the div in order to exclude it from having a line break in your CSS -- Wouter Huijnink Func.

Re: export excel file via an OutputStream

2008-04-01 Thread James Carman
Well, if you're using WicketFilter, then you can just write your own servlet. If WicketFilter doesn't think it's responsible for the request, it'll let it flow through. So, you could just code this using Servlets anyway. Wouldn't extending WebResource and using ResourceLink be the way to do

Re: export excel file via an OutputStream

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
James Carman wrote: Well, if you're using WicketFilter, then you can just write your own servlet. If WicketFilter doesn't think it's responsible for the request, it'll let it flow through. So, you could just code this using Servlets anyway. I think the point were that he wanted something

Re: consume rss feeds in wicket

2008-04-01 Thread Ryan Sonnek
On Tue, Apr 1, 2008 at 8:23 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: works fine for me, only problem are that something cant handle if you have æ ø å in your domain... You then have to use the alternate domain qualifiyer That sounds like a ROME specific issue?

Re: Changing Wickets default styles

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
Eeek TDC(yousee), which robs me of a montly fee for television! This might not be the rigth forum to ask CSS questions and is sort of offtopic. But usually when something works in IE and doesnt in firefox it means that IE breaks standard compability, and due to some bug in IE works anyway. My

Re: Changing Wickets default styles

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
Eeek TDC(yousee), which robs me of a montly fee for television! This might not be the rigth forum to ask CSS questions and is sort of offtopic. But usually when something works in IE and doesnt in firefox it means that IE breaks standard compability, and due to some bug in IE works anyway. My

Re: OOM in PermGen after several deploy/undeploy

2008-04-01 Thread Martijn Dashorst
http://www.google.com/search?q=permgen+outofmemory+tomcat On 4/1/08, Piller Sébastien [EMAIL PROTECTED] wrote: Hello everybody, I found some problem with my app, when I deploy it/undeploy it several times under Tomcat (5.5) (Unix and Windows). I copied my app war file in the webapp dir,

Re: consume rss feeds in wicket

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
Yeah that sounds possible.. Ryan Sonnek wrote: On Tue, Apr 1, 2008 at 8:23 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: works fine for me, only problem are that something cant handle if you have æ ø å in your domain... You then have to use the alternate domain

Re: Changing Wickets default styles

2008-04-01 Thread Steen Larsen
I'm also developing mainly on firefox, and have tried clearing the cache an all, but no luck. My colleague tried it out with the same result and he had never downloaded the new stylesheet before. The html is the standard feedback panel: div wicket:id=feedbackwicket:panel ul

Re: export excel file via an OutputStream

2008-04-01 Thread Peter Ertl
use AbstractResourceStreamWriter Wicket got to have a more structured api for this common task. usually it's not wicket but you when something is not working the way you expect it Am 01.04.2008 um 09:31 schrieb [EMAIL PROTECTED]: Hello: I am trying to export dynamically generated

Re: Bug on modal window

2008-04-01 Thread Matej Knopp
You can use display:inline for the div. -Matej On Tue, Apr 1, 2008 at 2:36 PM, Wouter Huijnink [EMAIL PROTECTED] wrote: Marco Aurélio Silva wrote: My point is: It doesn't work if the span is inside the p. And I can't put a div (with div works) because the div has a line break.

Re: OOM in PermGen after several deploy/undeploy

2008-04-01 Thread godin
a common solution is to use this vm options -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled but be aware that this options are avaible in only recent jdk http://blogs.sun.com/watt/resource/jvm-options-list.html regards marc Piller Sébastien a écrit : Thanks... but it's

Re: OOM in PermGen after several deploy/undeploy

2008-04-01 Thread Martijn Dashorst
There is a solution: not to deploy your application more than 2-3 times... Martijn On 4/1/08, Piller Sébastien [EMAIL PROTECTED] wrote: Thanks... but it's impossible to find a clear solution to this problem over the internet... Each things I try fails miserably... Nobody can provide

Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Andrew Broderick
Hi, I have looked around at several examples of using DropDownChoice. I see it is a very flexible component, with models, IChoiceRenderers and so on. But, I just want to pass it simple name/value pairs to use, with a minimum of fuss. Surely there must be an easy way to do this, since this is

RE: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Andrew Broderick
I am using Wicket 1.3. Has Wicket Extensions been updated to 1.3? I got the latest Extensions, but seem to be getting errors. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Levy Sent: Tuesday, April 01, 2008 11:17 AM To:

Re: Changing Wickets default styles

2008-04-01 Thread Matthew Young
and is indented as in the original I think some browser use padding, others use margin to shift li. You need to set both padding-left and margin-left to have them look the same on all browsers. On Tue, Apr 1, 2008 at 6:33 AM, Steen Larsen [EMAIL PROTECTED] wrote: Hi, I have made a

Accessing non-Wicket JavaScript variables inside Wicket

2008-04-01 Thread Michael Mehrle
I wrote a file uploader that works inside a Wicket modal window based on jQuery. Here's the original PHP based framework I based my work on: http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ It's up and running (took some tweaking to say the least), but I am still facing one hurdle: The file

Re: Question on page inheritance...

2008-04-01 Thread Maurice Marrink
Creating a BasePage and have every other page extend from it it the preferred way. Your BasePage can but is not required to provide a base markup. See http://wicket.apache.org/examplemarkupinheritance.html Maurice On Tue, Apr 1, 2008 at 7:28 PM, Bruce Petro [EMAIL PROTECTED] wrote: I'm just

Multiple Wicket Servlets in same web application

2008-04-01 Thread Niels Bo
Hi We have two WicketServlets/Applications in the same web application(war) and that has worked fine until we deployed on the big production server (Weblogic 10). What we see now is that the homepage from application A is sometime showing up as response to request on urls that belong to the

Re: Question on page inheritance...

2008-04-01 Thread Igor Vaynberg
such a check belongs in ISecurityStrategy and not really in your page hierarchy. see wicket-auth-roles for examples. -igor On Tue, Apr 1, 2008 at 10:28 AM, Bruce Petro [EMAIL PROTECTED] wrote: I'm just getting started in wicket, so forgive me if this is a too-dumb question... I know

Re: ListView with a Set instead of a List

2008-04-01 Thread reikje
1 True, but why is it important that is has to be the same collection? I only care about changes being propagated to the ListItems, I don't care if they are contained in a Set within the Model or in a List given to the ListView. In other words, if you are saying, that you have to give the same

Re: Question on page inheritance...

2008-04-01 Thread Per Newgro
Can you check the mailing-list by search the following topic Where to apply a general security policy - there much strategies are explained (or links can be found). Cheers Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Andrew Broderick
Wicket 1.3 does not have a class called SelectOption. I downloade Wicket Extension to obtain it, but found it to be incompatible with Wicket 1.3. -Andrew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Levy Sent: Tuesday, April 01, 2008 12:26 PM

Re: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Ryan Gravener
set the choicerenderer setChoiceRenderer(new IChoiceRenderer() { public Object getDisplayValue(Object object) { return ((MyEnum) object).getTime(); } public String getIdValue(Object object, int index) {

Re: Multiple Wicket Servlets in same web application

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
I guess you have tried using something like Jmeter to simulate a stressing environment? It could be a lot of stuff that clutters it up, like database acesss etc... How does your filter mapping look like? -regards Nino Niels Bo wrote: Hi We have two WicketServlets/Applications in the same

Re: Accessing non-Wicket JavaScript variables inside Wicket

2008-04-01 Thread Alastair Maw
Your questions are rather too specific to be of much use without the code itself. How are you making the call back to Wicket? Are you writing your own AjaxBehavior? If so, AbstractDefaultAjaxBehavior, which most of the Wicket AJAX functionality extends, uses getCallbackScript(boolean) to

RE: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Andrew Broderick
Since it wasn't there, I extended DropDownChoice to encapsulate the whole name/value pair thing: package ...helper.ui; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.wicket.markup.html.form.ChoiceRenderer; import

Calling a JS function from onNodeLinkClicked in a Tree?

2008-04-01 Thread webchick
Hi all, I'm using a Tree for navigation and I have a need to load an external page in a new window when a link is clicked in the tree. I was hoping to put something in the onNodeLinkClicked function for my tree that could create/call a JS function to load the URL in a new window as required.

Re: ListView with a Set instead of a List

2008-04-01 Thread Al Maw
// Simply: IModel listModel = new AbstractReadOnlyModel() { public Object getObject() { return new ArrayList(mySet); } }; // Or if you want to wrap a property model (not that this is as nice): IModel listModel = new PropertyModel(bean, mySetHere) { public Object getObject() {

Wizard seems to cache pages even on model change

2008-04-01 Thread Dan Kaplan
Hello, Here is my scenario. I have a 2 page Wizard. The first page asks you to type in the primary key of a table. If that row already exists in the table, the second page gets loaded with the rest of that row's data. So, in summary, the first page of the wizard should be able to populate the

RE: Question on page inheritance...

2008-04-01 Thread Bruce Petro
Thanks to the replies I received... yeah I didn't say it well, but I assumed the user would be kept in the session and that seems to fit everyone's reply. On top of that, I think I'm hearing I can use inheritance and have every page utilize ISecurityStrategy to then control access to the page.

Re: Question on page inheritance...

2008-04-01 Thread Nino Saturnino Martinez Vazquez Wael
It's your webapplication that takes the ISecurityStrategy.. public class ZeuzGroupApplication extends WebApplication { private SpringComponentInjector springComponentInjector; @Override protected void init() { super.init(); //

Re: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Alastair Maw
Yikes. You're converting your domain data to some crazy type (NameValuePair) just so you can display it differently. Not good. MapString, String choices = new TreeMapString, String(); choices.put(foo, Foo display value); add(new DropDownChoice(foo, model, choices, new IChoiceRenderer() {

RE: continueToOriginalDestination resolves to wrong URL

2008-04-01 Thread Zheng, Xiahong
-Original Message- From: Zheng, Xiahong Sent: Tuesday, April 01, 2008 12:50 PM To: 'users@wicket.apache.org' Subject: RE: continueToOriginalDestination resolves to wrong URL Yes, I was able to reproduce the bug with your example in eclipse 3.3 and Tomcat 6.0.14 environment (WTP2.0).

Re: Changing Wickets default styles

2008-04-01 Thread Al Maw
If you are having CSS issues in firefox, use firebug to debug it. It will tell you which rules are being overridden and by what. You might be including the CSS in the wrong order on the page, for example. Regards, Al On Tue, Apr 1, 2008 at 6:06 PM, Matthew Young [EMAIL PROTECTED] wrote: and

Re: continueToOriginalDestination resolves to wrong URL

2008-04-01 Thread Al Maw
My quickstart is not the quickstart you were looking at. See the one called WICKET-1205.zip Regardless, I have worked out what the underlying cause is. You can fix this with a workaround: remove the index.html or index.jsp page from your web context root directory, as noted on the bug. Regards,

RE: Wizard seems to cache pages even on model change

2008-04-01 Thread Dan Kaplan
The most important part of this is probably HOW I update the model. I am using AJAX. -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 11:07 AM To: users@wicket.apache.org Subject: Wizard seems to cache pages even on model change Hello, Here

Re: OOM in PermGen after several deploy/undeploy

2008-04-01 Thread Al Maw
The following two blog entries are very useful in understanding and debugging this issue: http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded We think we've fixed the instances in Wicket where this is a problem, but

Re: Calling a JS function from onNodeLinkClicked in a Tree?

2008-04-01 Thread Al Maw
This isn't as easy to tweak as it could be, I'm afraid. :-( You're better off using target on the href than doing this with JavaScript, I'd have thought. That said, most people think that choosing to open a new window or not is pretty evil - the user has the option to do this if they want to, it

Re: export excel file via an OutputStream

2008-04-01 Thread Al Maw
I think he makes a valid point, personally. People do want to do this sort of thing quite frequently. It wouldn't kill us to implement an OutputStreamLink that looked like this: add(new StreamingLink(link) { public String getFileName() { return download.xls; } public String

Re: Question on page inheritance...

2008-04-01 Thread Maurice Marrink
Or Session. Session.getAuthorizationStrategy(). Maurice On Tue, Apr 1, 2008 at 8:51 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: It's your webapplication that takes the ISecurityStrategy.. public class ZeuzGroupApplication extends WebApplication { private

Re: OOM in PermGen after several deploy/undeploy

2008-04-01 Thread Johan Compagner
cool thx for that list! On Tue, Apr 1, 2008 at 5:50 PM, godin [EMAIL PROTECTED] wrote: a common solution is to use this vm options -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled but be aware that this options are avaible in only recent jdk

RequestCycle exception explanation

2008-04-01 Thread Jeremy Levy
I've started seeing exceptions like the onces below more frequently can someone explain what is actually going on? We've been making a lot of changes, but I can't say exactly what may have set this off... 2008-04-01 16:07:12,514 ERROR Wap [RequestCycle] : component myLink not found on page

Validate HTML generated from getMarkupResourceStream()

2008-04-01 Thread hjuturu
Hi All I use a class which implements IMarkupResourceStreamProvider, IMarkupCacheKeyProvider to generated HTML dynamically and sent it to wicket as a IResourceStream. //code snippet public IResourceStream getMarkupResourceStream(MarkupContainer container, Class containerClass){

Advance RadioChoice Examples

2008-04-01 Thread Shelli D. Orton
I'm trying to figure out how to have a RadioChoice's display value be different from the option value. For example, I want to display: (x) Display Options on Single Page ( ) Display Options on Mulitple Pages But I want the value saved to the model to be either single or multiple. I'm

refreshing page

2008-04-01 Thread Andrew Broderick
Hi, I'm sure this is a basic newbie lack of knowledge showing here, but when I save some data to my DB from my wicket page (adding an object), my master (list) page is not updated. Okay, I thought, maybe I just need to modify the model at the same time as saving it. So I did that, and the new

Re: Advance RadioChoice Examples

2008-04-01 Thread Al Maw
You have to use the constructor that takes an IChoiceRenderer, same as any other AbstractChoice component like a DropDownChoice. You should be able to figure the rest out from the JavaDocs and examples for that. Regards, Al On Tue, Apr 1, 2008 at 9:29 PM, Shelli D. Orton [EMAIL PROTECTED]

Re: refreshing page

2008-04-01 Thread Al Maw
Really need some code to see exactly what you're doing wrong here. Wicket uses models to bind your view components to your actual data. Assuming you're using a ListView, you'll need something like: IModel model = new AbstractReadOnlyModel() { public Object getObject() { // Database

Re: refreshing page

2008-04-01 Thread Maurice Marrink
It really does not hurt to google before asking you know :( http://www.theserverside.com/tt/articles/content/IntroducingApacheWicket/article.html Maurice On Tue, Apr 1, 2008 at 10:39 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I'm sure this is a basic newbie lack of knowledge showing

IllegalStateException closing my modal

2008-04-01 Thread Michael Mehrle
When closing my modal (modal.close()) I get this: IllegalStateException: ServletRequest does not contain multipart content Multipart is not set on my form, so I'm not sure why this is happening... Any ideas? I'm kind of stuck on this one. Michael

Re: RequestCycle exception explanation

2008-04-01 Thread Igor Vaynberg
On Tue, Apr 1, 2008 at 1:51 PM, Al Maw [EMAIL PROTECTED] wrote: OK, but the reason is always the same - the user will be trying to click on something that doesn't exist any more. I can't quite remember how our page versioning works for this (Eelco? Igor?) but it might be possible that

Re: RequestCycle exception explanation

2008-04-01 Thread Al Maw
OK, but the reason is always the same - the user will be trying to click on something that doesn't exist any more. I can't quite remember how our page versioning works for this (Eelco? Igor?) but it might be possible that users are clicking the same link twice and that the first click removes the

StackOverflowError using 1.3.2

2008-04-01 Thread Mark Lichtenberg
Hi, We've been experiencing StackOverflowErrors when our application is under a load of around 4 sessions, mostly clicks to load pages without necessarily waiting for the previous click to finish. I saw this was addressed with jira issue 1365, and was part of 1.3.2, which we are using.

Re: StackOverflowError using 1.3.2

2008-04-01 Thread Johan Compagner
do you have a unit test or quickstart for this? johan On Tue, Apr 1, 2008 at 10:57 PM, Mark Lichtenberg [EMAIL PROTECTED] wrote: Hi, We've been experiencing StackOverflowErrors when our application is under a load of around 4 sessions, mostly clicks to load pages without necessarily

Make a Ajax button have a confirm dialog

2008-04-01 Thread Pinger
I have an ajaxbutton I make like this AjaxButton newPositionButton = new AjaxButton(addPosition) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { //Do Stuff } }; I want to get a Yes/No confirm dialog,

RE: refreshing page

2008-04-01 Thread Andrew Broderick
All I want to know is how you tell a page that its data is dirty and it should reload. Thanks -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 3:49 PM To: users@wicket.apache.org Subject: Re: refreshing page It really does not hurt to

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread Maurice Marrink
Override getAjaxCallDecorator and in the returned IAjaxCallDecorator#decorateScript you can return your custom javascript. Maurice On Tue, Apr 1, 2008 at 11:17 PM, Pinger [EMAIL PROTECTED] wrote: I have an ajaxbutton I make like this AjaxButton newPositionButton = new

Re: refreshing page

2008-04-01 Thread Scott Swank
My guess is that you are using a static model like new Model(someDomainObject) when you need to use a dynamic model. See: http://cwiki.apache.org/WICKET/working-with-wicket-models.html - Scott On Tue, Apr 1, 2008 at 2:25 PM, Andrew Broderick [EMAIL PROTECTED] wrote: All I want to know is how

Re: refreshing page

2008-04-01 Thread Igor Vaynberg
in soviet wicket the page calls you! yes, read the models link given to you below. -igor On Tue, Apr 1, 2008 at 2:25 PM, Andrew Broderick [EMAIL PROTECTED] wrote: All I want to know is how you tell a page that its data is dirty and it should reload. Thanks -Original Message-

Re: OOM in PermGen after several deploy/undeploy

2008-04-01 Thread djo.mos
Hello, Martijn Dashorst wrote: There is a solution: not to deploy your application more than 2-3 times... Martijn Actually, there is a less radical solution, which is not to use a Sun JVM, as the PermGenSpace is a specific implementation limitation of these. IcedTea for example do not

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread djo.mos
Hi, Pinger wrote: I want to get a Yes/No confirm dialog, so I only Do Stuff if they say yes.. What kind of confirmation ? Javascript ? Html ? for the first, you could use this ajaxButton.add(new SimpleAttributeModifier(onclick, return confirm('Delete ?');)); Cheers -- View this message

Re: RequestCycle exception explanation

2008-04-01 Thread Jeremy Levy
I've tried to reproduce this for the last several hours with no luck. It reports that it's happening for many different components from many different pages, nor is there any discernible pattern to the pages or the components the excpetion mentions. This one was interesting. This was the page

Re: RequestCycle exception explanation

2008-04-01 Thread Igor Vaynberg
does it only happen to ILinkListener urls? -igor On Tue, Apr 1, 2008 at 4:15 PM, Jeremy Levy [EMAIL PROTECTED] wrote: I've tried to reproduce this for the last several hours with no luck. It reports that it's happening for many different components from many different pages, nor is there

Re: RequestCycle exception explanation

2008-04-01 Thread Jeremy Levy
Yes, ILinkListener in all of the exceptions. The deserialize exception seems to be unrelated.,. I think it has to do with Yahoo crawling us at the time and requesting expired pages... Jeremy On Tue, Apr 1, 2008 at 8:14 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: does it only happen to

Re: RequestCycle exception explanation

2008-04-01 Thread Igor Vaynberg
can you paste a full stack trace please -igor On Tue, Apr 1, 2008 at 5:21 PM, Jeremy Levy [EMAIL PROTECTED] wrote: Yes, ILinkListener in all of the exceptions. The deserialize exception seems to be unrelated.,. I think it has to do with Yahoo crawling us at the time and requesting expired

Re: RequestCycle exception explanation

2008-04-01 Thread Jeremy Levy
2008-04-01 19:53:27,944 ERROR Wap [ajp-0.0.0.0-8009-1] [RequestCycle] : component previous:previousPage not found on page com.mdate.wap.pages.NoAuthHome[id = 614], listener interface = [RequestListenerInterface name=ILinkListener, method=public abstract void

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread Pinger
That is all well and good, but it does not Do Stuff now after i hit ok djo.mos wrote: Hi, Pinger wrote: I want to get a Yes/No confirm dialog, so I only Do Stuff if they say yes.. What kind of confirmation ? Javascript ? Html ? for the first, you could use this

How to display a swing component/applet in wicket?

2008-04-01 Thread jianfei
I am developing an webapp that has to use the JTreeMap (http://jtreemap.sourceforge.net/) library. It provides either a swing component or an applet for the treemap. I have searched some of the old threads and it seems like wicket doesn't really work well with swing. So I wonder is there any way

unclosed img src= leading to trouble

2008-04-01 Thread atul singh
I by mistake had this tag *img src=* left in my markup. I was experiencing a lot of other issues because of this, and I don't know why. The problems were the following:: 1. An ajax link ,when clicked, not found on its page org.apache.wicket.WicketRuntimeException: component somewicketpath:link not

How to capture not BookmarkablePage

2008-04-01 Thread freak182
Hello, 1. My problem is how to capture not bookmarkable page? (I already see the wicket-example on how to capture bookmarkable page) 2. All data i put in the textfields values/radio selected/checkboxes selected/list will be captured also? (of course in a form of html) 3. For example if i have a

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread freak182
You could add a behavior... e.g a confirmbehavior for your needs :) Pinger wrote: That is all well and good, but it does not Do Stuff now after i hit ok djo.mos wrote: Hi, Pinger wrote: I want to get a Yes/No confirm dialog, so I only Do Stuff if they say yes.. What

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread Pinger
That would be sweet.. how do I do that? Sorry I saw one example for that for the button but I could not get that could not get it working for the ajax button. If I can get this to work, I was going to see if the developers want it for the release; I think it is a very common behavior that many

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread freak182
You need to extend AbstractBehavior of course and add some javascript to do the trick...you can use javascript already available or you can customise to yuorself..im using jquery..you can google it :) Pinger wrote: That would be sweet.. how do I do that? Sorry I saw one example for that

Re: How to display a swing component/applet in wicket?

2008-04-01 Thread Igor Vaynberg
by work with swing what do you mean exactly? wicket is a web framework, swing is a desktop framework, not really meant to work together... -igor On Tue, Apr 1, 2008 at 5:52 PM, jianfei [EMAIL PROTECTED] wrote: I am developing an webapp that has to use the JTreeMap

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread Pinger
I will look. However, if you could post a code example, you would be my hero. :) freak182 wrote: You need to extend AbstractBehavior of course and add some javascript to do the trick...you can use javascript already available or you can customise to yuorself..im using jquery..you can

Re: unclosed img src= leading to trouble

2008-04-01 Thread Igor Vaynberg
img src= will issue another request to the server to the same url, which will most likely bump up your version and render ajax stuff useless because versions wont match. its in the faqs and gotchas. -igor On Tue, Apr 1, 2008 at 6:07 PM, atul singh [EMAIL PROTECTED] wrote: I by mistake had this

Re: How to capture not BookmarkablePage

2008-04-01 Thread Igor Vaynberg
just keep a reference to it, thats all you need -igor On Tue, Apr 1, 2008 at 6:32 PM, freak182 [EMAIL PROTECTED] wrote: Hello, 1. My problem is how to capture not bookmarkable page? (I already see the wicket-example on how to capture bookmarkable page) 2. All data i put in the

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread Pinger
Opp I think I deleted my reply somehow.. Anyway I said if you could post a code example of the behavior you made, you would be my hero :) djo.mos wrote: Hi, Pinger wrote: I want to get a Yes/No confirm dialog, so I only Do Stuff if they say yes.. What kind of confirmation ?

Re: Make a Ajax button have a confirm dialog

2008-04-01 Thread Ryan Gravener
decorateScript(java.lang.CharSequence script) { return if(confirm('Are you sure?')) { + script + }; } On Tue, Apr 1, 2008 at 10:03 PM, Pinger [EMAIL PROTECTED] wrote: Opps I think I deleted my reply somehow.. Anyway I said if you could post a code example of the behavior you made, you

Swarm Examples

2008-04-01 Thread Gareth Segree
Where can I download the swarm examples.

Re: Swarm Examples

2008-04-01 Thread Gareth Segree
Where can I download source code for the swarm examples. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to display a swing component/applet in wicket?

2008-04-01 Thread jianfei
Yes, and that's why I am having the trouble. I need that JTreeMap thingy, which is like a map with different squres in it. I want that map to be able to display in a web page, but there is no similar function in Wicket that allows me to do such a map, so I have to use the JTreeMap library. The

RE: Swarm Examples

2008-04-01 Thread Warren
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security+Examples -Original Message- From: Gareth Segree [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 8:21 PM To: users@wicket.apache.org Subject: Re: Swarm Examples Where can I download source code for the

  1   2   >