Re: Loading resources (CSS,JS) from JARs ?

2010-02-04 Thread Alex Objelean
Or you can use wro4j (http://code.google.com/p/wro4j/wiki/GettingStarted) for this. It is a small framework which helps you organize your resources (js css) by loading from virtually anywhere (classpath, servletContext, absolute location, disc location, etc). Also, it merge all the resources

Re: Loading resources (CSS,JS) from JARs ?

2010-02-04 Thread Ernesto Reinaldo Barreiro
Hi, It is very easy to achieve this. E.g. public class MyPanel extends Panel { private static final long serialVersionUID = 1L; public static ResourceReference JS = new ResourceReference(MyPanel.class, mypanel.js); public static ResourceReference CSS = new

Re: Submit form with ajax on enter

2010-02-04 Thread MattyDE
Any other hints for this right now? I want to submit an ajax-Form by hiting enter in Textfield, but i want wicket to call the same Method as i defiend in AjaxButton ... any ideas? Thanks a lot in Advance John Patterson wrote: It is being used indirectly through AjaxButton.

link inside of a linked container

2010-02-04 Thread Douglas Ferguson
Hey, I currently have a wicket container that has an onclick, now that container needs to have a link inside of it. But when I click the link it also fires the onclick for the container. How can I avoid this? D/ - To

Re: link inside of a linked container

2010-02-04 Thread Douglas Ferguson
Just found this http://markmail.org/message/2ps3auq3326zq3nq On Feb 4, 2010, at 3:47 AM, Douglas Ferguson wrote: Hey, I currently have a wicket container that has an onclick, now that container needs to have a link inside of it. But when I click the link it also fires the onclick for

class/interface/enum containing string values for html tag attributes

2010-02-04 Thread haiko van der schaaf
Greetings, I am wondering if there is in wicket or another framework a class/interface/enum containing string values for html tag attributes ? It would be great to use it for instance with SimpleAttributeModifier. - To

Re: class/interface/enum containing string values for html tag attributes

2010-02-04 Thread Erik van Oosten
Hi Haiko, Jericho-parser contains a comprehensive set of all HTML elements, attributes etc. It also groups these constants per type (e.g. inline, open/close or not, etc. etc.). Regards, Erik. haiko van der schaaf wrote: Greetings, I am wondering if there is in wicket or another

Re: Submit form with ajax on enter

2010-02-04 Thread Daniel Stoch
I have the same problem today (what a coincidence :)). This works ok for me in Firefox 3.5 and Opera 10, but does not work in Chrome, Safari and IE. PS. I'm using Wicket 1.4.4. DS On Thu, Feb 4, 2010 at 10:38 AM, MattyDE ufer.mar...@gmail.com wrote: Any other hints for this right now? I

Easier using of FormComponentFeedbackIndicator for many fields?!

2010-02-04 Thread Martin U
Hi Folks, i've to implement many form-pages with a lot of (more than 30) input fields, and each of them should be validated at least of required or not. but the request is to show the validation-errors behind the depeding component.. so iam using FormComponentFeedbackIndicator now and everything

Re: Easier using of FormComponentFeedbackIndicator for many fields?!

2010-02-04 Thread Bert
something along the lines [1] ? [1] http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

RE: Easier using of FormComponentFeedbackIndicator for many fields?!

2010-02-04 Thread Bodis, Jerome
I did this with an IVisitor, that traverses all form components and adds an AbstractBehavior to each required inputfield. This Behavior writes an span*/span right after the component has been painted. Watch this pdf for an example: http://code.google.com/p/londonwicket/downloads/list and than

setResponsePage in the beggining of a constructor does not work

2010-02-04 Thread Martin Asenov
Hello guys! I've got three pages, where I do certain check in the beginning and if the criteria is not met, I redirect to home page. I make it that way: public MyPageClass { if (something) { system.out.println(mypageclass - we're in);

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

2010-02-04 Thread Major Péter
Hi, the setresponsepage only marks, that the pagetarget is something else on the end of the cycle, but it isn't stopping the execution of the current page. If you want that, then use: throw new RestartResponseException(getApplication().getHomePage()); Regards, Peter 2010-02-04 14:16

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

2010-02-04 Thread Martin Asenov
Thanks friend! Works great! You saved me a lot of time! Best regards, Martin -Original Message- From: Major Péter [mailto:majorpe...@sch.bme.hu] Sent: Thursday, February 04, 2010 3:21 PM To: users@wicket.apache.org Subject: Re: setResponsePage in the beggining of a constructor does not

Re: Submit form with ajax on enter

2010-02-04 Thread John Patterson
MattyDE wrote: Any other hints for this right now? I want to submit an ajax-Form by hiting enter in Textfield, but i want wicket to call the same Method as i defiend in AjaxButton ... any ideas? Thanks a lot in Advance If I remember correctly, my patch was applied so you can now

Re: webapp authentication

2010-02-04 Thread Les Hazlewood
Hi Martin, Thanks for the feedback! To clarify for other users, it is (now) pretty clear how to perform configuration and configure Realms via the link I sent in my last mail - please read it if you want to give it a try again. Maybe this was written after you tried Shiro, but at least it is

document onkeypress onkeydown

2010-02-04 Thread Gatos
Hello, How is it possible to add event behavior for the document? I tried this one, but it didn't work: add(new AjaxEventBehavior(onkeypress){ @Override protected void onEvent(final AjaxRequestTarget target) { LOG.debug(keypress); } });

Re: wicket enclosure not finding child!?

2010-02-04 Thread Roman Uhlig
I just upgraded from 1.4.1 to 1.4.6 and now I'm getting this error too without changing anything else in my source code: 04 Feb 2010 16:01:20,352 ERROR [org.apache.wicket.RequestCycle:1521] Could not find child with id: object_title_classification_prefix in the wicket:enclosure

Re: wicket enclosure not finding child!?

2010-02-04 Thread Roman Uhlig Maxity.de
I just upgraded from 1.4.1 to 1.4.6 and now I'm getting this error too without changing anything else in my source code: 04 Feb 2010 16:01:20,352 ERROR [org.apache.wicket.RequestCycle:1521] Could not find child with id: object_title_classification_prefix in the wicket:enclosure

Re: Bookmarkable link url is broken in 1.4.6 after ajax update

2010-02-04 Thread Vladimir K
It seems that problem prepending resource URLs resurrected again. https://issues.apache.org/jira/browse/WICKET-2491 vineet semwal wrote: i have opened the jira issue for the same problem, https://issues.apache.org/jira/browse/WICKET-2717 On Thu, Feb 4, 2010 at 1:07 AM, vineet semwal

Re: document onkeypress onkeydown

2010-02-04 Thread Stefan Fussenegger
Add a WebMarkupContainer to body, i.e. body wicket:id=body.../body add(new WebMarkupContainer(body) .add(new AjaxEventBehavior(onkeypress){ protected void onEvent(final AjaxRequestTarget target) { LOG.debug(keypress); }

PagingNavigator css tags

2010-02-04 Thread Andreas Lüdtke
Hi, I've just started with css and I would like to know the tag names of the paging navigator. I had a look in the wicket source code, but my css file doesn't work. I mean the area in the upper right corner like 1 2 3 4 5 I don't like the italic font-weight. Any help is much

Re: PagingNavigator css tags

2010-02-04 Thread Igor Vaynberg
see imarkupsettings#setDefault(Before|After)DisabledLink() -igor On Thu, Feb 4, 2010 at 8:29 AM, Andreas Lüdtke sam.lued...@t-online.de wrote: Hi, I've just started with css and I would like to know the tag names of the paging navigator. I had a look in the wicket source code, but my css

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

2010-02-04 Thread Stefan Fussenegger
I've just found out that the outcome of a JUnit test using WicketTester (v1.3.7) depends on the JVM version. This test public void testRender_deployment() throws Exception { WicketTester tester = doRender(DEPLOYMENT); tester.assertResultPage(

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

2010-02-04 Thread Igor Vaynberg
i believe we fixed this in 1.4.x using a linkedhashmap -igor On Thu, Feb 4, 2010 at 8:53 AM, Stefan Fussenegger s...@molindo.at wrote: I've just found out that the outcome of a JUnit test using WicketTester (v1.3.7) depends on the JVM version. This test    public void testRender_deployment()

Re: Where is the full client filename during FileUpload?

2010-02-04 Thread nytrus
Yes you are right, file full path file is never send. In fact exploring DOM I've found no property to fetch it. Thank you! So I use a simple TextField. @kinabalu getClinetFilename() does not return the full path, while temp file path is the path on the server where the file is phisically copied,

Highlight invalid field

2010-02-04 Thread Anna Simbirtsev
Hi, I am validating a field(user presses validation button) and if its invalid I highlight the field in the following way: AjaxSubmitLink checkName = new AjaxSubmitLink(check_name, form) { public void onSubmit(AjaxRequestTarget target, Form? form) { if

Re: Highlight invalid field

2010-02-04 Thread James Carman
It's better to use a validator for this. And, you can add a behavior (look at forms with flair presentation) to change the class (I would do that instead of in-lining the style) of the components in error. On Thu, Feb 4, 2010 at 2:05 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, I am

Re: Highlight invalid field

2010-02-04 Thread Anna Simbirtsev
Can you give an example please? Actually I am validating uniqueness of the name, i just put the length as an example. But if you could give me an example of how to change the class using a behaviour, that would be nice. On Thu, Feb 4, 2010 at 2:20 PM, James Carman

Re: Highlight invalid field

2010-02-04 Thread James Carman
That's the one. That's where I borrowed my code from. :) On Thu, Feb 4, 2010 at 2:30 PM, Riyad Kalla rka...@gmail.com wrote: Anna, I think James literally meant this presentation, it's got the code snippets you want: http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf

Re: Highlight invalid field

2010-02-04 Thread Riyad Kalla
Anna, I think James literally meant this presentation, it's got the code snippets you want: http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf -R On Thu, Feb 4, 2010 at 12:25 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Can you give an example please? Actually I am

Override a method in wicket-autocomplete.js

2010-02-04 Thread Craig McIlwee
Hello, This is more a JavaScript problem than wicket, but I'm encountering it in the context of a wicket component so maybe others have had the same issue and can offer some guidance. I'm having some trouble with Wicket.AutoComplete's getOffsetParentZIndex definition, in IE 7 it's returning 0

RE: wicket enclosure not finding child!?

2010-02-04 Thread Chris Colman
I've found the problem with any version after 1.4.2. With 1.4.2 I seem to be able to use enclosures just fine - even when the children are supplied by a component resolver - but any 1.4.3, 1.4.4 and 1.4.5 cause problems. I haven't yet tried 1.4.6 but from what you're saying it probably has the

dojo 1.4

2010-02-04 Thread Josh Chappelle
I've searched everywhere and can't find the wicket 1.4 compatible dojo jar file. There isn't one in the maven repository. Has one been developed? If so can someone point me in the right direction? Thanks, Josh

Re: SwfObject integration with wicket

2010-02-04 Thread Fernando Wermus
Yes. There is the component. It is in the wiki, and you have to copy and paste it. It works fine. On Wed, Feb 3, 2010 at 12:17 AM, Mathias Nilsson wicket.program...@gmail.com wrote: Hi, I was wondering if anyone has built swfobject ( javascript ) integration to wicket? What I want to do

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

2010-02-04 Thread Chris Colman
Could I use RestartResponseException to redirect to a URL instead of a bookmarkable page? My problem is that all of my pages require a parameter (even the home page but that's fine because the Tomcat container server.xml configures the appropriate redirection for me - users never have to enter

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

2010-02-04 Thread Major Péter
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 redirect to a URL instead of a bookmarkable

Re: Loading resources (CSS,JS) from JARs ?

2010-02-04 Thread Ashika Umanga Umagiliya
Thanks Ernesto, That is very useful. Hi, It is very easy to achieve this. E.g. public class MyPanel extends Panel { private static final long serialVersionUID = 1L; public static ResourceReference JS = new ResourceReference(MyPanel.class, mypanel.js); public static

Re: DataTable : Setting the Column with from Java ?

2010-02-04 Thread Ashika Umanga Umagiliya
Hi nino, I just use table wicket:id=table cellspacing=0 width=100% class=grid to display my datatable. I dont want to change the CSS style for the class.I want the change the width of each Column ,according to the value read from XML. Something like: int colWidth=vcol.getColumnWidth();

Re: property file location feature request (ComponentStringResourceLoader)

2010-02-04 Thread pete swulius
For future reference. https://issues.apache.org/jira/browse/WICKET-2713

Re: DataTable : Setting the Column with from Java ?

2010-02-04 Thread Ashika Umanga Umagiliya
Thanks for the tips, I found the solution: public void populateItem(ItemICellPopulatorE cellitem, String id, IModelE model) { cellitem.add(new SimpleAttributeModifier(style,width:+width+px)); } regards umanga nino martinez wael wrote: I susspect you should add

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

2010-02-04 Thread David Chang
Hello, I am learning Wicket by reading Wicket in Action. I am using Wicket 1.4.5 and Java 6. On page 244, the sample code is as follows: private int counter = 0; public MyPage() { super(new CompoundPropertyModel(this)); final Label counterLabel = new Label(counter); add(counterLabel);

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

2010-02-04 Thread Steve Swinsburg
They don't need to be bookmarkable. You can call specific constructors of a class if you want: throw new RestartResponseException(new MyClass(something)); cheers, Steve On 05/02/2010, at 10:59 AM, Chris Colman wrote: Could I use RestartResponseException to redirect to a URL instead of a

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

2010-02-04 Thread smallufo
After upgrading to 1.4.6 , it always pops up this warning : WARN http.WicketURLDecoder - No current Application found - defaulting encoding to UTF-8 It is ok in 1.4.5 , but I don't know why it has such warning in 1.4.6 . How to get rid of it ? Thanks ...

Bring Panel into View in Browser

2010-02-04 Thread Corbin, James
Hi, I am dynamically adding panel components to my display and eventually the list of panels grows big enough that the most recently added is not visible (not in visible scroll region) in the browser. I am looking for an approach to force the last panel added to scroll into view if it's

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

2010-02-04 Thread Andrew Lombardi
WiA covers 1.3, there's a wiki page that covers the differences here: http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html 95% of WiA is going to work just fine though, aside from the changes mentioned in the migration link above On Feb 4, 2010, at 7:51 PM, David Chang wrote: Hello, I

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

2010-02-04 Thread Igor Vaynberg
disable it in your logging configuration -igor On Thu, Feb 4, 2010 at 8:13 PM, smallufo small...@gmail.com wrote: After upgrading to 1.4.6 , it always pops up this warning : WARN  http.WicketURLDecoder - No current Application found - defaulting encoding to UTF-8 It is ok in 1.4.5 , but I

Re: dojo 1.4

2010-02-04 Thread Ernesto Reinaldo Barreiro
I think there is a dojo project on wicketstuf http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-dojo-1.1 http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-dojo-1.1but it seems it is 1.1 Unless documentation is outdated? Best, Ernesto On Thu, Feb 4, 2010 at

Re: AbstractAjaxTimerBehaviour sets Transient object to null when same page in opened in new tab

2010-02-04 Thread LinaTomy
Thanks a lot Igor. This works!! igor.vaynberg wrote: if you keep working on the same page instance it is kept in http sessison and is not serialized. when you go to a new page it pushes the old instance out, forcing serialization, and setting the transient field to null. a proper way

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

2010-02-04 Thread Erik van Oosten
In Wicket it usually helps to look at the classes that are near in the class hierarchy. In this case RestartResponseException extends from AbstractRestartResponseException. Another subclass of AbstractRestartResponseException is RedirectToUrlException, which does exactly what you ask.

How to add and remove css classes the right way?

2010-02-04 Thread Martin U
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: IteratorFeedbackMessage iter =