Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-17 Thread Petr Fejfar
On Thu, Jul 16, 2009 at 11:43 PM, Petr Fejfarpetr.fej...@gmail.com wrote: tries to be compatible with. Please find out attached table - maybe it could be usefull for someone else as well. Errata: in the Menu test on Google Chrome, there should be (it seems the value does *not* toggle) Petr

how to Get Context path

2009-07-17 Thread Gerald Fernando
Hello Friends, how to get the context path of current class ThanksRegards, Gerald A

How to get context path of Application

2009-07-17 Thread Gerald Fernando
How to get context path of Application Thanks7Regards, Gerald A

Re: How to get context path of Application

2009-07-17 Thread Alex Objelean
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath() Alex Objelean Gerald Fernando wrote: How to get context path of Application Thanks7Regards, Gerald A -- View this message in context:

Re: How to get context path of Application

2009-07-17 Thread Linda van der Pal
What is it exactly you are trying to do? Linda Gerald Fernando wrote: How to get context path of Application Thanks7Regards, Gerald A No virus found in this incoming message. Checked by AVG - www.avg.com Version:

Re: WicketStuff Developers - please read

2009-07-17 Thread Martin Funk
good work, thank you. May I add a Number 0 item to the list. 0 - Don't commit code that breaks the build mvn install mf Am 16.07.2009 um 23:38 schrieb Jeremy Thomerson: I'm trying to build wicketstuff-core 1.4-rc7 to match the Wicket release. I have spent hours tracking down pom issues

Re: AutoCompleteTextField with initial focus not working

2009-07-17 Thread Marieke Vandamme
document.getElementById('mytxt').focus(); igor.vaynberg wrote: how are you setting the initial focus? -igor On Thu, Jul 16, 2009 at 6:45 AM, Marieke Vandammemarieke.vanda...@tvh.be wrote: Hello, I have AutoCompleteTextField which has the focus when my page is loaded. When I just

Re: Radio and Radio Group problems

2009-07-17 Thread Trojahn, Cassia
Igor Vaynberg wrote: where is your Form in your example? -igor On Thu, Jul 16, 2009 at 7:04 AM, Trojahn, Cassiacassia.troj...@xrce.xerox.com wrote: Trojahn, Cassia wrote: Always the last of the list is the selected. I had tried also this proposal .. and it does not work. Michael

What already redirecting error?

2009-07-17 Thread Martin Makundi
Hi! What is this error and how can I avoid it? Don't even know why it comes: 2009-07-17 11:43:22,804 181242389 [btpool0-503] ERROR RequestCycle - Already redirecting to '?wicket:interface=:0:9:::'. Cannot redirect more than once org.apache.wicket.WicketRuntimeException: Already redirecting to

IModel parameters of StringResourceModel not getting detached

2009-07-17 Thread Jonas
A question about StringResourceModel: it supports IModels in the 'parameters' Object[] that are properly handled in StringResourceModel#getString, meaning they could get attached because of StringResourceModel. Shouldn't it also be the StringResourceModel's responsibility to properly detach them

Re: How to get context path of Application

2009-07-17 Thread Gerald Fernando
Hi Linda, Actually my page need to call a XML file.I have stored that file in my web content .error shows that the system could not find the file.but i give a absolute path it is working so i need to get my tomcat path to access that file. How can i access that file?Is there any other way. am

Re: How to get context path of Application

2009-07-17 Thread Linda van der Pal
Well I guess Alex already gave the answer. ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath() Alex Objelean Linda Gerald Fernando wrote: Hi Linda, Actually my page need to call a XML file.I have stored that file in my web content .error shows that the

Background-Thread blocking Wicket-App

2009-07-17 Thread Tokalak Ahmet
Hi All, we've got a page which does time consuming tasks. Because of that, every time a user calls the page a new background-thread is started (only if not running already) and the user is informed that the task is running and the page will be updated with fresh data as quickly as the thread

Re: Anybody know what is this situation?

2009-07-17 Thread Michał Letyński
I got the same error. It's also totally random. But i have a bit different situation. In my page i have panel, inside this panel i got panel which is anonymous class and inside of this panel is InlineFrame with Page. Any clues how to solve this ? Jeremy Thomerson pisze: Generally unexplained

Re: Background-Thread blocking Wicket-App

2009-07-17 Thread Jonas
Sounds like your background thread is holding a lock that is also acquired during page rendering. Maybe you can find out which lock is contended by creating a thread dump using visualvm or jstack from jdk 1.6 On Fri, Jul 17, 2009 at 11:24 AM, Tokalak Ahmettoka...@yahoo.de wrote: Hi All, we've

wicketstuff tinymce for Wicket 1.3.5/6

2009-07-17 Thread Steve Swinsburg
Hi all, What's the version of TinyMCE from wicketstuff thats recommended for 1.3.5 or 1.3.6? I only see 1.3-SNAPSHOT in the Maven repo but am not too keen on putting a SNAPSHOT jar into production. dependency groupIdorg.wicketstuff/groupId

RE: Validation component feedback in table column

2009-07-17 Thread Russell Simpkins
Use the ComponentFeedbackPanel, ccFeedback = new ComponentFeedbackPanel(ccNumberError,ccNumber); ccFeedback.setOutputMarkupId(true); addOrReplace(ccFeedback);then you can do this: input wicket:id=ccNumber value= class= type=text / span wicket:id=ccNumberError/span From: rinoc...@live.se To:

RE: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-17 Thread Russell Simpkins
Actually, If you sub domain your apps, then they can all be ROOT.war e.g. app1.myhost.com vs myhost.com/app1 - look at doing virtual hosts in tomcat if interested. Russ Date: Fri, 17 Jul 2009 13:29:35 +0800 Subject: Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server From:

RE: Background-Thread blocking Wicket-App

2009-07-17 Thread Russell Simpkins
Running a thread should not block the entire application - are you using connection pooling with more than one max active connection? Maybe you should send the code you use to kick off the thread. If you have any code that is synchronized on a shared resource, that might block others. Russ

AW: Background-Thread blocking Wicket-App

2009-07-17 Thread Tokalak Ahmet
Thanks you and Jonas for the feedbacks. You reminded me of the kind of usage of the Connection object. On first request after the application has started, a permanent connection is established and used by all following requests. I've forgotten to change this after the first development steps

Re: How to get context path of Application

2009-07-17 Thread Gerald Fernando
if i do this webRequest cannot be resolved to a type and RequestCycle cannot be resolved what can i do ThanksRegards, Gerald A On Fri, Jul 17, 2009 at 2:53 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Well I guess Alex already gave the answer.

RE: Validation component feedback in table column

2009-07-17 Thread Kenneth NA
I have already added one ComponentFeedbackPanel in the populateItem() method final ComponentFeedbackPanel tfFeedback = new ComponentFeedbackPanel(tfFeedback, tf); tfFeedback.setOutputMarkupId(true); item.add(tfFeedback); and if I also add the

AW: How to get context path of Application

2009-07-17 Thread Tokalak Ahmet
To locate the file use MyClass.class.getResource() Von: Gerald Fernando gerald.anto.ferna...@gmail.com An: users@wicket.apache.org Gesendet: Freitag, den 17. Juli 2009, 12:50:39 Uhr Betreff: Re: How to get context path of Application if i do this webRequest

Re: how to Get Context path

2009-07-17 Thread Per Newgro
Gerald Fernando schrieb: Hello Friends, how to get the context path of current class ThanksRegards, Gerald A Can you please explain what you mean with context path of current class? Cheers Per - To unsubscribe, e-mail:

Re: how to Get Context path

2009-07-17 Thread Linda van der Pal
Per, Look at the reply he gave me to that same question. Linda Per Newgro wrote: Gerald Fernando schrieb: Hello Friends, how to get the context path of current class ThanksRegards, Gerald A Can you please explain what you mean with context path of current class? Cheers Per

PropertyModel doesnt update bean

2009-07-17 Thread Wadi Jalil Maluf
Hi all, I have a UserBean and I created a propertyModel for that bean so when a TextField text is modified the property name of the UserBean updates. I use this in a model windows, added a link so when it clicks I use the value from the textfield but the value is always null.

Customizing signinpanel

2009-07-17 Thread Ed _
Hi, I am using the SignInPanel - was wondering if there is a way to customize the labels of the fields - like change the username to just name and password to key. Also what is the Reset functionality - is there a way to get rid of that button too. thanks, Ed

Re: PropertyModel doesnt update bean

2009-07-17 Thread Serkan Camurcuoglu
you should use a form and an ajaxsubmitlink instead of a normal ajaxlink.. Wadi Jalil Maluf wrote: Hi all, I have a UserBean and I created a propertyModel for that bean so when a TextField text is modified the property name of the UserBean updates. I use this in a model

override isEnabledInHierarchy?

2009-07-17 Thread Steve Lowery
I would like to build a simple form whose markup looks like the following: wicket:panel form wicket:id=form table thead tr th[Label]/th tha

Re: How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-17 Thread Warren Bell
Your hive should have something like this with whatever actions you want: permission ${ComponentPermission} ${MyPage}:myPanel:myForm:myWebMarkupContainer, inherit, render, enable; And also secure anything in the container like buttons: permission ${ComponentPermission}

Re: IModel parameters of StringResourceModel not getting detached

2009-07-17 Thread Johan Compagner
please make a jira issue for this The detach of StringResourcemodel should walk over its param to check if it is a model and call detach on those. On Fri, Jul 17, 2009 at 10:44, Jonas barney...@gmail.com wrote: A question about StringResourceModel: it supports IModels in the 'parameters'

Re: wicketstuff tinymce for Wicket 1.3.5/6

2009-07-17 Thread Jeremy Thomerson
You have to build yourself. Most of the wicketstuff projects were not built with release numbers prior to 1.4 / the wicketstuff-core work. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jul 17, 2009 at 4:53 AM, Steve Swinsburgsteve.swinsb...@gmail.com wrote: Hi all, What's the

Re: Customizing signinpanel

2009-07-17 Thread Mathias Nilsson
Just extends the SignInPanel and provide your own markup and properties -- View this message in context: http://www.nabble.com/Customizing-signinpanel-tp24535148p24536526.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: override isEnabledInHierarchy?

2009-07-17 Thread Martin Makundi
Yes, you could do it another way. Make each component that you want to enable/disable like this: form.add(new xxxFormComponent(id) { @Override isEnabled() { return your logic here; } }); 2009/7/17 Steve Lowery slow...@gatessolutions.com: I would like to build a simple form whose

Re: AutoCompleteTextField with initial focus not working

2009-07-17 Thread Igor Vaynberg
i dont think that invokes the onfocus() handler, you might have to call it manually yourself. -igor On Fri, Jul 17, 2009 at 1:18 AM, Marieke Vandamme ma...@tvh.be wrote: document.getElementById('mytxt').focus(); igor.vaynberg wrote: how are you setting the initial focus? -igor

Re: Radio and Radio Group problems

2009-07-17 Thread Igor Vaynberg
where and how are you actually pulling out the selection? -igor On Fri, Jul 17, 2009 at 1:21 AM, Trojahn, Cassiacassia.troj...@xrce.xerox.com wrote: Igor Vaynberg wrote: where is your Form in your example? -igor On Thu, Jul 16, 2009 at 7:04 AM, Trojahn,

Re: What already redirecting error?

2009-07-17 Thread Igor Vaynberg
you are triggering a redirect after something else has already done so. -igor On Fri, Jul 17, 2009 at 1:38 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Hi! What is this error and how can I avoid it? Don't even know why it comes: 2009-07-17 11:43:22,804 181242389 [btpool0-503]

Re: What already redirecting error?

2009-07-17 Thread Martin Makundi
At least I do not know of any such redirects... ** Martin 2009/7/17 Igor Vaynberg igor.vaynb...@gmail.com: you are triggering a redirect after something else has already done so. -igor On Fri, Jul 17, 2009 at 1:38 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Hi! What is

Re: AutoCompleteTextField with initial focus not working

2009-07-17 Thread Mathias Nilsson
document.forms[0].elements.mytxt.focus(); -- View this message in context: http://www.nabble.com/AutoCompleteTextField-with-initial-focus-not-working-tp24516661p24537398.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: What already redirecting error?

2009-07-17 Thread Alex Objelean
Show us your code. Alex Objelean MartinM wrote: At least I do not know of any such redirects... ** Martin 2009/7/17 Igor Vaynberg igor.vaynb...@gmail.com: you are triggering a redirect after something else has already done so. -igor On Fri, Jul 17, 2009 at 1:38 AM, Martin

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-17 Thread Anton Veretennikov
Thank you, Igor and Russell, As almost everything is working as expected with RewriteRule, why AjaxFormSubmitBehavior is not working? I see that new additional redirect appears in logs. Context name is added to URLs when they are constructed in urlFor? If so, is it technically possible to

Re: What already redirecting error?

2009-07-17 Thread Martin Makundi
I don't have a clue where that occured... ** Martin 2009/7/17 Alex Objelean alex_objel...@yahoo.com: Show us your code. Alex Objelean MartinM wrote: At least I do not know of any such redirects... ** Martin 2009/7/17 Igor Vaynberg igor.vaynb...@gmail.com: you are triggering a

SpringBean: component-based verses session in scope.

2009-07-17 Thread Steve Tarlton
My app is using Spring/Hibernate and I am using the @SpringBean annotation based dependency injection to tie in my services. During my development, I found I needed access to one of the services at the session layer and found a thread that discussed how to do that by calling out

Re: What already redirecting error?

2009-07-17 Thread Igor Vaynberg
pull the call hierarchy on org.apache.wicket.protocol.http.BufferedWebResponse.redirect and see what paths lead to your code. -igor On Fri, Jul 17, 2009 at 11:05 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: I don't have a clue where that occured... ** Martin 2009/7/17 Alex

Re: SpringBean: component-based verses session in scope.

2009-07-17 Thread Igor Vaynberg
spring provides a scoping mechanism and supports session scope out of the box. why dont you google around for that, might save you some headaches. -igor On Fri, Jul 17, 2009 at 11:27 AM, Steve Tarltonstarl...@gmail.com wrote: My app is using Spring/Hibernate and I am using the @SpringBean

Re: SpringBean: component-based verses session in scope.

2009-07-17 Thread satar
Igor, I was more asking for opinions on whether it better to define my @SpringBean injections in my session class verses within components that need them. In the later, I may end up injecting the same session class in more than one component class. What I am doing now is moving those instances

Re: SpringBean: component-based verses session in scope.

2009-07-17 Thread Igor Vaynberg
erm. i meant matrixCheckItemService.foo() -igor On Fri, Jul 17, 2009 at 12:08 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: what gets injected into the component and what gets injected into session are the *same* thing - a pointer to something in the spring context. so why would you want

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2009-07-17 Thread keithrbennett
Pixologe - I am a relative beginner at Wicket, but FWIW your ideas sound reasonable and helpful. I have a link with an image, and would like to display an alternate image if the link is disabled. I understand that it should be a span element so that clicking has no effect. Can you, Igor, or

Re: SpringBean: component-based verses session in scope.

2009-07-17 Thread satar
Oh... I see, so it doesn't matter which way I go because underneath the covers it is a single instance of the session anyway. Still less code to manage/write if I define access to the injected sessions within the session class. Now I just need to learn and understand what you meant by the comment

Re: SpringBean: component-based verses session in scope.

2009-07-17 Thread Igor Vaynberg
if you declare the service reference as a component field with @SpringBean then it is directly accessible within your component code. -igor On Fri, Jul 17, 2009 at 12:49 PM, satarstarl...@gmail.com wrote: Oh... I see, so it doesn't matter which way I go because underneath the covers it is a

border error

2009-07-17 Thread Fernando Wermus
What am I doing wrong in this very simple example? public class PaginaTestBorder extends AuthenticatedWebPage{ public PaginaTestBorder(){ add(new EmptyPanel(tabs)); MyBorder border = new MyBorder(border); border.add(new Label(label, I am the label));

Re: border error

2009-07-17 Thread Igor Vaynberg
you dont have div wicket:id=border/div in PaginaTestBorder.html -igor On Fri, Jul 17, 2009 at 1:30 PM, Fernando Wermusfernando.wer...@gmail.com wrote: What am I doing wrong in this very simple example? public class PaginaTestBorder  extends AuthenticatedWebPage{    public

Re: border error

2009-07-17 Thread Fernando Wermus
Igor, Here it is: the border is in the page. wicket:extend div wicket:id=tabs / div wicket:id=border span wicket:id=labellabel contents here/span /div /wicket:extend On Fri, Jul 17, 2009 at 1:34 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you dont have div

StatelessForm problem - Not all parameters were encoded.

2009-07-17 Thread Norbert Sándor
Hello, When my page contains a StatelessForm, the exception below is thrown. When I replace the StatelessForm with a normal Form, it works as expected. I do nothing special, the page contains only the StatelessForm (even no components inside the form, just a static HTML submit button). The

Re: border error

2009-07-17 Thread Igor Vaynberg
nothing really jumps out at me. create a quickstart and attach it to a jira issue. -igor On Fri, Jul 17, 2009 at 1:45 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Igor, Here it is: the border is in the page. wicket:extend div wicket:id=tabs / div wicket:id=border

Re: StatelessForm problem - Not all parameters were encoded.

2009-07-17 Thread Igor Vaynberg
forms do not support indexed strategies since they need actual parameternames. -igor 2009/7/17 Norbert Sándor develo...@erinors.com Hello, When my page contains a StatelessForm, the exception below is thrown. When I replace the StatelessForm with a normal Form, it works as expected. I do

Re: border error

2009-07-17 Thread Jason Lea
is it due to closing the tabs div with the short version div / instead of div/div? I had a feeling wicket doesn't like the div / version... Fernando Wermus wrote: Igor, Here it is: the border is in the page. wicket:extend div wicket:id=tabs / div wicket:id=border span

Re: wicketstuff tinymce for Wicket 1.3.5/6

2009-07-17 Thread Steve Swinsburg
Ok so I was including the 1.3-SNAPSHOT version in testing, added the TinyMCEBehaviour to my textarea, everything built fine, but it did nothing. No markup was rendered either, nor anything in the logs. Is it broken right now? Tending towards making my own component if this one doesn't work.

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2009-07-17 Thread keithrbennett
I got this working with the following code in the constructor of my Link subclass: http://gist.github.com/149344 ...and removing the text from the HTML element so it wouldn't display alongside the image. I don't know if this is the best way, though. It would probably make sense for me to

Re: What already redirecting error?

2009-07-17 Thread Martin Makundi
None lead to my code, that's my point. The only thing I have used is setResponsePage(). ** Martin 2009/7/17 Igor Vaynberg igor.vaynb...@gmail.com: pull the call hierarchy on org.apache.wicket.protocol.http.BufferedWebResponse.redirect and see what paths lead to your code. -igor On Fri,

Re: how to Get Context path

2009-07-17 Thread Gerald Fernando
Yes i mean context path of current class ThanksRegards, Gerald A On Fri, Jul 17, 2009 at 6:32 PM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Per, Look at the reply he gave me to that same question. Linda Per Newgro wrote: Gerald Fernando schrieb: Hello Friends, how to