Re: [Wicket-user] Adding text to labels prior to rendering

2007-06-15 Thread Ballist1c

Thanks mate, 

I managed to do a bit of a hack job which will suffice :)

but yeah the idea is to simply append txt to a label... like the label may
contain hi, and after I generate the label, i was wondering if it was
possible to append  how are you? for instance,

turning the label into hi, how are you?.

but its all good, i got it all sorted for now, its just a bit dirty.


Martijn Dashorst wrote:
 
 Don't put a space between the closing tag and the % sign:
 
 [1231312]%
 
 Notice the lack of space. Another option is to use a nbsp; if you
 want whitespace.
 
 Martijn
 
 On 6/15/07, Ballist1c [EMAIL PROTECTED] wrote:

 Hey guys,

 I am in a situation where I have created labels with data extracted from
 my
 components automatically , but I want to format it before I throw it out
 to
 the display.

 The context is that I am retrieving a number, which I want to be
 displayed
 as a percentage and I would like the % symbol attached to the label
 is
 this possible?

 ratingValue = new Label (ratingValue);

 some sorta code

 add(ratingValue);

 Ive had trouble adding it at the HTML level, it just doesnt want to go on
 the same line which is annoying.

 Thanks guys

 --
 View this message in context:
 http://www.nabble.com/Adding-text-to-labels-prior-to-rendering-tf3925770.html#a11133195
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

 
 
 -- 
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Adding-text-to-labels-prior-to-rendering-tf3925770.html#a11133777
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] [ajax]Replace Javascript component fails on IE

2007-06-15 Thread Nino Saturnino Martinez Vazquez Wael
Hi Matej

Thanks for your answer. It's well apreciated. I'll encorporate this into 
the gmap contrib and we will probally have a release for 1.2.6 and 1.3 
within the commming week:)

regards Nino

Matej Knopp wrote:
 Hi, I've fixed this for 1.3.

 As a workaround for 1.2, this is what you can do:

 Don't update the script tag directly, but enclose it in a div, like this:

 div wicket:id=script
   span style=display:noneThis is an invisible tag to prevent buggy
 IE ignoring the script
   script type=text/javascripthere comes the script/script
 /div

 Btw, as a sidenote, i noticed this in your code:

 protected void onComponentTag(final ComponentTag tag)
  {
add(new AttributeModifier(type, true, new Model(text/javascript)));
add(new AttributeModifier(language, true, new Model(JavaScript)));
 }
 This is wrong. As a result on every render two attribute modifiers
 will be added (this would even throw an exception in 1.3, as you are
 changing component during the render).
 This is how it should look like:

 tag.put(type, text/javascript);
 tag.put(language, JavaScript);

 -Matej

 On 6/14/07, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
   
 Forgot to mention this is on 1.2.6 havent tried with 1.3.

 Nino Saturnino Martinez Vazquez Wael wrote:
 
 Hi Im starting a new thread as my old one has died.

 You can see it here :
 http://www.nabble.com/-GMAP-contrib--IE7-Ajax-target-appendJavascript-not-working--t3883506.html

 But to make a long story short.

 Problem are when we replace our javascript container via ajax IE doesnt
 update it or calls the old one. If we create new javascript
 functions(function myfunction1..2..3) instead it gives a javascript
 exception shown in wicket ajax debug window, again this is only on IE
 browsers.

 I've looked trough JIRA and could not find anything that poped into my
 eyes say that it was related.

 I've created a quickstart project showing the behavior, see that its
 working with FF and not with IE6 and IE7:

 http://www.badongo.com/file/3410432

 regards Nino



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



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

 

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


   

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


Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?

2007-06-15 Thread Martijn Dashorst
I am interested, but geographically challenged. However, there are
some online tools available to help us plan these events:

 - http://www.meetup.com

I'm eyeing google calendar, but that is not well suited for a group
calendar that is geographically all over the world.

 - 
http://www.google.com/calendar/feeds/kps9lev85benpg7ppaafpje5d8%40group.calendar.google.com/public/basic

Martijn

On 6/15/07, Al Maw [EMAIL PROTECTED] wrote:

 Hello everyone,

 As Wicket grows in popularity, we bump into increasing numbers of UK
 users. We think there are enough of you out there to set up a
 London-based users group, so this e-mail is to gauge interest in that.

 We're proposing an initial meet on Tuesday 3rd July in a reasonably
 central location. Although I'm sure there will be plenty of room for
 having a pint and a chat, we'd also like to bring some real value to
 people, so are proposing to kick off with a couple of short talks.

 There will probably be an introductory talk and a more advanced one.
 Topics are yet to be decided - please tell us if you have any ideas on
 what you'd like covering, or if would like to contribute a short talk,
 presentation, demo or whatever else.

 For example, we could cover:

 Beginner - Aimed at new users; basic Models and validation.
 Some sprinklings of AJAX.

 Advanced - Implementing custom form validators, invoking them using
 AJAX, using CSS component highlighting for errors, making
 it all automatic for a given Form.

 If any of that sounds like your kind of thing, please tell us!

 If enough people are interested to make this a goer, we'll organise a
 venue and sign-up list some time next week. Just hit reply and post a
 yes please or similar on this thread.


 Best regards,

 Al

 --
 Alastair Maw
 Wicket-biased blog at http://herebebeasties.com

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



-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] AJAX causing UI state corruption....

2007-06-15 Thread Seldon, Richard

Matej - we are using version 1.2.4 (and extensions with same version).

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matej
Knopp
Sent: 14 June 2007 20:44
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AJAX causing UI state corruption


What wicket version are you using?

-Matej

On 6/14/07, Seldon, Richard [EMAIL PROTECTED] wrote:

 Experiencing a wicket problem to do with UI state corruption when using
ajax
 tabbed panel. When the ajax links are rapidly clicked in succession
various
 validation errors appear relating  to panels that are hidden, form
component
 drop downs lose their display UI values and UI state basically becomes
 v.confused. Have not observed this behavior elsewhere but somehow it
seems
 like  the ajax requests are not stacking correctly or at least are losing
 synch with the UI rerendering somehow.

 Below are all the steps (in brevity) so far attempted and some unanswered
 questions I still have:-

 (1) Tried IAjaxIndicatorAware on individual form components and overridden
 tabbed panel links. Used this in conjunction with a server side request
 throttler.  Basically wrote a timer class that intercepts onsubmit
requests
 and rejects (returns without processing further) on any entered with given
2
 second interval  using standard Java api class implementations. This
 approach does actually work but doesn't explain why we're having this
 problem in first place?

 (2) Tried a DIV interceptor approach hooking into
 Wicket.Ajax.registerPreCallHandler, postcall, and failure. The idea was to
 cover the entire screen with a  transparent div whilst asynch call being
 made - however, problematic using IE 6 but works with firefox.
Essentially,
 seems IE deals with windowed and  windowless components and certain html
 form components are windowed such as select. z-indexes are not respected
 between the two types and therefore setting  div z-index higher than
select
 z-index doesn't work. tried workaround using an iframe (which covers both
 z-indexes in IE6) but iframe transparency issues  meant access to
underlying
 form component.

 (3) Looked at wicket-ajax.js - was interested with configuration of the
 channels settings - but unsure how to get an appropriate configuration
fix.
 There is  an indicator between setting which gets read by reading  out of
a
 regex a character value of either 'd' or 's' where from what i can see 's'
 ensures requests  are stacked. Found some help in an older newsgroup which
 mentions that {wicket has ajax channels with different channel modes
such
 as queue/disregard. that way you can disable certain groups of components
 only by assigning them to the same ajax channel.} Looking at the wicket
 java api i  couldn't manage to find any handle to setting this flag up. Is
 this a direct wicket-ajax.js edit and if so then my question would be
What
 is an elegant  way to override the default to use 'd'?

 (4) Finally, switched the asynch flag to false by editing wicket-ajax.js
 directly (this.type in request prototype class). This resolved the
original
 problem but uncertain what the consequences of doing this are. Is this
safe
 and is there any Java api accessible means to do this? In firefox by
 inspecting  ajax responses via an ajax plugin, it seemed to indicate ajax
 requests yet the page is flickering on rerender much like a full page
 resubmission would. Does  ajax submission still work or is it the main UI
 thread that now handles form submissions?


 This e-mail (and any attachments) may contain privileged and/or
confidential information. If you are not the intended recipient please do
not disclose, copy, distribute, disseminate or take any action in reliance
on it. If you have received this message in error please reply and tell us
and then delete it. Should you wish to communicate with us by e-mail we
cannot guarantee the security of any data outside our own computer systems.
For the protection of Legal  General's systems and staff, incoming emails
will be automatically scanned.

 Any information contained in this message may be subject to applicable
terms and conditions and must not be construed as giving investment advice
within or outside the United Kingdom.

 The following companies are subsidiary companies of the Legal  General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal  General
Partnership Services Limited (insurance and mortgages), Legal  General
Insurance Limited (insurance), Legal  General Assurance Society Limited
 (life assurance, pensions and investments), Legal  General Unit Trust
Managers Limited and Legal  General Portfolio Management Services Limited
(investments).

 They are registered in England under numbers shown.
 The registered office is Temple Court, 11 Queen Victoria Street, London
EC4N 4TP.

 Legal  General Partnership Services Limited: 5045000 Legal  General
Assurance Society Limited: 

Re: [Wicket-user] AJAX causing UI state corruption....

2007-06-15 Thread Seldon, Richard

Sure Alex, what i meant was that in order to get IFRAME to be transparent i
tried a combination of setting allowtransparency=true as an attribute on
the IFRAME element and then in css class definition for the IFRAME put in:
filter:progid:DXImageTransform.Microsoft.Alpha(style=0, opacity=0); Alpha
handles opacity allowing effectively transparency for the underlying page
content (didn't work with select form component though). 

Note IE worked for textfields (input type=text) html form components with
these settings. it was the select that failed. Below is an example snippet
code with z-indexes to illustrate this point. the z-index  is a constant in
the example:

HTML
HEAD
TITLEZ-Index/TITLE
script
function setindex()
{
div1.style.zIndex=text1.value;
select1.style.zIndex=text2.value;
getindexes();
}

function getindexes(){

text1.value=div1.style.zIndex;
text2.value=select1.style.zIndex;
text3.value=5;
}
/script
/HEAD
BODY onload=getindexes()

Div
input type=text value= id=text1 name=text1 p

Select
input type=text value= id=text2 name=text2p

IFrame
input type=text value= id=text3 name=text3p
input type=button value=Set Z-Index id=button1 name=button1
onclick=setindex()
DIV id=div1 name=div1
style=width:200;height:200;background-color:lightblue;
position:absolute;left:350;top:250;z-index:DIV/DIV
select id=select1 name=select1
style=;position:absolute;left:300;top:400;width=500;z-index: 
size=1 
optionOption1
optionOption2
optionOption3
/select
IFRAME id=iframe1 name=iframe1 src= scroll=none
style=width:100;height:115;position:absolute;
left:400;top:300;border-color:green;z-index:5;/iframe
/BODY
/HTML



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Alex
Objelean
Sent: 14 June 2007 20:43
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AJAX causing UI state corruption



Can you explain what do you mean by  but iframe transparency issues  meant
access to underlying
form component.? 

I am using option 2 to avoid UI state corruption and didn't have any
problems with it.


Seldon, Richard wrote:
 
 
 Experiencing a wicket problem to do with UI state corruption when using
 ajax
 tabbed panel. When the ajax links are rapidly clicked in succession
 various
 validation errors appear relating  to panels that are hidden, form
 component
 drop downs lose their display UI values and UI state basically becomes
 v.confused. Have not observed this behavior elsewhere but somehow it
 seems
 like  the ajax requests are not stacking correctly or at least are losing
 synch with the UI rerendering somehow. 
 
 Below are all the steps (in brevity) so far attempted and some unanswered
 questions I still have:-
 
 (1) Tried IAjaxIndicatorAware on individual form components and overridden
 tabbed panel links. Used this in conjunction with a server side request
 throttler.  Basically wrote a timer class that intercepts onsubmit
 requests
 and rejects (returns without processing further) on any entered with given
 2
 second interval  using standard Java api class implementations. This
 approach does actually work but doesn't explain why we're having this
 problem in first place?
 
 (2) Tried a DIV interceptor approach hooking into
 Wicket.Ajax.registerPreCallHandler, postcall, and failure. The idea was to
 cover the entire screen with a  transparent div whilst asynch call being
 made - however, problematic using IE 6 but works with firefox.
 Essentially,
 seems IE deals with windowed and  windowless components and certain html
 form components are windowed such as select. z-indexes are not respected
 between the two types and therefore setting  div z-index higher than
 select
 z-index doesn't work. tried workaround using an iframe (which covers both
 z-indexes in IE6) but iframe transparency issues  meant access to
 underlying
 form component.
 
 (3) Looked at wicket-ajax.js - was interested with configuration of the
 channels settings - but unsure how to get an appropriate configuration
 fix.
 There is  an indicator between setting which gets read by reading  out of
 a
 regex a character value of either 'd' or 's' where from what i can see 's'
 ensures requests  are stacked. Found some help in an older newsgroup which
 mentions that {wicket has ajax channels with different channel modes
 such
 as queue/disregard. that way you can disable certain groups of components
 only by assigning them to the same ajax channel.} Looking at the wicket
 java api i  couldn't manage to find any handle to setting this flag up. Is
 this a direct wicket-ajax.js edit and if so then my question would be
 What
 is an elegant  way to override the default to use 'd'?
 
 (4) Finally, switched the asynch flag to false by editing wicket-ajax.js
 directly (this.type in request prototype class). This resolved the
 original
 problem but uncertain what the consequences of doing this are. Is this
 safe
 and is there any Java api 

Re: [Wicket-user] AJAX causing UI state corruption....

2007-06-15 Thread Alex Objelean

I recommend you to use wicket-1.2.6. This version is better and have some
useful fixes, including ajax related. Regarding the transparency issue, I
recommend to use the  http://malsup.com/jquery/block/ jquery.block plugin ,
or at least take it as an example for your own js implementation. I have my
own light version of this plugin.. 


Seldon, Richard wrote:
 
 
 Sure Alex, what i meant was that in order to get IFRAME to be transparent
 i
 tried a combination of setting allowtransparency=true as an attribute on
 the IFRAME element and then in css class definition for the IFRAME put in:
 filter:progid:DXImageTransform.Microsoft.Alpha(style=0, opacity=0);
 Alpha
 handles opacity allowing effectively transparency for the underlying page
 content (didn't work with select form component though). 
 
 Note IE worked for textfields (input type=text) html form components
 with
 these settings. it was the select that failed. Below is an example snippet
 code with z-indexes to illustrate this point. the z-index  is a constant
 in
 the example:
 
 HTML
 HEAD
 TITLEZ-Index/TITLE
 script
 function setindex()
 {
   div1.style.zIndex=text1.value;
   select1.style.zIndex=text2.value;
   getindexes();
 }
 
 function getindexes(){
 
   text1.value=div1.style.zIndex;
   text2.value=select1.style.zIndex;
   text3.value=5;
 }
 /script
 /HEAD
 BODY onload=getindexes()
 
 Div
 input type=text value= id=text1 name=text1 p
 
 Select
 input type=text value= id=text2 name=text2p
 
 IFrame
 input type=text value= id=text3 name=text3p
 input type=button value=Set Z-Index id=button1 name=button1
 onclick=setindex()
 DIV id=div1 name=div1
 style=width:200;height:200;background-color:lightblue;
 position:absolute;left:350;top:250;z-index:DIV/DIV
 select id=select1 name=select1
 style=;position:absolute;left:300;top:400;width=500;z-index: 
 size=1 
   optionOption1
   optionOption2
   optionOption3
 /select
 IFRAME id=iframe1 name=iframe1 src= scroll=none
 style=width:100;height:115;position:absolute;
 left:400;top:300;border-color:green;z-index:5;/iframe
 /BODY
 /HTML
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Alex
 Objelean
 Sent: 14 June 2007 20:43
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] AJAX causing UI state corruption
 
 
 
 Can you explain what do you mean by  but iframe transparency issues 
 meant
 access to underlying
 form component.? 
 
 I am using option 2 to avoid UI state corruption and didn't have any
 problems with it.
 
 
 Seldon, Richard wrote:
 
 
 Experiencing a wicket problem to do with UI state corruption when using
 ajax
 tabbed panel. When the ajax links are rapidly clicked in succession
 various
 validation errors appear relating  to panels that are hidden, form
 component
 drop downs lose their display UI values and UI state basically becomes
 v.confused. Have not observed this behavior elsewhere but somehow it
 seems
 like  the ajax requests are not stacking correctly or at least are losing
 synch with the UI rerendering somehow. 
 
 Below are all the steps (in brevity) so far attempted and some unanswered
 questions I still have:-
 
 (1) Tried IAjaxIndicatorAware on individual form components and
 overridden
 tabbed panel links. Used this in conjunction with a server side request
 throttler.  Basically wrote a timer class that intercepts onsubmit
 requests
 and rejects (returns without processing further) on any entered with
 given
 2
 second interval  using standard Java api class implementations. This
 approach does actually work but doesn't explain why we're having this
 problem in first place?
 
 (2) Tried a DIV interceptor approach hooking into
 Wicket.Ajax.registerPreCallHandler, postcall, and failure. The idea was
 to
 cover the entire screen with a  transparent div whilst asynch call being
 made - however, problematic using IE 6 but works with firefox.
 Essentially,
 seems IE deals with windowed and  windowless components and certain html
 form components are windowed such as select. z-indexes are not respected
 between the two types and therefore setting  div z-index higher than
 select
 z-index doesn't work. tried workaround using an iframe (which covers both
 z-indexes in IE6) but iframe transparency issues  meant access to
 underlying
 form component.
 
 (3) Looked at wicket-ajax.js - was interested with configuration of the
 channels settings - but unsure how to get an appropriate configuration
 fix.
 There is  an indicator between setting which gets read by reading  out of
 a
 regex a character value of either 'd' or 's' where from what i can see
 's'
 ensures requests  are stacked. Found some help in an older newsgroup
 which
 mentions that {wicket has ajax channels with different channel modes
 such
 as queue/disregard. that way you can disable certain groups of components
 only by assigning them to the same ajax channel.} Looking at the wicket
 java api i  couldn't manage to 

Re: [Wicket-user] Best way to set the focus on a form's TextField

2007-06-15 Thread Frank Bille

I have been playing around with it as well. Untill now I have come up with
the following:

http://svn.teachus.dk/browse/TeachUs/dk.teachus/trunk/teachus-frontend/src/main/java/dk/teachus/frontend/components/form/DefaultFocusBehavior.java?r=root
:

But I'm not entirely sure it does what I want. I would also like to be able
to attach it to more than one field and then it's the first field without a
value that receives focus. Perhaps..

Frank


On 6/15/07, Seldon, Richard [EMAIL PROTECTED] wrote:


 Would be interested to know of any standard way to handle this but it
is easy enough to roll your own with a few lines of code. Perhaps try the
following:

1) Set up a FocusBehavior interface that provides a getDefaultField()
method.
2) Create a SetFocusVisitor that implements wicket.Component.IVisitor and
traverses child nodes looking for FocusBehaviour
3) Get the markup id from component implementing FocusBehavior and use
bodycontainer to append DOM node lookup into body element onload attribute
by 4) calling getElementByid(yourMarkup).focus()



-Original Message-
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] Behalf Of *Francisco Diaz
Trepat - gmail
*Sent:* 14 June 2007 21:58
*To:* wicket-user@lists.sourceforge.net
*Subject:* [Wicket-user] Best way to set the focus on a form's TextField

Hi all,

I have a login form and want to set the focus on the user name field as
soon as it is displayed. As it is to say on the document load event.

I've read some on nabble but it didn't quite understand the best way.

Can someone guide me a bit?

Best regards,

f(t)

ps: elco elco please the book, elco elco pleae the book
/cantito_argentino



This e-mail (and any attachments) may contain privileged and/or
confidential information. If you are not the intended recipient please do
not disclose, copy, distribute, disseminate or take any action in reliance
on it. If you have received this message in error please reply and tell us
and then delete it. Should you wish to communicate with us by e-mail we
cannot guarantee the security of any data outside our own computer systems.
For the protection of Legal  General's systems and staff, incoming emails
will be automatically scanned.

Any information contained in this message may be subject to applicable
terms and conditions and must not be construed as giving investment advice
within or outside the United Kingdom.

The following companies are subsidiary companies of the Legal  General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal  General
Partnership Services Limited (insurance and mortgages), Legal  General
Insurance Limited (insurance), Legal  General Assurance Society Limited
(life assurance, pensions and investments), Legal  General Unit Trust
Managers Limited and Legal  General Portfolio Management Services Limited
(investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London
EC4N 4TP.

Legal  General Partnership Services Limited: 5045000 Legal  General
Assurance Society Limited: 166055 Legal  General (Unit Trust Managers)
Limited: 1009418 Legal  General (Portfolio Management Services) Limited:
2457525 Legal  General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers
shown. You can check this at www.fsa.gov.uk/register

Legal  General Partnership Services Limited: 300792 Legal  General
Assurance Society Limited: 117659 Legal  General (Unit Trust Managers)
Limited: 119273 Legal  General (Portfolio Management Services) Limited:
146786 Legal  General Insurance Limited: 202050

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


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


Re: [Wicket-user] Best way to set the focus on a form's TextField

2007-06-15 Thread Frank Bille

(Link a little long so here's a shorter one: http://tinyurl.com/3d9sja)

Frank

On 6/15/07, Frank Bille [EMAIL PROTECTED] wrote:


I have been playing around with it as well. Untill now I have come up with
the following:


http://svn.teachus.dk/browse/TeachUs/dk.teachus/trunk/teachus-frontend/src/main/java/dk/teachus/frontend/components/form/DefaultFocusBehavior.java?r=root
:

But I'm not entirely sure it does what I want. I would also like to be
able to attach it to more than one field and then it's the first field
without a value that receives focus. Perhaps..

Frank


On 6/15/07, Seldon, Richard [EMAIL PROTECTED] wrote:

  Would be interested to know of any standard way to handle this but it
 is easy enough to roll your own with a few lines of code. Perhaps try the
 following:

 1) Set up a FocusBehavior interface that provides a getDefaultField()
 method.
 2) Create a SetFocusVisitor that implements wicket.Component.IVisitorand 
traverses child nodes looking for FocusBehaviour
 3) Get the markup id from component implementing FocusBehavior and use
 bodycontainer to append DOM node lookup into body element onload attribute
 by 4) calling getElementByid(yourMarkup).focus()



 -Original Message-
 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] Behalf Of *Francisco Diaz
 Trepat - gmail
 *Sent:* 14 June 2007 21:58
 *To:* wicket-user@lists.sourceforge.net
 *Subject:* [Wicket-user] Best way to set the focus on a form's TextField

 Hi all,

 I have a login form and want to set the focus on the user name field as
 soon as it is displayed. As it is to say on the document load event.

 I've read some on nabble but it didn't quite understand the best way.

 Can someone guide me a bit?

 Best regards,

 f(t)

 ps: elco elco please the book, elco elco pleae the book
 /cantito_argentino



 This e-mail (and any attachments) may contain privileged and/or
 confidential information. If you are not the intended recipient please do
 not disclose, copy, distribute, disseminate or take any action in reliance
 on it. If you have received this message in error please reply and tell us
 and then delete it. Should you wish to communicate with us by e-mail we
 cannot guarantee the security of any data outside our own computer systems.
 For the protection of Legal  General's systems and staff, incoming emails
 will be automatically scanned.

 Any information contained in this message may be subject to applicable
 terms and conditions and must not be construed as giving investment advice
 within or outside the United Kingdom.

 The following companies are subsidiary companies of the Legal  General
 Group Plc which are authorised and regulated by the Financial Services
 Authority for advising and arranging the products shown: Legal  General
 Partnership Services Limited (insurance and mortgages), Legal  General
 Insurance Limited (insurance), Legal  General Assurance Society Limited
 (life assurance, pensions and investments), Legal  General Unit Trust
 Managers Limited and Legal  General Portfolio Management Services Limited
 (investments).

 They are registered in England under numbers shown.
 The registered office is Temple Court, 11 Queen Victoria Street, London
 EC4N 4TP.

 Legal  General Partnership Services Limited: 5045000 Legal  General
 Assurance Society Limited: 166055 Legal  General (Unit Trust Managers)
 Limited: 1009418 Legal  General (Portfolio Management Services) Limited:
 2457525 Legal  General Insurance Limited: 423930

 They are registered with the Financial Services Authority under numbers
 shown. You can check this at www.fsa.gov.uk/register

 Legal  General Partnership Services Limited: 300792 Legal  General
 Assurance Society Limited: 117659 Legal  General (Unit Trust Managers)
 Limited: 119273 Legal  General (Portfolio Management Services) Limited:
 146786 Legal  General Insurance Limited: 202050


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



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


Re: [Wicket-user] AjaxSubmitButton - Cancel

2007-06-15 Thread Seldon, Richard
John, igor has given you a solution but i wanted to add that you do have
alternatives if absolutely required. when writing UI common components like
perhaps and Add / Remove button panel with an ajax add and ajax remove
button you 'may' feel disinclined to swap over to going for a ajaxlink
 
if that's the case you could try the following:-
 
1) Extend wicket.markup.html.form.Form and override the protected void
validate() method.
2) Do something like super.validate() and then next have a custom
skipValidation() method that gets called to determine whether to can the
validation results or not. Note that super.validate() is called because
otherwise some of the state won't be present in ajax response...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Igor Vaynberg
Sent: 14 June 2007 22:45
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AjaxSubmitButton - Cancel


ah, well, thats easy

use ajaxlink instead of ajaxsubmitbutton - since you do not want to submit
anything, in onclick clear the bean the form is attached to and hide the
form.

-igor



On 6/14/07, John Carlson  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

You are right about that not making sense.  Maybe the third time will be the
charmÂ…  Here are the steps I'm dealing with.

 

1. user clicks on link that sets the input form to visible

 

2. user fills out half the form and then decides to press the cancel button
(an AjaxSubmitButton)

 

3. wicket doesn't process the cancel because not all the required fields are
filled in.

 

4. user fills out the rest of the form and then presses the cancel button
again

 

5. wicket sees all the required fields are filled and will now process the
cancel and hide the input form

 

6. the model is 'updated' to empty or null and the program goes on it's
merry way

 

I'm looking to cut out steps 3,4,5 and just hide the input form and set the
model to null.  Canceling is annoying if you have to fill in all the
required fields for it to work.

 

John

 

From: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
mailto:%5Bmailto:[EMAIL PROTECTED]  On Behalf
Of Igor Vaynberg
Sent: Thursday, June 14, 2007 12:47 PM 


To: wicket-user@lists.sourceforge.net
mailto:wicket-user@lists.sourceforge.net 
Subject: Re: [Wicket-user] AjaxSubmitButton - Cancel



 

you simply cannot do that, because it doesnt make sense

lets say you have add(new TextField(num, Integer.class)) and the user
enters abc. if you skip the validation how do you expect to update the
model? you cannot convert abc to an integer so how do you expect it to be
pushed into the model's integer field? 

updating the model only makes sense if the validation passed

-igor

On 6/14/07, John Carlson   mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

Yes, skip validation on cancel and still refresh the model.  That's my 
stumbling block.

John

-Original Message-
From: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
[mailto:  mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: Thursday, June 14, 2007 9:29 AM
To: wicket-user@lists.sourceforge.net
mailto:wicket-user@lists.sourceforge.net 
Subject: Re: [Wicket-user] AjaxSubmitButton - Cancel 

On 6/14/07, John Carlson  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:
 I have a form with two ajaxbuttons, submit and cancel.  The form has a
 number of textfields that validate themselves 'onblur' using 
 ajaxformcomponentupdatingbehaviour.  What is the cleanest way to have
 the cancel button ignore the validation that the submit button is
 following?   I know regular buttons have this ability via the 
 defaultformprocessing(false) but I want to update the form on cancel.
 The best I have brainstormed would be to have the cancel button
separate
 from the form and some how or the other call update on the form from 
 outside it.  Any thoughts would be appreciated.

So you want to skip validation, but update the models regardless?

Eelco

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

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

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

[Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-15 Thread Alex Objelean

Why wicket.markup.html.form.Radio component does not extend FormComponent?

I wanted to add a FormComponentUpdatingBehavior to this component and it is
not possible because it does not extend the FormComponent, but a
WebMarkupContainer.

Thank you!
-- 
View this message in context: 
http://www.nabble.com/-Question--wicket.markup.html.form.Radio-tf3926549.html#a11135460
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Best way to set the focus on a form's TextField

2007-06-15 Thread Seldon, Richard
Would be interested to know of any standard way to handle this but it is
easy enough to roll your own with a few lines of code. Perhaps try the
following:
 
1) Set up a FocusBehavior interface that provides a getDefaultField()
method.
2) Create a SetFocusVisitor that implements wicket.Component.IVisitor and
traverses child nodes looking for FocusBehaviour
3) Get the markup id from component implementing FocusBehavior and use
bodycontainer to append DOM node lookup into body element onload attribute
by 4) calling getElementByid(yourMarkup).focus()
 
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Francisco
Diaz Trepat - gmail
Sent: 14 June 2007 21:58
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Best way to set the focus on a form's TextField


Hi all, 
 
I have a login form and want to set the focus on the user name field as soon
as it is displayed. As it is to say on the document load event.
 
I've read some on nabble but it didn't quite understand the best way.
 
Can someone guide me a bit?
 
Best regards,
 
f(t)
 
ps: elco elco please the book, elco elco pleae the book /cantito_argentino



This e-mail (and any attachments) may contain privileged and/or confidential 
information. If you are not the intended recipient please do not disclose, 
copy, distribute, disseminate or take any action in reliance on it. If you have 
received this message in error please reply and tell us and then delete it. 
Should you wish to communicate with us by e-mail we cannot guarantee the 
security of any data outside our own computer systems. For the protection of 
Legal  General's systems and staff, incoming emails will be automatically 
scanned.

Any information contained in this message may be subject to applicable terms 
and conditions and must not be construed as giving investment advice within or 
outside the United Kingdom.

The following companies are subsidiary companies of the Legal  General Group 
Plc which are authorised and regulated by the Financial Services Authority for 
advising and arranging the products shown: Legal  General Partnership Services 
Limited (insurance and mortgages), Legal  General Insurance Limited 
(insurance), Legal  General Assurance Society Limited 
(life assurance, pensions and investments), Legal  General Unit Trust Managers 
Limited and Legal  General Portfolio Management Services Limited (investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 
4TP.

Legal  General Partnership Services Limited: 5045000 Legal  General Assurance 
Society Limited: 166055 Legal  General (Unit Trust Managers) Limited: 1009418 
Legal  General (Portfolio Management Services) Limited: 2457525 Legal  
General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers shown. 
You can check this at www.fsa.gov.uk/register

Legal  General Partnership Services Limited: 300792 Legal  General Assurance 
Society Limited: 117659 Legal  General (Unit Trust Managers) Limited: 119273 
Legal  General (Portfolio Management Services) Limited: 146786 Legal  General 
Insurance Limited: 202050

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


Re: [Wicket-user] Best way to set the focus on a form's TextField

2007-06-15 Thread Seldon, Richard
Frank Re. solution proposed below (with FocusBehavior) you can get the
markup id for whatever field you chose determined by how you write your
getDefaultField() method in the class implementing the interface
FocusBehaviour. One option would be to have the method traverse all relevant
form components checking their model objects for values and then return
markup for whichever one you like. You may even want to append each valid
selection into a list and use that as the basis for a rule on which gets the
focus. Hope this helps you formulate a strategy.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Frank Bille
Sent: 15 June 2007 10:07
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Best way to set the focus on a form's TextField


(Link a little long so here's a shorter one: http://tinyurl.com/3d9sja
http://tinyurl.com/3d9sja )

Frank


On 6/15/07, Frank Bille  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

I have been playing around with it as well. Untill now I have come up with
the following: 

http://svn.teachus.dk/browse/TeachUs/dk.teachus/trunk/teachus-frontend/src/m
ain/java/dk/teachus/frontend/components/form/DefaultFocusBehavior.java?r=roo
t
http://svn.teachus.dk/browse/TeachUs/dk.teachus/trunk/teachus-frontend/src/
main/java/dk/teachus/frontend/components/form/DefaultFocusBehavior.java?r=ro
ot :

But I'm not entirely sure it does what I want. I would also like to be able
to attach it to more than one field and then it's the first field without a
value that receives focus. Perhaps.. 

Frank



On 6/15/07, Seldon, Richard   mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:


Would be interested to know of any standard way to handle this but it is
easy enough to roll your own with a few lines of code. Perhaps try the
following:
 
1) Set up a FocusBehavior interface that provides a getDefaultField()
method.
2) Create a SetFocusVisitor that implements wicket.Component.IVisitor and
traverses child nodes looking for FocusBehaviour
3) Get the markup id from component implementing FocusBehavior and use
bodycontainer to append DOM node lookup into body element onload attribute
by 4) calling getElementByid(yourMarkup).focus()

 
 

-Original Message-
From: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  [mailto:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ]On Behalf Of Francisco
Diaz Trepat - gmail
Sent: 14 June 2007 21:58
To: wicket-user@lists.sourceforge.net
mailto:wicket-user@lists.sourceforge.net 
Subject: [Wicket-user] Best way to set the focus on a form's TextField


Hi all, 
 
I have a login form and want to set the focus on the user name field as soon
as it is displayed. As it is to say on the document load event.
 
I've read some on nabble but it didn't quite understand the best way.
 
Can someone guide me a bit?
 
Best regards,
 
f(t)
 
ps: elco elco please the book, elco elco pleae the book /cantito_argentino



This e-mail (and any attachments) may contain privileged and/or confidential
information. If you are not the intended recipient please do not disclose,
copy, distribute, disseminate or take any action in reliance on it. If you
have received this message in error please reply and tell us and then delete
it. Should you wish to communicate with us by e-mail we cannot guarantee the
security of any data outside our own computer systems. For the protection of
Legal  General's systems and staff, incoming emails will be automatically
scanned. 

Any information contained in this message may be subject to applicable terms
and conditions and must not be construed as giving investment advice within
or outside the United Kingdom.

The following companies are subsidiary companies of the Legal  General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal  General
Partnership Services Limited (insurance and mortgages), Legal  General
Insurance Limited (insurance), Legal  General Assurance Society Limited 
(life assurance, pensions and investments), Legal  General Unit Trust
Managers Limited and Legal  General Portfolio Management Services Limited
(investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N
4TP.

Legal  General Partnership Services Limited: 5045000 Legal  General
Assurance Society Limited: 166055 Legal  General (Unit Trust Managers)
Limited: 1009418 Legal  General (Portfolio Management Services) Limited:
2457525 Legal  General Insurance Limited: 423930 

They are registered with the Financial Services Authority under numbers
shown. You can check this at www.fsa.gov.uk/register
http://www.fsa.gov.uk/register 

Legal  General Partnership Services Limited: 300792 Legal  General
Assurance Society Limited: 117659 Legal  General (Unit Trust Managers)
Limited: 119273 Legal  General (Portfolio Management Services) Limited:
146786 Legal  General Insurance Limited: 202050 

Re: [Wicket-user] AjaxFormComponentUpdatingBehavior for DropDownChoice not working in IE

2007-06-15 Thread Javed

Your doubt is valid but dropdown is inside form.
If this was the case then it wouldnt have worked in Firefox.


Frank Bille wrote:
 
 Sounds weird. Could it be something with the dropdown isn't inside a
 form?
 
 
 Frank
 
 
 On 6/14/07, Javed [EMAIL PROTECTED] wrote:



 Thanks for Reply.
 Sorry, I didnt understand term Ajax debug
 What I did or rather saw is, In FireFox when I make selection in drop
 down
 the image changes. if I see the properties of this image then it shows
 correct name of that image.
 But in case of IE, I am not getting image name.
 I found one more thing, When I select any item from drop down in IE
 onUpdate method doesnt call.
 Javascript code written on onchange for both browser is same.
 Hope, this will help u to figure out the exact problem.




 Johan Compagner wrote:
 
  what do you see in the ajax debug when you get the results?  are you
  really seeing a different url in the src?
 
  On 6/12/07, Javed [EMAIL PROTECTED] wrote:
 
  Follwing code snippet adds dropdown.
 
  private DropDownChoice getDropDown1(final Label image){
  DropDownChoice dropDown1 = new DropDownChoice(selectUser,new
  PropertyModel(model,user1),Arrays.asList(options),choiceRenderer);
 
  favsDropDown.add(new
  AjaxFormComponentUpdatingBehavior(onchange){
 
  /**
   * When Specified event took place this method gets called
   * @param target
   */
  @Override
  protected void onUpdate(AjaxRequestTarget target) {
  String imageUrl = null;
  String user = model.getUser1(); // selected user
 object
  from
  drop down
  imageUrl = getImage(user);
  imageUrl = imageUrl == null?  : imageUrl;
  model.setImageUrl(imageUrl); // sets new image model
  image.add(new AttributeModifier(src,new
  PropertyModel(model,imageUrl))); // sets image src
  target.addComponent(image);
  }
 
  });
 
  return dropDown1;
  }
 
  When dropdown selection changes I need to modify image related to it.
 
 
 
  Frank Bille wrote:
  
   Hi
  
   I haven't got experience with that error. Can you please post the
 code
   that
   is not working?
  
   Frank
  
  
   On 6/11/07, Javed [EMAIL PROTECTED] wrote:
  
  
   I need to change image according the selection made in dropdown.
   It is working fine Firefox but not in IE
  
   I tried it with onchange and onclick. It worked in Firefox but
  some
   how
   it is not working IE.
  
   Is there anything I am missing?
   Is there any other approach to achieve the same functionality with
  Ajax
   effect?
  
   --
   View this message in context:
  
 
 http://www.nabble.com/AjaxFormComponentUpdatingBehavior-for-DropDownChoice-not-working-in-IE-tf3901202.html#a11059387
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/AjaxFormComponentUpdatingBehavior-for-DropDownChoice-not-working-in-IE-tf3901202.html#a11075468
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  

Re: [Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-15 Thread Alex Objelean

Thank you Jan! Sad thing is that 1.2.x branch will never support this
feature.


Jan Kriesten-3 wrote:
 
 
 hi alex,
 
 Why wicket.markup.html.form.Radio component does not extend
 FormComponent?
 I wanted to add a FormComponentUpdatingBehavior to this component and it
 is
 not possible because it does not extend the FormComponent, but a
 WebMarkupContainer.
 
 i've got a similar issue and this topic is already being worked on:
 
 https://issues.apache.org/jira/browse/WICKET-531
 
 targeted for 1.3.0 beta 3
 
 best regards, --- jan.
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/-Question--wicket.markup.html.form.Radio-tf3926549.html#a11136736
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-15 Thread Jan Kriesten

hi alex,

 Why wicket.markup.html.form.Radio component does not extend FormComponent?
 I wanted to add a FormComponentUpdatingBehavior to this component and it is
 not possible because it does not extend the FormComponent, but a
 WebMarkupContainer.

i've got a similar issue and this topic is already being worked on:

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

targeted for 1.3.0 beta 3

best regards, --- jan.



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


Re: [Wicket-user] AjaxFormComponentUpdatingBehavior for DropDownChoice not working in IE

2007-06-15 Thread Johan Compagner

is maybe in IE the onChange method not called? Can you debug that
what happens for example if you click somewhere in the browser so that the
focus get lost from the dropdown?

Where is the onChange code attached to?? Is it attached to the right tag?

johan


On 6/15/07, Javed [EMAIL PROTECTED] wrote:



Your doubt is valid but dropdown is inside form.
If this was the case then it wouldnt have worked in Firefox.


Frank Bille wrote:

 Sounds weird. Could it be something with the dropdown isn't inside a
 form?


 Frank


 On 6/14/07, Javed [EMAIL PROTECTED] wrote:



 Thanks for Reply.
 Sorry, I didnt understand term Ajax debug
 What I did or rather saw is, In FireFox when I make selection in drop
 down
 the image changes. if I see the properties of this image then it shows
 correct name of that image.
 But in case of IE, I am not getting image name.
 I found one more thing, When I select any item from drop down in IE
 onUpdate method doesnt call.
 Javascript code written on onchange for both browser is same.
 Hope, this will help u to figure out the exact problem.




 Johan Compagner wrote:
 
  what do you see in the ajax debug when you get the results?  are you
  really seeing a different url in the src?
 
  On 6/12/07, Javed [EMAIL PROTECTED] wrote:
 
  Follwing code snippet adds dropdown.
 
  private DropDownChoice getDropDown1(final Label image){
  DropDownChoice dropDown1 = new DropDownChoice(selectUser,new
  PropertyModel(model,user1),Arrays.asList(options),choiceRenderer);
 
  favsDropDown.add(new
  AjaxFormComponentUpdatingBehavior(onchange){
 
  /**
   * When Specified event took place this method gets
called
   * @param target
   */
  @Override
  protected void onUpdate(AjaxRequestTarget target) {
  String imageUrl = null;
  String user = model.getUser1(); // selected user
 object
  from
  drop down
  imageUrl = getImage(user);
  imageUrl = imageUrl == null?  : imageUrl;
  model.setImageUrl(imageUrl); // sets new image model
  image.add(new AttributeModifier(src,new
  PropertyModel(model,imageUrl))); // sets image src
  target.addComponent(image);
  }
 
  });
 
  return dropDown1;
  }
 
  When dropdown selection changes I need to modify image related to
it.
 
 
 
  Frank Bille wrote:
  
   Hi
  
   I haven't got experience with that error. Can you please post the
 code
   that
   is not working?
  
   Frank
  
  
   On 6/11/07, Javed [EMAIL PROTECTED] wrote:
  
  
   I need to change image according the selection made in dropdown.
   It is working fine Firefox but not in IE
  
   I tried it with onchange and onclick. It worked in Firefox
but
  some
   how
   it is not working IE.
  
   Is there anything I am missing?
   Is there any other approach to achieve the same functionality
with
  Ajax
   effect?
  
   --
   View this message in context:
  
 

http://www.nabble.com/AjaxFormComponentUpdatingBehavior-for-DropDownChoice-not-working-in-IE-tf3901202.html#a11059387
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 

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

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

http://www.nabble.com/AjaxFormComponentUpdatingBehavior-for-DropDownChoice-not-working-in-IE-tf3901202.html#a11075468
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 

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

-
  This SF.net email is 

[Wicket-user] Palette problem with latest snapshot

2007-06-15 Thread shumbola

Hello,

A few days ago I've upgraded my project to the 1.3 snapshot from June 12.
Before I was using a one from May 10. Today I noticed that my page which
uses the Palette component stopped working. Anytime I launch that page it
gives me the following error:

WicketMessage: No get method defined for class: class my.beans.Role
expression: recorder

Root cause:

org.apache.wicket.WicketRuntimeException: No get method defined for class:
class my.beans.Role expression: recorder
at
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:391)
at
org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:267)
at
org.apache.wicket.util.lang.PropertyResolver.getPropertyClass(PropertyResolver.java:145)
at
org.apache.wicket.model.AbstractPropertyModel.getObjectClass(AbstractPropertyModel.java:199)
at
org.apache.wicket.markup.html.form.AbstractTextComponent.getModelType(AbstractTextComponent.java:119)
at
org.apache.wicket.markup.html.form.AbstractTextComponent.onBeforeRender(AbstractTextComponent.java:107)
at
org.apache.wicket.extensions.markup.html.form.palette.component.Recorder.onBeforeRender(Recorder.java:76)
at org.apache.wicket.Component.beforeRender(Component.java:847)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449)
at org.apache.wicket.Component.beforeRender(Component.java:857)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449)
at org.apache.wicket.Component.beforeRender(Component.java:857)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449)
at org.apache.wicket.Component.beforeRender(Component.java:857)
at org.apache.wicket.Page.renderPage(Page.java:885)
at
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:165)
at
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:59)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1037)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:255)
at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126)
...

So, I thought I've to upgrade to the latest and greatest, and did so.
Downloaded a snapshot from June 15. It still does not work, the same
exception :(
I've tried to left the latest wicket*.jar but downgrade the
wicket-extensions, it does not work. If I downgrade the wicket, then it
works as before.

What could be the problem here?

Thanks,
shumbola

-- 
View this message in context: 
http://www.nabble.com/Palette-problem-with-latest-snapshot-tf3927222.html#a11137476
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Validating Date to against Date From

2007-06-15 Thread kubino

Thanks a lot, great link ;-)


Gerolf Seitz wrote:
 
 oh, of course the methods name is validate
 also take a look at the wiki:
 http://cwiki.apache.org/WICKET/validating-related-fields.html
 
 On 6/14/07, Gerolf Seitz [EMAIL PROTECTED] wrote:

 take a look at the EqualInputValidator [0] and adapt the onValidate
 method
 to your needs.

 [0]
 http://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/validation/EqualInputValidator.java

 hth,
   gerolf


 On 6/14/07, kubino [EMAIL PROTECTED] wrote:
 
 
  Hi ,
 
  It is possible to have something like this
 
  DateTextField dateFrom = new DateTextField(someid,new
  PropertyModel(somemodel,dateFrom));
  DateTextField dateTo = new DateTextField(someid,new
  PropertyModel(somemodel,dateTo));
 
  dateTo.add(DateValidator.minimum(someModel.getDateFrom));
 
  I want to not have dateTo before date from, but this validator doesnt
  help
  me becouse it trows me null pointer exception, i looks like the minimum
  value is passed in the construction time, not dynamically getted after
  conversion. Is there a solution?
 
  Thx in advance
 
  --
  View this message in context:
 
 http://www.nabble.com/Validating-Date-to-against-Date-From-tf3920457.html#a6291
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
 
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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

-- 
View this message in context: 
http://www.nabble.com/Validating-Date-to-against-Date-From-tf3920457.html#a11137750
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] wicketstuff confluence and jira

2007-06-15 Thread Martin Funk
Any Administrator of wicketstuff confluence and jira around?

How do I create a link to
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
on
http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki

Also I haven't seen a form for creating a Wicket Contrib GMap2 project on
http://wicketstuff.org/jira/secure/Dashboard.jspa

Is that on purpose, or am I just blind?

Martin

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


Re: [Wicket-user] FireFox 1.5 macos, ajax fails..

2007-06-15 Thread Nino Saturnino Martinez Vazquez Wael
Sorry, this turned out to be wrong.. Everything are working as it should..:)

Matej Knopp wrote:
 What kind of errors?

 -Matej

 On 5/22/07, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
   
 Hi

 any had trouble with this. My Ajax calls fails with FF 1.5 on macos.
 Also following the wiki any trying the wicket examples fails or gives
 aleast a couple of errors.

 regards Nino

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

 

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


   

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


Re: [Wicket-user] 1) PropertyResolver and Lists 2) Page expiration in 1.3

2007-06-15 Thread Johan Compagner


1)
If the model is List, PropertySolver doesn't try to find fields. We are
using vectors containing public fields. In 1.2.6 this was ok.



i dont know if we really changed the property resolver behavior like tis for
1.3
Do you have a unit test that fails now that shouldn't that i can add to the
PropertyResolverTest ?


2)

Pressing any button or link causes page expiration. It seems that
sessions are not stored anywhere. newSessionStore() of WebApplication is
called every time session is needed. We tested this with very basic
WebApplication and Page:
WebApplication:
- getResourceSettings().addResourceFolder(folder); was set
WebPage:
- contains one TextField, one AjaxButton and one ListView.

Any ideas what to do?



is the Session.bind() method called for a request?
That either doesn't happen or you are constantly getting a new http session
(you loose the cookie ?)

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


Re: [Wicket-user] wicketstuff confluence and jira

2007-06-15 Thread Nino Saturnino Martinez Vazquez Wael
hmm Martijn

ive added the label component to this page:
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket+GMap+Contribution

but it does not show up on the wiki page list..

what am I doing wrong?

Martijn Dashorst wrote:
 I have also updated the wiki page with an explanation how to add your
 page to the mix:

 http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki

 Martijn


 On 6/15/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
   
 The page is generated automatically. All you have to do is label your
 page as 'component':

 Martijn

 On 6/15/07, Martin Funk [EMAIL PROTECTED] wrote:
 
 Any Administrator of wicketstuff confluence and jira around?

 How do I create a link to
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
 on
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki

 Also I haven't seen a form for creating a Wicket Contrib GMap2 project on
 http://wicketstuff.org/jira/secure/Dashboard.jspa

 Is that on purpose, or am I just blind?

 Martin

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

   
 --
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org

 


   

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


Re: [Wicket-user] wicketstuff confluence and jira

2007-06-15 Thread Martijn Dashorst
I have also updated the wiki page with an explanation how to add your
page to the mix:

http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki

Martijn


On 6/15/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 The page is generated automatically. All you have to do is label your
 page as 'component':

 Martijn

 On 6/15/07, Martin Funk [EMAIL PROTECTED] wrote:
  Any Administrator of wicketstuff confluence and jira around?
 
  How do I create a link to
  http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
  on
  http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki
 
  Also I haven't seen a form for creating a Wicket Contrib GMap2 project on
  http://wicketstuff.org/jira/secure/Dashboard.jspa
 
  Is that on purpose, or am I just blind?
 
  Martin
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org



-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] wicketstuff confluence and jira

2007-06-15 Thread Martijn Dashorst
The page is generated automatically. All you have to do is label your
page as 'component':

Martijn

On 6/15/07, Martin Funk [EMAIL PROTECTED] wrote:
 Any Administrator of wicketstuff confluence and jira around?

 How do I create a link to
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
 on
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki

 Also I haven't seen a form for creating a Wicket Contrib GMap2 project on
 http://wicketstuff.org/jira/secure/Dashboard.jspa

 Is that on purpose, or am I just blind?

 Martin

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



-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

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


[Wicket-user] 1) PropertyResolver and Lists 2) Page expiration in 1.3

2007-06-15 Thread Juha Alatalo
Hi,

We are trying to start using wicket version 1.3 and encountered some 
problems

1)
If the model is List, PropertySolver doesn't try to find fields. We are 
using vectors containing public fields. In 1.2.6 this was ok.

2)
Pressing any button or link causes page expiration. It seems that 
sessions are not stored anywhere. newSessionStore() of WebApplication is 
called every time session is needed. We tested this with very basic 
WebApplication and Page:
WebApplication:
- getResourceSettings().addResourceFolder(folder); was set
WebPage:
- contains one TextField, one AjaxButton and one ListView.

Any ideas what to do?

- Juha Alatalo



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


Re: [Wicket-user] Best way to set the focus on a form's TextField

2007-06-15 Thread Frank Bille

Hmm, yeah perhaps it should be a behavior which we should be able to add to
the form instead. And the register the components which would like to have
default focus.

I don't think it's necessary to have it as an interface which should be
implemented. It feels a little intrusive.

I'll take a look at it later to see what I can come up with.

Frank


On 6/15/07, Seldon, Richard [EMAIL PROTECTED] wrote:


 Frank Re. solution proposed below (with FocusBehavior) you can get the
markup id for whatever field you chose determined by how you write your
getDefaultField() method in the class implementing the interface
FocusBehaviour. One option would be to have the method traverse all relevant
form components checking their model objects for values and then return
markup for whichever one you like. You may even want to append each valid
selection into a list and use that as the basis for a rule on which gets the
focus. Hope this helps you formulate a strategy.

-Original Message-
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] Behalf Of *Frank Bille
*Sent:* 15 June 2007 10:07
*To:* wicket-user@lists.sourceforge.net
*Subject:* Re: [Wicket-user] Best way to set the focus on a form's
TextField

(Link a little long so here's a shorter one: http://tinyurl.com/3d9sja)

Frank

On 6/15/07, Frank Bille [EMAIL PROTECTED] wrote:

 I have been playing around with it as well. Untill now I have come up
 with the following:


 
http://svn.teachus.dk/browse/TeachUs/dk.teachus/trunk/teachus-frontend/src/main/java/dk/teachus/frontend/components/form/DefaultFocusBehavior.java?r=root
 :

 But I'm not entirely sure it does what I want. I would also like to be
 able to attach it to more than one field and then it's the first field
 without a value that receives focus. Perhaps..

 Frank


  On 6/15/07, Seldon, Richard  [EMAIL PROTECTED] wrote:

   Would be interested to know of any standard way to handle this but
  it is easy enough to roll your own with a few lines of code. Perhaps try the
  following:
 
  1) Set up a FocusBehavior interface that provides a getDefaultField()
  method.
  2) Create a SetFocusVisitor that implements wicket.Component.IVisitorand 
traverses child nodes looking for FocusBehaviour
  3) Get the markup id from component implementing FocusBehavior and use
  bodycontainer to append DOM node lookup into body element onload attribute
  by 4) calling getElementByid(yourMarkup).focus()
 
 
 
  -Original Message-
  *From:* [EMAIL PROTECTED] [mailto:
  [EMAIL PROTECTED] Behalf Of *Francisco
  Diaz Trepat - gmail
  *Sent:* 14 June 2007 21:58
  *To:* wicket-user@lists.sourceforge.net
  *Subject:* [Wicket-user] Best way to set the focus on a form's
  TextField
 
  Hi all,
 
  I have a login form and want to set the focus on the user name field
  as soon as it is displayed. As it is to say on the document load event.
 
  I've read some on nabble but it didn't quite understand the best way.
 
  Can someone guide me a bit?
 
  Best regards,
 
  f(t)
 
  ps: elco elco please the book, elco elco pleae the book
  /cantito_argentino
 
 
 
  This e-mail (and any attachments) may contain privileged and/or
  confidential information. If you are not the intended recipient please do
  not disclose, copy, distribute, disseminate or take any action in reliance
  on it. If you have received this message in error please reply and tell us
  and then delete it. Should you wish to communicate with us by e-mail we
  cannot guarantee the security of any data outside our own computer systems.
  For the protection of Legal  General's systems and staff, incoming emails
  will be automatically scanned.
 
  Any information contained in this message may be subject to applicable
  terms and conditions and must not be construed as giving investment advice
  within or outside the United Kingdom.
 
  The following companies are subsidiary companies of the Legal 
  General Group Plc which are authorised and regulated by the Financial
  Services Authority for advising and arranging the products shown: Legal 
  General Partnership Services Limited (insurance and mortgages), Legal 
  General Insurance Limited (insurance), Legal  General Assurance Society
  Limited
  (life assurance, pensions and investments), Legal  General Unit Trust
  Managers Limited and Legal  General Portfolio Management Services Limited
  (investments).
 
  They are registered in England under numbers shown.
  The registered office is Temple Court, 11 Queen Victoria Street,
  London EC4N 4TP.
 
  Legal  General Partnership Services Limited: 5045000 Legal  General
  Assurance Society Limited: 166055 Legal  General (Unit Trust Managers)
  Limited: 1009418 Legal  General (Portfolio Management Services) Limited:
  2457525 Legal  General Insurance Limited: 423930
 
  They are registered with the Financial Services Authority under
  numbers shown. You can check this at www.fsa.gov.uk/register
 
  Legal  General Partnership Services Limited: 300792 Legal  General
  

Re: [Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-15 Thread Jan Kriesten

hi alex,

 Thank you Jan! Sad thing is that 1.2.x branch will never support this
 feature.

actually, if you're up to building it from the sources yourself, modifying Radio
to work as you expect is pretty easy.

just remove the 'final' from FromComponent.getValue() and let Radio extend
FormComponent instead of WebMarkupContainer. that should be all.

regards, --- jan.


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


[Wicket-user] Copenhagen Wicket Users Group - interested?

2007-06-15 Thread Nino Saturnino Martinez Vazquez Wael
Hi Inspired by Al im writing this mail.

I think we should be enough people to make a group, however im not certain.

So please reply to this mail if interested.

Jayway will gladly host the group, providing we arent above 15 peeps or 
so(we havent got room for more:))

regards Nino

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


Re: [Wicket-user] wicketstuff confluence and jira

2007-06-15 Thread Martijn Dashorst
On 6/15/07, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 ive added the label component to this page:
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket+GMap+Contribution

 but it does not show up on the wiki page list.. what am I doing wrong?

Nothing, probably some update/refresh problem... Perhaps Al knows more
about this?

Martijn

-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] 1) PropertyResolver and Lists 2) Page expiration in 1.3

2007-06-15 Thread Juha Alatalo
Johan Compagner wrote:
 1)
 If the model is List, PropertySolver doesn't try to find fields. We are
 using vectors containing public fields. In 1.2.6 this was ok.
 
 
 i dont know if we really changed the property resolver behavior like tis 
 for 1.3

Yes you have :). private final static IGetAndSet getGetAndSetter(String 
exp, Class clz) has changed quite a lot.

 Do you have a unit test that fails now that shouldn't that i can add to 
 the PropertyResolverTest ?

No I don't.

 is the Session.bind() method called for a request?
 That either doesn't happen or you are constantly getting a new http 
 session (you loose the cookie ?)
 

Thanks. I had blocked cookies on my test site for some reason. Why 
cookies are needed in 1.3? In 1.2 that wasn't the case, was it?

- Juha


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


Re: [Wicket-user] wicketstuff confluence and jira

2007-06-15 Thread Martin Funk
Now, that'll do for the confluence (after the refresh). What about jira?

Martin

Martijn Dashorst schrieb:
 The page is generated automatically. All you have to do is label your
 page as 'component':

 Martijn

 On 6/15/07, Martin Funk [EMAIL PROTECTED] wrote:
   
 Any Administrator of wicketstuff confluence and jira around?

 How do I create a link to
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
 on
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki

 Also I haven't seen a form for creating a Wicket Contrib GMap2 project on
 http://wicketstuff.org/jira/secure/Dashboard.jspa

 Is that on purpose, or am I just blind?

 Martin

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

 


   


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


Re: [Wicket-user] Copenhagen Wicket Users Group - interested?

2007-06-15 Thread Frank Bille

Was just thinking the same :)

I also think we can borrow a room at Avaleo (ITU's meeting rooms).

Frank


On 6/15/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:


Hi Inspired by Al im writing this mail.

I think we should be enough people to make a group, however im not
certain.

So please reply to this mail if interested.

Jayway will gladly host the group, providing we arent above 15 peeps or
so(we havent got room for more:))

regards Nino

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

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


Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?

2007-06-15 Thread monkey woo

I would definitely be very interested, I haven't actually finished building
my wicket site, but i would be very very keen to pick up any advice etc.

I would be particularly keen to hear about using wicket on very high traffic
sites and how well it scales etc.

Rhys



Al Maw wrote:
 
 
 Hello everyone,
 
 As Wicket grows in popularity, we bump into increasing numbers of UK 
 users. We think there are enough of you out there to set up a 
 London-based users group, so this e-mail is to gauge interest in that.
 
 We're proposing an initial meet on Tuesday 3rd July in a reasonably 
 central location. Although I'm sure there will be plenty of room for 
 having a pint and a chat, we'd also like to bring some real value to 
 people, so are proposing to kick off with a couple of short talks.
 
 There will probably be an introductory talk and a more advanced one. 
 Topics are yet to be decided - please tell us if you have any ideas on 
 what you'd like covering, or if would like to contribute a short talk, 
 presentation, demo or whatever else.
 
 For example, we could cover:
 
 Beginner - Aimed at new users; basic Models and validation.
 Some sprinklings of AJAX.
 
 Advanced - Implementing custom form validators, invoking them using
 AJAX, using CSS component highlighting for errors, making
 it all automatic for a given Form.
 
 If any of that sounds like your kind of thing, please tell us!
 
 If enough people are interested to make this a goer, we'll organise a 
 venue and sign-up list some time next week. Just hit reply and post a 
 yes please or similar on this thread.
 
 
 Best regards,
 
 Al
 
 -- 
 Alastair Maw
 Wicket-biased blog at http://herebebeasties.com
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/London-Wicket-Users-Group%2C-July-3rd---interested--tf3924587.html#a11139731
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] BodyContainer gone?

2007-06-15 Thread Andrew Klochkov
I updated to 1.3 beta1 and can't compile my projects due to the
BodyContainer class absense. Earlier I used the following code to add
some scripts execution in the body onload handler:

getBodyContainer().addOnLoadModifier(loadRegions(); loadCities();, null);

I can't write it in the markup because the page is extended from the
parent page and this child page doesn't have body tag in the markup at
all. What is the new right way for doing such things??

-- 
Andrew Klochkov


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


Re: [Wicket-user] BodyContainer gone?

2007-06-15 Thread Igor Vaynberg

iheadercontributor works on component level, since both panel and webpage
are components it should work.

http://cwiki.apache.org/WICKET/migrate-13.html

-igor


On 6/15/07, Andrew Klochkov [EMAIL PROTECTED] wrote:


Igor,

I saw your comment in svn about panels and IHeaderContributor, but is it
OK for a WebPage to implement it?

Sorry but where can I find migration notes? Can't find them in svn.

Igor Vaynberg wrote:
 see migration notes, mainly iheadercontributor

 -igor


 On 6/15/07, *Andrew Klochkov* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 I updated to 1.3 beta1 and can't compile my projects due to the
 BodyContainer class absense. Earlier I used the following code to
add
 some scripts execution in the body onload handler:

 getBodyContainer().addOnLoadModifier(loadRegions();
 loadCities();, null);

 I can't write it in the markup because the page is extended from the
 parent page and this child page doesn't have body tag in the markup
at
 all. What is the new right way for doing such things??

 --
 Andrew Klochkov



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


 


-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 

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



--
Andrew Klochkov


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

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


Re: [Wicket-user] Best way to set the focus on a form's TextField

2007-06-15 Thread Francisco Diaz Trepat - gmail

I just saw the code.

I think this should be an easy property on any EDITABLE field. g.e.:

TextField userIdField = new TextField(userId);

userIdField.setFocus();

may be throw some tab order olso. je

How about this, can some one from development share a comment?

Is this notion or idea correct?

regards,

f(t)

PS: I am adding wicket-dev if this is also not proper please let me know.


On 6/15/07, Frank Bille [EMAIL PROTECTED] wrote:


Hmm, yeah perhaps it should be a behavior which we should be able to add
to the form instead. And the register the components which would like to
have default focus.

I don't think it's necessary to have it as an interface which should be
implemented. It feels a little intrusive.

I'll take a look at it later to see what I can come up with.

Frank


On 6/15/07, Seldon, Richard  [EMAIL PROTECTED] wrote:

  Frank Re. solution proposed below (with FocusBehavior) you can get the
 markup id for whatever field you chose determined by how you write your
 getDefaultField() method in the class implementing the interface
 FocusBehaviour. One option would be to have the method traverse all relevant
 form components checking their model objects for values and then return
 markup for whichever one you like. You may even want to append each valid
 selection into a list and use that as the basis for a rule on which gets the
 focus. Hope this helps you formulate a strategy.

 -Original Message-
 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] Behalf Of *Frank Bille
 *Sent:* 15 June 2007 10:07
 *To:* wicket-user@lists.sourceforge.net
 *Subject:* Re: [Wicket-user] Best way to set the focus on a form's
 TextField

 (Link a little long so here's a shorter one: http://tinyurl.com/3d9sja)

 Frank

 On 6/15/07, Frank Bille [EMAIL PROTECTED] wrote:
 
  I have been playing around with it as well. Untill now I have come up
  with the following:
 
 
  
http://svn.teachus.dk/browse/TeachUs/dk.teachus/trunk/teachus-frontend/src/main/java/dk/teachus/frontend/components/form/DefaultFocusBehavior.java?r=root
  :
 
  But I'm not entirely sure it does what I want. I would also like to be
  able to attach it to more than one field and then it's the first field
  without a value that receives focus. Perhaps..
 
  Frank
 
 
   On 6/15/07, Seldon, Richard  [EMAIL PROTECTED] wrote:
 
Would be interested to know of any standard way to handle this
   but it is easy enough to roll your own with a few lines of code. Perhaps 
try
   the following:
  
   1) Set up a FocusBehavior interface that provides a
   getDefaultField() method.
   2) Create a SetFocusVisitor that implements
   wicket.Component.IVisitor and traverses child nodes looking for
   FocusBehaviour
   3) Get the markup id from component implementing FocusBehavior and
   use bodycontainer to append DOM node lookup into body element onload
   attribute by 4) calling getElementByid(yourMarkup).focus()
  
  
  
   -Original Message-
   *From:* [EMAIL PROTECTED] [mailto:
   [EMAIL PROTECTED] Behalf Of *Francisco
   Diaz Trepat - gmail
   *Sent:* 14 June 2007 21:58
   *To:* wicket-user@lists.sourceforge.net
   *Subject:* [Wicket-user] Best way to set the focus on a form's
   TextField
  
   Hi all,
  
   I have a login form and want to set the focus on the user name field
   as soon as it is displayed. As it is to say on the document load event.
  
   I've read some on nabble but it didn't quite understand the best
   way.
  
   Can someone guide me a bit?
  
   Best regards,
  
   f(t)
  
   ps: elco elco please the book, elco elco pleae the book
   /cantito_argentino
  
  
  
   This e-mail (and any attachments) may contain privileged and/or
   confidential information. If you are not the intended recipient please do
   not disclose, copy, distribute, disseminate or take any action in reliance
   on it. If you have received this message in error please reply and tell us
   and then delete it. Should you wish to communicate with us by e-mail we
   cannot guarantee the security of any data outside our own computer 
systems.
   For the protection of Legal  General's systems and staff, incoming emails
   will be automatically scanned.
  
   Any information contained in this message may be subject to
   applicable terms and conditions and must not be construed as giving
   investment advice within or outside the United Kingdom.
  
   The following companies are subsidiary companies of the Legal 
   General Group Plc which are authorised and regulated by the Financial
   Services Authority for advising and arranging the products shown: Legal 
   General Partnership Services Limited (insurance and mortgages), Legal 
   General Insurance Limited (insurance), Legal  General Assurance Society
   Limited
   (life assurance, pensions and investments), Legal  General Unit
   Trust Managers Limited and Legal  General Portfolio Management Services
   Limited (investments).
  
   They are registered in England under numbers shown.
   The 

Re: [Wicket-user] wicketstuff confluence and jira

2007-06-15 Thread Al Maw
Martijn Dashorst wrote:
 On 6/15/07, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
 ive added the label component to this page:
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket+GMap+Contribution

 but it does not show up on the wiki page list.. what am I doing wrong?
 
 Nothing, probably some update/refresh problem... Perhaps Al knows more
 about this?

Apparently, it only shows five results by default. Now fixed. ;-)

Regards,

Al

-- 
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

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


Re: [Wicket-user] BodyContainer gone?

2007-06-15 Thread Andrew Klochkov
Igor,

I saw your comment in svn about panels and IHeaderContributor, but is it
OK for a WebPage to implement it?

Sorry but where can I find migration notes? Can't find them in svn.

Igor Vaynberg wrote:
 see migration notes, mainly iheadercontributor

 -igor


 On 6/15/07, *Andrew Klochkov* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 I updated to 1.3 beta1 and can't compile my projects due to the
 BodyContainer class absense. Earlier I used the following code to add
 some scripts execution in the body onload handler:

 getBodyContainer().addOnLoadModifier(loadRegions();
 loadCities();, null);

 I can't write it in the markup because the page is extended from the
 parent page and this child page doesn't have body tag in the markup at
 all. What is the new right way for doing such things??

 --
 Andrew Klochkov


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


 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 

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


-- 
Andrew Klochkov


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


Re: [Wicket-user] Convertes Hell (Wicket 1.2.x)

2007-06-15 Thread Eelco Hillenius
 This is really too complex to do a trivial job like a Date --- String
 conversion .

We agree, and this is why we changed (simplified) it in Wicket 1.3.

 Exists a better and simpler way to override the default date-string
 conversion ?

Not in 1.2 I'm afraid. In some cases SimpleConverterAdapter can ease
the pain a bit, but that's written with components that override
getConverter in mind.

Eelco

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


Re: [Wicket-user] 1) PropertyResolver and Lists 2) Page expiration in 1.3

2007-06-15 Thread Eelco Hillenius
 Thanks. I had blocked cookies on my test site for some reason. Why
 cookies are needed in 1.3? In 1.2 that wasn't the case, was it?

It shouldn't be the case now either; links should always be rewritten
so that it includes the jsessionid if the cookie is not available (the
actual rewriting is done by the servlet container btw).

I just tested the site I'm working off and turned cookies off and it
works fine. Can you track a little bit further where your problem
comes from?

Eelco

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


Re: [Wicket-user] BodyContainer gone?

2007-06-15 Thread Andrew Klochkov
Thanks! Works like a charm!

Igor Vaynberg wrote:
 iheadercontributor works on component level, since both panel and
 webpage are components it should work.

 http://cwiki.apache.org/WICKET/migrate-13.html

 -igor


 On 6/15/07, *Andrew Klochkov* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Igor,

 I saw your comment in svn about panels and IHeaderContributor, but
 is it
 OK for a WebPage to implement it?

 Sorry but where can I find migration notes? Can't find them in svn.

 Igor Vaynberg wrote:
  see migration notes, mainly iheadercontributor
 
  -igor
 
 
  On 6/15/07, *Andrew Klochkov* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  I updated to 1.3 beta1 and can't compile my projects due to the
  BodyContainer class absense. Earlier I used the following
 code to add
  some scripts execution in the body onload handler:
 
  getBodyContainer().addOnLoadModifier(loadRegions();
  loadCities();, null);
 
  I can't write it in the markup because the page is extended
 from the
  parent page and this child page doesn't have body tag in the
 markup at
  all. What is the new right way for doing such things??
 
  --
  Andrew Klochkov
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
 take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 

 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
 
 

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


 --
 Andrew Klochkov


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


 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 

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


-- 
Andrew Klochkov


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


Re: [Wicket-user] Convertes Hell (Wicket 1.2.x)

2007-06-15 Thread Seldon, Richard
Paolo  - You could try creating your own component and pass a
SimpleDateFormat object (custom mask) into the constructor of this custom
component. In addition, when you assign this component as a constructor
argument to the DatePicker it will use this mask for output. You can
deconstruct the Date object back end if required back into string with same
mask formatting - maybe to be part of a SQL WhereClauseGenerator etc
 
I've attached an example where we use a custom DateTimeTextField for this
purpose and override the getConverter method with the DateTimeConverter
class (also attached). It makes use of wicket's SimpleConverterAdapter
class. Hope this helps.
 
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paolo Di
Tommaso
Sent: 15 June 2007 15:18
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Convertes Hell (Wicket 1.2.x)


I need to replace the default Wicket Date conversion with a custom one to
override the default format for dates. 

To do that I've made something like that in my wicket application : 


  getApplicationSettings().setConverterFactory( new IConverterFactory() {
public IConverter newConverter(Locale locale) {
return new MyConverter() ;
} }  );


Where: 


public class MyConverter extends Converter {

public MyConverter() { 
super();
set(Date.class, new MyDateConverter());
set(String.class, new MyStringConverter() );
}

public MyConverter(final Locale locale)
{
this();
setLocale(locale);
}

}

public class MyDateConverter extends AbstractConverter {
   
protected Class getTargetType()
{
return Date.class;
}

public Object convert(final Object value, Locale locale)
{ 
return parse(MY_DATE_FORMAT, value);
}
}

public class MyStringConverter extends AbstractConverter {   
  /* 
   * ... that requires also an extra class MyDateToStringConverter .. 
   */ 
}


This is really too complex to do a trivial job like a Date --- String
conversion . 

Exists a better and simpler way to override the default date-string
conversion ? 

Thank you, 

Paolo Di Tommaso





This e-mail (and any attachments) may contain privileged and/or confidential 
information. If you are not the intended recipient please do not disclose, 
copy, distribute, disseminate or take any action in reliance on it. If you have 
received this message in error please reply and tell us and then delete it. 
Should you wish to communicate with us by e-mail we cannot guarantee the 
security of any data outside our own computer systems. For the protection of 
Legal  General's systems and staff, incoming emails will be automatically 
scanned.

Any information contained in this message may be subject to applicable terms 
and conditions and must not be construed as giving investment advice within or 
outside the United Kingdom.

The following companies are subsidiary companies of the Legal  General Group 
Plc which are authorised and regulated by the Financial Services Authority for 
advising and arranging the products shown: Legal  General Partnership Services 
Limited (insurance and mortgages), Legal  General Insurance Limited 
(insurance), Legal  General Assurance Society Limited 
(life assurance, pensions and investments), Legal  General Unit Trust Managers 
Limited and Legal  General Portfolio Management Services Limited (investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 
4TP.

Legal  General Partnership Services Limited: 5045000 Legal  General Assurance 
Society Limited: 166055 Legal  General (Unit Trust Managers) Limited: 1009418 
Legal  General (Portfolio Management Services) Limited: 2457525 Legal  
General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers shown. 
You can check this at www.fsa.gov.uk/register

Legal  General Partnership Services Limited: 300792 Legal  General Assurance 
Society Limited: 117659 Legal  General (Unit Trust Managers) Limited: 119273 
Legal  General (Portfolio Management Services) Limited: 146786 Legal  General 
Insurance Limited: 202050



DateTimeTextField.java
Description: Binary data


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


Re: [Wicket-user] Convertes Hell (Wicket 1.2.x)

2007-06-15 Thread Charlie Dobbie
For straightforward on-page Date formatting, I suggest Databinder's
DateLabel component:

http://preview.tinyurl.com/3cveh5

But for site-wide format handling in 1.2.x, there's no magic bullet at
the moment.  Roll on 1.3.0 :-)

Charlie.


On 6/15/07, Seldon, Richard [EMAIL PROTECTED] wrote:


 Paolo  - You could try creating your own component and pass a
 SimpleDateFormat object (custom mask) into the constructor of this custom
 component. In addition, when you assign this component as a constructor
 argument to the DatePicker it will use this mask for output. You can
 deconstruct the Date object back end if required back into string with same
 mask formatting - maybe to be part of a SQL WhereClauseGenerator etc

 I've attached an example where we use a custom DateTimeTextField for this
 purpose and override the getConverter method with the DateTimeConverter
 class (also attached). It makes use of wicket's SimpleConverterAdapter
 class. Hope this helps.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf
 Of Paolo Di Tommaso
 Sent: 15 June 2007 15:18
 To: wicket-user@lists.sourceforge.net
 Subject: [Wicket-user] Convertes Hell (Wicket 1.2.x)

 I need to replace the default Wicket Date conversion with a custom one to
 override the default format for dates.

 To do that I've made something like that in my wicket application :


   getApplicationSettings().setConverterFactory( new
 IConverterFactory() {
 public IConverter newConverter(Locale locale) {
 return new MyConverter() ;
 } }  );


 Where:


 public class MyConverter extends Converter {

 public MyConverter() {
 super();
 set(Date.class, new MyDateConverter());
 set(String.class, new MyStringConverter() );
 }

 public MyConverter(final Locale locale)
 {
 this();
 setLocale(locale);
 }

 }

 public class MyDateConverter extends AbstractConverter {

 protected Class getTargetType()
 {
 return Date.class;
 }

 public Object convert(final Object value, Locale locale)
 {
 return parse(MY_DATE_FORMAT, value);
 }
 }

 public class MyStringConverter extends AbstractConverter { 
   /*
* ... that requires also an extra class MyDateToStringConverter ..
*/
 }


 This is really too complex to do a trivial job like a Date --- String
 conversion .

 Exists a better and simpler way to override the default date-string
 conversion ?

 Thank you,

 Paolo Di Tommaso



  This e-mail (and any attachments) may contain privileged and/or
 confidential information. If you are not the intended recipient please do
 not disclose, copy, distribute, disseminate or take any action in reliance
 on it. If you have received this message in error please reply and tell us
 and then delete it. Should you wish to communicate with us by e-mail we
 cannot guarantee the security of any data outside our own computer systems.
 For the protection of Legal  General's systems and staff, incoming emails
 will be automatically scanned.

  Any information contained in this message may be subject to applicable
 terms and conditions and must not be construed as giving investment advice
 within or outside the United Kingdom.

  The following companies are subsidiary companies of the Legal  General
 Group Plc which are authorised and regulated by the Financial Services
 Authority for advising and arranging the products shown: Legal  General
 Partnership Services Limited (insurance and mortgages), Legal  General
 Insurance Limited (insurance), Legal  General Assurance Society Limited
  (life assurance, pensions and investments), Legal  General Unit Trust
 Managers Limited and Legal  General Portfolio Management Services Limited
 (investments).

  They are registered in England under numbers shown.
  The registered office is Temple Court, 11 Queen Victoria Street, London
 EC4N 4TP.

  Legal  General Partnership Services Limited: 5045000 Legal  General
 Assurance Society Limited: 166055 Legal  General (Unit Trust Managers)
 Limited: 1009418 Legal  General (Portfolio Management Services) Limited:
 2457525 Legal  General Insurance Limited: 423930

  They are registered with the Financial Services Authority under numbers
 shown. You can check this at www.fsa.gov.uk/register

  Legal  General Partnership Services Limited: 300792 Legal  General
 Assurance Society Limited: 117659 Legal  General (Unit Trust Managers)
 Limited: 119273 Legal  General (Portfolio Management Services) Limited:
 146786 Legal  General Insurance Limited: 202050

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

Re: [Wicket-user] Convertes Hell (Wicket 1.2.x)

2007-06-15 Thread Francisco Diaz Trepat - gmail

I use the wicket-datetime package.  in there, you'll find the DateTextField:
DateTextField myDate = DateTextField.forDatePattern(myDate, dd.MM.yy);

wicket.extensions.markup.html.form.DateTextField

Hope this help,


f(t)


On 6/15/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:


I need to replace the default Wicket Date conversion with a custom one to
override the default format for dates.

To do that I've made something like that in my wicket application :


  getApplicationSettings().setConverterFactory( new IConverterFactory() {
public IConverter newConverter(Locale locale) {
return new MyConverter() ;
} }  );


Where:


public class MyConverter extends Converter {

public MyConverter() {
super();
set(Date.class, new MyDateConverter());
set(String.class, new MyStringConverter() );
}

public MyConverter(final Locale locale)
{
this();
setLocale(locale);
}

}

public class MyDateConverter extends AbstractConverter {

protected Class getTargetType()
{
return Date.class;
}

public Object convert(final Object value, Locale locale)
{
return parse(MY_DATE_FORMAT, value);
}
}

public class MyStringConverter extends AbstractConverter { 
  /*
   * ... that requires also an extra class MyDateToStringConverter ..
   */
}


This is really too complex to do a trivial job like a Date --- String
conversion .

Exists a better and simpler way to override the default date-string
conversion ?

Thank you,

Paolo Di Tommaso


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


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


Re: [Wicket-user] Convertes Hell (Wicket 1.2.x)

2007-06-15 Thread Eelco Hillenius
On 6/15/07, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
 I use the wicket-datetime package.  in there, you'll find the DateTextField:
 DateTextField myDate = DateTextField.forDatePattern(myDate, dd.MM.yy);

Wicket 1.3 only though :)

Eelco

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


[Wicket-user] Live Examples

2007-06-15 Thread Stefan Lindner
The live examples link from www.wicketframework.org points to
http://www.wicket-library.com/wicket-examples
This site shows Proxy Error The document has moved here
[http://www.kattare.com/error502.kvws];


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


Re: [Wicket-user] Live Examples

2007-06-15 Thread Gerolf Seitz

i don't know what the original wicket-examples contained,
but if you're looking for some examples, www.wicketstuff.org/wicket13/ might
be a good start...

On 6/15/07, Stefan Lindner [EMAIL PROTECTED] wrote:


The live examples link from www.wicketframework.org points to
http://www.wicket-library.com/wicket-examples
This site shows Proxy Error The document has moved here
[http://www.kattare.com/error502.kvws];


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

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


[Wicket-user] Location of css, images, js files

2007-06-15 Thread Tauren Mills
Hello,

For a wicket 1.2 app, I've located my html files in a different
location than the class files, as decribed here:
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html

This works fine.  But I'm finding that css, images, and js files are
not being located unless I put them into the web root folder (where
the HTML files are).  I want js files in webroot/js, css in
webroot/css, and images in webroot/images.

I've been able to relocate some CSS files by adding more paths to the
resourceFinder:

CompoundResourceStreamLocator locator =
(CompoundResourceStreamLocator)getResourceSettings().getResourceStreamLocator();
WebApplicationPath resourceFinder = (WebApplicationPath)
getResourceSettings().getResourceFinder();
resourceFinder.add(web);
resourceFinder.add(web/css);
locator.add(0, new MyPageResourceStreamLocator(resourceFinder));

This allows me to have HomePage.html in web and HomePage.css in
web/css.  But if I reference images from the css files, I can't use a
path of ../images/logo.png.  Instead, I've had to put the css images
into the css folder.

I've noticed that what I did above also allows me to move my
properties files into the webroot as well.

What is the best solution to this? Am I going in the right direction?
It seems like if I was to add all these paths (web, web/css,
web/images, web/js, web/properties) to the resourceFinder, it  would
slow down the application with constant searching.

My goal is to allow a client with minimal web design skills to manage
the html, css, image, and properties files with minimal risk of
damaging the application.  I'd like the java class files to be located
in a separate location.  And I'd like the folder structure of the
webroot to be clean and make sense to the designer.

Please let me know if what I'm doing is the right thing.  If not, what
should I do?  When I have a good and solid solution to this, I'll add
the information to the wiki.

Thanks,
Tauren

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


[Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Ken Leung

Is there a way to trap the http session expires so that I can do some of my
own house keeping stuff in my application ?

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


Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Eelco Hillenius
Yep. In Wicket 1.3 the default session store implementations have
#onUnbind which should be called automatically with either an expiry
or an explicit invalidation. If you don't extend from the abstract
session store class (AbstractHttpSessionStore), you have to implement
something yourself.

Eelco


On 6/15/07, Ken Leung [EMAIL PROTECTED] wrote:
 Is there a way to trap the http session expires so that I can do some of my
 own house keeping stuff in my application ?

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



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


Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Ken Leung

sounds good, but can it be done in 1.2.6 ?

thx



On 6/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Yep. In Wicket 1.3 the default session store implementations have
#onUnbind which should be called automatically with either an expiry
or an explicit invalidation. If you don't extend from the abstract
session store class (AbstractHttpSessionStore), you have to implement
something yourself.

Eelco


On 6/15/07, Ken Leung [EMAIL PROTECTED] wrote:
 Is there a way to trap the http session expires so that I can do some of
my
 own house keeping stuff in my application ?

 thx

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



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

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


Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Eelco Hillenius
Not sure from the top of my head (don't have the project checked out
here), but I think so... if the HttpSessionStore (the default in
Wicket 1.2) has onUnbind, it should do that.

Eelco

On 6/15/07, Ken Leung [EMAIL PROTECTED] wrote:
 sounds good, but can it be done in 1.2.6 ?

 thx




 On 6/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Yep. In Wicket 1.3 the default session store implementations have
  #onUnbind which should be called automatically with either an expiry
  or an explicit invalidation. If you don't extend from the abstract
  session store class (AbstractHttpSessionStore), you have to implement
  something yourself.
 
  Eelco
 
 
  On 6/15/07, Ken Leung  [EMAIL PROTECTED] wrote:
   Is there a way to trap the http session expires so that I can do some of
 my
   own house keeping stuff in my application ?
  
   thx
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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



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


Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Ken Leung

yes, looks like it does.  thx, i 'll give it a try.




On 6/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Not sure from the top of my head (don't have the project checked out
here), but I think so... if the HttpSessionStore (the default in
Wicket 1.2) has onUnbind, it should do that.

Eelco

On 6/15/07, Ken Leung [EMAIL PROTECTED] wrote:
 sounds good, but can it be done in 1.2.6 ?

 thx




 On 6/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Yep. In Wicket 1.3 the default session store implementations have
  #onUnbind which should be called automatically with either an expiry
  or an explicit invalidation. If you don't extend from the abstract
  session store class (AbstractHttpSessionStore), you have to implement
  something yourself.
 
  Eelco
 
 
  On 6/15/07, Ken Leung  [EMAIL PROTECTED] wrote:
   Is there a way to trap the http session expires so that I can do
some of
 my
   own house keeping stuff in my application ?
  
   thx
  

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

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



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



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

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


Re: [Wicket-user] wicket-contrib-gmap2

2007-06-15 Thread Martin Funk
Iulian Costan schrieb:
 yap, well done, also maybe we can put together the effort and improve 
 things.
yeah, right on wicket-contrib-gmap2 is the most constructive comment I 
was able to give on wicket-contrib-gmap.
Do a diff -r wicket-contrib-gmap wicket-contrib-gmap2 and it'll 
precisely show which parts of the code I thought needed to be changed.
Pick the parts you like and merge em. After all its all Apache Licensed.

Now back to serious:
Some things that looked odd to me in wcg:

There can be only one gmap on a page. Now this might look like a rather 
picky argument but the code that's the reason for this, shows that it 
might be a reason for other problems too.
Line 73 of GMapInitializer.java
StringBuffer buffer = new StringBuffer(var googleMap = 
null;\n).append(
The name of the JavaScritp variable holding the GMap is hardcoded into a 
String in the Java code, ergo only one GMap per page.
Looking further into the code one can see that a lot of JavaScript code 
fragments are hardcoded Strings in the Java code.
This is done for a reason. The project ought to be able to generate the 
definitions of the functions that set up the GMap, its Handlers and its 
Overlays at runtime. So that when the state of the GMap changes the 
needed function definitions are send over net and are triggered by 
wicket-ajax onSuccessScript on  the client browser.
When I first saw that, being an absolute JavaScript newbie, I thought 
its a cool trick and gives one a lot of flexibility. It's not lazy 
loading, it's lazy definition. The server can wait till the user clicks 
before the function implementing the maps behaviour, has to be defined. 
That's sort of neat.
The downside of this, is that all this JavaScript code has to be 
transfered over the net. And if you look at it its a lot of redundant 
looking code, when one Overlay is added the definitions of all the 
others is send over the net too. When the server is on localhost this 
might not hurt, but I fear that the generated traffic might be too much 
for a dsl-line.
Now becoming a JavaScript freshman, I think all that is not needed. Even 
though wicket allows to send JS-code around, I think a project shouldn't 
rely on it heavily. Wicket as a framework has to provide an JS-API for a 
problem domain it can't foresee, in most wicket projects the JS-problem 
domain is well defined. In this case a JS-file containing all the needed 
classes and function definitions should be provided. JS-function 
definitions are not meant to be shoved around the net, but JS-function 
calls are.

It's the odd things, that inspire,

Martin

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


Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-06-15 Thread Sean Sullivan

I was unable to get my Wicket 1.3 application to run in Websphere 6.0.2.13

After upgrading from Websphere 6.0.2.13 to Websphere 6.0.2.17, my
Wicket 1.3application is running perfectly.

Wicket 1.3 users should avoid Websphere 6.0.2.13...

Sean


On 5/24/07, Sean Sullivan [EMAIL PROTECTED] wrote:


Hello,

Is anybody using Wicket 1.3 beta 1 in a Websphere 6.x environment?

I am running Websphere 6.0.2.13 and I'm having some trouble with my
application.   It appears that the WicketFilter
is calling sendRedirect repeatedly.  I am unable to view any of the pages
in my application because the filter always
responds with a redirect code.

I'm open to any suggestions for how to debug this.

Sean


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