Re: [Wicket-user] Radio.getValue?
Ok, let me try to explain another way. If you create a page where you use the radio component. The radios represent various kinds of datasets(OLAP cubes in this case but it does not really matter). On monday the 1. march you record with jmeter your test case(jmeter only records the http requests). In your test case you must select the retirement dataset (which has the value "radio5" on the html page). Some time has passed now and you want to run your jmeter test, but on your page some of the datasets has been removed (they wasnt needed or was not allowed to be shown). So now the page no longer contains the radio with the value radio5, and your jmeter test will fail because wicket cant find the radio(another error scenario would be if the radios changed order). So if radio component allowed the use of Ichoicerenderer, it could generate the value based on the id of the ichoicerenderer for the particular dataitem. This would bring better persistance to the radios. At least when testing with jmeter. Did I do a better job explaining?:) Some could argue that it's not issue, but it would be very handy to have the ability to use the ichoicerender with every component that makes use of the value attribute in inputs(havent thought it through though). Because it would make it easier to use tools as jmeter. I would suggest that to avoid nameclashing we could use the components name.getIdValue as value attribute. I am aware that this would bring in a possible vuernability, if duplicate items are inserted and that could cause problems i guess? regards Nino Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: ti 27-03-2007 18:40 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? I'm afraid I don't really understand your problem Nino. Eelco On 3/26/07, Nino Wael <[EMAIL PROTECTED]> wrote: > Hi > > We are doing some extensive Jmeter testing, and have run into a technical > problem regarding radios, which are the following: > > If you had 5 radios on a page at a given time, their value would have been > radio1, radio2.. radio5. > > If you then pulled out radio number 4 then the list would be this, radio1, > radio2 .. radio4. > > Now only the one previously called radio4 should not have been selectable. > This renders our jmeter test pretty vuernable if some of the stuff no longer > are available. Im not sure if I can use a ichoicerenderer, looking at the > code from getValue, it's pretty hardcoded am I correct? > > If possible i'd like to just use the IChoiceRenderer's getId instead, that > should fix the problem. > > regards Nino > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user <>- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Problem with CSS in bookmarkable page unless accessed via absolute path
I have a markup file containing: @import url("/css/site_75965.css"); The base tag lets me preview in the HTML editor - well at least it should - but to avoid the wicket exception detailed below I have to specify an absolute path to the .css file (ie., a leading '/'). This then means that the HTML editor tries to find the css at c:/css instead of c:/project1/web/css and so preview doesn't work. Any suggestions? ERROR - RequestCycle- URL fragment has unmatched key/value pair: o/75965/c/css/site_75965.css java.lang.IllegalStateException: URL fragment has unmatched key/value pair: o/75965/c/css/site_75965.css at wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.d ecodeParameters(AbstractRequestTargetUrlCodingStrategy.java:130) at wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingSt rategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:75) at wicket.protocol.http.request.WebRequestCodingStrategy.targetForReques t(WebRequestCodingStrategy.java:331) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve( DefaultRequestTargetResolverStrategy.java:83) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve (AbstractCompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Lifecycle issue with getVariation
there is a reason why some of the stuff is done where it is. now, im not sure there is a reason for the markup loading for bodcontainer, we might be able to do that lazily when getbodycontainer() is called. juergen are you reading with us? -igor On 3/27/07, Chris Colman <[EMAIL PROTECTED]> wrote: I went ahead and implemented these changes in my copy of the wicket source code and now I can specify a variation at the Page level (never been able to do that before!) without causing a NPE. It works very nicely indeed. > what about pages that are constructed with the new operator? I mainly use bookmarkable pages and so my pages are constructed (and now commonInit'd) by the DefaultPageFactory - result: I didn't have to change any of my own code to get my getVariation working properly. I get the feeling that error pages don't get instantiated via the DefaultPageFactory and so I will need to find out where they are new'ed so I can change the wicket source to call commonInit on them also. The HelloWorld example just returns the page Class to use - ie., doesn't do new MyPage(). So presumably the DefaultPageFactory is doing the initialization for that one also. So HelloWorld would work ok with the improved initialization lifecycle. > the users then have to explicitly call commoninit() from their > constructors? Not necessarily. After you create a page explicitly yourself don't you have to hand it on to 'something else' before you can use it to render a page? That 'something else' could call a boolean isInitialized() method and call commonInit if not already initialized. There's plenty of ways to make this work well so users don't have to call commonInit themselves. > i think that is horrible. It would be horrible if users had to do it explicitly but I'm sure there are ways (above example) to make it automagically done for the user so they don't have to call commonInit themselves. > what we need to do is somehow delay the getvariation() until > render time. Well, that sounds like it will fix the getVariation problem but how many other problems are going to give us a world of pain in the future because of the use of partially constructed WebPage objects? The other problem is that commonInit is doing a whole lot of stuff with the markup and it needs to know the variation to get the correct markup - I don't see how you can defer getVariation unless you defer the whole markup analysis code that follows the call to getVariation as well... I ended up deferring the whole commonInit call but you might be able to carve out a smaller portion of code to defer. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Lifecycle issue with getVariation
I went ahead and implemented these changes in my copy of the wicket source code and now I can specify a variation at the Page level (never been able to do that before!) without causing a NPE. It works very nicely indeed. > what about pages that are constructed with the new operator? I mainly use bookmarkable pages and so my pages are constructed (and now commonInit'd) by the DefaultPageFactory - result: I didn't have to change any of my own code to get my getVariation working properly. I get the feeling that error pages don't get instantiated via the DefaultPageFactory and so I will need to find out where they are new'ed so I can change the wicket source to call commonInit on them also. The HelloWorld example just returns the page Class to use - ie., doesn't do new MyPage(). So presumably the DefaultPageFactory is doing the initialization for that one also. So HelloWorld would work ok with the improved initialization lifecycle. > the users then have to explicitly call commoninit() from their > constructors? Not necessarily. After you create a page explicitly yourself don't you have to hand it on to 'something else' before you can use it to render a page? That 'something else' could call a boolean isInitialized() method and call commonInit if not already initialized. There's plenty of ways to make this work well so users don't have to call commonInit themselves. > i think that is horrible. It would be horrible if users had to do it explicitly but I'm sure there are ways (above example) to make it automagically done for the user so they don't have to call commonInit themselves. > what we need to do is somehow delay the getvariation() until > render time. Well, that sounds like it will fix the getVariation problem but how many other problems are going to give us a world of pain in the future because of the use of partially constructed WebPage objects? The other problem is that commonInit is doing a whole lot of stuff with the markup and it needs to know the variation to get the correct markup - I don't see how you can defer getVariation unless you defer the whole markup analysis code that follows the call to getVariation as well... I ended up deferring the whole commonInit call but you might be able to carve out a smaller portion of code to defer. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Implement our own IComponentResolvers
> I know the lifecycle document at > http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle > > warns against such rebellious undertakings but would it still be > possible to implement my own IComponentResolver and add components to a > page 'on demand'? > > > yes, any markup container can implement the interface. but be warned :) Or any class really? I've gone ahead and done it using AutoComponentResolver as a template and it works!!! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Lifecycle issue with getVariation
what about pages that are constructed with the new operator? the users then have to explicitly call commoninit() from their constructors? i think that is horrible. what we need to do is somehow delay the getvariation() until render time. -igor On 3/27/07, Chris Colman <[EMAIL PROTECTED]> wrote: Just looking at the source code for WebPage it looks like a very minor change to achieve a more flexible lifecycle initialization phase. All the WebPage constructors call private void commonInit() As you will no doubt understand this is being called before construction/instantiation has properly completed - which has serious consequences if any methods are called that rely on constructor initialization that has not yet occurred (eg., getVariation that returns a variation based on the constructor's parameter values). I think the following changes would fix this problem and allow getVariation() to work properly when it's implementation relies on parameters passed into the constructor: 1. Remove all calls to commonInit() from the WebPage constructors. 2. Make commonInit public 3. Change the DefaultPageFactory to explicitly call commonInit on any new page that it instantiates. These changes, to my thinking, are quite simple with low to no ripple effect and they allow wicket users to avoid entry into the 'world of pain' that is 'partially constructed objects'. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Lifecycle issue with getVariation
Just looking at the source code for WebPage it looks like a very minor change to achieve a more flexible lifecycle initialization phase. All the WebPage constructors call private void commonInit() As you will no doubt understand this is being called before construction/instantiation has properly completed - which has serious consequences if any methods are called that rely on constructor initialization that has not yet occurred (eg., getVariation that returns a variation based on the constructor's parameter values). I think the following changes would fix this problem and allow getVariation() to work properly when it's implementation relies on parameters passed into the constructor: 1. Remove all calls to commonInit() from the WebPage constructors. 2. Make commonInit public 3. Change the DefaultPageFactory to explicitly call commonInit on any new page that it instantiates. These changes, to my thinking, are quite simple with low to no ripple effect and they allow wicket users to avoid entry into the 'world of pain' that is 'partially constructed objects'. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Lifecycle issue with getVariation
I have a constructor that takes parameters and then uses the parameters to set up a variable that is used in getVariation(). There appears to be a lifecycle issue here because getVariation is being called from within a base class constructor - before my constructor's code below the super(parameters) has had a chance to get called. Consequently getVariation() is called before the variable has been initialized causing a NPE. Here's the stack dump: at com.MyPage.getVariation(MyPage.java:66) at wicket.Component.getStyle(Component.java:1207) at wicket.markup.MarkupCache.markupKey(MarkupCache.java:371) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:166) at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:82 7) at wicket.markup.html.WebPage.commonInit(WebPage.java:235) at wicket.markup.html.WebPage.(WebPage.java:120) at com.sas.av.ui.wicket.templates.BasePage.(BasePage.java:66) at com.MyPage.(MyPage.java:83) Often in these cases it serves the framework users well if the basic construction takes place first and then, only after returning from the instantiation, further initialization is performed - initialization that might only work properly after all constructors have been fully executed. Currently it appears possible for the getStyle and getVariation methods to be invoked while a page is only semi constructed (ie., the constructor stack has not unwound as shown above). Is there a current workaround for this or is it possible to readjust the Wicket lifecycle model slightly to avoid this problem? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Variable Interpolation within the HTML
Can this only be built against version 1.3 of Wicket? I'm unable to build it against 1.2.5 I also checked out the code form https://svn.sourceforge.net/svnroot/wicket-stuff/branches/WICKET_1_2/wicket-contrib-velocity/and couldn't get it to build either. How do I get this to work? Thanks. On 3/20/07, Andrew Berman <[EMAIL PROTECTED]> wrote: Cool, thanks guys, I'll check both options out. On 3/20/07, Eelco Hillenius <[EMAIL PROTECTED] > wrote: > > Alternatively, you could use post processing filters for that. Can't > remember the exact name from the top of my head. > > Eelco > > > On 3/20/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > > On 3/20/07, Andrew Berman < [EMAIL PROTECTED]> wrote: > > > I have a use case where the text of the a page can change depending > on the > > > skin that is selected. There is some dynamic text in the original > text, > > > such as website name, which also changes depending on > skin. However, > > > currently I have added a fixed number of Label objects to deal with > the > > > website name, but this doesn't really work because the text of the > page > > > might need more instances of the website name. I can't dynamically > add more > > > Label objects, so I was wondering how I could do something like > Velocity > > > where I can put ${websiteName} in the HTML for a page or panel, set > the > > > variable in the page, and have it rendered properly. I saw that > Wicket > > > includes MapVariableInterpolator but how do I do it with the HTML > for the > > > page? I don't want to specify a filename because the filename is > dependent > > > on the style/skin. > > > > > > > wicket-contrib-velocity provides exactly what you want > > > > you can get it here with subversion: > > > https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-velocity > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Implement our own IComponentResolvers
yes, any markup container can implement the interface. but be warned :) -igor On 3/27/07, Chris Colman <[EMAIL PROTECTED]> wrote: I think it would be awesome if we could implement our own IComponentResolvers. I could make a truly markup driven page class that loaded components specified in the markup 'on demand' as they were parsed in the markup. I realize that I could probably use For this purpose but I think it's much easier if the graphics designer only has to use: I know the lifecycle document at http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle warns against such rebellious undertakings but would it still be possible to implement my own IComponentResolver and add components to a page 'on demand'? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Implement our own IComponentResolvers
I think it would be awesome if we could implement our own IComponentResolvers. I could make a truly markup driven page class that loaded components specified in the markup 'on demand' as they were parsed in the markup. I realize that I could probably use For this purpose but I think it's much easier if the graphics designer only has to use: I know the lifecycle document at http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle warns against such rebellious undertakings but would it still be possible to implement my own IComponentResolver and add components to a page 'on demand'? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component
I don't understand that last post can you re phrase please.. -B svenmeier wrote: > > Could it be that you slipped our CheckGroup/Check components? Cannot get > simpler than that. > > Sven > > GS-ikiini wrote: >> this part of the concept i understand...what i don't get is a little >> deeper...from your example i am accessing a property in input. however, I >> don't have such a property in my object. I some how have to figure out if >> that mode is selected. basically, i want to implement imodel as show in a >> example on the forum to put my object in a collection if it is selected. >> In >> the example ivan implements imodel. and set that model as the model that >> the checkbox works with. >> >> http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784 >> >> i don't understand how the implentaion works. can you help me with >> understanding how that works please. >> >> -B >> >> >> >> Eelco Hillenius wrote: >> >>> Wicket models are a way to locate values. >>> >>> Let's take a look at wicket.examples.compref.CheckBoxPage. That page >>> has a nested static class called Input, with a property bool: >>> >>> private static class Input implements Serializable >>> { >>> public Boolean bool = Boolean.TRUE; >>> } >>> >>> Then, in CheckBoxPage's constructor we do (simplified): >>> >>> final Input input = new Input(); >>> setModel(new CompoundPropertyModel(input)); >>> Form form = new Form("form"); >>> form.add(new CheckBox("bool")); >>> >>> CompoundPropertyModel might be a bit distracting, so let's rewrite >>> this to use a normal model: >>> >>> final Input input = new Input(); >>> Form form = new Form("form"); >>> form.add(new CheckBox("bool", PropertyModel(input, "bool"))); >>> >>> another way to rewrite the model: >>> >>> form.add(new CheckBox("bool", new Model(input) >>> { >>> public Object getObject() >>> { >>> return ((Input)super.getObject()).bool; >>> } >>> >>> public void setObject(Object object) >>> { >>> ((Input)super.getObject()).bool = (Boolean)object; >>> } >>> })); >>> >>> and yet another to rewrite the model is: >>> >>> form.add(new CheckBox("bool", new IModel() >>> { >>> public Object getObject() >>> { >>> return input.bool; >>> } >>> >>> public void setObject(Object object) >>> { >>> input.bool = (Boolean)object; >>> } >>> >>> public void detach() >>> { >>> } >>> })); >>> >>> and *yet* another way is: >>> >>> form.add(new CheckBox("bool", new AbstractCheckBoxModel() >>> { >>> @Override >>> public boolean isSelected() >>> { >>> return input.bool; >>> } >>> >>> @Override >>> public void select() >>> { >>> input.bool = true; >>> } >>> >>> @Override >>> public void unselect() >>> { >>> input.bool = false; >>> } >>> })); >>> >>> If you compare these examples, the constant factor is that we're after >>> the bool property of the Input instance. It is important that you >>> understand that the typical thing for Wicket models to do is to pass >>> and get values from other objects, typically your domain objects or >>> 'form beans' (that's the name which other frameworks often use). Here, >>> the Input instance is that object, and any of the above combinations >>> just provides the facility for components to work on that object in a >>> generic fashion. >>> >>> So... the CheckBox component calls getObject on it's model to >>> determine whether it should render itself as checked or not. It calls >>> setObject on the model when it receives input. The typical case for >>> that is when it is part of a form. The form calls updateModel on all >>> nested components, and the components then call setObject with the >>> received (and converted) input. >>> >>> Now, to get back to your original question. We could rewrite the above >>> example to work on a list of checkboxes/ input objects like this: >>> >>> List inputs = new ArrayList(Arrays.asList(new Input[] { >>> new Input(), >>> new Input(), new Input() })); >>> ListView l = new ListView("list", inputs) >>> { >>> @Override >>> protected void populateItem(ListItem item) >>> { >>> // item.getModel().getObject() would give the Input >>> instance for >>> // this particular list element >>> item.add(new CheckBox("bool", new >>> PropertyModel(item.getModel(), >>> "bool"))); >>> } >>> }; >>> form.add(l); >>> System.err.println
Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component
Could it be that you slipped our CheckGroup/Check components? Cannot get simpler than that. Sven GS-ikiini wrote: > this part of the concept i understand...what i don't get is a little > deeper...from your example i am accessing a property in input. however, I > don't have such a property in my object. I some how have to figure out if > that mode is selected. basically, i want to implement imodel as show in a > example on the forum to put my object in a collection if it is selected. In > the example ivan implements imodel. and set that model as the model that > the checkbox works with. > > http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784 > > i don't understand how the implentaion works. can you help me with > understanding how that works please. > > -B > > > > Eelco Hillenius wrote: > >> Wicket models are a way to locate values. >> >> Let's take a look at wicket.examples.compref.CheckBoxPage. That page >> has a nested static class called Input, with a property bool: >> >> private static class Input implements Serializable >> { >> public Boolean bool = Boolean.TRUE; >> } >> >> Then, in CheckBoxPage's constructor we do (simplified): >> >> final Input input = new Input(); >> setModel(new CompoundPropertyModel(input)); >> Form form = new Form("form"); >> form.add(new CheckBox("bool")); >> >> CompoundPropertyModel might be a bit distracting, so let's rewrite >> this to use a normal model: >> >> final Input input = new Input(); >> Form form = new Form("form"); >> form.add(new CheckBox("bool", PropertyModel(input, "bool"))); >> >> another way to rewrite the model: >> >> form.add(new CheckBox("bool", new Model(input) >> { >> public Object getObject() >> { >> return ((Input)super.getObject()).bool; >> } >> >> public void setObject(Object object) >> { >> ((Input)super.getObject()).bool = (Boolean)object; >> } >> })); >> >> and yet another to rewrite the model is: >> >> form.add(new CheckBox("bool", new IModel() >> { >> public Object getObject() >> { >> return input.bool; >> } >> >> public void setObject(Object object) >> { >> input.bool = (Boolean)object; >> } >> >> public void detach() >> { >> } >> })); >> >> and *yet* another way is: >> >> form.add(new CheckBox("bool", new AbstractCheckBoxModel() >> { >> @Override >> public boolean isSelected() >> { >> return input.bool; >> } >> >> @Override >> public void select() >> { >> input.bool = true; >> } >> >> @Override >> public void unselect() >> { >> input.bool = false; >> } >> })); >> >> If you compare these examples, the constant factor is that we're after >> the bool property of the Input instance. It is important that you >> understand that the typical thing for Wicket models to do is to pass >> and get values from other objects, typically your domain objects or >> 'form beans' (that's the name which other frameworks often use). Here, >> the Input instance is that object, and any of the above combinations >> just provides the facility for components to work on that object in a >> generic fashion. >> >> So... the CheckBox component calls getObject on it's model to >> determine whether it should render itself as checked or not. It calls >> setObject on the model when it receives input. The typical case for >> that is when it is part of a form. The form calls updateModel on all >> nested components, and the components then call setObject with the >> received (and converted) input. >> >> Now, to get back to your original question. We could rewrite the above >> example to work on a list of checkboxes/ input objects like this: >> >> List inputs = new ArrayList(Arrays.asList(new Input[] { >> new Input(), >> new Input(), new Input() })); >> ListView l = new ListView("list", inputs) >> { >> @Override >> protected void populateItem(ListItem item) >> { >> // item.getModel().getObject() would give the Input >> instance for >> // this particular list element >> item.add(new CheckBox("bool", new >> PropertyModel(item.getModel(), >> "bool"))); >> } >> }; >> form.add(l); >> System.err.println("selection for the second input: " + >> inputs.get(1).bool); >> >> As you can see, the idea stays the same; in both cases we're after the >> bool property of instances of Input.
Re: [Wicket-user] howto display html "as is"?
Label archivesLabel = new Label("archives", "In the future please search the mailing list archives first.").setEscapeModelStrings (false); On Mar 27, 2007, at 11:31 AM, Ralf Eichinger wrote: > I'm developing a cms. > I want to output a html-string inside a wicket-page. > when I do like this: > > Label lblArticleContent = new Label("lblArticleContent", > article.getHtmlContent()); > add(lblArticleContent); > > I get my html encoded like this: >Willkommen auf der Startseite!
Hier > kommt Ihr > Text...
> > Do I have to set something to not encode my html output? > Do I have to use another component than Label? > > greetings > ralf > > -- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Flexible markup with same Java classes
> Let's say I've created a Layout and corresponding Java classes for the > following page > > -- > | Header | > -- > | | | > | Menu | Content | > | | | > -- > | Footer | > -- > > Each section is implemented by a separate wicket Panel derived class in > Java. The page itself is implemented by a derivative of wicket's WebPage > class in the usual manner. > > Now I use variations and so I can have lots of different markup for the > single set of classes detailed above. > > I want to be able to have the flexibility to leave the header out in > certain markup variations without wicket generating an error because the > page tries to add the header component. > > Is there a way to create the markup so I can do this without explicitly > telling the Page not to load the header component? I though of another idea of solving this problem but I am not sure if this is possible within the wicket page/component lifecycle model: After construction my WebPage derived class has NO components added to it. As the markup is processed components are added to the page on an 'as needed' basis. I'm not sure which method I would need to override in my page class, perhaps onComponentTag or onComponentTagBody? I just look at the tag's id, look up which component class that represents and then instantiate such and add it to the WebPage class then call super.onComponentTag() or super.onComponentTagBody(). Will there be any problems with adding components so late in the game? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Flexible markup with same Java classes - autoAdd?
I was just wondering if another possible solution to this might be to somehow use autoAdd - ie., only add the components to the page class when requested based on the components in the markup. I'm not sure if the autoAdd is intended for this purpose or if it's a completely different beast altogether but the name sounds right ;) > Let's say I've created a Layout and corresponding Java classes for the > following page > > -- > | Header | > -- > | | | > | Menu | Content | > | | | > -- > | Footer | > -- > > Each section is implemented by a separate wicket Panel derived class > in Java. The page itself is implemented by a derivative of wicket's > WebPage class in the usual manner. > > Now I use variations and so I can have lots of different markup for > the single set of classes detailed above. > > I want to be able to have the flexibility to leave the header out in > certain markup variations without wicket generating an error because > the page tries to add the header component. > > Is there a way to create the markup so I can do this without > explicitly telling the Page not to load the header component? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component
this part of the concept i understand...what i don't get is a little deeper...from your example i am accessing a property in input. however, I don't have such a property in my object. I some how have to figure out if that mode is selected. basically, i want to implement imodel as show in a example on the forum to put my object in a collection if it is selected. In the example ivan implements imodel. and set that model as the model that the checkbox works with. http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784 i don't understand how the implentaion works. can you help me with understanding how that works please. -B Eelco Hillenius wrote: > > Wicket models are a way to locate values. > > Let's take a look at wicket.examples.compref.CheckBoxPage. That page > has a nested static class called Input, with a property bool: > > private static class Input implements Serializable > { > public Boolean bool = Boolean.TRUE; > } > > Then, in CheckBoxPage's constructor we do (simplified): > > final Input input = new Input(); > setModel(new CompoundPropertyModel(input)); > Form form = new Form("form"); > form.add(new CheckBox("bool")); > > CompoundPropertyModel might be a bit distracting, so let's rewrite > this to use a normal model: > > final Input input = new Input(); > Form form = new Form("form"); > form.add(new CheckBox("bool", PropertyModel(input, "bool"))); > > another way to rewrite the model: > > form.add(new CheckBox("bool", new Model(input) > { > public Object getObject() > { > return ((Input)super.getObject()).bool; > } > > public void setObject(Object object) > { > ((Input)super.getObject()).bool = (Boolean)object; > } > })); > > and yet another to rewrite the model is: > > form.add(new CheckBox("bool", new IModel() > { > public Object getObject() > { > return input.bool; > } > > public void setObject(Object object) > { > input.bool = (Boolean)object; > } > > public void detach() > { > } > })); > > and *yet* another way is: > > form.add(new CheckBox("bool", new AbstractCheckBoxModel() > { > @Override > public boolean isSelected() > { > return input.bool; > } > > @Override > public void select() > { > input.bool = true; > } > > @Override > public void unselect() > { > input.bool = false; > } > })); > > If you compare these examples, the constant factor is that we're after > the bool property of the Input instance. It is important that you > understand that the typical thing for Wicket models to do is to pass > and get values from other objects, typically your domain objects or > 'form beans' (that's the name which other frameworks often use). Here, > the Input instance is that object, and any of the above combinations > just provides the facility for components to work on that object in a > generic fashion. > > So... the CheckBox component calls getObject on it's model to > determine whether it should render itself as checked or not. It calls > setObject on the model when it receives input. The typical case for > that is when it is part of a form. The form calls updateModel on all > nested components, and the components then call setObject with the > received (and converted) input. > > Now, to get back to your original question. We could rewrite the above > example to work on a list of checkboxes/ input objects like this: > > List inputs = new ArrayList(Arrays.asList(new Input[] { > new Input(), > new Input(), new Input() })); > ListView l = new ListView("list", inputs) > { > @Override > protected void populateItem(ListItem item) > { > // item.getModel().getObject() would give the Input > instance for > // this particular list element > item.add(new CheckBox("bool", new > PropertyModel(item.getModel(), > "bool"))); > } > }; > form.add(l); > System.err.println("selection for the second input: " + > inputs.get(1).bool); > > As you can see, the idea stays the same; in both cases we're after the > bool property of instances of Input. > > I'd say, let this sink in a bit, and try to play with this code > yourself, so that you understand better how it works. > > Hope this helps, > > Eelco > > On 3/27/07, GS-ikiini <[
Re: [Wicket-user] howto display html "as is"?
lblArticleContent.setEscapeModelString(false); On 3/27/07, Ralf Eichinger <[EMAIL PROTECTED]> wrote: I'm developing a cms. I want to output a html-string inside a wicket-page. when I do like this: Label lblArticleContent = new Label("lblArticleContent", article.getHtmlContent()); add(lblArticleContent); I get my html encoded like this:Willkommen auf der Startseite!
Hier kommt Ihr Text...
Do I have to set something to not encode my html output? Do I have to use another component than Label? greetings ralf - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] howto display html "as is"?
labelsetEscapeModelStrings(false); -Matej On 3/27/07, Ralf Eichinger <[EMAIL PROTECTED]> wrote: > I'm developing a cms. > I want to output a html-string inside a wicket-page. > when I do like this: > > Label lblArticleContent = new Label("lblArticleContent", > article.getHtmlContent()); > add(lblArticleContent); > > I get my html encoded like this: >Willkommen auf der Startseite!
Hier kommt Ihr > Text...
> > Do I have to set something to not encode my html output? > Do I have to use another component than Label? > > greetings > ralf > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] howto display html "as is"?
take a look at the kronos project in wicket-stuff. it is an unfinished cms system. -igor On 3/27/07, Ralf Eichinger <[EMAIL PROTECTED]> wrote: I'm developing a cms. I want to output a html-string inside a wicket-page. when I do like this: Label lblArticleContent = new Label("lblArticleContent", article.getHtmlContent()); add(lblArticleContent); I get my html encoded like this:Willkommen auf der Startseite!
Hier kommt Ihr Text...
Do I have to set something to not encode my html output? Do I have to use another component than Label? greetings ralf - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] howto display html "as is"?
label.setEscapeModelStrings(false)' On 3/27/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > labelsetEscapeModelStrings(false); > > -Matej > > > On 3/27/07, Ralf Eichinger <[EMAIL PROTECTED]> wrote: > > I'm developing a cms. > > I want to output a html-string inside a wicket-page. > > when I do like this: > > > > Label lblArticleContent = new Label("lblArticleContent", > > article.getHtmlContent()); > > add(lblArticleContent); > > > > I get my html encoded like this: > >Willkommen auf der Startseite!
Hier kommt Ihr > > Text...
> > > > Do I have to set something to not encode my html output? > > Do I have to use another component than Label? > > > > greetings > > ralf > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] howto display html "as is"?
label.setescapemodelstrings(false) On 3/27/07, Ralf Eichinger <[EMAIL PROTECTED]> wrote: > I'm developing a cms. > I want to output a html-string inside a wicket-page. > when I do like this: > > Label lblArticleContent = new Label("lblArticleContent", > article.getHtmlContent()); > add(lblArticleContent); > > I get my html encoded like this: >Willkommen auf der Startseite!
Hier kommt Ihr > Text...
> > Do I have to set something to not encode my html output? > Do I have to use another component than Label? > > greetings > ralf > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] howto display html "as is"?
On 27/03/07, Ralf Eichinger <[EMAIL PROTECTED]> wrote: > I'm developing a cms. > I want to output a html-string inside a wicket-page. > when I do like this: > > Label lblArticleContent = new Label("lblArticleContent", > article.getHtmlContent()); lblArticleContent.setEscapeModelStrings(false); // See http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=wicket-0:wicket.examples.compref.LabelPage /Gwyn -- Download Wicket 1.2.5 now! - http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component
Wicket models are a way to locate values. Let's take a look at wicket.examples.compref.CheckBoxPage. That page has a nested static class called Input, with a property bool: private static class Input implements Serializable { public Boolean bool = Boolean.TRUE; } Then, in CheckBoxPage's constructor we do (simplified): final Input input = new Input(); setModel(new CompoundPropertyModel(input)); Form form = new Form("form"); form.add(new CheckBox("bool")); CompoundPropertyModel might be a bit distracting, so let's rewrite this to use a normal model: final Input input = new Input(); Form form = new Form("form"); form.add(new CheckBox("bool", PropertyModel(input, "bool"))); another way to rewrite the model: form.add(new CheckBox("bool", new Model(input) { public Object getObject() { return ((Input)super.getObject()).bool; } public void setObject(Object object) { ((Input)super.getObject()).bool = (Boolean)object; } })); and yet another to rewrite the model is: form.add(new CheckBox("bool", new IModel() { public Object getObject() { return input.bool; } public void setObject(Object object) { input.bool = (Boolean)object; } public void detach() { } })); and *yet* another way is: form.add(new CheckBox("bool", new AbstractCheckBoxModel() { @Override public boolean isSelected() { return input.bool; } @Override public void select() { input.bool = true; } @Override public void unselect() { input.bool = false; } })); If you compare these examples, the constant factor is that we're after the bool property of the Input instance. It is important that you understand that the typical thing for Wicket models to do is to pass and get values from other objects, typically your domain objects or 'form beans' (that's the name which other frameworks often use). Here, the Input instance is that object, and any of the above combinations just provides the facility for components to work on that object in a generic fashion. So... the CheckBox component calls getObject on it's model to determine whether it should render itself as checked or not. It calls setObject on the model when it receives input. The typical case for that is when it is part of a form. The form calls updateModel on all nested components, and the components then call setObject with the received (and converted) input. Now, to get back to your original question. We could rewrite the above example to work on a list of checkboxes/ input objects like this: List inputs = new ArrayList(Arrays.asList(new Input[] { new Input(), new Input(), new Input() })); ListView l = new ListView("list", inputs) { @Override protected void populateItem(ListItem item) { // item.getModel().getObject() would give the Input instance for // this particular list element item.add(new CheckBox("bool", new PropertyModel(item.getModel(), "bool"))); } }; form.add(l); System.err.println("selection for the second input: " + inputs.get(1).bool); As you can see, the idea stays the same; in both cases we're after the bool property of instances of Input. I'd say, let this sink in a bit, and try to play with this code yourself, so that you understand better how it works. Hope this helps, Eelco On 3/27/07, GS-ikiini <[EMAIL PROTECTED]> wrote: > > ok so i'm trying to implement my own model but i have little idea what i am > suppose to be trying to do here. can someone please give a brief overview as > to what the getObject, and setObject expects and does please. I am really > lost and need some help with this. also how does the model intereact with > the componenet..what do they tell each other.? > > -B > > > > igor.vaynberg wrote: > > > > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: > >> > >> > >> its saying that you create a custom model that takes as an argument in > >> the > >> constructor the object/model that you want to tie to a check box. this > >> model > >> is used as the model that we pass to our check box component. the > >> setObject > >> method gets called at the push of the submit button and sets that > >> object/model as part of
[Wicket-user] howto display html "as is"?
I'm developing a cms. I want to output a html-string inside a wicket-page. when I do like this: Label lblArticleContent = new Label("lblArticleContent", article.getHtmlContent()); add(lblArticleContent); I get my html encoded like this:Willkommen auf der Startseite!
Hier kommt Ihr Text...
Do I have to set something to not encode my html output? Do I have to use another component than Label? greetings ralf - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] getting form field value from AutoCompleteTextField
I'm not sure if I fully understand it, but maybe if the first textfield sent its value and a serverside reference hold it until the autocomplete field received the input and used this value?. Jaime. Igor Vaynberg <[EMAIL PROTECTED]> wrote: hmmm it doesnt work because the url is cached by the autocomplete script. we need to think of another way. -igor On 3/27/07, Jaime De La Jara <[EMAIL PROTECTED]> wrote:Ok, I understand, now I'm including a striped down code version of the problem. It contains an ant build file whose directory definition should be changed, but apart from that I think it could run without trouble, I haven't included style file so the autocomplete box is transparent but it's working. If you take a look at the VendorsAutocompleteBehaviour.java file, you'll see how the parameter is being recovered using document.getElementById. Thanks, Jaime. Igor Vaynberg < [EMAIL PROTECTED]> wrote: the reason i wanted a quickstart is so that i can see the problem in runtime. what you have sent over does not compile when i drop it into quickstart as it contains your app-specific classes/daos/validators which you have not included. -igor On 3/26/07, Jaime De La Jara < [EMAIL PROTECTED]> wrote: Ok, here it goes, though it's not complete quickstart, maybe it can help to show the context. The zip contains the page ( index.html, Index.java) and the autocomplete field and behaviour. Hope it can help to find what's going on. Thanks again, Jaime. Igor Vaynberg < [EMAIL PROTECTED]> wrote: if you feel like creating a quickstart i can take a look at that -igor On 3/26/07, Jaime De La Jara < [EMAIL PROTECTED]> wrote:No, it has one (returned by getMarkupId() and generated by setOutputMarkup(true)). This is the generated html : document.getElementById('numero').focus(); The strange thing is that if I set the value of the field in the model so the page loads with the normal field populated, then the code works returning the value I set in the page (in Java). It seems that the javascript is not getting the input typed in the field. Igor Vaynberg < [EMAIL PROTECTED]> wrote: your textfield doesnt have an id attribute defined, so docuement.getelemetnbyid is not finding it -igor On 3/26/07, Jaime De La Jara < [EMAIL PROTECTED]> wrote: Sorry in the last post I had a type instead of limiter=1415 it should be numFact=1415, I'm using "numFact" as the request variable. Jaime De La Jara < [EMAIL PROTECTED]> wrote: Igor, unfortunely I haven't been able to use the solution proposed. I copied and pasted the code for the getCallbackUrl method but it had a minor typo, but after I corrected and reloaded the page with the autocomplete field the browser (IE) throws a javascript error. The following works (using a hard code value) : return super.getCallbackUrl () + "&limiter=1415"; but If I use this : return super.getCallbackUrl () + "' + '&numeroFact=' + document.getElementById('numero').value + '"; or return super.getCallbackUrl() + "&numeroFact=' + document.getElementById(\"numero\").value + '"; I get an "" when getting the parameter from the request. The code generated in the page is the following : new Wicket.AutoComplete('indexForm_proveedores', '/adm-facturas/app?wicket:interface=:4:indexForm:proveedores:-1:IUnversionedBehaviorListener&wicket:behaviorId=1&wicket:ignoreIfNotActive=true&limiter=' + document.getElementById('numero').value + ''); It seems the retrieval of the field is returning null !. The field is defined as follows in the page : and in the Java code : add(new TextField("numero") { public String getMarkupId() { return "numero"; } }.add(new NumeroFacturaValidador()). add(StringValidator.maximumLength(12)). setOutputMarkupId(true).add(new FieldFocusBehavior())); I don't know what I'm doing wrong, any help would be greatly appreciated. Jaime. Jaime De La Jara <[EMAIL PROTECTED]> wrote: Absolutely !, thanks a lot Igor, I'll try it right now. I agree that is an uncommon use case and it doesn't deserve an api change and a custom solution is what is needed. Jaime. Igor Vaynberg < [EMAIL PROTECTED]> wrote: ok, this is a bit tricky but is def doable. i dont think this is a very common usecase, so i dont think we will create all the factories/etc for you to be able to do this out of the box because in most cases it will just be api bloat. that said, although not trivial it is still def very possible start with extending the autocompletebehavior override getcallbackurl and do something like return super.getcallbackurl()+"+'&limiter='+document.getelementbyid('someid').value"); so now whenever the url is invoked for the autocomplete it will also contain a "limiter
Re: [Wicket-user] Reverting the constructor change of 2.0
Sounds very good! Generally I try to stay away from beta versions, but in the case of Wicket 1.4/2.0 I think I'll make an exception. /Anders Eelco Hillenius wrote: > Hi, > > It ended in us agreeing we should get rid of the constructor change. > > We currently working on backporting all the 2.0 features to 1.3, > except for the constructor change and the JDK 5 features. You can > track the progress of that here: > http://cwiki.apache.org/confluence/display/WICKET/Backporting+features+from+trunk. > As you can see, we're progressing pretty quickly. After that is done, > we'll move the current trunk somewhere and replace it with the code of > 1.3 and add the JDK 5 features (basically generified models and > components). We're probably gonna call that release 2.0, though 1.4 is > still an option. > > So in a couple of weeks, the net result is that we'll have a Wicket > version that is everything Wicket 2.0 is now bar the constructor > change. 1.3 and that version will be very close to each other (so much > easier to maintain), and it'll be easier for people comming from 1.2 > or 1.3 to move to that version. > > Regards, > > Eelco > > On 3/27/07, Anders Peterson <[EMAIL PROTECTED]> wrote: >> How did this end - what's the plan? /Anders >> >> Eelco Hillenius wrote: >>> I didn't mean that bad. I would just prefer someone else to do the next >>> vote. >>> >>> Eelco >>> >>> >>> On 3/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: i guess sacrasm and frustration dont transfer well over email :| -igor On 3/14/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote: > On 3/14/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: >> well obviously we cannot poll for that until we have decided what 1.3 will >> be. so first you need a poll on that, then you need a poll that depends on >> that poll so we can decide when to drop support for 1.5. and then another >> poll on the what to do next, but that poll has to depend on the previous two >> polls. and while all these polls are going on no one is doing anything >> because nothing is certain. do i commit to 2.0? naah, maybe into 1.3. but >> wait i dont know if i can put this into 1.3 because a poll on that is still >> going on. blah blah blah blah. > We are looking for consensus, and as we're doing that on the mailing > list, yes there will be a couple of bounces back and forth. > > But I think we pretty much know all the options now. I've been > sticking my neck out with polls and proposals a couple of times now, > so Igor, why don't you write that next ultimate all-compassing vote > where we can decide on ditching the constructor refactor and when and > how? > > Eelco > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user >>> - >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share your >>> opinions on IT & business topics through brief surveys-and earn cash >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceFo
Re: [Wicket-user] getting form field value from AutoCompleteTextField
hmmm it doesnt work because the url is cached by the autocomplete script. we need to think of another way. -igor On 3/27/07, Jaime De La Jara <[EMAIL PROTECTED]> wrote: Ok, I understand, now I'm including a striped down code version of the problem. It contains an ant build file whose directory definition should be changed, but apart from that I think it could run without trouble, I haven't included style file so the autocomplete box is transparent but it's working. If you take a look at the VendorsAutocompleteBehaviour.java file, you'll see how the parameter is being recovered using document.getElementById. Thanks, Jaime. *Igor Vaynberg <[EMAIL PROTECTED]>* wrote: the reason i wanted a quickstart is so that i can see the problem in runtime. what you have sent over does not compile when i drop it into quickstart as it contains your app-specific classes/daos/validators which you have not included. -igor On 3/26/07, Jaime De La Jara <[EMAIL PROTECTED]> wrote: > > Ok, here it goes, though it's not complete quickstart, maybe it can help > to show the context. The zip contains the page (index.html, Index.java) > and the autocomplete field and behaviour. Hope it can help to find what's > going on. > Thanks again, > > Jaime. > > *Igor Vaynberg < [EMAIL PROTECTED]>* wrote: > > if you feel like creating a quickstart i can take a look at that > > -igor > > > On 3/26/07, Jaime De La Jara < [EMAIL PROTECTED]> wrote: > > > > No, it has one (returned by getMarkupId() and generated by > > setOutputMarkup(true)). > > > > This is the generated html : > > > > > name="numero" id="numero"> > > document.getElementById('numero').focus(); > > > > > > The strange thing is that if I set the value of the field in the model > > so the page loads with the normal field populated, then the code works > > returning the value I set in the page (in Java). > > > > > > It seems that the javascript is not getting the input typed in the > > field. > > > > > > > > *Igor Vaynberg < [EMAIL PROTECTED]>* wrote: > > > > your textfield doesnt have an id attribute defined, so > > docuement.getelemetnbyid is not finding it > > -igor > > > > > > On 3/26/07, Jaime De La Jara < [EMAIL PROTECTED]> wrote: > > > > > > Sorry in the last post I had a type instead of limiter=1415 it > > > should be numFact=1415, I'm using "numFact" as the request variable. > > > > > > *Jaime De La Jara < [EMAIL PROTECTED]> * wrote: > > > > > > Igor, unfortunely I haven't been able to use the solution proposed. > > > I copied and pasted the code for the getCallbackUrl method but it had a > > > minor typo, but after I corrected and reloaded the page with the > > > autocomplete field the browser (IE) throws a javascript error. The following > > > works (using a hard code value) : > > > > > > return super.getCallbackUrl () + "&limiter=1415"; > > > > > > but If I use this : > > > > > > return super.getCallbackUrl () + "' + '&numeroFact=' + > > > document.getElementById('numero').value + '"; > > > > > > or > > > > > > return super.getCallbackUrl() + "&numeroFact=' + > > > document.getElementById(\"numero\").value + '"; > > > > > > I get an "" when getting the parameter from the request. > > > > > > The code generated in the page is the following : > > > > > > > > > new Wicket.AutoComplete('indexForm_proveedores', > > > > > > '/adm-facturas/app?wicket:interface=:4:indexForm:proveedores:-1:IUnversionedBehaviorListener&wicket:behaviorId=1&wicket:ignoreIfNotActive=true&limiter=' > > > + document.getElementById('numero').value + ''); > > > > > > It seems the retrieval of the field is returning null !. > > > > > > The field is defined as follows in the page : > > > > > > > > > > > > and in the Java code : > > > > > > add(new TextField("numero") > > > { > > > public String getMarkupId() > > > { > > > return "numero"; > > > } > > > }.add(new NumeroFacturaValidador()). > > > add(StringValidator.maximumLength(12)). > > > setOutputMarkupId(true).add(new > > > FieldFocusBehavior())); > > > > > > > > > I don't know what I'm doing wrong, any help would be greatly > > > appreciated. > > > > > > Jaime. > > > > > > > > > > > > > > > > > > > > > > > > * Jaime De La Jara <[EMAIL PROTECTED]>* wrote: > > > > > > Absolutely !, thanks a lot Igor, I'll try it right now. I agree that > > > is an uncommon use case and it doesn't deserve an api change and a custom > > > solution is what is needed. > > > > > > Jaime. > > > > > > *Igor Vaynberg < [EMAIL PROTECTED]>* wrote: > > > > > > ok, this is a bit tricky but is def doable. i dont think this is a > > > very common usecase, so i dont think we will create all the factories/etc > > > for you to be able to do this out of the box because in most cases it will > > > just be api bloat. > > > > > > that said, although not trivial it is still def very possible > > > > > >
Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component
ok so i'm trying to implement my own model but i have little idea what i am suppose to be trying to do here. can someone please give a brief overview as to what the getObject, and setObject expects and does please. I am really lost and need some help with this. also how does the model intereact with the componenet..what do they tell each other.? -B igor.vaynberg wrote: > > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> >> its saying that you create a custom model that takes as an argument in >> the >> constructor the object/model that you want to tie to a check box. this >> model >> is used as the model that we pass to our check box component. the >> setObject >> method gets called at the push of the submit button and sets that >> object/model as part of the collection if it is selected. is this >> correct? > > > sounds about right. > > -igor > > > > -B >> >> >> >> igor.vaynberg wrote: >> > >> > if you dont grasp the concepts perhaps you should read the wiki page on >> > models >> > >> > the concept is: >> > >> > since the checkbox works by setting/clearing a boolean the model >> > translates >> > a set boolean->insert into collection and clear boolean->remove from >> > collection. >> > >> > there is explanation there, try to read that too, not just look at the >> > code. >> > >> > -igor >> > >> > >> > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> I don't quite grasp the concepts used in that tread. from what i >> >> understand i >> >> should create a separate model that takes the model that has to get >> >> set(the >> >> model that is selected via checkbox) in the object i'm making, and >> places >> >> it >> >> in a collection if it is selected. Is this correct? >> >> >> >> -B >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > please search mail archives before posting >> >> > >> >> > >> >> >> http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784 >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Hey all, >> >> >> >> >> >> I have a list view that contains a list of objects. these objects >> are >> >> >> selectable via checkboxes. My problem is that i don't know how to >> know >> >> or >> >> >> tell my code what objects have been selected. here is what i want >> to >> >> do. >> >> >> >> >> >> i ahve a list of objects lets call them pens. So i have a list of 5 >> >> >> different types of pen objects. this object type is a property ( a >> >> list >> >> >> of >> >> >> this object to be specific) in another object say a pencilCase. i >> >> want >> >> a >> >> >> user to select 0-many different pens which will then be placed in >> the >> >> >> pencil >> >> >> case by the applicaition. what i am not sure how to do is associate >> >> each >> >> >> pen >> >> >> in the list with what is selected. I seen on the wiki that i can >> add >> a >> >> >> boolean property to the pens called selected. and make that what >> the >> >> >> checkbox renders on. but i don't have access to the pens to do >> that. >> >> is >> >> >> another some way i can do an association externally? I thought of >> >> >> creating >> >> >> a >> >> >> separate list of booleans variables that i can compare side by side >> >> with >> >> >> the >> >> >> list of pens. selection of check boxes will set the booleans in >> that >> >> >> list. >> >> >> then look at what is true and go get the pen in the pens list at >> that >> >> >> position and do what i got to do with it. however I think this >> method >> >> 1- >> >> >> may >> >> >> not work and 2 - is to elementary and not very professional. I am >> sure >> >> >> there >> >> >> is another way to do this. Please advise. >> >> >> >> >> >> >> >> >> -B >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769 >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> - >> >> >> Take Surveys. Earn Cash. Influence the Future of IT >> >> >> Join SourceForge.net's Techsay panel and you'll get the chance to >> >> share >> >> >> your >> >> >> opinions on IT & business topics through brief surveys-and earn >> cash >> >> >> >> >> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> >> ___ >> >> >> Wicket-user mailing list >> >> >> Wicket-user@lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> >> > >> >> > >> >> >> - >> >> > Take Surveys. Earn Cash. Influence the Future of IT >> >> > Join SourceForge.net's Techsay panel and you'll get the chance to >> share >> >> > your >> >> > opinions
Re: [Wicket-user] IBM to adopt Wicket as standard web framework
> Can this be counted as an accomplishment? /Anders I don't know. Sounded kind of sarcastic didn't it? :) Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Reverting the constructor change of 2.0
Hi, It ended in us agreeing we should get rid of the constructor change. We currently working on backporting all the 2.0 features to 1.3, except for the constructor change and the JDK 5 features. You can track the progress of that here: http://cwiki.apache.org/confluence/display/WICKET/Backporting+features+from+trunk. As you can see, we're progressing pretty quickly. After that is done, we'll move the current trunk somewhere and replace it with the code of 1.3 and add the JDK 5 features (basically generified models and components). We're probably gonna call that release 2.0, though 1.4 is still an option. So in a couple of weeks, the net result is that we'll have a Wicket version that is everything Wicket 2.0 is now bar the constructor change. 1.3 and that version will be very close to each other (so much easier to maintain), and it'll be easier for people comming from 1.2 or 1.3 to move to that version. Regards, Eelco On 3/27/07, Anders Peterson <[EMAIL PROTECTED]> wrote: > How did this end - what's the plan? /Anders > > Eelco Hillenius wrote: > > I didn't mean that bad. I would just prefer someone else to do the next > > vote. > > > > Eelco > > > > > > On 3/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > >> i guess sacrasm and frustration dont transfer well over email :| > >> > >> -igor > >> > >> > >> On 3/14/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote: > >>> On 3/14/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > well obviously we cannot poll for that until we have decided what 1.3 > >> will > be. so first you need a poll on that, then you need a poll that depends > >> on > that poll so we can decide when to drop support for 1.5. and then > >> another > poll on the what to do next, but that poll has to depend on the previous > >> two > polls. and while all these polls are going on no one is doing anything > because nothing is certain. do i commit to 2.0? naah, maybe into 1.3. > >> but > wait i dont know if i can put this into 1.3 because a poll on that is > >> still > going on. blah blah blah blah. > >>> We are looking for consensus, and as we're doing that on the mailing > >>> list, yes there will be a couple of bounces back and forth. > >>> > >>> But I think we pretty much know all the options now. I've been > >>> sticking my neck out with polls and proposals a couple of times now, > >>> so Igor, why don't you write that next ultimate all-compassing vote > >>> where we can decide on ditching the constructor refactor and when and > >>> how? > >>> > >>> Eelco > >>> > >>> > >> - > >>> Take Surveys. Earn Cash. Influence the Future of IT > >>> Join SourceForge.net's Techsay panel and you'll get the chance to share > >> your > >>> opinions on IT & business topics through brief surveys-and earn cash > >>> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >>> ___ > >>> Wicket-user mailing list > >>> Wicket-user@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> > >> > >> - > >> Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the chance to share > >> your > >> opinions on IT & business topics through brief surveys-and earn cash > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> ___ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV __
Re: [Wicket-user] Reverting the constructor change of 2.0
How did this end - what's the plan? /Anders Eelco Hillenius wrote: > I didn't mean that bad. I would just prefer someone else to do the next vote. > > Eelco > > > On 3/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> i guess sacrasm and frustration dont transfer well over email :| >> >> -igor >> >> >> On 3/14/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote: >>> On 3/14/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: well obviously we cannot poll for that until we have decided what 1.3 >> will be. so first you need a poll on that, then you need a poll that depends >> on that poll so we can decide when to drop support for 1.5. and then >> another poll on the what to do next, but that poll has to depend on the previous >> two polls. and while all these polls are going on no one is doing anything because nothing is certain. do i commit to 2.0? naah, maybe into 1.3. >> but wait i dont know if i can put this into 1.3 because a poll on that is >> still going on. blah blah blah blah. >>> We are looking for consensus, and as we're doing that on the mailing >>> list, yes there will be a couple of bounces back and forth. >>> >>> But I think we pretty much know all the options now. I've been >>> sticking my neck out with polls and proposals a couple of times now, >>> so Igor, why don't you write that next ultimate all-compassing vote >>> where we can decide on ditching the constructor refactor and when and >>> how? >>> >>> Eelco >>> >>> >> - >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >>> opinions on IT & business topics through brief surveys-and earn cash >>> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> ___ >>> Wicket-user mailing list >>> Wicket-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radio.getValue?
I'm afraid I don't really understand your problem Nino. Eelco On 3/26/07, Nino Wael <[EMAIL PROTECTED]> wrote: > Hi > > We are doing some extensive Jmeter testing, and have run into a technical > problem regarding radios, which are the following: > > If you had 5 radios on a page at a given time, their value would have been > radio1, radio2.. radio5. > > If you then pulled out radio number 4 then the list would be this, radio1, > radio2 .. radio4. > > Now only the one previously called radio4 should not have been selectable. > This renders our jmeter test pretty vuernable if some of the stuff no longer > are available. Im not sure if I can use a ichoicerenderer, looking at the > code from getValue, it's pretty hardcoded am I correct? > > If possible i'd like to just use the IChoiceRenderer's getId instead, that > should fix the problem. > > regards Nino > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IBM to adopt Wicket as standard web framework
What does it take to become the victim of a joke like this? Can this be counted as an accomplishment? /Anders Korbinian Bachl wrote: > seems as they (the jokers) have no longer the patience to wait for april 1st > :P > >> -Ursprüngliche Nachricht- >> Von: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] Im Auftrag >> von Matej Knopp >> Gesendet: Montag, 26. März 2007 17:03 >> An: wicket-user@lists.sourceforge.net >> Betreff: Re: [Wicket-user] IBM to adopt Wicket as standard >> web framework >> >> http://mail-archives.apache.org/mod_mbox/tapestry-users/200504 > ..mbox/[EMAIL PROTECTED]> 3e >> On 3/26/07, Alexandre Bairos <[EMAIL PROTECTED]> wrote: >>> It´d be fantastic. But it's a bit suspicious, considering the magic >>> date. :) >>> >>> >>> >>> On 3/26/07, Francis Amanfo <[EMAIL PROTECTED] > wrote: I'm only a messenger. Don't persecute the messenger! On 3/26/07, Korbinian Bachl < [EMAIL PROTECTED] > wrote: > > > "The official announcement of this was planned for >> April 1, 2007, > but >>> because this falls on Sunday, the > announcement is scheduled for April, 2 2007." > > is this some kind of april the 1st joke or are you >> serious about it??? > > > >>> Von: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] Im Auftrag von >>> Francis Amanfo > Gesendet: Montag, 26. März 2007 16:21 > An: wicket-user@lists.sourceforge.net > Betreff: [Wicket-user] IBM to adopt Wicket as standard web > framework > > > > Hi guys, > > An IBM internal memo, written and signed by product manager, Tim >>> O'Malley, has been leaked. > Well, to be more direct, a friend of my working with IBM leaked > this to >>> me. > In it, IBM praised Wicket as an innovative and state of the art > web >>> framework that stands up tall against all its > competitors including JSF, Struts 2 and Tapestry. In >> the memo, IBM >>> mentions some of it's frustrations with JSF and > about Sun not listening to them during the creation of the JSF >>> specification. In the memo, IBM also praises the Wicket team > as very hardworking and dedicated guys and is in >> negotiations to > employ >>> them into IBM and make them work on Wicket > and sell support under the umbrella of IBM. > The memo also goes further to announce IBM's plans to integrate > Wicket >>> into it's JEE offerings. To be more specific, > Wicket would be Integrated into RAD 8 as the default Web > framework, >>> which it plans to release in the fourth quater of this year. > The memo also states IBM's plans to create widgets, >> which it plans > to >>> market under the label WICKED Widgets, of all > the standard Wicket components and enable drag and drop > development in >>> RAD 8. It would also make WICKED(c) widgets standalone for >> separate downloads. > The official announcement of this was planned for April >> 1, 2007, > but >>> because this falls on Sunday, the > announcement is scheduled for April, 2 2007. > > There is a link to this memo but is currently available only on > IBM's >>> internal network, which of course is closed > to the public. > > I personally think this is a great news. It will grow Wicket's > adoption >>> exponentially, which is of course a good > thing for the community and give Wicket a high status in the web >>> framework community. In addition, our diligent, humble > and hardworking Wicket core developers would be rewarded. > > So join me rejoice about the greatest news so far for the Wicket >>> community. > Regards, > Francis > -- > Beware of bugs in the above code; > I have only proved it correct, not tried it. > -Donald Knuth > >> -- >>> --- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the >> chance to share >>> your > opinions on IT & business topics through brief surveys-and earn > cash > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV >>> DEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth >> -- >>> --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share >>> your opinions on IT & business topics through brief >> surveys-and earn cash >> http://www.techsay.com
[Wicket-user] 您好<优×惠代×开>
深圳市维多利亚实业发展有限公司 您好!本公司是一家常年主要以生产和销售为一体的定额纳税企业;公司本着“诚信为本,互惠互利” 现我公司有余额的进项发o票向外优惠代o开。 提供代开项目: 商品销售发i票/国际运输业发i票/建筑安装业发i票/广告业发o票/其它服务业发o票等各行业票o据。 如有需要欢迎来电洽谈咨询。请保留此信息以备后用。 联系人:谢东 手机:13544228444 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HTML problem with Opera
Found the problem Opera don't like coordinates that look like 80.0 and must be only 80. Thanks to anybody who could have look and think about this issue! :) Marc On 3/26/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote: Ok, It is not wicket related but since I don't know where to ask this and the Opera forum seems a little bit desert, I'm trying within this community that have a lot of bright big brained developers! :) Here is the problem, We generate image, and we also generate image map to make it possible to click on the image and mange everything using Javascript (Look pretty cool in fact! :) The problem is that Opera don't seem's to interpret incorrectly the image map and does not work. Someone got an idea what it can be? I include a sample html and gif file (No need for a web server, just place the two file side by side in the same folder and open it, you'll understand what is happening.) If someone got an idea, I'm open to try anything... Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component
okI though that was a lower case bmy bad on the not so smart question... -B Eelco Hillenius wrote: > > java.lang.Boolean? > > Eelco > > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> one more thing...i see wehn you implement the IModel class in the thread, >> you >> use a data type called Boolean. What is this? is this something (an enum >> class) that you create else wehre? >> >> -B >> >> >> >> igor.vaynberg wrote: >> > >> > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> its saying that you create a custom model that takes as an argument in >> >> the >> >> constructor the object/model that you want to tie to a check box. this >> >> model >> >> is used as the model that we pass to our check box component. the >> >> setObject >> >> method gets called at the push of the submit button and sets that >> >> object/model as part of the collection if it is selected. is this >> >> correct? >> > >> > >> > sounds about right. >> > >> > -igor >> > >> > >> > >> > -B >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > if you dont grasp the concepts perhaps you should read the wiki page >> on >> >> > models >> >> > >> >> > the concept is: >> >> > >> >> > since the checkbox works by setting/clearing a boolean the model >> >> > translates >> >> > a set boolean->insert into collection and clear boolean->remove from >> >> > collection. >> >> > >> >> > there is explanation there, try to read that too, not just look at >> the >> >> > code. >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> I don't quite grasp the concepts used in that tread. from what i >> >> >> understand i >> >> >> should create a separate model that takes the model that has to get >> >> >> set(the >> >> >> model that is selected via checkbox) in the object i'm making, and >> >> places >> >> >> it >> >> >> in a collection if it is selected. Is this correct? >> >> >> >> >> >> -B >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> > >> >> >> > please search mail archives before posting >> >> >> > >> >> >> > >> >> >> >> >> >> http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784 >> >> >> > >> >> >> > -igor >> >> >> > >> >> >> > >> >> >> > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> Hey all, >> >> >> >> >> >> >> >> I have a list view that contains a list of objects. these >> objects >> >> are >> >> >> >> selectable via checkboxes. My problem is that i don't know how >> to >> >> know >> >> >> or >> >> >> >> tell my code what objects have been selected. here is what i >> want >> >> to >> >> >> do. >> >> >> >> >> >> >> >> i ahve a list of objects lets call them pens. So i have a list >> of 5 >> >> >> >> different types of pen objects. this object type is a property ( >> a >> >> >> list >> >> >> >> of >> >> >> >> this object to be specific) in another object say a pencilCase. >> i >> >> >> want >> >> >> a >> >> >> >> user to select 0-many different pens which will then be placed >> in >> >> the >> >> >> >> pencil >> >> >> >> case by the applicaition. what i am not sure how to do is >> associate >> >> >> each >> >> >> >> pen >> >> >> >> in the list with what is selected. I seen on the wiki that i can >> >> add >> >> a >> >> >> >> boolean property to the pens called selected. and make that what >> >> the >> >> >> >> checkbox renders on. but i don't have access to the pens to do >> >> that. >> >> >> is >> >> >> >> another some way i can do an association externally? I thought >> of >> >> >> >> creating >> >> >> >> a >> >> >> >> separate list of booleans variables that i can compare side by >> side >> >> >> with >> >> >> >> the >> >> >> >> list of pens. selection of check boxes will set the booleans in >> >> that >> >> >> >> list. >> >> >> >> then look at what is true and go get the pen in the pens list at >> >> that >> >> >> >> position and do what i got to do with it. however I think this >> >> method >> >> >> 1- >> >> >> >> may >> >> >> >> not work and 2 - is to elementary and not very professional. I >> am >> >> sure >> >> >> >> there >> >> >> >> is another way to do this. Please advise. >> >> >> >> >> >> >> >> >> >> >> >> -B >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9680769 >> >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> - >> >> >> >> Take Surveys. Earn Cash. Influence the Future of IT >> >> >> >> Join SourceForge.net's Techsay panel and you'll get the chance >> to >> >> >> share >> >> >> >> your >> >> >> >> opinions on IT & business topics through brief surveys-and earn >> >> cash >> >> >> >> >> >> >> >> >> >>
Re: [Wicket-user] Radio.getValue?
hmm, the same thing applies to checkbox component. -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ti 27-03-2007 12:15 Til: wicket-user@lists.sourceforge.net Emne: SV: Radio.getValue? Hmm I can see that radio are pretty simple on this, no constructors with ichoicerenderer. I guess the only way it can work are if some one creates a patch. I'll findout how bad we want this not to be a problem, if we want it bad. I'll create a fix for it. If I create a fix, could it be patched back into wicket 1.2.4? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ti 27-03-2007 08:22 Til: wicket-user@lists.sourceforge.net Emne: Radio.getValue? Hi We are doing some extensive Jmeter testing, and have run into a technical problem regarding radios, which are the following: If you had 5 radios on a page at a given time, their value would have been radio1, radio2.. radio5. If you then pulled out radio number 4 then the list would be this, radio1, radio2 .. radio4. Now only the one previously called radio4 should not have been selectable. This renders our jmeter test pretty vuernable if some of the stuff no longer are available. Im not sure if I can use a ichoicerenderer, looking at the code from getValue, it's pretty hardcoded am I correct? If possible i'd like to just use the IChoiceRenderer's getId instead, that should fix the problem. regards Nino <>- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Japanese does not work inAutocomplete (Firefox/Windows)
Any localized javascript operators in the autocomplete thingy(eg boolean=falsch instead of boolean=0 )? As I remember it only were a problem on IE 5.5. But thats something you could check. regards. -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af David Leangen Sendt: ti 27-03-2007 04:49 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Japanese does not work inAutocomplete (Firefox/Windows) Just an update... The problem does not occur on English Windows. It occurred on 3 different machines running Japanese Windows XP. I'm stumped... On Tue, 2007-03-27 at 09:45 +0900, David Leangen wrote: > Hello! > > For some reason, in Firefox under Windows only, Japanese autocomplete > does not not work. > > It works in Firefox on Mac and Linux, and it works on IE in Windows. > It's just the Firefox/Windows that causes the problem, and only in > Japanese. > > By "does not work", I mean that nothing shows up. > > > Any ideas where we could look? > > (I don't have a dev environment in Windows set up, so I haven't been > able to step through the code in debug mode.) > > > Cheers, > David > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user <>- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radio.getValue?
Hmm I can see that radio are pretty simple on this, no constructors with ichoicerenderer. I guess the only way it can work are if some one creates a patch. I'll findout how bad we want this not to be a problem, if we want it bad. I'll create a fix for it. If I create a fix, could it be patched back into wicket 1.2.4? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ti 27-03-2007 08:22 Til: wicket-user@lists.sourceforge.net Emne: Radio.getValue? Hi We are doing some extensive Jmeter testing, and have run into a technical problem regarding radios, which are the following: If you had 5 radios on a page at a given time, their value would have been radio1, radio2.. radio5. If you then pulled out radio number 4 then the list would be this, radio1, radio2 .. radio4. Now only the one previously called radio4 should not have been selectable. This renders our jmeter test pretty vuernable if some of the stuff no longer are available. Im not sure if I can use a ichoicerenderer, looking at the code from getValue, it's pretty hardcoded am I correct? If possible i'd like to just use the IChoiceRenderer's getId instead, that should fix the problem. regards Nino <>- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user