Anyone seen this Firefox bug: tabs stop working after ajax update

2008-04-28 Thread Matthew Young
I have a tabpanel. After ajax update to a div inside the tab-panel, the tab stop working: rollover hover doesn't work, no reaction to click. This only happen to Firefox both Windows and Linux. No problem with IE7, Opera or Safari. You can see this in action here:

Re: Change image source on every ajax request

2008-04-28 Thread mfs
got it to work using wicket.ajax postCallHandlers... mfs wrote: Guys, I have got a keep-alive.gif[?random=timestamp] in my LayoutPage (which every page extends from). I need a way to change the source of this keep-alive image (so as to update the time stamp post-fixed with, so that

Re: Alternative method to initialise page

2008-04-28 Thread Maurice Marrink
On Sun, Apr 27, 2008 at 7:55 AM, John Patterson [EMAIL PROTECTED] wrote: Mr Mean wrote: Such an initialize method can easily be done by users them self with a simple factory pattern. Can you give an example of this? public class MyFactory { public SomeComponent

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Martin Makundi
I would guess that it is better to use panels or fragments and instead of using setXXX, just initialize everyting in its place according to an internal state. Start with one hard coded layout and then tune it using an internal state, for example. ** Martin 2008/4/28 Azzeddine Daddah [EMAIL

Anchor Links

2008-04-28 Thread tbt
Hi I'm new to wicket and I have a listview which dynamically creates links. I'm using the following code to anchor links so that when the user clicks a link, it will be directed to the correct area in the page. protected void populateItem(ListItem item) { Link boardLink = new

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Azzeddine Daddah
Could you or somebody else please provide some code? I didn't understand your last sentence Start with one hard coded layout and then tune it using an internal state, for example. Thank you, Azzeddine On Mon, Apr 28, 2008 at 10:16 AM, Martin Makundi [EMAIL PROTECTED] wrote: I would guess

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Martin Makundi
Well, here you have an example of a panel: http://www.javalobby.org/java/forums/t60926.html It is reusable, so you can use it from anywhere, or decide not to use it. Design one page which uses panels. Then change the panels according to some session state, for example. Here is a trivial bad

Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread Sergio García
This posts is about the vision that my colleague Daniel Fernández and me have about how should be the integration between Wicket and Spring, using the new annotation functionalities provided by Spring 2.5. The @SpringBean approach is very useful, but its magic about a transient attribute that is

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread lars vonk
The @SpringBean approach is very useful, but its magic about a transient attribute that is not transient make us fell uncomfortable. What do you mean by transient and magic? The attributes are not transient. A proxy is generated that is serialized. At runtime the real dependency is retrieved

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 5:57 AM, James Carman [EMAIL PROTECTED] wrote: On Sat, Apr 26, 2008 at 4:55 PM, Maurice Marrink [EMAIL PROTECTED] wrote: Such an initialize method can easily be done by users them self with a simple factory pattern. So why bloat our api with it? Could one come

Re: Alternative method to initialise page

2008-04-28 Thread Uwe Schäfer
James Carman schrieb: Or, perhaps Wicket could add in some lifecycle method annotations? pleeease don´t! using annotations for this kind of lifecycle methods is a simple abuse of them. non-obvious order, inheritance etc... lesson learned from jpa,ejb3 etc... cu uwe -- THOMAS DAILY

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread Daniel Fernández Garrido
Hello Lars, What do you mean by transient and magic? The attributes are not transient. A proxy is generated that is serialized. At runtime the real dependency is retrieved from the spring container. The problem with that magic, as I already expressed in this list some time ago, is a formal

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread Bruno Borges
Yeah... Why would someone put hundreds of getters for beans inside Application? This would be a big dummy access way to Spring's Beans, since we can use Annotations in a clever way. :-) On Mon, Apr 28, 2008 at 6:56 AM, lars vonk [EMAIL PROTECTED] wrote: The @SpringBean approach is very

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Sat, Apr 26, 2008 at 4:55 PM, Maurice Marrink [EMAIL PROTECTED] wrote: Such an initialize method can easily be done by users them self with a simple factory pattern. So why bloat our api with it? Could one come up with their own interface which means they want delayed intialization and use

Re: Modal Window not opening the second time

2008-04-28 Thread Marieke Vandamme
Hello, can't anyone help me with this problem? If I need to code it differently, please tell me. Thanks !! Marieke Vandamme wrote: Hello, i'm having problems with the modal window. It shows up fine when I click my link the first time, but after closing the window with the 'X', it

Re: a hidden field named x is filled by the form action url... a bug?

2008-04-28 Thread Johan Compagner
add it to a jira issue On Mon, Apr 28, 2008 at 12:41 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone, It seems that if you add a hidden field named x to your form the field is going to be filled by the form action url :) It should be easy to reproduce. Vitaly

WebRequestCycle and Open-session-in-view pattern

2008-04-28 Thread Paolo Di Tommaso
Dear Wicket Gurus, I'm implementing the Open-session-in-view pattern overriding the onBeginRequest and onEndRequest method of a custom WebRequestCycle. Is there any way to avoid to open a new hibernate session for non-view request, for example resources request (css, javascript, images, etc)

AbstractTab et BookmarkablePageLink

2008-04-28 Thread Fabien D.
Hi, I'm using AbastractTab with two panels. I want to have a BookmarkablePageLink for these Panel, so my question is : Is it possible??? If not, is there another solution? Thank you in advance -- View this message in context:

Re: Panel that replaces surrogate element rather than contained within it

2008-04-28 Thread Sam Hough
Martijn, Thanks for the info. Is tempting but I'm really after making the component behaviour more consistent and the monkey will complain about losing control over yet another id (first example I had tried he was setting an explicit id on the first element in a Panel). I might try fiddling

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 6:27 AM, James Carman [EMAIL PROTECTED] wrote: Yes, this would involve making up some rules about the order in which the parent class' initializer methods are invoked. A couple that come to mind: 1. There should only be one initializer method declared per class

Re: Alternative method to initialise page

2008-04-28 Thread Maurice Marrink
How well did you test this? Because i think the biggest problem here is that the IComponentInstantiationListener is invoked in the constructor of Component and thus before any childclass constructor has run. Maurice On Mon, Apr 28, 2008 at 1:42 PM, James Carman [EMAIL PROTECTED] wrote: On Mon,

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-28 Thread Stefan Lindner
Dear Maurice, Can you give me a timeframe for the availability of WicketStuff Scriptaculous for wicket 1.4? The Drag and Drop will lnot work, becaus a component no langer has a public 'addBeahivor' method. This is now replaced by a simple 'add(Ibehavior...)' method. The 'DraggableTarget' class

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 7:58 AM, Maurice Marrink [EMAIL PROTECTED] wrote: How well did you test this? Only whipped it up very quickly (based on obviously wrong assumptions :). Because i think the biggest problem here is that the IComponentInstantiationListener is invoked in the constructor

RE: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-28 Thread Arthur Bogaart
Hi Stefan, I presume this build is based on the 'old' dojo-0.4 version? If so, are there any plans in updating the wicketstuff-dojo project to dojo-1.1.0 or is there to much resistance since Dojo has changed it's api already a couple of times? Regards, Arthur Bogaart [EMAIL PROTECTED] -

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-28 Thread Maurice Marrink
The source is located at sourceforge http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-scriptaculous As for when it will be available for wicket 1.4?, i have no idea since i have nothing to do with that project. Perhaps Ryan Sonnek can answer that. Maurice On

Re: Alternative method to initialise page

2008-04-28 Thread Maurice Marrink
On Mon, Apr 28, 2008 at 2:15 PM, James Carman [EMAIL PROTECTED] wrote: On Mon, Apr 28, 2008 at 7:58 AM, Maurice Marrink [EMAIL PROTECTED] wrote: How well did you test this? Only whipped it up very quickly (based on obviously wrong assumptions :). Because i think the biggest problem

Wicket stuff dojo/toaster?

2008-04-28 Thread Nino Saturnino Martinez Vazquez Wael
Hi Im using the toaster from dojo. I get a javascript thing which tells me that a fatal error has happend, it only happens when session are initialized if I reload the page there are no problems. It seems a little like it's related to this thread:

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-28 Thread Ryan Sonnek
i'll try to create a 1.4 branch of the scriptaculous project sometime this week. of course patches are always welcome. =) On Mon, Apr 28, 2008 at 7:20 AM, Maurice Marrink [EMAIL PROTECTED] wrote: The source is located at sourceforge

Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-28 Thread Michael Sparer
comp instanceof Page ? or am I misunderstanding somethin? Ned Collyer wrote: Hi, I've written my own class that extends ComponentStringResourceLoader (i might change it to extend some other class) At any rate, when loadStringResource(Component component, String key) is called, and

Strange redirect page before actual page loads

2008-04-28 Thread richardwilko
Hi, I have a wicket page, mounted as a IndexedParamUrlCodingStrategy, and the first time i go to the page in a session, i see a blank page which says: 'If you see this, it means that both javascript and meta-refresh are not support by your browser configuration. Please click this link to

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 8:31 AM, Maurice Marrink [EMAIL PROTECTED] wrote: Oh! Nasty. I thought you guys were somehow waiting until the Component was fully instantiated for this notification to occur. If Nope. One of the places where this is used, is for security

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread John Krasnay
On Mon, Apr 28, 2008 at 12:15:22PM +0200, Daniel Fernández Garrido wrote: Service interfaces are not serializable (normally), and thus they should be declared as transient here, and provide a way to recover the object after page serialization. Erm, I think you mean service implementations.

rendering the navigation toolbar

2008-04-28 Thread Eyal Golan
hi all, I've been trying to change some styling in the navigation toolbar. I have a StyledAjaxNavigationToolbar which inherit from AjaxNavigationToolbar. I thought to override newPagingNavigator that will return StyledAjaxPagingNavigator (inherit AjaxPagingNavigator). I overridden

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread Igor Vaynberg
On Mon, Apr 28, 2008 at 3:15 AM, Daniel Fernández Garrido [EMAIL PROTECTED] wrote: The problem here is that, in a Serializable class (the page), you are declaring a non-serializable attribute (the service). Service interfaces are not serializable (normally), and thus they should be declared

Re: Wicket stuff dojo/toaster?

2008-04-28 Thread Igor Vaynberg
perhaps you should use shared resources along with IInitializer to make sure the javascript is available immediately upon startup -igor On Mon, Apr 28, 2008 at 5:49 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Im using the toaster from dojo. I get a javascript thing

Re: AbstractTab et BookmarkablePageLink

2008-04-28 Thread Igor Vaynberg
you are free to replace the links tabbedpanel generates with bookmarkable ones. see tabbedpanel.newlink(). but then you have to do all the wiring yourself. -igor On Mon, Apr 28, 2008 at 4:04 AM, Fabien D. [EMAIL PROTECTED] wrote: Hi, I'm using AbastractTab with two panels. I want to have

This might interest you

2008-04-28 Thread Jan Vissers
Check this out: http://article.gmane.org/gmane.comp.java.tapestry.user/61313 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Alternative method to initialise page

2008-04-28 Thread Igor Vaynberg
springbean is ok. although bends the rule rather then breaking it by not depending on any state of the super class. if we did it the other way then the dependencies would be null during the constructor call, which is obviously something we want to avoid. -igor On Mon, Apr 28, 2008 at 6:22 AM,

Re: Alternative method to initialise page

2008-04-28 Thread Igor Vaynberg
2008/4/28 Uwe Schäfer [EMAIL PROTECTED]: James Carman schrieb: Or, perhaps Wicket could add in some lifecycle method annotations? pleeease don´t! using annotations for this kind of lifecycle methods is a simple abuse of them. non-obvious order, inheritance etc... lesson learned

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 10:58 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: 2008/4/28 Uwe Schäfer [EMAIL PROTECTED]: James Carman schrieb: Or, perhaps Wicket could add in some lifecycle method annotations? pleeease don´t! using annotations for this kind of

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-28 Thread Stefan Lindner
OK! As soon as a brach is available, I'll check ist out and try to modify source for Wicket 1.4. So let me know Stefan -Ursprüngliche Nachricht- Von: Ryan Sonnek [mailto:[EMAIL PROTECTED] Gesendet: Montag, 28. April 2008 14:55 An: users@wicket.apache.org Betreff: Re: Wicket 1.4 and

Re: Alternative method to initialise page

2008-04-28 Thread Igor Vaynberg
you can roll that, just use the beforerenderlistener you can install in the application subclass. -igor On Mon, Apr 28, 2008 at 8:03 AM, James Carman [EMAIL PROTECTED] wrote: On Mon, Apr 28, 2008 at 10:58 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: 2008/4/28 Uwe Schäfer [EMAIL PROTECTED]:

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 11:05 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: you can roll that, just use the beforerenderlistener you can install in the application subclass. We just have to make sure we only initialize an instance one time. The IComponentOnBeforeRenderListeners are called every

Re: Using AJAX to change style of component

2008-04-28 Thread Ryan O'Hara
Cool, that worked. Thanks, Frank. Ryan On Apr 25, 2008, at 2:25 AM, Frank Bille wrote: You have to set outMarkupId when creating the component. It's too late to do it in the ajax callback. Frank On Thu, Apr 24, 2008 at 9:32 PM, Ryan O'Hara [EMAIL PROTECTED] wrote: I'm fairly new to

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-28 Thread Igor Vaynberg
branch? wicketstuff trunk is already 1.4, i have created a branch for older 1.3.x -igor On Mon, Apr 28, 2008 at 5:54 AM, Ryan Sonnek [EMAIL PROTECTED] wrote: i'll try to create a 1.4 branch of the scriptaculous project sometime this week. of course patches are always welcome. =) On

Re: WebRequestCycle and Open-session-in-view pattern

2008-04-28 Thread Leszek Gawron
Paolo Di Tommaso wrote: Dear Wicket Gurus, I'm implementing the Open-session-in-view pattern overriding the onBeginRequest and onEndRequest method of a custom WebRequestCycle. Is there any way to avoid to open a new hibernate session for non-view request, for example resources request (css,

Checking for file

2008-04-28 Thread Mathias P.W Nilsson
Hi! I'm generating files ( pdf ) in a server and I want to check for the file and when the file becomes available show it to the user 1. User clicks create preview 2. A modal window opens showing ( processing file ) 3. When the file is available show link in modal window. I don't know how

Re: Alternative method to initialise page

2008-04-28 Thread Igor Vaynberg
yes of course. you have to keep a boolean in the metadata to mark if the handler has been called already. -igor On Mon, Apr 28, 2008 at 8:12 AM, James Carman [EMAIL PROTECTED] wrote: On Mon, Apr 28, 2008 at 11:05 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: you can roll that, just use the

Re: Strange redirect page before actual page loads

2008-04-28 Thread Igor Vaynberg
you enabled wicket's advanced browser info gathering, that is the page that does that... -igor On Mon, Apr 28, 2008 at 6:12 AM, richardwilko [EMAIL PROTECTED] wrote: Hi, I have a wicket page, mounted as a IndexedParamUrlCodingStrategy, and the first time i go to the page in a session, i

Re: WebRequestCycle and Open-session-in-view pattern

2008-04-28 Thread Igor Vaynberg
create it lazily when it gets requested from the request cycle? -igor On Mon, Apr 28, 2008 at 3:36 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Dear Wicket Gurus, I'm implementing the Open-session-in-view pattern overriding the onBeginRequest and onEndRequest method of a custom

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 11:45 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: yes of course. you have to keep a boolean in the metadata to mark if the handler has been called already. Ok, gotcha! I need to keep that metadata stuff in my head. That's a nifty little trick for adding ad-hoc

Re: Checking for file

2008-04-28 Thread richardwilko
Your modal window could periodically poll the server to see if it is available yet, I think you can use AjaxSelfUpdatingTimerBehavior for this. Richard Mathias P.W Nilsson wrote: Hi! I'm generating files ( pdf ) in a server and I want to check for the file and when the file becomes

Re: Checking for file

2008-04-28 Thread Mathias P.W Nilsson
Yes, I tried a normal thread but that of course didn't work final WebMarkupContainer container = new WebMarkupContainer( container ); container.add( new AjaxSelfUpdatingTimerBehavior( Duration.ONE_SECOND){ protected void

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Cristi Manole
To answer your second point : -NO, at this point you cannot define multiple wicket:child anywhere. Try using fragments or generic panels (i don't know which would be better for you). Replace a generic panel with the specific panel you need. Cristi Manole On Mon, Apr 28, 2008 at 11:34 AM, Martin

Re: Anyone seen this Firefox bug: tabs stop working after ajax update

2008-04-28 Thread Cristi Manole
I think that your images div is overlapping the tab-row div. You could try to *add margin-top: 45px;* in the #photos style [line 172 in your style.css]. I am not sure if this will work since I see the first time the page loads the tabs work... anyways, by changing those on the fly in my browser

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Scott Swank
I have done this by creating an abstract base page with an abstract factory methods getFooPanel() or getBarPanel(). Then the base page add()s the result of getFooPanel(), while the implementations supply it. - Scott On Mon, Apr 28, 2008 at 10:09 AM, Cristi Manole [EMAIL PROTECTED] wrote: To

[wicketstuff-dojo] Dojo SuggestionList

2008-04-28 Thread ChuckDeal
I suppose this question is directed at Vincent Demay (the author listed int he component)... I am attempting to use a derivative of the DojoRequestSuggestionList. As part of it's contract with the DojoRequestSuggestionListHandler it needs to implement public abstract SuggestionList

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread James Carman
And, when does the base page do the adding? In the constructor? On Mon, Apr 28, 2008 at 1:38 PM, Scott Swank [EMAIL PROTECTED] wrote: I have done this by creating an abstract base page with an abstract factory methods getFooPanel() or getBarPanel(). Then the base page add()s the result of

Re: Modal Window not opening the second time

2008-04-28 Thread Cristi Manole
I am 99% certain that if you change your code from : *final MyChooser myChooser = new MyChooser(modal);* *modal.setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { return myChooser; } } * to this : *modal.setPageCreator(new

Re: Anchor Links

2008-04-28 Thread Cristi Manole
does your descriptionLabel start with #? On Mon, Apr 28, 2008 at 11:17 AM, tbt [EMAIL PROTECTED] wrote: Hi I'm new to wicket and I have a listview which dynamically creates links. I'm using the following code to anchor links so that when the user clicks a link, it will be directed to the

Immediate redirect from session

2008-04-28 Thread Edvin Syse
Hi, I have a CMS-system that under some circumstances should do an immediate redirect when the session is created. I try with the following code in MySession's constructor: String host = ((ServletWebRequest) request).getHttpServletRequest().getHeader(host); Instance instance =

How to debug Back Button

2008-04-28 Thread Marco Aurélio Silva
Hi All I'm using wicket 1.2.6 and I'm having problems with back button on IE. I can go back with back button of browser, but when I try to go forward, I get a Page Expired. The log is set to debug, but I can't find anything in log file to help me find out what is causing this. I don't know if

Re: Problem with german error messages in feedback panel

2008-04-28 Thread greeklinux
Hello, thank you. I converted the properties file with native2ascii and it works. Vit Rozkovec wrote: Hi, try to convert the property file with native2ascii tool. greeklinux wrote: Hello, I am using IDEA as IDE. I configured it to use UTF-8. Did I forget something? In the

Re: Anyone seen this Firefox bug: tabs stop working after ajax update

2008-04-28 Thread Matthew Young
I think that your images div is overlapping the tab-row div. Oh wow, thanks for spotting this. The tab-panel div is overlapping tab-row div. I have no idea why though. I use your suggestion on tab-panel: div.tab-panel { margin-top: 45px; } and no more problem with the tabs. But how did

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Scott Swank
Yes, in the constructor. - Scott On Mon, Apr 28, 2008 at 11:12 AM, James Carman [EMAIL PROTECTED] wrote: And, when does the base page do the adding? In the constructor? On Mon, Apr 28, 2008 at 1:38 PM, Scott Swank [EMAIL PROTECTED] wrote: I have done this by creating an abstract base

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread James Carman
So, how do you know that everything is good to go in the subclass then? You really shouldn't be calling a method implemented by the subclass in the superclass' constructor. In your case, it may work, but in general, it's bad practice. On Mon, Apr 28, 2008 at 4:34 PM, Scott Swank [EMAIL

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Scott Swank
Agreed. It has to be a stateless factory method. On Mon, Apr 28, 2008 at 1:39 PM, James Carman [EMAIL PROTECTED] wrote: So, how do you know that everything is good to go in the subclass then? You really shouldn't be calling a method implemented by the subclass in the superclass'

Re: Problem with german error messages in feedback panel

2008-04-28 Thread Vit Rozkovec
Actually if you are on linux, I made a tiny script for myself which recursively converts all .properties files in the current directory and subdirectories: #!/bin/sh for file in $(find . -name *.properties); do native2ascii $file $file echo $file done Regards Vitek greeklinux

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread Martijn Dashorst
On 4/28/08, James Carman [EMAIL PROTECTED] wrote: So, how do you know that everything is good to go in the subclass then? You really shouldn't be calling a method implemented by the subclass in the superclass' constructor. In your case, it may work, but in general, it's bad practice. In

Re: How to debug Back Button

2008-04-28 Thread Johan Compagner
Dont know why it is different in ie compared to ff, but do upgrade to 1.3 because then page expired are pretty much none excistent. On 4/28/08, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi All I'm using wicket 1.2.6 and I'm having problems with back button on IE. I can go back with back

AJAX: Invalid XML markup error

2008-04-28 Thread Michael Mehrle
Getting a strange error when loading my page: INFO: INFO: Initiating Ajax GET request on ../../../../../../?wicket:interface=:2:eventTabbedPanel:panel:createEven tForm:message::IBehaviorListener:0:6random=0.6280901523407119 INFO: Invoking pre-call handler(s)... INFO: Received ajax response

Re: AJAX: Invalid XML markup error

2008-04-28 Thread Igor Vaynberg
tinymce doesnt work if you load it via ajax...its a known limitation -igor On Mon, Apr 28, 2008 at 2:08 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Getting a strange error when loading my page: INFO: INFO: Initiating Ajax GET request on

Re: AJAX: Invalid XML markup error

2008-04-28 Thread Martijn Dashorst
odd... I got the reply earlier than the question Igor truly is a psychic and very fast typist when he can even type in the quoted bits with his reply. Martijn On 4/28/08, Igor Vaynberg [EMAIL PROTECTED] wrote: tinymce doesnt work if you load it via ajax...its a known limitation -igor

RE: AJAX: Invalid XML markup error

2008-04-28 Thread Michael Mehrle
He's FAST sometimes yes. Well, problem is that we're not using it in an AJAX context - here's what we're doing: public class TinyMCERichTextEditor extends TextArea { public TinyMCERichTextEditor(String id) { super(id); this.add(new

Re: AJAX: Invalid XML markup error

2008-04-28 Thread Igor Vaynberg
are you adding the texteditor via ajax? thats the same thing. -igor On Mon, Apr 28, 2008 at 2:37 PM, Michael Mehrle [EMAIL PROTECTED] wrote: He's FAST sometimes yes. Well, problem is that we're not using it in an AJAX context - here's what we're doing: public class

RE: AJAX: Invalid XML markup error

2008-04-28 Thread Michael Mehrle
It's being added like this: add(new TinyMCERichTextEditor(message)); inside a form's constructor... My colleague (who works on this) just told me that the form is inside a panel, which in turn is inside a tabbed panel. So, I guess this qualifies for being Ajax driven, correct? Any workaround

Re: AJAX: Invalid XML markup error

2008-04-28 Thread Igor Vaynberg
On Mon, Apr 28, 2008 at 2:53 PM, Michael Mehrle [EMAIL PROTECTED] wrote: It's being added like this: add(new TinyMCERichTextEditor(message)); inside a form's constructor... My colleague (who works on this) just told me that the form is inside a panel, which in turn is inside a tabbed

Change to API between Wicket 1.2 releases?

2008-04-28 Thread Frank Silbermann
I completed a Wicket 1.2 project a couple of years ago, and I've been maintaining it since then. I've been using Version 1.2.2 successfully, and figured I might as well use the lastest release of that version (1.2.7). Well, I'm trying to figure out why Wicket 1.2.7 broke my code. (I scrounged up a

RE: AJAX: Invalid XML markup error

2008-04-28 Thread Michael Mehrle
Thanks Igor - I'll pass that on - great input. Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, April 28, 2008 3:00 PM To: users@wicket.apache.org Subject: Re: AJAX: Invalid XML markup error On Mon, Apr 28, 2008 at 2:53 PM, Michael Mehrle [EMAIL

Int based PropertyModel throws convertion error

2008-04-28 Thread Michael Mehrle
I've got a radio group that's tied to a propertymodel which is set to '0' by default: RadioGroup monthlyRadioGroup = new RadioGroup(eventSchedule.intervalOfMonth); When saving my form I get this error: org.apache.wicket.util.convert.ConversionException: Can't convert null value to a

Question on Authentication

2008-04-28 Thread freak182
Hello, I have a problem about authorization.I look at wicket-in-action source code and implement authorization from there it work well. I use annotation to tag Pages that is unauthorize. But i just go on circle.Here is my problem: @OverridablePage public class EditUserPage extends

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread Ned Collyer
Putting everything into the Application class is also not very flexible. I have other jars with panels in them and their own context files - with the everything in the Application approach, this is not workable. I cannot make spring based plugins. I'd use a better way in preference an

Re: submit form to bookmarkable page

2008-04-28 Thread Doug Donohoe
Overriding onComponentTag doesn't seem to work. The URL that gets generated (using urlFor) starts with a question mark which isn't included when the form is submitted. The only thing passed down is the form parameters, which obviously doesn't work since the page is missing. I'm using the

Re: submit form to bookmarkable page

2008-04-28 Thread Igor Vaynberg
thats what stateless forms are for. after a submit you want a redirect anyways so that a refresh doesnt popup that annoying post values dialog. overriding oncomponenttag() should work just fine, you just have to make sure to call super first. -igor On Mon, Apr 28, 2008 at 7:08 PM, Doug Donohoe

Re: submit form to bookmarkable page

2008-04-28 Thread Doug Donohoe
Obviously, if you post with GET method, you don't get those dialogs. A post and redirect means two hits to the server where-as a GET is only one. Using the GET method makes your average web page bookmarkable. The code I used was basically this: super.onComponentTag(tag) tag.put(action,

Session.isNew - Check if a (permanent) session was created in the given request

2008-04-28 Thread mfs
Hello Everyone, Is there a way to check if a (permanent) session was created in the given request, in other words want to know if a JSESSIONID cookie is being set in the resulting response. I need to set another cookie alongside JSESSION id in the same request. Any pointers..? -- View this

Re: Modal Window not opening the second time

2008-04-28 Thread Marieke Vandamme
Hello, Thanks for the reply. But isn't it possible to reuse the modalwindow? Because in my application the window needs to be opened many times, and I thought it would be better to reuse the same window multiple times. Or has that no affect to the memory-usage? Cristi Manole wrote: I am

About Wicket Session life-cycle

2008-04-28 Thread mfs
Correct me if i am wrong.. - Wicket creates a permanent session only when a stateful page is rendered. And it is at this time when the wicket session is bind with the http-session, and hence a jsessionID is generated by the servlet container and set as a cookie in the response. - On the

Re: About Wicket Session life-cycle

2008-04-28 Thread Igor Vaynberg
correct you can also bind the session manually by calling bind() -igor On Mon, Apr 28, 2008 at 10:46 PM, mfs [EMAIL PROTECTED] wrote: Correct me if i am wrong.. - Wicket creates a permanent session only when a stateful page is rendered. And it is at this time when the wicket session is