Getting Wicket Session from outside Wicket context

2008-06-13 Thread Scott Sauyet
I have several Servlets and ServletFilters that run inside the same web application as my Wicket app. They've happily co-existed with Wicket until now, but now there is a requirement that several of them, which can show sensitive data, must be protected with the same login security as the

Re: Getting Wicket Session from outside Wicket context

2008-06-13 Thread Scott Sauyet
Igor Vaynberg wrote: see WicketSessionFilter Thank you. That works perfectly. What a great list! -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JS/CSS references different in Jetty versus Tomcat

2008-05-06 Thread Scott Sauyet
Scott Sauyet wrote: Jeremy Levy wrote: It sounds like this: https://issues.apache.org/jira/browse/WICKET-1205 That was exactly it. Thank you. Unfortunately, this issue has not been resolved as of Wicket 1.3.3. There was a bizarre note at the end of that issue from Al Maw that it had

JS/CSS references different in Jetty versus Tomcat

2008-05-02 Thread Scott Sauyet
I'm having a problem with different behavior when my Wicket application runs on Jetty versus on Tomcat, and I'm wondering if anyone has a suggestion as to why. I'm running Wicket 1.3.0 inside Jetty 6.1.8 or Tomcat 5.5.26. The only place I'm seeing this right now is the second and subsequent

Re: JS/CSS references different in Jetty versus Tomcat

2008-05-02 Thread Scott Sauyet
Jeremy Levy wrote: On Fri, May 2, 2008 at 9:37 AM, Scott Sauyet [EMAIL PROTECTED] wrote: I'm having a problem with different behavior when my Wicket application runs on Jetty versus on Tomcat, and I'm wondering if anyone has a suggestion as to why. [ ... ] It sounds like this: https

Re: Form inside AJAX'd Page returns null values.

2008-04-22 Thread Scott Sauyet
, but is so odd with the second? Thanks, -- Scott Scott Sauyet wrote: The trickiest thing I had to do here is in the Javascript. The ParentPage has a URL like: http://example.com:8080/myapp/ParentPage but MyPage and MyPageAjax have page parameters, such as http://example.com:8080

Form inside AJAX'd Page returns null values.

2008-04-21 Thread Scott Sauyet
changing this in JS to /myapp/?wicket:interface=:8:panel:form::IFormSubmitListener:: so it will work from the URL of ParentPage. But that doesn't seem likely to be at issue as the onSubmit is in fact being called. Any suggestions? Thanks, -- Scott Sauyet

jQuery sortables

2008-04-08 Thread Scott Sauyet
, -- Scott Sauyet [1] Documentation is at http://docs.jquery.com/UI/Sortables/sortable Demo is at http://dev.jquery.com/view/trunk/ui/demos/ui.sortable.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

jQuery sortables

2008-04-08 Thread Scott Sauyet
offer, -- Scott Sauyet [1] Documentation is at http://docs.jquery.com/UI/Sortables/sortable Demo is at http://dev.jquery.com/view/trunk/ui/demos/ui.sortable.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: jQuery sortables

2008-04-08 Thread Scott Sauyet
Edvin Syse wrote: Has anyone had experience using jQuery's Sortables [1] with Wicket? These allow the user to reorder lists, even nested lists, by dropping and dragging them in the browser. The main interface back to Wicket would probably come in the serialize method, which returns a String

Render body only

2008-04-03 Thread Scott Sauyet
Hi, I'm looking to do exactly what was discussed in a thread a few years ago (http://tinyurl.com/3yo43s), namely to dynamically include or exclude a group of TR tags. I can wrap them in a SPAN with a WebMarkupContainer, but I like to have valid HTML and really don't want the SPAN tag in the

Re: Render body only

2008-04-03 Thread Scott Sauyet
Ryan Gravener wrote: You can try wicket:container wicket:container wicket:id=foo tr wicket:id=dd.../tr /wicket:container http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%2527sXHTMLtags-WicketTags And that's even better. No ugly SPAN tags in the markup either. Thanks Jeremy and

Updating text content with BookmarkablePageLink

2008-03-26 Thread Scott Sauyet
I would like to do something in Wicket I've never had to do before, and I'm wondering if someone more experienced could offer some guidance. I have some text content in my database being displayed on Wicket pages that includes snippets like: ... and if you use a PartialMessage you must

Re: Updating text content with BookmarkablePageLink

2008-03-26 Thread Scott Sauyet
Igor Vaynberg wrote: you dont need to create bookmarkable page link components for this. all you need is a url which you can construct by calling urlfor(page.class, params) and replace partialmessage with that. Thank you. So this could just be an extension to Label? Do I simply need to

Re: Updating text content with BookmarkablePageLink

2008-03-26 Thread Scott Sauyet
Igor Vaynberg wrote: On Wed, Mar 26, 2008 at 1:06 PM, Scott Sauyet [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: you dont need to create bookmarkable page link components for this. all you need is a url which you can construct by calling urlfor(page.class, params) and replace partialmessage

Replacement for 1.2's IApplicationSettings.getContextPath()?

2008-01-14 Thread Scott Sauyet
I'm finally converting from 1.2 to 1.3 and have gotten down to one compilation error! I need to find a way to replace a call to IApplicationSettings.getContextPath() I understand that all URLs are now relative, but I'm using this to pass to Javascript, something like this: HTML:

Re: Replacement for 1.2's IApplicationSettings.getContextPath()?

2008-01-14 Thread Scott Sauyet
Scott Sauyet wrote: I'm finally converting from 1.2 to 1.3 and have gotten down to one compilation error! I need to find a way to replace a call to IApplicationSettings.getContextPath() Never mind. It really isn't that hard: (WebApplication) Application.get()).getServletContext

Re: Replacement for 1.2's IApplicationSettings.getContextPath()?

2008-01-14 Thread Scott Sauyet
Igor Vaynberg wrote: see ContextImage and how it builds a context relative url That yields this: getRequest().getRelativePathPrefixToContextRoot() I'm not sure if this is a better approach or not, but it's at least some characters shorter! To use it, I'd still have to put it in some

Custom logging system conflict with restoring sessions

2008-01-08 Thread Scott Sauyet
I'm not sure exactly what my question is other than Do you have any suggestions? :-( I'm using a custom extension to log4j's FileAppender. I need to configure this in a class that loads a separate properties file. It took me a while to figure a way to do this so that my configuration

Re: Custom logging system conflict with restoring sessions

2008-01-08 Thread Scott Sauyet
exists in a user's session between app server restarts? On Jan 8, 2008 3:10 PM, Scott Sauyet [EMAIL PROTECTED] wrote: I'm not sure exactly what my question is other than Do you have any suggestions? :-( I'm using a custom extension to log4j's FileAppender. I need to configure this in a class

Re: Returning plain text / JSON data

2007-12-05 Thread Scott Sauyet
Thank you very much. I figured there must be an easy way... -- Scott Igor Vaynberg wrote: onclick() { getrequestcycle().setrequesttarget(new stringrequesttarget(boo!)); } yeah, that easy :) -igor On Dec 5, 2007 6:44 AM, Scott Sauyet [EMAIL PROTECTED] wrote: Every now

Returning plain text / JSON data

2007-12-05 Thread Scott Sauyet
Every now and then with Wicket, I find my self wanting to send plain text or Javascript/JSON data to the browser. I know how to use, for instance, the StringHeaderContributer. What I would like is for certain calls to simply return no HTML markup at all, just plain text. For most of these

Re: Getting the ListItems from a ListView

2007-10-16 Thread Scott Sauyet
Scott Sauyet wrote: There may be a much better way of doing what I'm trying to do, and if so, I'd love to hear about it. But what I thought would be simple seems to be eluding me here. I knew there had to be a better way. I found one. I have a form with a dynamic number of dropdowns. I'm