Re: Using PageReference for a 'back' link

2012-10-23 Thread Dirk Forchel
Here a short example with two Pages (a kind of overview page and a detailed view page) how it could work: e.g. in OverviewPage.java: in DetailedViewPage.java: -- View this message in context:

Re: WiQuery 6.0

2012-10-23 Thread Guillaume Smet
Hi Nick, On Tue, Oct 23, 2012 at 1:28 AM, Nick Pratt nbpr...@gmail.com wrote: I do see the imports of jquery and jquery.ui.autocomplete (which I checked are available and served by the web server) - there's just no wiquery-gen-uniqueid script in the page This is a bug. See my pending pull

Wicket in PHP

2012-10-23 Thread martin.dilger
Hi, I´m a freelance software developer in germany. I recently got a problem, since my webhoster only provides php. I´m used to work with wicket, so i didnt want to miss this pleasure for my own website. So, the only solution was to implement wicket in php and call it (picket):). This is just a

Re: wicket 6.1.0 default logging configuration

2012-10-23 Thread Martin Grigorov
Hi, Wicket comes only with slf4j-api.jar. The application developer should provide the implementation. Check with 'mvn dependency:tree' that there is no other SLF4J impl than yours (logback). Additionally with ClassLoader#getResources(/logback.xml) (logback-test.xml, logback.groovy,

Re: Wicket in PHP

2012-10-23 Thread James mCruncher
Love the name picket. Demo is impressive considering that it's in pre-alpha and in an entirely new language. On Tue, Oct 23, 2012 at 3:16 PM, martin.dilger martin.dil...@googlemail.com wrote: Hi, I´m a freelance software developer in germany. I recently got a problem, since my webhoster

Re: Wicket page test

2012-10-23 Thread James mCruncher
Should that call be made on tearDown or tearDownClass? On Mon, Oct 22, 2012 at 6:01 PM, Martin Grigorov mgrigo...@apache.orgwrote: Call it and try again. On Mon, Oct 22, 2012 at 11:45 AM, Arunachalam Sibisakkaravarthi arunacha...@mcruncher.com wrote: No, We don't call

Re: Wicket page test

2012-10-23 Thread Martin Grigorov
On Tue, Oct 23, 2012 at 10:38 AM, James mCruncher ja...@mcruncher.com wrote: Should that call be made on tearDown or tearDownClass? It depends where WicketTester is initialized. On Mon, Oct 22, 2012 at 6:01 PM, Martin Grigorov mgrigo...@apache.orgwrote: Call it and try again. On Mon, Oct

Re: something similar with setOutputMarkupContainerClassName

2012-10-23 Thread Decebal Suiu
public class DesignModeListener implements IComponentInstantiationListener { private boolean designMode = true; @Override public void onInstantiation(Component component) { if (component instanceof WebMarkupContainer) {

Re: Wicket page test

2012-10-23 Thread James Selvakumar
Sorry if this is asked previously. Is it advisable to use a shared wicket tester across multiple unit tests? On Tue, Oct 23, 2012 at 3:39 PM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, Oct 23, 2012 at 10:38 AM, James mCruncher ja...@mcruncher.com wrote: Should that call be made on

Re: something similar with setOutputMarkupContainerClassName

2012-10-23 Thread Martin Grigorov
Hi, On Tue, Oct 23, 2012 at 10:49 AM, Decebal Suiu decebal.s...@asf.ro wrote: public class DesignModeListener implements IComponentInstantiationListener { private boolean designMode = true; @Override public void onInstantiation(Component component) {

Re: Wicket 6 trees

2012-10-23 Thread PDiefent
yes, i've overridden this method: @Override protected Component newContentComponent(String id, IModelSerializable model) { return new StyledLinkLabelSerializable(id, model) { private static final long serialVersionUID = 1L;

Re: Using PageReference for a 'back' link

2012-10-23 Thread Martin Grigorov
Hi, The question was how to use PageReference with BookmarkablePageLink. To do this the current page id can be passed as a parameter to the next page. add(new BookmarkablePageLink(id).getPageParameters().add(prevPageId, getPage().getPageId())); In the NextPage.java do: PageReference prev =

Re: Using PageReference for a 'back' link

2012-10-23 Thread Leonardo D'Alimonte
Hello Dirk, thanks for the quick reply. BookmarkablePageLink doesn't allow overriding of onClick behaviour, so I don't know if I can implement a custom bookmarkable link the way you described... :) I attach down here an example of what I described before: In MyPage.class I wnat to add the link

Re: Wicket 6 trees

2012-10-23 Thread Sven Meier
Hi, if I paste your code into BeginnersTreePage from wicket-examples: @Override protected Component newContentComponent(String id, IModelFoo node) { return new StyledLinkLabelFoo(id, node) { private static

Re: wicket 6.1.0 default logging configuration

2012-10-23 Thread Wujek Srujek
I am not using maven but gradle, but otherwise: * there is only one logback jar on the classpath * there are no configuration files anywhere - I had checked this before posting But there may be programmatic configuration somewhere, and as I am seeing a lot of wicket DEBUG output, I thought it were

Re: Wicket page test

2012-10-23 Thread Martin Grigorov
On Tue, Oct 23, 2012 at 10:59 AM, James Selvakumar ja...@mcruncher.com wrote: Sorry if this is asked previously. Is it advisable to use a shared wicket tester across multiple unit tests? I would not recommend that. WicketTester keeps a reference to YourApplication which may keep references to

Re: something similar with setOutputMarkupContainerClassName

2012-10-23 Thread Decebal Suiu
AbstractTransformerBehavior can be a solution but I must parse the output to retrieve the component tag body. For a particular situation (Jesse Long situation) to parse the output it's not a big deal but in my situation (something general for all my markup containers) I don't see a solution. Maybe

Re: something similar with setOutputMarkupContainerClassName

2012-10-23 Thread Martin Grigorov
You just need to put something after the first closing tag and before the last opening one. For the first case it is something like (not tested, and better use compiled Pattern): String replaced = original.replaceAll(^(.*?])(.*), $1+theComment + $2); Once again I agree that having the two

Re: How to set content of an ajax enabled link?

2012-10-23 Thread cosmindumy
Hi, How can I set the text inside a ajaxlink. I use a table and on populateItem on AbstractColumn I add a link. I don't want to use another component with onclick ajax behavior.I also cannot add a child to ajaxlink. I do not have control on it on html. Here is the code. public void

Re: How to set content of an ajax enabled link?

2012-10-23 Thread Martin Grigorov
See AbstractLink#setBody(IModelString) On Tue, Oct 23, 2012 at 12:16 PM, cosmindumy cosmind...@yahoo.com wrote: Hi, How can I set the text inside a ajaxlink. I use a table and on populateItem on AbstractColumn I add a link. I don't want to use another component with onclick ajax behavior.I

Re: Using PageReference for a 'back' link

2012-10-23 Thread Martijn Dashorst
Think for a moment about what you are asking: a bookmarkable page link with a session relative component. Bookmarkable page link's URLs are *bookmarkable*. They can be stored in favorites, and opened two seconds, two weeks or two years from now. What does the page ID point to in 2 weeks? Or 2

Re: Using PageReference for a 'back' link

2012-10-23 Thread Dirk Forchel
Sorry, I did not read your question carefully. Yes my suggestion does not work with BookmarkablePageLinks. But Martin has given you already the right solution. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-PageReference-for-a-back-link-tp4653212p4653257.html

Re: Using PageReference for a 'back' link

2012-10-23 Thread Martin Grigorov
On Tue, Oct 23, 2012 at 12:40 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Think for a moment about what you are asking: a bookmarkable page link with a session relative component. Bookmarkable page link's URLs are *bookmarkable*. They can be stored in favorites, and opened two

Re: How to set content of an ajax enabled link?

2012-10-23 Thread Martin Grigorov
Use your own Link/AjaxLink and add the logic. See the code in Wicket 1.5 for inspiration. On Tue, Oct 23, 2012 at 12:48 PM, cosmindumy cosmind...@yahoo.com wrote: We are using Wicket 1.4.18. There is no setBody method on abstract link. Is there any possiblity? Thanks. -- View this

Re: something similar with setOutputMarkupContainerClassName

2012-10-23 Thread Jesse Long
This was my solution, works for me: public abstract class AbstractBodyTransformerBehavior extends AbstractTransformerBehavior { protected abstract CharSequence transformBody(Component component, CharSequence body) throws Exception; private static int

Re: something similar with setOutputMarkupContainerClassName

2012-10-23 Thread Decebal Suiu
And this is my implementation: private class DesignModeBehavior extends AbstractTransformerBehavior { private static final long serialVersionUID = 1L; @Override public CharSequence transform(Component component, CharSequence output)

wicket-bootstrap navbar - SEARCH button

2012-10-23 Thread Ronny.Voss
Hi There Any with a quick answer on how to implement a search like in: http://wb.agilecoders.de/demo/components?1#navbar Ending up in some markup like: form class=navbar-search Thx in advance. Best regards/Med venlig hilsen Ronny Voss Nordea Bank Danmark A/S Online Securities Processing

Why is it forbidden to overwrite getString method in the Component class ?

2012-10-23 Thread seba.wag...@gmail.com
Hi, I am wondering why it is forbidden to overwrite public final String getString(final String key) in org.apache.wicket.Component ? What is the reason of forbidding anybody to use his custom resource loading mechanism ? Thanks! Sebastian -- Sebastian Wagner https://twitter.com/#!/dead_lock

Re: Why is it forbidden to overwrite getString method in the Component class ?

2012-10-23 Thread Martin Grigorov
Hi, You can always use #getMyString() for custom loading. Or you may just need to add an additional/custom IStringResourceLoader instead of overriding #getString(). On Tue, Oct 23, 2012 at 3:56 PM, seba.wag...@gmail.com seba.wag...@gmail.com wrote: Hi, I am wondering why it is forbidden to

How to mount RenderedDynamicImageResource in Wicket 6?

2012-10-23 Thread Arne
In Wicket 1.5.x I used to mount a RenderedDynamicImageResource like this in my Application: mountResource(REF, new PackageResourceReference(REF) { @Override public IResource getResource() {

Re: How to mount RenderedDynamicImageResource in Wicket 6?

2012-10-23 Thread Martin Grigorov
Hi, No need to use PackageResRef. Just use ResourceReference. On Tue, Oct 23, 2012 at 5:21 PM, Arne arne-wigand.bag...@idealo.de wrote: In Wicket 1.5.x I used to mount a RenderedDynamicImageResource like this in my Application: mountResource(REF, new

Re: How to mount RenderedDynamicImageResource in Wicket 6?

2012-10-23 Thread Arne
Martin Grigorov mgrigorov at apache.org writes: Hi, No need to use PackageResRef. Just use ResourceReference. Thank you, Martin, that worked. Arne - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Has DropDownChoice changed?

2012-10-23 Thread N. Metzger
I recently upgraded from 1.5.5 to 1.5.8, and I do have a DropDownChoice with settings dropDownChoice.setNullValid(false); dropDownChoice.setRequired(true); dropDownChoice.setOutputMarkupId(true); It used to be that on the first load of the page Choose One was displayed as the first option, which

Selected item into Palette

2012-10-23 Thread Marco Di Sabatino Di Diodoro
Hi all, With Apache Wicket 6.1. How can I get hold of a palette's selected item? Marco -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member

Re: Has DropDownChoice changed?

2012-10-23 Thread Sven Meier
Has DropDownChoice changed? There were some fixes for Wizard and input buttons in 1.5.x. Next displays fine in wicket-examples though. Please create a quickstart and attach it to a Jira issue. Sven On 10/23/2012 04:49 PM, N. Metzger wrote: I recently upgraded from 1.5.5 to 1.5.8, and I do

Re: Selected item into Palette

2012-10-23 Thread Sven Meier
selectedItems = (ListFoo)palette.getDefaultModelObject() or palette = new Palette(palette, model, choices, ...); selectedItems = model.getObject(); Sven On 10/23/2012 05:01 PM, Marco Di Sabatino Di Diodoro wrote: Hi all, With Apache Wicket 6.1. How can I get hold of a palette's selected

Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-23 Thread Steamus
Hello, Everybody In my project I use JavaScript editor ‘CKEditor’ with Ajax file manager ‘CKFinder’. It worked fine a lot of months. But, just I migrated to version Wicket 1.5.8, the ‘CKFinder’ doesn’t work properly any more. There are no visible crashes or bugs, but It can’t upload file to

Re: Selected item into Palette

2012-10-23 Thread Marco Di Sabatino Di Diodoro
Thanks, but i like have the current selected item in the palette. With Apache Wicket 1.5.8 I use AjaxFormComponentUpdatingBehavior to see which item was selected. Now, when I click on an item into palette the onUpdate method is never invoked. Marco On Oct 23, 2012, at 5:31 PM, Sven Meier

Re: Selected item into Palette

2012-10-23 Thread Sven Meier
I'm not sure how you're using AjaxFormComponentUpdatingBehavior together with the palette component. Please create a quickstart and attach it to a Jira issue. Sven On 10/23/2012 05:42 PM, Marco Di Sabatino Di Diodoro wrote: Thanks, but i like have the current selected item in the palette.

Re: Why is it forbidden to overwrite getString method in the Component class ?

2012-10-23 Thread seba.wag...@gmail.com
Thanks Martin, using IStringResourceLoader solved my issue. However I did not understand what you meant with #getMyString() I did not find any method #getMyString() that I could overwrite, also Google gave me no pointers where this function is hidden. Did you meant to overwrite the getString

HybridPageParamter encoder

2012-10-23 Thread vinitty
Hi I am using wicket 1.5.7 and i want my url to be formed as /mf/landing/param1/value1/param2/value2 and if i am hitting /mf/landing/?param1=value1param2=value2 then it should also work and url in the browser should remain same. Which is not happening when i am using

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-23 Thread Alec Swan
Technically it should be getListItemCSS, not getListCSS. Or maybe have all three getListCSS, getListItemCSS and getLabelCSS On Mon, Oct 22, 2012 at 12:46 PM, Sebastien seb...@gmail.com wrote: Done, https://issues.apache.org/jira/browse/WICKET-4831 Please let me know if your encounter any issue

Re: Apache Wicket 6.2.0 released!

2012-10-23 Thread vineet semwal
how come i don't see any tag related to 6.2.0 ? On Wed, Oct 24, 2012 at 1:24 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: The Apache Wicket PMC is proud to announce Apache Wicket 6.2.0! This release marks the second minor release of Wicket 6. Starting with Wicket 6 we use semantic

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-23 Thread Sebastien
Alec, you are right, I did thought about that. My reflection was that getListCSS applies to list *element* (li) and it is quite easy to understand that getLabelCSS (which applies to the label) stands for the message itself (which is a span element). But in another hand we can imagine that these

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-23 Thread Alec Swan
Sebastien, List, ListItem and Label make sense to me and match the terms used in FeedbackPanel class. However, I try not to get too hung up on naming for the sake of making progress :) On Tue, Oct 23, 2012 at 3:39 PM, Sebastien seb...@gmail.com wrote: Alec, you are right, I did thought about

RE: Custom CSS for Feedback message is broken in 1.5

2012-10-23 Thread Paul Bors
There is nothing stopping you from extending from the FeedBackPanel and override the HTML the Wicket component is using. This is how we did it. The HTML: html xmlns:wicket=http://wicket.apache.org; wicket:panel div wicket:id=feedbackul class=feedbackMessages div