[wicket 1.5] Howto avoid 404 on shared image?

2011-10-07 Thread Mike Mander
Hi, i use 1.5.1 (in 1.5 examples i couldn't find a matching one) I've packaged my application images to a package (appname.res.img). WicketApplication is located in root package (appname). In the images package there is a class ImageMounter which is loading all images in package and mount

Re: [wicket 1.5] Howto avoid 404 on shared image?

2011-10-07 Thread Mike Mander
Thanks Martin, Uuuh. That is heavy-weight for my little uc :-) Instead of using an image i use now code WebComponent image = new WebComponent(itemSpot); image.add(new SrcModifier(Model.String of(/resources/shop/img/transparency.png))); /code My page is still stateless,

[Wicket 1.5.1] Support for SpringBean proxy has gone

2011-09-30 Thread Mike Mander
Hi, call me stupid but with 1.5.0 there was a feature in SpringBean annotation to set using a proxy or not. Issue was https://issues.apache.org/jira/browse/WICKET-3936. Why is it gone with 1.5.1? Thanks Mike - To

Re: [Wicket 1.5.1] Support for SpringBean proxy has gone

2011-09-30 Thread Mike Mander
Yeah. It's mystic. I couldn't find any commit to trunk / release with this change. In Jira issue is really open. But i really used an unpatched 1.5.0 version with SpringBean proxy available. Maybe it was accidently in 1.5.0 :-) I've use as a workaround wicket-spring 1.5.0 with wicket-core

[Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Mike Mander
Hi, on my integration server there is another application using the ssl port (certificate etc.). I can't disable it so far. Because ssl certificate can only be used for one app, i disabled ssl by configuration for my app with wicket 1.4.x. I configured the https port to -1 and so ssl (with

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Mike Mander
Thanks Martin, Overriding / implementing my own mapper would be an option if i could use the HttpsRequestChecker. But it's package private (1.5.0). But thinking about that again lead me to another option = set the https_port in config. setRootRequestMapper(new

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Mike Mander
Thanks Martin, Problem solved. Instead of implementing something i've configured the mapper: if (_httpsPort -1) { setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig(_httpPort, _httpsPort))); } :-) That is simple and no need to copy

Re: stateless page + click on stateless link = stateful page

2011-09-14 Thread Mike Mander
Am 13.09.2011 23:59, schrieb Bertrand Guay-Paquet: This is fixed in trunk. The fix will be available in 1.5.1 Martin wrote to me in a former post This is fixed in trunk. The fix will be available in 1.5.1 Maybe we should try it again with 1.5.1

[SVN] Where is the release of 1.5.0?

2011-09-08 Thread Mike Mander
Hi, at first thanks to the wicket devs for wicket-1.5. Migration here is still in process but it's not that hard (escpecially with help of Martin :-). I would like to patch the sources by i couldn't find a 1.5.0 folder in releases. Is that moved away from

Re: [SVN] Where is the release of 1.5.0?

2011-09-08 Thread Mike Mander
Thanks. Mike It is there now. http://svn.apache.org/repos/asf/wicket/releases/wicket-1.5.0 On Thu, Sep 8, 2011 at 9:29 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, at first thanks to the wicket devs for wicket-1.5. Migration here is still in process but it's not that hard (escpecially with

[Quickstart 1.5.0] Why is my generated pom for new quickstart-project referencing 1.5-RC7?

2011-09-08 Thread Mike Mander
If i generate a quickstart project with 1.5.0 the generated pom references 1.5-RC7. Is this correct or maybe an effect on my machine? command mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.5.0 -DgroupId=poc

Re: [Quickstart 1.5.0] Why is my generated pom for new quickstart-project referencing 1.5-RC7?

2011-09-08 Thread Mike Mander
No problem. Thanks for clearification. Mike This is our mistake ... We just promoted RC7 to 1.5.0 without any changes in the code and it seems mvn versions:set didn't find this occurrence of RC7 ...

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread Mike Mander
Am 08.09.2011 11:26, schrieb nhsoft.yhw: in wicket 1.4.x, the code like : HttpServletRequest request = getWebRequestCycle().getWebRequest().getHttpServletRequest(); but i don't know how to get HttpServletRequest in wicket 1.5 - http://www.517wm.com 外卖订餐分享工具 -- View this message in

Re: how to get HttpServletRequest in wicket 1.5

2011-09-08 Thread Mike Mander
Sorry for posting the wrong one. YOurs is org.apache.wicket.protocol.http.servlet.ServletWebRequest.getContainerRequest() Mike in wicket 1.4.x, the code like : HttpServletRequest request = getWebRequestCycle().getWebRequest().getHttpServletRequest(); but i don't know how to get

Re: [Migration 1.5] How to map custom-layout of urls?

2011-09-06 Thread Mike Mander
Thanks Thomas, that was my first try. But the consequence is that i have to handle the page parameter (foo) in the page. With 1.4 we had a strategy for that with some tests. I would like to migrate that. Mike It has some basic support for this, you can just mountPage(ShowTheme-${foo},

Re: [Migration 1.5] How to map custom-layout of urls?

2011-09-06 Thread Mike Mander
Sorry Martin, but i don't get it to work. I wrote a mapper: import org.apache.wicket.request.IRequestHandler; import org.apache.wicket.request.Request; import org.apache.wicket.request.Url; import org.apache.wicket.request.handler.BookmarkablePageRequestHandler; import

Re: [Migration 1.5] How to map custom-layout of urls?

2011-09-06 Thread Mike Mander
Ok now it's working. My mapper looks like this. import org.apache.wicket.request.IRequestHandler; import org.apache.wicket.request.Request; import org.apache.wicket.request.Url; import org.apache.wicket.request.handler.PageProvider; import

[Migration 1.5] Is StatelessChecker not providing hints on stateful component anymore?

2011-09-06 Thread Mike Mander
Hi, i use StatelessChecker from dev-utils. In 1.4 if a page was not stateless the checker told me the offending component. But now in 1.5 i only get this message: ERROR - DefaultExceptionMapper - Unexpected error occurred java.lang.IllegalArgumentException: '[Page class =

Re: [Migration 1.5] Is StatelessChecker not providing hints on stateful component anymore?

2011-09-06 Thread Mike Mander
Hi Martin, the page itself has no behavior attached. I use a stateless form with behaviors on components. On first call check is passed. If i don't provide values and press submit (validation fails) then StatelessChecker complains. The page stateless flag is set by PageProvider /**

Re: [Migration 1.5] Is StatelessChecker not providing hints on stateful component anymore?

2011-09-06 Thread Mike Mander
Ah, thanks. Mike This is fixed in trunk. The fix will be available in 1.5.1 On Tue, Sep 6, 2011 at 3:34 PM, Mike Manderwicket-m...@gmx.de wrote: Hi Martin, the page itself has no behavior attached. I use a stateless form with behaviors on components. On first call check is passed. If i

[Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Mike Mander
Hi, i couldn't find a working solution until now for the following usecase. I would like to include a css file from my package structure in a page. It sits in package-path/res/css. I included the css in my page: code @Override public void renderHead(IHeaderResponse response) {

Re: [Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Mike Mander
)); } /code without mountResource in application.init() Matteo Sotil -Mensaje original- De: Mike Mander [mailto:wicket-m...@gmx.de] Enviado el: lunes, 05 de septiembre de 2011 14:21 Para: users@wicket.apache.org Asunto: [Migration 1.5] Howto mount my css package resource? Hi, i couldn't find

[Migration 1.5] How can i redirect to another page with a configured response?

2011-09-02 Thread Mike Mander
Hi, my usecase: Google caches page urls from our old shop. Because we changed the url layout i have to redirect all page requests to the new page. I did that this way wicket-1.4.18 @Override protected void onBeforeRender() { super.onBeforeRender(); final String url =

Re: [Migration 1.5] How can i redirect to another page with a configured response?

2011-09-02 Thread Mike Mander
Thanks Martin, that worked. Is this still the way to go in wicket 1.5? Thanks Mike On Fri, Sep 2, 2011 at 11:24 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, my usecase: Google caches page urls from our old shop. Because we changed the url layout i have to redirect all page requests to the

[Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Mike Mander
In migration guide it says org.apache.wicket.markup.html.resources.CompressedResourceReference org.apache.wicket.request.resource.CompressedResourceReference But i can't import it. Do i have to include another wicket library? Thanks Mike

[Migration 1.5] Where has CookieValuePersister gone?

2011-09-02 Thread Mike Mander
Sorry for spaming. But i can't find CookieValuePersister anymore. Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: [Migration 1.5] Where has CookieValuePersister gone?

2011-09-02 Thread Mike Mander
Am 02.09.2011 13:15, schrieb Mike Mander: Sorry for spaming. But i can't find CookieValuePersister anymore. Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Mike Mander
Am 02.09.2011 13:15, schrieb Ernesto Reinaldo Barreiro: I think I remember I saw I commit message telling the feature was dropped... but I might be wrong. Best, Ernesto On Fri, Sep 2, 2011 at 1:05 PM, Mike Manderwicket-m...@gmx.de wrote: In migration guide it says

Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Mike Mander
Am 22.08.2011 09:45, schrieb Mathilde Pellerin: Hi all, thanks for your answers. So, Ajax can be a problem with tagTester. Ok, so I don't use Ajax response anymore to render my page : public void testStory23_TA21_VerificationInitialisationBoutonsRadio(){ Questionnaire

Re: how to test what radio is checked in a radiogroup?

2011-08-22 Thread Mike Mander
Am 22.08.2011 13:27, schrieb Mike Mander: Am 22.08.2011 09:45, schrieb Mathilde Pellerin: Hi all, thanks for your answers. So, Ajax can be a problem with tagTester. Ok, so I don't use Ajax response anymore to render my page : public void

Re: Log bookmarkable page link execution

2011-08-19 Thread Mike Mander
Thanks Dan, my intention is to track ux with our shop. We have for instance a link you can configure how many products you see per page. Because we don't know what is the best view size we want to check if users use our preselection or always change it to other values. I will try your

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 14:21, schrieb Mathilde Pellerin: Hi all, I have a form with a Radiogroup : In my form, I have a radiogroup like this : RadioGroupString genre = new RadioGroupString(genreDestinataire); genre.setRequired(true); genre.setLabel(new ModelString(Genre

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 15:35, schrieb Mathilde Pellerin: Thank you for your answer Mike. I didn't find out how could I try with Radio.onComponentTag, so I tried with tagTester. I think it could be a good solution, so I did that : TagTester tagFemme =

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 16:38, schrieb Mathilde Pellerin: I add WicketTester.debugComponentTrees() in my test juste before assertNotNull which failed like this : TagTester tagFemme = tester.getTagByWicketId(formCreationQuestionnaire:genre:femme); TagTester tagHomme =

Log bookmarkable page link execution

2011-08-18 Thread Mike Mander
Hi, i would like to log execution of bookmarkable page links. I know that they are only renderered in markup and call the page from the browser. Maybe someone has a hint for me here? Thanks Mike - To unsubscribe, e-mail:

Re: Form looses data

2011-08-12 Thread Mike Mander
Hello Martin Makundi, i have some questions for usage of this. 1. Where do i have to put my instance of reusemanager? 2. What is MarkupUtils.fakeRawInput and MarkupUtils.replaceReporter doing? 3. I don't have any persistent id (rowid) for usage. 4. Do you have a working example for me? Thanks

Re: Form looses data

2011-08-12 Thread Mike Mander
That is not working to. I've created a quickstart for this. Scenario is simplified. HomePage gets the data and has two submit buttons. Do i press the submit and click back on other page data are present (submitted). Do i press the invalid submit and click back on other page data are lost. Here

Re: Form looses data

2011-08-12 Thread Mike Mander
Thanks Martin, now it works as expected. I don't have a clue how but it is. I really would be interested in knowing why the reusemanager gets the data and the form not. I think i will start a debugging session at weekend :-) Maybe we should use this scenario and put it in the wiki?

Re: Form looses data

2011-08-12 Thread Mike Mander
But if wicket should support it out of the box there is maybe another way. If we could get a method onBeforeFormSubmit() in form there would be an access point to configure validators in all childs. In default nothing is to do - means leave form as configured at creation time. If it's nessecary

Re: Form looses data

2011-08-12 Thread Mike Mander
I checked Form. There is an onValidate. Maybe i can clear the feedback messages there. Will try it. But if wicket should support it out of the box there is maybe another way. If we could get a method onBeforeFormSubmit() in form there would be an access point to configure validators in all

Re: Form looses data

2011-08-12 Thread Mike Mander
onValidate seems a way to go. It leads to a not soo reusable solution like your ReuseManager but it works. I simply override onConfigure in Form and did that @Override protected void onValidate() { super.onValidate(); if

Re: Form looses data

2011-08-12 Thread Mike Mander
With an annotation on my button i can go over the name cluttering issue import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import

Re: Form looses data

2011-08-12 Thread Mike Mander
That's right. But the only consequence here is that he has to fill out this (formerly invalid) field again. I know that this is not the default intention of form behavior. But the opposite of loosing all data is much more expensive because 10% (maybe more) of willing customers buy elsewhere

Re: rendering component

2011-08-11 Thread Mike Mander
Am 11.08.2011 11:59, schrieb Lurtz Nazgul: Hi, Is it possible not to render a component for security issues. I know i can use IAuthorizationStrategy for this but i want to to it manually I don't need just setVisible(false), i really need not to render that component. I don't know which

Form looses data

2011-08-11 Thread Mike Mander
Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then

Re: Form looses data

2011-08-11 Thread Mike Mander
Am 11.08.2011 16:36, schrieb Bruno Borges: Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A

Re: Form looses data

2011-08-11 Thread Mike Mander
Am 11.08.2011 16:54, schrieb Bruno Borges: You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Have you considered to add Ajax update behaviour? onBlur of components, you could update

How can i toggle panel visibility without javascript?

2011-08-08 Thread Mike Mander
Hi, i have two adress panels. Invoice and shipping. Shipping is off by default. I would like to add a button or something to my invoice panel which is toggling the visibility of the shipping panel. I tried to add a page parameter to my current site and redirect, but the added parameter is not

Why isn't my stateless form recreated from page parameters automatically?

2011-08-01 Thread Mike Mander
Hi, i would like to build up a stateless page for collecting an itemId and an amount from my user. The website should act as a direct shopping formular. The user only should insert the data and on form submission the itemId is checked for existence. A helper button should clear the field

Problem while decouple page flow by using SpringBean

2011-07-28 Thread Mike Mander
Hi, i would like to decouple the page dependencies. My page flow is implemented by using bookmarkable page links. As we all know they take a page class as parameter. This couples both pages. So i thought it's a good idea to give the page class a name in my Spring application context and

Re: Problem while decouple page flow by using SpringBean

2011-07-28 Thread Mike Mander
Found a solution, but would be great if i could get some tips about the consequences. I was wrapping the beans in proxies by setting the flag in SpringComponentInjector to true. Now it's set to false and it's working. But i'm a bit in doubt that i opened pandoras box with this. It was

Re: Problem while decouple page flow by using SpringBean

2011-07-28 Thread Mike Mander
Thanks Martin for the work-around. Jira added: https://issues.apache.org/jira/browse/WICKET-3936 Thanks Mike Am 28.07.2011 09:26, schrieb Martin Grigorov: i would like to decouple the page dependencies. My page flow is implemented by using bookmarkable page links. As we all know they take a

Strange encoding problem

2011-07-21 Thread Mike Mander
Hi, i have a strange url encoding problem. I load some names from db (One of them is Schlümpfe). Then i add a BookmarkablePageLink to my OverviewPage. Markup is encoded as UTF-8. If i check markup links href = Overview.html/name/Schlümpfe. If i click the link browser url is

Re: Strange encoding problem

2011-07-21 Thread Mike Mander
Am 21.07.2011 16:24, schrieb Mike Mander: Hi, i have a strange url encoding problem. I load some names from db (One of them is Schlümpfe). Then i add a BookmarkablePageLink to my OverviewPage. Markup is encoded as UTF-8. If i check markup links href = Overview.html/name/Schlümpfe. If i click

How can i trace the requested urls?

2011-07-19 Thread Mike Mander
Hi, i try to log the page-urls user has visited. I would like to create a log file for every session and log the traces there. My first intent to use a filter for that is not working because servlet spec only allows /* and *. for wildcards. So my url /Overview.html/param1/1/param2/2 is not

Re: How can i trace the requested urls?

2011-07-19 Thread Mike Mander
Am 19.07.2011 14:59, schrieb Martin Grigorov: See the web container's access log. On Tue, Jul 19, 2011 at 3:38 PM, Mike Manderwicket-m...@gmx.de wrote: Hi, i try to log the page-urls user has visited. I would like to create a log file for every session and log the traces there. My first

How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Mike Mander
Hi, my usecase: I use a solr server for search. Importing data to the server works by calling an url (localhost:8983/solr/). I've added this url to a link. On click data-import starts. All works fine. SolrLink.java code @Override protected CharSequence getURL() { return

Re: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Mike Mander
Am 18.07.2011 13:43, schrieb Wilhelmsen Tor Iver: *But* the link leads me to the solr response page. I know it's intended by clicking a link to get directed to the called page, but i would like to call the url and immediatly after that call i would like to redirect to wicket page. Sounds like

Re: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Mike Mander
Am 18.07.2011 14:08, schrieb Wilhelmsen Tor Iver: HttpClient looks great. Do you know if i can execute the HttpMethod without waiting for request to comeback? Maybe an asynchronous way? There seems to be an async fork you can try:

Re: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Mike Mander
Am 18.07.2011 14:41, schrieb Wilhelmsen Tor Iver: throw new RestartResponseAtInterceptPageException(DashboardPage.class); Will you ever be returning from that (via continueToOriginalDestination())? If not, setResponsePage(DashboardPage.class) is better. - Tor Iver

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Mike Mander
Hello again, call me stupid, but i don't get it (ImageButton loading shared image resource). What i did so far is: Application.init() code String key = new CompressedResourceReference(WicketApplication.class, res/img/search_go.png).getSharedResourceKey();

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Mike Mander
Thanks Martin, SharedResourceReference and your solution seems to be 1.5. I'm using 1.4.17. Is there something for 1.4.x? Mike That's why we have examples :

Can i include an external html fragment?

2011-07-14 Thread Mike Mander
Hi, i would like to provide a way for our designer to change the homepage layout outside of the web-app. But i'm not sure how to do it. Usecase: Wicket homepage contains a div-placeholder for the main-content. Designer uploads a html fragment with divbla/div to a file-server. In the HomePage

Is there a class for encoding page parameters for urls?

2011-07-13 Thread Mike Mander
Hi, is wicket providing a class encoding a page parameter string for url? Usecase: I have a searchword. This is put plain into the page parameters. But if i use for example the searchword myword% i get ERROR - RequestCycle - URLDecoder: Incomplete trailing escape (%) pattern

Why is stateless from making my page stateful?

2011-07-12 Thread Mike Mander
Hi, i use a page with a border. I add a panel with a stateless form to the border and the page gets stateful. Why? The symtoms are - NotSerializableExceptions and RuntimeException if i click the submit. Form action:

Re: Why is stateless from making my page stateful?

2011-07-12 Thread Mike Mander
Thanks Martin for the dev-utils hint. You're right for my problem. It seems that all my images have the statelessHint = false. But: How can i make my image resource references stateless? Thanks Mike I think ImageButton is the component that makes it stateful. To be sure use wicket-devutils,

[OT] Configure wicket.configuration outside web.xml in Tomcat 6

2011-07-04 Thread Mike Mander
Hi, i'm trying to configure my wicket.configuration property without adding it to web.xml. I use tomcat 6. Adding wicket.configuration=deployment in CATALINA_HOME/conf/catalina.properties was not working. App starts in development mode (after tomcat restart / param not present in web.xml).

Re: [OT] Configure wicket.configuration outside web.xml in Tomcat 6

2011-07-04 Thread Mike Mander
from Eclipse. This way you always package a production-ready jar/war/ear and can run in development mode locally. Bas Op 4-7-2011 9:46, schreef Mike Mander: Hi, i'm trying to configure my wicket.configuration property without adding it to web.xml. I use tomcat 6. Adding

Re: Drop

2011-06-22 Thread Mike Mander
Am 22.06.2011 06:54, schrieb Hans Lesmeister 2: FeanorsCurse wrote: However, I still feel like that is an unnecessary step; I don't see any reason why the PropertyModel should not be enough on its own. Please correct me if I am wrong: The model passed in tells the dropdown which object from

Re: idiosyncratic interfaces such as IModel, IVisitor

2011-06-21 Thread Mike Mander
Am 21.06.2011 10:08, schrieb IO: Hi, in Wicket there are many idiosyncratic interfaces, such as IModelT. I often see that these interfaces are implemented several times in a project. An idiosyncratic interface should be implemented only once in a project. Can someone explain that to me? IO. --

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

2011-05-18 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

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

2011-05-18 Thread Mike Mander
That was the way brought me to my trouble. In IE the parent selector was ignored. {.sidebar * .facet} definition was nicely rendered in FF but ignored in IE. The solution for this non-wicket problem was to add the doc-type to my page html. Now i get the results i've expected. Thanks Mike

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

Re: extends statement

2011-04-19 Thread Mike Mander
Am 18.04.2011 20:53, schrieb Tomas Mihok: Hello, I created a web application with module as reausable component in it. Here is how it looks like (very simple): Index.html - 2 links (they are inul list) and module added throughdiv Index.Java extends HomePage with three add statements (2 x

Re: Choose One problem with DropDownChoice

2011-04-15 Thread Mike Mander
Am 15.04.2011 15:55, schrieb tech7: Any suggestion? - Wicket-Java -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html Sent from the Users forum mailing list archive at Nabble.com.

[wicketstuff-annotation] Url displayed with alt MountPath

2011-04-05 Thread Mike Mander
Hi, i have a strange behavior with the MountPath in wicketstuff-annotation. Annotated my page with @MountPath(path=ShowWelcomePage.html, alt={index, index.html, index.php, index.jsp}) If i call my welcome page (http://localhost:8080) i get http://localhost:8080/index.php If i change alt to

Can i catch all urls ending with .php?

2011-04-05 Thread Mike Mander
Hi, i have to build a redirect page for urls ending with .php. If i mount the page with *.php Path i get a 404. Is this possible? Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Can i catch all urls ending with .php?

2011-04-05 Thread Mike Mander
Am 05.04.2011 14:08, schrieb Wilhelmsen Tor Iver: i have to build a redirect page for urls ending with .php. If i mount the page with *.php Path i get a 404. Sounds like something that is better handled with a traditional ServletFilter than anything Wicket. - Tor Iver

Re: Set default coding strategy

2011-04-01 Thread Mike Mander
Am 31.03.2011 17:39, schrieb Loren Cole: We're using annotations to mount our pages, and would like to set things up so they use HybridUrlCodingStrategy by default. Does anyone know of a way to do this? Thanks, Loren Maybe you can write your own mount method mountHybrid and overload it. Then

Re: Externalizing Page Mounts Via Spring

2011-03-09 Thread Mike Mander
Am 09.03.2011 11:28, schrieb Arjun Dhar: Hi, I wanted to externalize the Page Mounts using Spring. Earlier in my Application class the code was like: mount(new QueryStringUrlCodingStrategy(login, loginPage.class)); So What I did was: ... //Scan for All IMountLoaders in

Re: Adding Title or AltText to CheckBoxMultipleChoice

2011-02-23 Thread Mike Mander
Am 23.02.2011 15:16, schrieb eugenebalt: Is it possible to add a Title or an AltText attribute to a CheckBoxMultipleChoice? (for the tip window) Thanks Did you try an AttributeModifier? - To unsubscribe, e-mail:

Re: Adding Title or AltText to CheckBoxMultipleChoice

2011-02-23 Thread Mike Mander
Maybe it is possible to be more verbose on suffix and prefix. Maybe add the alt and title to the li element. Cheers Mike Hi, I don't think you may customize the tags as the input generation is hard-coded: // Add checkbox element buffer.append(input

Re: Problem get selected value using dynamic select with optgroup

2011-02-22 Thread Mike Mander
A shot in the dark. Is the behavior required at the select? Or is the option getting the onchange event? Cheers Mike I'm using the select component due to realizing a dynamic optgroup and option list. It works rather fine but my problem is to get the selected value. I tried to use an ajax

Problem on wicket:message with components

2011-02-18 Thread Mike Mander
Hi, i've copied the solution described in https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:message. Wicket: 1.4.15 MyPage.java public MyPage() { final VatList vatList = new VatList(_vatExecutor.getVats()); add(new Label(vat1value,

Re: Problem on wicket:message with components

2011-02-18 Thread Mike Mander
Hi Martin, this isn't what i try to achieve. The wiki states Starting from Wicket 1.4 you can nest components within a wicket:message element.. And i would like to exchange the placeholders with the 2 values on the label. Btw. i tried your change solution and it gives me the same exception.

Re: Problem on wicket:message with components

2011-02-18 Thread Mike Mander
Done. https://issues.apache.org/jira/browse/WICKET-3454 It seems to be a border or sub-page problem. Adding this feature to a plain simple page is working as expected. Thanks for support Mike I didn't know about this feature until now ... Create a ticket with a quickstart please. On Fri,

Re: wicket in action session Problems

2011-02-18 Thread Mike Mander
Have you overwriten the newSession(request, response) method in your WebApplication? There you have to instantiate your ChesrSession. Cheers Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: EmailAddressValidator triggers on empty input field

2011-02-18 Thread Mike Mander
Am 18.02.2011 15:39, schrieb hrbaer: Any idea? Did you check INullAcceptingValidatorT and AbstractValidatorT.validateOnNullValue() ? They discribe what is to do. Cheers Mike - To unsubscribe, e-mail:

Re: EmailAddressValidator triggers on empty input field

2011-02-18 Thread Mike Mander
I checked a little example and it worked as expected: - nothing in field ENTER results in All valid! - wrong email in field ENTER results in oops - valid email in field ENTER results in All valid! public class HomePage extends WebPage { public HomePage(final PageParameters parameters) {

Re: dynamic tree model

2011-02-18 Thread Mike Mander
Am 18.02.2011 17:10, schrieb Anna Simbirtsev: Hi, I have a tree with ExternalLink as a leaf node. Is it possible to make the tree dynamic? Like when the user clicks on a +, the model gets reloaded and the tree rerendered? Thanks Anna

Re: Adding pages in clean URLs

2011-02-16 Thread Mike Mander
Is WebApplication.mount(final String path, final PackageName packageName) fitting? Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Can i catch urls like http://localhost:8080/ShowThemePage-ti325-Twilight.html by IRequestTargetUrlCodingStrategy?

2011-01-27 Thread Mike Mander
Hi, urls in my shop look like this code http://localhost:8080/ShowThemePage-ti325-Twilight.html /code ShowThemePage should be mapped to my ThemePage.class The ti325 and Twilight Tokens should be indexed parameters and the .html is for ornament. Until now i mounted my own Strategy in my

Why is my css variant not used in markup?

2011-01-25 Thread Mike Mander
Hi all, i try to load a variant of my main css file (wicket 1.4.15). The file is located in a webapp-subfolder (src/main/webapp/_css). So i set the style of session to branda. In the page i load the css like this code add(CSSPackageResource.getHeaderContribution(/_css/main.css, screen));

Re: Why is my css variant not used in markup?

2011-01-25 Thread Mike Mander
With code add(CSSPackageResource.getHeaderContribution(new ResourceReference(_css/cust.css), screen)); /code i get code resources/org.apache.wicket.Application/_css/cust.css /code But this file is not existing and layout is demaged :-(. Thanks Mike

Re: Why is my css variant not used in markup?

2011-01-25 Thread Mike Mander
Hi Mathias, it would be great if it would be that easy. But it isn't. It was my fault. The spelling i've already checked (before complaining here :-) I really look for branda (Take brenda as alias :-). And it isn't working :-( Thanks anyway Mike

Re: Why is my css variant not used in markup?

2011-01-25 Thread Mike Mander
Thanks Martin. That would explain, why it's not working. So i will do it manually. What do you thing - is it making sense to open an RFE? Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Mike Mander
Am 21.01.2011 09:17, schrieb Martin Grigorov: Try with : in .html: html wicket:id=html in .java: WebMarkupContainer htmlTag = new WebMarkupContainer(html); htmlTag.add(new SimpleAttributeModifier(lang, getSession().getLocale().toString()); htmlTag.setTransparentResolver(true); // check

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Mike Mander
Great Martin. Thanks alot it works as expected. My solution: LocalizedHtmlTag.java import org.apache.wicket.behavior.SimpleAttributeModifier; import org.apache.wicket.markup.html.WebMarkupContainer; public class LocalizedHtmlTag extends WebMarkupContainer { public LocalizedHtmlTag(String

Re: How can i change lang attribute in html markup tag?

2011-01-20 Thread Mike Mander
With further investigation i found a hint on using an IMarkupFilter. Is there an example with this for my problem? Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

How can i change lang attribute in html markup tag?

2011-01-18 Thread Mike Mander
Hello, i'm new to wicket and the mailing list. I already checked the search machines but didn't found anything. i have to migrate a jsp. In the jsp there is a html tag like this: html xmlns=http://www.w3.org/1999/xhtml;

  1   2   >