Re: Equivalent to

2008-01-04 Thread Roland Kaercher
Hi Haritha,
just use a panel where you would have included something.

regards,
roland

On Jan 4, 2008 7:24 PM, Haritha Juturu <[EMAIL PROTECTED]> wrote:
> Hi All,
> How do we achieve   Thanks
> Haritha
>
>
>
>
>   
> 
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.  
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Displaying feedback

2007-11-12 Thread Roland Kaercher
Hello Joshua,

if you just want to display the feedback in your default feedback
panel all you have to do is add it to your page, there is no need to
tell the form which feedback panel to use then.

roland

On Nov 12, 2007 8:25 AM, Joshua Jackson <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> How do I display the feedback/message upon validation failure/error?
> When I read the doc here:
> http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-Validation
> , we insert the feedback instance into the Form constructor, but the
> latest Wicket release don't have a constructor that has FeedBackPanel
> as the argument.
>
> Does anyone know the way?
>
> Thanks in advance.
>
> --
> What you want today, may not exist tommorrow
>
> Blog: http://joshuajava.wordpress.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Article on DevX

2007-10-15 Thread Roland Kaercher
Yes, you're right, I didn't read it again. But it also got me to
switch to jetty because IIRC the the memory overhead for using tomcat
5 (I heard tomcat 6 is different there) when just starting up my tiny
apps was significantly higher - although it might be less dramatic
than I have in memory ;-)

Regards,
Roland

On 10/15/07, Sam Hough <[EMAIL PROTECTED]> wrote:
>
> The article seems to be more advocating running multiple JVMs if you are
> prepared to run a front end proxy to put everything back under the same
> ip/port? Presumably you could do the same with Tomcat etc..?
>
> The runtime usage of Jetty vs Tomcat would be interesting but as always
> turns out it is very application specific and 9 times out of 10 the
> application(s) you are running will consume more memory/CPU than the
> container... Sure we've all seen the apps that are doing something
> complicated to the database for every request...
>
>
> Roland Kaercher wrote:
> >
> > Nathan has written a nice article on jetty which made me to switch to
> > jetty for deployment too:
> > http://technically.us/code/x/to-jettison-geronimo/
> >
> > (and no, I did not regret it)
> >
> > regards,
> > Roland
> >
> > On 10/15/07, Sam Hough <[EMAIL PROTECTED]> wrote:
> >>
> >> Congratulaions on the article.
> >>
> >> I was interested by the "encourages the use of the Jetty container" bit.
> >> Is
> >> that more that the core Wicket developers prefer Jetty or is there a
> >> killer
> >> advantage over the more common Tomcat?
> >>
> >> Cheers
> >>
> >> Sam
> >> --
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Wicket-Article-on-DevX-tf4623720.html#a13213821
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Article on DevX

2007-10-15 Thread Roland Kaercher
Nathan has written a nice article on jetty which made me to switch to
jetty for deployment too:
http://technically.us/code/x/to-jettison-geronimo/

(and no, I did not regret it)

regards,
Roland

On 10/15/07, Sam Hough <[EMAIL PROTECTED]> wrote:
>
> Congratulaions on the article.
>
> I was interested by the "encourages the use of the Jetty container" bit. Is
> that more that the core Wicket developers prefer Jetty or is there a killer
> advantage over the more common Tomcat?
>
> Cheers
>
> Sam
> --

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File downloading with Wicket

2007-09-26 Thread Roland Kaercher
Hello Ian,

you will need to override newNodeComponent(final String id, final
IModel model) on the LinkTree to return your own panel with the
downloadlink for the nodes which should trigger a download and
super.newNodeComponent... for all others.

regards,
roland

On 9/26/07, Ian Godman <[EMAIL PROTECTED]> wrote:
> I have looked at the DownloadLink class and it does seem to do what i need.
>
> The issue I have now is that I am using a link tree which uses ajax to load 
> the directory contents as the tree is traversed. This works fine.
>
> What I think I need to do is change the behavior of the tree node for the 
> files such that it does not use ajax. I have looked at doing this but just 
> cant work it out.
>
> I have extended LinkIconPanel to determine if the node is a directory or a 
> file depending on the type of the user object in the model and not on if the 
> node has any children.
>
> I think this is were I need to make changes but I cant find out where the 
> ajax behavior is being added.
>
> The code I have derived from DownloadLink is
>
> IResourceStream resourceStream = new FileResourceStream(new 
> org.apache.wicket.util.file.File(file));
> getRequestCycle().setRequestTarget(new 
> ResourceStreamRequestTarget(resourceStream) {
> public String getFileName()
> {
> log.debug("returning: " + fileItem.getFileName() ) ;
> return fileItem.getFileName();
> }
> });
>
>
> I have this on the onNodeLinkClicked of my tree (extends LinkTree).
>
> To my understanding the download redirects the request to the file to be 
> downloaded, dont think this will work with an ajax request.
>
>
>
> - Original Message 
> From: Andrew Klochkov <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
> Sent: Wednesday, 26 September, 2007 11:55:07 AM
> Subject: Re: File downloading with Wicket
>
> Have a look at the DownloadLink class
>
> Ian Godman wrote:
> > Can any one give me a pointer or 2 on how to download a file from a wicket 
> > page?
> >
> > I have a LinkTree representing a directory tree which is lazy loaded via 
> > ajax. When the user clicks on a file node I need to download the file to 
> > them. However the file is stored with a different name (allows for 
> > versioning etc)   so it needs to arrive at the browser as a file with the 
> > name as displayed in the tree not as saved on the hard disk.
> >
> > This was previously implemented in a Tapestry system using a servelet but I 
> > just cant get my head around the issues of using a servlet in Wicket (does 
> > not seem the right way to me).
> >
> > Any help in clearing the fog most appreciated, example code even more so
> >
> >
> > Ian
> >
> >
> >
> >
> >
> >   ___
> > Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> > now.
> > http://uk.answers.yahoo.com/
> >
>
>
> --
> Andrew Klochkov
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>   ___
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File downloading with Wicket

2007-09-26 Thread Roland Kaercher
Hello Ian,

I think DownLoadLink (
http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/markup/html/link/DownloadLink.html
) is what you need.

Regards,
Roland

On 9/26/07, Ian Godman <[EMAIL PROTECTED]> wrote:
> Can any one give me a pointer or 2 on how to download a file from a wicket 
> page?
>
> I have a LinkTree representing a directory tree which is lazy loaded via 
> ajax. When the user clicks on a file node I need to download the file to 
> them. However the file is stored with a different name (allows for versioning 
> etc)   so it needs to arrive at the browser as a file with the name as 
> displayed in the tree not as saved on the hard disk.
>
> This was previously implemented in a Tapestry system using a servelet but I 
> just cant get my head around the issues of using a servlet in Wicket (does 
> not seem the right way to me).
>
> Any help in clearing the fog most appreciated, example code even more so
>
>
> Ian
>
>
>
>
>
>   ___
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: url mapping and wizards

2007-08-17 Thread Roland Kaercher
Hello Simon,

you could encrypt your URL as described here:
http://cwiki.apache.org/WICKET/obfuscating-urls.html

Roland

On 8/17/07, wicket user <[EMAIL PROTECTED]> wrote:
> Thanks Igor,
>
> I guess it makes sense that you wouldn't want to really bookmark a step
> halfway within a wizard. The main reason I wanted to do that though was that
> I was hoping to remove the word "wicket" from the url just from the point of
> view of wanting to remove evidence of the frameworks that I rely on.
>
> Simon
>
> On 16/08/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > this is not how wicket works. bookmarkable urls are entry points, but once
> > you change the state of the page you have to keep track of that instance
> > somehow - that is what :12: is in that url - a wicket page id. so once you
> > change the state of any page it is no longer bookmarkable and thus cannot
> > have a ncie url.
> >
> > -igor
> >
> > On 8/16/07, wicket user <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I've just started using Wicket and I've managed to mount pages so that
> > the
> > > urls are cleaned up but for the life of me I can't seem to get it to
> > work
> > > with Wizard pages. Is there a trick to this?
> > >
> > > At the moment it looks like this:
> > > http://localhost:8080/myapp/app/?wicket:interface=:12
> > >
> > > I've tried mounting the wizard page as well as mounting the package that
> > > the
> > > wizard is in but with no luck.
> > >
> > > Many thanks
> > > Simon
> > >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]