Re: [1.4.6] WicketURLDecoder - No current Application found - defaulting encoding to UTF-8

2010-02-05 Thread smallufo
2010/2/5 Igor Vaynberg igor.vaynb...@gmail.com disable it in your logging configuration -igor I tried a lot of configurations , but http.WicketURLDecoder's warning still pops up... log4j.rootLogger=INFO, console log4j.appender.console=org.apache.log4j.ConsoleAppender

Re: How to add and remove css classes the right way?

2010-02-05 Thread Martin Sachs
Hi Martin user the AttributeModifier or AttributeAppender classes. Martin Martin U schrieb: Hi Folks, I'am getting totally confused how to add and remove css classes to and form my text-input-fields on ajax-form-validation. At first i try to add two css classes step by step:

Re: How to add and remove css classes the right way?

2010-02-05 Thread MattyDE
Hello Martin ;) i tired indicatorFor.add(new AttributeModifier(class,new ModelString(validation_error))); inicatorFor.add(new AttributeModifier(class,new ModelString(test))); but in the markup no class attribute appears? - Martin Martin Sachs wrote: Hi Martin user the

Re: Result of tester.assertResultPage(..) depends on JRE?

2010-02-05 Thread Stefan Fussenegger
Man, that's true. I swear I looked at both versions and didn't find any difference. Well, maybe I've looked at the same version twice though ... :) But in general, what's the state of the 1.3.x branch? Will there ever be a 1.3.8? Cheers, Stefan Igor Vaynberg wrote: i believe we fixed this

Re: [1.4.6] WicketURLDecoder - No current Application found - defaulting encoding to UTF-8

2010-02-05 Thread Igor Vaynberg
looking at the code its using the Application class logger...strange, i will fix in the branch. private static final Logger log = LoggerFactory.getLogger(Application.class); -igor On Fri, Feb 5, 2010 at 12:02 AM, smallufo small...@gmail.com wrote: 2010/2/5 Igor Vaynberg igor.vaynb...@gmail.com

Re: How to add and remove css classes the right way?

2010-02-05 Thread MattyDE
Ohhkay.. i see indicatorFor.add(new AttributeAppender(class,new ModelString(validation_error), )); indicatorFor.add(new AttributeAppender(class,new ModelString(test), )); did it .. but how can i remove now an attribute from class .. or how could i access the attributes to replace one?

Application-wide date formate

2010-02-05 Thread Josh Kamau
Hi guys; Kindly help me set the application-wide date format independent of the locale. regards.

Re: Result of tester.assertResultPage(..) depends on JRE?

2010-02-05 Thread Igor Vaynberg
active development on 1.3.x has been stopped. if there are security issues those will be fixed and 1.3.8 released -igor On Fri, Feb 5, 2010 at 12:12 AM, Stefan Fussenegger s...@molindo.at wrote: Man, that's true. I swear I looked at both versions and didn't find any difference. Well, maybe

Re: How to add and remove css classes the right way?

2010-02-05 Thread MattyDE
Ah i did it . but is this the best way? @Override protected void onValidate() { super.onValidate(); visitFormComponents(new FormComponent.IVisitor() { @Override public Object

Re: Application-wide date formate

2010-02-05 Thread Josh Kamau
Hi guys; I am getting frustrated trying to display date in the format dd-MMM- e.g 05-FEB-2010. i am using a TextFieldDate and a org.apache.wicket.extensions.yui.calendar.DatePicker . I have added the date picker to the textfield as required. After i pick the date from the datepicker popup,

Re: wicket enclosure not finding child!?

2010-02-05 Thread Girts Ziemelis
According to the developers this was a bug in a the original enclosure implementation, which allowed NOT to add all child components (if enclosure is not shown on page). Now since version 1.4.2 it is corrected. So you have to add both object_title_classification_prefix, and

SV: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-05 Thread Wilhelmsen Tor Iver
super(new CompoundPropertyModel(this)); This seems wrong: A call to super() cannot reference this directly or indirectly: JLS §8.8.7 says: It is a compile-time error for a constructor to directly or indirectly invoke itself through a series of one or more explicit constructor invocations

Re: Application-wide date formate

2010-02-05 Thread Peter Thomas
On Fri, Feb 5, 2010 at 2:42 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I am getting frustrated trying to display date in the format dd-MMM- e.g 05-FEB-2010. i am using a TextFieldDate and a org.apache.wicket.extensions.yui.calendar.DatePicker . I have added the date picker

Re: Application-wide date formate

2010-02-05 Thread Josh Kamau
I did this and it worked. txtStartDate = new DateTextField(txtStartDate, new ModelDate(startDate.toDate()),dd-MMM-); josh. On Fri, Feb 5, 2010 at 12:22 PM, Peter Thomas ptrtho...@gmail.com wrote: On Fri, Feb 5, 2010 at 2:42 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I am

Settings an HTML page as home page?

2010-02-05 Thread Ashika Umanga Umagiliya
Greetings, How can I set an static HTML page in webapp folder as my home page in Application class instead of using Wicket Page ? thanks in advance, umanga - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Settings an HTML page as home page?

2010-02-05 Thread Ernesto Reinaldo Barreiro
Just an idea: -Mount Wicket filter to something different from /* -Add and index.html to webapp folder. Ernesto On Fri, Feb 5, 2010 at 11:24 AM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Greetings, How can I set an static HTML page in webapp folder as my home page in

AW: wicket enclosure not finding child!?

2010-02-05 Thread Roman Uhlig Maxity.de
Thank you Girts for lighting this up. I haven't watched the mailing list for a while and searching didn't turn it up. Roman -Ursprüngliche Nachricht- Von: Girts Ziemelis [mailto:girts.zieme...@gmail.com] Gesendet: Freitag, 5. Februar 2010 10:13 An: users@wicket.apache.org Betreff:

RE: setResponsePage in the beggining of a constructor does not work

2010-02-05 Thread Chris Colman
Cool, thanks! That works fine. Just write this in WebApplication#init: getApplicationSettings().setPageExpiredErrorPage(PageExpiredError.class); This should solve your problem. Regards, Peter 2010-02-05 00:59 keltezéssel, Chris Colman írta: Could I use RestartResponseException to

RE: setResponsePage in the beggining of a constructor does not work

2010-02-05 Thread Chris Colman
I tried that approach of looking around the tree but I must have missed that Exception somehow. Looks like what I was after. In the end the ExpiredPage solution worked out to be a good approach because I got to create an ExpiredPage that's styled to the style of the rest of the site. In Wicket

Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-05 Thread Martijn Dashorst
On Fri, Feb 5, 2010 at 10:16 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote:   super(new CompoundPropertyModel(this)); This seems wrong: A call to super() cannot reference this directly or indirectly: JLS §8.8.7 says: It is a compile-time error for a constructor to directly or indirectly

Re: Settings an HTML page as home page?

2010-02-05 Thread James Carman
Or, just put an empty page class in there to control your static HTML. Then, if you do ever discover that you want some dynamic bits on your home page, you can easily add it. On Fri, Feb 5, 2010 at 5:35 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Just an idea: -Mount Wicket filter

Re: Settings an HTML page as home page?

2010-02-05 Thread Ernesto Reinaldo Barreiro
Yep. Or more convoluted yet:-) -Create you empty page MyHome.java -Use resource settings IResourceSettings.addResourceFolder(path to webapp) to mount webapp -And place MyHome.html there... Haven't tried this but it might work??? Best, Ernesto On Fri, Feb 5, 2010 at 2:03 PM, James Carman

Re: wicket enclosure not finding child!?

2010-02-05 Thread Igor Vaynberg
why dont you start a vote to have this changed back to pre-1.4.2 behavior. if enough people agree we would have no problem applying the change. -igor On Fri, Feb 5, 2010 at 1:13 AM, Girts Ziemelis girts.zieme...@gmail.com wrote: According to the developers this was a bug in a the original

AW: wicket enclosure not finding child!?

2010-02-05 Thread Roman Uhlig Maxity.de
It's fine with me and more logical and cleaner than before (tho it generates more Java code). I just didn't notice the change. Roman -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Freitag, 5. Februar 2010 17:04 An: users@wicket.apache.org

Re: Application-wide date formate

2010-02-05 Thread Stijn Maller
Doesn't help with your date picker problem, but to set the application-wide format you can call this in your application's init method: ((ConverterLocator)getConverterLocator()).set(Date.class, new PatternDateConverter(DATE_PATTERN, true)) On 5 February 2010 09:25, Josh Kamau

Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-05 Thread Riyad Kalla
As someone working his way through WIA as well, will there be another wiki entry showing differences between book and 1.5? (I'm fairly interested in page mounting and nice URLs as well). -- also I realize the cost to constantly maintain book diffs by the authors is high, but just wanted to ask

Re: Settings an HTML page as home page?

2010-02-05 Thread Riyad Kalla
+1 to what James said: Home.html html body Yay, static content! /body /html Home.java public class Home extends WebPage { // no-op impl } On Fri, Feb 5, 2010 at 3:24 AM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Greetings, How can I set an static HTML page in webapp

RE: wicket enclosure not finding child!?

2010-02-05 Thread Chris Colman
I think that with this new behavior it might now be impossible to use a component resolver to resolve components within an enclosure (that's my experience at least - they work fine inside enclosures for 1.4.2 but not in later versions): I'm trying to work out how the changed behavior broke

How reRender a component from parent page?

2010-02-05 Thread Rangel Preis
How can I use Ajax to change value from a parent page in my layout. I try to change values in header using a action from content page. I have this: |---| | HEADER | |---| | MENU | CONTENT | |

Re: How reRender a component from parent page?

2010-02-05 Thread Riyad Kalla
What do the tasty HTML bits look like? (wicket:ids and what not) On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis rangel...@gmail.com wrote: How can I use Ajax to change value from a parent page in my layout. I try to change values in header using a action from content page. I have this:    

How to write a testcase for CheckGroupSelector.

2010-02-05 Thread Verma Shalini (HCTM/ETA)
How to write a testcase for CheckGroupSelector. For checkgroup we can use formTester.selectMultiple(group, new int[] { 2 });

Re: wicket enclosure not finding child!?

2010-02-05 Thread Girts Ziemelis
I might have sounded a bit negative in my replay, but that is actually not the case. I kind of like, that enclosure is consistent with the rest of wicket (where you have to match hierarchies). Also I accept the extra code I have to add in Java class as a punishment for being lazy and not

Re: DataTable : Setting the Column with from Java ?

2010-02-05 Thread nino martinez wael
In my point of view. Thats prettier done/more clean with a dynamic css.. But there's some way for you to get there. regards Nino 2010/2/5 Ashika Umanga Umagiliya auma...@biggjapan.com Thanks for the tips, I found the solution: public void populateItem(ItemICellPopulatorE cellitem,

Bug with setResponsePage and PageParameters for wicket 1.4.6?

2010-02-05 Thread Anthony DePalma
I noticed something strange, I have a search panel on all pages that contains a single form like so: final FormSearchParams searchForm = new StatelessFormSearchParams(searchForm, model) { @Override protected void onSubmit() {

Re: [announce] better look modern css for wicket examples contest

2010-02-05 Thread Andrew Lombardi
I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype.

Accessing web-inf folder

2010-02-05 Thread Josh Kamau
Hi guy; Kindly help me. i would like to access the WEB-INF directory so that i can store some images there. Regards. Josh

Re: Accessing web-inf folder

2010-02-05 Thread Josh Kamau
I figured it out on the application init() method i added public String getFolder(){ return this.getServletContext().getResource(/WEB-INF/images).getPath(); } On Sat, Feb 6, 2010 at 9:14 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guy; Kindly help me. i would like to