Dynamic links

2009-04-21 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 trie

Re: tinymce textarea

2009-04-21 Thread Swanthe Lindgren
What you get out and put in tinymce is html, so why not continue with pre tags? Or perhaps put it in a div tag with some style, like "border-left: 2px solid blue; padding-left: 5px;". //Swanthe fachhoch wrote: It worked , that's good, need one more suggestion , Usually without tinymce we show

Re: Wicket Tree with Swing DefaultMutableTreeNode

2009-04-21 Thread Edi
Hello, I have a wicket tree code. Is it possible to each node with checkboxk in a wicket tree. herewith I have attached my source code. Without checkout box of tree is working fine. But I am not able to add checkbox. Please check the attachment code and advise. Thanks and Regards, Edi http:

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

2009-04-21 Thread nino martinez wael
Yeah looks like the way Tauren should go.. Did'nt know that was what he was looking fore.. 2009/4/22 Daan van Etten : > Hi Tauren, > > A while ago I wrote this article, which may give you some hints on how to > achieve this: > http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wic

Re: how to not display RepeaterView

2009-04-21 Thread Igor Vaynberg
no need, just attach it to a wicket:container [wicket:container][h3]..[/h3][div]..[/div][/wicket:container] alternatively you can attach it to any tag and call setrenderbodyonly on the component that is direct child of repeatingview -igor On Tue, Apr 21, 2009 at 5:48 PM, Jeremy Thomerson wrote

Creating an http post endpoint (json)

2009-04-21 Thread Neil Curzon
Hi all, Some background: my app is divided into static html and some JSON services exposed as individual servlets. I've been investigating migrating the static HTML portion of the app into Wicket, and I'm having good results so far: it's been easy to do, and the results are readable. So thanks for

wicket-guice problem with injection of a final class

2009-04-21 Thread Eduardo Nunes
Hello, I tried to @Inject a Class in a home page and I got an exception about the lazy proxy. As I could see in the stack trace, wicket-guice is trying to create a proxy to the attribute that I @Inject and the cglib tries to extend Class class without a success. To avoid this problem I @Inject a

Re: how to not display RepeaterView

2009-04-21 Thread Jeremy Thomerson
Sorry - poor formatting in my client made it hard to notice the closing H3. Looking at RV code - it really doesn't seem to work for this. I'd suggest opening a JIRA and then adjusting your jquery script to expect the div. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 21, 2009

Re: how to not display RepeaterView

2009-04-21 Thread Jason Novotny
Ah but the h3 doesn't wrap the whole thing (or does it need to?) Basically I'm trying to repeat the following structure: some stuff some div more stuff more div more more stuff more more div Thanks Jeremy! Jeremy Thomerson wrote: Why don't you just make your outermost tag the repe

Re: how to not display RepeaterView

2009-04-21 Thread Jeremy Thomerson
Why don't you just make your outermost tag the repeater (it looks like an H3 in your example)? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 21, 2009 at 7:24 PM, Jason Novotny wrote: > > Hi, > > I have some markup I wish to repeat like so: > > ... > > Blah Blah > Blah > >

how to not display RepeaterView

2009-04-21 Thread Jason Novotny
Hi, I have some markup I wish to repeat like so: ... Blah Blah Blah wicket:id="label">Workout Name. ... So I wrapped the whole thing inside a like so: Blah Blah Blah and use

Re: How to deal with session in a modular application?

2009-04-21 Thread Eduardo Nunes
hehe, after think more about it I found a solution. As I'm using Google Guice, I can create objects in Session scope, so instead of have a wicket session I can have a session object per module, something like SecuritySession and inject this object when I need it, I just need to figure out that I h

How to deal with session in a modular application?

2009-04-21 Thread Eduardo Nunes
Hello guys, I'm developing a framework to build modular applications with Guice+Wicket+Hibernate. My main problem now is how I must deal with objects that must be saved in session in a modular environment. I want some suggestions or tips to do it without dealing directly with the httpsession. An

Re: Wicket tester form submission problem

2009-04-21 Thread cbchhaya
Martijn, That's exactly what I am doing (I think form.submit earlier was confusing - apologies). The button has setDefaultFormProcessing to true (but is used to setResponsePage) - although this works fine functionally, could that be an issue with the test? I will debug the tree to see if valida

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

2009-04-21 Thread Daan van Etten
Hi Tauren, A while ago I wrote this article, which may give you some hints on how to achieve this: http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket Regards, Daan Op 21 apr 2009, om 17:36 heeft Tauren Mills het volgende geschreven: Thanks Nino, Actually, I want j

Re: LinkTree breaks when using twice instances of Firefox (with Unexpected RuntimeException)

2009-04-21 Thread Live Nono
Thanks for your reply the jira is there https://issues.apache.org/jira/browse/WICKET-2233 bye 2009/4/19 Igor Vaynberg : > yes > > -igor > > On Sun, Apr 19, 2009 at 1:54 AM, Live Nono wrote: >> hi >> >> In case some one is interested, i found the solution : adding >> getPageSettings().setAutomat

Re: Wicket portlet into liferay

2009-04-21 Thread Tonio Caputo
Rob, Thanks, while trying to find out why not working I find something related to this, but I misunderstood it and suppose that you have to use the Sun application server or so. thanks a lot, I'll try as soon as possible tonio On Tue, Apr 21, 2009 at 5:33 PM, Rob Sonke wrote: > Hi, > > We're r

Re: Wicket portlet into liferay

2009-04-21 Thread Rob Sonke
Hi, We're running wicket 1.4m2 on liferay 5.2.x and that's working fine. We only use the sun portlet container instead of the one from Liferay. Search the mailinglist and the liferay forum for the steps which you'll have to perform. Rob On 4/21/09 4:45 AM, Tonio Caputo wrote: Hi, I've tri

Re: Wicket tester form submission problem

2009-04-21 Thread Martijn Dashorst
FormTester ft = tester.newFormTester("form"); ft.submit(); Did you also check for any validation errors? Martijn On Tue, Apr 21, 2009 at 6:03 PM, Chiradeep Chhaya wrote: > I have a form that contains an indicating ajax button which when > clicked performs some calculations and calls setResponse

Re: Defer call to preDecorateScript() till onSubmit() is called?

2009-04-21 Thread Jeremy Thomerson
You'd probably need to return script that can create the message client-side, for instance, if you're creating the message based on fields in the form. I'm not sure if you need to generate the message server-side. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 21, 2009 at 2:00 P

Defer call to preDecorateScript() till onSubmit() is called?

2009-04-21 Thread Julian Sinai
Hi, I need to display a confirmation message to the user before submitting a form. It's pretty standard to use the code below when the message is known at the time of button or link construction. But what about when the message must be synthesized at the time of the button click? I've tried usi

Re: Which component for gmap for wicket 1.3.5?

2009-04-21 Thread Jeremy Thomerson
Well, that's the problem. 1.4-rc2 matches the Wicket 1.4-rc2 release. There are API differences which will prohibit it from working with the 1.3.5 release of Wicket. You'll need to pull from the 1.3.x branch of WS and build it yourself - unfortunately. -- Jeremy Thomerson http://www.wickettraini

Re: Which component for gmap for wicket 1.3.5?

2009-04-21 Thread Phillip Rhodes
I used the version that is in the wicket maven repo (http://wicketstuff.org/maven/repository/org/wicketstuff/gmap2/) There's a 1.4-SNAPSHOT, and a 1.4-rc2 version in the repo, and I am set to use the 1.4-rc2 release. org.wicketstuff

Re: making tinymce textarea read only

2009-04-21 Thread fachhoch
I resolved it with adding additional property tinyMCESettings.addCustomSetting("mode : textareas"); it works but new problem appeared the readonly text area displays html tag I will attach images of textarea in read-only and editable read-only http://www.nabble.com/file/p23160955/textarea

Re: Which component for gmap for wicket 1.3.5?

2009-04-21 Thread Jeremy Thomerson
Have you pulled it from wicketstuff trunk or the 1.3.X branch? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 21, 2009 at 12:16 PM, Phillip Rhodes wrote: > Is gmap2 supposed to work with wicket 1.3.5? I am thinking that I would > need to upgrade to 1.4. > > I am getting a NoSuc

Re: Which component for gmap for wicket 1.3.5?

2009-04-21 Thread Phillip Rhodes
Is gmap2 supposed to work with wicket 1.3.5? I am thinking that I would need to upgrade to 1.4. I am getting a NoSuchMethodError. Thanks. WicketMessage: Method onLinkClicked of interface org.apache.wicket.markup.html.link.ILinkListener targeted at component [MarkupContainer [Component id =

making tinymce textarea read only

2009-04-21 Thread tubin gen
I am trying to make teaxarea with a tinymce behavior readonly below is the code for that , but this is not working , please help me make this readonly. tinyMCESettings.addCustomSetting("readonly : true");

Wicket tester form submission problem

2009-04-21 Thread Chiradeep Chhaya
I have a form that contains an indicating ajax button which when clicked performs some calculations and calls setResponsePage. In the test I have tried form.submit on the button and also executing onSubmit ajax event but nothing works. Any suggestions? Thanks -- Sent from my mobile device -Chir

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

2009-04-21 Thread Tauren Mills
Thanks Nino, Actually, I want just one error message right next to the username field that is specific to the username. I also want to highlight via css the username field. A messagepanel would list errors in other fields as well, wouldn't it? Tauren On Apr 21, 2009 5:06 AM, "nino martinez wael"

palette + wizard + validation not empty + a particular item

2009-04-21 Thread Fernando Wermus
Hi all, I need to validate a palette which is in a wizardStep. The validation consists of being not empty either of having a spec item. The model has the selected item at the begining. I got an Nullpointer exception when I add the onchange behavior. The idea is to keep up to date the palette, o

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

2009-04-21 Thread John Krasnay
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 field only if a checkbox is checked or a certain submit button was used. Sounds similar to what you need to do. jk On Tu

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

2009-04-21 Thread Jeremy Thomerson
As far as sharing models - just make sure both components' model reads from the same backing object - be it the component itself or a domain object. As far as submitting the value - basically there are two ways - just like if you had a plain HTML page - form submission or javascript that appends t

Re: tinymce textarea

2009-04-21 Thread fachhoch
It worked , that's good, need one more suggestion , Usually without tinymce we show comments to display inside a pre tag to retain the line breaks etc , but in case of tinymce what's the best way to display comments ? Linkan wrote: > > Try add TinyMceAjaxSubmitModifier to your submit bu

Re: ResourceReference question

2009-04-21 Thread Eyal Golan
thanks. (just had to add this thanks post, as I haven't been around here for a while ...) 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 Mon, Apr

Re: setConvertedInput - one form component, two fields in the model?

2009-04-21 Thread Kurt Heston
Very helpful, thank you. I'm up and running now. John Krasnay wrote: Since you're dealing with setConvertedInput I presume you're implementing FormComponentPanel. In that case, you need a single model object to encapsulate the idea of a date range. For example, you could implement your own Date

ModalWindow Position

2009-04-21 Thread Matías Tito
Hi, I have the following problem. I add a ModalWindow in a Page. I want to change the initial top-position of that. I try adding an AtributteModifier but it doesn't work. Thanks! - To unsubscribe, e-mail: users-unsubscr...@wick

Re: components are not rendering help me out

2009-04-21 Thread Juan Carlos Garcia M.
Did you add the form to the page itself?: add(form); Jeremy Thomerson-5 wrote: > > Yes - we must have the stack trace or at least the error text to know what > you're talking about. > > And, when you get this problem fixed, I'd suggest swapping your link out > with BookmarkablePageLink. >

Re: setConvertedInput - one form component, two fields in the model?

2009-04-21 Thread John Krasnay
Since you're dealing with setConvertedInput I presume you're implementing FormComponentPanel. In that case, you need a single model object to encapsulate the idea of a date range. For example, you could implement your own DateRange class. Pass your panel a model that returns and accepts instances o

wicket 1.3 project

2009-04-21 Thread Joe
hi all     www.websketch.com.this is a wicket project.wicket1.3+spring2.5+tomcat6+mysql. i want user can give me some option.thx. joe ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/

Re: Annotations and AOP in Wicket

2009-04-21 Thread Erik van Oosten
Wicket is structured such that is usually does not need annotations nor AOP code. The same goes for applications created with Wicket. That said, Wicket 1.3 and 1.4 does have support for Spring injection that uses both annotations and AOP. The wicket-auth-roles example project also uses annota

Re: Plugin panel integration

2009-04-21 Thread reiern70
Then probably you need something as OSGi which allows you to dynamically add/remove features to an existing application. There are numerous threads in this list dealing with OSGi and Wicket. Ernesto TradeMark wrote: > > Thx for reply, > > Im building modular application which functionality is

Re: Wicket merchandise take 2

2009-04-21 Thread shetc
I resemble that remark! -- View this message in context: http://www.nabble.com/Wicket-merchandise-take-2-tp19140805p23154654.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-

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

2009-04-21 Thread nino martinez wael
Hmm, it happens automatically, a validator can register errors.. Like this: form.add(new TextField("email",new PropertyModel(form.getModel(),"email")).add( EmailAddressValidator.getInstance()).add(new IValidator() { public void valid

Re: Plugin panel integration

2009-04-21 Thread Tomáš Mihok
Thx for reply, Im building modular application which functionality is implemented by adding pannels. The application itself is responsible only for displaying these panels. The question here is that if application is ruuning on server and someone creates a new plugin (new panel). Is it possib

Re: Wicket merchandise take 2

2009-04-21 Thread Martijn Dashorst
On Tue, Apr 21, 2009 at 1:41 PM, shetc wrote: > Only worn at weekends and dress-down Fridays. Slightly modified by beer and > hot dog mustard. Probably fits a woman in her third trimester as well now? :-) Martijn - To unsubscri

Annotations and AOP in Wicket

2009-04-21 Thread Munna Ramjee
Hi All.. i am a new bie to wicket. I find that wicket stuff project on security and wicket rad project uses annotations. and also I understand from the blogs that wicket keeps simple things simple through pure OO programming. But is there any scope for annotations support in the upcoming wicket ve

annotation and aop support in wicket

2009-04-21 Thread Munna Ramjee
Hi All.. i am a new bie to wicket. I find that wicket stuff project on security and wicket rad uses annotations. and also I understand from the blogs that wicket keeps simple things simple through pure OO programming. But will there be any scope for annotations support in the upcoming versions 1.4

Re: Wicket merchandise take 2

2009-04-21 Thread shetc
FOR SALE: First Generation Wicket Black T-shirt bought Last Year This is a rare 1st generation T-shirt, obtained prior to being officially available through Apache. Only worn at weekends and dress-down Fridays. Slightly modified by beer and hot dog mustard. -- View this message in context: http

Re: jboss + ear + wicket

2009-04-21 Thread Francis De Brabandere
I know that is supported but he should not be looking for these files as the markup is available in ParentClass.html for example you have a page with a form with some components in it in you page you add the form and to the form you add components now he tries to find ParentClass$FormClass.html b

Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-21 Thread Dipu
Looks nice !, congrats On Mon, Apr 20, 2009 at 5:22 PM, Stefan Simik wrote: > New site about health, nutrition, exercise and life > style > > We are using stateless pages for public interface, and stateful ajaxified > pages for admin interface. > Stateless ajax in

Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-21 Thread Stefan Simik
Thanks to all for your response ;) About stateless ajax in jquery + wicket: JQUERY PART: --- $("#loadElementId").load( "/ajax-call/most-read-articles-panel" ); -- Jquery function load(url) takes markup returned from the "/ajax-call/most-read-articles-panel" a and loads it in

Re: Plugin panel integration

2009-04-21 Thread nino martinez wael
If you do external libs, just package them as jar's and include them in your war.. We are doing this with Wicketstuff projects.. 2009/4/21 Tomáš Mihok : > Hello, > > I'm currently developing a wicket application and I would like to ask a > question. Someone in this mailing list advised me to creat

Re: jboss + ear + wicket

2009-04-21 Thread nino martinez wael
ParentClass$InnerClass.html are supported.. I think, I've done that with forms atleast.. Could you provide a sample? 2009/4/21 Francis De Brabandere : > Nino, > > I think your problem is not related. > > The html files are found, pages without inner classes are correctly > rendered. It's just that

How to determine which validator failed in a CompoundValidator?

2009-04-21 Thread Tauren Mills
On a site registration form, I have three validators on the username field. One tests to make sure the username is at least 3 characters long, another one checks to make sure it uses valid characters, and the last one checks if the username is already taken. This all works fine. Now I'm working

Re: Plugin panel integration

2009-04-21 Thread Liam Clarke-Hutchinson
I'm not sure I understand fully, are these optional plugins from a third party that you need to use? If not, if they're just components you're coding yourself to use on your own pages then they should be included in the WAR file by your build script. Regards, Liam Clarke On 4/21/09, Tomáš Mihok

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

2009-04-21 Thread Liam Clarke-Hutchinson
Hi, Come across a few situations where there are two components are reliant on each other, say a checkbox's model value that a textfield uses in its isDisabled method, and the textfield needs the abstractCheckboxModel to re-evaluate a particular value on a given response. For the first bit, we te

Plugin panel integration

2009-04-21 Thread Tomáš Mihok
Hello, I'm currently developing a wicket application and I would like to ask a question. Someone in this mailing list advised me to create plugins to my page as panels. Question here is: What form should these be saved as? Thing I cannot understand is how the page handles them. Should they be

Re: jboss + ear + wicket

2009-04-21 Thread Francis De Brabandere
Nino, I think your problem is not related. The html files are found, pages without inner classes are correctly rendered. It's just that he does not seem to be finding markup that is contained in the parent markup. He looks for ParentClass$InnerClass.html. and we are not using eclipse for that bu

How to get property from .properties file for a component class (and not instance)?

2009-04-21 Thread Kaspar Fischer
Is there a way to get a property from a .properties file given its name and the class of the component? All methods I have seen, e.g., WebApplication .get().getResourceSettings().getLocalizer().getString(key, component) require the property's name and a component instance, not a compone

Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-21 Thread nino martinez wael
hehehe, nice spelling error I did :) Yeah could be cool if they browsershots supported selenium scripts. 2009/4/20 Jeremy Thomerson : > Or, browsershots.org - of course, this doesn't actually help with the > problem he is having - which requires a mouse click. > > -- > Jeremy Thomerson > http://ww

Re: Which component for gmap for wicket 1.3.5?

2009-04-21 Thread Martin Funk
number 1) it evolved out of 2) mf 2009/4/20 Phillip Rhodes > I see there are a couple gmap projects if I browse to the SVN repo for > wicketstuff. > > http://wicketstuff.org/maven/repository/org/wicketstuff/ > > For example: > 1) gmap2 (updated Mon, 20 Apr 2009) > 2) wicket-contrib-gmap2 (upd