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";));
> }}
>
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
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
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:
>
&
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
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
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
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
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
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
> 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
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
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
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
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
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
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]
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
18 matches
Mail list logo