Re: [Wicket-user] Download file/ trying to use webresource usingwicket 1.2 plain

2006-12-13 Thread Nino Wael
Nope its not hit.. I've been wonder if it would be better if I used an 
bytearrayRessource than just a plain webressource?

 

 

So taking that in regard it looks like this, but its still not working:

 

HttpServletRequest req = 
((WebRequest) getRequest())


   .getHttpServletRequest();

 

String path = 
req.getSession(false).getServletContext().getRealPath(


   /report);

path += \\ + 
uiResult.getUrlWord().replaceAll(report/, );

 

final File myFile = new File(path);

 byte[] myByte = null;

 try {

 InputStream myStream = new 
FileInputStream(myFile);

 myStream.read(myByte);

 }catch(Exception e){}

 

ByteArrayResource export = new 
ByteArrayResource(nase,myByte);

export.setCacheable(false);

 

form.add(new ResourceLink(word, 
export));

 

 

Regards Nino

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 12. december 2006 17:56
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to use webresource usingwicket 
1.2 plain

 

what is the generated url? if you set a breakpoint in getResourceStream() is it 
hit?

-igor



On 12/12/06, Nino Wael [EMAIL PROTECTED] wrote:

Hi I've trying to use the this example:

 

 

http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Startingdownloadafterformsubmission%2528Wicket1.2%2529

 

WebResource export = new WebResource() {
 
   @Override
   public IResourceStream getResourceStream() {
 
 CharSequence discounts = DataBase.getInstance()
 .exportDiscounts();
 return new StringResourceStream(discounts, text/plain);
   }
 
   @Override
   
protected void setHeaders(WebResponse response) {
 super.setHeaders(response);
 response.setAttachmentHeader(discounts.csv);
 
   }
 };
 
 export.setCacheable(false);
 
 
 new ResourceLink(this, exportLink, export);

 

 

 

My implementation (I am using wicket 1.2):

String path = 
req.getSession(false).getServletContext()

.getRealPath(/report);


path+=\\+uiResult.getUrlWord().replaceAll(report/,); 

 

final File myFile = new File(path);

WebResource export = new 
WebResource() {

   

   public IResourceStream 
getResourceStream() {

 

 return new  
FileResourceStream(myFile);

   }

 

   

   protected void 
setHeaders(WebResponse response) {

 super.setHeaders(response);

 

 
response.setAttachmentHeader(uiResult.getUrlWord().replaceAll(report/,));

   }

 };

 export.setCacheable(false);

 

 form.add( new 
ResourceLink(word, export));

 

This does nothing but a page reload.

 

Does it only work with wicket 1.2.3, what should I do then? Use the wicket 1.1 
example or ?

 

 

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.phpp=sourceforgeCID=DEVDEV 

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user



 

-
Take Surveys. Earn Cash

Re: [Wicket-user] Download file/ trying to use webresourceusingwicket 1.2 plain

2006-12-13 Thread Nino Wael
I've been wondering about this line in the example:

 

new ResourceLink(this, exportLink, export);

 

I don't have that constructor in my wicket 1.2.

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 13. december 2006 09:18
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to use webresourceusingwicket 
1.2 plain

 

Nope its not hit.. I've been wonder if it would be better if I used an 
bytearrayRessource than just a plain webressource?

 

 

So taking that in regard it looks like this, but its still not working:

 

HttpServletRequest req = 
((WebRequest) getRequest())


   .getHttpServletRequest();

 

String path = 
req.getSession(false).getServletContext().getRealPath(


   /report);

path += \\ + 
uiResult.getUrlWord().replaceAll(report/, );

 

final File myFile = new File(path);

 byte[] myByte = null;

 try {

 InputStream myStream = new 
FileInputStream(myFile);

 myStream.read(myByte);

 }catch(Exception e){}

 

ByteArrayResource export = new 
ByteArrayResource(nase,myByte);

export.setCacheable(false);

 

form.add(new ResourceLink(word, 
export));

 

 

Regards Nino

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 12. december 2006 17:56
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to use webresource usingwicket 
1.2 plain

 

what is the generated url? if you set a breakpoint in getResourceStream() is it 
hit?

-igor

On 12/12/06, Nino Wael [EMAIL PROTECTED] wrote:

Hi I've trying to use the this example:

 

 

http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Startingdownloadafterformsubmission%2528Wicket1.2%2529

 

WebResource export = new WebResource() {
 
   @Override
   public IResourceStream getResourceStream() {
 
 CharSequence discounts = DataBase.getInstance()
 .exportDiscounts();
 return new StringResourceStream(discounts, text/plain);
   }
 
   @Override
   
protected void setHeaders(WebResponse response) {
 super.setHeaders(response);
 response.setAttachmentHeader(discounts.csv);
 
   }
 };
 
 export.setCacheable(false);
 
 
 new ResourceLink(this, exportLink, export);

 

 

 

My implementation (I am using wicket 1.2):

String path = 
req.getSession(false).getServletContext()

.getRealPath(/report);


path+=\\+uiResult.getUrlWord().replaceAll(report/,); 

 

final File myFile = new File(path);

WebResource export = new 
WebResource() {

   

   public IResourceStream 
getResourceStream() {

 

 return new  
FileResourceStream(myFile);

   }

 

   

   protected void 
setHeaders(WebResponse response) {

 super.setHeaders(response);

 

 
response.setAttachmentHeader(uiResult.getUrlWord().replaceAll(report/,));

   }

 };

 export.setCacheable(false);

 

 form.add( new 
ResourceLink(word, export));

 

This does nothing but a page reload.

 

Does it only work with wicket 1.2.3, what should I do then? Use the wicket 1.1 
example or ?

 

 

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

Re: [Wicket-user] Download file/ trying to usewebresourceusingwicket 1.2 plain

2006-12-13 Thread Nino Wael
Hmm I dont have that constructor in wicket 1.2.3 (got the build from 
sourceforge) either...

 

So what do I do?

 

Regards Nino

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 13. december 2006 09:51
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to usewebresourceusingwicket 
1.2 plain

 

I've been wondering about this line in the example:

 

new ResourceLink(this, exportLink, export);

 

I don't have that constructor in my wicket 1.2.

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 13. december 2006 09:18
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to use webresourceusingwicket 
1.2 plain

 

Nope its not hit.. I've been wonder if it would be better if I used an 
bytearrayRessource than just a plain webressource?

 

 

So taking that in regard it looks like this, but its still not working:

 

HttpServletRequest req = 
((WebRequest) getRequest())


   .getHttpServletRequest();

 

String path = 
req.getSession(false).getServletContext().getRealPath(


   /report);

path += \\ + 
uiResult.getUrlWord().replaceAll(report/, );

 

final File myFile = new File(path);

 byte[] myByte = null;

 try {

 InputStream myStream = new 
FileInputStream(myFile);

 myStream.read(myByte);

 }catch(Exception e){}

 

ByteArrayResource export = new 
ByteArrayResource(nase,myByte);

export.setCacheable(false);

 

form.add(new ResourceLink(word, 
export));

 

 

Regards Nino

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 12. december 2006 17:56
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to use webresource usingwicket 
1.2 plain

 

what is the generated url? if you set a breakpoint in getResourceStream() is it 
hit?

-igor

On 12/12/06, Nino Wael [EMAIL PROTECTED] wrote:

Hi I've trying to use the this example:

 

 

http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Startingdownloadafterformsubmission%2528Wicket1.2%2529

 

WebResource export = new WebResource() {
 
   @Override
   public IResourceStream getResourceStream() {
 
 CharSequence discounts = DataBase.getInstance()
 .exportDiscounts();
 return new StringResourceStream(discounts, text/plain);
   }
 
   @Override
   
protected void setHeaders(WebResponse response) {
 super.setHeaders(response);
 response.setAttachmentHeader(discounts.csv);
 
   }
 };
 
 export.setCacheable(false);
 
 
 new ResourceLink(this, exportLink, export);

 

 

 

My implementation (I am using wicket 1.2):

String path = 
req.getSession(false).getServletContext()

.getRealPath(/report);


path+=\\+uiResult.getUrlWord().replaceAll(report/,); 

 

final File myFile = new File(path);

WebResource export = new 
WebResource() {

   

   public IResourceStream 
getResourceStream() {

 

 return new  
FileResourceStream(myFile);

   }

 

   

   protected void 
setHeaders(WebResponse response) {

 super.setHeaders(response);

 

 
response.setAttachmentHeader(uiResult.getUrlWord().replaceAll(report/,));

   }

 };

 export.setCacheable(false);

 

 form.add( new 
ResourceLink(word

Re: [Wicket-user] Download file/ trying tousewebresourceusingwicket 1.2 plain

2006-12-13 Thread Nino Wael
Oh and another thing, the ressourcelink are bound to and html submit button, 
does that impact anything?

 

Regards Nino

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 13. december 2006 10:35
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying tousewebresourceusingwicket 
1.2 plain

 

Hmm I dont have that constructor in wicket 1.2.3 (got the build from 
sourceforge) either...

 

So what do I do?

 

Regards Nino

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 13. december 2006 09:51
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to usewebresourceusingwicket 
1.2 plain

 

I've been wondering about this line in the example:

 

new ResourceLink(this, exportLink, export);

 

I don't have that constructor in my wicket 1.2.

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 13. december 2006 09:18
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to use webresourceusingwicket 
1.2 plain

 

Nope its not hit.. I've been wonder if it would be better if I used an 
bytearrayRessource than just a plain webressource?

 

 

So taking that in regard it looks like this, but its still not working:

 

HttpServletRequest req = 
((WebRequest) getRequest())


   .getHttpServletRequest();

 

String path = 
req.getSession(false).getServletContext().getRealPath(


   /report);

path += \\ + 
uiResult.getUrlWord().replaceAll(report/, );

 

final File myFile = new File(path);

 byte[] myByte = null;

 try {

 InputStream myStream = new 
FileInputStream(myFile);

 myStream.read(myByte);

 }catch(Exception e){}

 

ByteArrayResource export = new 
ByteArrayResource(nase,myByte);

export.setCacheable(false);

 

form.add(new ResourceLink(word, 
export));

 

 

Regards Nino

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 12. december 2006 17:56
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Download file/ trying to use webresource usingwicket 
1.2 plain

 

what is the generated url? if you set a breakpoint in getResourceStream() is it 
hit?

-igor

On 12/12/06, Nino Wael [EMAIL PROTECTED] wrote:

Hi I've trying to use the this example:

 

 

http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Startingdownloadafterformsubmission%2528Wicket1.2%2529

 

WebResource export = new WebResource() {
 
   @Override
   public IResourceStream getResourceStream() {
 
 CharSequence discounts = DataBase.getInstance()
 .exportDiscounts();
 return new StringResourceStream(discounts, text/plain);
   }
 
   @Override
   
protected void setHeaders(WebResponse response) {
 super.setHeaders(response);
 response.setAttachmentHeader(discounts.csv);
 
   }
 };
 
 export.setCacheable(false);
 
 
 new ResourceLink(this, exportLink, export);

 

 

 

My implementation (I am using wicket 1.2):

String path = 
req.getSession(false).getServletContext()

.getRealPath(/report);


path+=\\+uiResult.getUrlWord().replaceAll(report/,); 

 

final File myFile = new File(path);

WebResource export = new 
WebResource() {

   

   public IResourceStream 
getResourceStream() {

 

 return new  
FileResourceStream(myFile);

   }

 

   

   protected void 
setHeaders(WebResponse response) {

 super.setHeaders(response

[Wicket-user] Download file/ trying to use webresource using wicket 1.2 plain

2006-12-12 Thread Nino Wael
Hi I've trying to use the this example:

 

 

http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Startingdownloadafterformsubmission%2528Wicket1.2%2529

 

WebResource export = new WebResource() {
   @Override
   public IResourceStream getResourceStream() {
 CharSequence discounts = DataBase.getInstance()
 .exportDiscounts();
 return new StringResourceStream(discounts, text/plain);
   }
 
   @Override
   protected void setHeaders(WebResponse response) {
 super.setHeaders(response);
 response.setAttachmentHeader(discounts.csv);
   }
 };
 export.setCacheable(false);
 
 new ResourceLink(this, exportLink, export);

 

 

 

My implementation (I am using wicket 1.2):

String path = 
req.getSession(false).getServletContext()

.getRealPath(/report);


path+=\\+uiResult.getUrlWord().replaceAll(report/,);

 

final File myFile = new File(path);

WebResource export = new 
WebResource() {

   

   public IResourceStream 
getResourceStream() {

 

 return new  
FileResourceStream(myFile);

   }

 

   

   protected void 
setHeaders(WebResponse response) {

 super.setHeaders(response);

 

 
response.setAttachmentHeader(uiResult.getUrlWord().replaceAll(report/,));

   }

 };

 export.setCacheable(false);

 

 form.add( new 
ResourceLink(word, export));

 

This does nothing but a page reload.

 

Does it only work with wicket 1.2.3, what should I do then? Use the wicket 1.1 
example or ?

 

 

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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Associating one java file with 2 different markups

2006-12-12 Thread Nino Wael
I see two options for you either use models to employ your different rules or 
build two entirely different components. I would go for using models since it's 
good practice...

Somewhere I have a component that's basicly the palette component with an 
dropdown(either ajax based or standard postback), this component needs to call 
different methods depending where I use it. So I looked towards reflection 
package and this is probally what you are interested in.

I use reflection to setup a method which I give to my component. I use models 
which I use for parameters on that method code snip:

Heres a Snip where I use it:

http://pastebin.ca/276505


Regards Nino



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 11. december 2006 23:31
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Associating one java file with 2 different markups






Hello all,
I have an issue where on the same page I have to use the same component. My
application is datadriven, and those components need to have different
names and different business rules that are loaded on the runtime per
component. At the end of the day I want to have different htmls to be
attached to be associated to the same java component. How do I do it.
THank you
Gennadiy


-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Download file/ trying to use webresource using wicket1.2 plain

2006-12-12 Thread Nino Wael
Would some one care to comment this?

 

Regards Nino

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 12. december 2006 11:55
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Download file/ trying to use webresource using wicket1.2 
plain

 

Hi I've trying to use the this example:

 

 

http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Startingdownloadafterformsubmission%2528Wicket1.2%2529

 

WebResource export = new WebResource() {
   @Override
   public IResourceStream getResourceStream() {
 CharSequence discounts = DataBase.getInstance()
 .exportDiscounts();
 return new StringResourceStream(discounts, text/plain);
   }
 
   @Override
   protected void setHeaders(WebResponse response) {
 super.setHeaders(response);
 response.setAttachmentHeader(discounts.csv);
   }
 };
 export.setCacheable(false);
 
 new ResourceLink(this, exportLink, export);

 

 

 

My implementation (I am using wicket 1.2):

String path = 
req.getSession(false).getServletContext()

.getRealPath(/report);


path+=\\+uiResult.getUrlWord().replaceAll(report/,);

 

final File myFile = new File(path);

WebResource export = new 
WebResource() {

   

   public IResourceStream 
getResourceStream() {

 

 return new  
FileResourceStream(myFile);

   }

 

   

   protected void 
setHeaders(WebResponse response) {

 super.setHeaders(response);

 

 
response.setAttachmentHeader(uiResult.getUrlWord().replaceAll(report/,));

   }

 };

 export.setCacheable(false);

 

 form.add( new 
ResourceLink(word, export));

 

This does nothing but a page reload.

 

Does it only work with wicket 1.2.3, what should I do then? Use the wicket 1.1 
example or ?

 

 

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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Review: Wicket course

2006-12-11 Thread Nino Wael
Looks nice, having planned something similiar(at least using same technoligies) 
in the future.



Having some sort of client with local db, and a backend server. Have you had 
any trouble maintaining the client/server part of the application and or whats 
your 2 cent on this topic?



  _

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Lindner
Sent: 10. december 2006 00:38
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Review: Wicket course



Maybe we could provide the wicket world with an online demo of our Wicket based 
application. It is an application for public health care organisations in 
germany, especially post op. pain management. The application runs on a tablet 
pc (with a local database that synchronizes with a central database), on normal 
pcs an on mobile phones with java me. A short preview ot the tablet pc 
component may be viewed under http://visiopad.visionet.de/VisioPAD. The PIN is 
05142. It is currently best viewed with Internet Explorer (because of Windows 
XP Tablet PC Editon).

We plan to put the whole application online for public viewing.



It is based upon Wicket 2.0, EJB3 (backend Ingres, PostgreSL, HSQLDB, Oracle 
etc) and JBoss.



If you select Annerose Duffner as patient and klick on PCA = Patient 
Controlled Analgesie you may view a funny embeded SVG graphic (if you have 
installed the SVG viewer from adobe).



Currently we are stuck with the not working ImageMap class in Wicket 2 
(http://issues.apache.org/jira/browse/WICKET-146). Maybe someone could help us 
at this point.



Any suggestions and opinions eare wollcome.



Stefan Lindner

-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior

2006-12-08 Thread Nino Wael
As you write ListChoice are no longer invoked. The ajax event are called afaik 
after all updates of model has occurred. I actually changed my coding style 
after this and began using abstract models, its actually much easyer coding 
this way, and all of your components will be ajax prepaered...:)

Heres a code sniplet of what I do:

dropdown.add(new AjaxFormComponentUpdatingBehavior(onchange) {
public CharSequence getCallbackUrl() {
// hack since url is not encoded and so will 
fail xhtml
// validation
String s = getCallbackUrl(true).toString();
return s.replaceAll(wicket, amp;wicket);
}

protected void onUpdate(AjaxRequestTarget target) {
AJAXpopulatepaletteList();
if (submit) {
target.addComponent(paletteSubmit);
if (addit) {
Iterator iter = 
additional.iterator();
while (iter.hasNext()) {

target.addComponent((Component) iter.next());
}
}
} else {
target.addComponent(palette);
if (addit) {
Iterator iter = 
additional.iterator();
while (iter.hasNext()) {

target.addComponent((Component) iter.next());
}
}
}
}
});



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of TH Lim
Sent: 7. december 2006 07:03
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior


Yes, the examples are good and it is where I started off when I look into
Wicket's AJAX. 

I have questions: -

1. ListChoice.onSelectionChanged is not invoke when I add
AjaxFormComponentUpdatingBehavior to ListChoice. Does this mean ListChoice
behavior is handled thru AjaxFormComponentUpdatingBehavior after it is added
to the component?

2. AjaxFormComponentUpdatingBehavior.onEvent is called when there is an AJAX
event. What is AJAX event?


igor.vaynberg wrote:
 
 see this example
 
 http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.ChoicePage
 
 -igor
 
 
 On 12/6/06, TH Lim [EMAIL PROTECTED] wrote:


 Hi,

 Where do I find more information about AjaxFormComponentUpdatingBehavior
 class and classes related to it? I presume this is the starting point
 when
 I
 want to add AJAX / JS feature to my application. Am I right to say so?

 I have an usecase where I would like to use to JS resolve because this is
 what I normally do with my previous web applications. I have 2 ListChoice
 (LC_A and LC_B), 1 ListMulitpleChoice (LMC_C) and 1 DropDownChoice (DDC_D
 ~
 in DISABLED state). What I want to do is I choose from LC_A and LC_B will
 be
 populated with items based on what I have chosen in LC_A. Subsequently
 LMC_C
 will populated with items depending on what I have selected in LC_B.
 Finally, when I click on any item in LMC_C, DDC_D will be ENABLED. If I
 select another item in either LC_A or LC_B, DDC_D will be DISABLED. What
 is
 the way to accomplish this using AjaxFormComponentUpdatingBehavior or
 other
 Wicket AJAX components? Thanks

 --
 View this message in context:
 http://www.nabble.com/Help-with-AjaxFormComponentUpdatingBehavior-tf2768381.html#a7720283
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 

Re: [Wicket-user] javascript handlers in html - quotes escaping

2006-12-08 Thread Nino Wael
No true:)

Why cant you use ID's? 

IT is true that forexample dropdown options are created on a specific pattern 
but it's somewhat easy to create some javascript which adapts that pattern. We 
use a lot of onchange some which are added in the html at some which are added 
with the attribute appender (I have a nice litte progressbar component, which 
need some html appended and a small javascript appended on the onclick).

Code snips:

select class=dualdropdown id=smltype wicket:id=smltype 
onchange=javascript:smltype_changed()

a title=Vis hjaelig;lp 
href=javascript:showHelp(766) wicket:id=top-helpHjaelig;lp/a


input id=wordbutton disabled=disabled 
type=submit value=Generer rapport wicket:id=wordbutton 
onclick=showContent('uglyfix');showContent('uniquename'); /





Small code snip on howto workaround the path generated by wicket:

function isAnySelected(formId, name) {
var form = resolve(formId);
var notfound = true;
for (var i = 0; i  form.length; i++) {
var ename = form.elements[i].name;
var prefix = ename.substring(0, ename.indexOf(:));
if (prefix == name) {
if (form.elements[i].selectedIndex != 0) {
return true;
}
notfound = false;
}
}
return notfound;
}


These are all wicket components, which works nicely...I have more If wanted..


Regards Nino



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Klochkov
Sent: 8. december 2006 11:41
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] javascript handlers in html - quotes escaping

After 2 months working with Wicket I'm still quite impressed by this 
smart framework, but IMHO the most weak part of it is client-side 
scripting. So when you want to place a lot of javascript in html, using 
handlers like onclick, onkeyup etc, without using server at all (no 
ajax, no server callbacks) - it is too difficult (almost impossible). 
There are 2 big problems:

1. You can't use id attributes in scripts because wicket generates them. 
There is no way to get ID in javascript runtime.
2. Wicket escapes qoutes in javascript handlers in incorrect way. For 
example, it transforms  the following handler:

 onclick=test('test me')

to the form:

onclick=test(\test me\)

And browser (firefox, IE) doesn't understand it, giving incorrect 
character error.

So now I have to have a lot of java code like the following. And it 
would be MUCH better to define it in html.

colorBox.add(new AttributeAppender(onclick, new 
AbstractReadOnlyModel() {

@Override
public Object getObject(Component component) {
return document.getElementById(' + 
textField.getMarkupId() + ').value=' + color + ';  +
document.getElementById(' + 
ColorPicker.this.getMarkupId() + ').style.display='none';  +
document.getElementById(' + 
colorPreview.getMarkupId() + ').style.background='# + color + ';;
}
   
}, ;));


Is there any way to workaround this problems? Maybe something will be 
changed in wicket v2.0?

-- 
Andrew Klochkov


-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior

2006-12-08 Thread Nino Wael
With Listchoiec are no longer invoked, I meant listchoice.onchange.


 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 8. december 2006 12:51
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior

As you write ListChoice are no longer invoked. The ajax event are called afaik 
after all updates of model has occurred. I actually changed my coding style 
after this and began using abstract models, its actually much easyer coding 
this way, and all of your components will be ajax prepaered...:)

Heres a code sniplet of what I do:

dropdown.add(new AjaxFormComponentUpdatingBehavior(onchange) {
public CharSequence getCallbackUrl() {
// hack since url is not encoded and so will 
fail xhtml
// validation
String s = getCallbackUrl(true).toString();
return s.replaceAll(wicket, amp;wicket);
}

protected void onUpdate(AjaxRequestTarget target) {
AJAXpopulatepaletteList();
if (submit) {
target.addComponent(paletteSubmit);
if (addit) {
Iterator iter = 
additional.iterator();
while (iter.hasNext()) {

target.addComponent((Component) iter.next());
}
}
} else {
target.addComponent(palette);
if (addit) {
Iterator iter = 
additional.iterator();
while (iter.hasNext()) {

target.addComponent((Component) iter.next());
}
}
}
}
});



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of TH Lim
Sent: 7. december 2006 07:03
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior


Yes, the examples are good and it is where I started off when I look into
Wicket's AJAX. 

I have questions: -

1. ListChoice.onSelectionChanged is not invoke when I add
AjaxFormComponentUpdatingBehavior to ListChoice. Does this mean ListChoice
behavior is handled thru AjaxFormComponentUpdatingBehavior after it is added
to the component?

2. AjaxFormComponentUpdatingBehavior.onEvent is called when there is an AJAX
event. What is AJAX event?


igor.vaynberg wrote:
 
 see this example
 
 http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.ChoicePage
 
 -igor
 
 
 On 12/6/06, TH Lim [EMAIL PROTECTED] wrote:


 Hi,

 Where do I find more information about AjaxFormComponentUpdatingBehavior
 class and classes related to it? I presume this is the starting point
 when
 I
 want to add AJAX / JS feature to my application. Am I right to say so?

 I have an usecase where I would like to use to JS resolve because this is
 what I normally do with my previous web applications. I have 2 ListChoice
 (LC_A and LC_B), 1 ListMulitpleChoice (LMC_C) and 1 DropDownChoice (DDC_D
 ~
 in DISABLED state). What I want to do is I choose from LC_A and LC_B will
 be
 populated with items based on what I have chosen in LC_A. Subsequently
 LMC_C
 will populated with items depending on what I have selected in LC_B.
 Finally, when I click on any item in LMC_C, DDC_D will be ENABLED. If I
 select another item in either LC_A or LC_B, DDC_D will be DISABLED. What
 is
 the way to accomplish this using AjaxFormComponentUpdatingBehavior or
 other
 Wicket AJAX components? Thanks

 --
 View this message in context:
 http://www.nabble.com/Help-with-AjaxFormComponentUpdatingBehavior-tf2768381.html#a7720283
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] javascript handlers in html - quotes escaping

2006-12-08 Thread Nino Wael
Hmm, it is actually working, and I do agree that you write wouldn't work...


This is the output on the html generated by wicket:
input value=Generer rapport type=submit disabled=disabled 
onclick=showContent('uglyfix');showContent('uniquename'); name=wordbutton 
id=wordbutton/
input value=lt; Tilbage type=submit 
name=previousbutton id=previousbutton/

As you see the \ apparently are escaped to ' when processed by wicket.. Im 
running on wicket 1.2.


About the pattern script, yeah it does not feel like the best solution, but 
currently I cant see any other.

Regards Nino
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Klochkov
Sent: 8. december 2006 13:35
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] javascript handlers in html - quotes escaping

Nino Wael wrote:
   input id=wordbutton disabled=disabled 
 type=submit value=Generer rapport wicket:id=wordbutton 
 onclick=showContent('uglyfix');showContent('uniquename'); /
   
How can you run this example with wicket?? It escapes qoutes in a 
strange wa so you should have the following code in the result html:

input id=wordbutton disabled=disabled type=submit value=Generer 
rapport wicket:id=wordbutton 
onclick=showContent(\uglyfix\);showContent(\uniquename\); /


And this script wouldn't work in IE and Firefox at least!

BTW I found a workaround for IDs problem using 
TextTemplateHeaderContributor: I place all IDs in variables and have 
javascript template file which uses these variables, so wicket replaces 
variables with actual IDs in runtime.
 Small code snip on howto workaround the path generated by wicket:
   
Thanks for this one. It's not very clean solution but anyway it's better 
than placing all handlers in java components.

-- 
Andrew Klochkov


-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Lazy mans fix for a cancel button

2006-12-05 Thread Nino Wael
Hey



Sometime ago we discussed that I needed a cancel button. The need was there 
because of a certain page had long loading times, not because of wicket though. 
We talked about a worker thread so I could start the report generation and then 
the wicket page could come and ask the worker thread once in a while if it were 
done, if the user in the mean time had pressed cancel we could just cancel the 
worker thread. While pretty easy to describe in theory it does require some 
effort to create and theres a lot of stuff to take in consideration(could we 
really stop the report generation and if we forced a stop what would our 
backend server say? ++ more).



As by default im pretty lazy. So I'll call this the lazy mans fix for a cancel 
button.



So since wicket has a singular model for page requests processing per session 
this requires that we go out side of wicket, to a pretty simple jsp page that 
invalidates the session and then returns the user to what ever page the user 
came from (or as close as it can be if it's a wizard, with some effort you 
could get the user back to the correct page).



So to recap:



1.  Wicket Page that has cancel button forwards to an JSP page
2.  JSP page invalidates session and forwards back to wicket page
3.  Wicket interprets the user as being a new user(since the other users 
session are invalidated) and processes request as normal.



Do note that the original page(the page that the user pressed cancel on) will 
still have to be processed, since the page thread aren't cancelled.





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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Palette add selected option

2006-12-04 Thread Nino Wael
I've placed the code here:

Please notice that it makes use of css that are not used inline, I've provided 
our css in our file called jobindsats.css. Make sure the component the page 
where you use the component refers to that. As written earlier you should be 
able to use our recorder and just update Igors palette(or maybe extend it) and 
reference to our recorder, only one minor change to the palette class are 
required(as I remember). And that's the onmodelchange method that needs to call 
the recorder so it can update itself. 

a 
href=http://www.badongo.com/file/1817078http://www.badongo.com/file/1817078/a

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Renaville
Sent: 1. december 2006 14:41
To: Wicket List
Subject: Re: [Wicket-user] Palette add selected option

Hi Nino,

Thanks for your reply, I m still don't find a solution, can you provide
me the full component, to see if it correspond to my need :)
Thanks for your help (I m a neebies in Wicket) :)



On Fri, 2006-12-01 at 14:08 +0100, Nino Wael wrote:
 Hi Vincent
 
 This is an replacement for the recorder component that are used in the wicket 
 extensions. This recorder in order with a minor update of the palette(you 
 need to call the recreate function in the palette onmodelchanged function).
 
 I'll be glad to put our full component up somewhere, but I need to say all 
 texts are in Danish...
 
 
 Regards Nino
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent 
 Renaville
 Sent: 30. november 2006 15:38
 To: Wicket List
 Subject: Re: [Wicket-user] Palette add selected option
 
 Dear,
 
 Thanks for the respond but somebody have Already deploy the solution.
 I m a newbies with Wicket, so i you have a example , it will be nice :)
 
 
 Vincent
 
 On Thu, 2006-11-30 at 14:15 +0100, Nino Wael wrote:
  I think I have something somewhere...
  
  As I remember you need to update the recorder component...
  
  Below is only meant as a sniplet(notice the recreate model, which now are 
  called from the palette onchange function)..
  
  
  
  package com.sas.jobindsats.ui.palette.component;
  
  import java.util.ArrayList;
  import java.util.Collection;
  import java.util.Collections;
  import java.util.Iterator;
  import java.util.List;
  
  import wicket.Component;
  import wicket.markup.html.form.HiddenField;
  import wicket.markup.html.form.IChoiceRenderer;
  import wicket.model.AbstractModel;
  import wicket.util.string.Strings;
  
  import com.sas.jobindsats.ui.palette.Palette;
  
  /**
   * Component to keep track of selections on the html side. Also used for
   * encoding and decoding those selections between html and java.
   * 
   * @author Igor Vaynberg ( ivaynberg )
   */
  public class Recorder extends HiddenField {
  private static final long serialVersionUID = 1L;
  
  private static final String[] EMPTY_IDS = new String[0];
  
  private final String seperator = #;
  
  /** conviniently maintained array of selected ids */
  private String[] ids;
  
  /** parent palette object */
  private Palette palette;
  
  /**
   * @return parent Palette object
   */
  public Palette getPalette() {
  return palette;
  }
  
  /**
   * @param id
   *component id
   * @param palette
   *parent palette object
   */
  public Recorder(String id, Palette palette) {
  super(id);
  this.palette = palette;
  
  // BELOW ENSURES THAT IDS ARE NOT NULL
  reCreateModel();
  AbstractModel model = new AbstractModel() {
  
  public Object getObject(Component component) {
  StringBuffer modelStringBuffer = new 
  StringBuffer();
  
  for (int i = 0; ids.length  i; i++) {
  modelStringBuffer.append(ids[i]);
  if (i + 1  ids.length) {
  
  modelStringBuffer.append(seperator);
  }
  }
  
  // set model and update ids array
  
  String modelString = 
  modelStringBuffer.toString();
  
  return modelString;
  
  }
  
  public void setObject(Component component, Object 
  object) {
  updateIds((String) object);
  };
  };
  setModel(model);
  }
  
  protected void onValid() {
  super.onValid();
  updateIds();
  }
  
  /**
   * @return iterator over selected choices
   */
  public Iterator getSelectedChoices() {
  IChoiceRenderer renderer = getPalette().getChoiceRenderer

Re: [Wicket-user] Palette add selected option

2006-12-01 Thread Nino Wael
Hi Vincent

This is an replacement for the recorder component that are used in the wicket 
extensions. This recorder in order with a minor update of the palette(you need 
to call the recreate function in the palette onmodelchanged function).

I'll be glad to put our full component up somewhere, but I need to say all 
texts are in Danish...


Regards Nino


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Renaville
Sent: 30. november 2006 15:38
To: Wicket List
Subject: Re: [Wicket-user] Palette add selected option

Dear,

Thanks for the respond but somebody have Already deploy the solution.
I m a newbies with Wicket, so i you have a example , it will be nice :)


Vincent

On Thu, 2006-11-30 at 14:15 +0100, Nino Wael wrote:
 I think I have something somewhere...
 
 As I remember you need to update the recorder component...
 
 Below is only meant as a sniplet(notice the recreate model, which now are 
 called from the palette onchange function)..
 
 
 
 package com.sas.jobindsats.ui.palette.component;
 
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
 import wicket.Component;
 import wicket.markup.html.form.HiddenField;
 import wicket.markup.html.form.IChoiceRenderer;
 import wicket.model.AbstractModel;
 import wicket.util.string.Strings;
 
 import com.sas.jobindsats.ui.palette.Palette;
 
 /**
  * Component to keep track of selections on the html side. Also used for
  * encoding and decoding those selections between html and java.
  * 
  * @author Igor Vaynberg ( ivaynberg )
  */
 public class Recorder extends HiddenField {
   private static final long serialVersionUID = 1L;
 
   private static final String[] EMPTY_IDS = new String[0];
 
   private final String seperator = #;
 
   /** conviniently maintained array of selected ids */
   private String[] ids;
 
   /** parent palette object */
   private Palette palette;
 
   /**
* @return parent Palette object
*/
   public Palette getPalette() {
   return palette;
   }
 
   /**
* @param id
*component id
* @param palette
*parent palette object
*/
   public Recorder(String id, Palette palette) {
   super(id);
   this.palette = palette;
 
   // BELOW ENSURES THAT IDS ARE NOT NULL
   reCreateModel();
   AbstractModel model = new AbstractModel() {
 
   public Object getObject(Component component) {
   StringBuffer modelStringBuffer = new 
 StringBuffer();
 
   for (int i = 0; ids.length  i; i++) {
   modelStringBuffer.append(ids[i]);
   if (i + 1  ids.length) {
   
 modelStringBuffer.append(seperator);
   }
   }
 
   // set model and update ids array
 
   String modelString = 
 modelStringBuffer.toString();
 
   return modelString;
 
   }
 
   public void setObject(Component component, Object 
 object) {
   updateIds((String) object);
   };
   };
   setModel(model);
   }
 
   protected void onValid() {
   super.onValid();
   updateIds();
   }
 
   /**
* @return iterator over selected choices
*/
   public Iterator getSelectedChoices() {
   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
 
   if (ids.length == 0) {
   return Collections.EMPTY_LIST.iterator();
   }
 
   List selected = new ArrayList(ids.length);
   for (int i = 0; i  ids.length; i++) {
   Iterator it = getPalette().getChoices().iterator();
   while (it.hasNext()) {
   final Object choice = it.next();
   if (renderer.getIdValue(choice, 
 0).equals(ids[i])) {
   selected.add(choice);
   break;
   }
   }
   }
   return selected.iterator();
   }
 
   /**
* @return iterator over unselected choices
*/
   public Iterator getUnselectedChoices() {
   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
   Collection choices = getPalette().getChoices();
 
   if (choices.size() - ids.length == 0) {
   return Collections.EMPTY_LIST.iterator

Re: [Wicket-user] Palette add selected option

2006-12-01 Thread Nino Wael
I'd like to see the alternative solution you mention if possible?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 1. december 2006 14:08
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Palette add selected option

Hi Vincent

This is an replacement for the recorder component that are used in the wicket 
extensions. This recorder in order with a minor update of the palette(you need 
to call the recreate function in the palette onmodelchanged function).

I'll be glad to put our full component up somewhere, but I need to say all 
texts are in Danish...


Regards Nino


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Renaville
Sent: 30. november 2006 15:38
To: Wicket List
Subject: Re: [Wicket-user] Palette add selected option

Dear,

Thanks for the respond but somebody have Already deploy the solution.
I m a newbies with Wicket, so i you have a example , it will be nice :)


Vincent

On Thu, 2006-11-30 at 14:15 +0100, Nino Wael wrote:
 I think I have something somewhere...
 
 As I remember you need to update the recorder component...
 
 Below is only meant as a sniplet(notice the recreate model, which now are 
 called from the palette onchange function)..
 
 
 
 package com.sas.jobindsats.ui.palette.component;
 
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
 import wicket.Component;
 import wicket.markup.html.form.HiddenField;
 import wicket.markup.html.form.IChoiceRenderer;
 import wicket.model.AbstractModel;
 import wicket.util.string.Strings;
 
 import com.sas.jobindsats.ui.palette.Palette;
 
 /**
  * Component to keep track of selections on the html side. Also used for
  * encoding and decoding those selections between html and java.
  * 
  * @author Igor Vaynberg ( ivaynberg )
  */
 public class Recorder extends HiddenField {
   private static final long serialVersionUID = 1L;
 
   private static final String[] EMPTY_IDS = new String[0];
 
   private final String seperator = #;
 
   /** conviniently maintained array of selected ids */
   private String[] ids;
 
   /** parent palette object */
   private Palette palette;
 
   /**
* @return parent Palette object
*/
   public Palette getPalette() {
   return palette;
   }
 
   /**
* @param id
*component id
* @param palette
*parent palette object
*/
   public Recorder(String id, Palette palette) {
   super(id);
   this.palette = palette;
 
   // BELOW ENSURES THAT IDS ARE NOT NULL
   reCreateModel();
   AbstractModel model = new AbstractModel() {
 
   public Object getObject(Component component) {
   StringBuffer modelStringBuffer = new 
 StringBuffer();
 
   for (int i = 0; ids.length  i; i++) {
   modelStringBuffer.append(ids[i]);
   if (i + 1  ids.length) {
   
 modelStringBuffer.append(seperator);
   }
   }
 
   // set model and update ids array
 
   String modelString = 
 modelStringBuffer.toString();
 
   return modelString;
 
   }
 
   public void setObject(Component component, Object 
 object) {
   updateIds((String) object);
   };
   };
   setModel(model);
   }
 
   protected void onValid() {
   super.onValid();
   updateIds();
   }
 
   /**
* @return iterator over selected choices
*/
   public Iterator getSelectedChoices() {
   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
 
   if (ids.length == 0) {
   return Collections.EMPTY_LIST.iterator();
   }
 
   List selected = new ArrayList(ids.length);
   for (int i = 0; i  ids.length; i++) {
   Iterator it = getPalette().getChoices().iterator();
   while (it.hasNext()) {
   final Object choice = it.next();
   if (renderer.getIdValue(choice, 
 0).equals(ids[i])) {
   selected.add(choice);
   break;
   }
   }
   }
   return selected.iterator();
   }
 
   /**
* @return iterator over unselected choices
*/
   public Iterator

[Wicket-user] cancel page load...

2006-11-30 Thread Nino Wael
Hi 

 

On one of our pages I've created at cancel button. The functionality are 
simple, im just doing some simple javascript that reloads the url, however it 
looks like wicket waits for the original request to complete before loading the 
new page(hence the cancel button no longer has the desired effect, user still 
has to wait for the original request to load). Are there anyway to avoid this?

 

Or do I have to incorporate a worker thread(and do some nifty ajax maybe), so 
that it actually can be cancelled.

 

 

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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Palette add selected option

2006-11-30 Thread Nino Wael
I think I have something somewhere...

As I remember you need to update the recorder component...

Below is only meant as a sniplet(notice the recreate model, which now are 
called from the palette onchange function)..



package com.sas.jobindsats.ui.palette.component;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

import wicket.Component;
import wicket.markup.html.form.HiddenField;
import wicket.markup.html.form.IChoiceRenderer;
import wicket.model.AbstractModel;
import wicket.util.string.Strings;

import com.sas.jobindsats.ui.palette.Palette;

/**
 * Component to keep track of selections on the html side. Also used for
 * encoding and decoding those selections between html and java.
 * 
 * @author Igor Vaynberg ( ivaynberg )
 */
public class Recorder extends HiddenField {
private static final long serialVersionUID = 1L;

private static final String[] EMPTY_IDS = new String[0];

private final String seperator = #;

/** conviniently maintained array of selected ids */
private String[] ids;

/** parent palette object */
private Palette palette;

/**
 * @return parent Palette object
 */
public Palette getPalette() {
return palette;
}

/**
 * @param id
 *component id
 * @param palette
 *parent palette object
 */
public Recorder(String id, Palette palette) {
super(id);
this.palette = palette;

// BELOW ENSURES THAT IDS ARE NOT NULL
reCreateModel();
AbstractModel model = new AbstractModel() {

public Object getObject(Component component) {
StringBuffer modelStringBuffer = new 
StringBuffer();

for (int i = 0; ids.length  i; i++) {
modelStringBuffer.append(ids[i]);
if (i + 1  ids.length) {

modelStringBuffer.append(seperator);
}
}

// set model and update ids array

String modelString = 
modelStringBuffer.toString();

return modelString;

}

public void setObject(Component component, Object 
object) {
updateIds((String) object);
};
};
setModel(model);
}

protected void onValid() {
super.onValid();
updateIds();
}

/**
 * @return iterator over selected choices
 */
public Iterator getSelectedChoices() {
IChoiceRenderer renderer = getPalette().getChoiceRenderer();

if (ids.length == 0) {
return Collections.EMPTY_LIST.iterator();
}

List selected = new ArrayList(ids.length);
for (int i = 0; i  ids.length; i++) {
Iterator it = getPalette().getChoices().iterator();
while (it.hasNext()) {
final Object choice = it.next();
if (renderer.getIdValue(choice, 
0).equals(ids[i])) {
selected.add(choice);
break;
}
}
}
return selected.iterator();
}

/**
 * @return iterator over unselected choices
 */
public Iterator getUnselectedChoices() {
IChoiceRenderer renderer = getPalette().getChoiceRenderer();
Collection choices = getPalette().getChoices();

if (choices.size() - ids.length == 0) {
return Collections.EMPTY_LIST.iterator();
}

List unselected = new ArrayList(Math
.max(1, choices.size() - ids.length));
Iterator it = choices.iterator();
while (it.hasNext()) {
final Object choice = it.next();
final String choiceId = renderer.getIdValue(choice, 0);
boolean selected = false;
for (int i = 0; i  ids.length; i++) {
if (ids[i].equals(choiceId)) {
selected = true;
break;
}
}
if (!selected) {
   

[Wicket-user] Too many files open (not related to the other one, my guess)

2006-11-27 Thread Nino Wael
So we have a problem here where something that maybe tomcat or wicket are 
opening too many handles.

 

The issue are triggered by:

*   An exception from wicket
*   Message from wicket that the page has expired
*   Usage of a specific component that uses AJAX (might be a exception in 
there somewhere)

 

Our application has around 950 open handles on startup and that goes a bit up 
when visiting misc pages. But when any of the above happens handles are 
increased until the server dies.

 

From what I can see now I can replicate some of the problem on my local 
machine which are windows xp, server are win 2003. On local machine handles 
goes up but at some point are cut down(and goes up again), this does not 
happen on server it just continues to rise until death occurs:-(

 

Does anybody have something that can help?

 

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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] mountBookmarkablePage

2006-10-27 Thread Nino Wael








Hi I have a page that are set as mountBookmarkablePage,
and it gets its parameters from the 



url etc http://localhost:8080/application/page/paramA/valueA/paramB/valueB



When my page has picked up the parameters i wish to
clear them so that my url becomes something like http://localhost:8080/application/page
.



Reason why I want to do this are that some of the
other pages I have some of the image references get smashed so image ref should
have been:



http://localhost:8080/application/ui/i/ikon-help.gif



but are instead :



http://localhost:8080/application/page/paramA/valueA/paramB/valueB/ui/i/ikon-help.gif







Hoping for some answers.



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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to make wicket testable at jmeter?

2006-10-27 Thread Nino Wael
Create a HTTP Cookie Manager, and clear cookies after each iteration.. Works 
here for us.


BTW I could send our template if you want to.

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carfield Yim
Sent: 27. oktober 2006 08:50
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] How to make wicket testable at jmeter?

When I use the robot to record the flow, jmeter captured the form is post to

/wicket?wicket:interface=:1:userForm:1:IFormSubmitListener

But later when I rerun the test, and it just throws 404 not found
error. When I go to that URL, I get the page expire message.

Just wonder how can I make wicket work with jmeter? I've try to visit
/wicket/ first but that still fail.

-
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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to make wicket testable at jmeter?

2006-10-27 Thread Nino Wael
Look at my mail, you really can set the threads to repeat:)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: 27. oktober 2006 09:42
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] How to make wicket testable at jmeter?

On 10/27/06, Carfield Yim [EMAIL PROTECTED] wrote:
 so you mean I cannot have load test if I use wicket that is kind
 of bad really bad

No, that is not what I mean... I just said that you can't set the
threads to repeat.

That doesn't prevent you from writing longer running tests, that run
in parallel.

Martijn

-- 
a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a
for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a
at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in
the World!/a

-
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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to make wicket testable at jmeter?

2006-10-27 Thread Nino Wael
You can get it here:

http://s1.upload.sc/request/5ae8f5148c890325d37ffc8ace1c8536

since its larger than 1meg so I could not send it to this list.

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carfield Yim
Sent: 27. oktober 2006 10:18
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] How to make wicket testable at jmeter?

On 10/27/06, Nino Wael [EMAIL PROTECTED] wrote:
 Create a HTTP Cookie Manager, and clear cookies after each iteration.. Works 
 here for us.

that work, cool!!!

 BTW I could send our template if you want to.

sure like to take a look

-
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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] mountBookmarkablePage

2006-10-27 Thread Nino Wael








Hmm, im not sure if I can
have absolute urls and changing our mount method is too late now, I guess. 



I did not tell the whole
story in my mail some of the image urls are actually kept correct.



We have a component that
are called helpLink, when attached to our page url comes our correct:



Like this:

http://localhost:8080/jobindsats/ui/i/ikon-help.gif



when its attached to
another component we have it comes out like this:



http://localhost:8080/jobindsats/viewer/databanksitemap/ydelsesgruppeId/Y01/maalingId/ui/i/ikon-help.gif



using the page without
entry from the mountable path gives no errors of course (ive also tried
setting a page in before the wanted page which picks up the parameters, but I
am unable to clear the url of them).





See code of helpLink
here:



Working img:

a title=Vis
hjaelig;lp til variable href=""
class=help wicket:id=helpimg
src="" alt=Vis
hjaelig;lp til variable //a

Not working img:

a title=Vis hjaelig;lp tilnbsp;
href="" class=help wicket:id=helpimg
src="" wicket:id=helpimg
alt=Hjaelig;lp //a

http://paste.uni.cc/11120





Hmmm scrap above, found
out the trouble





In our other component
there was added this(took a look at not working im above):



helpLink.add(new
WebMarkupContainer(helpimg).add(new
AttributeModifier(alt, new Model(Vis
hjælp til + subj;



this apparently recreated
the link to our image aswell so it got the page and parameters prepended. 





I got it workingJ I must say that sometimes I wish I had a parrot as most of my
problems seems to be solved when trying to explain what Im trying to doJ





Regards Nino













From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 27. oktober 2006 09:37
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
mountBookmarkablePage





use absolute paths for
your images and you wont have this problem

or mount with a querystringurlcodingstrategy so your url will be
application/page?parama=valueparamb=value

-Igor



On 10/27/06, Nino
Wael [EMAIL PROTECTED]
wrote:





Hi I have a page that are set as mountBookmarkablePage, and it gets its parameters
from the 



url
etc http://localhost:8080/application/page/paramA/valueA/paramB/valueB



When my page has picked up the parameters i wish to clear them so that
my url becomes something like http://localhost:8080/application/page .



Reason why I want to do this are that some of the other pages I have
some of the image references get smashed so image ref should have been:



http://localhost:8080/application/ui/i/ikon-help.gif



but are instead :



http://localhost:8080/application/page/paramA/valueA/paramB/valueB/ui/i/ikon-help.gif







Hoping for some answers.



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=lnkkid=120709bid=263057dat=121642

___
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onSubmit not called in a form

2006-10-10 Thread Nino Wael
I havent used buttons with models could you try to strip that and also override 
your buttons onsubmit also just to see what happens there?

which version of wicket are we talking about?

regards Nino


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
Sent:   Tue 10-10-2006 10:25
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: [Wicket-user] onSubmit not called in a form

I am testing this on a stripped down version of my app. The java code is:

class SelectExpiriesForm extends Form {
   public SelectExpiriesForm(String id, IModel model) {
 super(id, model);

 add(new Button(submit-button, new Model(Submit)));

   }
   public void onSubmit() {
 System.out.println(in onSubmit...);
   }
}

and the html is:

form wicket:id=selectExpiriesForm
   input wicket:id=submit-button type=submit class=dialogButton
  value=[[ button text ]]/
/form

I also tested this in a separate quickstart and it works fine. I have no 
specific error setup (I disabled . So, something else in my app is must 
be causing this strange behavior.

Pierre-Yves

Nino Wael a écrit :
 Sounds strange, could you poste the source?
 
 AFAIK, two things should happen either you would get what you wanted or you 
 should get an error. Although this migth be changed if you had special error 
 handling that redirects the user to the home page.
 
 
 -Original Message-
 From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
 Sent: Mon 09-10-2006 17:18
 To:   wicket-user@lists.sourceforge.net
 Cc:   
 Subject:  [Wicket-user] onSubmit not called in a form
 
 Hi,
 
 I have a form and on a page and I believe a click on the submit button 
 should cause a call to the onSubmit method. (No onSubmit in the button, 
 all default settings). By default, I suppose after the call to onSubmit 
 Wicket should redisplay the same page. Instead of this, onSubmit is not 
 called and Wicket displays the home page. I am sure I am doing something 
 wrong, but I can't find what. Any hint about where to look for?
 
 Pierre-Yves
 
 
 -
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] proof of concept app

2006-10-09 Thread Nino Wael
Looks nice(just skimping the code through without running it though), however I 
can see that you have extended the session, do you really have a need to store 
the cart in session context?

Why not just create it on PosPage?


-regards Nino 


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Swank
Sent:   Mon 09-10-2006 18:30
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:[Wicket-user] proof of concept app

I've been pushing to use Wicket as our new web UI framework.  We currently
have a custom template that resembles Velocity.  The broad concensus is to
go with JSF.  While I'm convinced that JSF will work for us it always seems
so cumbersome.

I've convinced by boss to give Wicket a 2nd look, and so this weekend I
threw together the attached.  If anyone is inclined to give it a quick
glance for best practices type considerations I'd certainly be
appreciative.

The only relevant files are the jetty config, web.xml  the java/html.
There are two apps that both sub-class an abstract app.  The Concierge
version is for retail sales while the C3 version is for our call center.
The urls are below.

Thank you,
Scott


-- Forwarded message --
From: Scott Swank [EMAIL PROTECTED]
Date: Oct 8, 2006 10:41 PM
Subject: concierge/c3 in wicket
To: Scott Swank [EMAIL PROTECTED], Scott Swank [EMAIL PROTECTED]

http://localhost:8081/concierge/app
http://localhost:8081/concierge/c3

-- 
Scott Swank
reformed mathematician

Power is not a means, it is an end. One does not establish a dictatorship in
order to safeguard a revolution; one makes the revolution in order to
establish the dictatorship. The object of persecution is persecution. The
object of torture is torture. The object of power is power.  -- George
Orwell, 1984


-- 
Scott Swank
reformed mathematician

Power is not a means, it is an end. One does not establish a dictatorship in
order to safeguard a revolution; one makes the revolution in order to
establish the dictatorship. The object of persecution is persecution. The
object of torture is torture. The object of power is power.  -- George
Orwell, 1984



winmail.dat-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onSubmit not called in a form

2006-10-09 Thread Nino Wael
Sounds strange, could you poste the source?

AFAIK, two things should happen either you would get what you wanted or you 
should get an error. Although this migth be changed if you had special error 
handling that redirects the user to the home page.


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
Sent:   Mon 09-10-2006 17:18
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:[Wicket-user] onSubmit not called in a form

Hi,

I have a form and on a page and I believe a click on the submit button 
should cause a call to the onSubmit method. (No onSubmit in the button, 
all default settings). By default, I suppose after the call to onSubmit 
Wicket should redisplay the same page. Instead of this, onSubmit is not 
called and Wicket displays the home page. I am sure I am doing something 
wrong, but I can't find what. Any hint about where to look for?

Pierre-Yves


-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



winmail.dat-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] proof of concept app

2006-10-09 Thread Nino Wael
Why?

Keeping the cart within constructors are kinda more POJO i think.

What I am working on now, we have a reportmodel and almost all our pages has a  
constructor that requires our reportmodel, so we dont need to be aware of 
session.

I feel that the application becomes more simple that way, however we do not 
have a LOT of panels, we have some which uses abstractmodels that grabs their 
data from the reportmodel, when switching pages we pass the reportmodel through.

This might be a different approach from what you need when building a store 
site, but it feels pretty a lot simpler than have something stored in session 
context.

regards Nino


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Eelco Hillenius
Sent:   Mon 09-10-2006 20:14
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: [Wicket-user] proof of concept app

If you're main domain is a store, and a cart is information you want
to keep throughout, it does make sense to put it in a session, so that
you don't have to pass it around your pages and panels all the time.

Eelco

On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote:
 Looks nice(just skimping the code through without running it though), however 
 I can see that you have extended the session, do you really have a need to 
 store the cart in session context?

 Why not just create it on PosPage?


 -regards Nino


 -Original Message-
 From:   [EMAIL PROTECTED] on behalf of Scott Swank
 Sent:   Mon 09-10-2006 18:30
 To: wicket-user@lists.sourceforge.net
 Cc:
 Subject:[Wicket-user] proof of concept app

 I've been pushing to use Wicket as our new web UI framework.  We currently
 have a custom template that resembles Velocity.  The broad concensus is to
 go with JSF.  While I'm convinced that JSF will work for us it always seems
 so cumbersome.

 I've convinced by boss to give Wicket a 2nd look, and so this weekend I
 threw together the attached.  If anyone is inclined to give it a quick
 glance for best practices type considerations I'd certainly be
 appreciative.

 The only relevant files are the jetty config, web.xml  the java/html.
 There are two apps that both sub-class an abstract app.  The Concierge
 version is for retail sales while the C3 version is for our call center.
 The urls are below.

 Thank you,
 Scott


 -- Forwarded message --
 From: Scott Swank [EMAIL PROTECTED]
 Date: Oct 8, 2006 10:41 PM
 Subject: concierge/c3 in wicket
 To: Scott Swank [EMAIL PROTECTED], Scott Swank [EMAIL PROTECTED]

 http://localhost:8081/concierge/app
 http://localhost:8081/concierge/c3

 --
 Scott Swank
 reformed mathematician

 Power is not a means, it is an end. One does not establish a dictatorship in
 order to safeguard a revolution; one makes the revolution in order to
 establish the dictatorship. The object of persecution is persecution. The
 object of torture is torture. The object of power is power.  -- George
 Orwell, 1984


 --
 Scott Swank
 reformed mathematician

 Power is not a means, it is an end. One does not establish a dictatorship in
 order to safeguard a revolution; one makes the revolution in order to
 establish the dictatorship. The object of persecution is persecution. The
 object of torture is torture. The object of power is power.  -- George
 Orwell, 1984




 -
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



winmail.dat-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket vs .net/ a friendly pat on wicket core developers shoulders

2006-10-05 Thread Nino Wael








Hi



Ive been using wicket for some 7 months or so
now. As a consultant Ive seen some different stuff. And in the last job
I had, we used ASP .net(1.1) . And I must say that wicket feels a lot
like an upgrade in conceptuality and userfriendlyness. Its a lot simpler
to create your own components and I feel that development goes very smooth when
comparing against .net.



If I were to go back to something that did not have
the conceptuality as wickets has towards models, it would be a step back in
time!





-cheers 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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] resend Wicket vs .net/ a friendly pat on wicket core developers shoulders

2006-10-05 Thread Nino Wael








Hi



Ive been using wicket for some 7 months or so
now. As a consultant Ive seen some different stuff. And in the last job
I had, we used ASP .net(1.1) . And I must say that wicket feels a lot
like an upgrade in conceptuality and userfriendlyness. Its a lot simpler
to create your own components and I feel that development goes very smooth when
comparing against .net.



If I were to go back to something that did not have
the conceptuality as wickets has towards models, it would be a step back in
time!





-cheers 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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: Can we totally separate styles?

2006-10-03 Thread Nino Wael
Hmm im not completly sure on what you mean. But you could either have a link to 
the css and use the wicked:head tag to link to it if you are using a panel, or 
the same just using a package resource reference.

You could take a looking how the wicket.extensions.palette handles this 
(although as I remember it does this for javascript .js files but the same 
should apply for .css)


Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manuel Barzi
Sent: 2. oktober 2006 09:49
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Fwd: Can we totally separate styles?

Dear Sirs,

Have data list with navigation  sortable columns  radio buttons to
select - exclusively - rows... as follows:

RadioSel   SortRow1 SortRow2
===
(o)  data...  data...
(o)  data...  data

the original html has its styles, but when handling this view at
Wicket's java-side, had no other choice than hard-coding the style as
following (example) by means of OrderByLink.CssProvider:

radioGroup.add(new
OrderByBorder(CaocMantenimentRolsCertficatsCiutadaPage-order-2,
CaocMantenimentRolsCertficatsCiutadaPage-field-2, provider, new
OrderByLink.CssProvider(celdaTablaRoja, celdaTablaRoja,
celdaTablaRoja)) { ... blah, blah, blah... }

This is not very good for us, as styles would depend on customer
preferences when this webapp will be in production...

What other alternatives do I have to correctly separate html-css-side
from java-side?

Thank you, in advance.

Regards.

M

-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Looking for a forum that implement by wicket and opensource

2006-10-03 Thread Nino Wael
You could take a look at the phonebook example?

http://wicket-stuff.sourceforge.net/wicket-phonebook/


-regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ? ??
Sent: 3. oktober 2006 12:44
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Looking for a forum that implement by wicket and 
opensource

Hello,

I've read the code of woogle(http://woogle.billen.dk),
I found that there're two markup in the WoogleBasePage.html,
one is wicket:child, the other is wicket:extend,
so I think that there're many feature not show in wicket's example.

I wish to read some code of a project that implement by wicket,
I think this is the fastest way to study wicket.
I think forum is better than other project, not very big, but enough 
complex.

Could you tell me if any project is up to the mustard.
I hava search with sourceforge and google, but can't get one.

Thank you very much.


deafwolf

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  




-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] progress indicator

2006-09-28 Thread Nino Wael








Hi



We have a form where we would like to disable the
complete form onsubmit so that the user cant change any of his selected values
and we would like to display a progress meter(it does not have to show the
actual progress just a gif like the AJAX
examples). I have been thinking of the AJAX examples but I guess that since we
somehow would like to stall the browser its not really a good solution,
we would have to add all for components again just disabled and then on the end
of the ajax call add them all again enabled?



Whats your 2 centavos on this?






-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CheckGroupSelector with CheckBox

2006-09-28 Thread Nino Wael
Why dont you just use the CheckGroup.onchange ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Decebal Suiu
Sent: 27. september 2006 21:01
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] CheckGroupSelector with CheckBox

Can I use CheckGroupSelector with CheckBox (instead
Check) ?
Because I want to be notified when a selection was
changed (CheckBox.onSelectionChanged)?

Thanks,
Decebal

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Optional confirmation when cancelling/leaving a form

2006-09-28 Thread Nino Wael








The wicket phonebook has
an example on howto do this or at least something similar..











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Macrae, Jeremy
Sent: 27. september 2006 15:44
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Optional
confirmation when cancelling/leaving a form





Hi,



I am trying to implement a mechanism where a
confirmation dialogue is raised if the user leaves a form either via the cancel
button, or selecting to navigate to another page. I only want this dialogue to
appear if the model has changed so that the user knows that they have changed
the data but not saved it. The dialogue will allow the user to select
yes to navigate to their next page or no to stay on
the current page.

Has anyone implemented something similar or have an
idea how it can be done. 



The idea I have had is to intercept the onChange event
on all the controls changing the forms model. This would switch the buttons to
versions which contain a SimpleAttributeModifier which adds the _javascript_
confirm dialogue on the onClick event. This all seems very messy so any simpler
solutions would be gratefully received. 



Thanks in advance, 



Jeremy








This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CheckGroupSelector with CheckBox

2006-09-28 Thread Nino Wael
Hmm You cant just use the checkgroupselectors.onchange?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Decebal Suiu
Sent: 27. september 2006 21:01
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] CheckGroupSelector with CheckBox

Can I use CheckGroupSelector with CheckBox (instead
Check) ?
Because I want to be notified when a selection was
changed (CheckBox.onSelectionChanged)?

Thanks,
Decebal

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] progress indicator

2006-09-28 Thread Nino Wael
Completely correct. 

As we generate a report when the user clicks the submit button, and while the 
page are loading we dont want the user to play around in the mean while. 

I've been thinking of combining some of the ajax stuff. Like having the ajax 
modal window plus the progress indicator. 

Basically when the user clicks the generate report button, a AJAX modal pops 
up(panel version) in the modal there are the ajaxlink with an progress 
indicator. So when the user clicks it or maybe on panel load? It Generates the 
report and url to the report so that the user can save it.


BTW if user disables JAVASCRIPT they will not be able to use the system, and 
gets a nice error page telling them to enable it or wait till they do:) I guess 
these days its pretty hard not having javascript in your web applications, well 
at least if customer wants them fancy and glittery.


Regards Nino



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pierre-Yves 
Saumont
Sent: 28. september 2006 11:29
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] progress indicator

I guess the question is how to prevent the user to send the form twice 
while the Ajax request is being processed. Or am I wrong?

Pierre-Yves

Korbinian Bachl a écrit :
 Hi,
  
 i dont understand what you mean? - how can a disabled onSubmit button 
 stop the user from changing selected values?? if you plan it ajax like, 
 how can u be secure that the user has JS activated and doenst deactivate 
 it or ignore parts of it (like you can do with certain browser plugins) ?
  
 basically, a check on a user side (in the browser) is a toy, but not a 
 check - you can help the user to fill out forms and tell him he shoud do 
 this and that, but you cant force him nor be sure that the data hes 
 sending is trustful in any way...
  
 Regards
 
 
 *Von:* [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] *Im Auftrag von
 *Nino Wael
 *Gesendet:* Donnerstag, 28. September 2006 10:54
 *An:* wicket-user@lists.sourceforge.net
 *Betreff:* [Wicket-user] progress indicator
 
 Hi
 
  
 
 We have a form where we would like to disable the complete form
 onsubmit so that the user cant change any of his selected values and
 we would like to display a progress meter(it does not have to show
 the actual progress just a gif like the AJAX examples). I have been
 thinking of the AJAX examples but I guess that since we somehow
 would like to stall the browser it's not really a good solution, we
 would have to add all for components again just disabled and then on
 the end of the ajax call add them all again enabled?
 
  
 
 Whats your 2 centavos on this?
 
 
 
 
 -
 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] progress indicator

2006-09-28 Thread Nino Wael
I do agree, but this is a usability question first of all. 

Secondly I agree that I might have the class that are generating the report 
wrapped as a thread and then having some ajax come ask if the thread is done 
until it is done and then generate the link to the temporary storing url, and 
showing it on the page. This would also allow a cancel button to be added

This way the user could be shown a revolving gif until a ajax call replaced it 
with the link.

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Korbinian Bachl
Sent: 28. september 2006 14:16
To: [EMAIL PROTECTED]; wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] progress indicator

it wouldnt work to prevent the user from doing sth. -  even if he has JS
enabled, he might abuse it... ajax has always be treatet as unsecure... and
the basic problem the thread started with, cant be solved by ajax, it has to
be solved by the server checking the current state of the process thats
going on...



 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag 
 von Pierre-Yves Saumont
 Gesendet: Donnerstag, 28. September 2006 13:16
 An: wicket-user@lists.sourceforge.net
 Betreff: Re: [Wicket-user] progress indicator
 
 What wouldn't work? Do you mean the indicating ajax link 
 wouldn't prevent the user to resubmit the form, or are you 
 thinking about another problem?
 
 Pierre-Yves
 
 Korbinian Bachl a écrit :
  depends on the scenario he wants to use it, however, preventing the 
  user to send a form just wouldnt work
  
  regards
  
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag von 
  Pierre-Yves Saumont
  Gesendet: Donnerstag, 28. September 2006 11:29
  An: wicket-user@lists.sourceforge.net
  Betreff: Re: [Wicket-user] progress indicator
 
  I guess the question is how to prevent the user to send the form 
  twice while the Ajax request is being processed. Or am I wrong?
 
  Pierre-Yves
 
  Korbinian Bachl a écrit :
  Hi,
   
  i dont understand what you mean? - how can a disabled
  onSubmit button
  stop the user from changing selected values?? if you plan it ajax 
  like, how can u be secure that the user has JS activated 
 and doenst 
  deactivate it or ignore parts of it (like you can do with
  certain browser plugins) ?
   
  basically, a check on a user side (in the browser) is a
  toy, but not a
  check - you can help the user to fill out forms and tell
  him he shoud
  do this and that, but you cant force him nor be sure that
  the data hes
  sending is trustful in any way...
   
  Regards
 
  
  --
  --
  *Von:* [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] *Im
  Auftrag von
  *Nino Wael
  *Gesendet:* Donnerstag, 28. September 2006 10:54
  *An:* wicket-user@lists.sourceforge.net
  *Betreff:* [Wicket-user] progress indicator
 
  Hi
 
   
 
  We have a form where we would like to disable the 
 complete form
  onsubmit so that the user cant change any of his
  selected values and
  we would like to display a progress meter(it does not
  have to show
  the actual progress just a gif like the AJAX examples). 
  I have been
  thinking of the AJAX examples but I guess that since 
 we somehow
  would like to stall the browser it's not really a good
  solution, we
  would have to add all for components again just
  disabled and then on
  the end of the ajax call add them all again enabled?
 
   
 
  Whats your 2 centavos on this?
 
 
 
  
 -
  -
  --
 
 
  
 -
  -
  --- 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.phpp=sourceforgeCID=DE
  V
  DEV
 
 
 
  
 -
  -
  --
 
  ___
  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.phpp=sourceforge
  CID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] CheckGroupSelector with CheckBox

2006-09-28 Thread Nino Wael
Sorry for this previous mail its out of context and wrong.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 28. september 2006 13:59
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] CheckGroupSelector with CheckBox

Hmm You cant just use the checkgroupselectors.onchange?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Decebal Suiu
Sent: 27. september 2006 21:01
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] CheckGroupSelector with CheckBox

Can I use CheckGroupSelector with CheckBox (instead
Check) ?
Because I want to be notified when a selection was
changed (CheckBox.onSelectionChanged)?

Thanks,
Decebal

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket.util.lang.PropertyResolver / migth be a little offtopic

2006-09-26 Thread Nino Wael








Hi 



I need to do something similar as the
propertyresolver does. Therefore im writing to the wicket userlist.



I have a component that can update a list of other
components by a ajax
call. This component also fills out a palette(something similar to the
extension.palette). 



It gets the value by calling a method which were
provided and the required parameters was also provided, it does this by using java.lang.reflect.Method.




In my effort on trying to make this a bit more
generic component I was trying to have an arraylist which contained classs
and IModels.



Setting up the method was fine and simple enough,
currently im stuck when trying to build the list of parameters im wondering if
I have to typecast the parameters at all or if reflection will handle that, because
of what I did in the setupMethod method, I am betting the latter?





//sniplet

 private
void setupMethod(Object myProvider, String sMethod) {

 Class
partypes[] = new Class[parameters.size()];

 for
(int i = 0; i  parameters.size(); i++) {

 Object[]
params = (Object[]) parameters.get(i);

 partypes[i]
= (Class) params[0];

 }



 Method
method;

 try
{



 method
= myProvider.getClass().getMethod(sMethod, partypes);

 }
catch (Exception e) {



 }

 this.dbprovidermethod
= method;

 }

 private
Object[] fillParameters()

 {

 Object
param[] = new Object[parameters.size()];

 for
(int i = 0; i  parameters.size(); i++) {

 Object[]
params = (Object[]) parameters.get(i);

 Class
clazz=(Class) params[0];

 

 

 param[i] = (clazz) params[1];

 }

 return
param;



 

 }

//sniplet






-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket arguments for big slow companies (Was:links about wicket scalability...)

2006-09-26 Thread Nino Wael
Hehe, I espcially agree to the unlearning effect. Had a hard time getting used 
to the fact that wicket controls what are selected in a component...


Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 26. september 2006 13:12
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Wicket arguments for big slow companies (Was:links 
about wicket scalability...)

 * Very small learning curve.
   Comment: Agreed. But I still think you need at least one more
   experienced Wicket developers for more advanced things like
   manipulating html generated by other components. Of course, books
   like 'Pro Wicket' help a lot but are not for every programmer.

I'm not even sure whether I agree :) Wicket can be hard for people
that are not comfortable with OO programming. If all you've learned so
far is coding PHP, JSP or RoR will be much easier to pick up. Also,
for people who have done a bunch of projects with web MVC frameworks
like Struts, there is what Howard Lewis Ship (Tapestry) calls the
'unlearning effect'.

Wicket probably *is* very easy to learn for programmers that are
experienced OO programmers, did a lot of Swing/ SWT/ ... desktop
applications, or weren't doing too much UI before. Also, I think
Wicket is the best of all web frameworks to learn for programmers who
are now learning the trade. It's just Java and just HTML instead of
yet another DSL, and imo there's not much that will encourage bad
programming practices.

 I also thought about: * Good support for modern web pages (AJAX), while
 being compatible with older browsers. But this one is I am afraid not
 good enough. For example FireFox 1.0 is not supported.

This is not inherently true for the framework though. We provide a
convenience implementation for Ajax, which can be used with other
implementations (Dojo, scriptaculous, your own, ...). I think a strong
feature of Wicket is that you can create you custom components,
including any Ajax support you want for them, without too much
trouble.

Eelco

-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.util.lang.PropertyResolver / migth bealittleofftopic

2006-09-26 Thread Nino Wael








Hmm, just went ahead and
tried the original code, and it workedJ:




private Object[] fillParameters() {


Object param[] = new Object[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


Class clazz = (Class) params[0];




param[i] = ((IModel) params[1]).getObject(null);


}


return param;




}













From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 26. september 2006 13:43
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
wicket.util.lang.PropertyResolver / migth bealittleofftopic





So there is no simple
solution like this, which does not work:



param[i] = (clazz) ((IModel)
params[1]).getObject(null);



or (purely fictional)

param[i] = (clazz.getType) ((IModel)
params[1]).getObject(null);













From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 26. september 2006 12:46
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
wicket.util.lang.PropertyResolver / migth be alittleofftopic





you have to make sure
that the object[] that you give to the invoke
are all of the right type.. Else you will get a class cast exception.
Reflection will not convert from one object to the other. 
PropertyResolver is using the given converter for that. 

johan



On 9/26/06, Nino
Wael [EMAIL PROTECTED]
wrote:





fillParameters should have looked like this 




private Object[] fillParameters() {


Object param[] = new Object[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


Class clazz = (Class) params[0];




param[i] = ((IModel) params[1]).getObject(null);


}


return param;




}









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Nino Wael
Sent: 26. september 2006 12:32
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user]
wicket.util.lang.PropertyResolver / migth be a littleofftopic







Hi 



I need to do something similar as the propertyresolver does. Therefore
im writing to the wicket userlist.



I have a component that can update a list of other components by a ajax call. This component
also fills out a palette(something similar to the extension.palette). 



It gets the value by calling a method which were provided and the
required parameters was also provided, it does this by using
java.lang.reflect.Method. 



In my effort on trying to make this a bit more generic component I was
trying to have an arraylist which contained class's and IModels.



Setting up the method was fine and simple enough, currently im stuck
when trying to build the list of parameters im wondering if I have to typecast
the parameters at all or if reflection will handle that, because of what I did
in the setupMethod method, I am betting the latter?





//sniplet


private void setupMethod(Object myProvider, String sMethod) {


Class partypes[] = new Class[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


partypes[i] = (Class) params[0];


}




Method method;


try {




method = myProvider.getClass().getMethod(sMethod, partypes);


} catch (Exception e) {




}


this.dbprovidermethod = method;


}


private Object[] fillParameters()


{


Object param[] = new Object[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


Class clazz=(Class) params[0];








param[i] = (clazz) params[1];


}


return param;







}

//sniplet










-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.util.lang.PropertyResolver / migth be a littleofftopic

2006-09-26 Thread Nino Wael








fillParameters should
have looked like this 



 private
Object[] fillParameters() {

 Object
param[] = new Object[parameters.size()];

 for
(int i = 0; i  parameters.size(); i++) {

 Object[]
params = (Object[]) parameters.get(i);

 Class
clazz = (Class) params[0];



 param[i]
= ((IModel) params[1]).getObject(null);

 }

 return
param;



 }









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 26. september 2006 12:32
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user]
wicket.util.lang.PropertyResolver / migth be a littleofftopic





Hi 



I need to do something similar as the
propertyresolver does. Therefore im writing to the wicket userlist.



I have a component that can update a list of other
components by a ajax
call. This component also fills out a palette(something similar to the
extension.palette). 



It gets the value by calling a method which were
provided and the required parameters was also provided, it does this by using
java.lang.reflect.Method. 



In my effort on trying to make this a bit more
generic component I was trying to have an arraylist which contained
classs and IModels.



Setting up the method was fine and simple enough, currently
im stuck when trying to build the list of parameters im wondering if I have to
typecast the parameters at all or if reflection will handle that, because of
what I did in the setupMethod method, I am betting the latter?





//sniplet


private void setupMethod(Object myProvider, String sMethod) {


Class partypes[] = new Class[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


partypes[i] = (Class) params[0];


}




Method method;


try {




method = myProvider.getClass().getMethod(sMethod, partypes);


} catch (Exception e) {




}


this.dbprovidermethod = method;


}


private Object[] fillParameters()


{


Object param[] = new Object[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


Class clazz=(Class) params[0];








param[i] = (clazz) params[1];


}


return param;







}

//sniplet






-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.util.lang.PropertyResolver / migth be alittleofftopic

2006-09-26 Thread Nino Wael








So there is no simple
solution like this, which does not work:



param[i] = (clazz) ((IModel) params[1]).getObject(null);



or (purely fictional)

param[i] = (clazz.getType) ((IModel)
params[1]).getObject(null);













From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 26. september 2006 12:46
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
wicket.util.lang.PropertyResolver / migth be alittleofftopic





you have to make sure
that the object[] that you give to the invoke
are all of the right type.. Else you will get a class cast exception.
Reflection will not convert from one object to the other. 
PropertyResolver is using the given converter for that. 

johan





On 9/26/06, Nino
Wael [EMAIL PROTECTED]
wrote:





fillParameters should have looked like this 




private Object[] fillParameters() {


Object param[] = new Object[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


Class clazz = (Class) params[0];




param[i] = ((IModel) params[1]).getObject(null);


}


return param;




}









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Nino Wael
Sent: 26. september 2006 12:32
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user]
wicket.util.lang.PropertyResolver / migth be a littleofftopic







Hi 



I need to do something similar as the propertyresolver does. Therefore
im writing to the wicket userlist.



I have a component that can update a list of other components by a ajax call. This component
also fills out a palette(something similar to the extension.palette). 



It gets the value by calling a method which were provided and the
required parameters was also provided, it does this by using
java.lang.reflect.Method. 



In my effort on trying to make this a bit more generic component I was
trying to have an arraylist which contained class's and IModels.



Setting up the method was fine and simple enough, currently im stuck
when trying to build the list of parameters im wondering if I have to typecast
the parameters at all or if reflection will handle that, because of what I did
in the setupMethod method, I am betting the latter?





//sniplet


private void setupMethod(Object myProvider, String sMethod) {


Class partypes[] = new Class[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


partypes[i] = (Class) params[0];


}




Method method;


try {




method = myProvider.getClass().getMethod(sMethod, partypes);


} catch (Exception e) {




}


this.dbprovidermethod = method;


}


private Object[] fillParameters()


{


Object param[] = new Object[parameters.size()];


for (int i = 0; i  parameters.size(); i++) {


Object[] params = (Object[]) parameters.get(i);


Class clazz=(Class) params[0];








param[i] = (clazz) params[1];


}


return param;







}

//sniplet










-
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Datatable/displaying,editing,adding,deleting

2006-09-25 Thread Nino Wael
Are there any example on howto do this?

-Nino


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Igor Vaynberg
Sent:   Mon 25-09-2006 07:21
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: [Wicket-user] Datatable/displaying,editing,adding,deleting

there is nothing because its trivial to build

just a datatable and a column whose markup comes from a fragment that has
add/edit/delete/whatever links.

-Igor


On 9/24/06, Nino Wael [EMAIL PROTECTED] wrote:

 Hi

 Whats the bedst component for showing a database table and doing
 mantainance. Idea is to be able to delete, add, update the table from the
 component. I've been looking at the repeater component, but im not sure if
 there is any thing that already has the exact functionallity.

 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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user






winmail.dat-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Datatable/displaying,editing,adding,deleting

2006-09-24 Thread Nino Wael
Hi

Whats the bedst component for showing a database table and doing mantainance. 
Idea is to be able to delete, add, update the table from the component. I've 
been looking at the repeater component, but im not sure if there is any thing 
that already has the exact functionallity.

regards

winmail.dat-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] form with wicket:child

2006-09-21 Thread Nino Wael
Put the bug on sourceforge, and place the simple test case there as well?

regards


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Stefan Lindner
Sent:   Thu 21-09-2006 11:47
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: form with wicket:child

 because in markup you have ajaxSaveButton but in java you have
 ajaxSubmitButton for id values.
 
That's not the point. This happened when I stripped down the real code for this 
email.


 not sure this usecase will work period though _right now_. you see form
 components need to be children of the form. so you need to let your panel
 implement IAlternateParentProvider and redirect children to the form. the
 markup resolution of wicket:child and wicket:body is not working right now
 because it doesnt take into account that it is embedded. juergen and i are
 working on it, well - much more juergen then i since im just creating
 failing unit tests for him to look at right now.

 give it a try and see if it works, i have only tested borders that fail in
 this usecase not panels. keep as apprised and i will do the same.
 
With the correct id values in both html and jave it does not work. Is there a 
timeline for the fix you mentioned (juergen is workin on it as you wrote)? 
Perhaps I could produce a testcase for you? Where can I put this testcase?
 
Stefan Lindner


winmail.dat-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Javascript property set by javacode?

2006-09-21 Thread Nino Wael








thanks











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 19. september 2006 17:56
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
_javascript_ property set by javacode?





see PackagedTextTemplate
and HeaderContributor. the template supports variable substitution.

-Igor





On 9/19/06, Nino
Wael 
[EMAIL PROTECTED] wrote:







Hi



I have some _javascript_ that I need to modify based on the java code. 



I have some _javascript_ that checks all checkboxes or unchecks em all but
the ones that are disabled. I've created a small component that handles the
stuff and placed the _javascript_ in that component as well but in order to have
no coupling to anything out side I need to know the name of the form from
inside the component and write the correct name of the form in the _javascript_. 



How can I do 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Javascript property set by javacode?

2006-09-19 Thread Nino Wael








Hi



I have some _javascript_ that I need to modify based on
the java code. 



I have some _javascript_ that checks all checkboxes or unchecks
em all but the ones that are disabled. Ive created a small component
that handles the stuff and placed the _javascript_ in that component as well but
in order to have no coupling to anything out side I need to know the name of
the form from inside the component and write the correct name of the form in
the _javascript_. 



How can I do 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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Utf-8 woes... (OT)

2006-09-04 Thread Nino Wael
Hi Per

Actually we've had a lot of problems here(denmark) first with eclipse encoding 
of files, eclipse on windows autmaticly encodes in ISO-8859-1. Worked than one 
through by specifing it via the shortcut for eclipse (vm args) we forced utf-8 
on it.

Then for a long period we had what we thought was a potential bug in wicket. 
Until one day I used our OWA(Outlook web access) it turned out to be a bug in 
IE 6. Somehow IE when caching throws away the correct encoding and defaults to
ISO-8859-1 which gave strange characters. This was fixed by setting html 
encoding to ISO-8859-1, since we do not expect any body but western styled 
keyboards/encoding to use our site.


regards Nino 


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Per Ejeklint
Sent:   Mon 04-09-2006 20:51
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: [Wicket-user] Utf-8 woes... (OT)

Never mind, solved it. Had some relic xml-spec left in a common  
markup file...

4 sep 2006 kl. 20.42 skrev Per Ejeklint:

 This is slightly off-topic, but since I know there are several Mac  
 and Eclipse users here that has funny chars in their mother  
 languages I ask for hints. I can't get my Wicket app, developed on  
 Eclipse on Mac to render Swedish vowels properly. You that knows  
 how to tweak all encodings, could you enlighten me?


-
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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Session management

2006-08-28 Thread Nino Wael








Hi



I was wondering how wicket maintains its
session state. We are currently working on a crossbrowser application, where
our application(wicket) lives within an Iframe. If we hit refresh on the page,
wicket looses its session id. As far as I can see wicket does store the session
id in a cookie?





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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Session management

2006-08-28 Thread Nino Wael









That was what I thought, I
do know that wicket is not the bad guy hereJ



Whats the default timeout
on the cookie? Or am I barking up the wrong leg?



.regards Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Janne Hietamäki
Sent: 28. august 2006 09:56
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session
management











On 28.8.2006, at 10.53, Nino Wael wrote:









Hi



I
was wondering how wicket maintains its session state. We are currently working
on a crossbrowser application, where our application(wicket) lives within an
Iframe. If we hit refresh on the page, wicket looses its session id. As far as
I can see wicket does store the session id in a cookie?



Wicket has nothing to do with this, it uses normal servlet container
for session management. Servlet spec states there have to be cookies and
session id parameter for fallback. So, yes, the session id is stored in a cookie.











Janne








-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Session management

2006-08-28 Thread Nino Wael








Ahh, wasnt sure if you
used something special.



We use both mounted urls
and url parameters, im wondering if this could give us the problem so for
example we could have a link like this:



http://Server/viewer/overblik/Y03



where this is the raw
page http://server/viewer and parameters are
overblik and Y03. the whole lot are set as the source of the IFRAME, could any
of this break the session id?



Regards Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Janne Hietamäki
Sent: 28. august 2006 10:06
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session
management







Session cookie expires when browser is shut down, but on the server
side the default is 30 minutes. This can be altered in the web.xml by adding something like this:

















session-config





 session-timeout60/session-timeout





/session-config

















Janne









On 28.8.2006, at 11.00, Nino Wael wrote:









That was what I thought, I do know that wicket is
not the bad guy hereJ





Whats the default timeout on the cookie? Or am I
barking up the wrong leg?



.regards Nino











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Janne Hietamäki
Sent: 28. august 2006 09:56
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session
management













On 28.8.2006, at
10.53, Nino Wael wrote:












Hi



I
was wondering how wicket maintains its session state. We are currently
working on a crossbrowser application, where our application(wicket) lives
within an Iframe. If we hit refresh on the page, wicket looses its session id.
As far as I can see wicket does store the session id in a cookie?



Wicket has nothing
to do with this, it uses normal servlet container for session management.
Servlet spec states there have to be cookies and session id parameter for
fallback. So, yes, the session id is stored in a cookie.






























-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Session management

2006-08-28 Thread Nino Wael
Our problem is that every time you hit the refresh, wicket apparently looses 
track of session. And creates a new sessionid.
 
 
The above is not so critical in it self, yet. But we have to create 
authentication, so the user can login if user wants to. I've tested the above 
with a simple html page on my laptop linking directly to our base page without 
being mounted or having parameters encapsuled in the url, this if working just 
fine. 
 
So im thinking that it could either be the way that the other vendor generates 
the iframe to wicket that causes this or it might be the encapsulation of 
parameters that does it or a combination?
 
 
 
regards Nino
 

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Janne Hietamäki 
Sendt: ma 28-08-2006 10:34 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] Session management



What kind of problems do you really have? May be you should check this 
http://www.wicket-wiki.org.uk/wiki/index.php/Using_frames

Janne

On 28.8.2006, at 11.23, Nino Wael wrote:


Ahh, wasnt sure if you used something special.

 

We use both mounted urls and url parameters, im wondering if 
this could give us the problem so for example we could have a link like this:

 

http://Server/viewer/overblik/Y03

 

where this is the raw page http://server/viewer and parameters 
are overblik and Y03. the whole lot are set as the source of the IFRAME, could 
any of this break the session id?

 

Regards Nino

 


  _  


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Janne Hietamäki
Sent: 28. august 2006 10:06
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session management

 

Session cookie expires when browser is shut down, but on the 
server side the default is 30 minutes. This can be altered in the web.xml by 
adding something like this:

 

 

session-config

  session-timeout60/session-timeout

/session-config

 

 

Janne

 

On 28.8.2006, at 11.00, Nino Wael wrote:





That was what I thought, I do know that wicket is not the bad 
guy here:-)

 

Whats the default timeout on the cookie? Or am I barking up the 
wrong leg?

 

.regards Nino

 


  _  


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Janne Hietamäki
Sent: 28. august 2006 09:56
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session management

 

 

On 28.8.2006, at 10.53, Nino Wael wrote:






Hi

 

I was wondering how wicket maintains it’s session state. We are 
currently working on a crossbrowser application, where our application(wicket) 
lives within an Iframe. If we hit refresh on the page, wicket looses its 
session id. As far as I can see wicket does store the session id in a cookie?

Wicket has nothing to do with this, it uses normal servlet 
container for session management. Servlet spec states there have to be cookies 
and session id parameter for fallback. So, yes, the session id is stored in a 
cookie.

 





 


-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



Janne Hietamäki
Teknologiajohtaja
Oy Cemron Ab

Osoite:
Kehräsaari
33200 Tampere
http://www.cemron.fi http://www.cemron.fi/ 

puh. ꥞ 40 724 7680
[EMAIL PROTECTED]



winmail.dat

Re: [Wicket-user] Session management

2006-08-28 Thread Nino Wael








Im using Paros, trying out the plugin for firefox.



But as far as I can see



Wicket asks to set a new
session(initial page):



http://img181.imageshack.us/my.php?image=session1pq3.jpg





second hit:

http://img245.imageshack.us/img245/8315/session2vh3.jpg





regards Nino









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Johan Compagner
Sent: 28. august 2006 10:49
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session
management





you could use the FireFox
plugin Tamper Data and look what is sent to wicket.
See if the session cookie is sent to the server yes or no.

johan





On 8/28/06, Nino
Wael [EMAIL PROTECTED]
wrote:

Our problem is that every
time you hit the refresh, wicket apparently looses track of session. And
creates a new sessionid.


The above is not so critical in it self, yet. But we have to create
authentication, so the user can login if user wants to. I've tested the above
with a simple html page on my laptop linking directly to our base page without
being mounted or having parameters encapsuled in the url, this if working just
fine. 

So im thinking that it could either be the way that the other vendor generates
the iframe to wicket that causes this or it might be the encapsulation of
parameters that does it or a combination?



regards Nino 


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED]
på vegne af Janne Hietamäki
Sendt: ma 28-08-2006 10:34 
Til: wicket-user@lists.sourceforge.net
Cc:
Emne: Re: [Wicket-user] Session
management



What kind of problems do you
really have? May be you should check this http://www.wicket-wiki.org.uk/wiki/index.php/Using_frames

Janne

On 28.8.2006, at 11.23, Nino
Wael wrote:


Ahh,
wasnt sure if you used something special. 



We
use both mounted urls and url parameters, im wondering if this could give us
the problem so for example we could have a link like this:



 http://Server/viewer/overblik/Y03



where
this is the raw page http://server/viewer
and parameters are overblik and Y03. the whole lot are set as the source of the
IFRAME, could any of this break the session id? 



Regards
Nino




_


From:
[EMAIL PROTECTED]
[mailto:
[EMAIL PROTECTED]] On Behalf Of Janne Hietamäki
Sent:
28. august 2006 10:06
To:
wicket-user@lists.sourceforge.net

Subject:
Re: [Wicket-user] Session management



Session
cookie expires when browser is shut down, but on the server side the default is
30 minutes. This can be altered in the web.xml by adding something like this:





session-config

session-timeout60/session-timeout

/session-config






Janne



On
28.8.2006, at 11.00, Nino Wael wrote:





That
was what I thought, I do know that wicket is not the bad guy here:-) 



Whats
the default timeout on the cookie? Or am I barking up the wrong leg?



.regards
Nino




_


From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Janne Hietamäki
Sent:
28. august 2006 09:56 
To:
wicket-user@lists.sourceforge.net
Subject:
Re: [Wicket-user] Session management





On
28.8.2006 , at 10.53, Nino Wael wrote:






Hi



I
was wondering how wicket maintains it's session state. We are currently working
on a crossbrowser application, where our application(wicket) lives within an
Iframe. If we hit refresh on the page, wicket looses its session id. As far as
I can see wicket does store the session id in a cookie? 

Wicket
has nothing to do with this, it uses normal servlet container for session
management. Servlet spec states there have to be cookies and session id
parameter for fallback. So, yes, the session id is stored in a cookie. 









-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user
mailing list

Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



Janne Hietamäki 
Teknologiajohtaja
Oy Cemron Ab

Osoite:
Kehräsaari
33200 Tampere
http://www.cemron.fi
 http://www.cemron.fi/

puh. ꥞ 40 724 7680
[EMAIL PROTECTED]




- 
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=lnkkid=120709bid=263057dat=121642

Re: [Wicket-user] Session management

2006-08-28 Thread Nino Wael








This migth be a stupid
question but does getPageMap().clear(); clear the session aswell?







Regards Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 28. august 2006 11:04
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session
management





Im using Paros, trying out the plugin for firefox.



But as far as I can see



Wicket asks to set a new
session(initial page):



http://img181.imageshack.us/my.php?image=session1pq3.jpg





second hit:

http://img245.imageshack.us/img245/8315/session2vh3.jpg





regards Nino









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 28. august 2006 10:49
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session
management





you could use the FireFox
plugin Tamper Data and look what is sent to wicket.
See if the session cookie is sent to the server yes or no.

johan



On 8/28/06, Nino
Wael [EMAIL PROTECTED]
wrote:

Our problem is that every
time you hit the refresh, wicket apparently looses track of session. And
creates a new sessionid.


The above is not so critical in it self, yet. But we have to create
authentication, so the user can login if user wants to. I've tested the above
with a simple html page on my laptop linking directly to our base page without
being mounted or having parameters encapsuled in the url, this if working just
fine. 

So im thinking that it could either be the way that the other vendor generates
the iframe to wicket that causes this or it might be the encapsulation of
parameters that does it or a combination?



regards Nino 


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED]
på vegne af Janne Hietamäki
Sendt: ma 28-08-2006 10:34 
Til: wicket-user@lists.sourceforge.net
Cc:
Emne: Re: [Wicket-user] Session
management



What kind of problems do you
really have? May be you should check this http://www.wicket-wiki.org.uk/wiki/index.php/Using_frames

Janne

On 28.8.2006, at 11.23, Nino
Wael wrote:


Ahh,
wasnt sure if you used something special. 



We
use both mounted urls and url parameters, im wondering if this could give us
the problem so for example we could have a link like this:



 http://Server/viewer/overblik/Y03



where
this is the raw page http://server/viewer
and parameters are overblik and Y03. the whole lot are set as the source of the
IFRAME, could any of this break the session id? 



Regards
Nino




_


From:
[EMAIL PROTECTED]
[mailto:
[EMAIL PROTECTED]] On Behalf Of Janne Hietamäki
Sent:
28. august 2006 10:06
To:
wicket-user@lists.sourceforge.net

Subject:
Re: [Wicket-user] Session management



Session
cookie expires when browser is shut down, but on the server side the default is
30 minutes. This can be altered in the web.xml by adding something like this:





session-config

session-timeout60/session-timeout

/session-config






Janne



On
28.8.2006, at 11.00, Nino Wael wrote:





That
was what I thought, I do know that wicket is not the bad guy here:-) 



Whats
the default timeout on the cookie? Or am I barking up the wrong leg?



.regards
Nino




_


From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Janne Hietamäki
Sent:
28. august 2006 09:56 
To:
wicket-user@lists.sourceforge.net
Subject:
Re: [Wicket-user] Session management





On
28.8.2006 , at 10.53, Nino Wael wrote:






Hi



I
was wondering how wicket maintains it's session state. We are currently working
on a crossbrowser application, where our application(wicket) lives within an
Iframe. If we hit refresh on the page, wicket looses its session id. As far as
I can see wicket does store the session id in a cookie? 

Wicket
has nothing to do with this, it uses normal servlet container for session
management. Servlet spec states there have to be cookies and session id
parameter for fallback. So, yes, the session id is stored in a cookie. 









-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user
mailing list
 Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



Janne Hietamäki 
Teknologiajohtaja
Oy Cemron Ab

Osoite:
Kehräsaari
33200 Tampere
http://www.cemron.fi
 http://www.cemron.fi/

puh. ꥞ 40 724 7680
[EMAIL PROTECTED

Re: [Wicket-user] Session management

2006-08-28 Thread Nino Wael
I see the problem, as a default firefox actually allows 3rd party cookies. But 
we are targeting IE 6(SP2) which does not by default allow 3rd party cookies.

Thanks for your mail. 

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janne Hietamäki
Sent: 28. august 2006 13:17
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Session management

If the page and the iframe content does not originate from the same  
server the browser security settings can cause the cookies are not  
accepted. For example on firefox setting Preferences/Privacy/Cookies/ 
for the originating site only should not be set.

If the cookie is set, the Cookie-header is sent on every request  
going to the server and you should see it on Paros.

Janne

On 28.8.2006, at 11.46, Nino Wael wrote:

 Our problem is that every time you hit the refresh, wicket  
 apparently looses track of session. And creates a new sessionid.


 The above is not so critical in it self, yet. But we have to create  
 authentication, so the user can login if user wants to. I've tested  
 the above with a simple html page on my laptop linking directly to  
 our base page without being mounted or having parameters encapsuled  
 in the url, this if working just fine.

 So im thinking that it could either be the way that the other  
 vendor generates the iframe to wicket that causes this or it might  
 be the encapsulation of parameters that does it or a combination?



 regards Nino


   -Oprindelig meddelelse-
   Fra: [EMAIL PROTECTED] på vegne af Janne  
 Hietamäki
   Sendt: ma 28-08-2006 10:34
   Til: wicket-user@lists.sourceforge.net
   Cc:
   Emne: Re: [Wicket-user] Session management
   
   

   What kind of problems do you really have? May be you should check  
 this http://www.wicket-wiki.org.uk/wiki/index.php/Using_frames

   Janne

   On 28.8.2006, at 11.23, Nino Wael wrote:


   Ahh, wasnt sure if you used something special.

   

   We use both mounted urls and url parameters, im wondering if 
 this  
 could give us the problem so for example we could have a link like  
 this:

   

   http://Server/viewer/overblik/Y03

   

   where this is the raw page http://server/viewer and parameters  
 are overblik and Y03. the whole lot are set as the source of the  
 IFRAME, could any of this break the session id?

   

   Regards Nino

   

   
   _


   From: [EMAIL PROTECTED] [mailto:wicket- 
 [EMAIL PROTECTED] On Behalf Of Janne Hietamäki
   Sent: 28. august 2006 10:06
   To: wicket-user@lists.sourceforge.net
   Subject: Re: [Wicket-user] Session management

   

   Session cookie expires when browser is shut down, but on the  
 server side the default is 30 minutes. This can be altered in the  
 web.xml by adding something like this:

   

   

   session-config

 session-timeout60/session-timeout

   /session-config

   

   

   Janne

   

   On 28.8.2006, at 11.00, Nino Wael wrote:

   
   
   

   That was what I thought, I do know that wicket is not the bad 
 guy  
 here:-)

   

   Whats the default timeout on the cookie? Or am I barking up the 
  
 wrong leg?

   

   .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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dropdown choices in wicket

2006-08-18 Thread Nino Wael
About the dropdown:
 
Use a model, maybe a property model to hold the selected dropdown object. 
Property models require that there are a get and setter method for the supplied 
property. You could also use the abstractmodel and implement your own thing, if 
per say you needed to update something else on the page based on what the 
selected dropdown are.
 
Just to sum it up, wicket does all the nifty stuff about updating the model 
that you provide so you need only do your logic.
 
Please ask if you have more questions.
 
 
 
 
regards Nino 

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af sathya81 
Sendt: fr 18-08-2006 09:02 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: [Wicket-user] Dropdown choices in wicket




Hi, iam new to wicket, am going through the available examples, i dont
understand  how can i capture the selected option in a drop down choice 
in
the wicket? I checked the example tutorial given in the  ensode.net but
still i dont understand how to capture the selected value of the drop 
down
and display it after form submission

Plz help

one more, how to capture values from Hidden fields in wicket html page, 
for
labels you have Label class in wicket , similarly any provision for 
hidden
variable??

Thanks in advance
Sathya
--
View this message in context: 
http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810
Sent from the Wicket - User forum at Nabble.com.



-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


winmail.dat-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dropdown choices in wicket

2006-08-18 Thread Nino Wael
Hi Sathya

Yes you should use one model for each of your dropdowns. 

Lets say you are creating a site where you can search for books.

Then you might have a drop down for author and maybe category.

I guess(without knowing anything about searching and or books:)) that I would 
create a class that holds the search criteria eg:

search.java

private author
private category

getter  setter methods goes here

so on my wicket page i'll have the following pseudo code:
private Search bookSearch=new Search;
Imodel author=new Propertymodel(bookSearch.author,search);
Imodel category=new Propertymodel(BookSearchcategory,search);
dropdown dropAuthor=new dropdown(id, author);
add(drop)
dropdown dropCat=new dropdown(id,category);
add(drop)


button search=new Button(id){onsubmit(
process(search))
}
add(search)


I hope my simple example contributes to something usefull:)

Regards Nino


-Original Message-
From:   [EMAIL PROTECTED] on behalf of sathya81
Sent:   Fri 18-08-2006 11:00
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: [Wicket-user] Dropdown choices in wicket


Thanq Nino,

well, iam using a model to store the data , actually i was going through the
example given in the http://ensode.net/wicket_first_look.html , where in the
author creates two models , the first model to store the normal form values
and the second model explicitly to store the dropdown selected values
, so here my doubt is if there are around 5 drop down choices in a page,
then should i create 5 models for each to store the selected values?

--Sathya


Nino Wael wrote:
 
 About the dropdown:
  
 Use a model, maybe a property model to hold the selected dropdown object.
 Property models require that there are a get and setter method for the
 supplied property. You could also use the abstractmodel and implement your
 own thing, if per say you needed to update something else on the page
 based on what the selected dropdown are.
  
 Just to sum it up, wicket does all the nifty stuff about updating the
 model that you provide so you need only do your logic.
  
 Please ask if you have more questions.
  
  
  
  
 regards Nino 
 
   -Oprindelig meddelelse- 
   Fra: [EMAIL PROTECTED] på vegne af sathya81 
   Sendt: fr 18-08-2006 09:02 
   Til: wicket-user@lists.sourceforge.net 
   Cc: 
   Emne: [Wicket-user] Dropdown choices in wicket
   
   
 
 
   Hi, iam new to wicket, am going through the available examples, i dont
   understand  how can i capture the selected option in a drop down choice
 in
   the wicket? I checked the example tutorial given in the  ensode.net but
   still i dont understand how to capture the selected value of the drop
 down
   and display it after form submission
   
   Plz help
   
   one more, how to capture values from Hidden fields in wicket html page,
 for
   labels you have Label class in wicket , similarly any provision for
 hidden
   variable??
   
   Thanks in advance
   Sathya
   --
   View this message in context:
 http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810
   Sent from the Wicket - User forum at Nabble.com.
   
   
   
 -
   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=lnkkid=120709bid=263057dat=121642
   ___
   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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5866196
Sent from the Wicket - User forum at Nabble.com.


-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user

Re: [Wicket-user] Dropdown choices in wicket

2006-08-18 Thread Nino Wael

true, I was meerly trying to explain that you really dont have to grab the 
selected object, as this is what wicket does for you:)

I havent yet worked with compoundProperty models...


-regards Nino

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Gwyn Evans
Sent:   Fri 18-08-2006 13:46
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: [Wicket-user] Dropdown choices in wicket

Hmm - should isn't really correct - could, yes, but not should.

Personally, I'd suggest a single CompondPropertyModel, set for the
form, if not the page, as that can really cut down on the code you
need to write.

That also solves where to put any associated data, as the ModelObject
that the CPM wraps isn't restricted to /just/ the form data.  No need
for 'hidden' client-side properties!

/Gwyn

On 18/08/06, Nino Wael [EMAIL PROTECTED] wrote:
 Hi Sathya

 Yes you should use one model for each of your dropdowns.

 Lets say you are creating a site where you can search for books.

 Then you might have a drop down for author and maybe category.

 I guess(without knowing anything about searching and or books:)) that I would 
 create a class that holds the search criteria eg:

 search.java

 private author
 private category

 getter  setter methods goes here

 so on my wicket page i'll have the following pseudo code:
 private Search bookSearch=new Search;
 Imodel author=new Propertymodel(bookSearch.author,search);
 Imodel category=new Propertymodel(BookSearchcategory,search);
 dropdown dropAuthor=new dropdown(id, author);
 add(drop)
 dropdown dropCat=new dropdown(id,category);
 add(drop)


 button search=new Button(id){onsubmit(
 process(search))
 }
 add(search)


 I hope my simple example contributes to something usefull:)

 Regards Nino


 -Original Message-
 From:   [EMAIL PROTECTED] on behalf of sathya81
 Sent:   Fri 18-08-2006 11:00
 To: wicket-user@lists.sourceforge.net
 Cc:
 Subject:Re: [Wicket-user] Dropdown choices in wicket


 Thanq Nino,

 well, iam using a model to store the data , actually i was going through the
 example given in the http://ensode.net/wicket_first_look.html , where in the
 author creates two models , the first model to store the normal form values
 and the second model explicitly to store the dropdown selected values
 , so here my doubt is if there are around 5 drop down choices in a page,
 then should i create 5 models for each to store the selected values?

 --Sathya


 Nino Wael wrote:
 
  About the dropdown:
 
  Use a model, maybe a property model to hold the selected dropdown object.
  Property models require that there are a get and setter method for the
  supplied property. You could also use the abstractmodel and implement your
  own thing, if per say you needed to update something else on the page
  based on what the selected dropdown are.
 
  Just to sum it up, wicket does all the nifty stuff about updating the
  model that you provide so you need only do your logic.
 
  Please ask if you have more questions.
 
 
 
 
  regards Nino
 
-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] på vegne af sathya81
Sendt: fr 18-08-2006 09:02
Til: wicket-user@lists.sourceforge.net
Cc:
Emne: [Wicket-user] Dropdown choices in wicket
 
 
 
 
Hi, iam new to wicket, am going through the available examples, i dont
understand  how can i capture the selected option in a drop down 
  choice
  in
the wicket? I checked the example tutorial given in the  ensode.net 
  but
still i dont understand how to capture the selected value of the drop
  down
and display it after form submission
 
Plz help
 
one more, how to capture values from Hidden fields in wicket html 
  page,
  for
labels you have Label class in wicket , similarly any provision for
  hidden
variable??
 
Thanks in advance
Sathya
--
View this message in context:
  http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810
Sent from the Wicket - User forum at Nabble.com.
 

-- 
Download Wicket 1.2.1 now! - http://wicketframework.org

-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



winmail.dat-
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

Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread Nino Wael
Im not sure if this helps, but take a look at:

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

regards

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sathya81
Sent: 17. august 2006 07:34
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Internationalization support in Wicket


Hi,

I am working on a sample application in wicket where in i created a
properties file consisting of some key values in French language, nowi have
set the Locale as French and iam getting the labels displayed in the french
in the index page, but when i submit the page, ia m redirecting the page to
another Home page where in i have to display the entered text values, here
wicket is not able to read the same properties file once again, y is this
so? i stored the locale value in session and also tried to use a model to
set/get the locale, but still, iam getting the labels in the default english
in the Home page.. , in the Hompage.class file, the locale value is getting
printed as French but still its not able to load the properties file.

Is there any way to manually load the properites file in to wicket whenver
required through code?

Thanks in Advance

Sathya
-- 
View this message in context: 
http://www.nabble.com/Internationalization-support-in-Wicket-tf2119658.html#a5845780
Sent from the Wicket - User forum at Nabble.com.


-
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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket 1.2 and Hibernate 3 slow

2006-08-17 Thread Nino Wael








Hi



I have some pages where I use Hibernate beans to hold
the contents of my wicket componts, for example if I have a listbox then each
dataItem is a Hibernate bean. There seem to be a performance problem with this
when I have postbacks to the page, when using AJAX it does not seem to be a problem.
Further more it does not seem to have anything to do with my wicket code(might
be the way Ive designed my wicket page(conceptually) though).



I have a kind of feeling that wicket on postbacks
goes through all components and their childs, and sniffs them?



When testing without using hibernate the performance issue
are gone. I guess a way to fix the issue is to instantiate POJOs from
the hibernate beans to ensure that no hibernate listeners or whatever they use arent
transferred to GUI.



Whats your 2 cents on this?



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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2 and Hibernate 3 slow

2006-08-17 Thread Nino Wael








Please discard the
previous mail It was another problem..



Regards Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 17. august 2006 10:55
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Wicket 1.2
and Hibernate 3 slow





Hi



I have some pages where I use Hibernate beans to hold
the contents of my wicket componts, for example if I have a listbox then each
dataItem is a Hibernate bean. There seem to be a performance problem with this
when I have postbacks to the page, when using AJAX it does not seem to be a problem.
Further more it does not seem to have anything to do with my wicket code(might
be the way Ive designed my wicket page(conceptually) though).



I have a kind of feeling that wicket on postbacks
goes through all components and their childs, and sniffs them?



When testing without using hibernate the performance
issue are gone. I guess a way to fix the issue is to instantiate POJOs
from the hibernate beans to ensure that no hibernate listeners or whatever they
use arent transferred to GUI.



Whats your 2 cents on this?



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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2 and Hibernate 3 slow

2006-08-17 Thread Nino Wael








Completly true, the base
of my problems was that I called out dbprovider in a listview which were
rerendered at postbacks.



Regards Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 17. august 2006 11:37
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Wicket
1.2 and Hibernate 3 slow





wicket will not sniff
(call getModelObject()) on all the components when it just have a request to
it.
It does ofcourse do that when rendering the page. Because the objects are
needed then.

And that could be the thing that is different with ajax. Because you don't
render the complete page. 

johan





On 8/17/06, Nino
Wael [EMAIL PROTECTED]
wrote:







Hi



I have some pages where I use Hibernate beans to hold the contents of my
wicket componts, for example if I have a listbox then each dataItem is a
Hibernate bean. There seem to be a performance problem with this when I have
postbacks to the page, when using AJAX
it does not seem to be a problem. Further more it does not seem to have
anything to do with my wicket code(might be the way I've designed my wicket
page(conceptually) though).



I have a kind of feeling that wicket on postbacks goes through all
components and their childs, and sniffs them?



When testing without using hibernate the performance issue are gone. I
guess a way to fix the issue is to instantiate POJO's from the hibernate beans
to ensure that no hibernate listeners or whatever they use aren't transferred
to GUI.



Whats your 2 cents on this?



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=lnkkid=120709bid=263057dat=121642

___
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Best way to get contents of the manifest.MF file?

2006-08-15 Thread Nino Wael








Hi whats the best way to retrieve information from
the manifest file?



Ive been looking at servletcontext but that
does not seem to be a very wicket like approach?



Should I register the manifest file as a resource and
use it that way?





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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.markup.html.form.checkbox/ajaxformbehaviour/set visible(false) -- BUG?

2006-07-21 Thread Nino Wael








Sorry no, only have this
pseudo alike code, real code involves too much logic to use as a simple
example.



 

 

 checkbox cb_HeleLandet.add(new
AjaxFormComponentUpdatingBehavior(onclick) {

 protected
void onUpdate(AjaxRequestTarget target) {

 //blabla



 }

 });



 cb_HeleLandet.setOutputMarkupId(true);

cb_HeleLandet.setVisible(false);

 form.add(cb_HeleLandet);

 If you were to add a panel which included the
same as above

Etc form.add(myPanel)



checkPanel myPanel() extends panel

public checkpanel

{

 checkbox cb_HeleLandet.add(new
AjaxFormComponentUpdatingBehavior(onclick) {

 protected
void onUpdate(AjaxRequestTarget target) {

 //blabla



 }

 });



 cb_HeleLandet.setOutputMarkupId(true);

add(cb_helelandet);



}



Johan--If a component is not visible (wherever
they are) will not render anything.

Yeah thats the meaning of the setvisible(false);)
I was merely being sarcastic.













From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 20. juli 2006 16:59
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
wicket.markup.html.form.checkbox/ajaxformbehaviour/set visible(false) -- BUG?





If a component is not
visible (wherever they are) will not render anything.
But they shouldn't stop other behaviours that are still visible to render the
right contributions.

Do you have a testcase?

johan




On 7/20/06, Nino
Wael [EMAIL PROTECTED]
wrote:







Hi I think I might have discovered a bug.



I had a checkbox with some ajax
behaviour. On the same page I also had a panel which had some form components
in it, one of the components did also use ajax.



I set visible(false) on the checkbox and 3 things happened

1.
checkbox was no longer rendered(surpriseJ )

2.
wicket debug for ajax
was no longer rendered

3.
ajax
behaviour on the other component stopped working



So I removed ajaxbehavior on the checkbox then it all worked again. My
guess is that somewhere there is a check on if a component that uses ajax behaviour that is set to not visible then ajax is not included on
the page.



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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket extensions palette

2006-07-20 Thread Nino Wael








Hi



What do I need to override in order to populate both
listboxes on construction?



Currently I am giving two models that are filled to
the palette, but only the left side listbox are populated, it seems the right
side ignores the model?





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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket.markup.html.form.checkbox/ajaxform behaviour/set visible(false) -- BUG?

2006-07-20 Thread Nino Wael








Hi I think I might have discovered a bug.



I had a checkbox with some ajax behaviour. On the same page I also had a
panel which had some form components in it, one of the components did also use ajax.



I set visible(false) on the checkbox and 3 things happened

1. checkbox
was no longer rendered(surpriseJ)

2. wicket
debug for ajax
was no longer rendered

3. ajax behaviour
on the other component stopped working



So I removed ajaxbehavior on the checkbox then it all
worked again. My guess is that somewhere there is a check on if a component
that uses ajax behaviour that is set to not
visible then ajax
is not included on the page.



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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Playing with models:)/wicket.extensions.markup.html.form.palette.Palette;

2006-07-18 Thread Nino Wael








Ill like to take
you up on the discussion.





I see the following pros
and cons with this approach:



Pro setObject:

Allows the user to
implement logic into the model If so desired


 Special conversions to satishfy wicket components needs, for
 example, wicket component needs one list but you have three, so join them
 in the get operator and split them in the set 
 Logic, etc disable other components, notify 
 Hold the standard implicitly directed by having a set object method
 Feels the right wayJ


Con setObject:


 Performance could be slightly improved?




I do think that that
using setObject on the model is something that always should be done; it
creates a lot of flexibility and why have setObject if not to use it, if not it
will only cause confusion.



-regards Nino











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Igor Vaynberg
Sent: 17. juli 2006 17:32
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Playing
with models:)/wicket.extensions.markup.html.form.palette.Palette; 





components whose model is
backed by a collection do not always call setobject() because they work on the
collection directly so there is no need to call

Collection c=model.getObject();
c.clear();
//refill c
model.setObject(c); == NOOP

and also in wicket there is a guard

component.setObject(c) {
 if (c.equals(model.getobject()) {
 //noop
 } else { //clone for version tracking; model.setObject (c); }
}

the above saves on unnecessary cloning.

just a few things to be aware of, whether or not we should call setobject()
anyways is still up for discussion.

i kinda think we should even though sometimes the objects are the same. 

-Igor

 



On 7/17/06, Nino
Wael [EMAIL PROTECTED]
wrote:

Strange then, it seems as the extension palette does not update on a
submit? Does it somehow detach from its model?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Eelco Hillenius
Sent: 17. juli 2006 12:14
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Playing with models:)
/wicket.extensions.markup.html.form.palette.Palette;


 When is setObject supposed to get called, Cause I only see it get called
during 
 construct?

Whenever a (form)component has to update it's modelcontents. Or if
you call setObject explicitly of course :() Typically, a component
update is done by Form, which visits all it's children and calls 
updateModel on them.

Eelco


-
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=lnkkid=120709bid=263057dat=121642

___
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=lnkkid=120709bid=263057dat=121642
___
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Model and setObject?

2006-07-18 Thread Nino Wael








Please see the other mail
I sent.. Re: [Wicket-user] Playing
withmodels:)/wicket.extensions.markup.html.form.palette.Palette;











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 18. juli 2006 12:48
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Model
and setObject?





I have to see pallet
component first but does that use a Multiple Select ListBox or something like
that?
Yes in 1.2 there is a the problem that it doesn't go through setObject it does
it directly on the list.
This will be fixed in 2.0. Because we did need to change some internal things
first.

I think there is an open bug report for this.

johan



On 7/17/06, Nino
Wael  [EMAIL PROTECTED]
wrote:







Hmm, when doing further debug. It seems as the
backing object are updated but not via the models setObject command. Is it
supposed to work like that?





Regards Nino











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
] On Behalf Of Nino Wael
Sent: 17. juli 2006 15:02
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Model and
setObject?









Hi 



Starting this over again, trying to explain more clearly what im doing
here.



I've created a AbstractModel that pretty much works as property model,
only difference are that the setObject sets the object and does a little bit
more. My model is attached to the wicket.extensions.markup.html.form.palette as
the model representing user choices. The palette component consists of two
listboxes and some buttons to move the selection, it moves the selection by
_javascript_ so I have a submit button in my form aswell.



My issue is that it seems as the models setObject are only called in the
constructor, or when I explicitly call it? But I can clearly see that the
palette gets updated correctly even if I switch pages.



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=lnkkid=120709bid=263057dat=121642


___
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Nino Wael
Strange then, it seems as the extension palette does not update on a submit? 
Does it somehow detach from its model?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 17. juli 2006 12:14
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Playing with models:) 
/wicket.extensions.markup.html.form.palette.Palette; 


 When is setObject supposed to get called, Cause I only see it get called 
 during
 construct?

Whenever a (form)component has to update it's model  contents. Or if
you call setObject explicitly of course :() Typically, a component
update is done by Form, which visits all it's children and calls
updateModel on them.

Eelco


-
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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior= not working?

2006-07-17 Thread Nino Wael
Yup that fixed it, thanks...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 14. juli 2006 15:38
To: wicket-user@lists.sourceforge.net
Subject: Re: 
[Wicket-user]wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior=
 not working?

I think you need to use AjaxFormComponentUpdatingBehavior so that your
model will automatically updated.

Eelco



On 7/14/06, Nino Wael [EMAIL PROTECTED] wrote:



 Ok, np just switched back to checkbox and wrote this:




 cb_HeleLandet.add(new AjaxEventBehavior(onclick) {


  protected void onEvent(AjaxRequestTarget target) {



 myForm_sammen.setDisabled(reportModel.getHeleLandet());



 target.addComponent(myForm_sammen);


  }

 });



 Which almost works as wanted. When are the backing model for my checkbox
 updated?  It seems it's not updated preajax call, nor postajax? Do I need a
 true submit of the form to update the backing model?





 Since I need to disabled another component based on when the checkbox are
 checked or not.



 Regards Nino


 


 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Igor Vaynberg
 Sent: 14. juli 2006 09:26

 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user]
 wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior
 = not working?


 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user]
 wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior
 = not working?





 oops, i thought i fixed that (onchange-onclick) before 1.2 final, but i
 guess not. until 1.2.1 comes out you are prob then better off using what you
 have now, or use 1.2 from svn

 -Igor



 On 7/13/06, Nino Wael [EMAIL PROTECTED] wrote:



 I switched to the AjaxCheckBox, but my markup still says:



 input type=checkbox wicket:id=hele_landet name=hele_landet
 onchange=var
 wcall=wicketAjaxPost('/jobindsats/app?wicket:interface=:2:databank_form:hele_landet::IBehaviorListenerwicket:behaviorId=1',
 wicketSerialize(this), function() { }, function() { });
 id=databank_form_hele_landet




 Wicket java:

 cb_HeleLandet =
 new AjaxCheckBox(hele_landet, new PropertyModel(


reportModel, heleLandet)) {



  protected void onUpdate(AjaxRequestTarget target) {



 myForm_sammen.setEnabled(reportModel.getHeleLandet());



 target.addComponent(myForm_sammen);




  }




 };



 How do I specify to call the ajax onclick? As you wrote the ajax is now
 called onchange wich indeed are delayed until blur occurs.



 Regards Nino
 


 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] ] On
 Behalf Of Igor Vaynberg
 Sent: 13. juli 2006 18:17



 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] wicket.markup.html.form.CheckBox
 vswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not
 working?




 also onchange on the checkboxes is delayed until the onblur event so you are
 better off using onclick, and there is of course a
 wicket.ajax.markup.html.form.AjaxCheckBox ready for you as
 well

 -Igor


 On 7/13/06, Martijn Dashorst [EMAIL PROTECTED] wrote:


 Did you do myForm_sammen.setOutputMarkupId(true) in your
 page constructor?

 Martijn


 On 7/13/06, Nino Wael [EMAIL PROTECTED] wrote:
  Hi
 
  Im currently working on a checkbox that needs to do some stuff on a
 onchange request.
 
  However it looks as the AJAX call never is made, I have other ajax calls
 on the page that works just fine (also using the onchange modifier)
 
 
  When looking at the below code it should work fine it seems to me but it
 dosent:
 
  Wicket javaCode:
 
  cb_HeleLandet = new CheckBox(hele_landet, new
 PropertyModel(
  reportModel,
 heleLandet));
  cb_HeleLandet.setOutputMarkupId(true);
  cb_HeleLandet.add(new
 AjaxFormComponentUpdatingBehavior(onchange) {
  protected void onUpdate(AjaxRequestTarget target)
 {
 
 myForm_sammen.setEnabled(reportModel.getHeleLandet());
  target.addComponent
 (myForm_sammen);
 
  }
  });
 
  Wicket html code:
 
   input type=checkbox
 wicket:id=hele_landet
 
  Wicket html when output from server:
 
  script type=text/javascript
 src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script
  script type=text/javascript!--//--![CDATA[//!--
  wicketAjaxDebugEnable=true;
  //--!]]/script
 
  script type=text/javascript
 src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-
 ajax-debug-drag.js/script
  script type=text/javascript
 src=/jobindsats/app/resources

[Wicket-user] Model and setObject?

2006-07-17 Thread Nino Wael








Hi 



Starting this over again, trying to explain more
clearly what im doing here.



Ive created a AbstractModel that pretty much
works as property model, only difference are that the setObject sets the object
and does a little bit more. My model is attached to the wicket.extensions.markup.html.form.palette
as the model representing user choices. The palette component consists of two
listboxes and some buttons to move the selection, it moves the selection by
_javascript_ so I have a submit button in my form aswell.



My issue is that it seems as the models setObject are
only called in the constructor, or when I explicitly call it? But I can clearly
see that the palette gets updated correctly even if I switch pages.



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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Model and setObject?

2006-07-17 Thread Nino Wael








Hmm, when doing further
debug. It seems as the backing object are updated but not via the models
setObject command. Is it supposed to work like that?





Regards Nino











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Nino Wael
Sent: 17. juli 2006 15:02
To:
wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Model and
setObject?





Hi 



Starting this over again, trying to explain more
clearly what im doing here.



Ive created a AbstractModel that pretty much
works as property model, only difference are that the setObject sets the object
and does a little bit more. My model is attached to the
wicket.extensions.markup.html.form.palette as the model representing user
choices. The palette component consists of two listboxes and some buttons to
move the selection, it moves the selection by _javascript_ so I have a submit
button in my form aswell.



My issue is that it seems as the models setObject are
only called in the constructor, or when I explicitly call it? But I can clearly
see that the palette gets updated correctly even if I switch pages.



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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Playing with models:)

2006-07-16 Thread Nino Wael








Thanks;)











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 14. juli 2006 15:07
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Playing
with models:)





Disableding/Enableing can
be done with pull (attributemodifiers on C/D that are looking at A/B)
Setting the defaults could be done by push so A/B pushing values ot C/D
That last part could also be one by the backing bean ofcourse. 
So if you you have a bean where A sets its value on. Then when that value is
set you also set the value of C
and c then pulls that data.

johan





On 7/14/06, Nino
Wael [EMAIL PROTECTED]
wrote:







Ok scratch what I send previously. I'll try to
explain more clearly what Im trying to do.



This picture describes show what I have, I'll now
try to describe the flow

http://www.badongo.com/pic/237253



This is what I got currently:



The component which contains B are based on the
Palette component from wicket extensions.



A populates the component below as C does D



So this is the functionality I need:



When A or B is changed C needs to be repopulated
and D needs to be emptied



If B.size are different from 1 then C and D needs
to be disabled



If E is clicked then C and D needs to be disabled
(this is partly working with an ajax
call, however the backing model does not seem to be updated).



If C is changed then D needs to be repopulated
(this is working already with an ajax
call).





My original idea was to make the components A/B
aware of C/D and make A/B make an direct repopulation on C/D. However looking
at all the facilities with models I thought that I could make the C/D model
aware of A/B instead. 



Would the correct thing to do make A/B
model notify C/D model that a change had happend? 



Or would it be that the A/B component needs to be
aware of the C/D component and make A/B call a populate on C/D?



The last idea I got now and what I think should
work is that the A/B model needs to be aware of the C/D component and
repopulate/disable/enable when appropriate.





Hopes this makes a bit sense?



Regards Nino















From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
] On Behalf Of Johan Compagner
Sent: 14. juli 2006 14:18






To: wicket-user@lists.sourceforge.net
Subject: Re:
[Wicket-user] Playing with models:)









ok you just want to prefill it everytime
the page/textarea is rendered?
What happens then to the previous value the user just typed in??

If for example you used a normal detachable
model (so not readonly)
And the first time you load some default stuff. 
Then a user alters the textarea and submits.
Then the page is rendered again. Then in your case the input he made is gone?
Because you again do a load depending on the list.

I would do this different. Just give the textarea a normal model that can be
updated. 
Then do a onSelectionChange on the list and when the list changes you push the
value that you want to set in the textarea.
Of course this can also be done in an own textarea detachable model. But then
you need to know the previous selected value of the list. 

johan



On
7/14/06, Nino Wael  [EMAIL PROTECTED] wrote:

So heres what I do, code is possibly
flawed. I've tried with the abstractmodel instead which works but gets multiple
hits pr request which makes it hard to detect if I should repopulate, actually
it seems as it hits on modelchanging and onmodelchanged... 

Basicly what Im trying to do is to have a dependency on a dropdown and a
listbox, so if the dropdown is changed and one thing is selected in the listbox
my LoadableDetachableModel should be populated with new values. If listbox.size!=1
then no values should be loaded.

In the begining I based my example on Igors Ajax radiochoice example.


LoadableDetachableModel
detachdebugmodel = new LoadableDetachableModel() { 
public
ItemContainer previous = new ItemContainer();

private
boolean previousUpdate = false;

private
String value = ;

protected
Object load() {
value
= No Populate compare;
if
(reportModel.getOmraade().getDataItem() != null

previous.getDataItem() != null) {
if
(!reportModel.getOmraade().getDataItem().equals(
previous.getDataItem()))
{
previousUpdate
= true; 
value
= Repopulate AreaType changed!;
return
value;
}
}

if
(reportModel.getOmraade_selected().getDualModel().getFill()
.size()
== 1) {
if
(previous.getDataItem ().equals(
reportModel.getOmraade().getDataItem())
== false
||
!previousUpdate) {
value
= Enable Populate compareTypes and enable compareTypes; 
previousUpdate
= true;
return
value;
}
value
= not changed no need to update; 
return
value;
}
else {
previous
.setDataItem(
reportModel.getOmraade().getDataItem());
value
= EMPTY  disable CompareTypes;
previousUpdate
= false;
return
value; 
}

}
};
TextArea
myText = new TextArea(debugmodel, detachdebugmodel);



-Original Message- 
From: [EMAIL PROTECTED] on behalf of Johan Compagner
Sent: Fri 14-07-2006 13:37
To: wicket-user@lists.sourceforge.net

Cc

Re: [Wicket-user] wicket.markup.html.form.CheckBox vswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

2006-07-14 Thread Nino Wael
I did(myForm_sammen.setOutputMarkupId(true))... However further testing 
showed,that it was as Igor wrote. Actually got an ajax post when on blur 
occurred.

Thanks though for the reply


Regards Nino


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: 13. juli 2006 15:03
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket.markup.html.form.CheckBox 
vswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

Did you do myForm_sammen.setOutputMarkupId(true) in your page constructor?

Martijn


On 7/13/06, Nino Wael [EMAIL PROTECTED] wrote:
 Hi

 Im currently working on a checkbox that needs to do some stuff on a onchange 
 request.

 However it looks as the AJAX call never is made, I have other ajax calls on 
 the page that works just fine (also using the onchange modifier)


 When looking at the below code it should work fine it seems to me but it 
 dosent:

 Wicket javaCode:

 cb_HeleLandet = new CheckBox(hele_landet, new PropertyModel(
 reportModel, heleLandet));
 cb_HeleLandet.setOutputMarkupId(true);
 cb_HeleLandet.add(new 
 AjaxFormComponentUpdatingBehavior(onchange) {
 protected void onUpdate(AjaxRequestTarget target) {
 
 myForm_sammen.setEnabled(reportModel.getHeleLandet());
 target.addComponent(myForm_sammen);

 }
 });

 Wicket html code:
   
   input type=checkbox wicket:id=hele_landet

 Wicket html when output from server:

 script type=text/javascript 
 src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script
 script type=text/javascript!--//--![CDATA[//!--
 wicketAjaxDebugEnable=true;
 //--!]]/script

 script type=text/javascript 
 src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-drag.js/script
 script type=text/javascript 
 src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script

 And for the checkbox:
 input type=checkbox wicket:id=hele_landet name=hele_landet 
 onchange=var 
 wcall=wicketAjaxPost('/jobindsats/app?wicket:interface=:2:databank_form:hele_landet::IBehaviorListenerwicket:behaviorId=1',
  wicketSerialize(this), function() { }, function() { }); 
 id=databank_form_hele_landet



 -
 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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org


-
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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.markup.html.form.CheckBox vswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

2006-07-14 Thread Nino Wael








I switched to the
AjaxCheckBox, but my markup still says:



input
type=checkbox wicket:id=hele_landet
name=hele_landet 
wcall=wicketAjaxPost('/jobindsats/app?wicket:interface=:2:databank_form:hele_landet::IBehaviorListenerwicket:behaviorId=1',
wicketSerialize(this), function() { }, function() { });
id=databank_form_hele_landet



Wicket java:

 cb_HeleLandet
= new AjaxCheckBox(hele_landet, new PropertyModel(

 reportModel,
heleLandet)) {

 protected
void onUpdate(AjaxRequestTarget target) {

 myForm_sammen.setEnabled(reportModel.getHeleLandet());

 target.addComponent(myForm_sammen);



 }



 };



How do I specify to call
the ajax onclick?
As you wrote the ajax
is now called onchange wich indeed are delayed until blur occurs.



Regards Nino









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 13. juli 2006 18:17
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
wicket.markup.html.form.CheckBox
vswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?





also onchange on the
checkboxes is delayed until the onblur event so you are better off using
onclick, and there is of course a wicket.ajax.markup.html.form.AjaxCheckBox
ready for you as well

-Igor





On 7/13/06, Martijn
Dashorst [EMAIL PROTECTED]
wrote:

Did you do myForm_sammen.setOutputMarkupId(true) in your page
constructor?

Martijn


On 7/13/06, Nino Wael [EMAIL PROTECTED]
wrote:
 Hi
 
 Im currently working on a checkbox that needs to do some stuff on a
onchange request.

 However it looks as the AJAX call never is made, I have other ajax calls
on the page that works just fine (also using the onchange modifier) 


 When looking at the below code it should work fine it seems to me but it
dosent:

 Wicket javaCode:


cb_HeleLandet = new CheckBox(hele_landet, new PropertyModel( 

reportModel, heleLandet));

cb_HeleLandet.setOutputMarkupId(true);

cb_HeleLandet.add(new AjaxFormComponentUpdatingBehavior(onchange) {


protected void onUpdate(AjaxRequestTarget target) {

myForm_sammen.setEnabled(reportModel.getHeleLandet());

target.addComponent (myForm_sammen);


}

});

 Wicket html code:

input type=checkbox wicket:id=hele_landet 

 Wicket html when output from server:

 script
type=text/_javascript_
src=""

 script
type=text/_javascript_!--//--![CDATA[//!--
 wicketAjaxDebugEnable=true;
 //--!]]/script

 script type=text/_javascript_
src=""
ajax-debug-drag.js/script
 script type=text/_javascript_
src="">

 And for the checkbox:
 input type=checkbox wicket:id=hele_landet
name=hele_landet 
wcall=wicketAjaxPost('/jobindsats/app?wicket:interface=:2:databank_form:hele_landet::IBehaviorListenerwicket:behaviorId=1',
wicketSerialize(this), function() { }, function() { });
id=databank_form_hele_landet 



 -
 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=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



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


-
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=lnkkid=120709bid=263057dat=121642

___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael








Hah got your Attention there, though sadly enough its
only abstractmodels.



Im not sure when getObject are supposed to be called(what
triggers a call).



The following I can see are that my model are called
on page construct(which makes sense to me). But on form submit the model are
called two times, is that behaviour normal, also in what order are models
called? My model are dependant on some of the other model on the page so I
would always need for them to be updated first.







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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.markup.html.include.Include / encodingerror

2006-07-14 Thread Nino Wael
Hi Eelco

The file does actually get saved without corruption, so it must be the include 
that gets the input wrong..?

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 14. juli 2006 09:19
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] wicket.markup.html.include.Include / encodingerror

You have to use a reader for that instead of an inputstream. See Java
IO's documentation for more on that.

Eelco


On 7/11/06, Nino Wael [EMAIL PROTECTED] wrote:



 Hi



 Im a little curious about this. I have an file stream which is
 delivered(actually a html file) to me, I then write the file as a temporary
 file:



  String path =
 ((WebRequest) page.getRequest())


 .getHttpServletRequest().getSession(false)


 .getServletContext().getRealPath(/report);

  File dir = new File(path);

  File file =
 File.createTempFile(rep, extension, dir);

  Files.writeTo(file, new
 ByteArrayInputStream(report));

  url = /report/ +
 file.getName();



 Then include it :



  add(new Include(result, url));



 However the html file contains both the html tag and body tag, this does not
 give me give any direct problems. However I in my wicket html template file
 specify:

 meta http-equiv=Content-Type content=text/html; charset=utf-8 /

 but the included html specify:

 meta http-equiv=Content-type content=text/html; charset=iso-8859-1

 If I open the delivered file in an text editor it tells med that it's an
 ANSI encoding. Can I somehow make the Files.writeTo use UTF-8 encoding, and
 will it still show up wrong because of the iso-8859-1 specified in the
 included file?



 Currently it looks to me like it's the include that properly corrups the
 char's, im guessing its because file encoding is specified to ANSI but we
 have special chars like æ,ø,å.





 Hoping for some help...



 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=lnkkid=120709bid=263057dat=121642


 ___
 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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

2006-07-14 Thread Nino Wael








Ok, np just switched back
to checkbox and wrote this:



 cb_HeleLandet.add(new
AjaxEventBehavior(onclick) {

 protected
void onEvent(AjaxRequestTarget target) {

 myForm_sammen.setDisabled(reportModel.getHeleLandet());

 target.addComponent(myForm_sammen);

 }

 });



Which almost works as
wanted. When are the backing model for my checkbox updated? It seems its
not updated preajax call, nor postajax? Do I need a true submit of the form to
update the backing model?





Since I need to disabled
another component based on when the checkbox are checked or not.



Regards Nino











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: 14. juli 2006 09:26
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior
= not working?





oops, i thought i fixed
that (onchange-onclick) before 1.2 final, but i guess not. until 1.2.1
comes out you are prob then better off using what you have now, or use 1.2 from
svn

-Igor





On 7/13/06, Nino
Wael [EMAIL PROTECTED]
wrote:







I switched to the AjaxCheckBox, but my markup
still says:



input type=checkbox
wicket:id=hele_landet name=hele_landet

wcall=wicketAjaxPost('/jobindsats/app?wicket:interface=:2:databank_form:hele_landet::IBehaviorListenerwicket:behaviorId=1',
wicketSerialize(this), function() { }, function() { });
id=databank_form_hele_landet







Wicket java:


cb_HeleLandet = new AjaxCheckBox(hele_landet, new PropertyModel(


reportModel, heleLandet)) {






protected void onUpdate(AjaxRequestTarget target) {


myForm_sammen.setEnabled(reportModel.getHeleLandet());


target.addComponent(myForm_sammen);




}








};



How do I specify to call the ajax onclick? As you wrote the ajax is now called
onchange wich indeed are delayed until blur occurs.



Regards Nino









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
] On Behalf Of Igor Vaynberg
Sent: 13. juli 2006 18:17






To: wicket-user@lists.sourceforge.net
Subject: Re:
[Wicket-user] wicket.markup.html.form.CheckBox
vswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?









also onchange on the checkboxes is delayed until the
onblur event so you are better off using onclick, and there is of course a
wicket.ajax.markup.html.form.AjaxCheckBox ready for you as well

-Igor







On
7/13/06, Martijn Dashorst [EMAIL PROTECTED]
wrote:





Did you
do myForm_sammen.setOutputMarkupId(true) in your page constructor?

Martijn


On 7/13/06, Nino Wael [EMAIL PROTECTED] wrote:
 Hi
 
 Im currently working on a checkbox that needs to do some stuff on a
onchange request.

 However it looks as the AJAX call never is made, I have other ajax calls
on the page that works just fine (also using the onchange modifier) 


 When looking at the below code it should work fine it seems to me but it
dosent:

 Wicket javaCode:


cb_HeleLandet = new CheckBox(hele_landet, new PropertyModel( 

reportModel, heleLandet));

cb_HeleLandet.setOutputMarkupId(true);

cb_HeleLandet.add(new AjaxFormComponentUpdatingBehavior(onchange) {


protected void onUpdate(AjaxRequestTarget target) {

myForm_sammen.setEnabled(reportModel.getHeleLandet());

target.addComponent (myForm_sammen);


}

});

 Wicket html code:

input type=checkbox wicket:id=hele_landet 

 Wicket html when output from server:

 script
type=text/_javascript_
src=""

 script
type=text/_javascript_!--//--![CDATA[//!--
 wicketAjaxDebugEnable=true;
 //--!]]/script

 script type=text/_javascript_ src=""
ajax-debug-drag.js/script
 script type=text/_javascript_
src="">

 And for the checkbox:
 input type=checkbox wicket:id=hele_landet
name=hele_landet 
wcall=wicketAjaxPost('/jobindsats/app?wicket:interface=:2:databank_form:hele_landet::IBehaviorListenerwicket:behaviorId=1',
wicketSerialize(this), function() { }, function() { });
id=databank_form_hele_landet 



 -
 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=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




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


-
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=

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
Hi Eelco

It seems as the LoadableDetachableModel do not support setobject? What should I 
use instead?

-regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 14. juli 2006 09:26
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Playing with models:)

IModel#getObject is called anytime a component accesses it. Basically,
you should never depend on that method getting called a fixed number
of times; it is not designed for that. Typically if you need to do
heavy operations such as loading data from a database, you should use
detachable models. A good model for such things is
LoadableDetachableModel. the #load method is only called once a
request, and the loaded object is then reused throughout the request.
At the end of the request, the model is detached and the temporary
object is cleaned up.

Eelco


On 7/14/06, Nino Wael [EMAIL PROTECTED] wrote:



 Hah got your Attention there, though sadly enough its only abstractmodels.



 Im not sure when getObject are supposed to be called(what triggers a call).



 The following I can see are that my model are called on page construct(which
 makes sense to me). But on form submit the model are called two times, is
 that behaviour normal, also in what order are models called? My model are
 dependant on some of the other model on the page so I would always need for
 them to be updated first.







 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=lnkkid=120709bid=263057dat=121642


 ___
 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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
That is indeed is suitable, but in the example im doing, I use the model in a 
wicket.markup.html.form.TextArea, which need a model where it can store an 
object in as well.

So I guess I need a loadableDetachableModel which implements Abstractmodel 
instead of abstractreadonlymodel?

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gwyn Evans
Sent: 14. juli 2006 12:39
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Playing with models:)

You'd normally set all the internal objects up during the initial
load() processing, which is called once at the start of each request.

If that's not suitable, you might want to expand on what you're trying
to do  during what phase of a request?

/Gwyn

On 14/07/06, Nino Wael [EMAIL PROTECTED] wrote:
 Hi Eelco

 It seems as the LoadableDetachableModel do not support setobject? What should 
 I use instead?

 -regards Nino

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
 Sent: 14. juli 2006 09:26
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Playing with models:)

 IModel#getObject is called anytime a component accesses it. Basically,
 you should never depend on that method getting called a fixed number
 of times; it is not designed for that. Typically if you need to do
 heavy operations such as loading data from a database, you should use
 detachable models. A good model for such things is
 LoadableDetachableModel. the #load method is only called once a
 request, and the loaded object is then reused throughout the request.
 At the end of the request, the model is detached and the temporary
 object is cleaned up.

 Eelco


 On 7/14/06, Nino Wael [EMAIL PROTECTED] wrote:
 
 
 
  Hah got your Attention there, though sadly enough its only abstractmodels.
 
 
 
  Im not sure when getObject are supposed to be called(what triggers a call).
 
 
 
  The following I can see are that my model are called on page construct(which
  makes sense to me). But on form submit the model are called two times, is
  that behaviour normal, also in what order are models called? My model are
  dependant on some of the other model on the page so I would always need for
  them to be updated first.
 
 
 
 
 
 
 
  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=lnkkid=120709bid=263057dat=121642
___
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
So heres what I do, code is possibly flawed. I've tried with the abstractmodel 
instead which works but gets multiple hits pr request which makes it hard to 
detect if I should repopulate, actually it seems as it hits on modelchanging 
and onmodelchanged...

Basicly what Im trying to do is to have a dependency on a dropdown and a 
listbox, so if the dropdown is changed and one thing is selected in the listbox 
my LoadableDetachableModel should be populated with new values. If 
listbox.size!=1 then no values should be loaded.

In the begining I based my example on Igors Ajax radiochoice example.


LoadableDetachableModel detachdebugmodel = new 
LoadableDetachableModel() {
public ItemContainer previous = new ItemContainer();

private boolean previousUpdate = false;

private String value = ;

protected Object load() {
value = No Populate compare;
if (reportModel.getOmraade().getDataItem() != 
null
 previous.getDataItem() != 
null) {
if 
(!reportModel.getOmraade().getDataItem().equals(

previous.getDataItem())) {
previousUpdate = true;
value = Repopulate AreaType 
changed!;
return value;
}
}
if 
(reportModel.getOmraade_selected().getDualModel().getFill()
.size() == 1) {
if (previous.getDataItem().equals(

reportModel.getOmraade().getDataItem()) == false
|| !previousUpdate) {
value = Enable Populate 
compareTypes and enable compareTypes;
previousUpdate = true;
return value;
}
value = not changed no need to update;
return value;
} else {
previous

.setDataItem(reportModel.getOmraade().getDataItem());
value = EMPTY  disable CompareTypes;
previousUpdate = false;
return value;
}

}
};
TextArea myText = new TextArea(debugmodel, detachdebugmodel);



-Original Message-
From:   [EMAIL PROTECTED] on behalf of Johan Compagner
Sent:   Fri 14-07-2006 13:37
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: [Wicket-user] Playing with models:)

But what do you set then?
another id?
You can't set the object really. Because the object is loaded in the load
method by i guess an id.
So the id is the real object not the thing that you would get through
setObject()..

johan


On 7/14/06, Nino Wael [EMAIL PROTECTED] wrote:

 That is indeed is suitable, but in the example im doing, I use the model
 in a wicket.markup.html.form.TextArea, which need a model where it can
 store an object in as well.

 So I guess I need a loadableDetachableModel which implements Abstractmodel
 instead of abstractreadonlymodel?

 Regards Nino

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Gwyn Evans
 Sent: 14. juli 2006 12:39
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Playing with models:)

 You'd normally set all the internal objects up during the initial
 load() processing, which is called once at the start of each request.

 If that's not suitable, you might want to expand on what you're trying
 to do  during what phase of a request?

 /Gwyn

 On 14/07/06, Nino Wael [EMAIL PROTECTED] wrote:
  Hi Eelco
 
  It seems as the LoadableDetachableModel do not support setobject? What
 should I use instead?
 
  -regards Nino
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Eelco Hillenius
  Sent: 14. juli 2006 09:26
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Playing with models:)
 
  IModel#getObject is called anytime a component accesses it. Basically,
  you should never depend on that method getting called a fixed number
  of times; it is not designed for that. Typically if you need to do
  heavy operations such as loading data from a database

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael








Ok scratch what I send
previously. Ill try to explain more clearly what Im trying to do.



This picture describes show
what I have, Ill now try to describe the flow

http://www.badongo.com/pic/237253



This is what I got
currently:



The component which contains
B are based on the Palette component from wicket extensions.



A populates the component
below as C does D



So this is the
functionality I need:



When A or B is changed C
needs to be repopulated and D needs to be emptied



If B.size are different from
1 then C and D needs to be disabled



If E is clicked then C
and D needs to be disabled (this is partly working with an ajax call, however the backing model does not
seem to be updated).



If C is changed then D
needs to be repopulated (this is working already with an ajax call).





My original idea was to
make the components A/B aware of C/D and make A/B make an direct repopulation
on C/D. However looking at all the facilities with models I thought that I
could make the C/D model aware of A/B instead. 



Would the correct thing
to do make A/B model notify C/D model that a change had happend? 



Or would it be that the
A/B component needs to be aware of the C/D component and make A/B call a
populate on C/D?



The last idea I got now
and what I think should work is that the A/B model needs to be aware of the C/D
component and repopulate/disable/enable when appropriate.





Hopes this makes a bit
sense?



Regards Nino















From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Johan Compagner
Sent: 14. juli 2006 14:18
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Playing
with models:)





ok you just
want to prefill it everytime the page/textarea is rendered?
What happens then to the previous value the user just typed in??

If for example
you used a normal detachable model (so not readonly)
And the first time you load some default stuff. 
Then a user alters the textarea and submits.
Then the page is rendered again. Then in your case the input he made is gone?
Because you again do a load depending on the list.

I would do this different. Just give the textarea a normal model that can be
updated. 
Then do a onSelectionChange on the list and when the list changes you push the
value that you want to set in the textarea.
Of course this can also be done in an own textarea detachable model. But then
you need to know the previous selected value of the list. 

johan



On 7/14/06, Nino Wael [EMAIL PROTECTED] wrote:

So heres what
I do, code is possibly flawed. I've tried with the abstractmodel instead which
works but gets multiple hits pr request which makes it hard to detect if I
should repopulate, actually it seems as it hits on modelchanging and
onmodelchanged... 

Basicly what Im trying to do is to have a dependency on a dropdown and a
listbox, so if the dropdown is changed and one thing is selected in the listbox
my LoadableDetachableModel should be populated with new values. If
listbox.size!=1 then no values should be loaded.

In the begining I based my example on Igors Ajax radiochoice example.


LoadableDetachableModel
detachdebugmodel = new LoadableDetachableModel() { 
public
ItemContainer previous = new ItemContainer();

private
boolean previousUpdate = false;

private
String value = ;

protected
Object load() {
value
= No Populate compare;
if
(reportModel.getOmraade().getDataItem() != null

previous.getDataItem() != null) {
if
(!reportModel.getOmraade().getDataItem().equals(
previous.getDataItem()))
{
previousUpdate
= true; 
value
= Repopulate AreaType changed!;
return
value;
}
}

if
(reportModel.getOmraade_selected().getDualModel().getFill()
.size()
== 1) {
if
(previous.getDataItem ().equals(
reportModel.getOmraade().getDataItem())
== false
||
!previousUpdate) {
value
= Enable Populate compareTypes and enable compareTypes; 
previousUpdate
= true;
return
value;
}
value
= not changed no need to update; 
return
value;
}
else {
previous
.setDataItem(
reportModel.getOmraade().getDataItem());
value
= EMPTY  disable CompareTypes;
previousUpdate
= false;
return
value; 
}

}
};
TextArea
myText = new TextArea(debugmodel, detachdebugmodel);



-Original Message- 
From: [EMAIL PROTECTED] on behalf of Johan Compagner
Sent: Fri 14-07-2006 13:37
To: wicket-user@lists.sourceforge.net
Cc:
Subject:Re: [Wicket-user]
Playing with models:)

But what do you set then?
another id?
You can't set the object really. Because the object is loaded in the load 
method by i guess an id.
So the id is the real object not the thing that you would get through
setObject()..

johan


On 7/14/06, Nino Wael [EMAIL PROTECTED]  wrote:

 That is indeed is suitable, but in the example im doing, I use the model
 in a wicket.markup.html.form.TextArea, which need a model where it can
 store an object in as well.

 So I guess I need a loadableDetachableModel which implements Abstractmodel
 instead of abstractreadonlymodel?

 Regards Nino

 -Original Message-
 From

[Wicket-user] wicket.markup.html.form.CheckBox vs wicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

2006-07-13 Thread Nino Wael
Hi 

Im currently working on a checkbox that needs to do some stuff on a onchange 
request. 

However it looks as the AJAX call never is made, I have other ajax calls on the 
page that works just fine (also using the onchange modifier)


When looking at the below code it should work fine it seems to me but it dosent:

Wicket javaCode:

cb_HeleLandet = new CheckBox(hele_landet, new PropertyModel(
reportModel, heleLandet));
cb_HeleLandet.setOutputMarkupId(true);
cb_HeleLandet.add(new 
AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget target) {

myForm_sammen.setEnabled(reportModel.getHeleLandet());
target.addComponent(myForm_sammen);

}
});

Wicket html code:

input type=checkbox wicket:id=hele_landet

Wicket html when output from server:

script type=text/javascript 
src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script
script type=text/javascript!--//--![CDATA[//!--
wicketAjaxDebugEnable=true;
//--!]]/script

script type=text/javascript 
src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-drag.js/script
script type=text/javascript 
src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script

And for the checkbox:
input type=checkbox wicket:id=hele_landet name=hele_landet onchange=var 
wcall=wicketAjaxPost('/jobindsats/app?wicket:interface=:2:databank_form:hele_landet::IBehaviorListenerwicket:behaviorId=1',
 wicketSerialize(this), function() { }, function() { }); 
id=databank_form_hele_landet



-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket.markup.html.include.Include / encoding error

2006-07-11 Thread Nino Wael








Hi



Im a little curious about this. I have an file stream
which is delivered(actually a html file) to me, I then write the file as a
temporary file:



 String path =
((WebRequest) page.getRequest())

       .getHttpServletRequest().getSession(false)

       .getServletContext().getRealPath(/report);

 File dir = new
File(path);

 File file =
File.createTempFile(rep, extension, dir);

 Files.writeTo(file,
new ByteArrayInputStream(report));

 url =
"" + file.getName();



Then include it :



 add(new Include(result,
url));



However the html file contains both the html tag and
body tag, this does not give me give any direct problems. However I in my
wicket html template file specify:

meta
http-equiv=Content-Type content=text/html;
charset=utf-8 / 

but the included html specify:

meta http-equiv=Content-type
content=text/html; charset=iso-8859-1

If I open the delivered file in an text editor it
tells med that its an ANSI encoding. Can I somehow make the
Files.writeTo use UTF-8 encoding, and will it still show up wrong because of
the iso-8859-1 specified in the included file?



Currently it looks to me like its the include
that properly corrups the chars, im guessing its because file encoding
is specified to ANSI but we have special chars like æ,ø,å.





Hoping for some help



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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Several times the same panel on a page

2006-07-10 Thread Nino Wael

Why dont you just use a listview?

regards Nino

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Alban Duval
Sent:   Mon 10-07-2006 13:30
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:[Wicket-user] Several times the same panel on a page

Hi all,

I'd like to know if there is a way to add several times the same panel 
on the same page ??
It seems to be impossible because it means to add several times element 
with the same wicket:id... Considering this, I think the question could 
be : could we change dynamically the wicket:id of some elements ??

AD.


-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



winmail.dat
-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Creating a component / dynamic casting / implicit casting

2006-07-06 Thread Nino Wael
Hi 

Im currently working on a component that consists of a dropdown list and two 
listbox's, lb1 and lb2. This is pretty simple to do. My issue isnt really a 
wicket one, but I guess it has relevance since this is something I need to 
solve to create my component.

The hard part is that the contents of lb1 depends of the contents of the 
dropdown. So I looked towards java.lang.reflect(Reflection), wich lets me 
define a certain method to use.

my constructor looks something like this

dualForm_form(String id, ItemContainer drop, List DropList, ItemContainer 
myCont,   Class myProvider, String sMethod)

The things that regards reflect are these:
 myProvider, which is the class that I need to call
 sMethod, which is the name of the method that I need to call
To keep stuff simple lets just assume that method bla only takes one parameter, 
the one which is provided by the onselectionchange method of my dropdown.

The above things are fine. But I also need to provide an instanciated object of 
the Class myProvider. I thought that I would use the class Object to carry the 
object. But calling reflect gives an error that the method defined in sMethed 
does not exist, I guess this is because reflection is looking in the object 
Class and not the true class which carries the method? What should I do instead?


As said earlier, this has nothing to do with wicket, but is very interresting 
when creating components that needs to update themselfes.

-Regards Nino



winmail.datUsing 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multipleforms good idea?

2006-06-26 Thread Nino Wael
Forms in my components are not nested...

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Frank Silbermann 
Sendt: fr 23-06-2006 17:33 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] Multipleforms good idea?


I don't think HTML forms can be nested.  This will hinder re-use of 
components that contain their own forms.  My solution is to build components 
with their own submit buttons with behavior built in, but which rely on being 
placed inside a form that covers the page as a whole.

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: Friday, June 23, 2006 2:48 AM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Multipleforms good idea?



Hi 

 

I’ve been creating some different components with wicket, so that I can 
reuse them. On some of my pages there is stuff which does not encourage reuse. 
All my components have their own form, none of them have regular submit 
buttons. This is handled in another component, which also handles what is next 
and previous page.

 

So I wanted to hear what you have to say about this approach?

 

Some of the pros are:

 

Don’t have to worry about placing the component tags within a form 
since they bring their own.

 

Might have some advantage in case of sub updating the page(ajax?)?

 

 

Cons:

 

How does this affect updating the model of separate forms when one 
forms submit button are clicked.

 

Not sure how multiple forms perform versus single form.

 

 

 

 

Regards Nino

winmail.datUsing 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Multipleforms good idea?

2006-06-23 Thread Nino Wael








Hi 



Ive been creating some different components
with wicket, so that I can reuse them. On some of my pages there is stuff which
does not encourage reuse. All my components have their own form, none of them
have regular submit buttons. This is handled in another component, which also
handles what is next and previous page.



So I wanted to hear what you have to say about this approach?



Some of the pros are:



Dont have to worry about placing the component
tags within a form since they bring their own.



Might have some advantage in case of sub updating the
page(ajax?)?





Cons:



How does this affect updating the model of separate forms
when one forms submit button are clicked.



Not sure how multiple forms perform versus single
form.









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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket.markup.html.tree

2006-06-14 Thread Nino Wael
Hi Guys
 
Anyone knows if theres a demo of the wicket.markup.html.tree 
component anywhere?
 
regards Nino
winmail.dat___
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:
 INPUT type=submit wicket:id=openword value=Aring;ben i word /

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


Re: [Wicket-user] PageLink onClick, never gets called?

2006-06-09 Thread Nino Wael
I guess the real question dwelve. Reason why I tried to use the onclick is that 
I have some infos in the onRender function of the link, this code does get run. 
But it seems that the infos just dosent get rendered, if I refresh the page 
they do get shown. So why would that be, because they cant be rendered after my 
onRender call?
 
regards Nino

-Oprindelig meddelelse- 
Fra: [EMAIL PROTECTED] på vegne af Johan Compagner 
Sendt: fr 09-06-2006 15:07 
Til: wicket-user@lists.sourceforge.net 
Cc: 
Emne: Re: [Wicket-user] PageLink onClick, never gets called?


the markup is a submit button. not a link.

Or make the markup a link or make the PageLink a Button.

jhan



On 6/9/06, Nino Wael  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
wrote: 


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:
INPUT type=submit wicket:id=openword value=Aring;ben i 
word /

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 



winmail.dat___
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=detailaid=1500128group_id=119783atid=684975
  
 http://sourceforge.net/tracker/index.php?func=detailaid=1500128group_id=119783atid=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=detailaid=1500128group_id=119783atid=684975
  
 http://sourceforge.net/tracker/index.php?func=detailaid=1500128group_id=119783atid=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


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. Im 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.



Im 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=detailaid=1500128group_id=119783atid=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=detailaid=1500128group_id=119783atid=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 afEelco 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-03 Thread Nino Wael
Ok here it is then:)
 
http://sourceforge.net/tracker/index.php?func=detailaid=1500128group_id=119783atid=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


winmail.dat___
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-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, were 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] 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








<    1   2   3   >