Setting -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 XYZ ? Thank you. __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com

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: Click for Item But the 8912aja is created dynamicially, so I can't create them in the tem

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 heraus

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();

AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
;); add(new ListMultipleChoice("select", new Model((Serializable)Arrays.asList("b")), options)); On Mon, Oct 26, 2009 at 11:06 AM, Peter Arnulf Lustig wrote: > and in the html it is also showed as "selected" ? > > > > - Ursprüngliche Mail >

AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
'selected' items, does already contain the selected items. Your model probably maps to an object property. (in this case, the property is a collection(List/set) . So, add te 'pre-selection' to the collection, and the ListMultipleChoice will follow.. On Mon, Oct 26, 2009 at 1:53

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: users-

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? Model model = new Model(""); ---> 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 Wel An

AW: why is the model empty?

2009-10-21 Thread Peter Arnulf Lustig
t on the field). So, bypassing validation means that you must also bypass getting your models updated. You can call textfield.getValue() (or similar - can't remember exact name) to get the raw submitted value. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 20, 2009 at 10:00 AM,

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
eremy Thomerson > http://www.wickettraining.com > > > > On Tue, Oct 20, 2009 at 9:16 AM, Peter Arnulf Lustig >wrote: > > > hey martijn -- But there is a string submitted! > > Actually it must be printed! But it is null. > > > > Is the final declaratio

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
this. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 20, 2009 at 9:49 AM, Peter Arnulf Lustig wrote: > 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 it why it won't > func

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
ted, Wicket 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 wrote: > > > "sets the value of the textfield programmatically > on the page, and submits the form, the model shou

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
esto Reinaldo Barreiro < reier...@gmail.com> wrote: > Sorry but when is the model object update? > final TextField tagTitle = new TextField("tagTitle", > Model.of("")); > > just creates and in-mutable model? Or, am I missing something? > > Best,

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
l empty? Sorry but when is the model object update? final TextField tagTitle = new TextField("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 wrote: > hi

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
: Re: why is the model empty? How about! creating! a quickstart! and sending it! to us! (Oh, and no need for so many exclamation points. It could be interpreted as shouting) -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 20, 2009 at 9:16 AM, Peter Arnulf Lustig wrote: >

AW: why is the model empty?

2009-10-20 Thread Peter Arnulf Lustig
> > > > On Tue, Oct 20, 2009 at 8:17 AM, Peter Arnulf Lustig wrote: > >> hi, >> >> in the submit logic the getModel().getObject() is an empty string although >> I set it via textfield: >> >> final Button tagSubmit = new Button("tagSubmit"

AW: why is the model empty?

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

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: AW: Ajax Send TextField Input to Server without Form / Submit

2009-10-19 Thread Peter Arnulf Lustig
+ "=+Wicket.$('"+tagTitle.getMarkupId()+"').value"; } }); 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

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

2009-10-19 Thread Peter Arnulf Lustig
)+"').value"; } }); 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 wrote: > I have to correct myself: I get the ri

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

2009-10-19 Thread Peter Arnulf Lustig
"tagSubmit").add(new AjaxFormComponentUpdatingBehavior("onclick") { @Override protected void onUpdate(AjaxRequestTarget arg0) { System.out.println(tagTitle.getModelObject()); } })); - Ursprüngliche Mail

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

2009-10-19 Thread Peter Arnulf Lustig
yes, you can use 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 wrote: > Hi, > > how is it possible

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 un

AW: AW: Null Model Error

2009-10-16 Thread Peter Arnulf Lustig
sed 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 wrote: > wow - great information > > But how can I create / define such a model -- I can't find anythi

AW: AW: Null Model Error

2009-10-16 Thread Peter Arnulf Lustig
ket/markup/html/form/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 wrote: > can anyone tell me how to use the list-c

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 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((List) new ArrayList

AW: Null Model Error

2009-10-16 Thread Peter Arnulf Lustig
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.

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: How to add list-entities dynamicly to ListMultipleChoice Component?

2009-10-15 Thread Peter Arnulf Lustig
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 wrote: > And how is that done via AJAX ? > > Basicly I&

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:

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: users-unsu

AW: Many forms on one page and submit handling

2009-10-13 Thread Peter Arnulf Lustig
rather than ContainerFeedbackMessageFilter On Tue, Oct 13, 2009 at 10:46 AM, Peter Arnulf Lustig wrote: > 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: Many forms on one page and submit handling

2009-10-13 Thread Peter Arnulf Lustig
e Liste neu!"); } } } - Ursprüngliche Mail Von: Pedro Santos 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

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: How do you achieve persistency

2009-10-07 Thread Peter Arnulf Lustig
your web.xml , they are chained by your application server. 2009/10/7 Peter Arnulf Lustig > Great piece of software! > > But how did you manage to replace > > the web.xml filterclass into: > > > org.apache.cayenne.conf.WebApplicationContextFilter > > when Wic

AW: How do you achieve persistency

2009-10-07 Thread Peter Arnulf Lustig
ibernate 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 wrote: > What's the fast and easy way? > > I am asking bec

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

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

2009-10-06 Thread Peter Arnulf Lustig
manual transaction management... On Tue, Oct 6, 2009 at 9:44 AM, Peter Arnulf Lustig wrote: > How can I do it manually? > > > For example: I have a "DataProvider" class with a method: > > public static Administrator getAdministrator(Integer id) { >

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

2009-10-06 Thread Peter Arnulf Lustig
ons 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 wrote: > get this error always! I don't understand why. >

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 org.hibernate.dialect.MySQLDialect com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/mydb root org.hibernate.context.ThreadLocalSessionContext Do

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
5, 2009 at 8:43 AM, Peter Arnulf Lustig wrote: > I have overwritten the newSession Method: > > > > public class Application extends WebApplication { > >@Override >protected void init() { >super.init(); >getSecuritySettings(

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
the correct Session instance (override the newSession()) On Mon, Oct 5, 2009 at 1:19 PM, Peter Arnulf Lustig wrote: > Hi, > > why can't I cast a Websession to a SecurePageSession-Class which extends > Websession?! > > > java.lang.ClassCastException: org.apache.wicke

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
your Application creating the correct Session instance (override the newSession()) On Mon, Oct 5, 2009 at 1:19 PM, Peter Arnulf Lustig wrote: > Hi, > > why can't I cast a Websession to a SecurePageSession-Class which extends > Websession?! > > > ja

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 au

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

2009-09-30 Thread Peter Arnulf Lustig
the row is deleted 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

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

2009-09-30 Thread Peter Arnulf Lustig
ach 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 should change and > a warning occurs: "Do you really want to delete xyz

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

2009-09-30 Thread Peter Arnulf Lustig
hr 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 we

AW: Rendered html to string

2009-09-30 Thread Peter Arnulf Lustig
getMarkupStream().toString(); maybe? - Ursprüngliche Mail Von: Luca Provenzani 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 String? Thanks Luca

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

2009-09-30 Thread Peter Arnulf Lustig
age("deleteIcon", new ResourceReference(EmptyIconReference.class, "list-remove.png"))); deleteButton.add(new SimpleAttributeModifier("onclick", "return confirm('Are you sure?');")); add(deleteButton); } I hope this helps. Regard

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

2009-09-30 Thread Peter Arnulf Lustig
ning... 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

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 An: users@wicket.apache.org Gesendet: Mittwoch, den 30. September

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: Show Validation Errors

2009-09-30 Thread Peter Arnulf Lustig
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 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 org.apache.wicket.markup.html.f