Re: Wicket 1.5-RC3 with hibernate-annotation

2011-04-27 Thread Lucky Spiff
That's it, I forced the usage of slf4j 1.6.1 and the propblem was solved.
Thank you!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-RC3-with-hibernate-tp3477380p3478670.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



OnChangeAjaxBehavior() - problem with id

2010-07-20 Thread lucky

Hi Colleagues, 
  
I have listView where in TextArea I have used onChangeAjaxBehavior. 
In update() I set edited text to the object. 
Finally in saveButton (this button is required) via savingMethod() I add
changes to database and then refresh form. 
The problem is that when text is edited in given row (item) at the ListView
after refresh action the edited text is assigned to the last item at the
list. 
I know that probably I must use in any way id but I don’t know exactly how
to do it. 
Generally saying in my application I must have one saveButton that will be
common for all items at the list. 
This button is also used to save new added item via separate text field in
the form. This works fine.   
Can you suggest please solution. This is very urgent for me. 
Please also eventually suggest solution without OnChangeAjaxBehavior.
Below is my code. 



Regards, 
Rafal 

  

…… 
saveButton.add(new AjaxFormComponentUpdatingBehavior(onclick){ 
protected void onUpdate(AjaxRequestTarget target) { 
object.savingMethod(st);  //Saving changes to database 
target.addComponent(form); 
} 
form.add(saveButton); 

….. 

final ListView list = new ListView(stListing, ListTekst) { 
@Override 
protected void populateItem(final ListItemStandardTekst item) { 
  
TextClass st = new TextClass(); 
st = item.getModelObject(); 

final TextArea  tekst  = new TextArea (stTekst,new PropertyModel(st,
tekst)); 
tekst.add(new OnChangeAjaxBehavior() { 
  @Override 
  protected void onUpdate(AjaxRequestTarget target) { 
String editedText = (String) tekst.getModelObject(); 
st.setTekst(editedText); 
} 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/OnChangeAjaxBehavior-problem-with-id-tp2296313p2296313.html
Sent from the Wicket - User 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