Wicket tree

2009-01-12 Thread PSkarthic

Hi 
  I have constructed my tree but i cant get the clicked node.
The nodeLinkClicked() function is not working.
I used the nodeLinkClicked method in two ways

 1. exetending Tree class
 2. while creating the object new(){ nodeLinkClicked() };

In both i just put standard output statement but that doesn't get called.
-- 
View this message in context: 
http://www.nabble.com/Wicket-tree-tp21410500p21410500.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Help,How to download all files in one folder ?

2009-01-12 Thread wch2001


-- 
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411338p21411338.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Help,How to download all files in one folder ?

2009-01-12 Thread wch2001

Deal all,

I need to download all files in one folder(for example: c:/dw/adsmart), How
can I do ?

Thanks a lot,

Wu
-- 
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411355.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread PSkarthic

I am also a newbie but i will try 
could u be please more specific or elabrate

-- 
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411712.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Select model object when clicking on a row in a DataView

2009-01-12 Thread Gohan

Hi, 

I have a DataView using a custom Item that I create when the newItem method
is called. My question is, how do I add an onclick event handler to this
Item that allows me to select the model object for a particular row? Or
perhaps I can achieve this in some other way?

Thanks
Johan
-- 
View this message in context: 
http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21411736.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread wch2001

in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, cc.txt,

how can i download it ? if it possible that  when clicking button/link and
so on to download those 3 files?

thanks



PSkarthic wrote:
> 
> I am also a newbie but i will try 
> could u be please more specific or elabrate
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411775.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Piller Sébastien

Zip them on the fly, then download the zip.

wch2001 a écrit :

in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, cc.txt,

how can i download it ? if it possible that  when clicking button/link and
so on to download those 3 files?

thanks



PSkarthic wrote:
  
I am also a newbie but i will try 
could u be please more specific or elabrate






  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Vit Rozkovec
I would try to pack all the files to one archive and then download the 
archive.


Vitek

wch2001 wrote:

Deal all,

I need to download all files in one folder(for example: c:/dw/adsmart), How
can I do ?

Thanks a lot,

Wu
  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread wch2001


thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:
> 
> Zip them on the fly, then download the zip.
> 
> wch2001 a écrit :
>> in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, cc.txt,
>>
>> how can i download it ? if it possible that  when clicking button/link
>> and
>> so on to download those 3 files?
>>
>> thanks
>>
>>
>>
>> PSkarthic wrote:
>>   
>>> I am also a newbie but i will try 
>>> could u be please more specific or elabrate
>>>
>>>
>>> 
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411821.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Vit Rozkovec

Sorry, but: http://letmegooglethatforyou.com/?q=java+zip+files

Vitek

wch2001 wrote:

thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:
  

Zip them on the fly, then download the zip.

wch2001 a écrit :


in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, cc.txt,

how can i download it ? if it possible that  when clicking button/link
and
so on to download those 3 files?

thanks



PSkarthic wrote:
  
  
I am also a newbie but i will try 
could u be please more specific or elabrate





  
  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Piller Sébastien

Look at ZipOutputStream + google, you'll find lotz of sources.

wch2001 a écrit :

thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:
  

Zip them on the fly, then download the zip.

wch2001 a écrit :


in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, cc.txt,

how can i download it ? if it possible that  when clicking button/link
and
so on to download those 3 files?

thanks



PSkarthic wrote:
  
  
I am also a newbie but i will try 
could u be please more specific or elabrate





  
  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Michael Sparer

http://www.google.com/search?&q=java+zip  ;-)



wch2001 wrote:
> 
> 
> thanks , Pills.
> 
> How can  I zip it ?
> 
> thanks
> 
> 
> 
> Pills wrote:
>> 
>> Zip them on the fly, then download the zip.
>> 
>> wch2001 a écrit :
>>> in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, cc.txt,
>>>
>>> how can i download it ? if it possible that  when clicking button/link
>>> and
>>> so on to download those 3 files?
>>>
>>> thanks
>>>
>>>
>>>
>>> PSkarthic wrote:
>>>   
 I am also a newbie but i will try 
 could u be please more specific or elabrate


 
>>>
>>>   
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
>> 
> 
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411973.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Peter Ertl

how is this wicket?


Am 12.01.2009 um 11:36 schrieb Michael Sparer:



http://www.google.com/search?&q=java+zip  ;-)



wch2001 wrote:



thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:


Zip them on the fly, then download the zip.

wch2001 a écrit :
in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt,  
cc.txt,


how can i download it ? if it possible that  when clicking button/ 
link

and
so on to download those 3 files?

thanks



PSkarthic wrote:


I am also a newbie but i will try
could u be please more specific or elabrate









-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org









-
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411973.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Piller Sébastien
Zipping data has absolutely nothing to do with wicket, this is a 
separate concern, and this looks absolutely normal that nothing exists 
in wicket for such a feature.


Separation of concerns is very usual on today's days.

Peter Ertl a écrit :

how is this wicket?


Am 12.01.2009 um 11:36 schrieb Michael Sparer:



http://www.google.com/search?&q=java+zip  ;-)



wch2001 wrote:



thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:


Zip them on the fly, then download the zip.

wch2001 a écrit :
in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, 
cc.txt,


how can i download it ? if it possible that  when clicking 
button/link

and
so on to download those 3 files?

thanks



PSkarthic wrote:


I am also a newbie but i will try
could u be please more specific or elabrate









-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org









-
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411973.html 


Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Michael Sparer

didn't know that one - thanks Vitek. now I know the answer to 90% of the
questions I get asked everyday :-D


Vit Rozkovec wrote:
> 
> Sorry, but: http://letmegooglethatforyou.com/?q=java+zip+files
> 
> Vitek
> 
> wch2001 wrote:
>> thanks , Pills.
>>
>> How can  I zip it ?
>>
>> thanks
>>
>>
>>
>> Pills wrote:
>>   
>>> Zip them on the fly, then download the zip.
>>>
>>> wch2001 a écrit :
>>> 
 in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt,
 cc.txt,

 how can i download it ? if it possible that  when clicking button/link
 and
 so on to download those 3 files?

 thanks



 PSkarthic wrote:
   
   
> I am also a newbie but i will try 
> could u be please more specific or elabrate
>
>
> 
> 
   
   
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>> 
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21412353.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Why Named Wicket

2009-01-12 Thread PSkarthic

Hi to all
   Actually i am working with wicket for one month and suddenly
a thought came why it is named wicket.:working:

   So anybody know the reason why wicket is named so.




Thanks in advance 
Karthic
-- 
View this message in context: 
http://www.nabble.com/Why-Named-Wicket-tp21413514p21413514.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Thies Edeling

Now that's a funny and handy site ;)

Vit Rozkovec wrote:

Sorry, but: http://letmegooglethatforyou.com/?q=java+zip+files

Vitek

wch2001 wrote:

thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:
 

Zip them on the fly, then download the zip.

wch2001 a écrit :
   
in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, 
cc.txt,


how can i download it ? if it possible that  when clicking button/link
and
so on to download those 3 files?

thanks



PSkarthic wrote:
   
I am also a newbie but i will try could u be please more specific 
or elabrate






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why Named Wicket

2009-01-12 Thread Michael Sparer

same questions, 3 months later ;-) have a look at:
http://www.nabble.com/Why-is-Wicket-called-Wicket--to20106097.html#a20106097

or at
http://letmegooglethatforyou.com/?q=why+is+wicket+called+wicket

but I'd prefer the first link ;-)



PSkarthic wrote:
> 
> Hi to all
>Actually i am working with wicket for one month and
> suddenly a thought came why it is named wicket.:working:
> 
>So anybody know the reason why wicket is named so.
> 
> 
> 
> 
> Thanks in advance 
> Karthic
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Why-Named-Wicket-tp21413514p21414031.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why Named Wicket

2009-01-12 Thread Steve Flasby
Ah, and there was me hoping it was Hitchhikers Guide to the Galaxy 
related. Mmm, although the Wicket Gate was supposed to keep the bad guys 
in, if I remember correctly, Wicket for me is more like '42'.


Steve


Michael Sparer wrote:

same questions, 3 months later ;-) have a look at:
http://www.nabble.com/Why-is-Wicket-called-Wicket--to20106097.html#a20106097

or at
http://letmegooglethatforyou.com/?q=why+is+wicket+called+wicket

but I'd prefer the first link ;-)



PSkarthic wrote:

Hi to all
   Actually i am working with wicket for one month and
suddenly a thought came why it is named wicket.:working:

   So anybody know the reason why wicket is named so.




Thanks in advance 
Karthic





-
Michael Sparer
http://talk-on-tech.blogspot.com


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help,How to download all files in one folder ?

2009-01-12 Thread Vit Rozkovec

You're welcome.

Michael Sparer wrote:

didn't know that one - thanks Vitek. now I know the answer to 90% of the
questions I get asked everyday :-D


Vit Rozkovec wrote:
  

Sorry, but: http://letmegooglethatforyou.com/?q=java+zip+files

Vitek

wch2001 wrote:


thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:
  
  

Zip them on the fly, then download the zip.

wch2001 a écrit :



in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt,
cc.txt,

how can i download it ? if it possible that  when clicking button/link
and
so on to download those 3 files?

thanks



PSkarthic wrote:
  
  
  
I am also a newbie but i will try 
could u be please more specific or elabrate






  
  
  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  
  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org







-
Michael Sparer
http://talk-on-tech.blogspot.com
  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why Named Wicket

2009-01-12 Thread PSkarthic

Thanks for your reply 

  So which meaning to take either wicket is a cricket term or
star wars they arent clearly said.

In one books(ebook) i read that wicket is like cricket wicket where bowler
aims at that only where as here (apache wicket) we concentrate on classes
rather then xml,scripts etc..


Which one should i take 



Thanks 
karthic
-- 
View this message in context: 
http://www.nabble.com/Why-Named-Wicket-tp21413514p21414370.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Accessing username from page problem

2009-01-12 Thread itayh

Hi,

I have my custom session class that extends AuthenticatedWebSession and I
implement the authenticate method. 
In order to get the user name from anywhere in the code I save the user name
in the authenticate method to local member and then I can use it anywhere.
The problem is if I restart my tomcat. In this case the authenticate method
is not called (since the cookie is valid in the browser) so my user name
field is empty.

Am I doing something wrong?

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Accessing-username-from-page-problem-tp21415129p21415129.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FileUpload broken in Firefox 3.0.5

2009-01-12 Thread Gohan

It seems like many Ajax features doesn't seem to work in Firefox 3.0.5 while
they work in Internet Explorer for example. This is quite a big annoyance
more me since I cannot use an Ajax features in my code.
-- 
View this message in context: 
http://www.nabble.com/FileUpload-broken-in-Firefox-3.0.5-tp21372466p21416052.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Intercept AutoCompleteTextField choice...

2009-01-12 Thread Luca Provenzani
Hi to all!

I've an AutoCompleteTextField and it's all ok. But how can i intercept the
final choice of the user?

I explain better. For example, the choices are "Medium","Monster" and
"Moon". The user types "m" and the AutoCompleteTextField print the three
choices.
The user clicks on "Monster". How can i know what he choosed?

Thank you
 Luca

PS Excuse me for the terrible english!


sessionsize of requestlogger

2009-01-12 Thread carloc

Hi Everyone,

RequestLogger  -
time=103,event=Interface[target:AjaxPagingNavigationLink(userListForm:userGroupContainer:userGroupCheckGroup:ajaxPagingNavigation:navigation:9:pageLink),
page: com.ccti.base.web.usergroup.VedUserGroupPage(2), interface:
IBehaviorListener.onRequest],response=PageRequest[com.ccti.base.web.usergroup.VedUserGroupPage(2)],sessionid=kdrq2wp0eaea,sessionsize=212417,sessionstart=Mon
Jan 12 23:24:44 CST
2009,requests=14,totaltime=7024,activerequests=1,maxmem=66M,total=18M,used=14M  

sessionsize=212417

I'm particularly interested of the sessionsize that is being logged by the
requestlogger.
I was wondering what size does it contain?

In One of My List Pages,
It increases by about 72000 when I put in an ajaxpagingnavigator.

I was just wondering what things are put into the session?
One thing that bothers me though is I tried using a LoadableDetachableModel
in my dataview.
It returned the almost the same sessionsize for a dataview in which I used a
CompoundDetachableMOdel.

I tried viewing the page map using eclipse's debug, I can see that it keeps
a reference to the previous page, so does it mean that Wicket always keeps
the last page available in the HttpSession? or does it keep the current page
in the session.

If I try exploring the session, I can see that the loadableDetachableModels
model object cannot be viewed.
And the compoundpropertymodel's attributes can be viewed.

As far as I can see, the wicket components consume significant session size
. Please correct me if I am wrong.


So question is,

What Page Does Wicket Store in its HttpSession? How Many Pages Does It
Store?
What consumes significant session size in wicket?
Is it bad to keep a reference to the previous pages in instance variables of
new pages?

Carlo
-- 
View this message in context: 
http://www.nabble.com/sessionsize-of-requestlogger-tp21416562p21416562.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FileUpload broken in Firefox 3.0.5

2009-01-12 Thread Steve Swinsburg
Interesting. I found my issue was related to attaching a Behaviour to  
an onblur event. It was clearing the FileUpload field for some reason.
I've also noticed that FileUpload getContentType() doesn't always  
return properly when a file has been uploaded from IE (I've seen this  
issue with normal Java Commons FileUpload as well though)


What are the other issues you are experiencing?


cheers,
Steve







On 12 Jan 2009, at 15:00, Gohan wrote:



It seems like many Ajax features doesn't seem to work in Firefox  
3.0.5 while
they work in Internet Explorer for example. This is quite a big  
annoyance

more me since I cannot use an Ajax features in my code.
--
View this message in context: 
http://www.nabble.com/FileUpload-broken-in-Firefox-3.0.5-tp21372466p21416052.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





smime.p7s
Description: S/MIME cryptographic signature


Re: sessionsize of requestlogger

2009-01-12 Thread carloc

As an added observation, sessionsize of deployment mode is much lower than in
development mode.

Is there any reason to this?


carloc wrote:
> 
> Hi Everyone,
> 
> RequestLogger  -
> time=103,event=Interface[target:AjaxPagingNavigationLink(userListForm:userGroupContainer:userGroupCheckGroup:ajaxPagingNavigation:navigation:9:pageLink),
> page: com.ccti.base.web.usergroup.VedUserGroupPage(2), interface:
> IBehaviorListener.onRequest],response=PageRequest[com.ccti.base.web.usergroup.VedUserGroupPage(2)],sessionid=kdrq2wp0eaea,sessionsize=212417,sessionstart=Mon
> Jan 12 23:24:44 CST
> 2009,requests=14,totaltime=7024,activerequests=1,maxmem=66M,total=18M,used=14M
>   
> 
> sessionsize=212417
> 
> I'm particularly interested of the sessionsize that is being logged by the
> requestlogger.
> I was wondering what size does it contain?
> 
> In One of My List Pages,
> It increases by about 72000 when I put in an ajaxpagingnavigator.
> 
> I was just wondering what things are put into the session?
> One thing that bothers me though is I tried using a
> LoadableDetachableModel in my dataview.
> It returned the almost the same sessionsize for a dataview in which I used
> a CompoundDetachableMOdel.
> 
> I tried viewing the page map using eclipse's debug, I can see that it
> keeps a reference to the previous page, so does it mean that Wicket always
> keeps the last page available in the HttpSession? or does it keep the
> current page in the session.
> 
> If I try exploring the session, I can see that the
> loadableDetachableModels model object cannot be viewed.
> And the compoundpropertymodel's attributes can be viewed.
> 
> As far as I can see, the wicket components consume significant session
> size . Please correct me if I am wrong.
> 
> 
> So question is,
> 
> What Page Does Wicket Store in its HttpSession? How Many Pages Does It
> Store?
> What consumes significant session size in wicket?
> Is it bad to keep a reference to the previous pages in instance variables
> of new pages?
> 
> Carlo
> 

-- 
View this message in context: 
http://www.nabble.com/sessionsize-of-requestlogger-tp21416562p21418393.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Validation and eventhandlig order of form fields

2009-01-12 Thread Kai Doehler



Re: Validation and eventhandlig order of form fields

2009-01-12 Thread Kai Doehler



Re: sessionsize of requestlogger

2009-01-12 Thread carloc

Another observation that I noted is that components contain a reference to
their raw markup.
The markup which I used to code it. It is actually stored in the
httpsession.

Is This Correct?
For example, I see this in my debugger.





var $sxi = jQuery.noConflict();
$sxi(function() {

jQuery('#list1a').accordion({autoheight: false});
})



  












carloc wrote:
> 
> Hi Everyone,
> 
> RequestLogger  -
> time=103,event=Interface[target:AjaxPagingNavigationLink(userListForm:userGroupContainer:userGroupCheckGroup:ajaxPagingNavigation:navigation:9:pageLink),
> page: com.ccti.base.web.usergroup.VedUserGroupPage(2), interface:
> IBehaviorListener.onRequest],response=PageRequest[com.ccti.base.web.usergroup.VedUserGroupPage(2)],sessionid=kdrq2wp0eaea,sessionsize=212417,sessionstart=Mon
> Jan 12 23:24:44 CST
> 2009,requests=14,totaltime=7024,activerequests=1,maxmem=66M,total=18M,used=14M
>   
> 
> sessionsize=212417
> 
> I'm particularly interested of the sessionsize that is being logged by the
> requestlogger.
> I was wondering what size does it contain?
> 
> In One of My List Pages,
> It increases by about 72000 when I put in an ajaxpagingnavigator.
> 
> I was just wondering what things are put into the session?
> One thing that bothers me though is I tried using a
> LoadableDetachableModel in my dataview.
> It returned the almost the same sessionsize for a dataview in which I used
> a CompoundDetachableMOdel.
> 
> I tried viewing the page map using eclipse's debug, I can see that it
> keeps a reference to the previous page, so does it mean that Wicket always
> keeps the last page available in the HttpSession? or does it keep the
> current page in the session.
> 
> If I try exploring the session, I can see that the
> loadableDetachableModels model object cannot be viewed.
> And the compoundpropertymodel's attributes can be viewed.
> 
> As far as I can see, the wicket components consume significant session
> size . Please correct me if I am wrong.
> 
> 
> So question is,
> 
> What Page Does Wicket Store in its HttpSession? How Many Pages Does It
> Store?
> What consumes significant session size in wicket?
> Is it bad to keep a reference to the previous pages in instance variables
> of new pages?
> 
> Carlo
> 

-- 
View this message in context: 
http://www.nabble.com/sessionsize-of-requestlogger-tp21416562p21420242.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Intercept AutoCompleteTextField choice...

2009-01-12 Thread noon

I followed the example introduced in Wicket wiki and it solved exaclty my
problem.

http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html



Luca Provenzani wrote:
> 
> Hi to all!
> 
> I've an AutoCompleteTextField and it's all ok. But how can i intercept the
> final choice of the user?
> 
> I explain better. For example, the choices are "Medium","Monster" and
> "Moon". The user types "m" and the AutoCompleteTextField print the three
> choices.
> The user clicks on "Monster". How can i know what he choosed?
> 
> Thank you
>  Luca
> 
> PS Excuse me for the terrible english!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Intercept-AutoCompleteTextField-choice...-tp21416801p21423950.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



PrototipBehaviour problems

2009-01-12 Thread Ryan O'Hara

I'm trying to use PrototipBehaviour.  Below is my code:

Link detailsLink = new Link("Sample", new Model(sample));
Label label = new Label("sampleid", sample);
detailsLink.add(label);
PrototipBehaviour pb = new PrototipBehaviour("hallelujah!!");
label.add(pb);
add(detailsLink);

And below is the source that is produced:

]]>*/




]]>*/

]]>*/

...

I would expect "hallelujah!!" to pop up during onmouseover of the  
label, but I'm not seeing it.  Any help would be greatly  
appreciated.  I'm using wicketstuff-minis-1.4.0-SNAPSHOT and Wicket  
1.3.3.


Thanks,
Ryan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: PrototipBehaviour problems

2009-01-12 Thread Vit Rozkovec

You must include its javascript libraries:
add(ScriptaculousAjaxBehavior.newJavascriptBindingBehavior());

you need to have a scriptaculous dependency in your project's pom.xml

Vitek

Ryan O'Hara wrote:

I'm trying to use PrototipBehaviour.  Below is my code:

Link detailsLink = new Link("Sample", new Model(sample));
Label label = new Label("sampleid", sample);
detailsLink.add(label);
PrototipBehaviour pb = new PrototipBehaviour("hallelujah!!");
label.add(pb);
add(detailsLink);

And below is the source that is produced:

]]>*/

href="../../../../../../resources/org.wicketstuff.minis.prototipbehaviour.PrototipBehaviour/prototip.css" 
media="screen" />
src="../../../../../../resources/org.wicketstuff.minis.prototipbehaviour.PrototipBehaviour/prototip-min.js"> 


]]>*/

]]>*/

...

I would expect "hallelujah!!" to pop up during onmouseover of the 
label, but I'm not seeing it.  Any help would be greatly appreciated.  
I'm using wicketstuff-minis-1.4.0-SNAPSHOT and Wicket 1.3.3.


Thanks,
Ryan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Trying to update a tabbed panel

I have a tabbed panel that displays a person's information. Outside that
panel are several links, which can be clicked to change the person whose
information is being displayed in the tabbed panel.

 

My problem is that it only works the first time the user clicks a link.
Any subsequent clicks do nothing-the panel continues to show the
original person's information. Here's my code. Any suggestions what I'm
doing wrong?

 

IndividualViewArea viewArea = new WebMarkupContainer("viewArea") {

  List tabs = new ArrayList();

  tabs.add(new AbstractTab(new Model("Information")) {

@Override

public Panel getPanel(String panelId) {

  return new Panel(panelId);

}

  });

  

  AjaxTabbedPanel tabbedPanel = new AjaxTabbedPanel("individualTabs",
tabs);

  add(tabbedPanel);

};

 

AjaxFallbackLink personInfoLink1 = new
AjaxFallbackLink("personInfoLink") {

  @Override

  public void onClick(AjaxRequestTarget target) {

viewArea.tabs.set(0, new AbstractTab(new Model("Information")) {

  @Override

  public Panel getPanel(String panelId) {

return new IndividualInformationPanel(panelId,
getPerson("some_id"););

  }

});

target.addComponent(viewArea);  

  }

};

 

AjaxFallbackLink personInfoLink2... // Just like personInfoLink1 above,
but with a different person

 

AjaxFallbackLink personInfoLink3... // etc.

 



Re: Select model object when clicking on a row in a DataView

class myitem extends item implements IOnClickHandler {
   protected oncomponenttag(tag) {
   tag.put("onclick").urlfor(IOnClickHandler.INTERFACE);
  }

  public void onclick() {
   whatever();
  }
}

-igor

On Mon, Jan 12, 2009 at 2:18 AM, Gohan  wrote:
>
> Hi,
>
> I have a DataView using a custom Item that I create when the newItem method
> is called. My question is, how do I add an onclick event handler to this
> Item that allows me to select the model object for a particular row? Or
> perhaps I can achieve this in some other way?
>
> Thanks
> Johan
> --
> View this message in context: 
> http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21411736.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Newbie IMG tag pointing context root issue


Interesting.

Peter, I tried what you suggested below but was still having the same 
issue ... that darn ../ prefix in being added to the src value for my 
image.  But I did figure it out ...


Because I am in the process of moving a small JSP-based webapp to 
Wicket.   I realized that while I had copied the markup of the index.jsp 
file into Index.html in the classpath I left the original index.jsp file 
at the root of the application context.  When I renamed the index.jsp 
file to xindex.jsp the annoying ../ prefix no longer appeared.  This is 
even stranger because my web.xml file does not contain a 
welcome-file-list element.


Does this sound like bug to anyone else?

Steve


Peter Thomas wrote:

On Mon, Jan 12, 2009 at 8:15 AM, Steve Viens  wrote:

  

I'm a newbie too  but I'm having the same problem without resolution
(Wicket 1.3.5).  I'd like to simply include the image from the context root.
 After reading the archive below...

http://www.nabble.com/Newbie-IMG-question-td20501647.html

...I believe that there isn't supposed to be anthing for me to do.  If I
want to include the image from the web application's context root I
shouldn't have to do anything. Anyone else had this happen to them?  Am I
missing something obvious?




For e.g. when you have a mix of pages with bookmarkable URLs - you can't
predict relative paths.  I think best practice is to use ContextImage.
Example usage:

HTML: 
Java: add(new ContextImage("logo", new Model("images/logo.gif")));


  

The Index.html page looks like this



HelloWicketWorld





Message goes here




The rendered Index.html page looks like this (notice the ../ prefix to the
image and css files)



HelloWicketWorld





Wicket, Wicket World!




The Index.java default constructor looks like this.

public Index() {
 add(new Label("message", "Wicket, Wicket World!"));
}


And the web.xml filter mapping looks like this.


 DrumbeatApplication
 org.apache.wicket.protocol.http.WicketFilter
 
   applicationClassName
  net.viens.drumbeat.markup.DrumbeatApplication
 
 
   configuration
   development
 



 DrumbeatApplication
 /*


Steve


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



thanks ur help,withe the zipoutputstream,


 with http://letmegooglethatforyou.com/?q=java+zip+files, I can get the
zipoutputstream, 

How can i export it ?

Need to use the following AbstractResourceStreamWriter , right ?

how can i override write method?

Sorry to ask so stupid question, thanks for help.

AbstractResourceStreamWriter writer = new
AbstractResourceStreamWriter() {

@Override
public void write(OutputStream arg0) {
throw new UnsupportedOperationException("Not
supported yet.");
}

@Override
public String getContentType() {
return "application/zip";
}
};
RequestCycle.get().setRequestTarget(new
ResourceStreamRequestTarget(writer,"test.zip")); 





Pills wrote:
> 
> Zipping data has absolutely nothing to do with wicket, this is a 
> separate concern, and this looks absolutely normal that nothing exists 
> in wicket for such a feature.
> 
> Separation of concerns is very usual on today's days.
> 
> Peter Ertl a écrit :
>> how is this wicket?
>>
>>
>> Am 12.01.2009 um 11:36 schrieb Michael Sparer:
>>
>>>
>>> http://www.google.com/search?&q=java+zip  ;-)
>>>
>>>
>>>
>>> wch2001 wrote:


 thanks , Pills.

 How can  I zip it ?

 thanks



 Pills wrote:
>
> Zip them on the fly, then download the zip.
>
> wch2001 a écrit :
>> in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, 
>> cc.txt,
>>
>> how can i download it ? if it possible that  when clicking 
>> button/link
>> and
>> so on to download those 3 files?
>>
>> thanks
>>
>>
>>
>> PSkarthic wrote:
>>
>>> I am also a newbie but i will try
>>> could u be please more specific or elabrate
>>>
>>>
>>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>


>>>
>>>
>>> -
>>> Michael Sparer
>>> http://talk-on-tech.blogspot.com
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411973.html
>>>  
>>>
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21428377.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Update number of login users in all user's page when new user login



Hi,

i wanted to have the number of login users to be shown on all user's screen.
This means, once a new user login, the number of login users shows on other
active
user's screen will be updated.


Let say there are 2 sessions is currently log in into my application.


session.getSessionId()  == [bm1pgdr1y9hf]
session.getSessionId()  == [198y9m0etdvpj]


When the first user  [bm1pgdr1y9hf] login, i want to update the page to show
'Logged on users:1'
in [bm1pgdr1y9hf] 's homepage.

When the second user   [198y9m0etdvpj] login, i want to update the page to
show 'Logged on users:2'
in both [bm1pgdr1y9hf]  and [198y9m0etdvpj] 's homepage.

How can I update [bm1pgdr1y9hf] 's homepage after the second user 
[198y9m0etdvpj]  login?



Thanks alot again for your replies

 

-- 
View this message in context: 
http://www.nabble.com/Update-number-of-login-users-in-all-user%27s-page-when-new-user-login-tp21428448p21428448.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



London Wicket Event - 4th February @ Google


Our next London Wicket Event will be on the evening of Wednesday, February
4th, at Google. 
This time we have presentations lined-up from three experienced Java/Wicket
developers who have been experimenting with Scala and Wicket, just for fun,
and, in some cases, on commercial development projects (yes, there are
already Wicket applications built using Scala out there).
Al's presentation is called "Abstraction" - you know what to expect!
Al and I will also run a more concrete, general Wicket Q&A to wrap things up
as usual.

We'll be getting in some hot Pizza for around 18:15 and then:
*  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/Introduction
*  http://www.stuq.nl Daan van Etten : Basic Introduction to Scala With
Wicket
* Dean Phersson-Chapman: Experiences Converting an Existing Wicket
Application To Scala
*  http://www.footprint.de Jan Kriesten : Real World Scala and Wicket
*  http://herebebeasties.com/ Al Maw : ABSTRACTION!
* Al Maw & Cemal Bayramoglu: General Wicket Q&A 
If you're not in a rush to get away join us for the customary visit to a
local pub straight after the Q&A.

We're lucky to attract a very good crowd and they say really nice things
about our events, so if you've never been, you'd most likely enjoy the
experience.

Full details and registration are at  
http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place . Register early
and don't forget to confirm (or cancel) your registration using the link in
the automated email. 

We'd like to thank Google for generously continuing to host our events.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 
-- 
View this message in context: 
http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21428590.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket tree


Is There any one to solve this 

Hi 
  I have constructed my tree but i cant get the clicked node.
The nodeLinkClicked() function is not working.
I used the nodeLinkClicked method in two ways

 1. exetending Tree class
 2. while creating the object new(){ nodeLinkClicked() };

In both i just put standard output statement but that doesn't get called.


-- 
View this message in context: 
http://www.nabble.com/Wicket-tree-tp21410500p21428684.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Newbie IMG tag pointing context root issue

its a tomcat bug afaik. search this list for tomcat and index.jsp.

-igor

On Mon, Jan 12, 2009 at 6:28 PM, Steve Viens  wrote:
> Interesting.
>
> Peter, I tried what you suggested below but was still having the same issue
> ... that darn ../ prefix in being added to the src value for my image.  But
> I did figure it out ...
>
> Because I am in the process of moving a small JSP-based webapp to Wicket.
> I realized that while I had copied the markup of the index.jsp file into
> Index.html in the classpath I left the original index.jsp file at the root
> of the application context.  When I renamed the index.jsp file to xindex.jsp
> the annoying ../ prefix no longer appeared.  This is even stranger because
> my web.xml file does not contain a welcome-file-list element.
>
> Does this sound like bug to anyone else?
>
> Steve
>
>
> Peter Thomas wrote:
>>
>> On Mon, Jan 12, 2009 at 8:15 AM, Steve Viens  wrote:
>>
>>
>>>
>>> I'm a newbie too  but I'm having the same problem without resolution
>>> (Wicket 1.3.5).  I'd like to simply include the image from the context
>>> root.
>>>  After reading the archive below...
>>>
>>> http://www.nabble.com/Newbie-IMG-question-td20501647.html
>>>
>>> ...I believe that there isn't supposed to be anthing for me to do.  If I
>>> want to include the image from the web application's context root I
>>> shouldn't have to do anything. Anyone else had this happen to them?  Am I
>>> missing something obvious?
>>>
>>>
>>
>> For e.g. when you have a mix of pages with bookmarkable URLs - you can't
>> predict relative paths.  I think best practice is to use ContextImage.
>> Example usage:
>>
>> HTML: 
>> Java: add(new ContextImage("logo", new Model("images/logo.gif")));
>>
>>
>>
>>>
>>> The Index.html page looks like this
>>>
>>> 
>>> 
>>> HelloWicketWorld
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Message goes here
>>> 
>>> 
>>>
>>>
>>> The rendered Index.html page looks like this (notice the ../ prefix to
>>> the
>>> image and css files)
>>>
>>> 
>>> 
>>> HelloWicketWorld
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Wicket, Wicket World!
>>> 
>>> 
>>>
>>>
>>> The Index.java default constructor looks like this.
>>>
>>> public Index() {
>>>  add(new Label("message", "Wicket, Wicket World!"));
>>> }
>>>
>>>
>>> And the web.xml filter mapping looks like this.
>>>
>>> 
>>>  DrumbeatApplication
>>>
>>>  org.apache.wicket.protocol.http.WicketFilter
>>>  
>>>   applicationClassName
>>>  net.viens.drumbeat.markup.DrumbeatApplication
>>>  
>>>  
>>>   configuration
>>>   development
>>>  
>>> 
>>>
>>> 
>>>  DrumbeatApplication
>>>  /*
>>> 
>>>
>>> Steve
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Update number of login users in all user's page when new user login

see HttpSessionListener

-igor

On Mon, Jan 12, 2009 at 6:41 PM, Eunice  wrote:
>
>
> Hi,
>
> i wanted to have the number of login users to be shown on all user's screen.
> This means, once a new user login, the number of login users shows on other
> active
> user's screen will be updated.
>
>
> Let say there are 2 sessions is currently log in into my application.
>
>
> session.getSessionId()  == [bm1pgdr1y9hf]
> session.getSessionId()  == [198y9m0etdvpj]
>
>
> When the first user  [bm1pgdr1y9hf] login, i want to update the page to show
> 'Logged on users:1'
> in [bm1pgdr1y9hf] 's homepage.
>
> When the second user   [198y9m0etdvpj] login, i want to update the page to
> show 'Logged on users:2'
> in both [bm1pgdr1y9hf]  and [198y9m0etdvpj] 's homepage.
>
> How can I update [bm1pgdr1y9hf] 's homepage after the second user
> [198y9m0etdvpj]  login?
>
>
>
> Thanks alot again for your replies
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/Update-number-of-login-users-in-all-user%27s-page-when-new-user-login-tp21428448p21428448.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: sessionsize of requestlogger

Session size really depends on the types of models you use.  For instance,
if you have a list of items in some sort of repeating view, perhaps your
model that loads the list is loadable / detachable (good), but you might do
something like "new Model(rowItem)" around each item in, for instance, your
IDataProvider, which then holds each item indefinitely - storing each item
in session (bad).

If you have one page or component that drastically increases session size,
you should use a memory profiler to see what your most prolific objects
are.  You might be surprised at what you're still holding on to.

On Mon, Jan 12, 2009 at 9:43 AM, carloc  wrote:

>
> Hi Everyone,
>
> RequestLogger  -
>
> time=103,event=Interface[target:AjaxPagingNavigationLink(userListForm:userGroupContainer:userGroupCheckGroup:ajaxPagingNavigation:navigation:9:pageLink),
> page: com.ccti.base.web.usergroup.VedUserGroupPage(2), interface:
>
> IBehaviorListener.onRequest],response=PageRequest[com.ccti.base.web.usergroup.VedUserGroupPage(2)],sessionid=kdrq2wp0eaea,sessionsize=212417,sessionstart=Mon
> Jan 12 23:24:44 CST
>
> 2009,requests=14,totaltime=7024,activerequests=1,maxmem=66M,total=18M,used=14M
>
> sessionsize=212417
>
> I'm particularly interested of the sessionsize that is being logged by the
> requestlogger.
> I was wondering what size does it contain?
>
> In One of My List Pages,
> It increases by about 72000 when I put in an ajaxpagingnavigator.
>
> I was just wondering what things are put into the session?
> One thing that bothers me though is I tried using a LoadableDetachableModel
> in my dataview.
> It returned the almost the same sessionsize for a dataview in which I used
> a
> CompoundDetachableMOdel.
>
> I tried viewing the page map using eclipse's debug, I can see that it keeps
> a reference to the previous page, so does it mean that Wicket always keeps
> the last page available in the HttpSession? or does it keep the current
> page
> in the session.
>
> If I try exploring the session, I can see that the loadableDetachableModels
> model object cannot be viewed.
> And the compoundpropertymodel's attributes can be viewed.
>
> As far as I can see, the wicket components consume significant session size
> . Please correct me if I am wrong.
>
>
> So question is,
>
> What Page Does Wicket Store in its HttpSession? How Many Pages Does It
> Store?
> What consumes significant session size in wicket?
> Is it bad to keep a reference to the previous pages in instance variables
> of
> new pages?
>
> Carlo
> --
> View this message in context:
> http://www.nabble.com/sessionsize-of-requestlogger-tp21416562p21416562.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Update number of login users in all user's page when new user login


Ok..Thanks for your reply..



igor.vaynberg wrote:
> 
> see HttpSessionListener
> 
> -igor
> 
> On Mon, Jan 12, 2009 at 6:41 PM, Eunice  wrote:
>>
>>
>> Hi,
>>
>> i wanted to have the number of login users to be shown on all user's
>> screen.
>> This means, once a new user login, the number of login users shows on
>> other
>> active
>> user's screen will be updated.
>>
>>
>> Let say there are 2 sessions is currently log in into my application.
>>
>>
>> session.getSessionId()  == [bm1pgdr1y9hf]
>> session.getSessionId()  == [198y9m0etdvpj]
>>
>>
>> When the first user  [bm1pgdr1y9hf] login, i want to update the page to
>> show
>> 'Logged on users:1'
>> in [bm1pgdr1y9hf] 's homepage.
>>
>> When the second user   [198y9m0etdvpj] login, i want to update the page
>> to
>> show 'Logged on users:2'
>> in both [bm1pgdr1y9hf]  and [198y9m0etdvpj] 's homepage.
>>
>> How can I update [bm1pgdr1y9hf] 's homepage after the second user
>> [198y9m0etdvpj]  login?
>>
>>
>>
>> Thanks alot again for your replies
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Update-number-of-login-users-in-all-user%27s-page-when-new-user-login-tp21428448p21428448.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Update-number-of-login-users-in-all-user%27s-page-when-new-user-login-tp21428448p21429864.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Update number of login users in all user's page when new user login

How does this perform in a clustered environment?

The specification says: "A servlet container is not required to
propagate HttpSessionEvents to different JVMs"

**
Martin

2009/1/13 Eunice :
>
> Ok..Thanks for your reply..
>
>
>
> igor.vaynberg wrote:
>>
>> see HttpSessionListener
>>
>> -igor
>>
>> On Mon, Jan 12, 2009 at 6:41 PM, Eunice  wrote:
>>>
>>>
>>> Hi,
>>>
>>> i wanted to have the number of login users to be shown on all user's
>>> screen.
>>> This means, once a new user login, the number of login users shows on
>>> other
>>> active
>>> user's screen will be updated.
>>>
>>>
>>> Let say there are 2 sessions is currently log in into my application.
>>>
>>>
>>> session.getSessionId()  == [bm1pgdr1y9hf]
>>> session.getSessionId()  == [198y9m0etdvpj]
>>>
>>>
>>> When the first user  [bm1pgdr1y9hf] login, i want to update the page to
>>> show
>>> 'Logged on users:1'
>>> in [bm1pgdr1y9hf] 's homepage.
>>>
>>> When the second user   [198y9m0etdvpj] login, i want to update the page
>>> to
>>> show 'Logged on users:2'
>>> in both [bm1pgdr1y9hf]  and [198y9m0etdvpj] 's homepage.
>>>
>>> How can I update [bm1pgdr1y9hf] 's homepage after the second user
>>> [198y9m0etdvpj]  login?
>>>
>>>
>>>
>>> Thanks alot again for your replies
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Update-number-of-login-users-in-all-user%27s-page-when-new-user-login-tp21428448p21428448.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Update-number-of-login-users-in-all-user%27s-page-when-new-user-login-tp21428448p21429864.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to handle click event on tree


 I am currently using wicket tree, the tree is constructed and working well
but i can't get the click event.

For example i want to get the clicked node to display.

I tried extending tree and overriding the nodeLinkClicked, but that is not
fired when i clicked.

What to do anyone knows about this please make your suggestion


Thanks in advance 
Karthic
-- 
View this message in context: 
http://www.nabble.com/How-to-handle-click-event-on-tree-tp21430022p21430022.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Select model object when clicking on a row in a DataView


Thanks for your answer but I cannot seem to find the IOnClickHandler
interface. I'm using Wicket 1.3.5. 
I've tried using:

item.add(new AjaxEventBehavior("onclick") {
private static final long 
serialVersionUID = 3710904016938478920L;

@Override
protected void 
onEvent(AjaxRequestTarget target) {
System.out.println("Clicked!");
selected = (MyDomainObject) 
getParent().getModelObject();
}
});

but it doesn't seem to work. In Internet Explorer "Clicked!" is printed but
getParent().getModelObject() always returns null. In Firefox 3.0.5 nothing
happens at all.

/Johan


igor.vaynberg wrote:
> 
> class myitem extends item implements IOnClickHandler {
>protected oncomponenttag(tag) {
>tag.put("onclick").urlfor(IOnClickHandler.INTERFACE);
>   }
> 
>   public void onclick() {
>whatever();
>   }
> }
> 
> -igor
> 
> On Mon, Jan 12, 2009 at 2:18 AM, Gohan  wrote:
>>
>> Hi,
>>
>> I have a DataView using a custom Item that I create when the newItem
>> method
>> is called. My question is, how do I add an onclick event handler to this
>> Item that allows me to select the model object for a particular row? Or
>> perhaps I can achieve this in some other way?
>>
>> Thanks
>> Johan
>> --
>> View this message in context:
>> http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21411736.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Select-model-object-when-clicking-on-a-row-in-a-DataView-tp21411736p21430291.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket tree


Hi,

a bit more code would help getting a good answer.

You could overwrite the 
DefaultAbstractTree.onNodeLinkClicked(AjaxRequestTarget target, TreeNode 
node) method. Why this should not work - i only can hit the air.
Another way is to call the 
AbstractTree.getTreeState()..isNodeSelected(pNode) or 
getSelectedNodes(). But this will not give you the clicked but the 
selected nodes.


PS: Based on Wicket 1.3.5

HTH (at least a bit)

Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to handle click event on tree


Hi Karthic,

check the "Wicket tree" thread please.

Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket tree


Thank you  for your reply.

 So i have to extend the DefaultAbstractTree and override the 
onNodeLinkClicked is that right?
   I am trying that.

Newgro wrote:
> 
> Hi,
> 
> a bit more code would help getting a good answer.
> 
> You could overwrite the 
> DefaultAbstractTree.onNodeLinkClicked(AjaxRequestTarget target, TreeNode 
> node) method. Why this should not work - i only can hit the air.
> Another way is to call the 
> AbstractTree.getTreeState()..isNodeSelected(pNode) or 
> getSelectedNodes(). But this will not give you the clicked but the 
> selected nodes.
> 
> PS: Based on Wicket 1.3.5
> 
> HTH (at least a bit)
> 
> Per
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-tree-tp21410500p21430564.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket tree


AFAIK you can use Tree. It's extending already the DefaultAbstractTree.
Cheers
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: thanks ur help,withe the zipoutputstream,


just replace

   throw new  
UnsupportedOperationException("Not supported yet.");


with your own code :-)


Am 13.01.2009 um 03:32 schrieb wch2001:



with http://letmegooglethatforyou.com/?q=java+zip+files, I can get the
zipoutputstream,

How can i export it ?

Need to use the following AbstractResourceStreamWriter , right ?

how can i override write method?

Sorry to ask so stupid question, thanks for help.

   AbstractResourceStreamWriter writer = new
AbstractResourceStreamWriter() {

   @Override
   public void write(OutputStream arg0) {
   throw new  
UnsupportedOperationException("Not

supported yet.");
   }

   @Override
   public String getContentType() {
   return "application/zip";
   }
   };
   RequestCycle.get().setRequestTarget(new
ResourceStreamRequestTarget(writer,"test.zip"));





Pills wrote:


Zipping data has absolutely nothing to do with wicket, this is a
separate concern, and this looks absolutely normal that nothing  
exists

in wicket for such a feature.

Separation of concerns is very usual on today's days.

Peter Ertl a écrit :

how is this wicket?


Am 12.01.2009 um 11:36 schrieb Michael Sparer:



http://www.google.com/search?&q=java+zip  ;-)



wch2001 wrote:



thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:


Zip them on the fly, then download the zip.

wch2001 a écrit :

in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt,
cc.txt,

how can i download it ? if it possible that  when clicking
button/link
and
so on to download those 3 files?

thanks



PSkarthic wrote:


I am also a newbie but i will try
could u be please more specific or elabrate









-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org









-
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context:
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411973.html

Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





--
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21428377.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why Named Wicket

2009/1/12 Michael Sparer 

>
> same questions, 3 months later ;-) have a look at:
>
> http://www.nabble.com/Why-is-Wicket-called-Wicket--to20106097.html#a20106097
>
> or at
> http://letmegooglethatforyou.com/?q=why+is+wicket+called+wicket


ROTFL , did'nt know that site..



>
>
> but I'd prefer the first link ;-)
>
>
>
> PSkarthic wrote:
> >
> > Hi to all
> >Actually i am working with wicket for one month and
> > suddenly a thought came why it is named wicket.:working:
> >
> >So anybody know the reason why wicket is named so.
> >
> >
> >
> >
> > Thanks in advance
> > Karthic
> >
>
>
> -
> Michael Sparer
> http://talk-on-tech.blogspot.com
> --
> View this message in context:
> http://www.nabble.com/Why-Named-Wicket-tp21413514p21414031.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: thanks ur help,withe the zipoutputstream,


Just write your data to the OutputStream you receive as parameter.

But the zipping step (creating the ZipOutputStream, adding some crc 
checks, etc) is not related to wicket at all. Maybe you should ask on 
some other java list (this is part of java.util api)


wch2001 a écrit :

 with http://letmegooglethatforyou.com/?q=java+zip+files, I can get the
zipoutputstream, 


How can i export it ?

Need to use the following AbstractResourceStreamWriter , right ?

how can i override write method?

Sorry to ask so stupid question, thanks for help.

AbstractResourceStreamWriter writer = new
AbstractResourceStreamWriter() {

@Override
public void write(OutputStream arg0) {
throw new UnsupportedOperationException("Not
supported yet.");
}

@Override
public String getContentType() {
return "application/zip";
}
};
RequestCycle.get().setRequestTarget(new
ResourceStreamRequestTarget(writer,"test.zip")); 






Pills wrote:
  
Zipping data has absolutely nothing to do with wicket, this is a 
separate concern, and this looks absolutely normal that nothing exists 
in wicket for such a feature.


Separation of concerns is very usual on today's days.

Peter Ertl a écrit :


how is this wicket?


Am 12.01.2009 um 11:36 schrieb Michael Sparer:

  

http://www.google.com/search?&q=java+zip  ;-)



wch2001 wrote:


thanks , Pills.

How can  I zip it ?

thanks



Pills wrote:
  

Zip them on the fly, then download the zip.

wch2001 a écrit :

in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, 
cc.txt,


how can i download it ? if it possible that  when clicking 
button/link

and
so on to download those 3 files?

thanks



PSkarthic wrote:

  

I am also a newbie but i will try
could u be please more specific or elabrate




  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




  

-
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context: 
http://www.nabble.com/Help%2CHow-to-download-all-files-in-one-folder---tp21411355p21411973.html 


Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org