Add input in javascript and process value in form?

2021-03-12 Thread Per Newgro
Hi, i would like to add some input fields to an ul/li using JS. function add_fields() { var d = document.getElementById("items"); var i = d.childElementCount; d.innerHTML += "
  • "; }

    Aw: Re: Extend session metadata with user-data-scope after login (spring question)

    2021-03-07 Thread Per Newgro
    (name = "userScopeFinder") > private IUserScopeFinder userScopeFinder; > > Hope this helps > Sven > > > On 07.03.21 09:58, Per Newgro wrote: > > Hi, > > > > i would like to extend a session (metadata) with scope of user logged in. > &g

    Extend session metadata with user-data-scope after login (spring question)

    2021-03-07 Thread Per Newgro
    Hi, i would like to extend a session (metadata) with scope of user logged in. Something like "allowed countries", "allowed companies" and so on. That scope is provided by a spring bean (UserScopeFinder). This bean is created in a Configuration as a @Bean. What i tried so far is add an

    Is there an example project for wicket-spring-boot with gradle and webpack?

    2019-12-08 Thread Per Newgro
    Hello *, i try to setup a spring boot project based on wicket-spring-boot-parent. To built my frontend assets (sass, js, svg minify etc) i like to use webpack. But if i start my project the assets are not loaded. So i hope to find an example project, where i can find some inspirations how i

    Is there a SOAP resource?

    2019-10-07 Thread Per Newgro
    Hello every1, i would like to migrate some features of an web app to my wicket app. The web app is a spring boot app that provides access to data using SOAP. The web service extracts the SOAP request and calls my wicket app by using rest resource. But now i need to replace the additional web

    Aw: Re: Wicket Spring boot - use spring devtools

    2019-08-28 Thread Per Newgro
    tart > the application manually. > > On Wed, Aug 28, 2019 at 11:25 AM Per Newgro wrote: > > > Hello *, > > > > I migrate my current wicket app to spring boot version ( > > https://github.com/MarcGiffing/wick

    Wicket Spring boot - use spring devtools

    2019-08-28 Thread Per Newgro
    Hello *, I migrate my current wicket app to spring boot version (https://github.com/MarcGiffing/wicket-spring-boot). So far it was straightforward. But now i experience a problem with inclusion of org.springframework.boot

    Re: How to trace that a resource was requested?

    2019-03-17 Thread Per Newgro
    Thanks Martin, good guess. Regards Per Hi, You can use Link#onClick() to count and then throw RedirectToUrlException(urlFor(yourResourceReference)) that will lead to a redirect. On Tue, Mar 12, 2019 at 3:11 PM Per Newgro wrote: Hello, i like to log that a resource (PDF file), generated

    How to trace that a resource was requested?

    2019-03-12 Thread Per Newgro
    Hello, i like to log that a resource (PDF file), generated in backend, was requested. The resource is mounted by a resource reference. An external link is using url to resource reference. Download of file generated by resource is working. But I like to avoid log of every request to resource.

    Google Login with spring boot @WicketApp

    2018-03-31 Thread Per Newgro
    Hello, i would like to replace my local (db-based) login with OAuth Provider Google. But so far i could not implement a working solution. The app is registered at Google. Client secret and ID are present. But i can not find an example how to integrate everything in my Wicket App. Is

    Re: Wicket Spring Boot open entity manager in view config

    2018-03-31 Thread Per Newgro
    ("openEntityManagerInView");         registration.addUrlPatterns("/*");         return registration;     } If some1 else looks for this. Cheers Per Am 23.03.2018 um 19:47 schrieb Per Newgro: Hello, we would like to use the open-entitymanager-in-view pattern. It was working in our &q

    Wicket Spring Boot open entity manager in view config

    2018-03-23 Thread Per Newgro
    Hello, we would like to use the open-entitymanager-in-view pattern. It was working in our "old fashioned" spring application by configuring filter in web.xml. But we can not find the appropriate config for wicket spring boot. Enable spring.jpa.open-entitymanager-in-view=true seems not to be

    Can I use wicket to emend my markup?

    2017-11-21 Thread Per Newgro
    Hello, i try to render HTML markup with flying saucer to PDF. In case i render the page by wicket and use that result markup in my flying saucer wicket resource, everything is ok. Because i need to generate some SVG by browser using javascript (d3.js) i would like to send the markup from

    Aw: Re: Re: Use Resource to transfer SVG to PNG

    2017-07-18 Thread Per Newgro
    I've added a quickstart. https://issues.apache.org/jira/browse/WICKET-6424 Per > Gesendet: Dienstag, 18. Juli 2017 um 08:16 Uhr > Von: "Per Newgro" <per.new...@gmx.ch> > An: users@wicket.apache.org > Betreff: Aw: Re: Re: Use Resource to transfer SVG to PNG > &

    Aw: Re: Re: Use Resource to transfer SVG to PNG

    2017-07-18 Thread Per Newgro
    t;mgrigo...@apache.org> > An: "users@wicket.apache.org" <users@wicket.apache.org> > Betreff: Re: Re: Use Resource to transfer SVG to PNG > > On Mon, Jul 17, 2017 at 3:13 PM, Per Newgro <per.new...@gmx.ch> wrote: > > > Thanks for your res

    Aw: Re: Use Resource to transfer SVG to PNG

    2017-07-17 Thread Per Newgro
    t.apache.org" <users@wicket.apache.org> > Betreff: Re: Use Resource to transfer SVG to PNG > > Hi, > > Wouldn't HTML Canvas API be better solution? > See https://stackoverflow.com/a/27232525/497381 > > > Martin Grigorov > Wicket Training and Consulting

    Use Resource to transfer SVG to PNG

    2017-07-17 Thread Per Newgro
    Hello *, I would like to generate a png from a svg. The transcoding is done by using Batik. So far it works as expected. But i'm not sure how to provide the resulting png (a byte[]) to my frontend. The svg is generate in browser by using highcharts. I would like to provide a button that

    Aw: Re: Re: Re: ListItem and enclosure problem

    2017-06-08 Thread Per Newgro
    treff: Re: Re: Re: ListItem and enclosure problem > > Just use: > > item.setVisible(false); > > instead of: > > label.setVisible(false); > > On Thu, Jun 8, 2017 at 12:23 PM, Per Newgro <per.new...@gmx.ch> wrote: > > > But wouldn't this only hide the

    Aw: Re: Re: ListItem and enclosure problem

    2017-06-08 Thread Per Newgro
    > > > Then in your MyListView override onConfigure with something like this: > > void onConfigure() { >super.onConfigure(); >setVisible(getModelObject().size() > 0); > } > > > On Thu, Jun 8, 2017 at 11:09 AM, Per Newgro <per.new...@gmx.ch> w

    Aw: Re: ListItem and enclosure problem

    2017-06-08 Thread Per Newgro
    Thanks Per > Gesendet: Donnerstag, 08. Juni 2017 um 10:17 Uhr > Von: "Ernesto Reinaldo Barreiro" <reier...@gmail.com> > An: "users@wicket.apache.org" <users@wicket.apache.org> > Betreff: Re: ListItem and enclosure problem > > Why to not put the thing

    Aw: Re: ListItem and enclosure problem

    2017-06-08 Thread Per Newgro
    t-have-a-wicketid > Basically you should move your ListView to tag an remove wicket:id > from tag. > > On Thu, Jun 8, 2017 at 9:54 AM, Per Newgro <per.new...@gmx.ch> wrote: > > > Hello, > > > > i would like to enclose markup of a list item in wicket:enc

    ListItem and enclosure problem

    2017-06-08 Thread Per Newgro
    Hello, i would like to enclose markup of a list item in wicket:enclosure. The enclosure is activated based on a child component on list item. So for i could not find any marker that this is not working. So i need to do something wrong. Any work around would be welcome. Thanks for your support

    How can i authorize a 'bot' to access my REST resource?

    2017-02-09 Thread Per Newgro
    Hi, i've extended an org.wicketstuff.rest.resource.AbstractRestResource and mounted it in my WebApplication. Everything works so far. But i've annotated my Method with a role that shall be extracted from the session. I'm not quite sure how to 'login' my import command (CLI) as a user Has

    Re: DropDownChoice with ChoiceRenderer

    2016-10-14 Thread Per Newgro
    Hello ganea, can you please investigate the method below? Hope that helps Per Am 14.10.2016 um 14:52 schrieb ganea iulia: @Override public String getObject(String paramString, IModel> paramIModel) { // TODO Auto-generated method stub return null; }

    Re: Repeat every 2 rows in a table

    2016-10-14 Thread Per Newgro
    Hello ganea, you can find many information about your problem at http://examples7x.wicket.apache.org/index.html espacially http://examples7x.wicket.apache.org/repeater The user guide can you find here https://ci.apache.org/projects/wicket/guide/7.x/ Repeaters are explained here

    Aw: Re: Find a component corresponding to entity

    2016-09-28 Thread Per Newgro
    onding to entity > > Per, > > I normally do it the static factory way.. but Spring might give you the > advantage for testing (e.g in some situation just pass something that > creates an empty panels, or anything else). As Martin said, this is not > something Wicket cares about. &g

    Find a component corresponding to entity

    2016-09-28 Thread Per Newgro
    Hello *, I'm looking for an elegant solution to determine a component for an entity. Example: There is a person and two sub-types of it - Manager and Sportsman. The Manager can be listed in a listview by using a ManagerViewItem and the Sportsman by using a SportsmanViewItem. Currently I'm using

    Re: Tool for finding missing translations in properties.xml

    2016-07-08 Thread Per Newgro
    I wrote my own tool as my search wasn't successful. But it is simply a main method loading the files and compares keys. Cheers Per Am 07.07.2016 um 16:48 schrieb Thorsten Schöning: Hi all, in my Wicket app I'm using properties.xml files for my i18n texts, like described in the wiki[1]. The

    Re: wicket 6.x / java.text.ParseException on multiple div's

    2016-05-15 Thread Per Newgro
    Did you try to remove the questionable markup to see what is happening? Am 15.05.2016 um 11:39 schrieb Korbinian Bachl: Hello, I'm still on migrating a big wicket 1.4 app to wicket 6.23, and I now got a problem I dont know how to solve. A page throws following error:

    Re: Filtering capabilities in TH (Array Header) or for dataview.

    2016-02-28 Thread Per Newgro
    Maybe you can use org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterToolbar You need to provide your column definitions as IFilteredColumn in your DataTable. The rest will be done by html markup. It's in wicket-extension library. Cheers Per Am 26.02.2016 um 23:34

    Reanimate project from wicketstuff sandbox

    2016-01-10 Thread Per Newgro
    Hello, maybe someone has some experiences with the topic and can support me. I would like to update wicketstuff/sandbox/wicket-contrib-jamon. I already forked the sandbox and transfered code from 1.3 to 1.4 to 1.5 to 6 and now to 7. Almost all problems are solved. There are some strange tests

    Re: Best Practice - Create component by entity type?

    2015-07-04 Thread Per Newgro
    personClass, ClassT extends PersonPanel personPanelClass ... } On Fri, Jul 3, 2015 at 2:32 PM, Per Newgro per.new...@gmx.ch wrote: Hi, i think about that problem for some time now. Maybe someone alrady has a good solution. Let's assume we have a Manager entity

    Best Practice - Create component by entity type?

    2015-07-03 Thread Per Newgro
    Hi, i think about that problem for some time now. Maybe someone alrady has a good solution. Let's assume we have a Manager entity and a Tainee entity. Both are Person entities. In Model we ask for all persons. So we get a mix from Managers and Trainees in a list. Both concrete entity types

    Can i render content (css) of ContextRelativeResource to markup?

    2015-02-06 Thread Per Newgro
    Hi, I like to render a PDF by my wicket page using flying-saucer. There i reference my css file by url (link). So far everything works. But if i switch to SSL flying-saucer breaks. Hmm. My solution to this issue would be to include content of my css file directly in the wicket-page used to

    Submit Inputs on ListView by StatelessForm

    2014-07-09 Thread Per Newgro
    Hi, i try to submit some (repeated) fields by a stateless form. You can find the code here: http://pastebin.com/AQ6m0EKT If i use a basic Form.class in my scenario everything works as expected. But with a stateless form i can not make it. The exact same configuration without any listview works

    Aw: Re: Submit Inputs on ListView by StatelessForm

    2014-07-09 Thread Per Newgro
    when you want to keep the page stateless. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jul 9, 2014 at 11:08 AM, Per Newgro per.new...@gmx.ch wrote: Hi, i try to submit some (repeated) fields by a stateless form. You can find the code

    Exclude link from disabled hierarchy

    2014-06-18 Thread Per Newgro
    Hi, I enable a Form by autorized role. Some users see the form enabled, some disabled. All works fine. My problem is that i've added a goback-link which should be enabled always for all users. But because the link is added to the form (within a button panel) it get's disabled to. Is there a

    Aw: Re: Exclude link from disabled hierarchy

    2014-06-18 Thread Per Newgro
    org.apache.wicket.markup.html.link.AbstractLink#disableLink() for this special link. Martin Grigorov Wicket Training and Consulting On Wed, Jun 18, 2014 at 10:32 AM, Per Newgro per.new...@gmx.ch wrote: Hi, I enable a Form by autorized role. Some users see the form enabled, some disabled. All

    How can i avoid that urls in src attributes are handled by wicket?

    2014-04-29 Thread Per Newgro
    Hi *, we have a page which contains markup like this ... script type=text/x-handlebars id=template img src={{ url }} alt={{ name }} / /script ... After rendering the page the markup looks like this script type=text/x-handlebars id=template img src=../{{ url }} alt={{ name }} / /script

    Locale in NumberTextField

    2014-04-07 Thread Per Newgro
    Hello, i have a question regarding the input conversion in NumberTextField (wicket 6.14) This is the code in question: /** * Always use {@link Locale#ENGLISH} to parse the input. */ @Override protected void convertInput() {

    NumberTextField eats my markup step attribute

    2014-01-10 Thread Per Newgro
    Hi, i would like to enable float values in my form (without validation error). But it's not possible for me. If i add this input markup input type=number step=any wicket:id=myNumber / and assign a new NumberTextFieldDouble(myNumber, numberModel); the resulting markup is input type=number

    Aw: NumberTextField eats my markup step attribute

    2014-01-10 Thread Per Newgro
    Uhr Von: Per Newgro per.new...@gmx.ch An: wicket usergroup users@wicket.apache.org Betreff: NumberTextField eats my markup step attribute Hi, i would like to enable float values in my form (without validation error). But it's not possible for me. If i add this input markup input type

    Aw: Re: NumberTextField eats my markup step attribute

    2014-01-10 Thread Per Newgro
    , This is a bug. Please file a ticket. Martin Grigorov Wicket Training and Consulting On Fri, Jan 10, 2014 at 10:01 AM, Per Newgro per.new...@gmx.ch wrote: Hi, i would like to enable float values in my form (without validation error). But it's not possible for me. If i add this input

    Is Behavior.beforeRender useful for component configuration?

    2014-01-02 Thread Per Newgro
    Hi, we have an admin menu in our menu bar. All items in admin menu are configured by @AuthorizeAction. I would like to hide the admin item in main menu if no menu item is visible in the admin menu (e.g. user is not an admin). To avoid repeating myself in every onBeforeRender method of the

    Re: Is Behavior.beforeRender useful for component configuration?

    2014-01-02 Thread Per Newgro
    being configured */ public void onConfigure(Component component) { } On Thu, Jan 2, 2014 at 4:00 AM, Per Newgro per.new...@gmx.ch wrote: Hi, we have an admin menu in our menu bar. All items in admin menu are configured by @AuthorizeAction. I would like to hide the admin item in main menu

    Re: Form submit without URL modification

    2013-12-21 Thread Per Newgro
    Hi Nick, we do a setResponsePage(this.getPageClass(), this getPageParameters()) at the end of the submit. Then the url is the same as before. Hth Per Am 20.12.2013 20:08, schrieb Nick Pratt: Is it possible to create a form submission that hits a specific URL and doesn't modify the original

    Re: How Does Checkbox Know To Store To My Data Object

    2013-10-19 Thread Per Newgro
    Hi david, there is no code in your email. Cheers Per Am 18.10.2013 22:39, schrieb dhongyt: I have a Data Object called DownloadBagService which works as a place to hold the checked files the a user selects. I have a page that the user are able to select files from and add it to the

    Re: [auth-roles] Design of x-RoleAuthorizationStartegy

    2013-10-15 Thread Per Newgro
    Thanks for your reply Sven. That makes sense. Ok then we can definitly build our own solution. Cheers Per Am 15.10.2013 13:48, schrieb Sven Meier: Hi, wicket-auth-roles is 'mostly a technology demonstration': https://wicket.apache.org/learn/projects/authroles.html It's a very simple

    [auth-roles] Design of x-RoleAuthorizationStartegy

    2013-10-11 Thread Per Newgro
    Hi, we had a simple usecase today leading us to confusion on AnnotationsRoleAuthorizationStrategy (ARAS). We tried to protect a button by using two different permissions. So we had to use AuthorizeActions. We did it this way code @AuthorizeActions(actions = { @AuthorizeAction(action =

    Strange behavior on first page request with jetty from Start.class

    2013-08-09 Thread Per Newgro
    Hi, has someone seen the following behavior and can give me a hint? I do some changes on my project. Then i use the Start class (provided by quickstart) to start the embedded jetty. The i reload a page in the browser And then page loading is really slow 2min or Page is rendered but there is

    Re: header resources order in 1.5.x

    2013-08-08 Thread Per Newgro
    Hi Michal, do you know this? https://github.com/ivaynberg/wicket-select2 There are examples. Maybe it can help Cheers Per Am 08.08.2013 17:27, schrieb Michal Wegrzyn: Dear, I am trying to integrate select2, but ordering in head doesn't seem to be good. What is the easiest way to order

    Re: How can i render json into markup?

    2013-07-06 Thread Per Newgro
    Charts with Wicket so I'm not sure why you're reinventing the wheel. Have a great day, Paul Bors On Jul 5, 2013, at 3:04 PM, Per Newgro per.new...@gmx.ch wrote: Hi, i would like to include highcharts. I know there is a wicket module but we want to use the script. So my requirement

    How can i render json into markup?

    2013-07-05 Thread Per Newgro
    Hi, i would like to include highcharts. I know there is a wicket module but we want to use the script. So my requirement is it to render the div below with the json content in it. Do i have to use a label and render body only? Or is there another way. I couldn't find any example for this.

    Resource mounting: Why has a resource always a lower compatibility score than a page?

    2013-06-18 Thread Per Newgro
    Hi, i would like to mount a resource with a name /mypath/${param1}/whatever. I've already mounted a page with /mypath. I was wondering why i was always redirected to the /mypath page. In ResourceMapper i've found this: code @Override public int getCompatibilityScore(Request request) {

    Can i display a WepPage in a PDF (How to get the rendered markup)?

    2013-06-07 Thread Per Newgro
    Hi, i would like to render a WebPage with flying saucer (PDF generator). I've created a resource reference and a ByteArrayResource. But now i need the rendered markup of the page (e.g. HomePage). So my question is how can i render the markup in my Resource? Thanks for your support Per

    Re: Can i display a WepPage in a PDF (How to get the rendered markup)?

    2013-06-07 Thread Per Newgro
    Found the solution already. I did it that way: public class FlyingSaucerPdfResource extends ByteArrayResource { public FlyingSaucerPdfResource() { super(application/pdf); } @Override protected byte[] getData(Attributes attributes) { ByteArrayOutputStream os;

    Problem loading dependency for wicket-6.8.0

    2013-05-25 Thread Per Newgro
    Hi, is someone else having problems including wicket 6.8.0? I get a Missing artifact org.apache.wicket:wicket:pom:6.8.0-SNAPSHOT when i increase my version from 6.7.0 to 6.8.0 properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding

    Re: Problem loading dependency for wicket-6.8.0

    2013-05-25 Thread Per Newgro
    Ok, i've delete all wicket 8.8.x jars from m2. But the problem still appears. It seems that wicketstuff-annotations is referencing wickt-6.8.0-SNAPSHOT. I will downgrade until this is fixed Thanks Per Am 25.05.2013 10:39, schrieb Raul: Make sure you have downloaded the dependency correctly,

    Can i control event execution order?

    2013-04-24 Thread Per Newgro
    Hi, i would like to add a bookmarkable page link to a clickable div. But the event behavior of the div is always executed. Is there a way to prioritize the event coming from the link? Thanks Per code Page.java public class Page extends WebPage { public Page(final PageParameters

    Aw: Re: Can i control event execution order?

    2013-04-24 Thread Per Newgro
    not happen. Clicking the link changes the document location... But I may be wrong. A simple solution is to add onclick=Wicket.Event.stop(event); return true; to the a element. This calls event.stopPropagation(). On Wed, Apr 24, 2013 at 10:03 AM, Per Newgro per.new...@gmx.ch wrote: Hi

    Re: Model for dropdowns in a listview

    2013-04-21 Thread Per Newgro
    Hello Rodrigo, sure i know that the null has to be replaced by a model. But my question was targeted to the object behind the dropdown selected option model. Let me create a more simple example: code MyComponent.java - in constructor - IModelReplyOptionsCollectingModel formModel =

    Model for dropdowns in a listview

    2013-04-20 Thread Per Newgro
    Hi, i have to implement a questionnaire but i'm not sure how to capture the selected values in a model. My questionnaire has some questions. The questions have some reply options. The selected reply options will be assigned to an answer. The answers are the data i try to capture. So i put

    Re: Wicket integration with Spring

    2012-12-28 Thread Per Newgro
    With the 2nd approach you couple the application (in the role as service mother) to all your calling components. Coupling is a bad idea. It's hard to test in separation and almost always you end in a hell of small single methods. But if you inject your beans into the target component you can

    Re: CSS for subpanel tabs

    2012-12-26 Thread Per Newgro
    Hello John Doe, did you try a css selector by class instead of id? PS: Posting without any name is not very respectful. Posting such commonly phrased questions (my xyz is not working - tell me why) oftenly stay unanswered. Please provide some code (java, html, css) and i bet you get good

    Re: Howto display 404 cause of response on custom error page?

    2012-11-27 Thread Per Newgro
    container does error dispatching. On Mon, Nov 26, 2012 at 3:14 PM, Per Newgro per.new...@gmx.ch wrote: Hi, i'm looking for a way to display the cause of a 404 send by myself on my custom error page. In a behavior i do code throw new AbortWithHttpErrorCodeException

    Howto display 404 cause of response on custom error page?

    2012-11-26 Thread Per Newgro
    Hi, i'm looking for a way to display the cause of a 404 send by myself on my custom error page. In a behavior i do code throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_NOT_FOUND, Missing subsite in behavior); /code It is displayed in my custom error page code

    Re: Why can't CssUrlReferenceHeaderItem have dependencies?

    2012-11-06 Thread Per Newgro
    Hi Martin, i use the UrlResRef like the normal ResRef. A specialiced css is depending on a base css. This base css should be guaranteed on special css usage. public class PortalCssDependingResourceReference extends UrlResourceReference { private final String portalId; public

    Re: Why can't CssUrlReferenceHeaderItem have dependencies?

    2012-11-06 Thread Per Newgro
    dependencies. On Tue, Nov 6, 2012 at 10:02 AM, Per Newgro per.new...@gmx.ch wrote: Hi Martin, i use the UrlResRef like the normal ResRef. A specialiced css is depending on a base css. This base css should be guaranteed on special css usage. public class

    Why can't CssUrlReferenceHeaderItem have dependencies?

    2012-11-05 Thread Per Newgro
    Hi, i was wondering why CssUrlReferenceHeaderItem (wicket 6.2.0) is implemented by HeaderItem#getDependencies() which returns an empty list. The CssReferenceHeaderItem has a getDependencies implementation which uses the dependencies provided by the resource reference. If i extend

    Re: What is the way to test a behavior?

    2012-11-03 Thread Per Newgro
    Thanks, works like expected. You right. If i throw another exception (ex. IAE) the assertion on rendered page is working. So checking the last response status seems to be natural. Per - To unsubscribe, e-mail:

    What is the way to test a behavior?

    2012-11-01 Thread Per Newgro
    Hi, i try to unit test a custom behavior. But i was wondering what's the right way to test it. I provide some code to explain my mind mismatch. The behavior shall interrupt the rendering of a component. I would like to answer this with a 404. Calling the behavior method directly results in

    Wicketstuff references Wicket-Snapshot

    2012-09-18 Thread Per Newgro
    Hi, is it required that all the wicketstuff projects are related to the wicket snapshot releases? Thanks for review Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

    Is there a MountedMapper respecting better matching path names?

    2012-08-02 Thread Per Newgro
    Hi, before i do this myself i would like to ask the community if someone has done this already. I want to mount pages at these urls: mountPage(/pages/${color}/advertise, AdvertisePage.class); mountPage(/pages/${color}/${niceColor}, ColoredPage.class); But because they both have 3 matching url

    Re: I'm slighty mad

    2012-06-22 Thread Per Newgro
    I hope you're not working in a nuclear power plant :-) Am 22.06.2012 19:01, schrieb Bruno Borges: Crazy little bastard!! Congratulations on your brave move! :D *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Fri, Jun 22, 2012 at 5:23 AM, Martin Grigorovmgrigo...@apache.orgwrote:

    Re: Wicket dropdownchoice onselectionchanged must override or implement a supertype method

    2012-04-24 Thread Per Newgro
    it is because of the @override annotation on a non-existent method. Check the signature of the onSelectionChanged Cheers Per Am 24.04.2012 20:04, schrieb kshitiz: Hi, I am trying to implement wicket drop down choice with on selection changed feature. But as I write : final

    Re: WicketTester Spring

    2012-03-04 Thread Per Newgro
    Assign the app to the wicket tester instance you use. See code section below. Per Am 04.03.2012 10:11, schrieb Douglas Ferguson: What does this mean? you have to set the app to wicket tester instance. Douglas On Mar 4, 2012, at 1:32 AM, Per Newgro wrote: And the app should know the context

    Re: WicketTester Spring

    2012-03-04 Thread Per Newgro
    ); injector.inject(this); return injector; } }); On Mar 4, 2012, at 3:19 AM, Per Newgro wrote: Assign the app to the wicket tester instance you use. Seecode section below. Per Am 04.03.2012 10:11

    Re: WicketTester Spring

    2012-03-03 Thread Per Newgro
    And the app should know the context in which way? No no you have to set the app to wicket tester instance. code tester = new WicketTester(new MyApp()); /code Cheers Per Am 04.03.2012 06:17, schrieb Douglas Ferguson: I'm trying to use wicket tester to test an app that is running with

    Re: reload model on render

    2012-03-03 Thread Per Newgro
    Any code please, Per Am 04.03.2012 03:16, schrieb nazeem: Hi I have a content area in which I am displaying say PanelA. In PanelA I have a link to navigate to PanelB. When I click that I replace the content area with PanelB. When I construct PanelB i pass the instance PanelA via PanelA.this

    Re: help with drag and drop (wicket-dnd)

    2012-02-26 Thread Per Newgro
    Hi Dan, only a shot in the dark - but is your markup valid? validate with w3c. PS: Is it required to add the ending slash? Cheers Per Thanks for answer. Yes, in the first td is span but in this forum it was formatted and span was not visible. The first td should be:td span wicket:id=aaa

    Re: get key from resource model

    2012-02-10 Thread Per Newgro
    If you mean get the key from ResourceModel, or ... then the answer is no not directly. An ugly solution could be - extend ResourceModel and memorize the key in a second attribute. But that's realy ugly. class MyResourceModel extends ResourceModel { private String key; public

    Re: StatelessForm: Cannot login

    2012-02-09 Thread Per Newgro
    If i understood your usecase correctly you're app is still stateless if you logged in. Afaik no session is created for stateless pages. So after you've logged in the session is away for your next page. And then the user is away to. You could debug it by print the hashcode of getSession() in

    Re: StatelessForm: Cannot login

    2012-02-09 Thread Per Newgro
    ISessionStore#lookup(Request) returns a session}), this call will be a noop. * /p */ Am 09.02.2012 18:45, schrieb Per Newgro: If i understood your usecase correctly you're app is still stateless if you logged in. Afaik no session is created for stateless pages. So after you've logged

    Re: StatelessForm: Cannot login

    2012-02-09 Thread Per Newgro
    , the session will be binded. Phu, I was trying to fix that over three days ^^ Regards, René On 02/09/2012 06:53 PM, Per Newgro wrote: And maybe this javadoc helps Session#bind() /** * Force binding this session to the application's {@link ISessionStore session store} if not * already done

    [1.5.4] DropDownChoice is not presenting value if equals is not overwritten

    2012-01-24 Thread Per Newgro
    Hi, with 1.5.4 the implementation of org.apache.wicket.markup.html.form.AbstractSingleSelectChoice.java has changed from code /** * @see FormComponent#getModelValue() */ @Override public String getModelValue() { final T object = getModelObject(); if (object != null) { int index =

    Re: [1.5.4] DropDownChoice is not presenting value if equals is not overwritten

    2012-01-24 Thread Per Newgro
    24.01.2012 10:42, schrieb Per Newgro: Hi, with 1.5.4 the implementation of org.apache.wicket.markup.html.form.AbstractSingleSelectChoice.java has changed from code /** * @see FormComponent#getModelValue() */ @Override public String getModelValue() { final T object = getModelObject

    Re: [1.5.4] DropDownChoice is not presenting value if equals is not overwritten

    2012-01-24 Thread Per Newgro
    ) { return + object.getBar(); } else { return ; } } And create a jira issue please. We might have to revert this change. Sven Am 24.01.2012 10:52, schrieb Per Newgro: Maybe a usecase helps :-) I load my choices in a LDM. The selected choice is located

    Re: Apache Wicket 1.5.4 is released

    2012-01-23 Thread Per Newgro
    Shouldn't it be announce to the other list? Cheers Per Am 23.01.2012 09:41, schrieb Martin Grigorov: This is the fourth maintenance release of the Wicket 1.5.x series. This release brings over 60 bug fixes and improvements. Git tag: release/wicket-1.5.4 Changelog:

    Re: Apache Wicket 1.5.4 is released

    2012-01-23 Thread Per Newgro
    Oops sorry. My fault. Mail filter is filtering dev before users list. So it's only seen in dev folder. Sorry. Per Am 23.01.2012 10:51, schrieb Per Newgro: Shouldn't it be announce to the other list? Cheers Per Am 23.01.2012 09:41, schrieb Martin Grigorov: This is the fourth maintenance

    Re: What to add to pom.xml to use hibernate?

    2012-01-21 Thread Per Newgro
    Hmm. Firstly you ask the wrong list. Hibernate is off topic. At second - did you do a search? With maven hibernate i found this link quickly: http://stackoverflow.com/questions/3345816/hibernate-projects-and-building-with-maven See the answer with the green check at the side. I think that will

    Re: Can't instantiate page using constructor

    2012-01-21 Thread Per Newgro
    The stack trace is what? Am 21.01.2012 18:21, schrieb Daniel Watrous: When I build my wicket project I'm getting the following error Tests in error: homepageRendersSuccessfully(com.danielwatrous.movieratings.TestHomePage): Can't instantiate page using constructor 'public

    Re: ListView not refreshed after a new row is inserted with EJB3 as its backend data

    2012-01-19 Thread Per Newgro
    Use a LoadableDetachableModelListUser in the ListView Constructor. Put all the load loading into the load method and see what happens. Cheers Per Am 19.01.2012 07:49, schrieb x.yang: Hello, Everyone, I am trying to build a web app with Wicket, EJB3, and MySQL. My IDE is Netbeans 6.9.1 and the

    Re: how to get https port number in Wicket 1.5

    2012-01-15 Thread Per Newgro
    Thanks for testing this out. I wasn't aware of that. I didn't understand the usecase exactly. You want to set the page / request secure if you've added the login form? Or do you want to secure the form only. For the later a possible answer is this

    Re: how to get https port number in Wicket 1.5

    2012-01-14 Thread Per Newgro
    Stupid question. Is @RequireHttps at Form class working? Cheers Per Am 14.01.2012 17:44, schrieb armhold: Assuming that the http/https port number have been set in WicketApplication with the following: setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig(8080,

    Re: how to get https port number in Wicket 1.5

    2012-01-14 Thread Per Newgro
    Stupid = my question not yours :-). Only for clearify it :-) Am 14.01.2012 19:05, schrieb Per Newgro: Stupid question. Is @RequireHttps at Form class working? Cheers Per Am 14.01.2012 17:44, schrieb armhold: Assuming that the http/https port number have been set in WicketApplication

    What is the cause for log entry ModificationWatcher - Cannot track modifications to resource

    2012-01-02 Thread Per Newgro
    Hi, If i test my app by using Start.java i get the log entry INFO - ModificationWatcher- Cannot track modifications to resource file:/D:/Dokumente%20und%20Einstellungen/per.n/Eigene%20Dateien/workspaces/work/whataschranz/target/classes/ch/newgro/shop/whataschranz/welcome/HomePage.html

    Re: What is the cause for log entry ModificationWatcher - Cannot track modifications to resource

    2012-01-02 Thread Per Newgro
    Thanks Allen, that's why i was asking in list first. So if you agree i will file a jira issue. Per Am 02.01.2012 18:14, schrieb Allen Gilbert: Per, I ran into this problem recently and solved it by removing spaces from directory names in my project path. I plan to file a Jira issue at

    Re: Wicket 1.5: The component(s) below failed to render

    2011-12-21 Thread Per Newgro
    Do you use a border? Because border component assignment changed Cheers Per Am 21.12.2011 10:58, schrieb Adrian Wiesmann: Hello list We built a rendering engine in Wicket 1.4 which takes a UI description from an XML file and builds an HTML representation from that. Everything worked fine in

    Re: display artifact version in webpage

    2011-12-15 Thread Per Newgro
    But this causes a build / version control system issue. Guess you use version control like svn or cvs. Once you checked in the html markup and call a build the markup changed and you have to check in markup again. So that becomes a chicken - egg - problem. Just my 2$ Per Am 15.12.2011 09:27,

    Re: display artifact version in webpage

    2011-12-15 Thread Per Newgro
    change with new builds, of course. That's the point of it, isn't it? Chantal On Thu, 2011-12-15 at 09:46 +0100, Per Newgro wrote: But this causes a build / version control system issue. Guess you use version control like svn or cvs. Once you checked in the html markup and call a build the markup

      1   2   3   4   >