Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Marty Backe
No problem. I'm glad to act as a scribe, my tiny contribution to the community. As time permits I'll continue to capture some of the wisdom from this list in the Wiki. Marty Igor Vaynberg wrote: > hi marty, thank you for taking the time. > > wiki is too slow for me to be usable right now, if yo

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Igor Vaynberg
hi marty, thank you for taking the time. wiki is too slow for me to be usable right now, if you have a sec could you edit the post and change thisgetDebugSettings()...togetDebugSettings().setSerializeSessionAttributes(false); i didnt have the source with me when i answered and couldnt remember the

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Igor Vaynberg
patches to javadoc are always welcome :) or a bug report so we wont forget. for core committers there are only so many hours in the day.-IgorOn 7/24/06, Rice Yeh <[EMAIL PROTECTED]> wrote: Thank you for your explanation. It is very clear. However, the javadoc is vague for me.Rice On 7/25/06, Igor

[Wicket-user] Editing form(s) for table rows

2006-07-24 Thread JK
Hello, What is recommended way (Wicket 1.2.1, Ajax) to make table rows editable? If table contains data: [edit] 1 abc [edit] 2 def [edit] 3 ghi [edit] 4 jkl Should I have: [edit] 1 abc hiddenForm1 [edit] 2 def formEditingItem2 [edit] 3 ghi hiddenForm3 [edit] 4 jkl hiddenForm4 Or is there way t

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Marty Backe
Done. Captured in the FAQ: http://www.wicket-wiki.org.uk/wiki/index.php/FAQs Eelco Hillenius wrote: > Yeah, that would make sense. We have one on the WIKI don't we? > > Eelco > > > On 7/24/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote: > >> Perhaps it should be a FAQ? >> >> >> On Mon, 2006-0

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Rice Yeh
Thank you for your explanation. It is very clear. However, the javadoc is vague for me.RiceOn 7/25/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:ah, it was overridden in the older version. now we have support for special containers that can be transparent to the component hierarchy - which means com

Re: [Wicket-user] wicket.markup.html.tree.Tree is not suitable for very big tree

2006-07-24 Thread Rice Yeh
Sounds great!On 7/24/06, Matej Knopp <[EMAIL PROTECTED]> wrote: I've just finished new (ajax based) tree (version for wicket 2.0 is insvn (/svnroot/wicket/trunk/wicket-sandbox/users/matej_k/tree) )It's about to be ported to wicket 1.2 and it will likely be a part ofwicket-extensions. It might help

[Wicket-user] Wicket 1.2.1: DatePicker + AjaxFormComponentUpdatingBehavior = broken

2006-07-24 Thread Nathan Hamblen
It used to work, but now it doesn't since DatePicker uses an attribute modifier to change the ID of its target text field. The updating behavior's javascript is looking for the original ID, so you get a JS error. Solution is to use AjaxFormSubmitBehavior if you can, since it doesn't depend on the

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Eelco Hillenius
link.add(new SimpleAttributeModifier("class", "myclass")); or use AttributeModifier if you need more dynamic control. Eelco On 7/24/06, Pierre-Yves <[EMAIL PROTECTED]> wrote: > > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link (

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Igor Vaynberg
use an attribute modifier, there are plenty examples on the list. woogle for it at http://woogle.billen.dk/search.link.add(new SimpleAttributeModifier("class","error")); for simple cases -IgorOn 7/24/06, Pierre-Yves <[EMAIL PROTECTED]> wrote: hi,I am struggling with a new problem : I need to progra

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Frank Bille Jensen
link.add(new SimpleAttributeModifier("class", "YOUR-CLASS-NAME")); Frank On Mon, 2006-07-24 at 11:20 -0700, Pierre-Yves wrote: > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link ( element). I tried to extends the Link > element, b

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Use an AttributeModifier on the Link. Pierre-Yves wrote: > hi, > > I am struggling with a new problem : I need to programmatically set the > class attribute of a html link ( element). I tried to extends the Link > element, but unfortunately, th

[Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Pierre-Yves Saumont
hi, I am now struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to extend the Link element, but unfortunately, the onComponentTag method is final. (for some reasons, I cannot use another clickable element). Any idea ? Thanks,

[Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Pierre-Yves
hi, I am struggling with a new problem : I need to programmatically set the class attribute of a html link ( element). I tried to extends the Link element, but unfortunately, the onComponentTag method is final. (For some reasons, I cannot use another clickable element). Any idea ? Thanks, Pier

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Eelco Hillenius
And to fix that particular problem, look for the second annonymous class defined in com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel. Make sure that is serializable so that if you would decide to run in clustered mode some day, or e.g. you want to save sessions to be picked up after a rest

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Frank Bille Jensen
And on wicketframework.org... Perhaps some links between them? On Mon, 2006-07-24 at 22:09 +0200, Eelco Hillenius wrote: > Yeah, that would make sense. We have one on the WIKI don't we? > > Eelco > > > On 7/24/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote: > > Perhaps it should be a FAQ? > >

[Wicket-user] wicket bench 0.3.0

2006-07-24 Thread Joni Freeman
New version of eclipse plugin is available at http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench There's no new features (compared to 0.2.9) just fixes and enhancements. I also wrote a short tutorial on how to use launching features: http://www.laughingpanda.org/mediawiki/index.php/Laun

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Eelco Hillenius
Yeah, that would make sense. We have one on the WIKI don't we? Eelco On 7/24/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote: > Perhaps it should be a FAQ? > > > On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote: > > are you in development mode? > > > > if so this is a debug feature to hel

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Frank Bille Jensen
Perhaps it should be a FAQ? On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote: > are you in development mode? > > if so this is a debug feature to help you find potential problems when > your app will run clustered. it checks your component graphs to make > sure everything is serializable a

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread samyem
Thanks. That solved my problem for now. -- View this message in context: http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472704 Sent from the Wicket - User forum at Nabble.com. - Take Surveys. Earn Cash. Infl

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Igor Vaynberg
are you in development mode?if so this is a debug feature to help you find potential problems when your app will run clustered. it checks your component graphs to make sure everything is serializable as it has to be for clustering if you are not going to cluster you can turn this off by doing getDe

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread samyem
As soon as upgrading to the new version, I am getting these types of errors all over the place: WicketMessage: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.wsi.mm.ui.shippingrates.ShippingRateGroupPage Root cause: java.io.NotSerializableExcep

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Igor Vaynberg
ah, it was overridden in the older version. now we have support for special containers that can be transparent to the component hierarchy - which means components dont have to be added directly to them but instead to their parent. border.setTransparentResolver(true);is the magic call that tells the

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Gwyn Evans
I think it's tied into how the border added to the AuthenticatedWebPage's parent (the WicketExamplePage instance), which I think means that anything added to a child page (or indeed to the WicketExamplePage itself) will be added as child of the border. /Gwyn On 24/07/06, Rice Yeh <[EMAIL PROTECTE

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Rice Yeh
No.On 7/24/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: is the homepage's add() method overridden?-IgorOn 7/24/06, Rice Yeh < [EMAIL PROTECTED]> wrote: Hi all,  I get confused with the usage of Border in the library example. In the Home.html, a non-wicket tag is in beween .. added to the border

Re: [Wicket-user] Adding items to GridView using AJAX

2006-07-24 Thread Martijn Dashorst
Also, take note that IE doesn't allow you to replace individual table rows using inner html and outer html. Such things should be done using dom manipulation (aargh). Martijn On 7/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > but what happens if you have a row filled and the user adds anothe

Re: [Wicket-user] Localisation of Enum properties (Newbie question)

2006-07-24 Thread wilko
Very instructive. I made one change in order to use the properties file for that Enum class instead of this specific component and everything works fine now. Thanks a lot. protected IModel createLabelModel( IModel itemModel ) { final IModel property = super.createLabelMode

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Igor Vaynberg
is the homepage's add() method overridden?-IgorOn 7/24/06, Rice Yeh <[EMAIL PROTECTED]> wrote: Hi all,  I get confused with the usage of Border in the library example. In the Home.html, a non-wicket tag is in beween .. added to the border automatically? But from the source code, the list view is

Re: [Wicket-user] CSS background images

2006-07-24 Thread Eelco Hillenius
Only when we would cache the results. Eelco On 7/24/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > we only need to parse css resources and we only need to parse them once for > this to work i think. > > -Igor > > > > On 7/24/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote: > > > On 7/24/06, Igor

Re: [Wicket-user] Validation message using FormComponent.setType

2006-07-24 Thread Johan Compagner
it is still the same as the TypeValidator we had before:"TypeValidator" + "." + Classes.simpleName(type)So TypeValidator.DoubleOn 7/24/06, Renaut, Jonathan E CTR DISA GIG-CS <[EMAIL PROTECTED]> wrote: I need to check that the entry in a text field is a double.  I see that NumberValidato

[Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Rice Yeh
Hi all,  I get confused with the usage of Border in the library example. In the Home.html, a non-wicket tag is in beween .. added to the border automatically? But from the source code, the list view is added to the home page not the box border. Is not a borded content should be added to the border

Re: [Wicket-user] CSS background images

2006-07-24 Thread Igor Vaynberg
we only need to parse css resources and we only need to parse them once for this to work i think.-IgorOn 7/24/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:On 7/24/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:> i think in this case we are talking about a contextpathprepender but for the> css, not

[Wicket-user] Validation message using FormComponent.setType

2006-07-24 Thread Renaut, Jonathan E CTR DISA GIG-CS
Title: Validation message using FormComponent.setType I need to check that the entry in a text field is a double.  I see that NumberValidator is deprecated, and that FormComponent.setType is the replacement.  That works fine.  However, I do not know, and can not find, how to specify a custom

Re: [Wicket-user] CSS background images

2006-07-24 Thread Eelco Hillenius
On 7/24/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > i think in this case we are talking about a contextpathprepender but for the > css, not just a variable interpolator. Yes, that's pretty obvious. I wasn't proposing 'just variable interpolation', but just explaining what there is now to fix hi

Re: [Wicket-user] wicket.markup.html.tree.Tree is not suitable for very big tree

2006-07-24 Thread Matej Knopp
I've just finished new (ajax based) tree (version for wicket 2.0 is in svn (/svnroot/wicket/trunk/wicket-sandbox/users/matej_k/tree) ) It's about to be ported to wicket 1.2 and it will likely be a part of wicket-extensions. It might help you because it works with TreeNode and not DefaultMutable

Re: [Wicket-user] Localisation of Enum properties (Newbie question)

2006-07-24 Thread Igor Vaynberg
something like this:new ChoiceFilteredPropertyColumn() {    IModel createLabelModel(IModel itemModel) {   final IModel property=super.createLabelModel(itemModel);   return new AbstractReadOnlyModel() { Object getObject(Component c) {    // wi

Re: [Wicket-user] CSS background images

2006-07-24 Thread Igor Vaynberg
i think in this case we are talking about a contextpathprepender but for the css, not just a variable interpolator.also while the texttemplate stuff works what it does is sinclude the css into the page, im talking about a resource so you can have all this stuff done once and served/cached through t

[Wicket-user] Localisation of Enum properties (Newbie question)

2006-07-24 Thread Wilko Hische
Hi, My apologies if the following is simple, but I am relatively new to Wicket (moving from Tapestry), and wasn't able to figure out an elegant solution: I would like to add an Enum property to the Contact class of the wicket-phonebook application, say a Gender: public enum Gender { MA

[Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Martijn Dashorst
The  Wicket project has released the maintenance release Wicket 1.2.1. Wicket is a Java component based web application framework licensed under the open source Apache 2 license. Wicket allows Java developers to create highly dynamic web applications using plain Java and HTML. This maintenance rele

Re: [Wicket-user] Dynamic Template Selection

2006-07-24 Thread Eelco Hillenius
Answers below. On 7/24/06, James Cook <[EMAIL PROTECTED]> wrote: > What is the best practice in 1.2 and 2.0 for developing a component that has > different visual orientations depending on the developers purpose? > > For example, suppose I am writing a component to display advertising blurbs > lik

[Wicket-user] Dynamic Template Selection

2006-07-24 Thread James Cook
What is the best practice in 1.2 and 2.0 for developing a component that has different visual orientations depending on the developers purpose? For example, suppose I am writing a component to display advertising blurbs like Google's Adwords. The component can have a vertical or horizontal layout.

Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Johan Compagner
ahh was that what i did..Undo(), Undo()hmm no effect.. should be perminant then.. sorryOn 7/24/06, Martijn Dashorst < [EMAIL PROTECTED]> wrote:> getHttpRequest().getRemoveAdress() Ah... that is what happened to my internet connection... you bastard!MartijnOn 7/24/06, Johan Compagner <[EMAIL PROTECT

Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Martijn Dashorst
> getHttpRequest().getRemoveAdress() Ah... that is what happened to my internet connection... you bastard! Martijn On 7/24/06, Johan Compagner <[EMAIL PROTECTED]> wrote: > something like this: > > ((WebRequest)RequestCycle.get().getRequest()).getHttpRequest().getRemoveAdress() > > > On 7/24/06,

Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Eelco Hillenius
Consider getRemoteHost also. Check out javax.servlet.ServletRequest from servlet api Eelco On 7/24/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > ((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getRemoteAddr() > > Eelco > > > > On 7/24/06, JK <[EMAIL PROTECTED]> w

Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Johan Compagner
something like this:((WebRequest)RequestCycle.get().getRequest()).getHttpRequest().getRemoveAdress()On 7/24/06, JK < [EMAIL PROTECTED]> wrote:Sorry, but I can't find out how to get remote IP address. Could someone give example code? (Wicket 1.2)2006/7/4, Johan Compagner <[EMAIL PROTECTED]>:> remote

Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Eelco Hillenius
((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getRemoteAddr() Eelco On 7/24/06, JK <[EMAIL PROTECTED]> wrote: > Sorry, but I can't find out how to get remote IP address. Could > someone give example code? (Wicket 1.2)

Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread JK
Sorry, but I can't find out how to get remote IP address. Could someone give example code? (Wicket 1.2) 2006/7/4, Johan Compagner <[EMAIL PROTECTED]>: > remote address can be get from the http request (of the WebRequest from the > RequestCycle) > The snoop servlet does this > > http://www.rawbw.co

Re: [Wicket-user] Use attribute value to modify markup

2006-07-24 Thread jan_bar
Thanks Eelco for you quick support. Jan "Eelco Hillenius" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Override onComponentTag in your component and get the values with > tag.getAttributes(). > > In Wicket 2.0, you can even do getMarkupAttributes right in your > component's const

Re: [Wicket-user] Use attribute value to modify markup

2006-07-24 Thread Eelco Hillenius
Override onComponentTag in your component and get the values with tag.getAttributes(). In Wicket 2.0, you can even do getMarkupAttributes right in your component's constructor. Eelco On 7/24/06, jan_bar <[EMAIL PROTECTED]> wrote: > Hi, > > I have a Panel and I want to change it's markup accord

[Wicket-user] Use attribute value to modify markup

2006-07-24 Thread jan_bar
Hi, I have a Panel and I want to change it's markup according to values specified at the tag using the panel: The class MyPanel should read the attribute "myValues" and use the values as model inside the panel, for instance show/hide some components inside that panel. How can I get the value o

Re: [Wicket-user] How to change value of a Textfield from popup page

2006-07-24 Thread Eelco Hillenius
For clarity, you could ask your component for it's markup id when it is rendering like this: textField.getMarkupId(); So, it could look like this: PopupSettings popupSettings = new PopupSettings(PageMap.forName("popuppagemap")).setHeight( 500).setWidth(500); PageParameters p = new

Re: [Wicket-user] CSS background images

2006-07-24 Thread Eelco Hillenius
As you don't have to pre-register packaged resources anymore, you can reference them if you know the URL, which for such resources always has the same form: /webapp/servletname/resources/some.package.SomeClass/theme.css and even /webapp/servletname/resources/some.package.SomeClass/some/sub/dir/t