Re: how to use LinkTree in frame

2007-10-16 Thread Kevin Liu
Thank Igor :-) But if I wanna change the tree behavior, such as expanding the Node when the node is clicked as the junction link is clicked. So I have to invoke updateTree(target); The ajaxLink seems to be the only choice.:-( Igor Vaynberg [EMAIL PROTECTED] wrote: you have to

Re: WicketMessage: Expected close tag for 'tr wicket:id=sorting' Possible attempt to embed component(s) 'span wicket:id=actions' in the body of this component which discards its body

2007-10-16 Thread Rich Livingstone
Thanks for the reply, Igor - I probably didn't explain myself well, the HTML I listed in my post was part of the error message thrown by Wicket and not my source code. In my source HTML I had this (read span for spanx, if I put in span it doesn't show up in the post !!): [dataview navigator]

Re: Examples for AjaxLazyLoadPanel?

2007-10-16 Thread Florian Sperber
Did you look at http://www.wicketstuff.org/wicket13/ajax/lazy-loading.1 Kind regards, Florian Sperber SantiagoA schrieb: Hi, i am trying to use an AjaxLazyLoadPanel, but have some Problems to get it work. I have a page with a panel, which produces heavily loading action. I just want the

Re: Session Objects Approach

2007-10-16 Thread Sam Hough
I found another con with detachable is that if you are constructing a complex object graph _before_ putting it in the database you would have to do something cleverer... e.g. only detach if already persisted? We just stuck with non-detachable models. Eelco Hillenius wrote: Does this

Re: how to use LinkTree in frame

2007-10-16 Thread Matej Knopp
But then you have to use custom javascript, because you want to both update the tree and the right frame. -Matej On 10/16/07, Kevin Liu [EMAIL PROTECTED] wrote: Thank Igor :-) But if I wanna change the tree behavior, such as expanding the Node when the node is clicked as the junction link

Java Swing with Wicket Question

2007-10-16 Thread Edi
Hello, I have developed Java Swing with Wicket. In IE Browser, first loading, I am not able to view the tree view. But when I click next time, the tree is showing. Any loading problem in IE?? Please send your suggestion. But in Firefox Browser, the tree view is working Fine. Thanking You.

Re: Custom rendering

2007-10-16 Thread Swaroop Belur
I think you just have to toggle the operation (url ) and model object for label based on user is null or not. Label dynamicText = new Label(lbl , new AbstractReadOnlyModel(){ public Object getObject(){ User u = ...; if(u==null){ return in order to sign in please

Re: safari and ajax (issue 938)

2007-10-16 Thread Nino Saturnino Martinez Vazquez Wael
This can be discarded. Seems as my tomcat didnt want to be upgraded to beta4, so it kept beta3 somewhere and used that. A reboot solved that. And it's now working perfect:) Thanks for the attention:) regardt Nino Nino Saturnino Martinez Vazquez Wael wrote: Hmm that did not help. Im running

ImageMap and Ajax

2007-10-16 Thread Michael Sparer
Hi, I'm using an ImageMap to display an image. Whenever a user clicks on the image, the coordinates get sent to the Server using AJAX. There, I want to add a CircleLink to the place where the user clicked. So I'm trying to replace the whole map using: protected void onEvent(AjaxRequestTarget

Re: Examples for AjaxLazyLoadPanel?

2007-10-16 Thread SantiagoA
Allright. Problem solved. Thanks for the help again. -- View this message in context: http://www.nabble.com/Examples-for-AjaxLazyLoadPanel--tf4632483.html#a13231668 Sent from the Wicket - User mailing list archive at Nabble.com.

Link embedded in localized Label/Message?

2007-10-16 Thread marcus dickerhof
Hi, is it possible to have a link in a localized label? I would like to have something like this in my output: Please click a href=xyzhere/a. And then do -- Is there a possiblity to use a StringResourceModel here? Something like pagexyz.usermessage=Please click {mylink}. And then do...

Re: enable / disable MarkupContainer and all children

2007-10-16 Thread Matthijs Wensveen
-bump- Summary: how to disable a component and all of its children in one call? And also: what is the expected behavior of a disabled parent component in the light of its children? A quick look in the source of FormComponentPanel tells me that this code does not disable or enable its

Re: Link embedded in localized Label/Message?

2007-10-16 Thread Thies Edeling
Hi, In your HTML the label is a child of the link so do it the other way around, add the label to the link Link l = new Link.. l.add(new Label.. with a wicket:id=..span wicket:id=../span/a gr Thies Hi, is it possible to have a link in a localized label? I would like to have something like

Re: Link embedded in localized Label/Message?

2007-10-16 Thread Martijn Dashorst
It is not possible. A label will remove *all* markup between its tags and put the contents of the model inside. In your case I would suggest using wicket:message tags instead. wicket:message key=beforeHereLinkPlease click /wicket:messagea href=# wicket:id=hereLinkwicket:message

Re: TabbedPanel with image tabs - how to contribute ?

2007-10-16 Thread Vit Rozkovec
That's great! I added to the article a different approach - custom image in every tab :) Regards Vitek Stefan Simik wrote: Thank you, I added new article: http://cwiki.apache.org/confluence/display/WICKET/Tabs+with+image but the last problem is, that I copied the article from one place to

possible bug in 1.2.6 / 1.3 Include

2007-10-16 Thread Jeremy Levy
I found this while working on 1.2.6 and checked it out in 1.3 and it's the same. It appears as though Include does not pay attention to the contextpath if it is explicitly set. Line 162 (In 1.2.6) or line 233 (in 1.3b4) of Include is the following line which as I understands it builds a absolute

Re: Examples for AjaxLazyLoadPanel?

2007-10-16 Thread SantiagoA
Because I have replaced a Panel by an AjaxLazyLoadPanel, I had to replace the ids for the targets at the other ajax-components too. That was just my fault. Example: Step 1: myPanel = new MyPanel(panelName, new PropertyModel(this,searchString), version); ... someAjax ... target(myPanel); ...

Re: Custom rendering

2007-10-16 Thread Cristi Manole
Thank you for your reply. The text of the label is easy to change. I cannot find a method to change the text of the anchor. That's my problem. Is there a way to do that? On 10/16/07, Swaroop Belur [EMAIL PROTECTED] wrote: I think you just have to toggle the operation (url ) and model object

CryptedUrlWebRequestCodingStrategy breaks ajax fallback link in beta4

2007-10-16 Thread mikisan
I updated a fairly complex app to beta4 and everythings works so far but ajaxfallbacklink does neither go to onClick via ajax nor via the fallback. the links are in a list, which is not the reason. other ajax elements on this page like onAjaxChange work ok. I traced this to the use of

Re: Custom rendering

2007-10-16 Thread Cristi Manole
This is exactly what i was missing (i tried to add them both to page): *Link* l = new *Link*.. l.add(new *Label*.. the label is a child of link... tks a lot Thies! On 10/16/07, Thies Edeling [EMAIL PROTECTED] wrote: see the Link embedded in localized Label/Message? thread Cristi Manole

Re: Session Objects Approach

2007-10-16 Thread Matt Jensen
Just trying to be helpful. :-) Igor Vaynberg wrote: I think what you all are missing in this discussion is that ldms are mostly uss for read only data, not for forms. -igor - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Profiling the memory usage

2007-10-16 Thread Eelco Hillenius
On 10/16/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Well said:) Sometimes I just take a wrong turn while wanting to explain something, and get stuck in that idea. About the wicket-objectsizeof-agent, could it be used to make a small wicket diagnostics contribution..? I

hi questions about DateField, thanks!

2007-10-16 Thread raybristol
Hi, I try to add a datefield to my page, accroding to the examples in http://www.wicketstuff.org/wicket13/index.html but I get a error and then I try to do it on a sperate page just for testing but getting the same error: type Exception report message description The server encountered an

Re: Session Objects Approach

2007-10-16 Thread Eelco Hillenius
I found another con with detachable is that if you are constructing a complex object graph _before_ putting it in the database you would have to do something cleverer... e.g. only detach if already persisted? We just stuck with non-detachable models. But the solution to that might be easy:

Re: hi questions about DateField, thanks!

2007-10-16 Thread Eelco Hillenius
Your code looks fine to me. We really need to see that stack trace. Eelco On 10/16/07, raybristol [EMAIL PROTECTED] wrote: Hi, I try to add a datefield to my page, accroding to the examples in http://www.wicketstuff.org/wicket13/index.html but I get a error and then I try to do it on a

AjaxTabbedPanel and wicketSerializeForm

2007-10-16 Thread JulianS
Hi I'm able to warn the user not to leave a form if it's dirty. This compares the value of wicketSerializeForm() in the onload and onbeforeunload events and it works well. However, I also have some pages with forms in tabs, and I need to warn the user if he tries to switch tabs when a form is

Re: CryptedUrlWebRequestCodingStrategy breaks ajax fallback link in beta4

2007-10-16 Thread Brandon Fuller
Discussed here: http://www.nabble.com/Wicket-Beta4-and-Ajax-Links-tf4616750.html -- View this message in context: http://www.nabble.com/CryptedUrlWebRequestCodingStrategy-breaks-ajax-fallback-link-in-beta4-tf4634981.html#a13238437 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: CryptedUrlWebRequestCodingStrategy breaks ajax fallback link in beta4

2007-10-16 Thread Matej Knopp
It should be resolved shortly. -Matej On 10/16/07, Brandon Fuller [EMAIL PROTECTED] wrote: Discussed here: http://www.nabble.com/Wicket-Beta4-and-Ajax-Links-tf4616750.html -- View this message in context:

Re: Getting the ListItems from a ListView

2007-10-16 Thread Scott Sauyet
Scott Sauyet wrote: There may be a much better way of doing what I'm trying to do, and if so, I'd love to hear about it. But what I thought would be simple seems to be eluding me here. I knew there had to be a better way. I found one. I have a form with a dynamic number of dropdowns. I'm

Re: AutoCompleteTextField PostCallHandler Issue

2007-10-16 Thread Don Hass
I see it has been assigned to Eelco for Beta 5, so maybe it can get resolved this time around. :) paolo di tommaso wrote: I'be opened an issue about this months ago https://issues.apache.org/jira/browse/WICKET-310 But it is still there .. Paolo On 10/16/07, Don Hass [EMAIL

Wicket/GWT?

2007-10-16 Thread Neil B. Cohen
I've been asked to look at possibly using the Google Web Toolkit instead of (along with??) Wicket for my project. I don't know anything about GWT, and I've only been looking at Wicket for about a week. Anyone care to comment on the pros and cons of using these two? What makes one better for a

Using mod_proxy / mod_rewrite to hang app off root

2007-10-16 Thread Jeremy Levy
I've having trouble getting my application behind apache hanging off the root, my application servers url are as follows: http://localhost:8080/context/servlet/bookmarkpage I'd like the URL to be: http://localhost/bookmarkpage I've set up Apache 2.2 in from of it. I can get Apache2 working so

Re: Wicket/GWT?

2007-10-16 Thread Sean Sullivan
fyi The dev mailing list had a thread about using GWT widgets as Wicket components: http://www.mail-archive.com/[EMAIL PROTECTED]/msg00402.html I don't think anybody has implemented this code. Sean On 10/16/07, Neil B. Cohen [EMAIL PROTECTED] wrote: I've been asked to look at possibly using

Re: Wicket/GWT?

2007-10-16 Thread Eelco Hillenius
On 10/16/07, Neil B. Cohen [EMAIL PROTECTED] wrote: I've been asked to look at possibly using the Google Web Toolkit instead of (along with??) Wicket for my project. I don't know anything about GWT, and I've only been looking at Wicket for about a week. Anyone care to comment on the pros and

Wicket Meetup: 33 attendees and counting

2007-10-16 Thread Arje Cahn
Hi all, We're doing very well, with another 4 people signing up in the last two days for the Amsterdam meetup on November 30. This Meetup is FREE ! Free as in Beer ! Hurray ! First off, I could really use some input on the agenda. Also, I received some emails from people worried that the

Wicket meetup ideas

2007-10-16 Thread Arje Cahn

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Nino Saturnino Martinez Vazquez Wael
Why do you want to do this? dukehoops wrote: Hi, I'd like to redirect requests for page A to page B without constructing page A. Typically I'd use URL parsing in a servlet filter to accomplish this but would like to figure out an OO way to do so. In my RequestCycle I tried: @Override

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Eelco Hillenius
If it is intercepting what you're after (like you'd do when enforcing authorization), look at IComponentInstantiationListener. What is your use case? Eelco On 10/16/07, dukehoops [EMAIL PROTECTED] wrote: Hi, I'd like to redirect requests for page A to page B without constructing page A.

Re: [Wicket-Contrib-Scriptaculous] Effects Examples

2007-10-16 Thread Ryan Sonnek
I think this is what you're looking for: add(new AjaxLink(myLink) { protected void onClick(AjaxTarget target) { target.appendJavascript(new Effect.Fade(myPanel).toJavascript()); } }); On 10/16/07, Nick Heudecker [EMAIL PROTECTED] wrote: Hi, I'm looking for some examples using

Re: Disable form validation based on which submit button used?

2007-10-16 Thread Jesse Foster
Two problems 1. updateFormComponentModels() is a protected method. 2. Without calling validate() first, updateFormComponentModels() updates the model with null values. The actual process of taking values from the html form and converting them into Java objects happens inside validate() call.

Re: Dot ( . ) in the URL !

2007-10-16 Thread Eelco Hillenius
As far as I know, only : is reserved. But if you have a reproducible bug, please create an issue in JIRA. Eelco On 10/15/07, chickabee [EMAIL PROTECTED] wrote: The page was mount using HybridUrlCodingStrategy --thanks Matej Knopp-2 wrote: How did you mount the page? -Matej

Re: authorize - hasAny / hasAll ?

2007-10-16 Thread Eelco Hillenius
The wicket-auth project is intended more like an example then a full fledged project. Best thing you can do is just copy the things you need in your own project and tailor for your needs. Eelco On 10/10/07, Artur W. [EMAIL PROTECTED] wrote: Hi, I use

Re: ModalWindow.close() results in ERROR: Exception evaluating javascript: TypeError: window.parent.setTimeout is not a function

2007-10-16 Thread Eelco Hillenius
Please open an issue in JIRA if you have this reproducible. Eelco On 10/5/07, skatz [EMAIL PROTECTED] wrote: More information. It works as expected in IE7. The problem occurs with Firefox 2.0.0.7 skatz wrote: I am trying to use the ModalWindow as a confirmation dialog and it works

Re: Disable form validation based on which submit button used?

2007-10-16 Thread Jesse Foster
Ok, found a way to do what I want. Both buttons for my form do setDefaultFormProcessing(false) I subclass Form and add a boolean attribute called bypassValidation with the appropriate getters and setters. I also override process() with my own method that duplicates the original method, except

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread dukehoops
The use case is this: If an already logged-in user types in our home URL we'd like the site to redirect him/her to own profile page. If user's not logged in, they do land on home page. This is not to compel someone to sign in. So, for example below, PageA = site home page; PageB = user's own

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Eelco Hillenius
If an already logged-in user types in our home URL we'd like the site to redirect him/her to own profile page. If user's not logged in, they do land on home page. This is not to compel someone to sign in. So, for example below, PageA = site home page; PageB = user's own profile page Sounds

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Doug Leeper
What I have done is to check in MyApplication.getHomePage(): public Class getHomePage() { IUser user = getMySession().getCurrentUser(); return user == null ? Index.class : UserHome.class; } -- View this message in context:

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Eelco Hillenius
What I have done is to check in MyApplication.getHomePage(): public Class getHomePage() { IUser user = getMySession().getCurrentUser(); return user == null ? Index.class : UserHome.class; } That's another fine solution if the home page is

Some help. I think I found a bug, but I am a wicket newbie anyway.

2007-10-16 Thread Fernando Wermus
I have combine the signIn2 and the wizard for creating a new user. I have added both to my TabbedPanel. For some reason, the wizard appeared wrongly at the right when is clicked. This doesn't happen to the sigIn2. I found some strange html which I wanna share with you, div