problem with editable datatable

2012-11-30 Thread hannes1608
Hi,

I am using Wicket 6.3. I have searched a lot, but somehow didn't find how to
solve this: I would like to have texfields and checkboxes in a datatable.
The following code is not working:

Java:
ListIColumnlt;Feststellung, String columns = new
ArrayListIColumnlt;Feststellung, String();
columns.add(new PropertyColumnFeststellung, String(new
ModelString(Status), status) {
@Override
public void populateItem(ItemICellPopulatorlt;Feststellung item,
String componentId, IModelFeststellung rowModel) {
super.populateItem(item, componentId, rowModel);
item.add(new CheckBox(status));
}
});
this.table = new DefaultDataTableFeststellung, String(feststellungen,
columns, this.dataProvider, 10);

Html:
form wicket:id=tableForm


/form

I get the following error message:
Last cause: The component(s) below failed to render. Possible reasons could
be that: 1) you have added a component in code but forgot to reference it in
the markup (thus the component will never be rendered), 2) if your
components were added in a parent container then make sure the markup for
the child container includes them in wicket:extend.

1. [CheckBox [Component id = status]]
2. [CheckBox [Component id = status]]
3. [CheckBox [Component id = status]]

Is it possible what I want to do?

Kind regards,
Hannes



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-with-editable-datatable-tp4654370.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: problem with editable datatable

2012-11-30 Thread hannes1608
thank you, but then I get the following error:

Last cause: The component(s) below failed to render. Possible reasons could
be that: 1) you have added a component in code but forgot to reference it in
the markup (thus the component will never be rendered), 2) if your
components were added in a parent container then make sure the markup for
the child container includes them in wicket:extend.

1. [MyPanel [Component id = panel]]
2. [CheckBox [Component id = status]]
3. [MyPanel [Component id = panel]]
4. [CheckBox [Component id = status]]
5. [MyPanel [Component id = panel]]
6. [CheckBox [Component id = status]]



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-with-editable-datatable-tp4654370p4654375.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: No target servlet configured for uri: /

2012-09-21 Thread hannes1608
Works with Glassfish 3 and JBoss 7. That shows that my code is ok, but I
still have to figure out how to get it to work with WebSphere 8.

Hannes



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/No-target-servlet-configured-for-uri-tp4652160p4652219.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: No target servlet configured for uri: /

2012-09-21 Thread hannes1608
No, I didn't ask, we are just evaluating a couple of web frameworks, and we
are doing this for another company, we don't use websphere in our company. 
But you are right, next time we should ask ;)



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/No-target-servlet-configured-for-uri-tp4652160p4652225.html
Sent from the Users forum mailing list archive at Nabble.com.

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



No target servlet configured for uri: /

2012-09-20 Thread hannes1608
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 DataTableR999, String table = new DefaultDataTableR999,
String(mytable, columns, dataTableProvider, 25) {
@Override
protected ItemR999 newRowItem(String id, int index, final IModelR999
model) {
ItemR999 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);
FormR999 form = new FormR999(editForm, new
CompoundPropertyModelR999(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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: No target servlet configured for uri: /

2012-09-20 Thread hannes1608
Hi,

thank you for your reply. I've already set this property, but that didn't
change anything. I tried now with servlet instead of filter - without
success.

If I user setResponsePage(Class) instead of setResponsePage(Page), I even
get an error when going from Show999Page to Edit999Page.

Websphere was not my choice ;) I will try with glassfish or jboss if the
same problems occur ...

Kind regards,
Hannes



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/No-target-servlet-configured-for-uri-tp4652160p4652163.html
Sent from the Users forum mailing list archive at Nabble.com.

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