[Wicket-user] Trouble with characters: Æ Ø Å

2006-02-21 Thread Nino Wael
Title: Trouble with characters: Æ Ø Å






Hi 

Im having a bit of a trouble using wicket with Danish characters, they do not get displayed correctly the first time a page is displayed on postbacks the show like supposed to.

I’ve buildt a very simple example based on the Quickstart tutorial for eclipse (so the web server is jetty) and included a form and feedback message take from one of the other examples. <>  <> 

Im not sure if its Jetty acting up or Wicket?

Any help much appriciated, please write if something is unclear or you need further explanations.



-Regards Nino





Title: JOBINDSATS





Sygedagpengemodtagere

 		
 			INFO
 			Tilgang
 			MÃ¥linger
 			

 			
 		
 		
 		feedbackmessages will be put here





Index.java
Description: Index.java


[Wicket-user] RE: [Wicket-user] Re: [Wicket-user] Troubl e with characters: Æ Ø Å

2006-02-21 Thread Nino Wael
YES! Thanks, and might I add DOH!


-regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juergen 
Donnerstag
Sent: Tuesday, February 21, 2006 2:59 PM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Re: [Wicket-user] Trouble with characters: Æ Ø Å

Converting the file to UTF-8 seems to fix the problem.

Juergen

On 2/21/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> Jow exactly should the content look like?
>
> Juergen
>
> On 2/21/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > I haven't checked your markup. But wicket defaults to utf-8. The most
> > common mistake is that people don't store the markup in utf-8 even
> > though they put  or  in the markup.
> >
> > Juergen
> >
> > On 2/21/06, Nino Wael <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi
> > >
> > > Im having a bit of a trouble using wicket with Danish characters, they do
> > > not get displayed correctly the first time a page is displayed on 
> > > postbacks
> > > the show like supposed to.
> > >
> > > I've buildt a very simple example based on the Quickstart tutorial for
> > > eclipse (so the web server is jetty) and included a form and feedback
> > > message take from one of the other examples. <> <>
> > >
> > > Im not sure if its Jetty acting up or Wicket?
> > >
> > > Any help much appriciated, please write if something is unclear or you 
> > > need
> > > further explanations.
> > >
> > >
> > >
> > > -Regards Nino
> > >
> > >
> > >
> > >
> >
>


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] RadioButtons with a twist?

2006-02-22 Thread Nino Wael
Title: RadioButtons with a twist?






Hi 

Im currently trying to figure out how to implement radiobutton with additional information meaning that I have somesort of control which carries a ID, short text and descriptive information for the radio button, I’ve seen something about having the custom ID but im still needing the descriptive text. Im not sure if this is something that standard wicket can do so I might have to create my own control?


Nino Martinez Vazquez Wael
Konsulent
PS Public

T: ჹ 70 28 29 40, M: ჹ 27 21 29 40
E: [EMAIL PROTECTED]

SAS Institute A/S
Købmagergade 7-9
1150 København K
www.sas.com/dk

T: ჹ 70282870, F: ჹ 70282991

SAS...  The Power to Know

 

The information in this e-mail and any attached files is confidential. It is intended solely for the use of the addressee. Any unauthorized disclosure or use is prohibited. If you are not the intended recipient of the message, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. The views of the author may not necessarily reflect those of the company.






[Wicket-user] Listview: cannot instantiate the type

2006-02-22 Thread Nino Wael
Title: Listview: cannot instantiate the type






Hi 

Im having trouble instantiateing the Listview control, I get the error ”Cannot Instiantiate the type ListView”. This is within these lines the errors occur:

private  wicket.markup.html.list.ListView myList;

…

    List forklaring = Arrays.asList(new String[] { "Aktuelle forløb fordelt på varighed", "antal forløb", "Forløb pr. berørt", "æ", "ø", "å" });

    myList          = new wicket.markup.html.list.ListView("list",forklaring);

…

This part is taken  from the javadoc documentation:

add(new ListView("rows", listData)

which I belive is pretty similar to the code which I’ve written.

Nino Martinez Vazquez Wael
Konsulent
PS Public

T: ჹ 70 28 29 40, M: ჹ 27 21 29 40
E: [EMAIL PROTECTED]

SAS Institute A/S
Købmagergade 7-9
1150 København K
www.sas.com/dk

T: ჹ 70282870, F: ჹ 70282991

SAS...  The Power to Know

 

The information in this e-mail and any attached files is confidential. It is intended solely for the use of the addressee. Any unauthorized disclosure or use is prohibited. If you are not the intended recipient of the message, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. The views of the author may not necessarily reflect those of the company.






RE: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Nino Wael









Thanks, looking at the
example again I see that.

 

However I have some
difficulty seeing how I would be able to grab the contents of my List “forklaringer”
from within the populateItem. Could you give an example?

 



-Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nick Heudecker
Sent: Thursday, February 23, 2006
8:42 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Listview: cannot instantiate the type



 

ListView is
abstract.  You must implement the populateItem(...) method:

new ListView("list", forklaring) {
    public void populateItem(ListItem item) {
    // add stuff to item.
    }
};



On 2/23/06, Nino Wael <[EMAIL PROTECTED]> wrote: 

Hi 

Im having trouble instantiateing the Listview control, I get the error "Cannot Instiantiate
the type ListView" . This is within these lines the errors occur:

private  wicket.markup.html.list.ListView myList;

…

    List forklaring = Arrays.asList(new String[] {
"Aktuelle forløb fordelt på varighed", "antal forløb",
"Forløb pr. berørt", "æ", "ø", "å" }); 

  

myList     
    = new wicket.markup.html.list. ListView("list",forklaring); 

…

This part is taken  from the javadoc documentation:

add(new ListView("rows", listData)

which I belive is pretty similar to the code which I've written .

-Nino 



 








RE: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Nino Wael








Very nice, bringing my
mind back to the mail I wrote earlier(radio buttons with a twist)  I guess I
then could do the following, code might not be 100% accurate:

 

 

List maalinger = Arrays.asList(new
String[][] { {"Aktuelle forløb fordelt på
varighed","description"}, {"antal
forløb","description"}, {"Forløb pr.
berørt","description"}});

 

    myList    = new
wicket.markup.html.list.ListView("maaling2",maalinger)

    {

      public
void populateItem(wicket.markup.html.list.ListItem item)

      {

        String[]
myItem=(String[]) item.getModelObject();

        String
radio= myItem[0];

        String
info= myItem[1];

        

    item.add(new
Radio("radio”, radio));

    item.add(new
Label("info",info));

       }

       };

 

    

    form.add(myList);

 

Markup:

 

<table  wicket:id="maaling2"
>

   <tr>

<td wicket:id="radio"> td><td wicket:id="info"> td> 

tr>

table>

 

 

 



 







From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: Thursday, February 23, 2006
10:22 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Listview: cannot instantiate the type



 

populateItem gives you
the ListItem that is being created.

add your controls to the item in the populateItem method.

protected void populateItem(ListItem item) {
    item.add(new Label("name", new PropertyModel(
item.getModelObject(), "name")));
}

In your case that would be:
protected void populateItem(ListItem item) {
    item.add(new Label("name",
item.getModelObjectAsString()));
}

and in the markup:

text
goes here

Martijn



On 2/23/06, Nino Wael <[EMAIL PROTECTED]> wrote:



Thanks, looking at the example again I see that.

 

However I have some difficulty seeing how I would
be able to grab the contents of my List "forklaringer" from within
the populateItem. Could you give an example?

 



-Nino











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Nick Heudecker
Sent: Thursday, February 23, 2006
8:42 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Listview: cannot instantiate the type



 

ListView is abstract.  You must implement the
populateItem(...) method:

new ListView("list", forklaring) {
    public void populateItem(ListItem item) {
    // add stuff to item.
    }
};



On
2/23/06, Nino Wael
<
[EMAIL PROTECTED]> wrote: 

Hi 

Im having trouble instantiateing the Listview control, I get the error "Cannot Instiantiate
the type ListView" . This is within these lines the errors occur:

private  wicket.markup.html.list.ListView myList;

…

    List forklaring = Arrays.asList(new String[] {
"Aktuelle forløb fordelt på varighed", "antal forløb",
"Forløb pr. berørt", "æ", "ø", "å" }); 

  

myList     
    = new wicket.markup.html.list. ListView("list",forklaring); 

…

This part is taken  from the javadoc documentation:

add(new ListView("rows", listData)

which I belive is pretty similar to the code which I've written .

- Nino 



 








-- 
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1









RE: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Nino Wael











Even more nice, this is working exactly as I thought. 

 

This is actually pretty easy to work with.

 

Thanks for helping out.

 

-Regards Nino

 







From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: Thursday, February 23, 2006
11:02 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Listview: cannot instantiate the type



 

Yep,

only attach the listview not to the table, but to the tr. In your current
implementation this will render the following:


Actuelle forlob fordelt pa
varigheddescription 


antal
forlobdescription


Forlob pr
berortdescription


Martijn



On 2/23/06, Nino Wael <[EMAIL PROTECTED]> wrote:



Very nice, bringing my mind back to the mail I
wrote earlier(radio buttons with a twist)  I guess I then could do the
following, code might not be 100% accurate:

 

 

List maalinger = Arrays.asList(new String[][] {
{"Aktuelle forløb fordelt på varighed","description"},
{"antal forløb","description"}, {"Forløb pr.
berørt","description"}});

 

    myList    = new
wicket.markup.html.list.ListView("maaling2",maalinger)

    {

   
 
public void populateItem(wicket.markup.html.list.ListItem item)

   
 
{

   
   
String[] myItem=(String[]) item.getModelObject();

   
   
String radio= myItem[0];

   
   
String info= myItem[1];

   
   


   
item.add(new Radio("radio", radio));

 
 
item.add(new Label("info",info));

  
    }

       };

 

    

   
form.add(myList);

 

Markup:

 

< table  wicket:id = "maaling2" >

  
< tr >

< td wicket:id = "radio" >  td >< td wicket:id = "info" >  td > 



 tr >

 table >

 

 

 



 







From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Martijn Dashorst
Sent: Thursday, February 23, 2006
10:22 AM




To: wicket-user@lists.sourceforge.net
Subject: Re:
[Wicket-user] Listview: cannot instantiate the type







 

populateItem gives you the ListItem that is being
created.

add your controls to the item in the populateItem method.

protected void populateItem(ListItem item) {
    item.add(new Label("name", new PropertyModel( item.getModelObject(),
"name")));
}

In your case that would be:
protected void populateItem(ListItem item) {
    item.add(new Label("name",
item.getModelObjectAsString()));
}

and in the markup:

text
goes here

Martijn



On
2/23/06, Nino Wael
<
[EMAIL PROTECTED]> wrote:



Thanks, looking at the example again I see that.

 

However I have some difficulty seeing how I would
be able to grab the contents of my List "forklaringer" from within
the populateItem. Could you give an example?

 



-Nino











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Nick Heudecker
Sent: Thursday, February 23, 2006
8:42 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Listview: cannot instantiate the type



 

ListView is abstract.  You must implement the
populateItem(...) method:

new ListView("list", forklaring) {
    public void populateItem(ListItem item) {
    // add stuff to item.
    }
};



On
2/23/06, Nino Wael
<
[EMAIL PROTECTED]> wrote: 

Hi 

Im having trouble instantiateing the Listview control, I get the error "Cannot Instiantiate
the type ListView" . This is within these lines the errors occur:

private  wicket.markup.html.list.ListView myList;

…

    List forklaring = Arrays.asList(new String[] {
"Aktuelle forløb fordelt på varighed", "antal forløb",
"Forløb pr. berørt", "æ", "ø", "å" }); 

  

myList     
    = new wicket.markup.html.list. ListView("list",forklaring); 

…

This part is taken  from the javadoc documentation:

add(new ListView("rows", listData)

which I belive is pretty similar to the code which I've written .

- Nino 



 








-- 
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 












-- 
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1









[Wicket-user] RE: [Wicket-user] Re: [Wicket-user] Troubl e with characters: Æ Ø Å

2006-02-23 Thread Nino Wael
When I resaved the markup in UTF-8 chars were displayed correctly.


-Nino
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Piotr Bzdyl
Sent: Tuesday, February 21, 2006 10:14 PM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Re: [Wicket-user] Trouble with characters: Æ Ø Å

Hello,
>
> Im having a bit of a trouble using wicket with Danish characters, they 
> do not get displayed correctly the first time a page is displayed on 
> postbacks the show like supposed to.
>
I have the same problem with the Polish characters. I open bookmarkable 
page and the Polish characters doesn't display correctly, then I do the 
submit, page is redisplayed and the Polish characters are OK.

Best regards,
Piotr


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket Requirements?

2006-02-23 Thread Nino Wael
Title: Wicket Requirements?






I’ve tried to look on the wicket home page to see what the minimum requirements are for wicket, but haven’t been able to find any clear message.

Any one who know what they are? Im thinking of Java version and such, does it run with Tomcat 4.1.18?


Regards Nino




[Wicket-user] Onsubmit giving error? Missing model?

2006-02-28 Thread Nino Wael
Hi
 
Im having some trouble getting my onsubmit to work, looking at one of the 
simple examples it looks like im doing the right thing(ive been looking at 
http://www.wicket-library.com/wicket-examples/signin).
 
So hints on what im doing wrong and possible howto fix it will be much 
appreciated.
 
Ive attached my HTML file my java file and the error page.
 
Regards Nino
Title: JOBINDSATS


	
	
		
			Sygedagpengemodtagere
		
		
			
			

	Tilgang



			
			

	

			
			

	
		
			

			
		
		
			

			
			

			
			

			
		
	 
			
			

	
	
		
	
	
		FormPage
	


			
			
			

	feedbackmessages will be put here

			
		
	




Index.java
Description: Index.java
Title: Unexpected RuntimeException




	Unexpected RuntimeException
	wicket.WicketRuntimeException: Method public abstract void wicket.markup.html.form.IFormSubmitListener.onFormSubmitted() of interface java.lang.reflect.Method threw an exceptionat wicket.protocol.http.WebRequestCycle.invokeInterface(WebRequestCycle.java:587)at wicket.protocol.http.WebRequestCycle.invokeInterface(WebRequestCycle.java:651)at wicket.protocol.http.WebRequestCycle.callComponentListener(WebRequestCycle.java:492)at wicket.protocol.http.WebRequestCycle.parseRequest(WebRequestCycle.java:153)at wicket.RequestCycle.request(RequestCycle.java:408)at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:234)at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)at org.mortbay.http.HttpServer.service(HttpServer.java:879)at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)Caused by: java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at wicket.protocol.http.WebRequestCycle.invokeInterface(WebRequestCycle.java:578)... 21 moreCaused by: java.lang.IllegalStateException: Attempt to set model object on null model of component: form:radiogroupat wicket.Component.setModelObject(Component.java:1299)at wicket.markup.html.form.RadioGroup.updateModel(RadioGroup.java:109)at wicket.markup.html.form.Form$9.formComponent(Form.java:585)at wicket.markup.html.form.Form$4.component(Form.java:306)at wicket.MarkupContainer.visitChildren(MarkupContainer.java:632)at wicket.markup.html.form.Form.visitFormComponents(Form.java:302)at wicket.markup.html.form.Form.updateFormComponentModels(Form.java:577)at wicket.markup.html.form.Form.process(Form.java:559)at wicket.markup.html.form.Form.onFormSubmitted(Form.java:209)... 26 more
	
	
	
	
	
  	Component Tree
Component tree for [Page class = wicket.PROTO_01.Index, id = 0]:

  

  #
  Path
  Type
  Model Object

	  
  
		
		  1   
		  _body   
		  wicket.markup.html.BodyOnLoadContainer   
		     
		
		  2   
		  feedback   
		  wicket.markup.html.panel.FeedbackPanel   
		     
		
		  3   
		  feedback:feedbackul   
		  wicket.markup.html.WebMarkupContainer   
		     
		
		  4   
		  feedback:feedbackul:messages   
		  wicket.markup.html.list.ListView   
		  []   
		
		  5   
		  form   
		  wicket.markup.html.form.Form   
		     
		
		  6   
		  form:LBL_nextpage   
		  wicket.markup.html.basic.Label   
		  næste side   
		
		  7   
		  form:_link_0   
		  wicket.markup.html.WebMarkupContainer   
		     
		
		  8   
		  form:_link_0:_autolink_1   
		  wicket.markup.html.link.BookmarkablePageLink   
		     
		
		  9   
		  form:_link_2   
		  wicket.markup.html.WebMarkupContainer   
		     
		
		 

[Wicket-user] submitting wicket examples

2006-03-03 Thread Nino Wael
Title: submitting wicket examples






Hi 

Im in the mist of developing a bunch of controls for wicket, one for example will be able to populate a listbox based on the selection of another listbox. I guess this is something that could be of interest for the typical wicket user. So how do I submit my examples so that others may benefit from them, like I’ve benefittet from the ones http://www.wicket-library.com/?


- regards Nino






RE: [Wicket-user] submitting wicket examples

2006-03-03 Thread Nino Wael
Yeah, the javadoc is great. However sometimes you can explain all you want and 
still be stuck, but an example will give you the correct kick to get running. 
Also I feel that sometimes the javadoc Is pretty simple in the examples given, 
because it is a javadoc and must explain what the different methods etc does. 
Examples however can be more complicated, because they are not just limited to 
what goes on in the "base" code.



-Nino


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juergen 
Donnerstag
Sent: Friday, March 03, 2006 12:07 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] submitting wicket examples

Sorry one more note on this: Like you used the examples to learn
Wicket many others do which is why we try hard to explain (javadoc)
them as good as possible.

Juergen

On 3/3/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> You send them to me and I'll add them to either wicket-examples or
> wicket-contrib-examples. And I'll deploy them on wicket-library.
>
> Juergen
>
> On 3/3/06, Nino Wael <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi
> >
> > Im in the mist of developing a bunch of controls for wicket, one for example
> > will be able to populate a listbox based on the selection of another
> > listbox. I guess this is something that could be of interest for the typical
> > wicket user. So how do I submit my examples so that others may benefit from
> > them, like I've benefittet from the ones http://www.wicket-library.com/?
> >
> >
> > - regards Nino
> >
> >
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] onSelectionChanged() for Listmultiplechoice

2006-03-06 Thread Nino Wael
Title: onSelectionChanged() for Listmultiplechoice






Has anyone implemented this? Preforable in a class that allows single selection and mutiple selections?

-regards Nino




[Wicket-user] RadioGroup: test fails

2006-03-06 Thread Nino Wael
Title: RadioGroup: test fails






Hi 

I know I am doing something wrong im just not sure whatJ

I have a radiogroup, which I populate with radio buttons, in a listview: 

        myRadioGroup = new wicket.markup.html.form.RadioGroup("radiogroup");

        form.add(myRadioGroup);

        

        myRadioGroup.add(new Label("LBL_maaling", "Målinger"));

        myList = new wicket.markup.html.list.ListView("maaling", maalinger) {

            public void populateItem(wicket.markup.html.list.ListItem item) {

                

                String[] myText = (String[]) item.getModelObject();

                String radiotext = myText[0].toString();

                String infotext = myText[1].toString();

                Model RadioModel = new Model(myText[0]);

                wicket.markup.html.form.Radio myRadio = new wicket.markup.html.form.Radio(

                        "RadioMaaling", RadioModel);

                item.add(myRadio);

                item.add(new Label("radioText", radiotext));

                item.add(new Label("info", infotext));

            }

        };

        myRadioGroup.add(myList);

This gives me the Layout I want, im not sure if I am populating correctly. This is my test code below (which fails at the line I’ve marked red.) I’ve also tried just setting the value for “radiogroup” that gives me this error:

submitted http post value [p? varighed] for RadioGroup component [1:panel:form:radiogroup] is illegal because it does not contain relative path to a Radio componnet. Due to this the RadioGroup component cannot resolve the selected Radio component pointed to by the illegal value. A possible reason is that componment hierarchy changed between rendering and form submission.

        WicketTester tester = new WicketTester();

        

        final RadioInfo RadioInfo = new RadioInfo("panel",maalinger,tilgang);

        tester.startPanel(new TestPanelSource(){

            public Panel getTestPanel(String arg0) {

                return RadioInfo;

            }

            

        });

        FormTester myFormTester= tester.newFormTester("panel:form");

        tester.debugComponentTrees();

        tester.dumpPage();

        

        myFormTester.setValue("radiogroup:maaling:2:RadioMaaling", "Aktuelle forl�b fordelt p� varighed");

        myFormTester.submit();

        

            

        System.out.println(RadioInfo.getResult());

        tester.dumpPage();

debugComponentTrees() shows this:

94   [main] INFO  wicket.util.tester.WicketTester  - debugging --

94   [main] INFO  wicket.util.tester.WicketTester  - path   panel   ams.components.RadioInfo    []

94   [main] INFO  wicket.util.tester.WicketTester  - path   panel:form  wicket.markup.html.form.Form    []

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:tilgang  wicket.markup.html.form.RadioChoice     []

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup   wicket.markup.html.form.RadioGroup  []

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup:LBL_maaling   wicket.markup.html.basic.Label  [M�linger]

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup:maaling   wicket.markup.html.list.ListView    [[[Ljava.lang.String;@1ee3914, [Ljava.lang.String;@e5855a, [Ljava.lang.String;@95fd19]]

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup:maaling:0     wicket.markup.html.list.ListItem    [[Ljava.lang.String;@1ee3914]

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup:maaling:0:RadioMaaling    wicket.markup.html.form.Radio   [Aktuelle forl�b fordelt p� varighed]

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup:maaling:0:radioText   wicket.markup.html.basic.Label  [Aktuelle forl�b fordelt p� varighed]

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup:maaling:0:info    wicket.markup.html.basic.Label  [description]

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup:maaling:1     wicket.markup.html.list.ListItem    [[Ljava.lang.String;@e5855a]

109  [main] INFO  wicket.util.tester.WicketTester  - path   panel:form:radiogroup:maaling:1:RadioMaaling    wicket.markup.htm

RE: [Wicket-user] RadioGroup: test fails

2006-03-06 Thread Nino Wael
Title: RadioGroup: test fails










It
seemed I had to give  my Radiogroup a model to hold the selected value. Do I
both need to have a model for my radiochoice and my radiogroup, or does my
radiochoice inherit the model from the radiogroup? Do I need to define this
explicit? 

 

 

-regards
Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: Monday, March 06, 2006 12:50
PM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] RadioGroup:
test fails



 

Hi 

I know I am doing something wrong im just not sure whatJ

I have a radiogroup, which I populate with radio buttons, in a listview: 

   
    myRadioGroup
= new wicket.markup.html.form.RadioGroup("radiogroup");

   
    form.add(myRadioGroup);

   
    

   
    myRadioGroup.add(new
Label("LBL_maaling", "Målinger"));

   
    myList =
new wicket.markup.html.list.ListView("maaling", maalinger) {

   
   
    public
void populateItem(wicket.markup.html.list.ListItem item) {

   
   
   
    

   
   
   
    String[]
myText = (String[]) item.getModelObject();

   
   
   
    String
radiotext = myText[0].toString();

   
   
       
String infotext = myText[1].toString();

   
   
   
    Model
RadioModel = new Model(myText[0]);

   
   
   
    wicket.markup.html.form.Radio
myRadio = new wicket.markup.html.form.Radio(

   
   
   
   
   
    "RadioMaaling",
RadioModel);

   
   
   
    item.add(myRadio);

   
   
   
    item.add(new
Label("radioText", radiotext));

   
   
   
    item.add(new
Label("info", infotext));

   
   
    }

   
    };

   
    myRadioGroup.add(myList);

This gives me the Layout I want, im not sure if I am populating
correctly. This is my test code
below (which fails at the line I’ve marked red.) I’ve also tried just setting
the value for “radiogroup” that gives me this error:

submitted http
post value [p? varighed] for RadioGroup component [1:panel:form:radiogroup] is
illegal because it does not contain relative path to a Radio componnet. Due to
this the RadioGroup component cannot resolve the selected Radio component
pointed to by the illegal value. A possible reason is that componment hierarchy
changed between rendering and form submission.

   
    WicketTester
tester = new WicketTester();

   
    

   
    final
RadioInfo RadioInfo = new RadioInfo("panel",maalinger,tilgang);

   
    tester.startPanel(new
TestPanelSource(){

   
   
    public
Panel getTestPanel(String arg0) {

   
   
   
    return
RadioInfo;

   
   
    }

   
   
    

   
    });

   
    FormTester
myFormTester= tester.newFormTester("panel:form");

   
    tester.debugComponentTrees();

   
    tester.dumpPage();

   
    

   
    myFormTester.setValue("radiogroup:maaling:2:RadioMaaling",
"Aktuelle forl�b fordelt p�
varighed");

   
    myFormTester.submit();

   
    

   
   
    

   
   
System.out.println(RadioInfo.getResult());

   
    tester.dumpPage();

debugComponentTrees() shows this:

94  
[main] INFO  wicket.util.tester.WicketTester  - debugging
--

94  
[main] INFO  wicket.util.tester.WicketTester  -
path   panel   ams.components.RadioInfo
   []

94  
[main] INFO  wicket.util.tester.WicketTester  -
path   panel:form 
wicket.markup.html.form.Form    []

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:tilgang
 wicket.markup.html.form.RadioChoice    
[]

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:radiogroup  
wicket.markup.html.form.RadioGroup  []

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:radiogroup:LBL_maaling
  wicket.markup.html.basic.Label  [M�linger]

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:radiogroup:maaling  
wicket.markup.html.list.ListView   
[[[Ljava.lang.String;@1ee3914, [Ljava.lang.String;@e5855a,
[Ljava.lang.String;@95fd19]]

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:radiogroup:maaling:0
    wicket.markup.html.list.ListItem
   [[Ljava.lang.String;@1ee3914]

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:f

RE: [Wicket-user] RadioGroup: test fails

2006-03-06 Thread Nino Wael
Title: RadioGroup: test fails








Argh I meant Radio not
RadioChoice.

 



-Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: Monday, March 06, 2006 1:40
PM
To: wicket-user@lists.sourceforge.net
Subject: RE: [Wicket-user]
RadioGroup: test fails



 



It
seemed I had to give  my Radiogroup a model to hold the selected value. Do
I both need to have a model for my radiochoice and my radiogroup, or does my
radiochoice inherit the model from the radiogroup? Do I need to define this
explicit? 

 

 

-regards
Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: Monday, March 06, 2006 12:50
PM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] RadioGroup:
test fails



 

Hi 

I know I am doing something wrong im just not sure whatJ

I have a radiogroup, which I populate with radio buttons, in a listview: 

   
    myRadioGroup
= new wicket.markup.html.form.RadioGroup("radiogroup");

   
    form.add(myRadioGroup);

   
    

   
    myRadioGroup.add(new
Label("LBL_maaling", "Målinger"));

   
    myList =
new wicket.markup.html.list.ListView("maaling", maalinger) {

   
   
    public
void populateItem(wicket.markup.html.list.ListItem item) {

   
   
   
    

   
   
   
    String[]
myText = (String[]) item.getModelObject();

   
   
   
    String
radiotext = myText[0].toString();

   
   
   
    String
infotext = myText[1].toString();

   
   
   
    Model
RadioModel = new Model(myText[0]);

   
   
   
    wicket.markup.html.form.Radio
myRadio = new wicket.markup.html.form.Radio(

   
   
   
   
       
"RadioMaaling", RadioModel);

   
   
   
    item.add(myRadio);

   
   
   
    item.add(new
Label("radioText", radiotext));

   
       
    item.add(new
Label("info", infotext));

   
   
    }

   
    };

   
    myRadioGroup.add(myList);

This gives me the Layout I want, im not sure if I am populating
correctly. This is my test code below
(which fails at the line I’ve marked red.) I’ve also tried just setting the
value for “radiogroup” that gives me this error:

submitted http
post value [p? varighed] for RadioGroup component [1:panel:form:radiogroup] is
illegal because it does not contain relative path to a Radio componnet. Due to
this the RadioGroup component cannot resolve the selected Radio component
pointed to by the illegal value. A possible reason is that componment hierarchy
changed between rendering and form submission.

   
    WicketTester
tester = new WicketTester();

   
    

   
    final
RadioInfo RadioInfo = new RadioInfo("panel",maalinger,tilgang);

   
    tester.startPanel(new
TestPanelSource(){

   
   
    public
Panel getTestPanel(String arg0) {

   
   
   
    return
RadioInfo;

   
   
    }

   
   
    

   
    });

   
    FormTester
myFormTester= tester.newFormTester("panel:form");

   
    tester.debugComponentTrees();

   
    tester.dumpPage();

   
    

   
    myFormTester.setValue("radiogroup:maaling:2:RadioMaaling",
"Aktuelle forl�b fordelt p�
varighed");

   
    myFormTester.submit();

   
    

   
   
    

   
   
System.out.println(RadioInfo.getResult());

   
    tester.dumpPage();

debugComponentTrees() shows this:

94  
[main] INFO  wicket.util.tester.WicketTester  - debugging --

94  
[main] INFO  wicket.util.tester.WicketTester  -
path   panel   ams.components.RadioInfo
   []

94  
[main] INFO  wicket.util.tester.WicketTester  -
path   panel:form 
wicket.markup.html.form.Form    []

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:tilgang
 wicket.markup.html.form.RadioChoice    
[]

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:radiogroup  
wicket.markup.html.form.RadioGroup  []

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:radiogroup:LBL_maaling
  wicket.markup.html.basic.Label  [M�linger]

109  [main]
INFO  wicket.util.tester.WicketTester  -
path   panel:form:radiogroup:maaling  
wicket.markup.html.list.ListView   
[[[Ljava.lang.String;@1ee3914, [Ljava.lan

[Wicket-user] [wicket 1.1.1]FormTester clicking a specific button

2006-03-07 Thread Nino Wael
Title: [wicket 1.1.1]FormTester clicking a specific button






Hi 

How do I click a specific button using the test wicket framework?


-regards Nino




RE: [Wicket-user] onSelectionChanged() for Listmultiplechoice

2006-03-07 Thread Nino Wael








Sorry my bad, misunderstood
clients requirements. ListChoice is dropdown correct? Has anybody made an implementation
that allows one to select if ListmutipleChoice should be multiple or single?

 



Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: Monday, March 06, 2006 9:43
PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] onSelectionChanged()
for Listmultiplechoice



 

We have a on
selectionchanged handler in the single selection list its called ListChoice.
For multiply choice we don't have that yet. But would you have that?
On every click you want to go to the server?

johan 





On 3/6/06, Nino Wael <[EMAIL PROTECTED]> wrote:



Has anyone implemented this? Preforable in a class that allows single
selection and mutiple selections?

-regards
Nino





 








RE: [Wicket-user] [wicket 1.1.1]FormTester clicking a specific button

2006-03-07 Thread Nino Wael








This works fine, thanksJ

 



-Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ingram Chen
Sent: Tuesday, March 07, 2006 2:55
PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] [wicket
1.1.1]FormTester clicking a specific button



 

Try this:

FormTester formTester = wicketTester.newFormTester(false);
formTester.setValue("myButton", "whatever");
formTester.submit() ;

this should click the button with "myButton" wicketId. 





On 3/7/06, Nino Wael <[EMAIL PROTECTED]> wrote:



Hi 

How do I click a specific button using the test wicket framework?

 

-regards Nino








-- 
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen









[Wicket-user] DropDownChoice howto change default text

2006-03-08 Thread Nino Wael
Title: DropDownChoice howto change default text






Hi 

How do I change the default text (“Choose One”, see picture below) of a dropdownchoice, do I need to implement a custom render? 

I’ve looked at the methods for dropdownchoice class but no one seems to do just that.





-regards Nino




RE: [Wicket-user] DropDownChoice howto change default text

2006-03-08 Thread Nino Wael








Thanks I used the
override approach. I now have a control where I can define the null text on the
constructor.

 

The method to override is
called getDefaultChoice and not getDefaltValue by the way.



 

 

-Nino

 

 

 







From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: Wednesday, March 08, 2006
10:16 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
DropDownChoice howto change default text



 

override
getDefaultValue()
or use a properties file and define the null value:

form.choiceid.null=My Other text

And that is then a page.properties file that has a form as a child where the
choice is in.

johan





On 3/8/06, Nino Wael <[EMAIL PROTECTED]> wrote:



Hi 

How do I change the default text ( "Choose
One ", see picture
below) of a dropdownchoice, do I
need to implement a custom render? 

I' ve looked at the methods
for dropdownchoice class but no one seems to do just that.






-regards
Nino





 








[Wicket-user] Testing form with multiple submit buttons?

2006-03-13 Thread Nino Wael
Hi
 
I have a form with multiple submit buttons, how do I click the correct button? 
On formtester I can only set the submit method. Which does not allow med to 
specify which button to click.
 
 
-regards Nino


SV: [Wicket-user] Testing form with multiple submit buttons?

2006-03-14 Thread Nino Wael
I admit I have lousy memory:( I must be too stressed, as I recall it worked 
just fine sorry.

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Ingram Chen 
Sendt: ma 13-03-2006 16:20 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] Testing form with multiple submit buttons?


I recall that last week I suggest trying this:

FormTester formTester = wicketTester.newFormTester(false);
formTester.setValue("myButton", "whatever");
formTester.submit() ;

Does this not work for you ?



    On 3/13/06, Nino Wael <[EMAIL PROTECTED] > wrote: 

Hi

I have a form with multiple submit buttons, how do I click the 
correct button? On formtester I can only set the submit method. Which does not 
allow med to specify which button to click. 


-regards Nino





-- 
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen 

<>

[Wicket-user] Suggestions on howto check if listbox has been populated?

2006-03-14 Thread Nino Wael
Hi
 
Im trying to do some testing with the wicket test framework and was wondering 
on the bedst method to test if at listbox contains any data items, I guess I 
could use the  wickettester.assertContains() to check for a certain value in 
the listbox.
 
But what if I have two list boxes in a specific form where one populates the 
other, then I would need to check for more than just a text.
 
Would JWebUnit be more appropriet for this? 
 
However if I use JWebUnit I loose contact with the panel im testing, and I have 
a certain method on the panel, a getResults which gives me the result of a 
selection on a panel which could contain one or more forms. So I would not be 
able to test this.
 
Has anybody some ideas or suggestions?
 
-regards Nino


[Wicket-user] wicket:1.1.1 error unknown interface IOnChangeListener?

2006-03-15 Thread Nino Wael
Hi I've

created a control which essentially is a radio button and a listbox, where each 
click on the radio button populates the listbox with values.

I've done or rarther are trying to do this by using the wicket radiochoice and 
a wicket ListMultipleChoice. And are overiding the onSelectionChanged and the 
wantOnSelectionChangedNotifications, so that onSelectionChanged does what I 
want and wantOnSelectionChangedNotifications returns true.

However now I get this error:

[PoolThread-9] ERROR wicket.RequestCycle - Unexpected runtime exception [page = 
null]

wicket.WicketRuntimeException: Attempt to access unknown interface 
IOnChangeListener

And I am a little confussed on why I am getting this error since the 
RadioChoice already implements the interface so it should be known? Only other 
option is that the error conseals another error which is caused by something 
else?

I have a similar control which has this functionality, instead of using a 
radiochoice onselectionchange it uses a button to make something similar. I'll 
be happy to send the code and log, or just give a more detailed explaination.

-regards Nino

 



SV: [Wicket-user] wicket:1.1.1 error unknown interface IOnChangeListener?

2006-03-15 Thread Nino Wael
Hi Johan
 
It worked to touch DropDownChoice class, thanks.
 
-regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Johan Compagner 
Sendt: on 15-03-2006 14:47 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] wicket:1.1.1 error unknown interface IOnChangeListener?



if you first touch a DropDownChoice class before you use a RadioChoice
is then everything fixed?

in 1.2 this is completely fixed because we register all interfaces 
upfront instead of when we touch a component class. 

johan



On 3/15/06, Nino Wael <[EMAIL PROTECTED]> wrote: 

Hi I've

created a control which essentially is a radio button and a 
listbox, where each click on the radio button populates the listbox with values.

I've done or rarther are trying to do this by using the wicket 
radiochoice and a wicket ListMultipleChoice. And are overiding the 
onSelectionChanged and the wantOnSelectionChangedNotifications, so that 
onSelectionChanged does what I want and wantOnSelectionChangedNotifications 
returns true. 

However now I get this error:

[PoolThread-9] ERROR wicket.RequestCycle - Unexpected runtime 
exception [page = null]

wicket.WicketRuntimeException: Attempt to access unknown 
interface IOnChangeListener 

And I am a little confussed on why I am getting this error 
since the RadioChoice already implements the interface so it should be known? 
Only other option is that the error conseals another error which is caused by 
something else? 

I have a similar control which has this functionality, instead 
of using a radiochoice onselectionchange it uses a button to make something 
similar. I'll be happy to send the code and log, or just give a more detailed 
explaination. 

-regards Nino






<>

[Wicket-user] wicket 1.1.1:radiochoice default selected value?

2006-03-16 Thread Nino Wael
Title: wicket 1.1.1:radiochoice default  selected value?






Hi

I need to have a default value selected when rendering a radiochoice, should I overide getdefault choice for to do this?

-regards Nino




[Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Nino Wael
Title: wicket 1.1.1: specifiying style on radiochoice or dropdownchoice






Hi

How do I specify a style for radiochoice or dropdownchoice, do I need to create my own class and create a constructor which takes a style as a string and then adds it to the html?

-regards Nino




SV: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Nino Wael
On my RadioChoice I make use of the onSelectionChanged, I cant find a method to 
do this on Radio/RadioGroup so I guess I need to implement this aswell?
 
-Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg 
Sendt: fr 17-03-2006 09:46 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice 
or dropdownchoice


you can add an attribute modifier that will insert the style attribute 
for dropdownchoice. for radiochoice you cant since it is in total control of 
the markup, if you want to style it you can use Radio/RadioGroup components 
instead. 


-Igor



On 3/17/06, Nino Wael <[EMAIL PROTECTED]> wrote: 

Hi

How do I specify a style for radiochoice or dropdownchoice , do 
I need to create my own class and create a constructor which takes a style as a 
string and then adds it to the html ?

-regards Nino


<>

SV: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Nino Wael
Hmm, how far is 1.2 from going stable, is possible to get a status on that?
 
Im in the midst of developing could I just switch to 1.2?
 

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Johan Compagner 
Sendt: fr 17-03-2006 11:05 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice 
or dropdownchoice


don't know currently for 1.1.1 but in 1.2 we have selection change 
support in RadioGroup.

johan



On 3/17/06, Nino Wael < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > 
wrote: 

On my RadioChoice I make use of the onSelectionChanged, I cant 
find a method to do this on Radio/RadioGroup so I guess I need to implement 
this aswell? 

-Nino

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg
Sendt: fr 17-03-2006 09:46 
Til: wicket-user@lists.sourceforge.net
Cc:
Emne: Re: [Wicket-user] wicket 1.1.1: specifiying style 
on radiochoice or dropdownchoice


you can add an attribute modifier that will insert the 
style attribute for dropdownchoice. for radiochoice you cant since it is in 
total control of the markup, if you want to style it you can use 
Radio/RadioGroup components instead. 


-Igor



    On 3/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:

Hi

How do I specify a style for radiochoice or 
dropdownchoice , do I need to create my own class and create a constructor 
which takes a style as a string and then adds it to the html ? 

-regards Nino






<>

SV: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Nino Wael
Sorry for not reading the homepage, I see that you have a migration guide.
 
However my question about how far you are from going stable still stands.
 
-regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Nino Wael 
Sendt: fr 17-03-2006 11:22 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: SV: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice 
or dropdownchoice


Hmm, how far is 1.2 from going stable, is possible to get a status on 
that?
 
Im in the midst of developing could I just switch to 1.2?
 

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Johan Compagner 
Sendt: fr 17-03-2006 11:05 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] wicket 1.1.1: specifiying style on 
radiochoice or dropdownchoice


don't know currently for 1.1.1 but in 1.2 we have selection 
change support in RadioGroup.

johan



On 3/17/06, Nino Wael < [EMAIL PROTECTED] <mailto:[EMAIL 
PROTECTED]> > wrote: 

On my RadioChoice I make use of the onSelectionChanged, 
I cant find a method to do this on Radio/RadioGroup so I guess I need to 
implement this aswell? 

-Nino

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg
Sendt: fr 17-03-2006 09:46 
Til: wicket-user@lists.sourceforge.net
Cc:
Emne: Re: [Wicket-user] wicket 1.1.1: 
specifiying style on radiochoice or dropdownchoice


you can add an attribute modifier that will 
insert the style attribute for dropdownchoice. for radiochoice you cant since 
it is in total control of the markup, if you want to style it you can use 
Radio/RadioGroup components instead. 


-Igor



    On 3/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:

Hi

How do I specify a style for 
radiochoice or dropdownchoice , do I need to create my own class and create a 
constructor which takes a style as a string and then adds it to the html ? 

-regards Nino






N�HS^�隊X���'���u��<�ڂ�.���y�"��*m�x%jx.j���^�קvƩ�X�jب�ȧ��m�ݚ�v&��קv�^�+j�Z{az^��h��஋�n���)��{h�����ا�׫�+h�(m�Z��jY�w��ǥrg

SV: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Nino Wael
Ok, thanks. That sound perfect.
 
-regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Johan Compagner 
Sendt: fr 17-03-2006 11:51 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice 
or dropdownchoice


if you are just developing and youre application doesn't have to go 
live with 1 month or so
i would build in 1.2. We will break out another beta this weekend and 
then we will go into RC mode.

johan



On 3/17/06, Nino Wael <[EMAIL PROTECTED]> wrote: 

Hmm, how far is 1.2 from going stable, is possible to get a 
status on that?

Im in the midst of developing could I just switch to 1.2?


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Johan Compagner
Sendt: fr 17-03-2006 11:05
Til: wicket-user@lists.sourceforge.net
Cc: 
Emne: Re: [Wicket-user] wicket 1.1.1: specifiying style 
on radiochoice or dropdownchoice


don't know currently for 1.1.1 but in 1.2 we have 
selection change support in RadioGroup.

johan 



On 3/17/06, Nino Wael < [EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]> > wrote:

On my RadioChoice I make use of the 
onSelectionChanged, I cant find a method to do this on Radio/RadioGroup so I 
guess I need to implement this aswell? 

-Nino

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Igor 
Vaynberg
Sendt: fr 17-03-2006 09:46
Til: wicket-user@lists.sourceforge.net
Cc: 
Emne: Re: [Wicket-user] wicket 1.1.1: 
specifiying style on radiochoice or dropdownchoice


you can add an attribute modifier that 
will insert the style attribute for dropdownchoice. for radiochoice you cant 
since it is in total control of the markup, if you want to style it you can use 
Radio/RadioGroup components instead. 


-Igor



    On 3/17/06, Nino Wael <[EMAIL 
PROTECTED]> wrote:

Hi 

How do I specify a style for 
radiochoice or dropdownchoice , do I need to create my own class and create a 
constructor which takes a style as a string and then adds it to the html ? 

-regards Nino










<>

[Wicket-user] wicket 1.2 beta 2 RadioGroup selecting a default

2006-03-21 Thread Nino Wael
Hi im having some trouble making a default selection on my radiogroup.
 
Should I try to make the selection on the radiogroup or the button itself, I 
guess the first?
 
 
Currently im trying to use RadioGroup.setModelObject, however this is not 
working or I am passing on a wrong object. I'll very much like to see some 
simple examples on howto do it.
 
 
-regards Nino
 


SV: [Wicket-user] wicket 1.2 beta 2 RadioGroup selecting a default

2006-03-21 Thread Nino Wael
Hi Igor
 
I cant find that example, I've been looking through these examples :
 

*   forminput
*   RadiogroupPage

I've seen no example on howto set a default value on RadioGroup in these 
examples.. I might just be me that needs to wear my googles. Could you give a 
more precise pointer?
 
-regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg 
Sendt: ti 21-03-2006 09:19 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] wicket 1.2 beta 2 RadioGroup selecting a default


there is an example usage in wicket examples/ component reference.

-Igor



On 3/21/06, Nino Wael <[EMAIL PROTECTED] > wrote: 

Hi im having some trouble making a default selection on my 
radiogroup. 

Should I try to make the selection on the radiogroup or the 
button itself, I guess the first?


Currently im trying to use RadioGroup.setModelObject, however 
this is not working or I am passing on a wrong object. I'll very much like to 
see some simple examples on howto do it. 


-regards Nino




<>

[Wicket-user] Validation

2006-03-27 Thread Nino Wael








Hi 

 

Might be me which has’nt been looking good
enough into documentation.

 

So I have the following scenario and question:

 

Two listmultiplechoice box’ses where you can
exchange contents of the list boxes by pressing one of two buttons see nice
ascii grapichs below:

  Listbox a      
Listbox B

|  ___  |- |

| | selected  | 
| >|  | |

| |   | 
  | |

| |   | 
___  | |

| | notselected |  |<
|  | |

|---   |-
|

 

 

So if you select one of the list items in listbox a
and click  btn “>” then the selected item should be moved
to listbox B. Currently when setting up the page I set .setRequired(true) on
both listbox’s this results in listbox B complains that it has’nt a
selected value.

 

So question is how do I trigger only the relevant
validation when pressing < or >. 

 

Regards Nino








RE: [Wicket-user] Validation

2006-03-27 Thread Nino Wael








Well, because it was the
only way I knewJ Im afraid I would need some example to get
further with the Palette component, how do I plug it into my current
listmutiplechoice components?

 

Im not completely sure
that I would like to write _javascript_ from java, does the palette component do
that for me? 

 

-Regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 27. marts 2006 10:10
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Validation



 

why are you doing a round
trip when you press > and < ? you can do this all nicely via some very
basic _javascript_. see Palette component in extensions, it does exactly what you
want and more.

-Igor





On 3/27/06, Nino
Wael <[EMAIL PROTECTED]>
wrote:





Hi 

 

Might be me which has'nt been looking good enough into documentation.

 

So I have the following scenario and question:

 

Two listmultiplechoice box'ses where you can exchange contents of the
list boxes by pressing one of two buttons see nice ascii grapichs below:

  Listbox
a   
   Listbox B

|  ___ 
|- |

| | selected 
|  |
>| 
|
|

|
|  
| 
 
|
|

|
|  
| 
___ 
|
|

| | notselected |  |<
| 
|
|

|---
  |- |

 

 

So if you select one of the list items in listbox a and click  btn
">" then the selected item should be moved to listbox B. Currently
when setting up the page I set .setRequired(true) on both listbox's this
results in listbox B complains that it has'nt a selected value.

 

So question is how do I trigger only the relevant validation when
pressing < or >. 

 

Regards Nino







 








RE: [Wicket-user] Validation

2006-03-27 Thread Nino Wael








That is great. 

 

However our client has
some specific requirements towards the look of the selectbox and of course texts
needs to be changed to our locale, I guess this is not possible without
modification or extension of the palette component? Also I would need to
created two new buttons(urls) which moves all contents from one to the other
listbox.

 

How would you suggest
that I do that, how do extend the palette component?

 

-regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 27. marts 2006 10:28
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Validation



 

yes, the palette takes
care of everything for you. thats the point of encapsulation :)

check out component reference in wicket examples for 1.2

-Igor





On 3/27/06, Nino
Wael <[EMAIL PROTECTED]>
wrote:





Well, because it was the only way I knewJ Im afraid I would need some example to get further with the
Palette component, how do I plug it into my current listmutiplechoice
components?

 

Im not completely sure that I would like to write
_javascript_ from java, does the palette component do that for me? 

 

-Regards Nino

 









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Igor Vaynberg
Sent: 27. marts 2006 10:10
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Validation







 

why are you doing a round trip when you press > and
< ? you can do this all nicely via some very basic _javascript_. see Palette
component in extensions, it does exactly what you want and more.

-Igor



On
3/27/06, Nino Wael <[EMAIL PROTECTED]>
wrote:





Hi 

 

Might be me which has'nt been looking good enough into documentation.

 

So I have the following scenario and question:

 

Two listmultiplechoice box'ses where you can exchange contents of the
list boxes by pressing one of two buttons see nice ascii grapichs below:

  Listbox a   
   Listbox B

|  ___
 |- |

| | selected 
|  |
>| 
|
|

|
|  
| 
 
|
|

|
|  
|  ___ 
|
|

| | notselected |  |<
| 
|
|

|---
  |- |

 

 

So if you select one of the list items in listbox a and click  btn
">" then the selected item should be moved to listbox B. Currently
when setting up the page I set .setRequired(true) on both listbox's this
results in listbox B complains that it has'nt a selected value.

 

So question is how do I trigger only the relevant validation when
pressing < or >. 

 

Regards Nino







 









 








RE: [Wicket-user] Validation

2006-03-27 Thread Nino Wael








Erhh typo, I meant what
is written below.

 

However our client has
some specific requirements towards the look of the selectbox and of course
texts needs to be changed to our locale, I guess this is not possible without
modification or extension of the palette component? Also I would need to
created two new buttons(urls) which moves all contents from one to the other
listbox.

 

How would you suggest that
I do that, how do I extend the palette component? Or how could I somehow
localise the component otherwise? I would still need to add my two new buttons
is this possible?

 

-regards Nino

 

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 27. marts 2006 11:16
To:
wicket-user@lists.sourceforge.net
Subject: RE: [Wicket-user]
Validation



 

That is great. 

 

However our client has
some specific requirements towards the look of the selectbox and of course
texts needs to be changed to our locale, I guess this is not possible without
modification or extension of the palette component? Also I would need to
created two new buttons(urls) which moves all contents from one to the other
listbox.

 

How would you suggest that
I do that, how do extend the palette component?

 

-regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 27. marts 2006 10:28
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Validation



 

yes, the palette takes
care of everything for you. thats the point of encapsulation :)

check out component reference in wicket examples for 1.2

-Igor



On 3/27/06, Nino
Wael <[EMAIL PROTECTED]>
wrote:





Well, because it was the only way I knewJ Im afraid I would need some example to get further with the
Palette component, how do I plug it into my current listmutiplechoice
components?

 

Im not completely sure that I would like to write
_javascript_ from java, does the palette component do that for me? 

 

-Regards Nino

 









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Igor Vaynberg
Sent: 27. marts 2006 10:10
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Validation







 

why are you doing a round trip when you press > and
< ? you can do this all nicely via some very basic _javascript_. see Palette
component in extensions, it does exactly what you want and more.

-Igor



On
3/27/06, Nino Wael <[EMAIL PROTECTED]>
wrote:





Hi 

 

Might be me which has'nt been looking good enough into documentation.

 

So I have the following scenario and question:

 

Two listmultiplechoice box'ses where you can exchange contents of the
list boxes by pressing one of two buttons see nice ascii grapichs below:

  Listbox
a   
   Listbox B

|  ___
 |- |

| | selected 
|  |
>| 
|
|

|
|  
| 
 
|
|

|
|  
| 
___ 
|
|

| | notselected |  |<
| 
|
|

|---
  |- |

 

 

So if you select one of the list items in listbox a and click  btn
">" then the selected item should be moved to listbox B. Currently
when setting up the page I set .setRequired(true) on both listbox's this
results in listbox B complains that it has'nt a selected value.

 

So question is how do I trigger only the relevant validation when
pressing < or >. 

 

Regards Nino







 









 








SV: [Wicket-user] label that shows the date

2006-03-27 Thread Nino Wael
download the wicket-examples:
 
http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=138752
 
and look in the source:)
 

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Geertjan Wielenga 
Sendt: ma 27-03-2006 13:31 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: [Wicket-user] label that shows the date





Hi all,

 From this page, I've learnt how to do a markup label in Wicket:


http://www.wicket-library.com/wicket-examples/compref?bookmarkablePage=wicket.examples.compref.LabelPage

What I'd like to do also is print out a label that shows the date. The
above link mentions this, but not how to do it. Could someone show me
how (i.e., show me the code) for doing this?

Thanks,

Gj



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




[Wicket-user] Howto add dynamic contents

2006-03-27 Thread Nino Wael
Hi
 
I have a page where I need to be able to add controls when a certain button is 
clicked. See the nice ascii grapichs below:
 

| ADD   |

 
upon pressing add this new screen 
 

| ADD   |

---
| checkbox a |
---
 
pressing ADD again will result this etc:

| ADD   |

---
| checkbox a |
---
---
| checkbox b |
---
 
 
How should I approach this?
 
regards Nino
N�HS^�隊X���'���u��<�ڂ�.���y�"��*m�x%jx.j���^�קvƩ�X�jب�ȧ��m�ݚ�v&��קv�^�+j�Z{az^��h��஋�n���)��{h�����ا�׫�+h�(m�Z��jY�w��ǥrg

SV: [Wicket-user] Wicket 1.2-beta3 is available

2006-04-03 Thread Nino Wael
Going through the bug list I saw that this should be closed 
http://sourceforge.net/tracker/index.php?func=detail&aid=1450567&group_id=119783&atid=684975
 
I can confirm that there no longer is classloading problems this is has been 
tried on jetty and tomcat. Was an issue on 1.1.1 but no longer on 1.2 beta 2.
 
-regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Ali Zaid 
Sendt: ma 03-04-2006 09:34 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] Wicket 1.2-beta3 is available



Hay;

Congratulate, it's really one of the best! can't wait for it to be 
final!!!

Regards, Ali

On 4/2/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> All,
>
> I have created and uploaded the third beta release of Wicket 1.2. We 
have
> solved quite some bugs, but there are some nasty one's still 
unsolved. This
> is why we chose to release another beta instead of moving into the 
end game
> of our 1.2 release schedule. You can monitor the bug list at 
sourceforge
> (http://sourceforge.net/tracker/?group_id=119783&atid=684975)
> to see which are still open and which are solved.
>
> The outstanding bugs shouldn't hurt development efforts, so if you 
are in
> the process of upgrading to Wicket 1.2, please continue to do so with 
this
> release (or bake your own from SVN trunk). This release is not 
considered
> stable enough to use in production.
>
> Help us finalize this release by downloading and test driving this 
release.
> The more bugs you find now, the better the final release will be!
>
> You can download the release(s) of the different projects at the usual
> download location:
> http://sourceforge.net/project/showfiles.php?group_id=119783
>
> This release contains the following projects:
>
>  o wicket
>  o wicket-extensions
>  o wicket-spring
>  o wicket-spring-annot
>  o wicket-auth-roles
>  o and all example projects for each release.
>
> Have fun!
>
> - the Wicket team
>
> --
> Wicket 1.2 is coming! Write Ajax applications without touching 
JavaScript!
> -- http://wicketframework.org


--
Regards, Ali
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


<>

[Wicket-user] wicket 1.2 beta 2 DropDownChoice default display value.. "Please Choose one"

2006-04-05 Thread Nino Wael








Hi

 

I looked at the dialog between Igor and Stefan,
thought what a nice way to select the default value with the property model. However
and then remembered why it did not do it that way, I wanted to replace the
Choose One text with something else, well at least in some cases. Im replacing
the text by overriding the getDefaultChoice method. However that doesn’t seem
to work any longer(im pretty sure I had it working with wicket 1.1.1), see
sniplet below? Also I noticed these lines in the documentation :

 

    // Note that when the selection is null, Wicket will lookup a localized string to    // represent this null with key: "id + '.null'". In this case, this is 'site.null'    // which can be found in DropDownChoicePage.properties    form.add(new DropDownChoice("site", SITES));

Does this mean that I could write in my own version
of Please Choose one in the properties file or am I reading it wrong?

 

/**Sniplet start**/

 

 dropdown
= new DropDownChoice("dropdown", DropdownList.toArray()

 .getList(),
new rowRenderer()) {

   protected
String getDefaultChoice(Object selected) {

 //
The  tag buffer

 final
StringBuffer buffer = new StringBuffer();

 if
(isNullValid()) {

   return
super.getDefaultChoice(selected);

 }
else {

   //
Null is not valid. Is it selected anyway?

   if
(selected == null) {

     //
Force the user to pick a non-null value

     final
String option = dropDownInitial;

     buffer

    .append(

    "\n")

    .append(option).append("");

   }

 

 }

 return
buffer.toString();

   }

 

   protected
void onSelectionChanged(Object newSelection) {

 fill.setEnabled(true);

 invoke.setEnabled(true);

 selectAll.setEnabled(true);

     deselectAll.setEnabled(true);

 btn_add.setEnabled(true);

  

RE: [Wicket-user] wicket 1.2 beta 2 DropDownChoice default display value.. "Please Choose one"

2006-04-05 Thread Nino Wael








The value of dropDownInitial
is not used, instead it uses the first object from the model.

 

So instead of displaying whats held in
dropDownInitial it displays the object from the model.

 

-regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 5. april 2006 13:02
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket
1.2 beta 2 DropDownChoice default display value.. "Please Choose one"



 

what doesn't work
exactly?
Because looking at the code it should work fine. The getDefaultChoice(selected)
is called and appended to the output.

johan

P.S. Now i think about it getDefaultChoice is a perfect candidate for returning
a CharSequence instead of a string. So that you don't have to call toString()
on it. 





On 4/5/06, Nino Wael
<[EMAIL PROTECTED]> wrote:





Hi

 

I looked at the dialog between Igor and Stefan, thought what a nice way
to select the default value with the property model. However and then
remembered why it did not do it that way, I wanted to replace the Choose One
text with something else, well at least in some cases. Im replacing the text by
overriding the getDefaultChoice method. However that doesn't seem to work any
longer(im pretty sure I had it working with wicket 1.1.1), see sniplet below?
Also I noticed these lines in the documentation :

 

    // Note that when the selection is null, Wicket will lookup a localized string to // represent this null with key: "id + '.null'". In this case, this is 'site.null' // which can be found in DropDownChoicePage.properties    form.add(new DropDownChoice("site", SITES));

Does this mean that I could write in my own version of Please Choose one
in the properties file or am I reading it wrong?

 

/**Sniplet start**/

 


dropdown = new DropDownChoice("dropdown", DropdownList.toArray()


.getList(), new rowRenderer()) {

  
protected String getDefaultChoice(Object selected) {


// The  tag buffer


final StringBuffer buffer = new StringBuffer();


if (isNullValid()) {

  
return super.getDefaultChoice(selected);


} else {

  
// Null is not valid. Is it selected anyway?

  
if (selected == null) {

  
 
// Force the user to pick a non-null value

  
 
final String option = dropDownInitial;

  
 
buffer 

  

.append( 

  

"\n")

  

.append(option).append(""); 

  
} 

 


}

  

SV: [Wicket-user] wicket 1.2 beta 2 DropDownChoice default display value.. "Please Choose one"

2006-04-06 Thread Nino Wael
Hmm, must have been a bug in my code after fidling around with(and rewriting my 
overide code) my overide it seems to work as wanted. 
 
Sorry for interupting, sometimes you just need someone elses opinion.
 
-regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Nino Wael 
Sendt: to 06-04-2006 10:02 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: SV: [Wicket-user] wicket 1.2 beta 2 DropDownChoice default 
display value.. "Please Choose one"


Hmm strange, Im pretty much doing the same stuff. I do however also 
have a custom ichoicerenderer could that mean anything? Also I am disabling the 
control when adding it to the form and enabling it later on.
 
-regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Johan Compagner 
Sendt: on 05-04-2006 16:47 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] wicket 1.2 beta 2 DropDownChoice 
default display value.. "Please Choose one"


can't reproduce it if i do create this:

ArrayList list = new ArrayList();
list.add("test1");
list.add("test2");
list.add("test3");

DropDownChoice choice = new 
DropDownChoice("dropdownchoice", new Model(null), new Model( 
list))

So a normal default choice.
The Choose one is displayed nicely.

So if you override that getDefaultOption() but you do pretty 
much the same thing it should work fine.

johan 
    
    

On 4/5/06, Nino Wael <[EMAIL PROTECTED]> wrote: 

The value of dropDownInitial is not used, instead it 
uses the first object from the model.

 

So instead of displaying whats held in dropDownInitial 
it displays the object from the model.

 

-regards Nino

 


  _  


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
Behalf Of Johan Compagner
Sent: 5. april 2006 13:02
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket 1.2 beta 2 
DropDownChoice default display value.. "Please Choose one"

 

what doesn't work exactly?
Because looking at the code it should work fine. The 
getDefaultChoice(selected) is called and appended to the output.

johan

P.S. Now i think about it getDefaultChoice is a perfect 
candidate for returning a CharSequence instead of a string. So that you don't 
have to call toString() on it. 



On 4/5/06, Nino Wael <[EMAIL PROTECTED]> wrote:

Hi

 

I looked at the dialog between Igor and Stefan, thought 
what a nice way to select the default value with the property model. However 
and then remembered why it did not do it that way, I wanted to replace the 
Choose One text with something else, well at least in some cases. Im replacing 
the text by overriding the getDefaultChoice method. However that doesn't seem 
to work any longer(im pretty sure I had it working with wicket 1.1.1), see 
sniplet below? Also I noticed these lines in the documentation :

 

// Note that when the selection is null, Wicket 
will lookup a localized string to

 
// represent this null with key: "id + 
'.null'". In this case, this is '
site.null'
 
// which can be found in 
DropDownChoicePage.properties
form.add(new DropDownChoice("site", SITES));

Does this mean that I could write in my own version of 
Please Choose one in the properties file or am I reading it wrong?

 

/**Sniplet start**/

 

  

[Wicket-user] Check / Checkbox

2006-04-06 Thread Nino Wael








Hi 

 

Im trying to use some of the functionality of
Checkbox but I get an exception :

“wicket.util.string.StringValueConversionException:
Boolean value "[EMAIL PROTECTED]" not
recognized”

 

I guess this tells me that my model needs either to
be true of false as a string, however I would really like to my real model in
conjunction with mycheckbox I do also override the
wantonselectionchangenotification so that I can override onSelectionChanged
aswell. 

 

I’ve tried to change the model to this new
model(“false”), this works to some extent but I loose the link to
my realmodel plus it seems that the checkboxes becomes unaware if they are
clicked, I do get the selectionnotification but the checks remains checked or
unchecked.

 

So I’ve also tried to use the check instead
this works fine with my code (using my real model), but does not implement the
Ionchangelistener or IrequestListener. It seems strange to me that check works
but checkbox does not, am I doing something wrong?

 

In addition to the above I populate the
checkbox/check in a listview and have a checkgroup as well. Is anything
theoretically wrong with this? Do you want to se a sniplet of my code?

 

 

-regards Nino








[Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-05-09 Thread Nino Wael








Hi

 

Im not sure if this is the intended functionality,
but I belive I’ve discovered an oddity or featureJ. 

 

When I use the constructor which also takes a model (ListChoice("dropdown_job",
new Model(),myList, new myRenderer)) my listchoice is no longer displayed as a
dropdown but as a listbox. 

 

If I instead of using the constructor with the model property
call the set model method (listChoice_job.setModel(new Model())) then it
remains displayed as a dropdown 

 

Code snipplet:

// this gives a listbox

    listChoice_job
= new ListChoice("dropdown_job",new Model(),jobcenter.toArray().getList(),
new DataItemRenderer())

 

//this gives a dropdown

    listChoice_job
= new ListChoice("dropdown_job", jobcenter.toArray().getList(), new
DataItemRenderer())

    listChoice_job.setModel(new
Model());

Code snipplet end

 

 

It’s that latter I want displayed.

 

 

-regards Nino








RE: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-05-10 Thread Nino Wael








Hi Johan

 

Yeah it must be something
like that. But there are multiple rows for this case. I do also have a
properties files where the default text are in, im not sure if that has any
impact.

 

Somehow it must have
slipped my mind that there where the dropdownchoice I guess I’ll just use
that instead since it’s the correct one to use.

 

-regards Nino









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 9. maj 2006 12:50
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
ListChoice changes appearance from dropdown to listbox



 

A ListChoice should
always be a List instead of a DropDown (for a drop down we have the
DropDownChoice)

I don't know why you see a difference it shouldn't look at all to the model
that holds the selection.
It only looks at the choices: 

tag.put("size", Math.min(maxRows, getChoices().size()));

so i guess if maxRows of size() == 1 then it becomes a dropdown?

johan





On 5/9/06, Nino Wael
<[EMAIL PROTECTED]> wrote:





Hi

 

Im not sure if this is the intended functionality, but I belive I've
discovered an oddity or featureJ
. 

 

When I use the constructor which also takes a model
(ListChoice("dropdown_job", new Model(),myList, new myRenderer)) my
listchoice is no longer displayed as a dropdown but as a listbox. 

 

If I instead of using the constructor with the model property call the
set model method (listChoice_job.setModel(new Model())) then it remains
displayed as a dropdown 

 

Code snipplet:

// this gives a listbox

   
listChoice_job = new ListChoice("dropdown_job",new
Model(),jobcenter.toArray().getList(), new DataItemRenderer())

 

//this gives a dropdown

   
listChoice_job = new ListChoice("dropdown_job",
jobcenter.toArray().getList(), new DataItemRenderer())

   
listChoice_job.setModel(new Model());

Code snipplet end

 

 

It's that latter I want displayed.

 

 

-regards Nino







 








[Wicket-user] Sessions?

2006-05-16 Thread Nino Wael








Hi

 

I have an object I would like to have stored in
session, so that I may pass it between pages. I’ve been looking at some
sniplets and created this code for setting the object:

 

HttpServletRequest
request = ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest();    

    request.setAttribute("here",
"Hello world");

 

I am setting the value on the base of a panel which
holds a button that contains the below code in a onsubmit override.

 

And this piece for getting the value:

 

HttpServletRequest
request = ((WebRequest) RequestCycle.get().getRequest()).getHttpServletRequest();

String
Message = (String) request.getAttribute("here");

info(Message);

 

I am getting the value on a onsubmit of a button.

 

However my String(message) are null how can that be,
does it have something to do with the scope?? If I paste the getting code in
the same place as my setting code it works just fine.

 

 

I do also feel that this is not 100% the wicket way
to do it, so I must have overlooked the better way?

 

 








RE: [Wicket-user] Sessions?

2006-05-17 Thread Nino Wael








ThanksJ  Martijn

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: 16. maj 2006 14:27
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Sessions?



 

Add the property to your
custom Session object.

public class MySession extends WebSession {
    private String myAttribute;
    // ... getters and setters
}

and override either of the following methods on your Application class: 

    /**
     * @see wicket.Application#getSessionFactory()
     */
    protected ISessionFactory getSessionFactory()
    {
        return this.sessionFactory;
    }
    
    /**
     * Create new Wicket Session object. Note, this method
is not called 
     * if you registered your own ISessionFactory with the
Application.
     * 
     * @see wicket.ISessionFactory#newSession()
     */
    public Session newSession()
    {
        return new WebSession(
WebApplication.this);
    }


Martijn





On 5/16/06, Nino
Wael <[EMAIL PROTECTED]>
wrote: 







Hi

 

I have an object I would like to have stored in session, so that I may
pass it between pages. I've been looking at some sniplets and created this code
for setting the object:

 

HttpServletRequest
request =
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest();   


   
request.setAttribute("here", "Hello world");

 

I am setting the value on the base of a panel which holds a button that
contains the below code in a onsubmit override.

 

And this piece for getting the value:

 

HttpServletRequest
request = ((WebRequest)
RequestCycle.get().getRequest()).getHttpServletRequest();

String Message = (String)
request.getAttribute("here");

info(Message);

 

I am getting the value on a onsubmit of a button.

 

However my String(message) are null how can that be, does it have
something to do with the scope?? If I paste the getting code in the same place
as my setting code it works just fine.

 

 

I do also feel that this is not 100% the wicket way to do it, so I must
have overlooked the better way?

 

 












-- 
Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org 








[Wicket-user] popup button

2006-05-17 Thread Nino Wael








Hi 

 

Was wondering if any body has an example on howto create
a popup button? I’ve looked at the triggerbutton from the datepicker
extension but that seems to be too complex for such a “simple”
thing?

 

I want it to run the onsubmit method on the
popupbutton and after that it should make a popup, I tried using a normal
button and a BookmarkablePageLink and calling the onClick event on the latter
but as it is now the onClick event does notting(its also written in the
documentation that it only implements onclick to satisfy interfaces).

 

Regards Nino

 

 








SV: [Wicket-user] popup button

2006-05-17 Thread Nino Wael
Ok, I think I need an example. I'll describe how I belive it works below please 
correct me if im wrong:
 
html
 

pop?
 
/html
 
java
 
  PopupSettings popupSettings = new PopupSettings(PageMap
.forName("popuppagemap"), PopupSettings.MENU_BAR
| PopupSettings.TOOL_BAR).setHeight(500).setWidth(500);
  BookmarkablePageLink mylink;
  mylink = new BookmarkablePageLink("popuplink", PopupInfo.class);
  mylink.setPopupSettings(popupSettings);
  mylink.setParameter("title", popTitle_omraade);
  mylink.setParameter("infotext", popText_omraade);

  Button openword = new Button("openword") {
   protected void onSubmit() { overide code}
}

openword.add(mylink);
add(openword);
 
 
 
/java

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius 
Sendt: on 17-05-2006 12:05 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] popup button



Hi,

You can use a Link with a PopupSpecification. And you can (or should
be able to) actually attach a link to any tag, including a button tag.
    
    Eelco


On 5/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi
>
>
>
> Was wondering if any body has an example on howto create a popup 
button?
> I've looked at the triggerbutton from the datepicker extension but 
that
> seems to be too complex for such a "simple" thing?
>
>
>
> I want it to run the onsubmit method on the popupbutton and after 
that it
> should make a popup, I tried using a normal button and a
> BookmarkablePageLink and calling the onClick event on the latter but 
as it
> is now the onClick event does notting(its also written in the 
documentation
> that it only implements onclick to satisfy interfaces).
>
>
>
> Regards Nino
>
>
>
>


---
Using Tomcat but need to do more? Need to support web services, 
security?
Get stuff done quickly with pre-integrated technology to make your job 
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimo
http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




RE: [Wicket-user] popup button

2006-05-18 Thread Nino Wael
Hi Eelco

It did. Thanks :)


-regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 17. maj 2006 12:41
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] popup button

Simpler than that. I just added this example to wicket-examples/link-o-matic:

Java:

PopupSettings popupSettings = new
PopupSettings(PageMap.forName("popuppagemap")).setHeight(500).setWidth(500);

add(new BookmarkablePageLink("popupButtonLink",
Popup.class).setPopupSettings(popupSettings));

HTML:



The link actually attaches to the input tag. Like I said, it could
attach to anything really, including buttons, table rows, etc.

Hope this helps,

Eelco


On 5/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:
> Ok, I think I need an example. I'll describe how I belive it works below 
> please correct me if im wrong:
>
> html
>
> 
> pop?
>
> /html
>
> java
>
>   PopupSettings popupSettings = new PopupSettings(PageMap
> .forName("popuppagemap"), PopupSettings.MENU_BAR
> | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500);
>   BookmarkablePageLink mylink;
>   mylink = new BookmarkablePageLink("popuplink", PopupInfo.class);
>   mylink.setPopupSettings(popupSettings);
>   mylink.setParameter("title", popTitle_omraade);
>   mylink.setParameter("infotext", popText_omraade);
>
>   Button openword = new Button("openword") {
>protected void onSubmit() { overide code}
> }
>
> openword.add(mylink);
> add(openword);
>
>
>
> /java
>
> -Oprindelig meddelelse-
> Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius
> Sendt: on 17-05-2006 12:05
> Til: wicket-user@lists.sourceforge.net
> Cc:
> Emne: Re: [Wicket-user] popup button
>
>
>
> Hi,
>
> You can use a Link with a PopupSpecification. And you can (or should
> be able to) actually attach a link to any tag, including a button tag.
>
> Eelco
>
>
> On 5/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hi
> >
> >
> >
> > Was wondering if any body has an example on howto create a popup 
> button?
> > I've looked at the triggerbutton from the datepicker extension but 
> that
> > seems to be too complex for such a "simple" thing?
> >
> >
> >
> > I want it to run the onsubmit method on the popupbutton and after 
> that it
> > should make a popup, I tried using a normal button and a
> > BookmarkablePageLink and calling the onClick event on the latter 
> but as it
> > is now the onClick event does notting(its also written in the 
> documentation
> > that it only implements onclick to satisfy interfaces).
> >
> >
> >
> > Regards Nino
> >
> >
> >
> >
>
>
> ---
> Using Tomcat but need to do more? Need to support web services, 
> security?
> Get stuff done quickly with pre-integrated technology to make your 
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache 
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Error on compref live examples

2006-05-18 Thread Nino Wael








Hi im getting and error when trying to look at this
link:

http://www.wicket-library.com/wicket-examples/compref

 

regards Nino








RE: [Wicket-user] popup button

2006-05-18 Thread Nino Wael
But I need to do something when it is clicked.. Is there any other component I 
could use instead?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 18. maj 2006 11:04
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] popup button

Don't override the onclick method.

Eelco


On 5/18/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Im now using the Pagelink which has the nice onClick event, when the new page 
> pops up its just a copy of the current page. And not the class I specified.
>
>
>
>
>
> Code:
>
>
>
> PageLink myReport = new PageLink("openword", PopupReport.class)
>
> {
>
>   public void onClick()
>
> {
>
>  // TODO Auto-generated method stub
>
>   }
>
>};
>
>
>
>
>
> Above code brings up a copy of the current page in the popup, but that's not 
> what I've specified.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
>  Sent: 18. maj 2006 10:35
>  To: wicket-user@lists.sourceforge.net
>
>  Subject: RE: [Wicket-user] popup button
>
>
>
>
>
>
>
> Hi Eelco
>
>
>
> It did. Thanks :)
>
>
>
>
>
> -regards Nino
>
>
>
> -Original Message-
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
>
> Sent: 17. maj 2006 12:41
>
> To: wicket-user@lists.sourceforge.net
>
> Subject: Re: [Wicket-user] popup button
>
>
>
> Simpler than that. I just added this example to wicket-examples/link-o-matic:
>
>
>
> Java:
>
>
>
> PopupSettings popupSettings = new
>
> PopupSettings(PageMap.forName("popuppagemap")).setHeight(500).setWidth(500);
>
>
>
> add(new BookmarkablePageLink("popupButtonLink",
>
> Popup.class).setPopupSettings(popupSettings));
>
>
>
> HTML:
>
>
>
> 
>
>
>
> The link actually attaches to the input tag. Like I said, it could
>
> attach to anything really, including buttons, table rows, etc.
>
>
>
> Hope this helps,
>
>
>
> Eelco
>
>
>
>
>
> On 5/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
> > Ok, I think I need an example. I'll describe how I belive it works below 
> > please correct me if im wrong:
>
> >
>
> > html
>
> >
>
> > 
>
> > pop?
>
> >
>
> > /html
>
> >
>
> > java
>
> >
>
> >   PopupSettings popupSettings = new PopupSettings(PageMap
>
> > .forName("popuppagemap"), PopupSettings.MENU_BAR
>
> > | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500);
>
> >   BookmarkablePageLink mylink;
>
> >   mylink = new BookmarkablePageLink("popuplink", PopupInfo.class);
>
> >   mylink.setPopupSettings(popupSettings);
>
> >   mylink.setParameter("title", popTitle_omraade);
>
> >   mylink.setParameter("infotext", popText_omraade);
>
> >
>
> >   Button openword = new Button("openword") {
>
> >protected void onSubmit() { overide code}
>
> > }
>
> >
>
> > openword.add(mylink);
>
> > add(openword);
>
> >
>
> >
>
> >
>
> > /java
>
> >
>
> > -Oprindelig meddelelse-
>
> > Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius
>
> > Sendt: on 17-05-2006 12:05
>
> > Til: wicket-user@lists.sourceforge.net
>
> > Cc:
>
> > Emne: Re: [Wicket-user] popup button
>
> >
>
> >
>
> >
>
> > Hi,
>
> >
>
> > You can use a Link with a PopupSpecification. And you can (or should
>
> > be able to) actually attach a link to any tag, including a button 
> > tag.
>
> >
>
> > Eelco
>
> >
>
> >
>
> > On 5/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > Hi
>
> > >
>
> > >
>
> > >
>
> > > Was wondering if any body has an example on howto create a popup 
> > button?
>
> > > I've looked at the triggerbutton from the datepicker 

RE: [Wicket-user] popup button

2006-05-18 Thread Nino Wael
Doh, im a little slow today.

When overriding I just call the super.onclick :)

This works fine:)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 18. maj 2006 11:55
To: wicket-user@lists.sourceforge.net
Subject: RE: [Wicket-user] popup button

But I need to do something when it is clicked.. Is there any other component I 
could use instead?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 18. maj 2006 11:04
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] popup button

Don't override the onclick method.

Eelco


On 5/18/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Im now using the Pagelink which has the nice onClick event, when the new page 
> pops up its just a copy of the current page. And not the class I specified.
>
>
>
>
>
> Code:
>
>
>
> PageLink myReport = new PageLink("openword", PopupReport.class)
>
> {
>
>   public void onClick()
>
> {
>
>  // TODO Auto-generated method stub
>
>   }
>
>};
>
>
>
>
>
> Above code brings up a copy of the current page in the popup, but that's not 
> what I've specified.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
>  Sent: 18. maj 2006 10:35
>  To: wicket-user@lists.sourceforge.net
>
>  Subject: RE: [Wicket-user] popup button
>
>
>
>
>
>
>
> Hi Eelco
>
>
>
> It did. Thanks :)
>
>
>
>
>
> -regards Nino
>
>
>
> -Original Message-
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
>
> Sent: 17. maj 2006 12:41
>
> To: wicket-user@lists.sourceforge.net
>
> Subject: Re: [Wicket-user] popup button
>
>
>
> Simpler than that. I just added this example to wicket-examples/link-o-matic:
>
>
>
> Java:
>
>
>
> PopupSettings popupSettings = new
>
> PopupSettings(PageMap.forName("popuppagemap")).setHeight(500).setWidth(500);
>
>
>
> add(new BookmarkablePageLink("popupButtonLink",
>
> Popup.class).setPopupSettings(popupSettings));
>
>
>
> HTML:
>
>
>
> 
>
>
>
> The link actually attaches to the input tag. Like I said, it could
>
> attach to anything really, including buttons, table rows, etc.
>
>
>
> Hope this helps,
>
>
>
> Eelco
>
>
>
>
>
> On 5/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
> > Ok, I think I need an example. I'll describe how I belive it works below 
> > please correct me if im wrong:
>
> >
>
> > html
>
> >
>
> > 
>
> > pop?
>
> >
>
> > /html
>
> >
>
> > java
>
> >
>
> >   PopupSettings popupSettings = new PopupSettings(PageMap
>
> > .forName("popuppagemap"), PopupSettings.MENU_BAR
>
> > | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500);
>
> >   BookmarkablePageLink mylink;
>
> >   mylink = new BookmarkablePageLink("popuplink", PopupInfo.class);
>
> >   mylink.setPopupSettings(popupSettings);
>
> >   mylink.setParameter("title", popTitle_omraade);
>
> >   mylink.setParameter("infotext", popText_omraade);
>
> >
>
> >   Button openword = new Button("openword") {
>
> >protected void onSubmit() { overide code}
>
> > }
>
> >
>
> > openword.add(mylink);
>
> > add(openword);
>
> >
>
> >
>
> >
>
> > /java
>
> >
>
> > -Oprindelig meddelelse-
>
> > Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius
>
> > Sendt: on 17-05-2006 12:05
>
> > Til: wicket-user@lists.sourceforge.net
>
> > Cc:
>
> > Emne: Re: [Wicket-user] popup button
>
> >
>
> >
>
> >
>
> > Hi,
>
> >
>
> > You can use a Link with a PopupSpecification. And you can (or should
>
> > be able to) actually attach a link to any tag, including a button 
> > tag.
>
> >
>
> > Eelco
>
> >
>
> >
>
> > On 5/17/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
> > >
>
> > >
>
> > >
>
> > >
>
> 

[Wicket-user] I've done it again:) browser crashes/creating a custom component

2006-05-18 Thread Nino Wael
Title: I've done it again:) browser crashes/creating a custom component






Im in the midst of developing a component that consists of sets of a radio buttons and  a listchoice.

The functionality is supposed to be like this:

When you click one specific radio button then the sibling(actually child) listchoice of that radio button should be enabled and all other listchoices should be disabled. I’ve managed to get this to work when hardcoding it. 

But when trying to create a component that does it dynamically the browser crashes. Please see attached code for details. What am I doing wrong? <>  <> 



Nino Martinez Vazquez Wael
Konsulent
PS Public

T: ჹ 70 28 29 40, M: ჹ 27 21 29 40
E: [EMAIL PROTECTED]

SAS Institute A/S
Købmagergade 7-9
1150 København K
www.sas.com/dk

T: ჹ 70282870, F: ჹ 70282991

SAS...  The Power to Know

 

The information in this e-mail and any attached files is confidential. It is intended solely for the use of the addressee. Any unauthorized disclosure or use is prohibited. If you are not the intended recipient of the message, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. The views of the author may not necessarily reflect those of the company.




Title: JOBINDSATS



	
	
		
			
 
	 
		
			 
		 
		 
	 

			
		
	






RadioDropdown.java
Description: RadioDropdown.java


[Wicket-user] I've done it again:) browser crashes/creating a custom component

2006-05-19 Thread Nino Wael
Title:  I've done it again:) browser crashes/creating a custom component






This is a resend, with files zipped since my original post didn’t make it through.


Im in the midst of developing a component that consists of sets of a radio buttons and  a listchoice.

The functionality is supposed to be like this:

When you click one specific radio button then the sibling(actually child) listchoice of that radio button should be enabled and all other listchoices should be disabled. I’ve managed to get this to work when hardcoding it. 

But when trying to create a component that does it dynamically the browser crashes. Please see attached code for details. What am I doing wrong? << File: RadioDropdown.html >>  << File: RadioDropdown.java >> 



Nino Martinez Vazquez Wael
 <> Konsulent
PS Public

T: ჹ 70 28 29 40, M: ჹ 27 21 29 40
E: [EMAIL PROTECTED]

SAS Institute A/S
Købmagergade 7-9
1150 København K
www.sas.com/dk

T: ჹ 70282870, F: ჹ 70282991

SAS...  The Power to Know

 

The information in this e-mail and any attached files is confidential. It is intended solely for the use of the addressee. Any unauthorized disclosure or use is prohibited. If you are not the intended recipient of the message, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. The views of the author may not necessarily reflect those of the company.




RE: [Wicket-user] I've done it again:) browser crashes/creating a custom component

2006-05-19 Thread Nino Wael
Title: I've done it again:) browser crashes/creating a custom component











Dos’nt anybody have a comment?

 

BTW IE crashes with a message saying unable to read
from memory, eclipse’s own browser(im not sure which one its build ontop)
“just” crashes java.

 

 

 

Regards Nino







From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: Friday, May 19, 2006 8:57 AM
To:
wicket-user@lists.sourceforge.net
Subject: [Wicket-user] I've done
it again:) browser crashes/creating a custom component



 

Im in the midst of developing a component that consists of sets of a radio
buttons and  a listchoice.

The functionality is supposed to be like this:

When you click one specific radio button then the sibling(actually
child) listchoice of that radio
button should be enabled and all other listchoices should be disabled.
I’ve managed to get this to work when hardcoding it. 

But when trying to create a component that does it dynamically the browser crashes. Please see attached
code for details. What am I doing wrong? <> <>


 

Nino Martinez Vazquez Wael
Konsulent
PS Public

T: ჹ 70 28 29 40, M: ჹ 27 21 29 40
E: [EMAIL PROTECTED]

SAS Institute A/S
Købmagergade 7-9
1150 København K
www.sas.com/dk

T: ჹ 70282870, F: ჹ 70282991

SAS...  The Power to Know

 

The
information in this e-mail and any attached files is confidential. It is
intended solely for the use of the addressee. Any unauthorized disclosure or
use is prohibited. If you are not the intended recipient of the message, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
The views of the author may not necessarily reflect those of the company.








Re: [Wicket-user] Question about Panel

2007-02-28 Thread Nino Wael
Just create the panel as an anonym class in your page or inner class...

 

 

Pseudo Snipplet:

 

Webpage extends page

{

Mypanel panel=new Mypanel();

This.add(panel);

 

}

 

Mypanel extends panel{}

 

As I remember it should work...

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zhang Hailong
Sent: 28. februar 2007 10:56
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Question about Panel

 

Hi all,

I found it is inconvenient to create a separate page and class for Panel every 
time. Sometimes, I just want keep things as simple as possible. For example, I 
just want to hide some components together, so I put them in a Panel. 
Is it possible to use Panel like this?Or add this feature in later version?(I'm 
using 1.2.4)
HTML:
 
 
You believe

  


text 

  


Java:
Panel myPanel = new Panel("myPanel");
Label label = new Label("label", "test"); 
myPanel.add(label);
.

Thanks.


Regards,
Hailong Zhang

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Nino Wael
Just use a mountedurl


mountBookmarkablePage("/desiredurl",
desiredclass.class);

-Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Colman
Sent: 28. februar 2007 11:59
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Nicer URLs

Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket and I have to say - "Wicket rocks massively!"

A while back I designed my own *little* component based rendering
technology (design stage only thankfully) and Wicket looks just like the
one I was designing which is great - I no longer need to implement mine
now! It's interesting how similar Wicket is - right down to the
inheritance markup - something I regarded as a *must have* feature for
mine.  Keep up the great work.

I have a question:

Is it possible to change URLs like:

http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi
cket.templates.original.LocationPage&o=76165

to something like:

http://myserver.com/helloworld/LocationPage&o=76165

?

Regards.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nicer URLs

2007-02-28 Thread Nino Wael
Oeh an forgot to say that parameters you can just append to the url 

Short example:

http:\\localhost\mywicketapp\myniceurl\paramA\valueA\paramB\valueB




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 28. februar 2007 12:02
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Nicer URLs

Just use a mountedurl


mountBookmarkablePage("/desiredurl",
desiredclass.class);

-Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Colman
Sent: 28. februar 2007 11:59
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Nicer URLs

Today I hit the critical mass of connections between neurons in my brain
required to grasp Wicket and I have to say - "Wicket rocks massively!"

A while back I designed my own *little* component based rendering
technology (design stage only thankfully) and Wicket looks just like the
one I was designing which is great - I no longer need to implement mine
now! It's interesting how similar Wicket is - right down to the
inheritance markup - something I regarded as a *must have* feature for
mine.  Keep up the great work.

I have a question:

Is it possible to change URLs like:

http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi
cket.templates.original.LocationPage&o=76165

to something like:

http://myserver.com/helloworld/LocationPage&o=76165

?

Regards.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how do I set Ajax time out[wicket 1.2.4]?

2007-03-15 Thread Nino Wael
Hi 
 
I have some components that uses the ajaxformupdatingbehavior. Some times(1% of 
1300 requests) under "heavy" load(24 concurent users/threads using jmeter) some 
of them fails to be able to select something in the dropdown thats using the 
updating behavior. This leads me to think that the ajax updating behavior times 
out, so how do I increase the duration on ajaxrequests?
 
regards Nino

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how do I set Ajax time out[wicket 1.2.4]?

2007-03-15 Thread Nino Wael
Hmm this is really wierd, when testing this against one of our dev machine's 
these errors does not occur.. It only occurs against our servers.



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: to 15-03-2007 13:56
Til: wicket-user@lists.sourceforge.net
Emne: [Wicket-user] how do I set Ajax time out[wicket 1.2.4]?



Hi

I have some components that uses the ajaxformupdatingbehavior. Some times(1% of 
1300 requests) under "heavy" load(24 concurent users/threads using jmeter) some 
of them fails to be able to select something in the dropdown thats using the 
updating behavior. This leads me to think that the ajax updating behavior times 
out, so how do I increase the duration on ajaxrequests?

regards Nino

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] getRealPath(wicket 1.2.4) any proper wicket way to this?

2007-03-26 Thread Nino Wael
Hi 

Currently we are doing this within our wicket application:

getWicketServlet().getServletContext().getRealPath("/");

Im wondering if there are a more wicketly kind of approach to this?


regards Nino
<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AJAX modal window (1.2.5)and form

2007-03-26 Thread Nino Wael
Hi

I have a AJAX modal window wich contains a form. In the form there a an 
radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating 
behavior are trigered but the model of the radiochoice aren't being updated.

Also on the basepage where you can trigger the modal window, I also have a 
form. Not sure if this should make anything fail?

snip of the code from the panel thats used in the modal window:
public QuestionSelectorPanel(String id, final IModel selectedQuestion,
final ModalWindow modalQuestionPop, final Label label) {
super(id);
Form form = new Form("form");
final RadioChoice questionRadio = new RadioChoice("questions",
selectedQuestion, Question.getTypes());
questionRadio.setOutputMarkupId(true);
questionRadio.add(new 
AjaxFormComponentUpdatingBehavior("onchange") {
protected void onUpdate(AjaxRequestTarget target) {
System.out.print("selected value should print 
here!:"
+ selectedQuestion.toString());
// below are working, label prints out foobar
// label.setModelObject("foobar!");
target.addComponent(label);
modalQuestionPop.close(target);
}
});
add(form);
form.add(questionRadio);
}
snip of the basecode:
final ModalWindow modalQuestionPop = new ModalWindow(
"modalquestionpopup");
add(modalQuestionPop);
Label label = new Label("selectedradio", selectedQuestion);
label.setOutputMarkupId(true);
modalQuestionPop.setOutputMarkupId(true);
modalQuestionPop.setTitle("Please select a Question type");
modalQuestionPop.setContent(new 
QuestionSelectorPanel(modalQuestionPop
.getContentId(), selectedQuestion, 
modalQuestionPop, label));
Form form = new Form("form");

AjaxSubmitButton addQuestion = new 
AjaxSubmitButton("addQuestion", form) {

protected void onSubmit(wicket.ajax.AjaxRequestTarget 
arg0,
Form arg1) {
modalQuestionPop.show(arg0);
};

};
form.add(addQuestion);
add(form);
add(label);



regards Nino
<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX modal window (1.2.5)and form

2007-03-26 Thread Nino Wael
it's not a nested form:


concept ideas: display questionaire on main page, have popups 
when adding questions with available question types.




none

form tag are closed before the popup tag(modalquestionpopup). I'll try creating 
a page instead?


regards Nino


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Matej Knopp
Sendt: ma 26-03-2007 14:37
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form
 
If you have nested forms it will fail. Nested forms are not supported
in wicket 1.2.

If you need separate form in modal window in 1.2, the safest bet is to
use a page inside modal window.

-Matej

On 3/26/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a AJAX modal window wich contains a form. In the form there a an 
> radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating 
> behavior are trigered but the model of the radiochoice aren't being updated.
>
> Also on the basepage where you can trigger the modal window, I also have a 
> form. Not sure if this should make anything fail?
>
> snip of the code from the panel thats used in the modal window:
> public QuestionSelectorPanel(String id, final IModel selectedQuestion,
> final ModalWindow modalQuestionPop, final Label 
> label) {
> super(id);
> Form form = new Form("form");
> final RadioChoice questionRadio = new RadioChoice("questions",
> selectedQuestion, Question.getTypes());
> questionRadio.setOutputMarkupId(true);
> questionRadio.add(new 
> AjaxFormComponentUpdatingBehavior("onchange") {
> protected void onUpdate(AjaxRequestTarget target) {
> System.out.print("selected value should print 
> here!:"
> + 
> selectedQuestion.toString());
> // below are working, label prints out foobar
> // label.setModelObject("foobar!");
> target.addComponent(label);
> modalQuestionPop.close(target);
> }
> });
> add(form);
> form.add(questionRadio);
> }
> snip of the basecode:
> final ModalWindow modalQuestionPop = new ModalWindow(
> "modalquestionpopup");
> add(modalQuestionPop);
> Label label = new Label("selectedradio", selectedQuestion);
> label.setOutputMarkupId(true);
> modalQuestionPop.setOutputMarkupId(true);
> modalQuestionPop.setTitle("Please select a Question type");
> modalQuestionPop.setContent(new 
> QuestionSelectorPanel(modalQuestionPop
> .getContentId(), selectedQuestion, 
> modalQuestionPop, label));
> Form form = new Form("form");
>
> AjaxSubmitButton addQuestion = new 
> AjaxSubmitButton("addQuestion", form) {
>
> protected void onSubmit(wicket.ajax.AjaxRequestTarget 
> arg0,
> Form arg1) {
> modalQuestionPop.show(arg0);
> };
>
> };
> form.add(addQuestion);
> add(form);
> add(label);
>
>
>
> regards Nino
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Re: [Wicket-user] getRealPath(wicket 1.2.4) any proper wicket wayto this?

2007-03-26 Thread Nino Wael
Ok.


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius
Sendt: ma 26-03-2007 17:27
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] getRealPath(wicket 1.2.4) any proper wicket wayto this?
 
Nope, that's the way to do it. In 1.3 you can get the servlet context
directly from the application object.

Eelco


On 3/26/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> Currently we are doing this within our wicket application:
>
> getWicketServlet().getServletContext().getRealPath("/");
>
> Im wondering if there are a more wicketly kind of approach to this?
>
>
> regards Nino
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Radio.getValue?

2007-03-26 Thread Nino Wael
Hi

We are doing some extensive Jmeter testing, and have run into a technical 
problem regarding radios, which are the following:

If you had 5 radios on a page at a given time, their value would have been 
radio1, radio2.. radio5.

If you then pulled out radio number 4 then the list would be this, radio1, 
radio2 .. radio4.

Now only the one previously called radio4 should not have been selectable. This 
renders our jmeter test pretty vuernable if some of the stuff no longer are 
available. Im not sure if I can use a ichoicerenderer, looking at the code from 
getValue, it's pretty hardcoded am I correct?

If possible i'd like to just use the IChoiceRenderer's getId instead, that 
should fix the problem.

regards Nino

<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-03-27 Thread Nino Wael
Hmm I can see that radio are pretty simple on this, no constructors with 
ichoicerenderer. 

I guess the only way it can work are if some one creates a patch. I'll findout 
how bad we want this not to be a problem, if we want it bad. I'll create a fix 
for it.

If I create a fix, could it be patched back into wicket 1.2.4?


regards Nino


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: ti 27-03-2007 08:22
Til: wicket-user@lists.sourceforge.net
Emne: Radio.getValue? 
 
Hi

We are doing some extensive Jmeter testing, and have run into a technical 
problem regarding radios, which are the following:

If you had 5 radios on a page at a given time, their value would have been 
radio1, radio2.. radio5.

If you then pulled out radio number 4 then the list would be this, radio1, 
radio2 .. radio4.

Now only the one previously called radio4 should not have been selectable. This 
renders our jmeter test pretty vuernable if some of the stuff no longer are 
available. Im not sure if I can use a ichoicerenderer, looking at the code from 
getValue, it's pretty hardcoded am I correct?

If possible i'd like to just use the IChoiceRenderer's getId instead, that 
should fix the problem.

regards Nino


<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Japanese does not work inAutocomplete (Firefox/Windows)

2007-03-27 Thread Nino Wael
Any localized javascript operators in the autocomplete thingy(eg boolean=falsch 
instead of boolean=0 )? As I remember it only were a problem on IE 5.5. But 
thats something you could check.


regards.


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af David Leangen
Sendt: ti 27-03-2007 04:49
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Japanese does not work inAutocomplete   
(Firefox/Windows)
 

Just an update...

The problem does not occur on English Windows.

It occurred on 3 different machines running Japanese Windows XP.


I'm stumped...




On Tue, 2007-03-27 at 09:45 +0900, David Leangen wrote:
> Hello!
> 
> For some reason, in Firefox under Windows only, Japanese autocomplete
> does not not work.
> 
> It works in Firefox on Mac and Linux, and it works on IE in Windows.
> It's just the Firefox/Windows that causes the problem, and only in
> Japanese.
> 
> By "does not work", I mean that nothing shows up.
> 
> 
> Any ideas where we could look?
> 
> (I don't have a dev environment in Windows set up, so I haven't been
> able to step through the code in debug mode.)
> 
> 
> Cheers,
> David
> 
> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-03-27 Thread Nino Wael
hmm, the same thing applies to checkbox component.


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: ti 27-03-2007 12:15
Til: wicket-user@lists.sourceforge.net
Emne: SV: Radio.getValue? 
 
Hmm I can see that radio are pretty simple on this, no constructors with 
ichoicerenderer. 

I guess the only way it can work are if some one creates a patch. I'll findout 
how bad we want this not to be a problem, if we want it bad. I'll create a fix 
for it.

If I create a fix, could it be patched back into wicket 1.2.4?


regards Nino


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: ti 27-03-2007 08:22
Til: wicket-user@lists.sourceforge.net
Emne: Radio.getValue? 
 
Hi

We are doing some extensive Jmeter testing, and have run into a technical 
problem regarding radios, which are the following:

If you had 5 radios on a page at a given time, their value would have been 
radio1, radio2.. radio5.

If you then pulled out radio number 4 then the list would be this, radio1, 
radio2 .. radio4.

Now only the one previously called radio4 should not have been selectable. This 
renders our jmeter test pretty vuernable if some of the stuff no longer are 
available. Im not sure if I can use a ichoicerenderer, looking at the code from 
getValue, it's pretty hardcoded am I correct?

If possible i'd like to just use the IChoiceRenderer's getId instead, that 
should fix the problem.

regards Nino



<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-03-27 Thread Nino Wael
Ok, let me try to explain another way. 
 
If you create a page where you use the radio component. The radios represent 
various kinds of datasets(OLAP cubes in this case but it does not really 
matter). 
 
On monday the 1. march you record with jmeter your test case(jmeter only 
records the http requests). In your test case you must select the retirement 
dataset (which has the value "radio5" on the html page).
 
Some time has passed now and you want to run your jmeter test, but on your page 
some of the datasets has been removed (they wasnt needed or was not allowed to 
be shown). So now the page no longer contains the radio with the value radio5, 
and your jmeter test will fail because wicket cant find the radio(another error 
scenario would be if the radios changed order). 
 
So if radio component allowed the use of Ichoicerenderer, it could generate the 
value based on the id of the ichoicerenderer for the particular dataitem. This 
would bring better persistance to the radios. At least when testing with jmeter.
 
Did I do a better job explaining?:) 
 
Some could argue that it's not issue, but it would be very handy to have the 
ability to use the ichoicerender with every component that makes use of the 
value attribute in inputs(havent thought it through though). Because it would 
make it easier to use tools as jmeter.
 
I would suggest that to avoid nameclashing we could use the components 
name.getIdValue as value attribute. I am aware that this would bring in a 
possible vuernability, if duplicate items are inserted and that could cause 
problems i guess?
 
regards Nino



Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius
Sendt: ti 27-03-2007 18:40
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Radio.getValue?



I'm afraid I don't really understand your problem Nino.

Eelco

On 3/26/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> We are doing some extensive Jmeter testing, and have run into a technical 
> problem regarding radios, which are the following:
>
> If you had 5 radios on a page at a given time, their value would have been 
> radio1, radio2.. radio5.
>
> If you then pulled out radio number 4 then the list would be this, radio1, 
> radio2 .. radio4.
>
> Now only the one previously called radio4 should not have been selectable. 
> This renders our jmeter test pretty vuernable if some of the stuff no longer 
> are available. Im not sure if I can use a ichoicerenderer, looking at the 
> code from getValue, it's pretty hardcoded am I correct?
>
> If possible i'd like to just use the IChoiceRenderer's getId instead, that 
> should fix the problem.
>
> regards Nino
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-03-29 Thread Nino Wael
pinging/bump  Eelco to answer:)
 



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: on 28-03-2007 09:54
Til: wicket-user@lists.sourceforge.net
Emne: SV: [Wicket-user] Radio.getValue?


Ok, let me try to explain another way. 
 
If you create a page where you use the radio component. The radios represent 
various kinds of datasets(OLAP cubes in this case but it does not really 
matter). 
 
On monday the 1. march you record with jmeter your test case(jmeter only 
records the http requests). In your test case you must select the retirement 
dataset (which has the value "radio5" on the html page).
 
Some time has passed now and you want to run your jmeter test, but on your page 
some of the datasets has been removed (they wasnt needed or was not allowed to 
be shown). So now the page no longer contains the radio with the value radio5, 
and your jmeter test will fail because wicket cant find the radio(another error 
scenario would be if the radios changed order). 
 
So if radio component allowed the use of Ichoicerenderer, it could generate the 
value based on the id of the ichoicerenderer for the particular dataitem. This 
would bring better persistance to the radios. At least when testing with jmeter.
 
Did I do a better job explaining?:) 
 
Some could argue that it's not issue, but it would be very handy to have the 
ability to use the ichoicerender with every component that makes use of the 
value attribute in inputs(havent thought it through though). Because it would 
make it easier to use tools as jmeter.
 
I would suggest that to avoid nameclashing we could use the components 
name.getIdValue as value attribute. I am aware that this would bring in a 
possible vuernability, if duplicate items are inserted and that could cause 
problems i guess?
 
regards Nino



Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius
Sendt: ti 27-03-2007 18:40
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Radio.getValue?



I'm afraid I don't really understand your problem Nino.

Eelco

On 3/26/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> We are doing some extensive Jmeter testing, and have run into a technical 
> problem regarding radios, which are the following:
>
> If you had 5 radios on a page at a given time, their value would have been 
> radio1, radio2.. radio5.
>
> If you then pulled out radio number 4 then the list would be this, radio1, 
> radio2 .. radio4.
>
> Now only the one previously called radio4 should not have been selectable. 
> This renders our jmeter test pretty vuernable if some of the stuff no longer 
> are available. Im not sure if I can use a ichoicerenderer, looking at the 
> code from getValue, it's pretty hardcoded am I correct?
>
> If possible i'd like to just use the IChoiceRenderer's getId instead, that 
> should fix the problem.
>
> regards Nino
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AJAX modal window (1.2.5)and form

2007-03-29 Thread Nino Wael
Hmm after some extensive testing. It appears as the radiochoice cant be used 
with ajax when applying the ajaxformupdating component (the update a called but 
the radiochoice model arent updated), I am using onchance attribute to trigger 
ajax are this wrong? It works just fine when using dropdown. Not matter if its 
on a page or panel..
 
 
regards Nino



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: ma 26-03-2007 15:18
Til: wicket-user@lists.sourceforge.net
Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form



it's not a nested form: 

 
concept ideas: display questionaire on main page, have popups 
when adding questions with available question types.

 
 
 
 
none 
 
form tag are closed before the popup tag(modalquestionpopup). I'll try creating 
a page instead? 


regards Nino 


-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Matej Knopp 
Sendt: ma 26-03-2007 14:37 
Til: wicket-user@lists.sourceforge.net 
Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form 
  
If you have nested forms it will fail. Nested forms are not supported 
in wicket 1.2. 

If you need separate form in modal window in 1.2, the safest bet is to 
use a page inside modal window. 

-Matej 

On 3/26/07, Nino Wael <[EMAIL PROTECTED]> wrote: 
> Hi 
> 
> I have a AJAX modal window wich contains a form. In the form there a an 
> radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating 
> behavior are trigered but the model of the radiochoice aren't being updated.

> 
> Also on the basepage where you can trigger the modal window, I also have a 
> form. Not sure if this should make anything fail?

> 
> snip of the code from the panel thats used in the modal window: 
> public QuestionSelectorPanel(String id, final IModel 
> selectedQuestion, 
> final ModalWindow modalQuestionPop, final Label 
> label) { 
> super(id); 
> Form form = new Form("form"); 
> final RadioChoice questionRadio = new 
> RadioChoice("questions", 
> selectedQuestion, Question.getTypes()); 
> questionRadio.setOutputMarkupId(true); 
> questionRadio.add(new 
> AjaxFormComponentUpdatingBehavior("onchange") { 
> protected void onUpdate(AjaxRequestTarget target) { 
> System.out.print("selected value should print 
> here!:" 
> + 
> selectedQuestion.toString()); 
> // below are working, label prints out foobar 
> // label.setModelObject("foobar!"); 
> target.addComponent(label); 
> modalQuestionPop.close(target); 
> } 
> }); 
> add(form); 
> form.add(questionRadio); 
> } 
> snip of the basecode: 
> final ModalWindow modalQuestionPop = new ModalWindow( 
> "modalquestionpopup"); 
> add(modalQuestionPop); 
> Label label = new Label("selectedradio", selectedQuestion); 
> label.setOutputMarkupId(true); 
> modalQuestionPop.setOutputMarkupId(true); 
> modalQuestionPop.setTitle("Please select a Question type"); 
> modalQuestionPop.setContent(new 
> QuestionSelectorPanel(modalQuestionPop 
> .getContentId(), selectedQuestion, 
> modalQuestionPop, label)); 
> Form form = new Form("form"); 
> 
> AjaxSubmitButton addQuestion = new 
> AjaxSubmitButton("addQuestion", form) { 
> 
> protected void onSubmit(wicket.ajax.AjaxRequestTarget 
> arg0, 
> Form arg1) { 
> modalQuestionPop.show(arg0); 
> }; 
> 
> }; 
> form.add(addQuestion); 
> add(form); 
> add(label); 
> 
> 
> 
> regards Nino 
> 
> - 
> Take Surveys. Earn Cash. Influence the Future of IT 
> Join SourceForge.net's Techsay panel and you'll get the chance to share your 
> opinions on IT & business topics through brief surveys-and earn cash 
> http://www.techsay.com/default.ph

Re: [Wicket-user] AJAX modal window (1.2.5)and form

2007-03-29 Thread Nino Wael
heheh obviously i am using onchange and not onchance:)



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: to 29-03-2007 13:42
Til: wicket-user@lists.sourceforge.net; wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form



Hmm after some extensive testing. It appears as the radiochoice cant be used 
with ajax when applying the ajaxformupdating component (the update a called but 
the radiochoice model arent updated), I am using onchance attribute to trigger 
ajax are this wrong? It works just fine when using dropdown. Not matter if its 
on a page or panel..


regards Nino



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: ma 26-03-2007 15:18
Til: wicket-user@lists.sourceforge.net
Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form



it's not a nested form:


concept ideas: display questionaire on main page, have popups 
when adding questions with available question types.





none

form tag are closed before the popup tag(modalquestionpopup). I'll try creating 
a page instead?


regards Nino


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af Matej Knopp
Sendt: ma 26-03-2007 14:37
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form
 
If you have nested forms it will fail. Nested forms are not supported
in wicket 1.2.

If you need separate form in modal window in 1.2, the safest bet is to
use a page inside modal window.

-Matej

On 3/26/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a AJAX modal window wich contains a form. In the form there a an 
> radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating 
> behavior are trigered but the model of the radiochoice aren't being updated.

>
> Also on the basepage where you can trigger the modal window, I also have a 
> form. Not sure if this should make anything fail?

>
> snip of the code from the panel thats used in the modal window:
> public QuestionSelectorPanel(String id, final IModel selectedQuestion,
> final ModalWindow modalQuestionPop, final Label 
> label) {
> super(id);
> Form form = new Form("form");
> final RadioChoice questionRadio = new RadioChoice("questions",
> selectedQuestion, Question.getTypes());
> questionRadio.setOutputMarkupId(true);
> questionRadio.add(new 
> AjaxFormComponentUpdatingBehavior("onchange") {
> protected void onUpdate(AjaxRequestTarget target) {
> System.out.print("selected value should print 
> here!:"
> + 
> selectedQuestion.toString());
> // below are working, label prints out foobar
> // label.setModelObject("foobar!");
> target.addComponent(label);
> modalQuestionPop.close(target);
> }
> });
> add(form);
> form.add(questionRadio);
> }
> snip of the basecode:
> final ModalWindow modalQuestionPop = new ModalWindow(
> "modalquestionpopup");
> add(modalQuestionPop);
> Label label = new Label("selectedradio", selectedQuestion);
> label.setOutputMarkupId(true);
> modalQuestionPop.setOutputMarkupId(true);
> modalQuestionPop.setTitle("Please select a Question type");
> modalQuestionPop.setContent(new 
> QuestionSelectorPanel(modalQuestionPop
> .getContentId(), selectedQuestion, 
> modalQuestionPop, label));
> Form form = new Form("form");
>
> AjaxSubmitButton addQuestion = new 
> AjaxSubmitButton("addQuestion", form) {
>
> protected void onSubmit(wicket.ajax.AjaxRequestTarget 
> arg0,
> Form arg1) {
> modalQuestionPop.show(arg0);
> };
>
> };
> form.add(addQuestion);
> add(form);
> add(label);
>
>
>
> regards Nino
>
> -
> Take Surveys. Earn Cash. Influence the Futu

Re: [Wicket-user] Radio.getValue?

2007-03-30 Thread Nino Wael
That was whý I suggested that we could have another constructor that took an 
Ichoicerender. There are tons of places in other wicket core components that 
supply a constructor that takes the ichoicerender. 
 
SO I think it should be ok? I would really like that ichoicerenderer would be 
supported by every component where it makes sense...
 
 
Should we move this do the dev list?
 
regards Nino



Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg
Sendt: to 29-03-2007 19:11
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Radio.getValue?


On 3/29/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: 


Looking at that code, I don't understand why we even need:
private short uuid = -1;

as there is no code other than in getValue that changes the value, and
that value can just be recreated everytime it is needed (as it is 
nothing more than a call to getPage().getAutoIndex()). Am I missing
something here?


yes, you are missing the fact that getautoindex() increments the index on every 
call that is why we cache it in the uuid var. 



WDYT?


personally i dont like making getvalue non-final. this will patch this 
component for this kind of testing, but what about other components that do not 
have a stable name? are we going to have to start opening implementation 
details on all of them just because users want to test it with something static 
like httpunit? just my 2c. 
 
-igor



<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-04-02 Thread Nino Wael
|ichoicerenderer exists for two reasons. one is to generate an id so that a 
specific imodel can be picked out of a list of imodels. two so that you can 
convert model object into some user string to display to the user. NEITHER |of 
these apply to radio, so radio will not have an ichoicerenderer. 

I see your point, and am aware that it's just not the logical place to 
implement it. I guess RadioGroup/checkgroup would be a better place?
 
|yes, you are not meant to have control over it - it is an implementation 
detail of that component.
 
Well again correct, radiogroup/checkgroup seems a better place. I might have 
been a little slow here.

|why do people keep bring up arguments like this? it is very annoying. is it 
our fault that you are in this situation? you put yourself there. now you 
expect us to make our component worse for all our users so that you can  get 
|out of a corner you painted yourself into? 

Hmmm, I did not mean to accuse you of being the one whose fault it was, I never 
talked of fault. I just said that it was a little late for our project to 
implement drastic changes, this has absolutely nothing to do with the wicket 
devs. 
 
Wheter I put myself in the situation or not, I guess can be discussed on a lot 
of levels. And no I did not see it comming that the radio, werent persistant in 
it's id's. I never expected you guys to do anything, how could I. Wicket are 
opensource:) And I did certinly not want or expect of you to make any part of 
wicket worse, that would be a really bad thing to do.
 
I just wanted to point out that there was something that was less that optimal 
with radios and checks. And I guessed that we wasnt the only users likely to 
encounter this. So of course, I would like to see wicket was improved on this 
point, either by me or somebody else (doesnt really matter who does the work), 
just that its done. However if this means that we are crapping wicket up in 
some way, thats a bad turn to take.
 
I think i'll ask the user list how many peeps does performance tests that needs 
to be stable over a longer periode. Or what peeps in general does to 
performance test their application. It might just be us who has an strict 
contract with our customer.
 
 
-regards Nino
 


Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg
Sendt: sø 01-04-2007 21:15
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Radio.getValue?


On 4/1/07, Nino Wael <[EMAIL PROTECTED]> wrote: 

I do know that radio and check are directly attached to their imodel. 
But the imodel does not provide an alternate value for them.

I just dont see why not to provide an ichoicerender on these components 
when providing it for the radiochoice and dropdown choice. 


ichoicerenderer exists for two reasons. one is to generate an id so that a 
specific imodel can be picked out of a list of imodels. two so that you can 
convert model object into some user string to display to the user. NEITHER of 
these apply to radio, so radio will not have an ichoicerenderer. 



We have no way of controlling the value of the radios when using this 
component. 


yes, you are not meant to have control over it - it is an implementation detail 
of that component.



And since we cant overide the getValue we are either stuck or need to 
use another component.

But that implicates some redesign, and it's a little late for that now 
on our project at least.


why do people keep bring up arguments like this? it is very annoying. is it our 
fault that you are in this situation? you put yourself there. now you expect us 
to make our component worse for all our users so that you can  get out of a 
corner you painted yourself into? 



Hmm this maybe something for wicket-stuff or extensions then..


or for your own code tree. it is easy to copy/paste radio into your own code 
and remove whatever final is in your way. since your code is imported first on 
the classpath it will simply override whatever wicket has, given you do not 
change package name and class name. 

-igor




regards Nino


-Original Message-
From: [EMAIL PROTECTED] on behalf of Igor Vaynberg
Sent: Fri 30-03-2007 17:15
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Radio.getValue?

radio and check do not take an ichoicerenderer because they do not need 
it.
they do not traverse over a list of choices and try to look one up, they
have the choice attached directly to them via imodel. 

-igor
    
    
On 3/30/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
> That was whý I suggested that we could have another constructor that 
took
> an Ichoicerender. There are tons of places in other wicket core 
components 
> that supply a constructor that 

[Wicket-user] Performance test, how do you do it?

2007-04-02 Thread Nino Wael
Hi, based on something in another thread, 
(http://www.nabble.com/Flexible-markup-with-same-Java-classes-tf3471204.html#a9689979)
 I was curious on how people does performance test with wicket?
 
On our project we are using JMeter which we use as a http request processor. 
Which we record requests with and then in order to performance test, Jmeter 
plays the request and checks if responses are correct. At the same time JMeter 
times how long responses take etc. 
 
Our customer wants to run and rerun the jmeter test over a longer periode, when 
adding content to the system inorder to check how this impacts performance. I 
guess this is normal procedure?
 
I've looked at Selenium too, but selenium are more a browser testing tool that 
arent able to performance test. I had some trouble using Selenium against ajax 
queries, but you should be able to fix this by calling some alternate functions 
instead.
 
 
So this is how we do it, how do you do it?
 
 
regards Nino

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-04-03 Thread Nino Wael
|ichoicerenderer exists for two reasons. one is to generate an id so 
that a specific imodel can be picked out of a list of imodels. two so that you 
can convert model object into some user string to display to the user. NEITHER 
|of these apply to radio, so radio will not have an ichoicerenderer. 

I see your point, and am aware that it's just not the logical place to 
implement it. I guess RadioGroup/checkgroup would be a better place?


|no it wouldnt be a better place. 


|yes, you are not meant to have control over it - it is an 
implementation detail of that component.

Well again correct, radiogroup/checkgroup seems a better place. I might 
have been a little slow here.


|once again, no. the choice renderer simply doesnt apply to these components.

Come on, a little better would it be. Since radiogroup contains radios. So it 
is a kind of container. But in the sense that it arent just possible to 
implement the change without some changes youre right. And in fact i guess if 
we change it too much we would just end up with the RadioChoice component. 
Which already takes an ichoicerenderer.
 
I am using Jmeter, but the whole trouble originates by that data are changeing. 
And in production it would not make sense for it to remain stable, but some of 
it are stable and this is what we are wanting to test. Currently we have agreed 
that we only run one test (orginal we had 15 individual tests) which needs to 
be recreated / or manipulated with the correct radio id's. Im wondering since 
no one else seems to have these problems, they have either not used the radio / 
check components or does not performance test this way? Is this an uncommon way 
to performance test over time?
 
 
regards Nino



Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg
Sendt: ma 02-04-2007 20:13
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Radio.getValue?


On 4/2/07, Nino Wael <[EMAIL PROTECTED]> wrote: 

|ichoicerenderer exists for two reasons. one is to generate an id so 
that a specific imodel can be picked out of a list of imodels. two so that you 
can convert model object into some user string to display to the user. NEITHER 
|of these apply to radio, so radio will not have an ichoicerenderer. 

I see your point, and am aware that it's just not the logical place to 
implement it. I guess RadioGroup/checkgroup would be a better place?


no it wouldnt be a better place. 



|yes, you are not meant to have control over it - it is an 
implementation detail of that component.

Well again correct, radiogroup/checkgroup seems a better place. I might 
have been a little slow here.


once again, no. the choice renderer simply doesnt apply to these components.


perhaps what you should work on is running jmeter, or whatever you use, over a 
stable dataset. the way these components work are deterministic - so same test 
over same data should produce same html 

-igor



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-04-03 Thread Nino Wael
We also can test without trouble, as long as the underlying data does not 
change. I guess this depends on how the application are built.
 
But if you have something to add, we have created an entry on the wiki please 
feel free to add stuff to it.
 
http://cwiki.apache.org/WICKET/wicket-and-jmeter.html
 
 
regards Nino



Fra: [EMAIL PROTECTED] på vegne af Peter Thomas
Sendt: ti 03-04-2007 10:43
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Radio.getValue?


Hi Nino,

Sorry I was not following this thread from the start - but recently I had some 
success using JMeter for testing a wicket application by using the regular 
expression support built into JMeter.  My test script actually can use the 
"wicket:id" values and so far I'm getting good results. 

Let me know if you need more details.

Thanks,

Peter.


On 4/3/07, Nino Wael <[EMAIL PROTECTED] > wrote:



I am using Jmeter, but the whole trouble originates by that data are 
changeing. And in production it would not make sense for it to remain stable, 
but some of it are stable and this is what we are wanting to test. Currently we 
have agreed that we only run one test (orginal we had 15 individual tests) 
which needs to be recreated / or manipulated with the correct radio id's. Im 
wondering since no one else seems to have these problems, they have either not 
used the radio / check components or does not performance test this way? Is 
this an uncommon way to performance test over time? 


regards Nino




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-04-03 Thread Nino Wael
Before wicket processing or after?
 
the after processing you can see here:
 
prod.jobindsats.dk
 
a user case could be:
 

1.  
select starthjælp from the left menu(this brings you to our wicket 
application in the middle frame)
2.  
select databank radio
3.  
select the Tilbagefald radio
4.  
press the submit button called næste

There are some further steps, but this should make you see what the trouble are 
with the radios, by selecting the tilbagefald radio you also submit the 
page(this populates the info field), after the submit of the page then the 
radios gets new numbers.
 
I also have the jMeter testplan if you want to 
see it?
 
Hmm, it might be easier if I just took a look at your script? Also I dont want 
you to put in too much work on this(theres no need for it, since customer has 
accepted to rebuild the test plan each time).
 
 
regards Nino
 



Fra: [EMAIL PROTECTED] på vegne af Peter Thomas
Sendt: ti 03-04-2007 11:11
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Radio.getValue?


Ok, once I manage to get something on the wiki (hopefully soon), I'll notify 
the mailing list.

Meanwhile Nino - if you can send me separately a couple of different samples of 
HTML of the page you are trying to test, I can have a look to see if I have a 
solution using JMeter. 

Thanks,

Peter.


On 4/3/07, Nino Wael <[EMAIL PROTECTED]> wrote: 

We also can test without trouble, as long as the underlying data does 
not change. I guess this depends on how the application are built.

But if you have something to add, we have created an entry on the wiki 
please feel free to add stuff to it. 

http://cwiki.apache.org/WICKET/wicket-and-jmeter.html


regards Nino



Fra: [EMAIL PROTECTED] på vegne af Peter Thomas
Sendt: ti 03-04-2007 10:43
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] Radio.getValue?


Hi Nino,

Sorry I was not following this thread from the start - but recently I 
had some success using JMeter for testing a wicket application by using the 
regular expression support built into JMeter.  My test script actually can use 
the "wicket:id" values and so far I'm getting good results. 

Let me know if you need more details.

Thanks,

Peter.

    
    On 4/3/07, Nino Wael <[EMAIL PROTECTED] > wrote:



I am using Jmeter, but the whole trouble originates by that 
data are changeing. And in production it would not make sense for it to remain 
stable, but some of it are stable and this is what we are wanting to test. 
Currently we have agreed that we only run one test (orginal we had 15 
individual tests) which needs to be recreated / or manipulated with the correct 
radio id's. Im wondering since no one else seems to have these problems, they 
have either not used the radio / check components or does not performance test 
this way? Is this an uncommon way to performance test over time? 


regards Nino





-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
your 
opinions on IT & business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Palette with sorted elements

2007-04-04 Thread Nino Wael
We had to do our "own" version of the palette. Im not sure if its outdated. But 
you can find the old source somewhere linked to in this thread:
 
http://www.nabble.com/Palette-add-selected-option-tf2730861.html#a7672169
 
We also created a version where youselft can sort the items, let me know if you 
want to see our source..
 
 
regards nino



Fra: [EMAIL PROTECTED] på vegne af Flavia Paganelli
Sendt: ti 03-04-2007 23:32
Til: wicket-user@lists.sourceforge.net
Emne: [Wicket-user] Palette with sorted elements



Hi!

Did anyone have to use a Palette component showing the elements in a
sorted way (e.g. using a comparator, or the compareTo() method)?

I tried providing a SortedSet to the Palette (a TreeSet), but that
doesn't work... I guess the Palette internally uses its own List or
something of that kind.

Any ideas?

Thank you!

Flavia

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Radio.getValue?

2007-04-01 Thread Nino Wael
I do know that radio and check are directly attached to their imodel. But the 
imodel does not provide an alternate value for them.

I just dont see why not to provide an ichoicerender on these components when 
providing it for the radiochoice and dropdown choice.

We have no way of controlling the value of the radios when using this 
component. And since we cant overide the getValue we are either stuck or need 
to use another component. But that implicates some redesign, and it's a little 
late for that now on our project at least.


Hmm this maybe something for wicket-stuff or extensions then..


regards Nino


-Original Message-
From: [EMAIL PROTECTED] on behalf of Igor Vaynberg
Sent: Fri 30-03-2007 17:15
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Radio.getValue?
 
radio and check do not take an ichoicerenderer because they do not need it.
they do not traverse over a list of choices and try to look one up, they
have the choice attached directly to them via imodel.

-igor


On 3/30/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
> That was whý I suggested that we could have another constructor that took
> an Ichoicerender. There are tons of places in other wicket core components
> that supply a constructor that takes the ichoicerender.
>
> SO I think it should be ok? I would really like that ichoicerenderer would
> be supported by every component where it makes sense...
>
>
> Should we move this do the dev list?
>
> regards Nino
>
> 
>
> Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg
> Sendt: to 29-03-2007 19:11
> Til: wicket-user@lists.sourceforge.net
> Emne: Re: [Wicket-user] Radio.getValue?
>
>
> On 3/29/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
>
> Looking at that code, I don't understand why we even need:
> private short uuid = -1;
>
> as there is no code other than in getValue that changes the value,
> and
> that value can just be recreated everytime it is needed (as it is
> nothing more than a call to getPage().getAutoIndex()). Am I
> missing
> something here?
>
>
> yes, you are missing the fact that getautoindex() increments the index on
> every call that is why we cache it in the uuid var.
>
>
>
> WDYT?
>
>
> personally i dont like making getvalue non-final. this will patch this
> component for this kind of testing, but what about other components that do
> not have a stable name? are we going to have to start opening implementation
> details on all of them just because users want to test it with something
> static like httpunit? just my 2c.
>
> -igor
>
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

<>-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] RadioGroup Broken(1.2.5+?/when using wantOnSelectionChangedNotifications)?

2007-04-26 Thread Nino Wael
Hi 
 
Something's not right with RadioGroup when using 
wantOnSelectionChangedNotifications or I am doing something wrong. 
 
When the same Radio are selected for the 2nd time, the radio becomes unselected 
and cannot be selected again until another radio has been selected. However the 
RadioGroup's model remains the same even though the radio does not appear to be 
selected.
 
I've created a Quickstart project that showes this behavior. You can get it 
here: http://www.badongo.com/file/2868077
 
Im not sure what the normal behavior should be for the radioGroup? Im 
guessing/expecting that not matter how many times you click on a radio to 
select it, it should always be selected?
 
Also some would argue that wantOnSelectionChangedNotifications, 
arent the best name since it tells that you only get notifications when 
selection changes, however you
also get notified if the selection remains the same. A more proper name would 
be wantSelectionNotifications? 

Since english arent my primary language I might be somewhat off here, also I 
guess it will break dependant code, if it were to be renamed :(. 
 
 
BTW: I noticed this behavior when using 1.2.5, but it could also be there 
before.

-
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] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)?

2007-04-26 Thread Nino Wael
bump anyone for answer?



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: to 26-04-2007 09:25
Til: wicket-user@lists.sourceforge.net
Emne: [Wicket-user] RadioGroup Broken(1.2.5+?/when 
usingwantOnSelectionChangedNotifications)?



Hi

Something's not right with RadioGroup when using 
wantOnSelectionChangedNotifications or I am doing something wrong.

When the same Radio are selected for the 2nd time, the radio becomes unselected 
and cannot be selected again until another radio has been selected. However the 
RadioGroup's model remains the same even though the radio does not appear to be 
selected.

I've created a Quickstart project that showes this behavior. You can get it 
here: http://www.badongo.com/file/2868077

Im not sure what the normal behavior should be for the radioGroup? Im 
guessing/expecting that not matter how many times you click on a radio to 
select it, it should always be selected?

Also some would argue that wantOnSelectionChangedNotifications,
arent the best name since it tells that you only get notifications when 
selection changes, however you
also get notified if the selection remains the same. A more proper name would 
be wantSelectionNotifications?

Since english arent my primary language I might be somewhat off here, also I 
guess it will break dependant code, if it were to be renamed :(.


BTW: I noticed this behavior when using 1.2.5, but it could also be there 
before.

-
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] RadioGroup Broken(1.2.5+?/whenusingwantOnSelectionChangedNotifications)?

2007-04-27 Thread Nino Wael
Igor please answer:) 



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: to 26-04-2007 16:01
Til: wicket-user@lists.sourceforge.net; wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] RadioGroup 
Broken(1.2.5+?/whenusingwantOnSelectionChangedNotifications)?



bump anyone for answer?



Fra: [EMAIL PROTECTED] på vegne af Nino Wael
Sendt: to 26-04-2007 09:25
Til: wicket-user@lists.sourceforge.net
Emne: [Wicket-user] RadioGroup Broken(1.2.5+?/when 
usingwantOnSelectionChangedNotifications)?



Hi

Something's not right with RadioGroup when using 
wantOnSelectionChangedNotifications or I am doing something wrong.

When the same Radio are selected for the 2nd time, the radio becomes unselected 
and cannot be selected again until another radio has been selected. However the 
RadioGroup's model remains the same even though the radio does not appear to be 
selected.

I've created a Quickstart project that showes this behavior. You can get it 
here: http://www.badongo.com/file/2868077

Im not sure what the normal behavior should be for the radioGroup? Im 
guessing/expecting that not matter how many times you click on a radio to 
select it, it should always be selected?

Also some would argue that wantOnSelectionChangedNotifications,
arent the best name since it tells that you only get notifications when 
selection changes, however you
also get notified if the selection remains the same. A more proper name would 
be wantSelectionNotifications?

Since english arent my primary language I might be somewhat off here, also I 
guess it will break dependant code, if it were to be renamed :(.


BTW: I noticed this behavior when using 1.2.5, but it could also be there 
before.

-
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


<>-
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] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)?

2007-04-27 Thread Nino Wael
Ok, no problem:)



Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius
Sendt: fr 27-04-2007 11:24
Til: wicket-user@lists.sourceforge.net
Emne: Re: [Wicket-user] RadioGroup Broken(1.2.5+?/when 
usingwantOnSelectionChangedNotifications)?



Been busy on the list again. Nino, if you think it's a bug, would you
mind opening up a JIRA issue for it? Thanks,

Eelco


On 4/26/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> Something's not right with RadioGroup when using 
> wantOnSelectionChangedNotifications or I am doing something wrong.
>
> When the same Radio are selected for the 2nd time, the radio becomes 
> unselected and cannot be selected again until another radio has been 
> selected. However the RadioGroup's model remains the same even though the 
> radio does not appear to be selected.
>
> I've created a Quickstart project that showes this behavior. You can get it 
> here: http://www.badongo.com/file/2868077
>
> Im not sure what the normal behavior should be for the radioGroup? Im 
> guessing/expecting that not matter how many times you click on a radio to 
> select it, it should always be selected?
>
> Also some would argue that wantOnSelectionChangedNotifications,
> arent the best name since it tells that you only get notifications when 
> selection changes, however you
> also get notified if the selection remains the same. A more proper name would 
> be wantSelectionNotifications?
>
> Since english arent my primary language I might be somewhat off here, also I 
> guess it will break dependant code, if it were to be renamed :(.
>
>
> BTW: I noticed this behavior when using 1.2.5, but it could also be there 
> before.
>
> -
> 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


<>-
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] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)?

2007-04-28 Thread Nino Wael
done :

https://issues.apache.org/jira/browse/WICKET-512

notice the nice number:)

-Original Message-
From: [EMAIL PROTECTED] on behalf of Eelco Hillenius
Sent: Fri 27-04-2007 11:24
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] RadioGroup Broken(1.2.5+?/when 
usingwantOnSelectionChangedNotifications)?
 
Been busy on the list again. Nino, if you think it's a bug, would you
mind opening up a JIRA issue for it? Thanks,

Eelco


On 4/26/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> Something's not right with RadioGroup when using 
> wantOnSelectionChangedNotifications or I am doing something wrong.
>
> When the same Radio are selected for the 2nd time, the radio becomes 
> unselected and cannot be selected again until another radio has been 
> selected. However the RadioGroup's model remains the same even though the 
> radio does not appear to be selected.
>
> I've created a Quickstart project that showes this behavior. You can get it 
> here: http://www.badongo.com/file/2868077
>
> Im not sure what the normal behavior should be for the radioGroup? Im 
> guessing/expecting that not matter how many times you click on a radio to 
> select it, it should always be selected?
>
> Also some would argue that wantOnSelectionChangedNotifications,
> arent the best name since it tells that you only get notifications when 
> selection changes, however you
> also get notified if the selection remains the same. A more proper name would 
> be wantSelectionNotifications?
>
> Since english arent my primary language I might be somewhat off here, also I 
> guess it will break dependant code, if it were to be renamed :(.
>
>
> BTW: I noticed this behavior when using 1.2.5, but it could also be there 
> before.
>
> -
> 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

<>-
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] I've done it again:) browser crashes/creating a custom component

2006-05-22 Thread Nino Wael








Hi Igor

 

I have something to
admit, i’ve been running on RC3 and not RC4. While creating a quickstart
project that contained my erroneous pages I upgraded to RC4 and that seems to
have solved the problem. Although I’ve also isolated my control might also have
piece in the puzzle to play. I’ll get back on this if the phenomena returns.

 

Regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 19. maj 2006 20:23
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] I've
done it again:) browser crashes/creating a custom component



 

please provide us with a
quickstart project so we can easily start it and see whats going on.

-Igor





On 5/19/06, Nino
Wael <
[EMAIL PROTECTED]> wrote:









Dos'nt
anybody have a comment?

 

BTW
IE crashes with a message saying unable to read from memory, eclipse's own
browser(im not sure which one its build ontop) "just" crashes java.

 

 

 

Regards
Nino







From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Nino Wael
Sent: Friday, May 19, 2006 8:57 AM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] I've done
it again:) browser crashes/creating a custom component







 

Im in the midst of developing a component that consists of sets of a radio
buttons and  a listchoice.

The functionality is supposed to be like this:

When you click one specific radio button then the sibling(actually
child) listchoice of that radio
button should be enabled and all other listchoices should be disabled. I've
managed to get this to work when hardcoding it. 





But when trying to create a component that does it dynamically the browser crashes. Please see attached
code for details. What am I doing wrong? <>
<> 

 

Nino Martinez Vazquez Wael
Konsulent
PS Public

T: ჹ 70 28 29 40, M: ჹ 27 21 29 40






E: [EMAIL PROTECTED] 

SAS Institute A/S
Købmagergade 7-9
1150 København K
www.sas.com/dk








T: ჹ 70282870, F: ჹ 70282991

SAS...  The Power to Know





 

The
information in this e-mail and any attached files is confidential. It is
intended solely for the use of the addressee. Any unauthorized disclosure or use
is prohibited. If you are not the intended recipient of the message, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
The views of the author may not necessarily reflect those of the company.









 








[Wicket-user] RadioGroup and Listview

2006-06-01 Thread Nino Wael








Hi

 

Im’ having some trouble setting the selected
radio on my RadioGroup. 

 

My Radios are held within a listview and im wanting
to set the selected radio when constructing my form. However when setting my
model after adding the listview to the radiogroup no radio is selected, so my
question is when is the listview populated. 

 

Im guessing that the reason why no radio is selected is
that at the time where I set the model my RadioGroup does no contain the appropriate
radio.

 

 

 

Hoping for some hints to lead me on the right path.

 

 

Regards Nino








SV: [Wicket-user] RadioGroup and Listview

2006-06-01 Thread Nino Wael
I've already done that, pretty obvious one you read the documentation:)
 
Im setting the model after I instanciate the listview. Im not sure what im 
doing wrong(my model are set to an object).Would a quickstart example help?
 
regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg 
Sendt: to 01-06-2006 17:48 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] RadioGroup and Listview


try calling setReuseItems(true) on the listview

-Igor



On 6/1/06, Nino Wael <[EMAIL PROTECTED] > wrote: 

Hi

 

Im' having some trouble setting the selected radio on my 
RadioGroup. 

 

My Radios are held within a listview and im wanting to set the 
selected radio when constructing my form. However when setting my model after 
adding the listview to the radiogroup no radio is selected, so my question is 
when is the listview populated. 

 

Im guessing that the reason why no radio is selected is that at 
the time where I set the model my RadioGroup does no contain the appropriate 
radio.

 

 

 

Hoping for some hints to lead me on the right path.

 

 

Regards Nino


<>

RE: [Wicket-user] RadioGroup and Listview

2006-06-02 Thread Nino Wael








Ok here it is, the page
that holds the component that fails to load the model is the third page, and
the component are called radiodropdown. I hope you can abstract from all the
other stuff I had to put in there, we’re doing a lot of stuff with
wicket/hibernate.

 

So you need to click the
submit buttons all the way to the third and last page and then click back and
then click submit again. Then you will see that it does remember(uses the model)
the dropdowns but not the radiogroup.

 

Regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 1. juni 2006 20:21
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
RadioGroup and Listview



 





Would a quickstart example help?






definately :)






-Igor 








Re: [Wicket-user] RadioGroup and Listview

2006-06-03 Thread Nino Wael
Did not. Our cr#p#y firewall removes zip files which is really annoying...!

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg 
Sendt: fr 02-06-2006 17:57 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] RadioGroup and Listview


isnt it embarrassing when you forget to attach the attachment? :)

-Igor



On 6/2/06, Nino Wael <[EMAIL PROTECTED] > wrote: 

Ok here it is, the page that holds the component that fails to 
load the model is the third page, and the component are called radiodropdown. I 
hope you can abstract from all the other stuff I had to put in there, we're 
doing a lot of stuff with wicket/hibernate.

 

So you need to click the submit buttons all the way to the 
third and last page and then click back and then click submit again. Then you 
will see that it does remember(uses the model) the dropdowns but not the 
radiogroup.

 

Regards Nino

 


  _  


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Igor Vaynberg
Sent: 1. juni 2006 20:21
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] RadioGroup and Listview

 

Would a quickstart example help?


definately :)


-Igor 


<>___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RadioGroup and Listview

2006-06-03 Thread Nino Wael
Ok here it is then:)
 
http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975
 
Please notice that you have to add the wicket lib and dependencies, had to 
remove em to keep below max file size.
 
regards.

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius 
Sendt: fr 02-06-2006 17:45 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] RadioGroup and Listview



Hi Nino,

This mailing list (or any other on sourceforge) does not allow zip
attachements. Could you please file an issue (bug) with that
attachement? Good for tracking anyway.

Eelco


    On 6/2/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Ok here it is, the page that holds the component that fails to load 
the
> model is the third page, and the component are called radiodropdown. 
I hope
> you can abstract from all the other stuff I had to put in there, 
we're doing
> a lot of stuff with wicket/hibernate.
>
>
>
> So you need to click the submit buttons all the way to the third and 
last
> page and then click back and then click submit again. Then you will 
see that
> it does remember(uses the model) the dropdowns but not the radiogroup.
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Igor Vaynberg
>  Sent: 1. juni 2006 20:21
>  To: wicket-user@lists.sourceforge.net
>  Subject: Re: [Wicket-user] RadioGroup and Listview
>
>
>
>
>
>
> Would a quickstart example help?
>
>
>
>  definately :)
>
>
>  -Igor
>


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


<>___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RadioGroup and Listview

2006-06-06 Thread Nino Wael
Title: Re: [Wicket-user] RadioGroup and Listview








Ok, Igor suggested that I
moved my previous and next buttons into the same form(they were in different
forms). So I did that. However this does not solve my problem. I’m not
sure if what I am doing might be wrong or theres a bug. 

 

I can see that my model
does get filled with the correct values.

 

I’m not sure if I
have a custom choice rendere that has a ID and a displayvalue, does it then
check on the ID value or the ID object. Because I instanciate new objects each
time and that could explain why my the radiogroup cant rembember my radio
choices, simply because it cant find the original choice as claimed in the
model.

 

Source code are placed
here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975

 

 

Regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 3. juni 2006 18:24
To:
wicket-user@lists.sourceforge.net
Subject: SV: [Wicket-user]
RadioGroup and Listview



 



Ok here it is then:)





 





http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975





 





Please notice that you have to add the wicket lib and dependencies, had
to remove em to keep below max file size.





 





regards.







-Oprindelig
meddelelse- 
Fra:
[EMAIL PROTECTED] på vegne af Eelco Hillenius

Sendt: fr 02-06-2006 17:45 
Til:
wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] RadioGroup
and Listview



Hi Nino,

This mailing list (or any other on sourceforge) does not allow zip
attachements. Could you please file an issue (bug) with that
attachement? Good for tracking anyway.

Eelco


On 6/2/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Ok here it is, the page that holds the component that fails to load the
> model is the third page, and the component are called radiodropdown. I
hope
> you can abstract from all the other stuff I had to put in there, we're
doing
> a lot of stuff with wicket/hibernate.
>
>
>
> So you need to click the submit buttons all the way to the third and last
> page and then click back and then click submit again. Then you will see
that
> it does remember(uses the model) the dropdowns but not the radiogroup.
>
>
>
> Regards Nino
>
>
>
>  
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
On Behalf
> Of Igor Vaynberg
>  Sent: 1. juni 2006 20:21
>  To: wicket-user@lists.sourceforge.net
>  Subject: Re: [Wicket-user] RadioGroup and Listview
>
>
>
>
>
>
> Would a quickstart example help?
>
>
>
>  definately :)
>
>
>  -Igor
>


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user








___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] PageLink wanting to check model before allowing popup

2006-06-07 Thread Nino Wael
Hi
 
I have a popup button where I want to check misc stuff on my form model before 
I allow the popup to actually popup the new page.
 
I've tried to override the onClick event on the pageLink control but it still 
pops a page no matter what. Im not sure if I am using the correct approach.
 
Regards Nino
 
PS still hoping for some answer on my other mail about the radiogroup/radio 
potential bug see this link:
 
http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975
 

 
 

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PageLink wanting to check model before allowingpopup

2006-06-08 Thread Nino Wael
Thanks, the latter is precisely what I needed(I set/unset the popup settings).


Regards Nino
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 7. juni 2006 20:47
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] PageLink wanting to check model before allowingpopup

That's a bit complicated to achieve. Generally, you either can choose
to immediately close the popup if you find out the model value is not
what it should be, or you should do the popup by using an extra
redirection. For instance, you link could be an ajax link, that sends
back a script to be executed that does the popping up. What I'm
wondering though is whether you can't know whether the link is
supposed to popup before hand. Do you really need to check the model
when the link is clicked, or can you decide whether it is supposed to
popup when the link is rendered? If the latter is the case - and I
would be surprised if it is not - you can just set/ unset popup
settings, or tweak getPopupJavaScript to what you need.

Eelco


On 6/7/06, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a popup button where I want to check misc stuff on my form model 
> before I allow the popup to actually popup the new page.
>
> I've tried to override the onClick event on the pageLink control but it still 
> pops a page no matter what. Im not sure if I am using the correct approach.
>
> Regards Nino
>
> PS still hoping for some answer on my other mail about the radiogroup/radio 
> potential bug see this link:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975
>  
> <http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975>
>
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket

2006-06-08 Thread Nino Wael








Hi Gangadhar

 

 

Im using this to attach a
word document

 

 

 

    WebResponse
response = (WebResponse) getResponse();

    response.setContentType("application/msword");

    //
response.setHeader("Content-disposition", "attachment;
filename="

    //
+ "Example.doc;");

 

    //
when set header is added

    OutputStream
myOutput = response.getOutputStream();

 

    myOutput.write(bais);

    myOutput.flush();

    myOutput.close();

 

Regards Nino

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gangadhar Vibhute
Sent: 8. juni 2006 05:58
To:
wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Wicket



 

Hi All

I want to use following methods of servlets in wicket how to use it

response.getWriter()
ServletOutputStream ouputStream =response.getOutputStream();






___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PageLink wanting to check model beforeallowingpopup and info

2006-06-08 Thread Nino Wael
Unsetting/setting the popup settings work just fine:)

However im also giving the user some feedback based on finding of the model. Im 
using the info(string) method to do this. But it does not seem to work when 
used from the onRender method of the pagelink?

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 8. juni 2006 09:43
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] PageLink wanting to check model beforeallowingpopup

Thanks, the latter is precisely what I needed(I set/unset the popup settings).


Regards Nino
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 7. juni 2006 20:47
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] PageLink wanting to check model before allowingpopup

That's a bit complicated to achieve. Generally, you either can choose
to immediately close the popup if you find out the model value is not
what it should be, or you should do the popup by using an extra
redirection. For instance, you link could be an ajax link, that sends
back a script to be executed that does the popping up. What I'm
wondering though is whether you can't know whether the link is
supposed to popup before hand. Do you really need to check the model
when the link is clicked, or can you decide whether it is supposed to
popup when the link is rendered? If the latter is the case - and I
would be surprised if it is not - you can just set/ unset popup
settings, or tweak getPopupJavaScript to what you need.

Eelco


On 6/7/06, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a popup button where I want to check misc stuff on my form model 
> before I allow the popup to actually popup the new page.
>
> I've tried to override the onClick event on the pageLink control but it still 
> pops a page no matter what. Im not sure if I am using the correct approach.
>
> Regards Nino
>
> PS still hoping for some answer on my other mail about the radiogroup/radio 
> potential bug see this link:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975
>  
> <http://sourceforge.net/tracker/index.php?func=detail&aid=1500128&group_id=119783&atid=684975>
>
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] PageLink onClick, never gets called?

2006-06-09 Thread Nino Wael

Hi 

Im a little curious since I recall doing this earlier.. Now it seems that 
PageLink onClick never gets called why is that?

See snip below




Html:
 

Java snip:


myReport = new PageLink("openword", new IPageLink() {
public Page getPage() {
Page myPop = null;
try {
myPop = new PopupReport(reportModel);
} catch (Exception e) {
// TODO Auto-generated catch block
throw new RuntimeException(e);
}
return myPop;
}

public Class getPageIdentity() {
return PopupReport.class;
}
}) {

public void onClick() {

generate_errormsgs = true;
super.onClick();
}

protected void onRender(MarkupStream markupStream) {
// TODO Auto-generated method stub
}

PopupSettings popupSettings = new PopupSettings(PageMap
.forName("popuppagemap"), PopupSettings.MENU_BAR
| PopupSettings.TOOL_BAR | 
PopupSettings.SCROLLBARS
| 
PopupSettings.RESIZABLE).setHeight(500).setWidth(700);

myReport.setPopupSettings(popupSettings);

pagenavigation.add(myReport);


regards Nino



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


  1   2   3   >