Re: Navigation bar links

2012-08-20 Thread Martin Grigorov
Or you can do link.setRenderBodyOnly(true); On Tue, Aug 21, 2012 at 9:30 AM, Sven Meier wrote: > You can use a disabled link, which will render as a . > > Sven > > > On 08/21/2012 08:10 AM, Mansour Al Akeel wrote: >> >> I am looking to produce the following mark up: >> >> Home >> About >> http:

Re: AjaxFallbackHeadersToolbar sort indicator

2012-08-20 Thread Martin Grigorov
Hi, One way is to extend the component and provide your own .html (one with the CSS classes set). Another way is to use JavaScript to add the CSS: jQuery(selectorForTh).addClass('yourClass') On Tue, Aug 21, 2012 at 9:44 AM, theAnthony wrote: > Hi, > > I'm wondering if there is a way to add a CS

AjaxFallbackHeadersToolbar sort indicator

2012-08-20 Thread theAnthony
Hi, I'm wondering if there is a way to add a CSS class to the(or one of the sub-tags) from an AjaxFallbackHeadersToolbar in order to add a small sort indicator. I assume there is always a way but what would be following you the best practice ? Thanks, Anthony -- View this message in

Re: Navigation bar links

2012-08-20 Thread Sven Meier
You can use a disabled link, which will render as a . Sven On 08/21/2012 08:10 AM, Mansour Al Akeel wrote: I am looking to produce the following mark up: Home About - To unsubscribe, e-mail: users-unsubscr...@wicket.apache

Fix for WICKET-3947 and WICKET-4700

2012-08-20 Thread Veikko Törmänen
Hi! I have a fix/patch for two wicket bugs: https://issues.apache.org/jira/browse/WICKET-3947 https://issues.apache.org/jira/browse/WICKET-3947 and https://issues.apache.org/jira/browse/WICKET-4700 https://issues.apache.org/jira/browse/WICKET-4700 This fix causes three of the junit tests to

Navigation bar links

2012-08-20 Thread Mansour Al Akeel
I am looking to produce the following mark up: Home About

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
Thanks, Martin. I ended up using WebApplication#newAjaxRequestTarget() approach because AjaxFeedbackPanelUpdater approach requires me to know all forms that can be displayed in the page ahead of time and modify their onSubmit code. On Mon, Aug 20, 2012 at 3:01 PM, Martin Grigorov wrote: > https:/

Can I use html in my messages?

2012-08-20 Thread Delange
I want to place some html in my messages. So that some text can be high lighted For example: VKAB=Your licence will be downgraded to {1,date,medium} at 1 feb 2012 The message is added by a list ChoiceRenderer renderer = new ChoiceRenderer("value","key"); List li

Re: Re: Re: Basic JUnit Test

2012-08-20 Thread vineet semwal
that test looks ok to me ,please attach a quickstart On Mon, Aug 20, 2012 at 12:23 PM, JCoder wrote: > Hi Vineet, > > thanks for the reply. The line > "tester.getServletRequest().setParameter("myParam", "testParam");" > But now Im breaking my head with the next issue. If you look at my first >

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Martin Grigorov
https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java is all you need. in your AjaxButton#onSubmit(ART target) { target.addListener(new AjaxFeedbackPanelUpdater()); } Or override WebApplication#newAjaxRequestTarget

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
IRequestCycleListener was added in 1.5.x. Is there anything else I can do in 1.4.x? On Mon, Aug 20, 2012 at 12:15 PM, Bertrand Guay-Paquet wrote: > Hi, > > I haven't used 1.4 much so I'm not sure it exists there. Maybe you could add > a IRequestCycleListener to your app via getRequestCycleListene

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Bertrand Guay-Paquet
Hi, I haven't used 1.4 much so I'm not sure it exists there. Maybe you could add a IRequestCycleListener to your app via getRequestCycleListeners() which adds the feedback panel in onRequestHandlerResolved? In that method, check if the handler type is an AjaxRequestTarget and add your feedbac

Re: Dataview: need message nothing found

2012-08-20 Thread Igor Vaynberg
data table has the NoRecordsToolbar -igor On Mon, Aug 20, 2012 at 3:01 AM, Delange wrote: > I tried this, but I can't figure out how to convert from datatable to an > AbstractRepeater. > > > > DataTable table = new DataTable("datatable", columns, kostenOVProvider, 10){ >

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
It seems that I cannot access ART from the component that is not updated by that ART because that component is not rendered during the lifecycle of that ART. Here is the problem description: 1. A page is rendered with a feedback panel and a form 2. The form is later submitted via AJAX and does no

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Tibor Blénessy
You can access current ART associated with request by calling static AjaxRequestTarget.get() Tibor On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan wrote: > Thoughts, anybody? > > On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan wrote: >> The main problem I am facing is that in Wicket 1.4.x I can't figure

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
Thoughts, anybody? On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan wrote: > The main problem I am facing is that in Wicket 1.4.x I can't figure > out how to access ART from the component that was not added to this > ART, e.g. during ajax form submission. > > I tried to add AjaxFormSubmitBehavior to ev

Re: Wicket fragment is not working inside wicket extend in wicket 1.5.3

2012-08-20 Thread bala ji
hi, Can u give me the exact solution whether the fragments inside wicket:extend are working in wicket 1.5.3 or not. On Mon, Aug 20, 2012 at 3:41 PM, Thomas Matthijs wrote: > On Mon, Aug 20, 2012 at 11:57 AM, bala ji wrote: > > I've added a scenario where i need to use wicket:fragments. > > > >

Re: Wicket fragment is not working inside wicket extend in wicket 1.5.3

2012-08-20 Thread Thomas Matthijs
On Mon, Aug 20, 2012 at 11:57 AM, bala ji wrote: > I've added a scenario where i need to use wicket:fragments. > > ... > Example input (will be removed) > ... > panel 1 > panel 2 > > > The above situation is working fine in case of wicket 1.4, but now in > wicket 1.5.3

Re: Dataview: need message nothing found

2012-08-20 Thread Delange
I tried this, but I can't figure out how to convert from datatable to an AbstractRepeater. DataTable table = new DataTable("datatable", columns, kostenOVProvider, 10){ protected Item newRowItem(String id, int index, IModel model) { Item item = super.newR

Re: Modal Window set focus

2012-08-20 Thread Martin Grigorov
Only form elements can be focused in HTML by default. To make a normal focusable you need to add 'tabindex' attribute to it. Experiment with Firebug/DevTools first. Find the JS that can focus your modal window and then just add it in your Java code. On Mon, Aug 20, 2012 at 12:54 PM, Marco Di Sab

Re: Modal Window set focus

2012-08-20 Thread Marco Di Sabatino Di Diodoro
I add target.appendJavaScript("document.getElementById('" + editModalWin.getMarkupId() + "').focus();"); But not work... Here you can found my code: final AjaxLink createLink = new IndicatingAjaxLink("createLink") { private static final long serialVersionUID = -79787233525177

Setfocus depending on error routine

2012-08-20 Thread Delange
Hi, possibly it's already discussed by I don't see it. How to set focus on a variable field during a check? For example a form with address fields. Every field is checked and when, for example, the zipcode is wrong I want to set focus on the zipcode. What to do? -- View this message in context

Re: Modal Window set focus

2012-08-20 Thread Martin Grigorov
Hi, You open it with modal.show(target), right ? Since you have the 'target' you can use it to execute an arbitrary JavaScript after opening the modal: target.append(someJsToFocus). The JS should look like: "document.getElementById(" +modal.getMarkupId()+ ").focus();" On Mon, Aug 20, 2012 at 11:

Modal Window set focus

2012-08-20 Thread Marco Di Sabatino Di Diodoro
Hi all, I want to set the focus to a ModalWindow when it is opened. This allows me to close the ModalWIndow with the esc key without having to click on it before. suggestions? Thanks M -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescar