Data Sharing with InlineFrame Pages

2010-12-01 Thread Dan Retzlaff
Hello, I have a page with an embedded InlineFrame which is used to submit a multipart form. I would like the InlineFrame's page to share a model object with the parent page. This way the parent page can control the workflow after the form is submitted. However, something is preventing model

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread Dan Retzlaff
Hi Nivedan, Even though the subsequent requests have a Session open, the entities with the uninitialized collections don't know about it. I'm sure if you track it down, you can explain the intermittent behavior by prior access to the collection when the original session is open. I'd say you can

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-02 Thread Dan Retzlaff
for the time Cheers Niv On Thu, Dec 2, 2010 at 1:47 PM, Dan Retzlaff dretzl...@gmail.com wrote: Hi Nivedan, Even though the subsequent requests have a Session open, the entities with the uninitialized collections don't know about it. I'm sure if you track it down, you can explain

Re: Data Sharing with InlineFrame Pages

2010-12-03 Thread Dan Retzlaff
: - don't share components between pages - share their models. even better - share just pointers which will be used by the models to find the data Martin On Fri, Dec 3, 2010 at 3:28 AM, Dan Retzlaff dretzl...@gmail.com wrote: I tracked down the gotcha and assembled the attached quickstart

Session MetaData Synchronization and Flushing

2011-06-08 Thread Dan Retzlaff
Hey all, Can someone help me understand the synchronization and dirty-marking requirements surrounding Session#setMetaData()? I thought the rules for Session use were (1) synchronize data access, (2) call Session#dirty() after data changes to replicate the changes across the cluster. However, I

Re: Session MetaData Synchronization and Flushing

2011-06-08 Thread Dan Retzlaff
been updated. -igor On Wed, Jun 8, 2011 at 11:29 AM, Dan Retzlaff dretzl...@gmail.com wrote: Hey all, Can someone help me understand the synchronization and dirty-marking requirements surrounding Session#setMetaData()? I thought the rules for Session use were (1) synchronize data access

Re: Session MetaData Synchronization and Flushing

2011-06-08 Thread Dan Retzlaff
with components and whose use is easier on the eyes. Dan On Wed, Jun 8, 2011 at 11:45 AM, Dan Retzlaff dretzl...@gmail.com wrote: https://issues.apache.org/jira/browse/WICKET-3779 On Wed, Jun 8, 2011 at 11:32 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: most likely it is an oversight

Re: Drop down Multilevel Navigation in Wicket

2011-06-08 Thread Dan Retzlaff
Hi Dimiter, I have not implemented a multi-level, mouseover-based menu system, but I can offer the following general advice. Wicket makes it easy for client-side events to trigger callbacks in your server-side Java application, from which you can, for example, render new content into existing DOM

Re: Users, sessions, data...

2011-06-15 Thread Dan Retzlaff
One subtle gotcha to consider is that Wicket does not synchronize access to your Session object when processing multiple requests by the same user. Marking your Session's getters and setters as synchronized is sufficient for simple data members, but typical use of entities cannot be considered

Re: How do I create a detachable model for a ListView?

2011-06-15 Thread Dan Retzlaff
Look carefully at the ListView's constructor arguments. It wants an IModelListCheese, not an IModelCheese which is what your current CheeseDetach provides. Depending on your goals, you can either (1) change CheeseDetach.load() to call getCheeses(), or (2) change the constructor to accept a list of

Re: How do I create a detachable model for a ListView?

2011-06-16 Thread Dan Retzlaff
); [snip] } On Wed, Jun 15, 2011 at 06:35:25PM -0700, Dan Retzlaff wrote: Look carefully at the ListView's constructor arguments. It wants an IModelListCheese, not an IModelCheese which is what your current CheeseDetach provides. Depending on your goals, you can either (1) change

Re: Sorting problem

2011-06-24 Thread Dan Retzlaff
It seems like an instanceof String followed by downcasts and String#compareToIgnoreCase should do the trick. On Fri, Jun 24, 2011 at 12:30 AM, pragya.rawal pragya.ra...@gmail.comwrote: Hi, I have a DataView and I am sorting data column (on click of column header) inside it using my custom

Re: setting number of pages in the session

2011-06-28 Thread Dan Retzlaff
Isn't the conventional logout operation destroying the session, thereby preventing access to any of the session's pages? Dan On Tue, Jun 28, 2011 at 2:15 AM, Harrie Hazewinkel hhazewin...@iprofs.nlwrote: Hello, Ik would like to reduce the amount of pages maintained in the session to 1 in

Sessions and Login Redirection

2011-07-11 Thread Dan Retzlaff
Hi all, Our application's home / login page is stateless, so its initial request doesn't establish a session. In the login form's onSubmit the user is authenticated, his credentials are put into the session, and he is redirected to a page that requires the user to be authenticated. The problem is

Re: Sessions and Login Redirection

2011-07-11 Thread Dan Retzlaff
() to actually bind the session. Otherwise WIcket is in the dark that you actually want to keep the session around... Martijn On Mon, Jul 11, 2011 at 10:10 PM, Dan Retzlaff dretzl...@gmail.com wrote: Hi all, Our application's home / login page is stateless, so its initial request doesn't

Styling form components onError

2011-07-20 Thread Dan Retzlaff
Hey all, I want a low-interference approach to adding CSS class attributes to form components and their labels when they have associated errors. Igor's * Cookbook* suggests a behavior, but leaves the automation as something done during page construction. We have too many AJAX modals and panel

Re: Styling form components onError

2011-07-20 Thread Dan Retzlaff
: Providing Ajax feedback automatically have your temporary behavior implement a tagging interface. then in the ajax request target listener look for all components that have a behavior with this tagging interface, and if they do add it to the target. -igor On Wed, Jul 20, 2011 at 8:01 PM, Dan

Re: Styling form components onError

2011-07-21 Thread Dan Retzlaff
PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Wed, Jul 20, 2011 at 9:11 PM, Dan Retzlaff dretzl...@gmail.com wrote: Hey it's the man himself. :) We already use the automatic AJAX feedback recipe (thanks for that), but I'm not sure how that solves the problem at hand. I only add

Re: Styling form components onError

2011-07-21 Thread Dan Retzlaff
On Thu, Jul 21, 2011 at 12:00 PM, Dan Retzlaff dretzl...@gmail.com wrote: Awesome, works beautifully! This solves one of the biggest Wicket headaches for our form-heavy application. Components no longer have to worry about what to render when forms have errors, or how to clear those errors

Re: Re-Captcha with WiQuery ButtonBehavior causes Channel busy - postponing

2011-07-22 Thread Dan Retzlaff
Alec, Have you checked that no JavaScript errors are being encountered on the client? We're not using WiQuery, but we encountered your channel busy symptom dealing with https://issues.apache.org/jira/browse/WICKET-3820. The client-side AJAX processing was choking before the channel was marked

Re: RFC: Ten things every Wicket programmer must know?

2011-07-27 Thread Dan Retzlaff
1. Wicket's IOC integrations are really easy to get started with, but there are some gotchas. Since they inject serializable proxies* *to dependencies instead of the dependencies themselves, the dependency gets retrieved/created from Guice/Spring each time a page is deserialized. Therefore, it's

Re: What does this syntax say?

2011-07-28 Thread Dan Retzlaff
The first W let's the compiler know that the second W is a generic type and not a reference to some class named W. It's just syntax. On Thu, Jul 28, 2011 at 10:48 AM, Niranjan Rao nhr...@gmail.com wrote: Ok, I admit it - I don't understand this function at all defined in

Re: What does this syntax say?

2011-07-28 Thread Dan Retzlaff
28, 2011 at 4:45 PM, Ben Tilford b...@tilford.info wrote: Without a Class argument how is it returning/casting correctly? Shouldn't it be public W IWrapModelW wrapOnInheritance(Component component,ClassW type) to make W available within the method? On Thu, Jul 28, 2011 at 12:40 PM, Dan

Re: What does this syntax say?

2011-07-28 Thread Dan Retzlaff
but Model.of accepts an instance of the generic type so it's not lost and is available at runtime. static ModelT of(T instance) vs. public W IWrapModelW wrapOnInheritance(Component component) On Thu, Jul 28, 2011 at 6:33 PM, Dan Retzlaff dretzl...@gmail.com wrote: Generic types are lost by the time

Re: Ajax broken in IE 8

2011-07-29 Thread Dan Retzlaff
I'll help you test it if you boil it down to a quickstart application you can share. On Fri, Jul 29, 2011 at 8:12 AM, T P D li...@diffenbach.org wrote: OK, so since I'm having this problem and no one else is -- what am I doing wrong? And why is it working in Firefox? In Firefox, with

Re: Wicket modal window example not working in IE8 on wicket-library.com

2011-07-30 Thread Dan Retzlaff
I just tested 8.0.7601.17514 and it worked. Maybe you have a local IE plugin that's interfering? On Sat, Jul 30, 2011 at 6:31 PM, Chris Colman chr...@stepaheadsoftware.comwrote: Does anyone else have a problem in IE8 with this page. The links do not open up a modal window for me but under FF

Re: serialization problem with spring

2011-07-31 Thread Dan Retzlaff
Hi Joe, Based on the depth of that serialization stack, I doubt it's your AccountManager proxy that's giving you problems. I usually just breakpoint NotSerializableException and walk up the stack to find the culprit. Any change your CreatePage uses a method on AccountManager that returns an

Re: serialization problem with spring

2011-08-01 Thread Dan Retzlaff
not recommend using it in production as it is in its early stages and not yet stable Any help please? Thanks Joe On Mon, Aug 1, 2011 at 4:35 AM, Dan Retzlaff dretzl...@gmail.com wrote: Hi Joe, Based on the depth of that serialization stack, I doubt it's your AccountManager proxy that's

Re: Safari hangs on ajax form submit

2011-08-02 Thread Dan Retzlaff
Are you encountering this? https://issues.apache.org/jira/browse/WICKET-3820 I also recently submitted this so failures like this aren't so catastrophic. https://issues.apache.org/jira/browse/WICKET-3937 On Tue, Aug 2, 2011 at 12:46 PM, trodi t_roy...@hotmail.com wrote: This problem is only

Re: session closed when adding CSSPackageResource

2011-08-04 Thread Dan Retzlaff
Hi Mathilde, The story must be more complicated than your addition of a HeaderContributor. Somehow you're serializing a Questionnaire into your Wicket session, and when it's used in a subsequent request, the Hibernate session associated with its lazy collection of questions has been closed. One

Re: session closed when adding CSSPackageResource

2011-08-05 Thread Dan Retzlaff
No, sorry, that doesn't make sense to me. But I'm glad to hear you worked out the problem, and more importantly, understand the usage of detachable models. :) On Fri, Aug 5, 2011 at 1:52 AM, Mathilde Pellerin mathilde.pelle...@statlife.fr wrote: Wonderful ! it works with

Re: tomcat eats memory

2011-08-05 Thread Dan Retzlaff
This is your problem: Start.get().getSharedResources().add(image + random.toString() + .jpg, image); Adding shared resources during page construction is very unusual. Consider registering shared resources in Application.init(), or using non-shared images. Refer to

Re: error during deployment

2011-08-05 Thread Dan Retzlaff
Error in filter start tag --- this is a web.xml parsing error? The snippet you included is not complete. web.xml content should be wrapped in web-app. Refer to the sample at http://wicket.apache.org/learn/examples/helloworld.html. If that is not the problem, please post the full, verbatim error

Re: tomcat eats memory

2011-08-05 Thread Dan Retzlaff
: RE: tomcat eats memory Using non-shared images? My problem is that I need same url for href in a and for src in img for lightbox to work. -Original Message- From: Dan Retzlaff [mailto:dretzl...@gmail.com] Sent: Friday, 05. August 2011 18:45 To: users@wicket.apache.org

Re: tomcat eats memory

2011-08-05 Thread Dan Retzlaff
- From: Dan Retzlaff [mailto:dretzl...@gmail.com] Sent: Friday, 05. August 2011 19:58 To: users@wicket.apache.org Subject: Re: tomcat eats memory It sounds like a shared resource is not the right solution for your problem. Just throw a wicket:id on your Lightbox image tag and create

Re: error during deployment

2011-08-05 Thread Dan Retzlaff
I think we'll need to see the previous errors. 12:06:46,590 ERROR [StandardContext] Error filterStart 12:06:46,590 ERROR [StandardContext] Context [] startup failed due to previous errors On Fri, Aug 5, 2011 at 12:28 PM, srinash avisrid...@gmail.com wrote: Thanky ou for the reply. The

Re: error during deployment

2011-08-05 Thread Dan Retzlaff
Getting warmer... What's the cause of that exception? It will be included in the stack trace. On Fri, Aug 5, 2011 at 1:52 PM, srinash avisrid...@gmail.com wrote: thank you for the reply the previous error is 2011-08-05 13:11:47,313 ERROR

Re: i18n for html header elements

2011-08-06 Thread Dan Retzlaff
If I recall correctly, the string literal wicket:message goes deployment mode. We haven't internationalized our site yet, so I can't speak to any potential bug with locale-specific resource lookups. You might try title wicket:id=title.../title with a corresponding Label and ResourceModel. We did

Re: i18n for html header elements

2011-08-06 Thread Dan Retzlaff
s/goes/goes away/ :) On Sat, Aug 6, 2011 at 8:48 AM, Dan Retzlaff dretzl...@gmail.com wrote: If I recall correctly, the string literal wicket:message goes deployment mode. We haven't internationalized our site yet, so I can't speak to any potential bug with locale-specific resource lookups

Re: i18n for more than attribute

2011-08-06 Thread Dan Retzlaff
I'm pretty sure it's supposed to work as Martin described. Why don't you breakpoint WicketMessageTagHandler.AttributeLocalizer.onComponentTag() and see what's going on. It looks straight forward, expr.split(,) and all. On Sat, Aug 6, 2011 at 9:05 AM, heikki tropic...@gmail.com wrote: hi,

Re: i18n for more than attribute

2011-08-06 Thread Dan Retzlaff
I tested in 1.4 and it worked. There's more error checking in 1.5, but it essentially looks the same. http://svn.apache.org/repos/asf/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/parser/filter/WicketMessageTagHandler.java I recommend spending the time to attach the Wicket

Re: i18n for more than attribute

2011-08-06 Thread Dan Retzlaff
As for your suggestion to attach the sources, well, often I use quite many libraries (Lucene, Hibernate..) and it would generally speaking get rather impractical to attach the sources of all of them. Also kind of defies the idea of a /library/.. I don't know what your development

Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
Hi Julian, I'm not quite understanding your setup. How did your non-Wicket servlet get a Wicket-proxied Spring bean? Dan On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai jsi...@gmail.com wrote: Hi, I really could use some advice on how to solve this problem: In our webapp, we have a wicket

Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
either, but clearly it's happening. My best guess is what I said in my original post: the non-wicket servlets are going through the wicket filter. Julian On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff dretzl...@gmail.com wrote: Hi Julian, I'm not quite understanding your setup. How did your

Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
On second thought, both instantiating a Component and requesting injection would blow up immediately without an Application set. So I have to think something in your Wicket application is putting the proxy somewhere the servlet can access it. On Mon, Aug 8, 2011 at 12:46 PM, Dan Retzlaff dretzl

Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
take another look. And your suggestion to put a breakpoint in the SpringComponentInjector is a good one. Julian On Mon, Aug 8, 2011 at 12:49 PM, Dan Retzlaff dretzl...@gmail.com wrote: On second thought, both instantiating a Component and requesting injection would blow up immediately

Re: How to Handle ResourceStreamNotFoundException

2011-08-17 Thread Dan Retzlaff
Can you determine whether the zipfile contains an installation manual before you show the user a link for it? If there is no manual, don't show the link (or show something else). That seems like a better user experience and simplifies the resource implementation. Alternatively, in your resource

Re: How to Handle ResourceStreamNotFoundException

2011-08-18 Thread Dan Retzlaff
Hans, Something like the following will probably work better for you. The key concept is changing the request target. Sorry if my previous suggestion put you down a dead end. add(new LinkDeployVersion(manualLink, deployVersionModel) { @Override public void onClick() { IResourceStream

Re: Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread Dan Retzlaff
Did you try putting target=_black on the form tag? On Thu, Aug 18, 2011 at 5:30 AM, aksarben rwada...@up.com wrote: How can I make a Wicket page open in a new browser tab/window? I'm not talking about a popup, but a standard window. I have an app that needs to open a GIS map viewer in a

Re: Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread Dan Retzlaff
s/black/blank/ :) On Thu, Aug 18, 2011 at 10:41 AM, Dan Retzlaff dretzl...@gmail.com wrote: Did you try putting target=_black on the form tag? On Thu, Aug 18, 2011 at 5:30 AM, aksarben rwada...@up.com wrote: How can I make a Wicket page open in a new browser tab/window? I'm not talking

Re: Log bookmarkable page link execution

2011-08-18 Thread Dan Retzlaff
Is your goal to understand which links are used to open certain bookmarkable pages? If so, here's an approach that might get you started. Create a Behavior which appends a tracking query parameter to BookmarkablePageLinks. You could add it manually to each link you want to track, or apply it

Re: Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread Dan Retzlaff
On Thu, Aug 18, 2011 at 11:03 AM, aksarben rwada...@up.com wrote: Unfortunately, by that point, it's too late. The small HTML form has already appeared in my app window, even the map viewer subsequently opens in a new window, my app content has been destroyed. Is it necessary to replace

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-18 Thread Dan Retzlaff
It looks like you have multiple versions of the Wicket JARs on your classpath. Since that function was removed in https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that your extensions JAR is older than your main wicket JAR. Hope that helps, Dan On Thu, Aug 18, 2011 at 5:47 PM,

Re: Log bookmarkable page link execution

2011-08-19 Thread Dan Retzlaff
Mike, since I didn't really understand your use case, I'm not sure a site-wide link decorator is the best way to go. You might keep it simple and just print a log statement when certain actions are performed, then periodically grep through your log files to generate statistics. My suggestion

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread Dan Retzlaff
. On 19 August 2011 09:30, Ahmed Abdelfattah ahmed.abdelfattah.elshem...@gmail.com wrote: They both have the same version 1.5RC-1 On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] ml-node+3754040-2070811322-260...@n4.nabble.com wrote: It looks like you have multiple versions

Re: Strange error

2011-08-19 Thread Dan Retzlaff
How reproducible is this? I don't know how the serialization process itself would cause this, but if it's intermittent then maybe there's a threading / synchronization bug somewhere. On Fri, Aug 19, 2011 at 1:59 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! What can be the

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread Dan Retzlaff
of the framework ? And how should my code flow ? On 19 August 2011 17:04, Dan Retzlaff [via Apache Wicket] ml-node+3755408-1624030309-260...@n4.nabble.com wrote: Hi Ahmed, I recommend running Wicket in an IDE with a debugger and stepping through your code. Personally I deploy my

Re: Strange error

2011-08-19 Thread Dan Retzlaff
, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I don't know how to reproduce it... and I wonder, because there is pagemap lock, what else can be modifying stuff during page serialization? ** Martin 2011/8/19 Dan Retzlaff dretzl...@gmail.com: How reproducible is this? I

Re: communication between Page instances on Wicket 1.5

2011-09-08 Thread Dan Retzlaff
Hi Sander. This is probably too late to be useful. I've been out of town. You say cross-page communication worked in 1.4, but I think maybe you were getting lucky. As discussed here, we ran into the 2 versions problem with modal windows in 1.4.

Re: communication between Page instances on Wicket 1.5

2011-09-08 Thread Dan Retzlaff
Sorry, I said that wrong: Basically, if PageA modifies something in PageB, PageA needs to have a reference to PageB itself; a reference to an object in *PageB* is generally not sufficient to update the page map entry for *PageB*. On Thu, Sep 8, 2011 at 8:58 AM, Dan Retzlaff dretzl...@gmail.com

Re: PageMap Reuse

2011-09-08 Thread Dan Retzlaff
In step #5, what page map name do you use in your popup settings? Does it match the window.name global variable in that tab? (Use a browser debugger to check.) If yes, that should do the trick by my reading of the code. On Thu, Sep 8, 2011 at 2:19 PM, Jered Myers

Re: PageMap Reuse

2011-09-08 Thread Dan Retzlaff
. Thanks for the help! I will explore a way to manipulate the window name. On 9/8/2011 3:16 PM, Dan Retzlaff wrote: In step #5, what page map name do you use in your popup settings? Does it match the window.name global variable in that tab? (Use a browser debugger to check.) If yes

Re: PageMap Reuse

2011-09-08 Thread Dan Retzlaff
-wicket:default. The other tab windows match the PageMap name. Thanks for the help! I will explore a way to manipulate the window name. On 9/8/2011 3:16 PM, Dan Retzlaff wrote: In step #5, what page map name do you use in your popup settings? Does it match the window.name global

Re: testing setResponsePage with Panel or Page

2011-09-09 Thread Dan Retzlaff
You could try: throw new RestartResponseException(LoginPage.class, new PageParameters(...)); For login redirects, it's common to use RestartResponseAtInterceptPageException, then Component#continueToOriginalDestination() once they've been authentication. On Fri, Sep 9, 2011 at 12:26 PM,

Re: LazyInitializationException with CheckBoxMultipleChoice

2011-09-12 Thread Dan Retzlaff
Hi Florian, When constructing your CheckBoxMultipleChoice, use a PropertyModel(userModel, roles) for the model argument, and a new LDM that returns a list of all available UserRoles for the choices argument. Unless you need UserRole to be serializable for some other reason, I'd remove its

Re: Default Captcha Implementation in Wicket 1.5

2011-09-15 Thread Dan Retzlaff
http://repo1.maven.org/maven2/org/apache/wicket/wicket-extensions/ On Thu, Sep 15, 2011 at 10:13 AM, Erinc Arikan erincari...@gmail.comwrote: Hi Igor; Thanks for the response. Jar file that is three years old isn't wicket 1.5.0 jar, it's the wicket-extensions jar. I already checked the

Re: Stateful pages without page Id in the url

2011-09-15 Thread Dan Retzlaff
We have use cases similar to this. For explanation purposes, consider a User class that has a collection of Features. We have an IModelListFeature implementation called EntityListModelFeature. This class maintains a list of feature IDs within its implementation (the actual list of Features is

Re: Footnote-Support

2011-09-18 Thread Dan Retzlaff
Hi Christian, I don't understand the particular hierarchy placement you have in mind, but I'd guess that you could write a Behavior that does it. Behaviors get callbacks for component tags, rendering events, etc. Dan On Sun, Sep 18, 2011 at 12:12 PM, Christian Huber hub...@butterbrot.orgwrote:

Re: Footnote-Support

2011-09-19 Thread Dan Retzlaff
it out there. Cheers, Chris The Sanity Resort http://sanityresort.blogspot.**com/http://sanityresort.blogspot.com/ Am 18.09.2011 22:57, schrieb Dan Retzlaff: Hi Christian, I don't understand the particular hierarchy placement you have in mind, but I'd guess that you could write

Re: Cleaning resources on session timeout

2011-09-20 Thread Dan Retzlaff
I just learned that Wicket provides this hook today! Check out WebApplication.sessionDestroyed(). http://apache-wicket.1842946.n4.nabble.com/Detecting-when-a-session-is-destroyed-td3827137.html Dan On Tue, Sep 20, 2011 at 12:10 PM, Niranjan Rao nhr...@gmail.com wrote: Hi folks, Using wicket

Re: Cleaning resources on session timeout

2011-09-20 Thread Dan Retzlaff
not seem to be the method that I can not override. Regards, Niranjan On 09/20/2011 12:16 PM, Dan Retzlaff wrote: I just learned that Wicket provides this hook today! Check out WebApplication.**sessionDestroyed(). http://apache-wicket.1842946.**n4.nabble.com/Detecting-when-** a-session

Re: ModalWindow problem

2011-09-21 Thread Dan Retzlaff
Try giving your modal page a reference to the outer page object, and not just a model within it. This way serialization of the modal page will encounter the outer page and update its pagemap entry. I don't know what's up with 1.5, but with certain request patterns we found this necessary even in

Re: ModalWindow and reusable components

2011-09-23 Thread Dan Retzlaff
Hi Chris, I have struggled with this pattern myself. Ultimately I ended up using an eventing pattern to decouple the modal from the page components that need to be refreshed. I rolled my own event dispatch mechanism in Wicket 1.4 using event-specific interfaces and IVisitors that find all

Re: Update Component automatically without extending Session life

2011-09-23 Thread Dan Retzlaff
Rather than use Wicket components, can you just redirect the user to a logout URL when your JavaScript inactivity timer expires? Each user input could use JavaScript's clearTimeout and setTimeout functions to re-arm this on activity timeout function. 2011/9/23 Sebastian Lütge s.lue...@gmail.com

Re: Help with URL Rewrite in IFrame!

2011-09-23 Thread Dan Retzlaff
It sounds like you want to make a request to your internal, third party web app and render the response to an external user. That's not typically called URL rewriting. To accomplish that, from your Wicket page/resource you'll need to make a new HTTP request using the JDK or a library like

Re: Help with URL Rewrite in IFrame!

2011-09-23 Thread Dan Retzlaff
this: https://cwiki.apache.org/WICKET/wicket-form-submits-fbml-and-redirects.html However, I am unable to get this to work for the IFrame (InlineFrame) I have. Highly appreciate your response Thanks Kuga From: Dan Retzlaff [via Apache Wicket] [mailto: ml-node+s1842946n3837770...@n4.nabble.com

Re: Help with URL Rewrite in IFrame!

2011-09-23 Thread Dan Retzlaff
this kind of proxy mean that, any request with that URL from any browser gets forwarded via this proxy? Sorry for repeating emails Regards Kuga On Sep 23, 2011, at 12:20 PM, Dan Retzlaff [via Apache Wicket] ml-node+s1842946n3837827...@n4.nabble.commailto: ml-node+s1842946n3837827...@n4

Re: How to handle errors in RequestCycle.onEndRequest

2011-09-24 Thread Dan Retzlaff
So you open both a session and a transaction at the beginning of a request, and commit/close them at the end? I think it's more common to only have the session last through the request, and to have transactions started/committed around DAO or controller methods. This gives your app more control

Re: How to handle errors in RequestCycle.onEndRequest

2011-09-24 Thread Dan Retzlaff
to an error page or add error messages to the current page? I figured this should be doable, or could it mean that I broke something with my architecture? The Sanity Resort http://sanityresort.blogspot.**com/http://sanityresort.blogspot.com/ Am 24.09.2011 12:46, schrieb Dan Retzlaff: So you

Re: Wicket search term popularity

2011-09-25 Thread Dan Retzlaff
I love Martijn's unintentional suggestion of a battle-ready Ewok as the project mascot. Who doesn't picture the W logo on this guy's headgear? http://www.google.com/imgres?q=ewoktbm=ischtbnid=VmH7AZZWzWT3UM:imgrefurl=http://starwars.wikia.com/wiki/Ewokdocid=uhkzZKNcd8Fc4M Wicket also acts as a

Re: Feedback panel inherits parent panel feebdack?

2011-09-27 Thread Dan Retzlaff
I've hit this too. You're not the first to be surprised by this behavior. http://apache-wicket.1842946.n4.nabble.com/Page-and-compoenent-level-feedback-are-mixing-together-td1846435.html I agree that there's something unintuitive about all FeedbackPanels rendering all messages, but I haven't

Re: Show feedback message from modal window in parent page

2011-09-30 Thread Dan Retzlaff
Each FeedbackPanel rendered in a response includes all messages generated during that request. The messages are then cleared from the session and won't be included in subsequent responses. Are you closing the modal in a way that immediately generates a second request? Dan On Fri, Sep 30, 2011 at

Re: On component added to ajax request target

2011-09-30 Thread Dan Retzlaff
You could override WebApplication#newAjaxRequestTarget to add a listener to each target. You can look at AjaxRequestTarget#getComponents() to see if your list is there, and maybe add more stuff. Sounds messy though, since that's an application-wide listener. Maybe you could generate an event if

Re: Show feedback message from modal window in parent page

2011-10-03 Thread Dan Retzlaff
/30 Dan Retzlaff dretzl...@gmail.com Each FeedbackPanel rendered in a response includes all messages generated during that request. The messages are then cleared from the session and won't be included in subsequent responses. Are you closing the modal in a way that immediately generates

Re: ajax form submit, loading gif and swap panels

2011-10-05 Thread Dan Retzlaff
If you override AjaxSubmitLink#getAjaxCallDecorator() you can add JavaScript to the link's onclick attribute to show your animated gif. When the AJAX request eventually returns, it can replace whatever container has the gif. On Wed, Oct 5, 2011 at 2:51 PM, wholalotta ardaas...@gmail.com wrote:

Re: AjaxSelfUpdatingTimerBehavior stops working for a while

2011-11-23 Thread Dan Retzlaff
Hi Ramona, Is this one Ajax behavior or many (8)? Does the Wicket AJAX window in your browser show anything interesting? In particular I would look for channel busy messages, indicating that some other AJAX request is pending when a new one is triggered. Dan On Wed, Nov 23, 2011 at 2:46 PM,

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread Dan Retzlaff
In fallback mode the entire page is being rendered, so there's no need to identify particular components that changed. Why it's falling back is perhaps an IE issue, but I think you should be prepared for null as Nicklas suggests. On Tue, Dec 6, 2011 at 11:02 AM, cosmindumy cosmind...@yahoo.com

Re: ConcurrentModificationException

2011-12-07 Thread Dan Retzlaff
Hi Fang, Are there any other references to SessionErr page in your application aside from its registration in ApplicationSettings? I ask because, as Martin says, Wicket will only instantiate the PageExpiredErrorPage as a default behavior if a custom RequestCycleListener does not provide an

Re: ConcurrentModificationException

2011-12-07 Thread Dan Retzlaff
- From: Dan Retzlaff [mailto:dretzl...@gmail.com] Sent: Wednesday, December 07, 2011 9:40 AM To: users@wicket.apache.org Subject: Re: ConcurrentModificationException Hi Fang, Are there any other references to SessionErr page in your application aside from its registration

Re: ConcurrentModificationException

2011-12-07 Thread Dan Retzlaff
SessionErrHandler() { super(LOG_BACKIN_URL); } } -Original Message- From: Dan Retzlaff [mailto:dretzl...@gmail.com] Sent: Wednesday, December 07, 2011 1:56 PM To: users@wicket.apache.org Subject: Re: ConcurrentModificationException If you want to get to the bottom of that CME

Re: ConcurrentModificationException

2011-12-07 Thread Dan Retzlaff
(ListenerInterfaceRequestHandler.java:100) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:165) -Original Message- From: Dan Retzlaff [mailto:dretzl...@gmail.com] Sent: Wednesday, December 07, 2011 4:01 PM To: users@wicket.apache.org Subject

Re: How to add Javascript function in wicket 1.4 Page

2011-12-07 Thread Dan Retzlaff
Hi, Raju. See if adding this to your Wicket component's constructor does what you want: add(new HeaderContributor(new IHeaderContributor() { @Override public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavascript(alert('ready')); } })); On Wed, Dec 7, 2011 at 8:25 PM,

Re: Back button not work in Wicket 1.5.3 when component structure is not changed

2011-12-07 Thread Dan Retzlaff
Hi, Robin. I am not a core developer, but I believe this is as designed. If you want the page version to be incremented, you can call Page#dirty() in your onClick(). Otherwise the page version only advances when the component hierarchy changes or when a component's model changes. On Wed, Dec 7,

Re: ConcurrentModificationException

2011-12-07 Thread Dan Retzlaff
) at org.apache.wicket.request.handler.logger.ListenerInterfaceLogData.tryToGetComponentClass(ListenerInterfaceLogData.java:80) INFO 07 17:08:51.976 Route to User login [m.SessionErrHandler] -Original Message- From: Dan Retzlaff [mailto:dretzl...@gmail.com] Sent: Wednesday, December 07

Re: Any info on wasp-swarm?

2011-12-08 Thread Dan Retzlaff
Hi, Dan. Can you clarify the requirements of your application? If users' access are not based on their roles, then what are they based on? On Thu, Dec 8, 2011 at 8:46 PM, Dan Alvizu dalv...@pingidentity.com wrote: Hi, I'm trying to solve an authorization problem in wicket 1.5 -- I do not want

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Dan Retzlaff
Without reusing the ListView items, the item.add(...) will get called with each render. I expect that'll cause MarkupContainer#addedComponent() to WebPage#componentAdded() to WebPage#dirty() which sets a new page ID. Sorry I don't have time to test the theory at the moment. On Fri, Dec 9, 2011 at

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Dan Retzlaff
behave this way. On Fri, Dec 9, 2011 at 10:26 AM, Dan Retzlaff dretzl...@gmail.com wrote: Without reusing the ListView items, the item.add(...) will get called with each render. I expect that'll cause MarkupContainer#addedComponent() to WebPage#componentAdded() to WebPage#dirty() which sets

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Dan Retzlaff
. Wicket 1.4 didn't behave this way. On Fri, Dec 9, 2011 at 10:26 AM, Dan Retzlaff dretzl...@gmail.com(mailto: dretzl...@gmail.com) wrote: Without reusing the ListView items, the item.add(...) will get called with each render. I expect that'll cause MarkupContainer#addedComponent

Re: Ajax file upload

2011-12-12 Thread Dan Retzlaff
We use an inexpensive commercial product called Plupload to achieve the effect you describe. http://www.plupload.com/ A mounted Wicket resource receives the uploads. It does quite well, though not so well that testing in your target browsers isn't necessary. :) On Mon, Dec 12, 2011 at 11:02 AM,

Re: When to use setRenderBodyOnly(true) ?

2011-12-12 Thread Dan Retzlaff
Hi Suresh, Without renderBodyOnly=true, you will have an extra element in your HTML hierarchy. How that affects your page layout depends on what that element is, and whether you have CSS selectors that depend on it not being there (such as child selectors AB). It's hard to be more specific

  1   2   3   >