Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-04 Thread TH Lim

Thanks. I also interested in knowing what causes the test to fail.


igor.vaynberg wrote:
> 
> mvn package -Dmaven.test.skip=true
> 
> -igor
> 
> 
> On 1/3/07, TH Lim <[EMAIL PROTECTED]> wrote:
>>
>>
>> Sorry to cut in :)
>>
>> ant jar is ok after renaming the the DTD file (for all that matters). I
>> still encounter problem with "mvn package". I traced the error back to a
>> test class wicket.markup.html.form.upload.FileUploadFieldTest (line
>> 97-108).
>> How do I make this test case successful? Thanks.
>>
>>
>> Frank Bille wrote:
>> >
>> > Well it's actually my fault. When I created that unit test I assumed
>> that
>> > we
>> > inclueded wicket-xhtml1-strict.dtd in the release. You should be fine
>> just
>> > putting the a file in the root directory (C:\workspace\wicket-1.2.3)
>> and
>> > call it wicket-xhtml1-strict.dtd. It's not the content that matters but
>> > that
>> > that is somewhat big.
>> >
>> > I'll fix this in the different releases. Martijn perhaps we should
>> include
>> > a
>> > step in the release process that tests the release (run ant jar or
>> > something)?
>> >
>> > Frank
>> >
>> >
>> > On 1/3/07, TH Lim <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I am compiling wicket-1.2.3 from the zip file using "ant jar" and the
>> >> compilation was terminated unsuccessfully with the message "[junit]
>> File
>> >> does not exists. You must provide an existing file:
>> >> C:\workspace\wicket-1.2.3\wicket-xhtml1-strict.dtd". I found
>> >> wicket-1.0-xhtml11.dtd in the directories src\site\resources\DTD and
>> >> docs\DTD. Should rename wicket-1.0-xhtml11.dtd to
>> >> wicket-xhtml1-strict.dtd
>> >> and placed it to my local directory C:\workspace\wicket-1.2.3? Please
>> >> advise.
>> >>
>> >>
>> >> Martijn Dashorst wrote:
>> >> >
>> >> > We don't use ant ourselves. The dtd file should be in the root
>> >> > directory of the zip. Apparently the assembly descriptor used to
>> build
>> >> > the download archive didn't pick it up. grmbl.
>> >> >
>> >> > You can get the dtd from svn or use the one supplied in the
>> >> wicket-1.2.3
>> >> > zip.
>> >> >
>> >> > It hasn't been updated for a while (read 1 year or so).
>> >> >
>> >> > Martijn
>> >> >
>> >> > On 1/2/07, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:
>> >> >> Hmmm, anyone ?
>> >> >> Can anybody pass the tests on wicket-1.2.4 with ant ? I'm using
>> >> building
>> >> >> a
>> >> >> fresh distro with ant and the testInternalDetach test fails. Its
>> >> looking
>> >> >> for
>> >> >> the wicket-xhtml1-strict.dtd file and can't find it .
>> >> >>
>> >> >>
>> >> >> On 1/1/07, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:
>> >> >> > The FileUploadFieldTest try's to upload a non-existent file (
>> >> >> wicket-xhtml1-strict.dtd ) Where should this file be ? I'm testing
>> >> using
>> >> >> ant
>> >> >> jar task.
>> >> >> >
>> >> >> > Iman
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> -
>> >> >> Take Surveys. Earn Cash. Influence the Future of IT
>> >> >> Join SourceForge.net's Techsay panel and you'll get the chance to
>> >> share
>> >> >> your
>> >> >> opinions on IT & business topics through brief surveys - and earn
>> cash
>> >> >>
>> >>
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> >> >>
>> >> >> ___
>> >> >> Wicket-user mailing list
>> >> >> Wicket-user@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> >>
>> >> >>
>> >&g

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread TH Lim

Sorry to cut in :)

ant jar is ok after renaming the the DTD file (for all that matters). I
still encounter problem with "mvn package". I traced the error back to a
test class wicket.markup.html.form.upload.FileUploadFieldTest (line 97-108). 
How do I make this test case successful? Thanks.


Frank Bille wrote:
> 
> Well it's actually my fault. When I created that unit test I assumed that
> we
> inclueded wicket-xhtml1-strict.dtd in the release. You should be fine just
> putting the a file in the root directory (C:\workspace\wicket-1.2.3) and
> call it wicket-xhtml1-strict.dtd. It's not the content that matters but
> that
> that is somewhat big.
> 
> I'll fix this in the different releases. Martijn perhaps we should include
> a
> step in the release process that tests the release (run ant jar or
> something)?
> 
> Frank
> 
> 
> On 1/3/07, TH Lim <[EMAIL PROTECTED]> wrote:
>>
>>
>> I am compiling wicket-1.2.3 from the zip file using "ant jar" and the
>> compilation was terminated unsuccessfully with the message "[junit] File
>> does not exists. You must provide an existing file:
>> C:\workspace\wicket-1.2.3\wicket-xhtml1-strict.dtd". I found
>> wicket-1.0-xhtml11.dtd in the directories src\site\resources\DTD and
>> docs\DTD. Should rename wicket-1.0-xhtml11.dtd to
>> wicket-xhtml1-strict.dtd
>> and placed it to my local directory C:\workspace\wicket-1.2.3? Please
>> advise.
>>
>>
>> Martijn Dashorst wrote:
>> >
>> > We don't use ant ourselves. The dtd file should be in the root
>> > directory of the zip. Apparently the assembly descriptor used to build
>> > the download archive didn't pick it up. grmbl.
>> >
>> > You can get the dtd from svn or use the one supplied in the
>> wicket-1.2.3
>> > zip.
>> >
>> > It hasn't been updated for a while (read 1 year or so).
>> >
>> > Martijn
>> >
>> > On 1/2/07, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:
>> >> Hmmm, anyone ?
>> >> Can anybody pass the tests on wicket-1.2.4 with ant ? I'm using
>> building
>> >> a
>> >> fresh distro with ant and the testInternalDetach test fails. Its
>> looking
>> >> for
>> >> the wicket-xhtml1-strict.dtd file and can't find it .
>> >>
>> >>
>> >> On 1/1/07, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:
>> >> > The FileUploadFieldTest try's to upload a non-existent file (
>> >> wicket-xhtml1-strict.dtd ) Where should this file be ? I'm testing
>> using
>> >> ant
>> >> jar task.
>> >> >
>> >> > Iman
>> >> >
>> >>
>> >>
>> >>
>> -
>> >> Take Surveys. Earn Cash. Influence the Future of IT
>> >> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share
>> >> your
>> >> opinions on IT & business topics through brief surveys - and earn cash
>> >>
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> >>
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >>
>> >>
>> >
>> >
>> > --
>> > Vote for Wicket at the
>> > http://www.thebeststuffintheworld.com/vote_for/wicket
>> > Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
>> > http://wicketframework.org
>> >
>> >
>> -
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>> > your
>> > opinions on IT & business topics through brief surveys - and earn cash
>> >
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/1.2.4%3A-Test-cannot-find-file-tf2904045.html#a8139504
>&g

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread TH Lim

I am compiling wicket-1.2.3 from the zip file using "ant jar" and the
compilation was terminated unsuccessfully with the message "[junit] File
does not exists. You must provide an existing file:
C:\workspace\wicket-1.2.3\wicket-xhtml1-strict.dtd". I found
wicket-1.0-xhtml11.dtd in the directories src\site\resources\DTD and
docs\DTD. Should rename wicket-1.0-xhtml11.dtd to wicket-xhtml1-strict.dtd
and placed it to my local directory C:\workspace\wicket-1.2.3? Please
advise.


Martijn Dashorst wrote:
> 
> We don't use ant ourselves. The dtd file should be in the root
> directory of the zip. Apparently the assembly descriptor used to build
> the download archive didn't pick it up. grmbl.
> 
> You can get the dtd from svn or use the one supplied in the wicket-1.2.3
> zip.
> 
> It hasn't been updated for a while (read 1 year or so).
> 
> Martijn
> 
> On 1/2/07, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:
>> Hmmm, anyone ?
>> Can anybody pass the tests on wicket-1.2.4 with ant ? I'm using building
>> a
>> fresh distro with ant and the testInternalDetach test fails. Its looking
>> for
>> the wicket-xhtml1-strict.dtd file and can't find it .
>>
>>
>> On 1/1/07, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:
>> > The FileUploadFieldTest try's to upload a non-existent file (
>> wicket-xhtml1-strict.dtd ) Where should this file be ? I'm testing using
>> ant
>> jar task.
>> >
>> > Iman
>> >
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>>
> 
> 
> -- 
> Vote for Wicket at the
> http://www.thebeststuffintheworld.com/vote_for/wicket
> Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
> http://wicketframework.org
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/1.2.4%3A-Test-cannot-find-file-tf2904045.html#a8139504
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CheckGroupSelector with CheckBox

2007-01-01 Thread TH Lim

Understood. 

Is there an easy way for checkboxselector to select the users from the paged
list on the visible page and update the checkgroup with all these "visible"
users on the server side?



igor.vaynberg wrote:
> 
> well, the purpose of the checkboxselector is to be a client side widget to
> select all visible checkboses.
> 
> there is no automatic way to select all checkboxes on the serverside and
> that is why it doesnt do that. imagine a paged list of users with a
> checkbox
> to select all users. without user intervention you can only select the
> users
> on the visible page, but that might not be what the perceived behavior of
> the selector is.
> 
> -igor
> 
> 
> On 1/1/07, TH Lim <[EMAIL PROTECTED]> wrote:
>>
>>
>> Thanks. I replaced checkgroupselector with checkbox like what you have
>> described and had it working. However, I find it strange not to extend
>> checkgroupselector to cover server side. Can you share with me what is
>> the
>> reason for the team not to cover that? Or is it irrelevant to do so?
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > actually when you override wantonselectionchangednotification() it is
>> not
>> > an
>> > ajax request, it is a regular request that repaints the page.
>> >
>> > checkgroupselector was made to select checkboxes on the clientside only
>> > exclusively, if you want to do it via a roundtrip it is actually simple
>> >
>> > add a checkbox with wantonselectionchangednotification() set to true,
>> and
>> > in
>> > the handler add all the possible model objects into the collection that
>> > controls the checkgroup, so when the page repaints next all checkboxes
>> > will
>> > be selected for you
>> >
>> > -igor
>> >
>> >
>> > On 12/31/06, TH Lim <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi,
>> >>
>> >> I have a similar situation where I have CheckGroupSelector to select /
>> >> unselect all checkboxes in the list view. I have overrided
>> >> CheckGroup.wantOnSelectionChangedNotifications() to return true.
>> >> Therefore,
>> >> checking and unchecking each checkboxes sends an AJAX respond back to
>> the
>> >> server. However, if I check on the CheckGroupSelector to check /
>> uncheck
>> >> all
>> >> the checkboxes there is no AJAX respond sent and CheckGroup is not
>> >> updated.
>> >> How do I make the CheckGroupSelector to send an AJAX respond so that
>> the
>> >> selection in CheckGroup reflects the selection on the web front?
>> Thanks.
>> >>
>> >>
>> >> Johan Compagner wrote:
>> >> >
>> >> > can't you override:
>> >> >
>> >> > protected boolean wantOnSelectionChangedNotifications()
>> >> > {
>> >> > return false;
>> >> > }
>> >> >
>> >> > of CheckGroup?
>> >> >
>> >> > johan
>> >> >
>> >> >
>> >> > On 9/27/06, Decebal Suiu <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> 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.php&p=sourceforge&CID=DEVDEV
>> >> >> ___
>> >> >> Wicket-user mailin

Re: [Wicket-user] CheckGroupSelector with CheckBox

2007-01-01 Thread TH Lim

Thanks. I replaced checkgroupselector with checkbox like what you have
described and had it working. However, I find it strange not to extend
checkgroupselector to cover server side. Can you share with me what is the
reason for the team not to cover that? Or is it irrelevant to do so? 



igor.vaynberg wrote:
> 
> actually when you override wantonselectionchangednotification() it is not
> an
> ajax request, it is a regular request that repaints the page.
> 
> checkgroupselector was made to select checkboxes on the clientside only
> exclusively, if you want to do it via a roundtrip it is actually simple
> 
> add a checkbox with wantonselectionchangednotification() set to true, and
> in
> the handler add all the possible model objects into the collection that
> controls the checkgroup, so when the page repaints next all checkboxes
> will
> be selected for you
> 
> -igor
> 
> 
> On 12/31/06, TH Lim <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> I have a similar situation where I have CheckGroupSelector to select /
>> unselect all checkboxes in the list view. I have overrided
>> CheckGroup.wantOnSelectionChangedNotifications() to return true.
>> Therefore,
>> checking and unchecking each checkboxes sends an AJAX respond back to the
>> server. However, if I check on the CheckGroupSelector to check / uncheck
>> all
>> the checkboxes there is no AJAX respond sent and CheckGroup is not
>> updated.
>> How do I make the CheckGroupSelector to send an AJAX respond so that the
>> selection in CheckGroup reflects the selection on the web front? Thanks.
>>
>>
>> Johan Compagner wrote:
>> >
>> > can't you override:
>> >
>> > protected boolean wantOnSelectionChangedNotifications()
>> > {
>> > return false;
>> > }
>> >
>> > of CheckGroup?
>> >
>> > johan
>> >
>> >
>> > On 9/27/06, Decebal Suiu <[EMAIL PROTECTED]> wrote:
>> >>
>> >> 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.php&p=sourceforge&CID=DEVDEV
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> -
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>> > your
>> > opinions on IT & business topics through brief surveys -- and earn cash
>> >
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/CheckGroupSelector-with-CheckBox-tf2346680.html#a8107326
>> 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.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
&g

Re: [Wicket-user] Logging issue at tomcat

2006-12-31 Thread TH Lim

If you are using log4j, try adding these to ur log4j.properties,

log4j.info=false
log4j.logger.wicket=INFO


Carfield Yim-2 wrote:
> 
> I already have
> 
> wicket.util.resource= Info
> wicket.util.thread.Task = Info
> 
> But I still getting a lot of log message related at tomcat stdout.log.
> For jetty and resin it will not do that . Anybody know how to make
> tomcat don't log those information?
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Logging-issue-at-tomcat-tf2884676.html#a8107498
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CheckGroupSelector with CheckBox

2006-12-31 Thread TH Lim

Hi,

I have a similar situation where I have CheckGroupSelector to select /
unselect all checkboxes in the list view. I have overrided
CheckGroup.wantOnSelectionChangedNotifications() to return true. Therefore,
checking and unchecking each checkboxes sends an AJAX respond back to the
server. However, if I check on the CheckGroupSelector to check / uncheck all
the checkboxes there is no AJAX respond sent and CheckGroup is not updated.
How do I make the CheckGroupSelector to send an AJAX respond so that the
selection in CheckGroup reflects the selection on the web front? Thanks.


Johan Compagner wrote:
> 
> can't you override:
> 
> protected boolean wantOnSelectionChangedNotifications()
> {
> return false;
> }
> 
> of CheckGroup?
> 
> johan
> 
> 
> On 9/27/06, Decebal Suiu <[EMAIL PROTECTED]> wrote:
>>
>> 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.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CheckGroupSelector-with-CheckBox-tf2346680.html#a8107326
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] "Select All" CheckBox in ListView

2006-12-12 Thread TH Lim

Found the answer in examples,
http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.CheckGroupPage

but the page is wrongly titled as "wicket.markup.html.form.ListChoice".


TH Lim wrote:
> 
> How do I add / use Javascript to enable a check box to select / deselect
> the checkboxes (as shown in attached image) beneath it within ListView?
> Thanks
> 
> 
>  http://www.nabble.com/file/4551/checkboxes.JPG 
> 

-- 
View this message in context: 
http://www.nabble.com/%22Select-All%22-CheckBox-in-ListView-tf2806596.html#a7834633
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] "Select All" CheckBox in ListView

2006-12-12 Thread TH Lim

How do I add / use Javascript to enable a check box to select / deselect the
checkboxes (as shown in attached image) beneath it within ListView? Thanks


http://www.nabble.com/file/4551/checkboxes.JPG 
-- 
View this message in context: 
http://www.nabble.com/%22Select-All%22-CheckBox-in-ListView-tf2806596.html#a7830450
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior

2006-12-09 Thread TH Lim

Thanks for your reply. I have some follow up questions to your respond: -

1. Do you mean ListChoice.onSelectionChange is not invoked instead of
ListChoice.onchange which is on client side?

2. What and when do I use getCallbackUrl()?

3. Am I right to presume the implementation in
AjaxFormComponentUpdatingBehavior.onUpdate(...) is to populate palette on
client side? Why does your implementation keep adding components to target?
My assumption is for target is "add the component you are referring to
target"

Thanks 
 

Nino Wael wrote:
> 
> 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", "&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
>>> ~
>>> 

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

2006-12-07 Thread TH Lim

For 1st example, the size attribute is " size="8" ". 


Johan Compagner wrote:
> 
> hmm we don't seem to set the default max rows in every constructor
> strange thing is that in the first example you give we also don't do it.
> So
> max rows is still 0
> 
> Can you check what is exactly generated (what the size attribute is)
> 
> johan
> 
> 
> On 12/6/06, TH Lim <[EMAIL PROTECTED]> wrote:
>>
>>
>> I came to the same conclusion as Nino. What I have observed was this,
>>
>> 1. For,
>>
>> ListChoice selection = new ListChoice("disciplineSelection", new Model(),
>> disciplines)
>>
>> , a list box is created in the web page.
>>
>> 2. For,
>>
>> ListChoice selection = new ListChoice("disciplineSelection", disciplines)
>>
>> , a dropdown box is created in the web page.
>>
>> 3. For,
>>
>> ListChoice selection = new ListChoice("disciplineSelection",
>> disciplines);selection.setMaxRow(8);
>>
>> ,  a list box is created in the web page.
>>
>> I find it strange because I used ListChoice instead of DropDownChoice but
>> yet it shows a dropdown box instead of a list box for case no. 2. Is it a
>> bug or am I missing something? Btw, there are 2 items in my discipline
>> list.
>> Thanks
>>
>>
>>
>> Johan Compagner wrote:
>> >
>> > A ListChoice should always be a List instead of a DropDown (for a drop
>> > down
>> > we have the DropDownChoice)
>> >
>> > I don't know why you see a difference it shouldn't look at all to the
>> > model
>> > that holds the selection.
>> > It only looks at the choices:
>> >
>> > tag.put("size", Math.min(maxRows, getChoices().size()));
>> >
>> > so i guess if maxRows of size() == 1 then it becomes a dropdown?
>> >
>> > johan
>> >
>> >
>> > On 5/9/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>> >>
>> >>  Hi
>> >>
>> >>
>> >>
>> >> Im not sure if this is the intended functionality, but I belive I've
>> >> discovered an oddity or featureJ.
>> >>
>> >>
>> >>
>> >> When I use the constructor which also takes a model
>> >> (ListChoice("dropdown_job", new Model(),myList, new myRenderer)) my
>> >> listchoice is no longer displayed as a dropdown but as a listbox.
>> >>
>> >>
>> >>
>> >> If I instead of using the constructor with the model property call the
>> >> set
>> >> model method (listChoice_job.setModel(new Model())) then it remains
>> >> displayed as a dropdown
>> >>
>> >>
>> >>
>> >> Code snipplet:
>> >>
>> >> // this gives a listbox
>> >>
>> >> listChoice_job = new
>> >> ListChoice("dropdown_job",new Model(),jobcenter.toArray().getList(),
>> new
>> >> DataItemRenderer())
>> >>
>> >>
>> >>
>> >> //this gives a dropdown
>> >>
>> >> listChoice_job = new
>> >> ListChoice("dropdown_job", jobcenter.toArray().getList(), new
>> >> DataItemRenderer())
>> >>
>> >>
>> listChoice_job.setModel(new
>> >> Model());
>> >>
>> >> Code snipplet end
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> It's that latter I want displayed.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> -regards Nino
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ListChoice-changes-appearance-from-dropdown-to-listbox-tf1583106.html#a7714179
>> 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.php&p=sourceforge&CID=DEVDEV
>> ___

Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior

2006-12-06 Thread TH Lim

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

-- 
View this message in context: 
http://www.nabble.com/Help-with-AjaxFormComponentUpdatingBehavior-tf2768381.html#a7734037
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Help with AjaxFormComponentUpdatingBehavior

2006-12-06 Thread TH Lim

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


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

2006-12-05 Thread TH Lim

I came to the same conclusion as Nino. What I have observed was this,

1. For,

ListChoice selection = new ListChoice("disciplineSelection", new Model(),
disciplines)

, a list box is created in the web page.

2. For, 

ListChoice selection = new ListChoice("disciplineSelection", disciplines)

, a dropdown box is created in the web page.

3. For, 

ListChoice selection = new ListChoice("disciplineSelection",
disciplines);selection.setMaxRow(8);

,  a list box is created in the web page.

I find it strange because I used ListChoice instead of DropDownChoice but
yet it shows a dropdown box instead of a list box for case no. 2. Is it a
bug or am I missing something? Btw, there are 2 items in my discipline list.
Thanks



Johan Compagner wrote:
> 
> A ListChoice should always be a List instead of a DropDown (for a drop
> down
> we have the DropDownChoice)
> 
> I don't know why you see a difference it shouldn't look at all to the
> model
> that holds the selection.
> It only looks at the choices:
> 
> tag.put("size", Math.min(maxRows, getChoices().size()));
> 
> so i guess if maxRows of size() == 1 then it becomes a dropdown?
> 
> johan
> 
> 
> On 5/9/06, Nino Wael <[EMAIL PROTECTED]> wrote:
>>
>>  Hi
>>
>>
>>
>> Im not sure if this is the intended functionality, but I belive I've
>> discovered an oddity or featureJ.
>>
>>
>>
>> When I use the constructor which also takes a model
>> (ListChoice("dropdown_job", new Model(),myList, new myRenderer)) my
>> listchoice is no longer displayed as a dropdown but as a listbox.
>>
>>
>>
>> If I instead of using the constructor with the model property call the
>> set
>> model method (listChoice_job.setModel(new Model())) then it remains
>> displayed as a dropdown
>>
>>
>>
>> Code snipplet:
>>
>> // this gives a listbox
>>
>> listChoice_job = new
>> ListChoice("dropdown_job",new Model(),jobcenter.toArray().getList(), new
>> DataItemRenderer())
>>
>>
>>
>> //this gives a dropdown
>>
>> listChoice_job = new
>> ListChoice("dropdown_job", jobcenter.toArray().getList(), new
>> DataItemRenderer())
>>
>> listChoice_job.setModel(new
>> Model());
>>
>> Code snipplet end
>>
>>
>>
>>
>>
>> It's that latter I want displayed.
>>
>>
>>
>>
>>
>> -regards Nino
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ListChoice-changes-appearance-from-dropdown-to-listbox-tf1583106.html#a7714179
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strategy to avoid new instances of pages and panels

2006-12-04 Thread TH Lim

As we creating new instantes of WebPage, Form and other web widgets for every
request received for different pages, it will cause more garbages created.
Will this going to be affect the server performance?

I'm new to Wicket and probably this has been discussed before. I will be
grateful if someone could point me in the right direction to find the
answer. Thanks.


Johan Compagner wrote:
> 
> as martijn said. I am not talking about pooling pages over sessions
> That is a nogo in wicket. No i was talking about a single session reusing
> pages.
> So if you create a link that goes back to page X then hold that page
> there.
> 
> pooling pages over sessions can't be done. Maybe for completely static
> pages
> that has no dynamic parts at all. But then you can just use pure html.
> 
> ...
> 

-- 
View this message in context: 
http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a7673337
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.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user