Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc

2007-06-12 Thread Francisco Diaz Trepat - gmail

thanks,
f(t)

On 6/12/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:


On Tue, 12 Jun 2007, Francisco Diaz Trepat - gmail wrote:
> One more thing. Do I get version 1.3 through the svn?

Or

  http://www.wicketstuff.org/maven/repository/org/apache
/wicket/wicket-jdk14/

(examples one level above)

- Timo


--
Timo Rantalaiho
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc

2007-06-12 Thread Timo Rantalaiho
On Tue, 12 Jun 2007, Francisco Diaz Trepat - gmail wrote:
> One more thing. Do I get version 1.3 through the svn?

Or

  http://www.wicketstuff.org/maven/repository/org/apache/wicket/wicket-jdk14/

(examples one level above)

- Timo

-- 
Timo Rantalaiho  
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc

2007-06-12 Thread Francisco Diaz Trepat - gmail

One more thing. Do I get version 1.3 through the svn?

How long to the beta 2 in the incubator?

f(t)

On 6/11/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:


* Francisco Diaz Trepat - gmail:
>
> Anybody knows how to change the displayed name of an AjaxSubmitButton?
>
> I just tried to do a .setMode(new ResourceModel(bla bla But it
didn't
> work.
>
>
> I have an input:
>
> 

Please always mention the version of Wicket you are using.

In Wicket 1.3, this is supposed to work.  Set a breakpoint in
Button#onComponentTag() on the line tag.put("value", value);

Best regards,
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc

2007-06-12 Thread Francisco Diaz Trepat - gmail

Sorry, right. >_> Wicket Version 1.2.5 thanks Jean Baptiste.

f(t)

On 6/11/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:


* Francisco Diaz Trepat - gmail:
>
> Anybody knows how to change the displayed name of an AjaxSubmitButton?
>
> I just tried to do a .setMode(new ResourceModel(bla bla But it
didn't
> work.
>
>
> I have an input:
>
> 

Please always mention the version of Wicket you are using.

In Wicket 1.3, this is supposed to work.  Set a breakpoint in
Button#onComponentTag() on the line tag.put("value", value);

Best regards,
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc

2007-06-11 Thread Jean-Baptiste Quenot
* Francisco Diaz Trepat - gmail:
> 
> Anybody knows how to change the displayed name of an AjaxSubmitButton?
> 
> I just tried to do a .setMode(new ResourceModel(bla bla But it didn't
> work.
> 
> 
> I have an input:
> 
> 

Please always mention the version of Wicket you are using.

In Wicket 1.3, this is supposed to work.  Set a breakpoint in
Button#onComponentTag() on the line tag.put("value", value);

Best regards,
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc

2007-06-08 Thread Francisco Diaz Trepat - gmail

hi all,

Anybody knows how to change the displayed name of an AjaxSubmitButton?

I just tried to do a .setMode(new ResourceModel(bla bla But it didn't
work.


I have an input:



with the following code:

//create the ajax submit button
 AjaxSubmitButton ajaxButton = new AjaxSubmitButton("createButton",
form) {
protected void onSubmit(AjaxRequestTarget target, Form form) {
   if(dossierModel.getId()!=null&&dossierModel.getId().length()>0){
  modifyDossier();
  //Print fields
  info("Changed: "+dossierModel.printFields());
   }else{
  createDossier();
  //Print fields
  info("New: "+dossierModel.printFields());
   }

   target.addComponent(feedback);
}
protected void onError(AjaxRequestTarget target, Form form) {

   // repaint the feedback panel so errors are shown
   target.addComponent(feedback);
}
//add model for new or modify button
//very ugly statement, but possible due to wicket's architecture
 };

 if(dossierId==null){
ajaxButton.setModel(new ResourceModel("fields.btnNew"));
 }else{
ajaxButton.setModel(new ResourceModel("fields.btnModify"));
 }
 //add submit button
 form.add(ajaxButton);



regards,
f(t)
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user