Re: Howto modify css-class prefix of all components on a panel?

2011-05-17 Thread Igor Vaynberg
you can use css child selectors to override the layout when they are inside a specific div. -igor On Tue, May 17, 2011 at 4:49 AM, Mike Mander wrote: > Hi, > > i use a component twice. Layout of first component has to be horizontal of > second vertical (MainMenu, Sidebar). > Because the compone

Re: Howto modify css-class prefix of all components on a panel?

2011-05-17 Thread Mike Mander
But if i remove it the problem stays the same. Maybe i should have said that the components are added to a border. Maybe this is relevant. Thanks Mike Hi Mike, maybe is not related to your problem, but I think you shouldn't recall vistiChildren inside visitor because visitChildren already tr

Re: Issue with internationalising the MultiFileUploadField component

2011-05-17 Thread Martin Grigorov
Please create a quickstart app and attach it to a ticket. Test the quickstart with 1.4.17 too. On Wed, May 18, 2011 at 1:41 AM, Steve Swinsburg wrote: > Ok I've done that and when the webapp starts up I get this: > INFO: 2011-05-18 09:36:53,246 Loading properties files from > jar:file:/pah/to/my/

Re: Issue with internationalising the MultiFileUploadField component

2011-05-17 Thread Steve Swinsburg
Ok I've done that and when the webapp starts up I get this: INFO: 2011-05-18 09:36:53,246 Loading properties files from jar:file:/pah/to/my/app/WEB-INF/lib/wicket-1.4.13.jar!/org/apache/wicket/Application.properties [http-8081-Processor24] Accessing pages I see things like: DEBUG: 2011-05-18 09:

RES: Last Page visited

2011-05-17 Thread Vitor Granzinoli Vellozo
Jim, Thanks a lot! Certainly it will help me! My application needs a totally different way of navigation, it cannot back pages like browser do, and it have diffent way of navigations, it Will depends of the app business, so I need control by myself. Thanks! -Mensagem original- De: J

Re: Last Page visited

2011-05-17 Thread Jim Pinkham
Well, most browsers already have back button, so I'm not sure why you would want to re-implement that, but assuming you do, here's one way to do what I think Martin is suggesting by "pass a page reference": abstract class AbstractBase extends WebPage { PageReference priorPage; public Ab

Re: FormComponent convertInput for children FormComponets

2011-05-17 Thread Sven Meier
OK, if you have validators on your FormComponentPanel, my suggestion won't work. Sven On 05/17/2011 09:28 PM, Clint Checketts wrote: Sven, Having that code in updateModel is too late. The input needs to be converted and set to make it available to validators. The form processing cycle is roug

Re: FormComponent convertInput for children FormComponets

2011-05-17 Thread Igor Vaynberg
On Mon, May 16, 2011 at 2:35 PM, Clint Checketts wrote: >  I have a FormComponentPanel that contains multiple child formcomponent. > The purpose of this panel is to be able to add in several cihldren > dynamically. The end model is supposed to be the list from all the children > component. I get t

[ANN] Apache Wicket Cookbook Giveaway Contest

2011-05-17 Thread Igor Vaynberg
Packt Publishing has generously allowed me to give away a free copy of the ebook version of Apache Wicket Cookbook [1], and a free one year subscription to PacktLib. For details see the announcement [2]. [1] http://link.packtpub.com/AzN8N9 [2] http://wicketinaction.com/2011/05/apache_wicket_cookbo

Re: FormComponent convertInput for children FormComponets

2011-05-17 Thread Clint Checketts
Sven, Having that code in updateModel is too late. The input needs to be converted and set to make it available to validators. The form processing cycle is roughly: 1- User submitts the form 2- Required fields are checked for existence 3- Input is converted 4- Validators run 5- Models get updated

Re: Re: DataTable and FilterToolbar

2011-05-17 Thread Igor Vaynberg
it is meant to go into one of the columns. usually there is an "action" column and this filter is meant to go with that column. if you do not have such, simply replicate the functionality - you have the source. -igor On Tue, May 17, 2011 at 11:34 AM, Tom Eicher wrote: > >> there is a GoAndClearF

Re: Re: DataTable and FilterToolbar

2011-05-17 Thread Tom Eicher
there is a GoAndClearFilter which can submit the search form afair Yes, but that ons is meant for use within a form, as you write, but not within a FilterToolbar embedded in a DataTable. Or how would you use it / where would you put in a FilterToolbar ? (The FilterToolbar is below the column

RES: Last Page visited

2011-05-17 Thread Vitor Granzinoli Vellozo
Martin, I really read your example, but on the "new NewPage(...);" I cannot do that, because on the "BackButton" I wont know witch Page is The Idea is, put this BackButton throught all application, so it needs to discover from witch page the actual page was called, just it. I swear I read

Re: Wicket 1.5 & IComponentInstantiationListener VS AutolinkBookmarkablePageLink

2011-05-17 Thread nino martinez wael
I'll produce one as fast as possible.. 2011/5/16 Igor Vaynberg : > i think the quickstart goes without saying... :) > > -igor > > On Mon, May 16, 2011 at 8:24 AM, Martin Grigorov wrote: >> with a proper quickstart because fast check shows that >> bookmarkablePageLink#getPageClass() returns null a

Re: Last Page visited

2011-05-17 Thread Martin Grigorov
Read carefully my examples. On Tue, May 17, 2011 at 7:31 PM, Vitor Granzinoli Vellozo < vitor.vell...@cpmbraxis.com> wrote: > > Martin, > > It not works. > > I did: setResponsePage(getPage().getPageReference().getPage()); > > My structure is: > > Page (a separated class) > |- Form (a separated

RES: Last Page visited

2011-05-17 Thread Vitor Granzinoli Vellozo
Martin, It not works. I did: setResponsePage(getPage().getPageReference().getPage()); My structure is: Page (a separated class) |- Form (a separated class) |- Button (a separated class BackButton) Each component is a separated class in our application. The Button code is: publ

Re: Last Page visited

2011-05-17 Thread Martin Grigorov
On Tue, May 17, 2011 at 7:18 PM, Martin Grigorov wrote: > The idea is : > > setResponsePage(new NewPage(getPageReference())) > > later in NewPage you can do: > Link linkToPreviousPage = new BookmarkablePageLink("link", > previousPageRef.getPage().getClass()) > Or even : setResponsePage(previousPa

Re: Last Page visited

2011-05-17 Thread Martin Grigorov
The idea is : setResponsePage(new NewPage(getPageReference())) later in NewPage you can do: Link linkToPreviousPage = new BookmarkablePageLink("link", previousPageRef.getPage().getClass()) On Tue, May 17, 2011 at 7:11 PM, Vitor Granzinoli Vellozo < vitor.vell...@cpmbraxis.com> wrote: > > Igor,

RES: Last Page visited

2011-05-17 Thread Vitor Granzinoli Vellozo
Igor, I had a problem with getPageReference(). I need go back to the preview page. So, from the Page2, go to Page1. The getPageReference() method do not gave me preview Page. It gave me the same Page. Is there a way to get the Page.class reference of the preview Page? The code I've tested getP

Re: Last Page visited

2011-05-17 Thread Igor Vaynberg
you can pass PageReference objects around. see Page#getPageReference() -igor On Tue, May 17, 2011 at 7:38 AM, Vitor Granzinoli Vellozo wrote: > > > Wicketers, > > > > What is the Best way to store the last Page visited? My business need > that to create a Page control to make > > a special back

HeaderContributors, Ajax and IE8

2011-05-17 Thread Nicklas Johnson
(posting this as its own thread rather than burying it in a reply like I did last time) Has anyone experienced HeaderContributors being ineffective in IE8 when added via an ajax event? The scenario is that a component with an attached Ibehavior which in turn provides several Javascript HeaderCont

Last Page visited

2011-05-17 Thread Vitor Granzinoli Vellozo
Wicketers, What is the Best way to store the last Page visited? My business need that to create a Page control to make a special back action, not the back browser action. In this case, my application is inside another. Thanks, Vitor

Re: MarkupNotFoundException strange behavior

2011-05-17 Thread Tito
I don't know, I'm gonna ask him. But I have not access to user machine. For now, I will still trying to get a more specific information about error. 2011/5/17 Andrea Del Bene > Is there any software on the "infamous" machine that could interfere with > the tcp/ip connection (firewall, antivirus,

Re: MarkupNotFoundException strange behavior

2011-05-17 Thread Andrea Del Bene
Is there any software on the "infamous" machine that could interfere with the tcp/ip connection (firewall, antivirus, security suite, etc...) ? Yes Clint. In fact extends from BasePage wich extends from WebPage. But the point is, it's working except for one user y one computer. Andrea, It's so w

Re: MarkupNotFoundException strange behavior

2011-05-17 Thread Tito
Yes Clint. In fact extends from BasePage wich extends from WebPage. But the point is, it's working except for one user y one computer. Andrea, It's so weird. I asked user to remove Cookies, to try with anothers navigators, and to refresh page. Not to clean cache, but while I'm having this problem

Re: Howto modify css-class prefix of all components on a panel?

2011-05-17 Thread Andrea Del Bene
Hi Mike, maybe is not related to your problem, but I think you shouldn't recall vistiChildren inside visitor because visitChildren already traverse the whole hierarchy of children. Hi, i use a component twice. Layout of first component has to be horizontal of second vertical (MainMenu, Si

Re: Issue with internationalising the MultiFileUploadField component

2011-05-17 Thread Martin Grigorov
Enable debug level logging for org.apache.wicket.Localizer and see what is attempted. On Tue, May 17, 2011 at 1:37 PM, Steve Swinsburg wrote: > Yeah, that's where I have them and its not working. Its the same spot we > have the ones that do work too. > > We do use a custom resource loader but I d

Howto modify css-class prefix of all components on a panel?

2011-05-17 Thread Mike Mander
Hi, i use a component twice. Layout of first component has to be horizontal of second vertical (MainMenu, Sidebar). Because the component itself provides the layout (horizontal version) i run into trouble with vertical layout. My solution would be to add a prefix to vertical layout component an

Re: Issue with internationalising the MultiFileUploadField component

2011-05-17 Thread Steve Swinsburg
Yeah, that's where I have them and its not working. Its the same spot we have the ones that do work too. We do use a custom resource loader but I don't understand why it would allow us to override some properties from Wicket components, and not others. Does the property need to be prefixed wit

How to access SwitchProtocolRequestTarget

2011-05-17 Thread Philipp
I am currently working on an integration of SSL into our wicket application. If pages are accessed, which are annotated with @RequireHttps wicket correctly switches to SSL. This is achieved by adding: /** * Returns a HTTPS request cycle processor, if necessary */ @Override

Re: FormComponent convertInput for children FormComponets

2011-05-17 Thread Sven Meier
Hi Clint, move your code into #updateModel() and set the collected list right into your model. Best regards Sven On 05/16/2011 11:35 PM, Clint Checketts wrote: I have a FormComponentPanel that contains multiple child formcomponent. The purpose of this panel is to be able to add in several

Re: Issue with internationalising the MultiFileUploadField component

2011-05-17 Thread Martin Grigorov
Looking at MultiFileUploadField.java these are exactly the keys you have to use. Try to put them in MyApp_es.properties On Tue, May 17, 2011 at 9:31 AM, Steve Swinsburg wrote: > Hi, > > We are having an issue setting some properties to override the default text > for the MultiFileUploadField comp

Issue with internationalising the MultiFileUploadField component

2011-05-17 Thread Steve Swinsburg
Hi, We are having an issue setting some properties to override the default text for the MultiFileUploadField component. As per the docs, we have set the following in our local properties file: >> org.apache.wicket.mfu.caption.unlimited=Ficheros: >> org.apache.wicket.mfu.caption.limited=Ficheros

Re: Ajax and IComponentResolver

2011-05-17 Thread Martin Grigorov
Currently we are at 1.5 RC4. If there are no major problems the next one may be 1.5 Final. Final or RC5 it will be out in ~ 3 weeks from now. Use https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5when migrating. The problem with Request class can be "solved" with "Optimize