Setting title-Tag

2009-12-15 Thread Peter Arnulf Lustig
Hi, how can I retrieve the web.xml display-name content to show it in the WebPage header titleXYZ/title ? Thank you. __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.

onClick Handle ?

2009-12-04 Thread Peter Arnulf Lustig
Hi, I'd like to create an own Link in the template document. When I create an Link via Wicket with an onClick attribute, then it calls the page everytime I click on it. What I need is a Link in that way: a onclick=funci('8912aja')Click for Item/a But the 8912aja is created dynamicially, so I

Getting server-url ?

2009-11-17 Thread Peter Arnulf Lustig
Hi, how can I get the server-url on which the wicket application is running? like http://www.serverurl.com/WicketApp/ it should return http://www.serverurl.com Thank you __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen

SimpleAttributeModifier on SubmitLink?

2009-11-03 Thread Peter Arnulf Lustig
Hi, how can I achieve something like that: abschliessen = (SubmitLink) new SubmitLink(abschliessen, antwortForm) { @Override public void onSubmit() { preQuestionInit(); Worker.ClosingTestprocedure(tp); preQuestionInit();

ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
Hi, how can I pre-select some List-Items, when showing the form with the ListMultipleChoice? Thank you for some advice! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
, Peter Arnulf Lustig u...@yahoo.dewrote: Hi, how can I pre-select some List-Items, when showing the form with the ListMultipleChoice? Thank you for some advice! - To unsubscribe, e-mail: users-unsubscr

AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
ListMultipleChoice(select, new Model((Serializable)Arrays.asList(b)), options)); On Mon, Oct 26, 2009 at 11:06 AM, Peter Arnulf Lustig u...@yahoo.dewrote: and in the html it is also showed as selected ? - Ursprüngliche Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be

AW: why is the model empty?

2009-10-21 Thread Peter Arnulf Lustig
Thomerson http://www.wickettraining.com On Tue, Oct 20, 2009 at 9:25 AM, Peter Arnulf Lustig u...@yahoo.de wrote: Does it maybe have something to do with my custom validation? I use setDefaultFormProcessing(false); because I have more submit buttons on one form

AW: how to update a form model when clicking a link

2009-10-21 Thread Peter Arnulf Lustig
Have you tried assign a Model to the component which needs to be updated? ModelString model = new ModelString(); --- assign to the component of the form. i.e. final TextField tf = new TextField(txt, model); in Link Execution - tf.setModel(mode); - Ursprüngliche Mail Von: Antoine van

why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
hi, in the submit logic the getModel().getObject() is an empty string although I set it via textfield: final Button tagSubmit = new Button(tagSubmit, Model.of()) { @Override public void onSubmit() { tagTitle.getModel().getObject() // it is empty!!

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
getting submitted? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 20, 2009 at 8:17 AM, Peter Arnulf Lustig u...@yahoo.dewrote: hi, in the submit logic the getModel().getObject() is an empty string although I set it via textfield: final Button tagSubmit = new Button

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
http://www.wickettraining.com On Tue, Oct 20, 2009 at 8:17 AM, Peter Arnulf Lustig u...@yahoo.dewrote: hi, in the submit logic the getModel().getObject() is an empty string although I set it via textfield: final Button tagSubmit = new Button(tagSubmit, Model.of

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
getting submitted? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 20, 2009 at 8:17 AM, Peter Arnulf Lustig u...@yahoo.de wrote: hi, in the submit logic the getModel().getObject() is an empty string although I set it via textfield: final Button

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
is the model empty? Sorry but when is the model object update? final TextFieldString tagTitle = new TextFieldString(tagTitle, Model.of()); just creates and in-mutable model? Or, am I missing something? Best, Ernesto On Tue, Oct 20, 2009 at 3:17 PM, Peter Arnulf Lustig u...@yahoo.dewrote: hi

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
Reinaldo Barreiro reier...@gmail.com wrote: Sorry but when is the model object update? final TextFieldString tagTitle = new TextFieldString(tagTitle, Model.of()); just creates and in-mutable model? Or, am I missing something? Best, Ernesto On Tue, Oct 20, 2009 at 3:17 PM, Peter Arnulf

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
should update the model before he gets to onSubmit -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 20, 2009 at 9:31 AM, Peter Arnulf Lustig u...@yahoo.dewrote: sets the value of the textfield programmatically on the page, and submits the form, the model should be updated

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
a quickstart that reproduces this. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 20, 2009 at 9:49 AM, Peter Arnulf Lustig u...@yahoo.dewrote: I am submitting a textfield in a form to wicket. Just the standard HTTP Post -- And everywhere it functions well -- I just can't get

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
at 9:25 AM, Peter Arnulf Lustig u...@yahoo.dewrote: Does it maybe have something to do with my custom validation? I use setDefaultFormProcessing(false); because I have more submit buttons on one form - Ursprüngliche Mail Von: Jeremy Thomerson jer...@wickettraining.com

Ajax Send TextField Input to Server without Form / Submit

2009-10-19 Thread Peter Arnulf Lustig
Hi, how is it possible to submit TextField Input to the server without having a Form (and submit) for this task? I figured out, that AjaxButton only has onSubmit() Method -- I expected also something like onClick -- - To

AW: Ajax Send TextField Input to Server without Form / Submit

2009-10-19 Thread Peter Arnulf Lustig
an AjaxFormComponentUpdatingBehavior for it I figured out, that AjaxButton only has onSubmit() Method -- I expected also something like onClick -- you can use AjaxEventBehavior to handle onClick event On Mon, Oct 19, 2009 at 8:50 AM, Peter Arnulf Lustig u...@yahoo.dewrote: Hi, how is it possible

AW: AW: Ajax Send TextField Input to Server without Form / Submit

2009-10-19 Thread Peter Arnulf Lustig
AjaxFormComponentUpdatingBehavior(onclick) { @Override protected void onUpdate(AjaxRequestTarget arg0) { System.out.println(tagTitle.getModelObject()); } })); - Ursprüngliche Mail Von: Peter Arnulf Lustig u...@yahoo.de An: users

AW: AW: Ajax Send TextField Input to Server without Form / Submit

2009-10-19 Thread Peter Arnulf Lustig
form tag? you can get is working in a simpler way, even without use an wicket button component. On Mon, Oct 19, 2009 at 9:38 AM, Peter Arnulf Lustig u...@yahoo.dewrote: I have to correct myself: I get the right Button. But the next question: how can I use the content of the textfield

AW: AW: Ajax Send TextField Input to Server without Form / Submit

2009-10-19 Thread Peter Arnulf Lustig
; } }); but why don't you what to use the html form tag? you can get is working in a simpler way, even without use an wicket button component. On Mon, Oct 19, 2009 at 9:38 AM, Peter Arnulf Lustig u...@yahoo.dewrote: I have to correct myself: I get the right Button. But the next

Null Model Error

2009-10-16 Thread Peter Arnulf Lustig
I have a List-Component and after sending a Form-Request it shows me the error: java.lang.IllegalStateException: Attempt to set model object on null model of component: mainPanel:taggingBereich:addTagging:taggingList at org.apache.wicket.Component.setDefaultModelObject(Component.java:3038)

AW: Null Model Error

2009-10-16 Thread Peter Arnulf Lustig
the model for the list. On Fri, 2009-10-16 at 07:33 +, Peter Arnulf Lustig wrote: choices, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

AW: AW: Null Model Error

2009-10-16 Thread Peter Arnulf Lustig
can anyone tell me how to use the list-component model properly? - Ursprüngliche Mail Von: Peter Arnulf Lustig u...@yahoo.de An: users@wicket.apache.org Gesendet: Freitag, den 16. Oktober 2009, 9:55:19 Uhr Betreff: AW: Null Model Error yes -- I do this here: choices = Model.of

AW: AW: Null Model Error

2009-10-16 Thread Peter Arnulf Lustig
/ListMultipleChoice.html#ListMultipleChoice%28java.lang.String,%20org.apache.wicket.model.IModel,%20org.apache.wicket.model.IModel,%20org.apache.wicket.markup.html.form.IChoiceRenderer%29 On Fri, Oct 16, 2009 at 6:52 AM, Peter Arnulf Lustig u...@yahoo.dewrote: can anyone tell me how to use the list

AW: AW: Null Model Error

2009-10-16 Thread Peter Arnulf Lustig
such a model ? I have used org.apache.wicket.model.Model in one project for example like: new ListMultipleChoice(id, new Model(), choises, render) On Fri, Oct 16, 2009 at 9:00 AM, Peter Arnulf Lustig u...@yahoo.dewrote: wow - great information But how can I create / define such a model -- I can't

Ajax Update ListMultipleChoice

2009-10-15 Thread Peter Arnulf Lustig
Hi, how can I refresh the ListMultipleChoice compononent? I use the IModel and IChoiceRenderer Component for filling the list. But it should be refreshed automaticly when doing an update. - To unsubscribe, e-mail:

How to add list-entities dynamicly to ListMultipleChoice Component?

2009-10-15 Thread Peter Arnulf Lustig
And how is that done via AJAX ? Basicly I'd like to have a input textfield where the user can type a word into, and then after submitting the field he can see it in a ListMultipleChoice Component. - To unsubscribe, e-mail:

AW: How to add list-entities dynamicly to ListMultipleChoice Component?

2009-10-15 Thread Peter Arnulf Lustig
use an ajax behaviour, or put it into an form with ajax submit. in your handle code, you update the model object on your listmultiplechoise, and add it or its parent component to ajaxrequesttarget On Thu, Oct 15, 2009 at 9:56 AM, Peter Arnulf Lustig u...@yahoo.dewrote: And how is that done

Many forms on one page and submit handling

2009-10-13 Thread Peter Arnulf Lustig
Hi, I have one Form-Class which has one main form -- in this form I've got some more forms. Each of them has their own submit button. How can I tell wicket, that it only has to render (validation and so on) only for the form, where the button was pressed? thanks!

AW: Many forms on one page and submit handling

2009-10-13 Thread Peter Arnulf Lustig
Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Dienstag, den 13. Oktober 2009, 15:44:07 Uhr Betreff: Re: Many forms on one page and submit handling you can add an ComponentFeedbackPanel for each form On Tue, Oct 13, 2009 at 10:39 AM, Peter Arnulf Lustig u

AW: Many forms on one page and submit handling

2009-10-13 Thread Peter Arnulf Lustig
ComponentFeedbackMessageFilter rather than ContainerFeedbackMessageFilter On Tue, Oct 13, 2009 at 10:46 AM, Peter Arnulf Lustig u...@yahoo.dewrote: yes I do it like that. But nevertheless it shows the messages everywhere on each form. check this out: public class CreateQuestionsForm extends Form

AW: How do you achieve persistency

2009-10-07 Thread Peter Arnulf Lustig
of this with Hibernate, I always personally just found Hibernate a bit more complex and 'get in my way' then I needed. Try the quick tutorial they provide and you'll quickly know if its for you or not. John- On Tue, Oct 6, 2009 at 2:34 AM, Peter Arnulf Lustig u...@yahoo.de wrote: What's

AW: How do you achieve persistency

2009-10-07 Thread Peter Arnulf Lustig
have multiple filters defined in your web.xml , they are chained by your application server. 2009/10/7 Peter Arnulf Lustig u...@yahoo.de Great piece of software! But how did you manage to replace the web.xml filterclass into: filter

org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Peter Arnulf Lustig
get this error always! I don't understand why. this is my hibernate.cfg.xml hibernate-configuration session-factory name=session1 property name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property

AW: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Peter Arnulf Lustig
transactions properly. Or you start your transaction manually, or if you like spring, you can let spring manage it. (just add your transction annotations to your services, and, done ! On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf Lustig u...@yahoo.dewrote: get this error always! I don't understand

AW: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Peter Arnulf Lustig
that it is in most cases a bad habit to use manual transaction management... On Tue, Oct 6, 2009 at 9:44 AM, Peter Arnulf Lustig u...@yahoo.dewrote: How can I do it manually? For example: I have a DataProvider class with a method: public static Administrator getAdministrator(Integer id

How do you achieve persistency

2009-10-06 Thread Peter Arnulf Lustig
What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
Hi, why can't I cast a Websession to a SecurePageSession-Class which extends Websession?! java.lang.ClassCastException: org.apache.wicket.protocol.http.WebSession cannot be cast to org.omikron.test.SecurePageSession In the book I bought (Wicket in Praxis, a german book for wicket 1.4) the

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
probably are dealing with a normal WebSession. Is your Application creating the correct Session instance (override the newSession()) On Mon, Oct 5, 2009 at 1:19 PM, Peter Arnulf Lustig u...@yahoo.dewrote: Hi, why can't I cast a Websession to a SecurePageSession-Class which extends Websession

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
. Is your Application creating the correct Session instance (override the newSession()) On Mon, Oct 5, 2009 at 1:19 PM, Peter Arnulf Lustig u...@yahoo.dewrote: Hi, why can't I cast a Websession to a SecurePageSession-Class which extends Websession?! java.lang.ClassCastException

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
of SecurePageSession On Mon, Oct 5, 2009 at 8:43 AM, Peter Arnulf Lustig u...@yahoo.dewrote: I have overwritten the newSession Method: public class Application extends WebApplication { @Override protected void init() { super.init(); getSecuritySettings

Show Validation Errors

2009-09-30 Thread Peter Arnulf Lustig
Hi, I am trying to show validation errors on a page. Somehow it won't function! But I don't understand why? I mean I am using the right Validation class... Why don't wicket show any error when the user does a wrong input? Thanks! import java.util.Date; import

AW: Show Validation Errors

2009-09-30 Thread Peter Arnulf Lustig
that, wicket doesn't even know where and how to display the messages. Matt Peter Arnulf Lustig wrote: Hi, I am trying to show validation errors on a page. Somehow it won't function! But I don't understand why? I mean I am using the right Validation class... Why don't wicket show any error when

How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
Hi, I'd like to create a delete link where you can delete a row in a datagrid. But when you click on the delete link, the delete label should change and a warning occurs: Do you really want to delete xyz. After the second click it finally deletes the content. How can I achieve that? Could you

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
In addition: my specific problem is, that after clicking on a link which is generated in the datagrid, I am not able to manipulate other components!? How is this possible? - Ursprüngliche Mail Von: Peter Arnulf Lustig u...@yahoo.de An: users@wicket.apache.org Gesendet: Mittwoch

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
... that once clicked actually deletes your entry... and refreshes the datagrid. You could even use the same link and have a flag that says userWantsToDeleteRow and use it to conditionally change the actions to do and the contents to display. Best, Ernesto On Wed, Sep 30, 2009 at 11:29 AM, Peter Arnulf Lustig

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
, new ResourceReference(EmptyIconReference.class, list-remove.png))); deleteButton.add(new SimpleAttributeModifier(onclick, return confirm('Are you sure?');)); add(deleteButton); } I hope this helps. Regards, Linda Peter Arnulf Lustig wrote: Hi, I'd like

AW: Rendered html to string

2009-09-30 Thread Peter Arnulf Lustig
getMarkupStream().toString(); maybe? - Ursprüngliche Mail Von: Luca Provenzani eufor...@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr Betreff: Rendered html to string Hi all, does someone know how to render a wicket component into a

AW: AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
. September 2009, 13:37:44 Uhr Betreff: Re: AW: How would you realize a delete-Link in a datagrid row? I used this with a AjaxFallbackDefaultDataTable and then I didn't have to tell it that the DB had changed. Peter Arnulf Lustig wrote: Thank you! Your solution is really nice. It functions

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
an example. Peter Arnulf Lustig wrote: Hi, I'd like to create a delete link where you can delete a row in a datagrid. But when you click on the delete link, the delete label should change and a warning occurs: Do you really want to delete xyz. After the second click it finally deletes

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
then ajax is used to refresh the dataview. Let me know if you want to use this approach and I will post an example. Peter Arnulf Lustig wrote: Hi, I'd like to create a delete link where you can delete a row in a datagrid. But when you click on the delete link, the delete label