wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: No target servlet configured for uri: /
Date Thu, 20 Sep 2012 06:29:06 GMT
Hi,

See http://www.frightanic.com/2010/05/10/solution-to-error-404-srve0190e-on-websphere-6-1/

Also use setResponsePage(Class) where possible instead of setResponsePage(Page).

On Thu, Sep 20, 2012 at 9:01 AM, hannes1608 <hannes1608@yahoo.de> wrote:
> Third attempt, had to use another email address, nabble couldn't use my first
> one (always got "mail delivery failed"). I'm not sure if it will work now
> ...
>
> ---
>
> Hi!
>
> I'm pretty new to wicket and I have a problem for that I didn't find a
> solution so far.
>
> I'm working on a simple sample application with two pages, one to show a
> list of items (from database), I call it "Show999Page". The items are
> displayed in a datatable. When I click on an item I change to the
> "Edit999Page" using the following code:
>
> final DataTable<R999, String> table = new DefaultDataTable<R999,
> String>("mytable", columns, dataTableProvider, 25) {
>     @Override
>     protected Item<R999> newRowItem(String id, int index, final IModel<R999>
> model) {
>         Item<R999> item = super.newRowItem(id, index, model);
>         item.add(new AjaxEventBehavior("onclick") {
>             @Override
>             protected void onEvent(AjaxRequestTarget target) {
>                 PageParameters pp = new PageParameters();
>                 ...
>                 Show999Page.this.setResponsePage(new Edit999Page(pp));
>             }
>
>         });
>         return item;
>     };
> };
>
> This works as expected. On the Edit999Page I have a form to edit the item,
> and after submission I want to return to the Show999Page with the following
> code:
>
> final R999LDM formModel = new R999LDM(r);
> Form<R999> form = new Form<R999>("editForm", new
> CompoundPropertyModel<R999>(formModel)) {
>     @Override
>     protected void onSubmit() {
>         R999Dao.saveAndCommit(formModel.getObject());
>         Edit999Page.this.setResponsePage(new Show999Page(new
> PageParameters())); }
> };
>
> This leads to the following error message in the browser: Error 404:
> com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException: No target
> servlet configured for uri: /
>
> When I just want to stay on the EditPage and don't set a response page, I
> receive the following error: Error 404: javax.servlet.ServletException:
> java.io.FileNotFoundException: SRVE0190E: Datei nicht gefunden: /page
>
> I am working the Wicket 6 and IBM WebSphere 8
>
> Kind regards,
> Hannes
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/No-target-servlet-configured-for-uri-tp4652160.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message