Re: wicket 1.5, resource gives error in log?

2010-10-13 Thread Romeo Sheshi
hi
i have make a test and i have the error only when the src url is relative.

http://localhost:8080/test/wicket/bookmarkable/it.test.HomePage
if i have
 
i don't have the error i have the error if i put a relativ url

or

because wicket http://localhost:8080/test/wicket/bookmarkable/ + relative
url and don't find it
so you have the error
ERROR [org.apache.wicket.request.cycle.RequestCycle]  - Unable to execute
request. No suitable RequestHandler found.
URL=images/icons/arrow_down_end.png

Romeo Sheshi


2010/10/12 nino martinez wael 

> done -- https://issues.apache.org/jira/browse/WICKET-3103
>
> 2010/10/12 Igor Vaynberg 
>
> > no, that shouldnt be there. file a bug please.
> >
> > -igor
> >
> > On Tue, Oct 12, 2010 at 3:49 AM, nino martinez wael
> >  wrote:
> > > Hi
> > >
> > > I have something where I reference an image directly in html, wicket
> has
> > no
> > > idea what it should do with it so it passes the request to the servlet
> > > container.. And it works as I wanted, but should it give an error
> > message?
> > > Or am I doing something wrong?
> > >
> > > html:
> > >  
> > >
> > > Log:
> > > ERROR [org.apache.wicket.request.cycle.RequestCycle]  - Unable to
> execute
> > > request. No suitable RequestHandler found.
> > > URL=images/icons/arrow_down_end.png
> > >
> > > regards Nino
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: OnChangeAjaxBehavior() - problem with id

2010-07-20 Thread Romeo Sheshi
hi

you can try in this way setting item.getModelObject() as final
final StandardTekst st = item.getModelObject();
and in the sva button you have to save the ListTekst



final ListView list = new ListView("stListing", ListTekst) {
@Override
protected void populateItem(final ListItem item) {

TextClass st = new TextClass();

+++final StandardTekst st = item.getModelObject();
---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);
   }

2010/7/20 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 ListItem 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
>
>


Re: persisting a javascript object via wicket

2010-03-02 Thread Romeo Sheshi
hi

I used wiquery for drag'n drop very easy


Error Ajaxlink don't call onSubmit

2010-03-01 Thread Romeo Sheshi
Hi,

I change the version of wicket from 1.4.0 to 1.4.6 and i can't submit my
form.

I have an

new AjaxSubmitLink("addLink", form) {
@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
 //do things
}
}

in wicket 1.4.0 this work well but , when i change to wicket 1.4.6 this link
don't work any more.
Can anyone help?