Re: Mount URL to another host?

2008-10-12 Thread Zach Cox
I'm sure calling setResponsePage with a new RedirectPage would work equally well. Uwe Schäfer-2 wrote: > > doesn´t this work there? > > class SomethingPage extends WebPage { // mounted accordingly > public SomethingPage (){ > setResponsePage(new RedirectPage("http://othersite.com";)); > }} >

Re: Mount URL to another host?

2008-10-10 Thread Zach Cox
This seems to work: public class SomethingPage extends RedirectPage { public SomethingPage() { super("http://othersite.com";); } } MyApplication.init(): mountBookmarkablePage("something", SomethingPage.class); Thanks for all the replies! Wicket community rulz. -- View this

Re: Mount URL to another host?

2008-10-10 Thread Zach Cox
I need the browser to actually redirect the user to http://othersite.com if they go to http://mysite.com/something, regardless of if they click a link or type it into the address bar. igor.vaynberg wrote: > > externallink? > > -igor > > On Fri, Oct 10, 2008 at 9:51 AM

Re: Mount URL to another host?

2008-10-10 Thread Zach Cox
if you have a frontend server like apache or IIS > - > to do it there. > > Hope this helps. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Fri, Oct 10, 2008 at 11:54 AM, Igor Vaynberg > <[EMAIL PROTECTED]>wrote: > &

Mount URL to another host?

2008-10-10 Thread Zach Cox
I feel dumb for even asking this, as there's got to be an easy way, but my brain is blocked today... I need a URL on my site, say http://mysite.com/something to redirect to another site entirely, say http://othersite.com. Is there some IRequestTargetUrlCodingStrategy that will do this? Or am I

Re: Bookmarkable RSS feed with parameter using wicketstuff-rome

2008-04-21 Thread Zach Cox
Resource API I want to put my head through a brick wall. That is definitely an area that could use some simplification & refinement in a future release. Thanks, Zach Ryan Sonnek-2 wrote: > > see responses inline: > > On Mon, Apr 21, 2008 at 1:07 PM, Zach Cox <[EMAIL PROTEC

Bookmarkable RSS feed with parameter using wicketstuff-rome

2008-04-21 Thread Zach Cox
I have a WebPage that takes the ID of an object in the database in the URL, extracts it from PageParameters, and displays information related to that object. I'm also using wicketstuff-rome to create an RSS feed for information related to that object, so I'll have the autodiscovery link in the se

Customize TinyMCE init settings

2008-04-20 Thread Zach Cox
I'm using the wicket-contrib-tinymce package and need to configure some of the settings that go into the init JavaScript: tinyMCE.init({ //settings from TinyMCESettings.toJavaScript are put here }); Specifically I need to set the content_css setting to get the same styles in the editor as on

FileUploadField loses user input when form validation fails

2008-04-20 Thread Zach Cox
We have a large form that contains two FileUploadFields along with many other text fields. If validation fails on one of those other text fields, the form is re-rendered along with feedback messages. When the form is re-rendered, the file path & name that the user specified for the FileUploadField

FeedbackPanel ul has no class

2008-04-05 Thread Zach Cox
In the latest early access version of Wicket in Action, page 202, it gives this as the markup that FeedbackPanel produces: Field 'name' is required. However, in real usage the ul element has no class attribute. Is this a bug in Wicket 1.3.2 or am I missing something? Thanks, Zac

Re: for Google Maps in child pages

2008-03-29 Thread Zach Cox
> body onunload="if (GUnload!='undefined') GUnload();" > > -igor > > > On Sat, Mar 29, 2008 at 10:51 AM, Zach Cox <[EMAIL PROTECTED]> wrote: >> I'm using markup inheritance to reuse a base page template for all >> pages on my site. Some of the

for Google Maps in child pages

2008-03-29 Thread Zach Cox
I'm using markup inheritance to reuse a base page template for all pages on my site. Some of these pages include Google Maps. According to best practices, the element of the page needs an onunload event handler that calls the GUnload() function to eliminate memory leaks: http://code.google.com

Re: Generated IDs in deployment vs. development modes

2008-03-22 Thread Zach Cox
ing) for components you want to control the id for, or > get the id with getmarkupid() and pass that to js code. > > -igor > > > On Sat, Mar 22, 2008 at 5:13 PM, Zach Cox <[EMAIL PROTECTED]> wrote: >> I've been running our app in development mode for quite a whil

Generated IDs in deployment vs. development modes

2008-03-22 Thread Zach Cox
I've been running our app in development mode for quite a while now and noticed that Wicket likes to append digits to the end of id attributes specified in the html templates. I just switched to deployment mode and now Wicket is completely changing the id attributes. I'm using Prototype to do som

Pagination Problems

2008-03-16 Thread Zach Cox
In our application we have three basic pages: - search page - results page - details page Search page has a form with all of the search criteria. On submit, the search is saved to the database and response page is set to the results page, with the ID of the search as a page parameter. The res

Re: wicket-contrib-tinymce

2008-03-04 Thread Zach Cox
Found it: http://wicketstuff.org/maven/repository/org/wicketstuff/wicket-contrib-tinymce/1.3-SNAPSHOT/ Also see this in svn for examples on using Wicket TinyMCE: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-tinymce-examples/ Thanks, Zach Zach Cox wrote

wicket-contrib-tinymce

2008-03-03 Thread Zach Cox
Is there a version of wicket-contrib-tinymce floating around somewhere that is compatible with Wicket 1.3.1? Thanks, Zach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Exposing a web service from a Wicket app

2008-01-30 Thread Zach Cox
We're creating a web app using Wicket and would like to expose several simple features via a RESTful web service. So basically, several URLs would return XML or JSON formatted data instead of HTML. Is there an easy way to do this in Wicket to provide a very simple web service, or should we just l