Dynamic links

2009-04-22 Thread Md. Jahid Shohel
Hi, I have a use case like below - - There will be two frames, more like the left frame will have menus. On click on left menu items, on right side the page will be displayed. Now on left side, how many items will be in menus is not static. They come from a service, so its dynamic. I have

Re: making tinymce textarea read only

2009-04-22 Thread Swanthe Lindgren
I solved the problem by downloading the tinymce source from the svn repository together with the javascript lib from tinymce.moxiecode.com and repacking it. The latest version of the scripts handles the readonly option correct. //Swanthe tubin gen wrote: I am trying to make teaxarea with

Re: ModalWindow Position

2009-04-22 Thread Steve Swinsburg
Hi, I use a javascript function to move it and then a target.appendJavascript() to call it. This is for an iframe but should work for you. Every now and then I notice a very tiny delay in the appearance of the ModalWindow and the movement of it to its final location. if you can fix that

Exceptions after Tomcat restart

2009-04-22 Thread Wicket Account Wicket Account

Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Eyal Golan
I fixed the annoying thing by overriding the html panel of the palette (which I did previously for other purposes) and adding an element (1484 is our bugzilla issue number): !-- Do not remove ie7bug-1484. customepalette.js uses this element -- span id=ie7bug-1484 style=display: none;/span Also:

Re: jboss + ear + wicket

2009-04-22 Thread Francis De Brabandere
As usual I found the problem creating a quickstart. It was a file name problem. I'm used to woking in linux but for this project I work in windows. It seems jetty/glassfish classloaders are not case-sensitive but the jboss one is. That's why one of my markup files was not found on jboss.

Re: jboss + ear + wicket

2009-04-22 Thread nino martinez wael
Hehe, that usually happens for me too, when im 100% sure that theres an error I then go ahead to create the quickstart and 90% of the time I see what the error are in the creation of the quickstart :) 2009/4/22 Francis De Brabandere franci...@gmail.com: As usual I found the problem creating a

Basic help please

2009-04-22 Thread HHB
Hey, I have a panel that consists of two parts: the first lists groups names. the second lists the contacts of a group, which gets populated upon clicking on the group name (via Ajax). wicket:panel div div wicket:id=groups span wicket:id=nameGroup Name/span /div

Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Carlo Camerino
I think we are also expericning this problem same as yours If you will allow, can I have a copy of your fix for this one? what files did you modify? Thanks Carlo 2009/4/22 Eyal Golan egola...@gmail.com I fixed the annoying thing by overriding the html panel of the palette (which I did

LinkTree will not be updated

2009-04-22 Thread ElenaStoll
I have a problem with LinkTree in Wicket, namely : I have a LinkTree where NodeComponent a TreeLinkIconPanel is. TreeLinkIconPanel is a subclass of LinkIconPanel. public TreeLinkIconPanel(String id, IModel model, BaseTree tree) { super(id, model, tree); } Where a content as a label and

Re: Basic help please

2009-04-22 Thread Linda van der Pal
I think you should detach the model of the contacts and then add the contacts to the target. Linda. HHB wrote: Hey, I have a panel that consists of two parts: the first lists groups names. the second lists the contacts of a group, which gets populated upon clicking on the group name (via

Register - activate account - login

2009-04-22 Thread Jan Torben Heuer
Hi, Is there a component that handles user registration, email verification (account activation) and login stuff? I currently use the classes org.apache.wicket.authentication.AuthenticatedWebApplication; org.apache.wicket.authentication.AuthenticatedWebSession;

Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Eyal Golan
With pleasure. 1. I overridden Palette.java and Palette.html In Palette.html I added the line below (with the span). In Palette.java all we did is override renderHead (see below) 2. We created a new palette.js and added the script file as below. Hope that helps. Eyal Golan egola...@gmail.com

Re: Google Analytics and Wicket

2009-04-22 Thread Mariana Bustamante
Hello, sorry I've taken so long to write again. The solution suggested by Janos Cserep using the line target.appendJavaScript(pageTracker._trackPageview(' + panel trackCode + ');); worked! Thanks to all for you ideas :) On Sun, Apr 19, 2009 at 7:42 AM, James Carman

Re: tinymce textarea

2009-04-22 Thread fachhoch
Tinymce text is formatted with html and when I add text to label i see the text with html , please tell me how can I tell wicket that model also has html tags and browser should interpet them and not display ? If I set model of a label as html text I am expecting to seehtml parsed

Re: How to determine which validator failed in a CompoundValidator?

2009-04-22 Thread Tauren Mills
Daan, Yes, this definitely looks like the direction I should go for most of my form components. Thanks for sharing it! However, I also need to make a PasswordStrengthMeter, which will show different values (and css styling) based on the strength of a password entered into a password field.

Re: Dynamically update TreeTable model

2009-04-22 Thread CrocodileShoes
I have the same problem but with a different tree use case. I'm implementing a facet search which needs to update the tree after a user selects a tree node (facet). If I recreate the tree model like you were doing it doesn't persistent the selection, obviously. I'm not experienced with Swings

Re: tinymce textarea

2009-04-22 Thread Swanthe Lindgren
I suggest that you display the text in a read only tinymce text area. TinyMCESettings mceSettings = new TinyMCESettings(Theme.advanced); mceSettings.addCustomSetting(readonly:true); This only works if you update the tinymce javascripts as in

Re: Random exception at ResourceListenerInterface

2009-04-22 Thread Igor Vaynberg
why dont you set a breakpoint for classcastexception and see what it is trying to cast to what. -igor On Wed, Apr 22, 2009 at 3:52 AM, Daniel Fernandez daniel.f...@gmail.com wrote: Hello, I have a page which makes quite a heavy use of an AbstractAjaxTimerBehavior for retrieving the content

html text as model

2009-04-22 Thread tubin gen
I have text area with tinynmce behaviour, so any text saved from this textarea will contain html tags to retain format of the text.Now in other pages I want to display this text as read-only , for which i get the string comment text from database and set it to as model to my label , the

Re: html text as model

2009-04-22 Thread Jeremy Thomerson
On your label: setEscapeModelStrings(false) -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 22, 2009 at 11:24 AM, tubin gen fachh...@gmail.com wrote: I have text area with tinynmce behaviour, so any text saved from this textarea will contain html tags to retain format of

Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Igor Vaynberg
the right thing to do would be to provide a patch back to the community... -igor On Wed, Apr 22, 2009 at 7:52 AM, Eyal Golan egola...@gmail.com wrote: With pleasure. 1. I overridden Palette.java and Palette.html In Palette.html I added the line below (with the span). In Palette.java all we

Re: Wicket Tree with Swing DefaultMutableTreeNode

2009-04-22 Thread JulianS
Hi, I did it a different way. I have no problem adding checkboxes with this technique. See http://javathoughts.capesugarbird.com/2009/03/jquery-tree-table-for-wicket.html. -- View this message in context:

Re: LinkTree will not be updated

2009-04-22 Thread James McLaughlin
add tree.updateTree(target) before adding the tree to the target. hth, jim tree.addTreeListener(new TreeListener() { @Override public void onActivityClicked(String nameOfNode,AjaxRequestTarget target){

Re: how to not display RepeaterView

2009-04-22 Thread Jason Novotny
Igor, Jeremy, Just want to say thanks for your constant support on the mailing list! This is a huge part of why I've become a wicket enthusiast. Keep up the great work! Cheers, Jason Igor Vaynberg wrote: no need, just attach it to a wicket:container

Clickably Selectable DIVs

2009-04-22 Thread Dane Laverty
I'm working on a project management application that lists all of a project's tasks. Each task is displayed as a DIV. I want the user to be able to select a specific task by clicking on its DIV, which would then highlight that DIV by adding a CSS class and display some information about the task

Re: Random exception at ResourceListenerInterface

2009-04-22 Thread Daniel Fernandez
Thanks for your answer, Igor. Now I know what is happening more in detail. It is not easy to explain, sorry for the long text: I have: - DataPanel: a panel with data I want to show. - LoadingPanel: a panel which just shows a loading... image. - PanelLoader: a Panel with an inner panel

Re: Clickably Selectable DIVs

2009-04-22 Thread Jeremy Thomerson
Try something like this in the onClick(AjaxRequestTarget): this.add(new SimpleAttributeModifier(class, foobar)); target.add(this); previouslyClicked.add(new SimpleAttributeModifier(class, otherclass)); target.add(previouslyClicked); previouslyClicked = this; -- Jeremy Thomerson

Re: Clickably Selectable DIVs

2009-04-22 Thread Clint Popetz
You can add an AttributeModifier to the wicket component representing your div, which picks the correct attribute based on the model, and add the divs to the target in your AjaxFallbackLink.onClick(). -Clint On Wed, Apr 22, 2009 at 12:52 PM, Dane Laverty danelave...@chemeketa.edu wrote: I'm

Re: Dynamically update TreeTable model

2009-04-22 Thread James McLaughlin
You should not recreate the TreeModel and for most cases DefaultTreeModel is what you want. If you are adding a node, add it with:

RE: Clickably Selectable DIVs

2009-04-22 Thread Dane Laverty
Fabulous. Thank you for the quick response! -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Wednesday, April 22, 2009 10:58 AM To: users@wicket.apache.org Subject: Re: Clickably Selectable DIVs Try something like this in the onClick(AjaxRequestTarget):

Re: Random exception at ResourceListenerInterface

2009-04-22 Thread Igor Vaynberg
browsers are asynchronous, so you might have a race codition. eg browser requests the data url and you press the refresh button, so now there are two urls in the queue: the data and the page. if page is processed first then the data url will fail because when the page is first constructed you have

Re: Clickably Selectable DIVs

2009-04-22 Thread Igor Vaynberg
you cant keep adding attribute modifiers on every click, much better to simply: class mylink extends link { private string clazz; oncomponenttag(tag) { super.oncomponenttag(tag); tag.put(class,clazz); } public void setclazz(string c) { clazz=c; } } -igor On Wed, Apr 22, 2009 at

should i migrate from 1.3.to 1.4?

2009-04-22 Thread Phillip Rhodes
I am trying to use some components from wicket-stuff that I need to build from the 1.3.5 tag, and to do this, I need to build wicket from the 1.3.5. That's 2 projects that I need to build from source so I can use some components. I am considering migrating to 1.4 so I can use the distributed

Re: should i migrate from 1.3.to 1.4?

2009-04-22 Thread Igor Vaynberg
no reason except that 1.4 will still have minor api breaks as we move toward the final release. wicket 1.3.5 should be available in maven repositories, no need to build from scratch. -igor On Wed, Apr 22, 2009 at 11:21 AM, Phillip Rhodes spamsu...@rhoderunner.com wrote: I am trying to use some

How to send data to server - form submission

2009-04-22 Thread Juan G. Arias
Hi all,I wanted to check with you if my reasoning is ok. I have my model object, bound to some controls displayed in the page using PropertyModel. I also have one ajax event (using a simple AjaxLink). When the user clicks this ajax link, some components in the page are added to the ajax target

Re: How to send data to server - form submission

2009-04-22 Thread Jeremy Thomerson
Why do you want an alternate way? Is there some advantage you see? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 22, 2009 at 2:10 PM, Juan G. Arias juangar...@gmail.com wrote: Hi all,I wanted to check with you if my reasoning is ok. I have my model object, bound to some

Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Eyal Golan
I would love doing so. Is there a special way / place? (where to put? what to put?) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Wed, Apr 22,

Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Jeremy Thomerson
http://issues.apache.org/jira/browse/WICKET -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 22, 2009 at 2:53 PM, Eyal Golan egola...@gmail.com wrote: I would love doing so. Is there a special way / place? (where to put? what to put?) Eyal Golan egola...@gmail.com Visit:

Re: How to send data to server - form submission

2009-04-22 Thread Juan G. Arias
The html and the object component hierarchy would be simplier.My question is why stay attached to the HTML standard (use forms to submit), if AJAX doesn't need to. I need this inside a form, and only for one or maybe two text fields. If I can link the component to the model without a form, I

Re: How to send data to server - form submission

2009-04-22 Thread Jeremy Thomerson
Not really - I'd liken that to reinventing the wheel. Wicket provides easy support for linking the component and the model through an ajax event - form submission. But, you could probably write your own JS that takes advantage of the wicket-ajax stuff and manually sends the form values as

Re: Strange behavior with palette (1.3.4) and IE7

2009-04-22 Thread Ryan McKinley
The following like is for Apache Solr, but most of it applies to any Apache project: http://wiki.apache.org/solr/HowToContribute In particular, check: http://wiki.apache.org/solr/HowToContribute#head-23efb2d0bdccabdfb1de743a6dea519e9194 On Apr 22, 2009, at 3:55 PM, Jeremy Thomerson

Registering 'global' Ajax listeners?

2009-04-22 Thread Liam Clarke-Hutchinson
Hi, I have page with several child components, and several of the children update themselves using Ajax. Is it possible for the page to register an Ajax listener that is called on the Ajax events of the children? Regards, Liam Clarke

Re: Mutually dependent component and how to update a textfield when a link is clicked

2009-04-22 Thread Liam Clarke-Hutchinson
Thanks John, that page was very useful. :) On Wed, Apr 22, 2009 at 2:57 AM, John Krasnay j...@krasnay.ca wrote: Hi Liam, Check out this page: http://cwiki.apache.org/WICKET/conditional-validation.html It has a bunch of recipes for interactions between components, e.g. requiring a text

adding javascript to response

2009-04-22 Thread João Pereira
Hi, I'm new here to wicket. I'm trying to add a javascrip code to the response after processing a form. public void onSubmit() { //do something //add javascript code in the response to be processed by the browse? } What the best aproach to achieve this?

AjaxLink causing a redirect

2009-04-22 Thread Matthew Welch
I've been playing around with URL rewriting a bit and have run across some promising techniques. While testing these techniques, I've been slowly loading up my pages with a number of different kinds of actions and links. Everything was working pretty smoothly until I got put my first AjaxLink on

Re: AjaxLink causing a redirect

2009-04-22 Thread Jeremy Thomerson
Do you mean while loading a page that has an ajax link you are redirected to another? Please provide example (URLs and code). -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 22, 2009 at 9:25 PM, Matthew Welch matt...@welchkin.net wrote: I've been playing around with URL

Re: Wicket portlet into liferay

2009-04-22 Thread Tonio Caputo
Hi, After trying a lot I finally was able to show and work (more or less). A warning: Never call your appl/portlet-name with the same name as the url-mapping, if not it won't work that was the main problem. My new problem I'm using DatePicker from wicket-extensions/wicket-date in a form, the

Re: AjaxLink causing a redirect

2009-04-22 Thread Liam Clarke-Hutchinson
What do you mean by processing? Form processing? Normal rendering? On Thu, Apr 23, 2009 at 2:25 PM, Matthew Welch matt...@welchkin.net wrote: I've been playing around with URL rewriting a bit and have run across some promising techniques. While testing these techniques, I've been slowly

Re: AjaxLink causing a redirect

2009-04-22 Thread Matt Welch
Hmmm perhaps it was a byproduct of the URL rewriting. As it turns out, even with normal PageLinks this redirect occurs. BookmarkablePageLinks do not cause the redirect. What's odd is that the redirect doesn't actually change anything. With the URL rewriting disabled, there are no redirects.

Re: AjaxLink causing a redirect

2009-04-22 Thread Jeremy Thomerson
Bummer - if you didn't throw in the towel, I'd be interested in seeing the result. All session-relative wicket links are going to have a very distinct pattern that should be fairly easy [sic] to get in the pattern and not rewrite. Mind posting your rewrite code and maybe somebody can help with