Re: DynamicImageResource and urls

2011-07-13 Thread datazuul
thanks Igor, that is what I thought of, too. But was not sure if there is another solution I was not aware of. Great! -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. "Igor Vaynberg-2 [via Apache Wicket]" schrieb: use a shared resource and pass a key o

BookmarkableLink to download a CSV file

2011-07-13 Thread Jeffrey Schneller
I want to have a link that when hit will download a csv file. I would prefer to use a Page or a component that I can use the @SpringBean notation on so the csv file data can be retrieved via my service layer beans. I can generate the file using a WebPage with the following in my constructor fo

Re: best way to add tooltips in wicket

2011-07-13 Thread Rene Peters
Hi there, I am trying to use mootips with mixed success. I've added it to a label on my page but when I run it I get an alert box saying "Unable to get the value of the property 'msDropDown': object is null or undefined". It seams like a javacript error but I really have no idea about the how and

Re: introducing wicket:for attribute

2011-07-13 Thread Igor Vaynberg
right, we use and but the escaping of html sux -igor On Wed, Jul 13, 2011 at 12:36 PM, Zilvinas Vilutis wrote: > You can use in javadocs, and still you'd need to escape html > entities ( ">" to ">", & etc ) > > Žilvinas Vilutis > > Mobile:   (+1) 623 330 6048 > E-mail:   cika...@gmail.com > >

Re: org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'AboutUs' not found

2011-07-13 Thread jakrishna1983
Hi, Thanks for responding. I have found the answer for my question. When extending the WebPage I also simultaneously use to the extend the WebPage functionality. However when we extend deep into the WebPage, we have to used in the tag to let the page that extends WebPage know that this is a chi

Re: introducing wicket:for attribute

2011-07-13 Thread Zilvinas Vilutis
You can use in javadocs, and still you'd need to escape html entities ( ">" to ">", & etc ) Žilvinas Vilutis Mobile:   (+1) 623 330 6048 E-mail:   cika...@gmail.com On Wed, Jul 13, 2011 at 8:55 AM, Igor Vaynberg wrote: > sweet, too bad  @literal does not preserve linebreaks. what we really >

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Andrew Todd
On Wed, Jul 13, 2011 at 2:40 PM, Matt Brictson wrote: > FWIW I tried 1.5-SNAPSHOT and the HTML resource reloading seems to work fine. I'm seeing reloading working as expected on the basic HomePage. However, on a LoginPage that I'm working on, a I do not see changes reflected until I go to the URL

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Matt Brictson
FWIW I tried 1.5-SNAPSHOT and the HTML resource reloading seems to work fine. Here's what I did: 1. Generated a quickstart[1] using 1.5-SNAPSHOT using the "-U" maven option to ensure the very latest snapshot was downloaded. 2. Pasted in the resource polling code into WicketApplication#init[2]. 3

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Andrew Todd
With the latest snapshot, I still wasn't seeing changes propagate. Until -- On Wed, Jul 13, 2011 at 2:03 PM, Martin Grigorov wrote: > It is possible but you have to extend maven-jetty-plugin's configuration. > There was something about Scanner. Ask Google for more info Adding the scanIntervalSec

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Matt Brictson
Yes, it is possible configure the jetty plugin to completely redeploy the webapp when it detects a class file has changed, but this isn't quite the same as what the Eclipse IDE and JRebel do. JRebel's site says: "instantly see any code change made to an app *without* redeploying." In my experie

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Martin Grigorov
On Wed, Jul 13, 2011 at 9:00 PM, Matt Brictson wrote: > Just to clarify, the resource polling should allow you to see HTML changes > (but note Martin's comment about this potentially being broken in 1.5RC1). It > does not affect Java reloading. > > For Java changes I believe this is not possible

Re: Adding a javascript function to wicket

2011-07-13 Thread Martin Grigorov
Browse the sources at https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/jquery-parent On Wed, Jul 13, 2011 at 7:51 PM, hariharansrc wrote: > I want $(document).ready() a JQuery function to execute with wicket.I know i > want to use wiquery but anybody tell how to call JQuery function

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Matt Brictson
Just to clarify, the resource polling should allow you to see HTML changes (but note Martin's comment about this potentially being broken in 1.5RC1). It does not affect Java reloading. For Java changes I believe this is not possible without an IDE or perhaps a commercial product like JRebel[1].

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Andrew Todd
> 'Resources in the > htmlDir that was already set, like CSS, are also not updating. I apologize for sending that last message prematurely; things in the webapp/ directory are updating. HTML in the java/ subfolder is not, however. --

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Martin Grigorov
See https://issues.apache.org/jira/browse/WICKET-3878 and https://issues.apache.org/jira/browse/WICKET-3891. RC5.1 has some issues in that area. Try with 1.5-SNAPSHOT. On Wed, Jul 13, 2011 at 8:04 PM, Matt Brictson wrote: > The way I've always done it (and this works just fine outside of Eclipse

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Andrew Todd
On Wed, Jul 13, 2011 at 1:04 PM, Matt Brictson wrote: > The way I've always done it (and this works just fine outside of Eclipse as > well), is to enable resource polling in Wicket for the directory that > contains the HTML files. > > In the init() method of your WebApplication subclass (in the

Re: Resource auto-reload with the Quickstart project

2011-07-13 Thread Matt Brictson
The way I've always done it (and this works just fine outside of Eclipse as well), is to enable resource polling in Wicket for the directory that contains the HTML files. In the init() method of your WebApplication subclass (in the quickstart this is called WicketApplication.java) do something

Adding a javascript function to wicket

2011-07-13 Thread hariharansrc
I want $(document).ready() a JQuery function to execute with wicket.I know i want to use wiquery but anybody tell how to call JQuery function using wiquery -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-a-javascript-function-to-wicket-tp3665506p3665506.html Sen

Re: introducing wicket:for attribute

2011-07-13 Thread Igor Vaynberg
sweet, too bad @literal does not preserve linebreaks. what we really need is a CDATA like javadoc tag. -igor On Wed, Jul 13, 2011 at 4:12 AM, Erik van Oosten wrote: > Amazing stuff! > > You can write straight html in javadoc with the {@literal} syntax. E.g.: > > * > * Given markup like this: >

Resource auto-reload with the Quickstart project

2011-07-13 Thread Andrew Todd
Hello, I'm investigating writing a new project in Wicket and am playing around with a project created from the 1.5-RC5.1 quickstart maven archetype. Using 'mvn jetty:run' from the command-line, none of the changes I make to source files, either Java or HTML, are picked up unless I restart the ser

Re: PageParameters, IIndexedParameters, INamedParameters hierarchy on wicket 1.5

2011-07-13 Thread Martin Grigorov
Fixed with https://issues.apache.org/jira/browse/WICKET-3896 On Wed, Jul 13, 2011 at 5:48 PM, Martin Grigorov wrote: > Good catch! > Please create a ticket. > > On Wed, Jul 13, 2011 at 5:46 PM, Fabio Cechinel Veronez > wrote: >> Hello all, >> >> I was in doubt whether this message should be sent

Re: PageParameters, IIndexedParameters, INamedParameters hierarchy on wicket 1.5

2011-07-13 Thread Martin Grigorov
Good catch! Please create a ticket. On Wed, Jul 13, 2011 at 5:46 PM, Fabio Cechinel Veronez wrote: > Hello all, > > I was in doubt whether this message should be sent to user or dev list > so following http://wicket.apache.org/help/email.html page > recommendation I'm sending it to user list. > >

PageParameters, IIndexedParameters, INamedParameters hierarchy on wicket 1.5

2011-07-13 Thread Fabio Cechinel Veronez
Hello all, I was in doubt whether this message should be sent to user or dev list so following http://wicket.apache.org/help/email.html page recommendation I'm sending it to user list. Well, I was trying wicket-1.5-RC5.1 and I notice that PageParameters class implements two new interfaces IIndexe

Re: Generate PDF

2011-07-13 Thread Martin Grigorov
better check the documentation for HTML element, specifically 'target' attribute you don't need Wicket Link for this. You can do it with WebMarkupContainer + AttributeModifier("href") On Wed, Jul 13, 2011 at 5:11 PM, ramlael wrote: > I have requirement like, the 'pdf'/'html url' coming from we

Re: Generate PDF

2011-07-13 Thread ramlael
I have requirement like, the 'pdf'/'html url' coming from web services, based on condition I need to display pdf/html in new window, if I use normal Link, not able to open the html in different window, if its ajax link I can add java script for opening in new window. Regards, Rambabu -- View th

RE: Generate PDF

2011-07-13 Thread Stefan Lindner
Here is my code for generating PDF from AjaxLink in a seperate window public abstract class AjaxPdfGenerationIconPanel extends AbstractPdfGenerationPanel { private static final long serialVersionUID = 1L; private final SimpleAttributeModifier[] behaviors; public AjaxP

Re: Generate PDF

2011-07-13 Thread Martin Grigorov
Why do you use Ajax for this ? On Wed, Jul 13, 2011 at 4:38 PM, ramlael wrote: > Hi, its working fine with normal link, but not with ajax link, any idea about > this problem? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Generate-PDF-tp3651354p3665040.html >

Re: Generate PDF

2011-07-13 Thread ramlael
Hi, its working fine with normal link, but not with ajax link, any idea about this problem? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generate-PDF-tp3651354p3665040.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: ModalWindow - CSS problem in IE

2011-07-13 Thread drf
Found the problem: The

ModalWindow - CSS problem in IE

2011-07-13 Thread drf
We are using the standard Wicket ModalWindow. To this we add our own Panel. In order to override the CSS which is used by ModalWindow (defined in the file model.js) , we are taking the existing CSS (which we grab using Firebug), add it to the

Re: introducing wicket:for attribute

2011-07-13 Thread Erik van Oosten
Amazing stuff! You can write straight html in javadoc with the {@literal} syntax. E.g.: * * Given markup like this: * *{@literal *Name: * } * * If the {@code name} component has its label set to 'First Name' the resulting output will be: *{@literal *First Name: * } Regards, Erik. Op 13-0

Re: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-13 Thread Horacio Natyural
btw, it doesn't seem to occur on glassfish's http port. That's what's really weird.. I can replicate it by moving fast from one link to another. On Wed, Jul 13, 2011 at 6:52 PM, Horacio Natyural wrote: > hi, > > i think glassfish is the one causing it. > There seems to be a problem with glas

Re: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-13 Thread Horacio Natyural
hi, i think glassfish is the one causing it. There seems to be a problem with glassfish 3.0.1's https listener. it seems to be mixing up request. i don't know if anyone got this type of request before but look at this html page. The HTML pages contain the actual http request? Glassfish seems to b

Re: how to set focus in a listview coponent

2011-07-13 Thread Martin Grigorov
On Wed, Jul 13, 2011 at 1:16 PM, sri357 wrote: > Thank you very much,i could now sucessfully set focus,but dont we have any > direct componet.setFocus() type of methods to set focus. No. But it is quite easy to create a Behavior that does it. component.add(new FocusBehavior()); > > -- > View this

Re: how to set focus in a listview coponent

2011-07-13 Thread sri357
Thank you very much,i could now sucessfully set focus,but dont we have any direct componet.setFocus() type of methods to set focus. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-set-focus-in-a-listview-coponent-tp3662151p3664668.html Sent from the Users forum

Re: best way to add tooltips in wicket

2011-07-13 Thread Rodrigo Heffner
Don't worry about the synchronization of markup ids. Inside my "populateItem" method I did: Label moreInfo = new Label("more-info", "more-info"); moreInfo.setOutputMarkupId(true); moreInfo.setMarkupId("more-info" + listItem.getIndex()); and the same thing with the

Re: Is there a class for encoding page parameters for urls?

2011-07-13 Thread Martin Grigorov
Hi, On Wed, Jul 13, 2011 at 12:04 PM, Andrea Del Bene wrote: > Hi Mike, > > have you tried  org.apache.wicket.request.URLEncoder? This class is only in 1.5. In 1.4 (as the stacktrace shows) it is named WicketUrlEncoder. Mike: you'll need to encode the value before passing it to PageParameters.

Re: best way to add tooltips in wicket

2011-07-13 Thread Rodrigo Heffner
Thank you. This is what I get when I tried the same stuff on the archetype: the visibility of the tooltip flickers between hidden and visible when I'm hovering the label. Each time it flickers, the tooltip "top" position receives some negative hundreds. I've attached the situation and my firebug c

Re: Is there a class for encoding page parameters for urls?

2011-07-13 Thread Andrea Del Bene
Hi Mike, have you tried org.apache.wicket.request.URLEncoder? Hi, is wicket providing a class encoding a page parameter string for url? Usecase: I have a searchword. This is put plain into the page parameters. But if i use for example the searchword "myword%" i get ERROR - RequestCycle

Is there a class for encoding page parameters for urls?

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