Re: [Wicket-user] Repositioning the WICKET AJAX DEBUG link

2006-10-10 Thread Matej Knopp
We can consider using id for the link, it could be in 1.2.3.

-Matej

Matt Brictson wrote:
> Hello,
> 
> I like the functionality provided by the WICKET AJAX DEBUG link that  
> appears when I'm in development mode, but the link is in an  
> unfortunate position in my UI (it obscures some important elements).  
> I'd like to reposition the debug link, but I can't find an easy way  
> to do this.
> 
> The link is generated in wicket-ajax-debug.js like this:
> 
>
> 
> Unfortunately that doesn't give me any options to override the  
> position with CSS (there is no class or id attribute). I could write  
> my own version of wicket-ajax-debug.js, but how would wicket know to  
> load my version at runtime instead of the one bundled in wicket.jar?  
> Or do I have to modify the original and compile a custom wicket.jar?  
> That seems like overkill for such a minor change.
> 
> Any ideas? I am using wicket 1.2.2.
> 
> Thanks.
> 
> --
> Matt
> 
> 
> 
> 
> -
> 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
> 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] HTTPSession Creation

2006-10-10 Thread Johan Compagner
in 1.2 yes the session is createdBut how does your login page look like? A form with a Form component in wicket?That would mean in 1.2 a statefull page anyway.in 2.0 we have a stateless form that you can use.
johanOn 10/11/06, craigdd <[EMAIL PROTECTED]> wrote:
Where can you down wicket 2.0?  I'm assuming this is a pre production release/ build?I agree that this is not a security issue, however a person just has toright a simple script, say with wget to create many many session within your
application possibly causing performance and memory issues.So when you talk about stateful / stateless pages am I hearing that everypage in wicket 1.2 gets put into the session regardless if it needs to keep
state?Eelco Hillenius wrote:>>> Does this mean that a HTTPSession is created upon a page request?>> Basically>> I'm a little worried that if I have an application that has a security in
>> front of it (a login page) that a HTTPSession doesn't get created when>> the>> user hits the login page but rather only when they are sucessfully>> validated>> via the login page.
>> It would never be a security concern though, only possibly an> efficiency/ scalability concern. In wicket 1.2, a session is always> created. In Wicket 2.0, a session is created when the first statefull
> page (yep, that's the opposite of a stateless page, and the default in> Wicket) is rendered.>>> It this assumption correct? and if so is there a way to override this>> functionality, say only create a session if the page being requested is
>> not>> the home page?>> Use stateless pages with Wicket 2.0.>> 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>>--View this message in context: 
http://www.nabble.com/HTTPSession-Creation-tf2420077.html#a6747914Sent from the Wicket - User mailing list archive at 
Nabble.com.-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Wicket-user mailing listWicket-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] HTTPSession Creation

2006-10-10 Thread craigdd

Where can you down wicket 2.0?  I'm assuming this is a pre production release
/ build?

I agree that this is not a security issue, however a person just has to
right a simple script, say with wget to create many many session within your
application possibly causing performance and memory issues.

So when you talk about stateful / stateless pages am I hearing that every
page in wicket 1.2 gets put into the session regardless if it needs to keep
state?



Eelco Hillenius wrote:
> 
>> Does this mean that a HTTPSession is created upon a page request? 
>> Basically
>> I'm a little worried that if I have an application that has a security in
>> front of it (a login page) that a HTTPSession doesn't get created when
>> the
>> user hits the login page but rather only when they are sucessfully
>> validated
>> via the login page.
> 
> It would never be a security concern though, only possibly an
> efficiency/ scalability concern. In wicket 1.2, a session is always
> created. In Wicket 2.0, a session is created when the first statefull
> page (yep, that's the opposite of a stateless page, and the default in
> Wicket) is rendered.
> 
>> It this assumption correct? and if so is there a way to override this
>> functionality, say only create a session if the page being requested is
>> not
>> the home page?
> 
> Use stateless pages with Wicket 2.0.
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HTTPSession-Creation-tf2420077.html#a6747914
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


Re: [Wicket-user] Custom date component...

2006-10-10 Thread Alexei Sokolov
I noticed that this component uses current date as default value. Is it possible to modify it so if one of the fields is not selected the component fails validation?Thank you,Alex
On 9/8/06, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
On Sep 7, 2006, at 3:09 PM, Erik Brakkee wrote: Andrew Lombardi wrote: 
Erik,  I had similar issues with the DatePicker for various reasons.  After some help from Nick and Igor I built a 3 dropdown component for choosing date similar to what you describe below.  Check out my blog entry for details on it:
  http://www.mysticcoders.com/blog/2006/08/21/datechooser-component-for-wicket/
   Excellent! This is exactly what I need. By the way, I think a component like this should also be part of wicket extensions. There is no need for a one-size-fits all 
date component and in practice you encounter many different types of date choosers. The advantage of the dropdown version over the _javascript_ version in my opinion is that you can use the keyboard and that it doesn't give you a popup and force a user to use the mouse.  An experienced user should be able to use the interface with the keyboard only I think. 
yeah, having it as a secondary option in wicket-extensions might be nice.  I believe I can create a wicket-contrib project with this on it.  Just so its available somewhere
   basically you want to create a DateModel which holds a 
Date object passed in to your component and override getObject to return the appropriate value based on the field you want, MONTH, DAY_OF_MONTH, YEAR. [] 
 I have just read your blog.  I will try it out tomorrow.   validation would probably be easiest just to use some client-side _javascript_.
  Or use the validation support of the FormComponent. I had also looked around a bit and discovered that the problem was that Panel doesn't extend FormComponent. Because of this I was a bit reluctant about writing a component myself because I don't know the APIs for rendering HTML. But I really like your solution. You solved it by implementing the custom component, adding three nested components to it, and then you provide a custom Panel for generating the HTML markup. This is surely an interesting pattern that I would want to use as well. 
good deal :)  Cheers   Erik  
  Cheers,  andrew  On Sep 7, 2006, at 2:29 AM, Erik Brakkee wrote:Hi,
I have tried to use the DatePicker component but somehow it doesn't
really work on Firefox 1.5 on linux. For instance, it only shows theeven years, and has strange behavior resetting fields.
Therefore, I want to write my own date component. Very simple, threedrop down choices for year, month, and day of month respectively. I am
now using a Panel component for this. The problem is here that the stateof my DateChooser is represented by three String fields for year, month,
and day of month, whereas my model is represented as a java.util.Date inthe IModel (PropertyModel).
Now, when I make sure that my DropDownChoice implementation haswantOnSelectionChangedNotification() returning true, I get notified ofevery change and in this callback I can set the model to the appropriate
date by using the three String field values as input. Problem is that ifthe user doesn't change the date, then no date will be set. Furthermore,
a server round-trip is not necessary so I would like to get rid of this.I would like to avoid server round trips, make sure the model is set on
submit of the form, and also I would like to use validation of the date(the day of month could be out of range).  How would I solve this problem?
Cheers  Erik
-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
 
  
To our success!

Andrew Lombardi
:  
Mystic Coders, LLC
 - Coding Magic  
contact | 
[EMAIL PROTECTED]
 - 714-697-8046 | aim - nlpjunke  
This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
   -Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&ki

Re: [Wicket-user] HTTPSession Creation

2006-10-10 Thread Eelco Hillenius
> Does this mean that a HTTPSession is created upon a page request?  Basically
> I'm a little worried that if I have an application that has a security in
> front of it (a login page) that a HTTPSession doesn't get created when the
> user hits the login page but rather only when they are sucessfully validated
> via the login page.

It would never be a security concern though, only possibly an
efficiency/ scalability concern. In wicket 1.2, a session is always
created. In Wicket 2.0, a session is created when the first statefull
page (yep, that's the opposite of a stateless page, and the default in
Wicket) is rendered.

> It this assumption correct? and if so is there a way to override this
> functionality, say only create a session if the page being requested is not
> the home page?

Use stateless pages with Wicket 2.0.

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


[Wicket-user] HTTPSession Creation

2006-10-10 Thread craigdd

In the wiki's documentation;

http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle 

I found the following description of Servicing a Request;

1. Wicket asks the Application class to create a Session for the servlet
request. If no session exists for the incoming request, a Session object is
created using the application's session factory. 

Does this mean that a HTTPSession is created upon a page request?  Basically
I'm a little worried that if I have an application that has a security in
front of it (a login page) that a HTTPSession doesn't get created when the
user hits the login page but rather only when they are sucessfully validated
via the login page.

It this assumption correct? and if so is there a way to override this
functionality, say only create a session if the page being requested is not
the home page?
-- 
View this message in context: 
http://www.nabble.com/HTTPSession-Creation-tf2420077.html#a6747152
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


[Wicket-user] Repositioning the WICKET AJAX DEBUG link

2006-10-10 Thread Matt Brictson
Hello,

I like the functionality provided by the WICKET AJAX DEBUG link that  
appears when I'm in development mode, but the link is in an  
unfortunate position in my UI (it obscures some important elements).  
I'd like to reposition the debug link, but I can't find an easy way  
to do this.

The link is generated in wicket-ajax-debug.js like this:

   

Unfortunately that doesn't give me any options to override the  
position with CSS (there is no class or id attribute). I could write  
my own version of wicket-ajax-debug.js, but how would wicket know to  
load my version at runtime instead of the one bundled in wicket.jar?  
Or do I have to modify the original and compile a custom wicket.jar?  
That seems like overkill for such a minor change.

Any ideas? I am using wicket 1.2.2.

Thanks.

--
Matt




-
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] Wicket-CMS Templates

2006-10-10 Thread Eelco Hillenius
Yep. Look at the wicket-velocity-contrib and wicket-contrib-examples
in wicket-stuff.

Eelco


On 10/10/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
> We've never used that. Are there any examples available when using it with
> Wicket?
>
>
>
> On 10/10/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> > What about using Velocity templates for markup?
> >
> >
> >
> > On 10/10/06, Gwyn Evans <[EMAIL PROTECTED] > wrote:
> > > My inclination would be to do as much as you can via CSS, but if you
> > > need to add scripting, I'd (a) go with Jython & (b) make a major
> > > effort on examples & documentation!
> > >
> > > /Gwyn
> > >
> > > On 10/10/06, Ted Roeloffzen <[EMAIL PROTECTED] > wrote:
> > > > hello all,
> > > >
> > > > Some of you may know that we're working on a Wicket-CMS as our grad
> project.
> > > > We've been thinking about the use of templates. About how we are going
> to
> > > > let people create their own templates. As we saw in Drupal and Joomla,
> there
> > > > templates are full of PHP-code. If we're going to do the same with
> Java
> > > > code, that means that we force the users the learn Java and perhaps
> even
> > > > Wicket. This is not very user friendly. We could use only CSS-files
> and
> > > > generate the HTML-page and put all the data in DIV's and SPANs. Do any
> of
> > > > you have ideas on how to make the templates as user-friendly as
> possible?
> > > >
> > > > greets,
> > > >
> > > > Ted
> > >
> > >
> > > --
> > > Download Wicket 1.2.2 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
> > >
> >
> >
> >
> -
> > 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] BreadCrumb & Page

2006-10-10 Thread Eelco Hillenius
That implementation only works with panels. I setup the model so that
it could theoretically work with pages as well, but didn't try to
actually implement it. So it might be easier to roll this yourself. Or
if you plan to implement on top of the model for extensions, I'd be
happy to consider placing it in there (together with fixes if they are
needed to make it work).

Eelco


On 10/10/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> short question: does the BreadCrumb (extension) work with pages or only with
> panels? I ask because the exampe
> http://www.wicket-library.com/wicket-examples/breadcrumb
> only shows panels, similar to the tabbed Panel.
>
> I it works with Pages, can it use mounted links/ bookmarkable links, too ?
>
> Best Regards,
>
> Korbinian
>
>
> -
> 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] NiceURL and PagingNavigator

2006-10-10 Thread Eelco Hillenius
Furthermore, any page you want to have indexable and bookmarkable
should be bookmarkable pages anyway.

Using bookmarkable pages like that makes that you have a much less
nice programming paradigm. It's almost like model 2 then. But without
the XML files :)

Eelco



On 10/10/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
> Paging navigator is useful in situations, when you don't care that much
> about url (e.g. intranet applications with complex user interface).
>
> For internet applications, where you do care (at least for certain
> parts) about URLs, you have to make an effort to achieve the urls you need.
>
> The problem with bookmarkable urls is that every time you click on one,
> new page instance is created. So if you have e.g. a member variable in
> old page, the variable value won't be available in new page instance.
>
> Therefore paging navigator doesn't use bookmarkable urls.
>
> It should not be difficult to modify PagingNavigator to use bookmarkable
> urls.
>
> -Matej
>
> Korbinian Bachl wrote:
> > Hi Matej,
> >
> >
> >> Well, for browsing products i wouldn't use PagingNavigator in
> >> a first place.
> >
> > ok, what else would you use? - i mean a PagingNavigator and a DataView seems
> > to me as its made for beeing a product-category browser (as you have e.g. 30
> > toycars and want only 16 max items per page)
> >
> >> Of course it is prossible to have such product browser in
> >> wicket, even with nice urls.
> >>
> >> class ProductsPage extends WebPage
> >> {
> >>  public ProductsPage(PageParameters parameters)
> >>  {
> >>  // this is just an example, you'd probably
> >>  // need something bit more sophisticated :)
> >>  int currentPage = parameters.getInt("page");
> >>  add(new BookmarkablePageLink("prev", new
> >> PageParameters("page=" + (currentPage-1)));
> >>  add(new BookmarkablePageLink("next", new
> >> PageParameters("page=" + (currentPage+1)));
> >>
> >>  }
> >>
> >> }
> >>
> >> so if you mount products page to "/products", you can get
> >> urls like /products/page/1, products/page/2 ...
> >
> > ok, so if I understand this right, it would be enough to modify the
> > PagingNavigator to use BookmarkablePageLink with the parameters ? If this is
> > so, why doesnt the PagingNavigator provide this functionality by itself? or
> > might this run into other problems?
> >
> > Any help is really appreciated,
> >
> > Regards
> >
> > Korbinian
> >
> >> -Matej
> >>
> >> Korbinian Bachl wrote:
> >>> Hi Matej,
> >>>
> >>> this is a big problem. I can live with not beeing able to
> >> have Tabbed
> >>> Panels but imagine a onlinestore where you can browse the
> >> products but
> >>> the url is not bookmarkable. That just wouldnt work for the
> >> users as
> >>> well as all search engines !
> >>>
> >>> Ajax is also not a solution as google & co dont care about that!
> >>>
> >>> Dont you know any (even theorethical) possibility to have URLs like
> >>> /products/page/2 for pagination ? i mean that component must use a
> >>> parameter to call it and this one just has to be passed... is this
> >>> behaviour going to change in Wicket 2 ??? or are nice URLs
> >> there a half-done-feature, too ?
> >>> Regards
> >>>
> >>>
> >>>
> >>>
>  -Ursprüngliche Nachricht-
>  Von: [EMAIL PROTECTED]
>  [mailto:[EMAIL PROTECTED] Im Auftrag von
>  Matej Knopp
>  Gesendet: Dienstag, 10. Oktober 2006 13:49
>  An: wicket-user@lists.sourceforge.net
>  Betreff: Re: [Wicket-user] NiceURL and PagingNavigator
> 
>  There is a simple answer for your question: You can't.
> 
>  It's due to how wicket works. Since Wicket manages your
> >> application
>  state and takes care of the urls for you, you can't alter them
>  significantly.
> 
>  If you need tabbed panel like functionality while having
> >> nice urls,
>  you have to have different pages and simply use bookmarkable links
>  for every page.
> 
>  Paging navigator's url could be little nicer if we didn't disable
>  redirect, e.g. ?wicket:interface=:2:: .
> 
>  Alternatively you can use ajax paging navigator (and ajax tabbed
>  panel), which would case the url to stay unchanged.
> 
>  -Matej
> 
> 
>  Korbinian Bachl wrote:
> > I extend the question further: How can i have a nice URL
> >> and use a
> > TabbedPanel component???
> >
> > Regards
> >
> >
>  --
>  --
> > *Von:* [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] *Im
>  Auftrag von
> > *Korbinian Bachl
> > *Gesendet:* Dienstag, 10. Oktober 2006 12:01
> > *An:* wicket-user@lists.sourceforge.net
> > *Betreff:* [Wicket-user] NiceURL and PagingNavigator
> >
> > Hi,
> >
> > i have a page, call it products, and i implement a
>  Paging Navigator
> > there, a

Re: [Wicket-user] Cannot use wicket-quickstart-1.2.2 with IntelliJ6.0

2006-10-10 Thread Gwyn Evans
Thinking about it, Martijn's aim is for these to be useable without
needing Maven, so the correct thing is probably to regenerate them
during the packaging process, when the pom has the correct
dependancies set...

/Gwyn

On 10/10/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> mind yanking them out gwyn?
>
> -igor
>
>
>
> On 10/10/06, Gwyn Evans <[EMAIL PROTECTED]> wrote:
> >
> > At a guess, when they were first added, the Maven IDEA plugin wasn't
> > as good as it now is.
> >
> > /Gwyn
> >
> > On 10/10/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > i dont know why those files are there...i didnt check them in :)
> > >
> > >
> > > -Igor
> > >
> > >
> > > On 10/10/06, Todd Patrick <[EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > > Igor:
> > > >
> > > > Thank you, that did work.
> > > >
> > > > So... what's the point of having a quickstart project specific for an
> IDE
> > > when really all is needed is ant or maven?
> > > >
> > > > Just a thought.
> > > >
> > > > --Todd
> > > >
> > > > 
> > >  From: [EMAIL PROTECTED]
> > > [mailto: [EMAIL PROTECTED] On
> > > Behalf Of Igor Vaynberg
> > > > Sent: Tuesday, October 10, 2006 12:23 PM
> > > > To: wicket-user@lists.sourceforge.net
> > > > Subject: Re: [Wicket-user] Cannot use wicket-quickstart-1.2.2 with
> > > IntelliJ6.0
> > > >
> > > >
> > > >
> > > > i dont really know what those files are or if they are maintained
> > > >
> > > > can you try
> > > >
> > > > mvn idea:idea <== shouldnt that create the idea project based on maven
> > > pom?
> > > >
> > > > -Igor
> > > >
> > > >
> > > >
> > > > On 10/10/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> > > > > When I remove the .xml extension from the files:
> > > > >
> > > > > \src\main\resources\wicket- quickstart.ipr
> > > > > \src\main\resources\wicket-quickstart.iws
> > > > >
> > > > > I open the wicket-quickstart.ipr in IntelliJ 6.0 and I have a blank
> > > > > Project structure.
> > > > >
> > > > > Would anyone be able to help me correct this?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > --Todd
> > > > >
> > > > >
> > > > > -
> > > > > NOTICE: This email message is for the sole use of the intended
> > > > > recipient(s) and may contain confidential and privileged
> > > > > information. Any unauthorized use, disclosure or distribution is
> > > > > prohibited. If you are not the intended recipient, please contact
> > > > > the sender by reply email and destroy all copies of the original
> > > > > message.
> > > > >
> > > > >
> > > > >
> > >
> -
> > > > > 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
> > >
> > >
> > >
> >
> >
> > --
> > Download Wicket 1.2.2 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] BreadCrumb & Page

2006-10-10 Thread Korbinian Bachl



Hi,
 
short question: does 
the BreadCrumb (extension) work with pages or only with panels? I ask because 
the exampe http://www.wicket-library.com/wicket-examples/breadcrumb only 
shows panels, similar to the tabbed Panel.
 
I it works with 
Pages, can it use mounted links/ bookmarkable links, too ?
 
Best 
Regards,
 
Korbinian
 
 
-
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] Refresh life cycle

2006-10-10 Thread Matej Knopp
Marc-Andre Houle wrote:
> It is a matter of interogation I have and not directly related to a problem.
> While trying to find a good solution about the problem described there 
>  
> , I begin to try to figure what is happening when the user press 
> refresh.  I have checked the page about the wicket life-cycle 
>  in the wiki, 
> but it does not help me.
> 
What does it mean refresh of the page? Does it means to get a page with 
non-bookmarkable url? (e.g. wicket:interface=:3::)

If this is a case, what wicket does is that it attaches all components 
(which in turn attach their models) and renders the page.

Ajax call only attaches the component it interacts with and the 
components that are going to render (not the whole page).

> What happen when a refresh of the page happen?  Is wicket suppose to 
> call onAttach again on every component?  When using ajax thing, like 
> tree or tab panel, how the page know where to reload what.  I mean, the 
> tab was changed using ajax call, the data is not stored somewhere. If 
> you reload completly the page (like clicking on the link of the page 
> where you are), it will not remember.  What is the big difference.  From 
> all my last and not big experience with web development, refresh = 
> another http "GET" is dumbly made and that's it.  But it seem's I am wrong.
refresh = another http "GET", nothing wrong in it.
Except for when you press back button, the page is retrieved from 
browser cache, but that doesn't seem to be your case.
> 
> So, since I don't know how wicket react to this, it can be nice for me 
> to know!
> 
> Thanks in advance.
> 
> 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


-
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] Refresh life cycle

2006-10-10 Thread Matej Knopp
What does it mean "just refresh" and "completely update the page"?
Your problem can that you do the loading of items in constructor. The 
constructor is called only once in the page lifecycle. However, the page 
life spans over multiple request. So even if you reload the page, you 
can still be dealing with an existing instance.

As a rule of thumb, bookmarkable url creates new page instance, while 
url like ?wicket:interface=:3:: means existing page instance.

It's better to encapsulate loading logic into models, e.g. 
LoadableDetachableModel. That ensures that each request reloads the data.

-Matej

Marc-Andre Houle wrote:
> It is a matter of interogation I have and not directly related to a problem.
> While trying to find a good solution about the problem described there 
>  
> , I begin to try to figure what is happening when the user press 
> refresh.  I have checked the page about the wicket life-cycle 
>  in the wiki, 
> but it does not help me.
> 
> What happen when a refresh of the page happen?  Is wicket suppose to 
> call onAttach again on every component?  When using ajax thing, like 
> tree or tab panel, how the page know where to reload what.  I mean, the 
> tab was changed using ajax call, the data is not stored somewhere. If 
> you reload completly the page (like clicking on the link of the page 
> where you are), it will not remember.  What is the big difference.  From 
> all my last and not big experience with web development, refresh = 
> another http "GET" is dumbly made and that's it.  But it seem's I am wrong.
> 
> So, since I don't know how wicket react to this, it can be nice for me 
> to know!
> 
> Thanks in advance.
> 
> 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


-
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] Refresh life cycle

2006-10-10 Thread Marc-Andre Houle
It is a matter of interogation I have and not directly related to a problem.While trying to find a good solution about the problem described 
there , I begin to try to figure what is happening when the user press refresh.  I have checked the page about the wicket life-cycle in the wiki, but it does not help me.
What happen when a refresh of the page happen?  Is wicket suppose to call onAttach again on every component?  When using ajax thing, like tree or tab panel, how the page know where to reload what.  I mean, the tab was changed using ajax call, the data is not stored somewhere. If you reload completly the page (like clicking on the link of the page where you are), it will not remember.  What is the big difference.  From all my last and not big experience with web development, refresh = another http "GET" is dumbly made and that's it.  But it seem's I am wrong.
So, since I don't know how wicket react to this, it can be nice for me to know!Thanks in advance.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] Cannot use wicket-quickstart-1.2.2 with IntelliJ6.0

2006-10-10 Thread Igor Vaynberg
mind yanking them out gwyn?-igorOn 10/10/06, Gwyn Evans <[EMAIL PROTECTED]> wrote:
At a guess, when they were first added, the Maven IDEA plugin wasn'tas good as it now is.
/GwynOn 10/10/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> i dont know why those files are there...i didnt check them in :)>>
> -Igor>>> On 10/10/06, Todd Patrick <[EMAIL PROTECTED] > wrote:> >> >> > Igor:> >> > Thank you, that did work.
> >> > So... what's the point of having a quickstart project specific for an IDE> when really all is needed is ant or maven?> >> > Just a thought.> >> > --Todd
> >> > >  From: [EMAIL PROTECTED]> [mailto:
[EMAIL PROTECTED]] On> Behalf Of Igor Vaynberg> > Sent: Tuesday, October 10, 2006 12:23 PM> > To: wicket-user@lists.sourceforge.net
> > Subject: Re: [Wicket-user] Cannot use wicket-quickstart-1.2.2 with> IntelliJ6.0> >> >> >> > i dont really know what those files are or if they are maintained
> >> > can you try> >> > mvn idea:idea <== shouldnt that create the idea project based on maven> pom?> >> > -Igor> >> >> >
> > On 10/10/06, Todd Patrick <[EMAIL PROTECTED]> wrote:> > > When I remove the .xml extension from the files:> > >> > > \src\main\resources\wicket-
quickstart.ipr> > > \src\main\resources\wicket-quickstart.iws> > >> > > I open the wicket-quickstart.ipr in IntelliJ 6.0 and I have a blank> > > Project structure.
> > >> > > Would anyone be able to help me correct this?> > >> > > Thanks,> > >> > > --Todd> > >> > >> > > -
> > > NOTICE: This email message is for the sole use of the intended> > > recipient(s) and may contain confidential and privileged> > > information. Any unauthorized use, disclosure or distribution is
> > > prohibited. If you are not the intended recipient, please contact> > > the sender by reply email and destroy all copies of the original> > > message.> > >> > >
> > >> -> > > 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
>>>--Download Wicket 1.2.2 now! - http://wicketframework.org-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions 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 listWicket-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] Cannot use wicket-quickstart-1.2.2 with IntelliJ6.0

2006-10-10 Thread Gwyn Evans
At a guess, when they were first added, the Maven IDEA plugin wasn't
as good as it now is.

/Gwyn

On 10/10/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> i dont know why those files are there...i didnt check them in :)
>
>
> -Igor
>
>
> On 10/10/06, Todd Patrick <[EMAIL PROTECTED] > wrote:
> >
> >
> > Igor:
> >
> > Thank you, that did work.
> >
> > So... what's the point of having a quickstart project specific for an IDE
> when really all is needed is ant or maven?
> >
> > Just a thought.
> >
> > --Todd
> >
> > 
>  From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Igor Vaynberg
> > Sent: Tuesday, October 10, 2006 12:23 PM
> > To: wicket-user@lists.sourceforge.net
> > Subject: Re: [Wicket-user] Cannot use wicket-quickstart-1.2.2 with
> IntelliJ6.0
> >
> >
> >
> > i dont really know what those files are or if they are maintained
> >
> > can you try
> >
> > mvn idea:idea <== shouldnt that create the idea project based on maven
> pom?
> >
> > -Igor
> >
> >
> >
> > On 10/10/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> > > When I remove the .xml extension from the files:
> > >
> > > \src\main\resources\wicket-quickstart.ipr
> > > \src\main\resources\wicket-quickstart.iws
> > >
> > > I open the wicket-quickstart.ipr in IntelliJ 6.0 and I have a blank
> > > Project structure.
> > >
> > > Would anyone be able to help me correct this?
> > >
> > > Thanks,
> > >
> > > --Todd
> > >
> > >
> > > -
> > > NOTICE: This email message is for the sole use of the intended
> > > recipient(s) and may contain confidential and privileged
> > > information. Any unauthorized use, disclosure or distribution is
> > > prohibited. If you are not the intended recipient, please contact
> > > the sender by reply email and destroy all copies of the original
> > > message.
> > >
> > >
> > >
> -
> > > 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
>
>
>


-- 
Download Wicket 1.2.2 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] Cannot use wicket-quickstart-1.2.2 with IntelliJ6.0

2006-10-10 Thread Igor Vaynberg
i dont know why those files are there...i didnt check them in :)-IgorOn 10/10/06, Todd Patrick <[EMAIL PROTECTED]
> wrote:




Igor:
 
Thank you, that did work.
 
So... what's the point of having a quickstart project 
specific for an IDE when really all is needed is ant or 
maven?
 
Just a thought.
 
--Todd


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Igor 
VaynbergSent: Tuesday, October 10, 2006 12:23 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Cannot 
use wicket-quickstart-1.2.2 with IntelliJ6.0
i dont really know what those files are or if they are 
maintainedcan you try mvn idea:idea <== shouldnt that create 
the idea project based on maven pom?-Igor
On 10/10/06, Todd 
Patrick <[EMAIL PROTECTED]> wrote:
When 
  I remove the .xml extension from the 
  files:\src\main\resources\wicket-quickstart.ipr\src\main\resources\wicket-quickstart.iwsI 
  open the wicket-quickstart.ipr in IntelliJ 6.0 and I have a blankProject 
  structure.Would anyone be able to help me correct 
  this?Thanks,--Todd-NOTICE: 
  This email message is for the sole use of the intended recipient(s) and 
  may contain confidential and privilegedinformation. Any unauthorized use, 
  disclosure or distribution isprohibited. If you are not the intended 
  recipient, please contactthe sender by reply email and destroy all copies 
  of the original 
  message.-Take 
  Surveys. Earn Cash. Influence the Future of ITJoin 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 
  listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions 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 listWicket-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] Cannot use wicket-quickstart-1.2.2 with IntelliJ6.0

2006-10-10 Thread Todd Patrick



Igor:
 
Thank you, that did work.
 
So... what's the point of having a quickstart project 
specific for an IDE when really all is needed is ant or 
maven?
 
Just a thought.
 
--Todd


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Igor 
VaynbergSent: Tuesday, October 10, 2006 12:23 PMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Cannot 
use wicket-quickstart-1.2.2 with IntelliJ6.0
i dont really know what those files are or if they are 
maintainedcan you try mvn idea:idea <== shouldnt that create 
the idea project based on maven pom?-Igor
On 10/10/06, Todd 
Patrick <[EMAIL PROTECTED]> wrote:
When 
  I remove the .xml extension from the 
  files:\src\main\resources\wicket-quickstart.ipr\src\main\resources\wicket-quickstart.iwsI 
  open the wicket-quickstart.ipr in IntelliJ 6.0 and I have a blankProject 
  structure.Would anyone be able to help me correct 
  this?Thanks,--Todd-NOTICE: 
  This email message is for the sole use of the intended recipient(s) and 
  may contain confidential and privilegedinformation. Any unauthorized use, 
  disclosure or distribution isprohibited. If you are not the intended 
  recipient, please contactthe sender by reply email and destroy all copies 
  of the original 
  message.-Take 
  Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's 
  Techsay panel and you'll get the chance to share your opinions on IT & 
  business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://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] Cannot use wicket-quickstart-1.2.2 with IntelliJ 6.0

2006-10-10 Thread Igor Vaynberg
i dont really know what those files are or if they are maintainedcan you try mvn idea:idea <== shouldnt that create the idea project based on maven pom?-Igor
On 10/10/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
When I remove the .xml extension from the files:\src\main\resources\wicket-quickstart.ipr\src\main\resources\wicket-quickstart.iwsI open the wicket-quickstart.ipr in IntelliJ 
6.0 and I have a blankProject structure.Would anyone be able to help me correct this?Thanks,--Todd-NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privilegedinformation. Any unauthorized use, disclosure or distribution isprohibited. If you are not the intended recipient, please contactthe sender by reply email and destroy all copies of the original
message.-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Wicket-user mailing listWicket-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] Cannot use wicket-quickstart-1.2.2 with IntelliJ 6.0

2006-10-10 Thread Todd Patrick
When I remove the .xml extension from the files:

\src\main\resources\wicket-quickstart.ipr
\src\main\resources\wicket-quickstart.iws

I open the wicket-quickstart.ipr in IntelliJ 6.0 and I have a blank
Project structure.

Would anyone be able to help me correct this?

Thanks,

--Todd


-
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the original
message.


-
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] Wicket-CMS Templates

2006-10-10 Thread Ted Roeloffzen
We've never used that. Are there any examples available when using it with Wicket?
On 10/10/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
What about using Velocity templates for markup? 

On 10/10/06, Gwyn Evans <[EMAIL PROTECTED]
> wrote: 
My inclination would be to do as much as you can via CSS, but if youneed to add scripting, I'd (a) go with Jython & (b) make a major 
effort on examples & documentation!/GwynOn 10/10/06, Ted Roeloffzen <[EMAIL PROTECTED]
> wrote:> hello all,>> Some of you may know that we're working on a Wicket-CMS as our grad project. > We've been thinking about the use of templates. About how we are going to> let people create their own templates. As we saw in Drupal and Joomla, there
> templates are full of PHP-code. If we're going to do the same with Java > code, that means that we force the users the learn Java and perhaps even> Wicket. This is not very user friendly. We could use only CSS-files and
> generate the HTML-page and put all the data in DIV's and SPANs. Do any of > you have ideas on how to make the templates as user-friendly as possible?>> greets,>> Ted
--Download Wicket 1.2.2 now! - http://wicketframework.org -
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-Take Surveys. Earn Cash. Influence the Future of ITJoin 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.nethttps://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] Wicket-CMS Templates

2006-10-10 Thread Nick Heudecker
What about using Velocity templates for markup?On 10/10/06, Gwyn Evans <[EMAIL PROTECTED]> wrote:
My inclination would be to do as much as you can via CSS, but if youneed to add scripting, I'd (a) go with Jython & (b) make a major
effort on examples & documentation!/GwynOn 10/10/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:> hello all,>> Some of you may know that we're working on a Wicket-CMS as our grad project.
> We've been thinking about the use of templates. About how we are going to> let people create their own templates. As we saw in Drupal and Joomla, there> templates are full of PHP-code. If we're going to do the same with Java
> code, that means that we force the users the learn Java and perhaps even> Wicket. This is not very user friendly. We could use only CSS-files and> generate the HTML-page and put all the data in DIV's and SPANs. Do any of
> you have ideas on how to make the templates as user-friendly as possible?>> greets,>> Ted--Download Wicket 1.2.2 now! - http://wicketframework.org
-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Wicket-user mailing listWicket-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] Wicket-CMS Templates

2006-10-10 Thread Gwyn Evans
My inclination would be to do as much as you can via CSS, but if you
need to add scripting, I'd (a) go with Jython & (b) make a major
effort on examples & documentation!

/Gwyn

On 10/10/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
> hello all,
>
> Some of you may know that we're working on a Wicket-CMS as our grad project.
> We've been thinking about the use of templates. About how we are going to
> let people create their own templates. As we saw in Drupal and Joomla, there
> templates are full of PHP-code. If we're going to do the same with Java
> code, that means that we force the users the learn Java and perhaps even
> Wicket. This is not very user friendly. We could use only CSS-files and
> generate the HTML-page and put all the data in DIV's and SPANs. Do any of
> you have ideas on how to make the templates as user-friendly as possible?
>
> greets,
>
> Ted


-- 
Download Wicket 1.2.2 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] Refreshing problem with ajax component

2006-10-10 Thread Matej Knopp
Anyway, there were couple of fixes concerning partial refresh of tree, 
you might consider trying a current snapshot of 1.2.

-Matej


Marc-Andre Houle wrote:
> The click is made on an object of the ajax tree and it is an ajax call.
> 
> Setting versionning to false work, only if it is set to the page.
> 
> I'll try to make a reproductible page containing the problem.  Another 
> question I may ask about refresh is : What is happening during a 
> refresh.  Somthing I want to do right now is to be able to refresh the 
> ajax tree when there is a new element added using the refresh button.  
> But it always display the old element if I press refresh, it will only 
> put new element when I completly update the page.
> 
> So, is it possible to refresh some of the part of the interface before 
> making the display during a refresh?
> 
> Thanks.
> 
> Marc
> 
> On 10/10/06, * Marc-Andre Houle* <[EMAIL PROTECTED] 
> > wrote:
> 
> I'll have to make some test but it seem's a good path to follow,
> I'll check for that...
> 
> thanks.
> 
> Marc
> 
> 
> On 10/6/06, *Johan Compagner* < [EMAIL PROTECTED]
> > wrote:
> 
> that click on an item is an ajax request?
> That shouldnt make a page version as far as i know
> If you have a simple example please make a bug report .
> 
> you should call: page.setVersioned(false)
> if you don't want that page to be versioned.
> Or better if you disable versioning on the tree
> (tree.setVersioned(false)) does the error then occur?
> 
> johan
> 
> 
> 
> On 10/3/06, *Marc-Andre Houle * <[EMAIL PROTECTED]
> > wrote:
> 
> It seem's that I have a problem in my application similar to
> those one :
> 
> http://www.nabble.com/AjaxTabbedPanel-is-broken-%28wicket-1.2.2%29-tf2176204.html#a6016987
> 
> 
> 
> https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1549248&group_id=119783
> 
> 
> 
> My problem look like this :
> I open a page and load an Ajax Tree.  I click on one item, I
> hit F5, I click on the same item, and I do another F5 and
> boom.  The exemple doesn't seem's to have this problem.
> 
> This is the error :
> 
> Root cause:
> 
> java.lang.IllegalStateException: Cannot remove
> [MarkupContainer [Component id = 0, page = , path =
> 0.Loop$LoopItem]] from null parent!
> at wicket.Component.remove
> 
> 
> (Component.java:1475)
> at wicket.version.undo.Add.undo(Add.java:81)
> at wicket.version.undo.ChangeList.undo(ChangeList.java:93)
> at
> 
> wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java
> 
> 
> 
> :217)
> at
> 
> wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167)
> at wicket.Page.getVersion(Page.java:586)
> at wicket.PageMap.get(PageMap.java:461)
> at wicket.Session.getPage
> 
> 
> (Session.java:418)
> at
> 
> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:215)
> at
> 
> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve
> 
> 
> 
> (DefaultRequestTargetResolverStrategy.java:152)
> at
> 
> wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48)
> at wicket.RequestCycle.step (RequestCycle.java
> 
> 
> :948)
> at wicket.RequestCycle.steps(RequestCycle.java:1040)
> at wicket.RequestCycle.request(RequestCycle.java:454)
> at
> wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
> :216)
> at
> javax.servlet.http.HttpServlet.service
> 
> (HttpServlet.java:697)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java
> :252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter
> 
> (ApplicationFilterChain.java:173)
> at
> com.interfacing.epc.util.hibernate.HibernateSessionFilter.doFilter
> (HibernateSessionFilter.java:78)
> 
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (Applica

Re: [Wicket-user] Refreshing problem with ajax component

2006-10-10 Thread Marc-Andre Houle
The click is made on an object of the ajax tree and it is an ajax call.Setting versionning to false work, only if it is set to the page.I'll try to make a reproductible page containing the problem.  Another question I may ask about refresh is : What is happening during a refresh.  Somthing I want to do right now is to be able to refresh the ajax tree when there is a new element added using the refresh button.  But it always display the old element if I press refresh, it will only put new element when I completly update the page.
So, is it possible to refresh some of the part of the interface before making the display during a refresh?Thanks.MarcOn 10/10/06, 
Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
I'll have to make some test but it seem's a good path to follow, I'll check for that...thanks.Marc
On 10/6/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:that click on an item is an ajax request?That shouldnt make a page version as far as i know
If you have a simple example please make a bug report .you should call: page.setVersioned(false)if you don't want that page to be versioned.
Or better if you disable versioning on the tree (tree.setVersioned(false)) does the error then occur?johanOn 10/3/06, 
Marc-Andre Houle
 <[EMAIL PROTECTED]> wrote:

It seem's that I have a problem in my application similar to those one : 
http://www.nabble.com/AjaxTabbedPanel-is-broken-%28wicket-1.2.2%29-tf2176204.html#a6016987
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1549248&group_id=119783

My problem look like this : I open a page and load an Ajax Tree.  I click on one item, I hit F5, I click on the same item, and I do another F5 and boom.  The exemple doesn't seem's to have this problem.This is the error : 
Root cause:java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component id = 0, page = , path = 0.Loop$LoopItem]] from null parent! at wicket.Component.remove
(Component.java:1475) at wicket.version.undo.Add.undo(Add.java:81) at wicket.version.undo.ChangeList.undo(ChangeList.java:93) at wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java
:217) at wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167) at wicket.Page.getVersion(Page.java:586) at wicket.PageMap.get(PageMap.java:461) at 
wicket.Session.getPage(Session.java:418) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:215) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve
(DefaultRequestTargetResolverStrategy.java:152) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step
(RequestCycle.java:948) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.interfacing.epc.util.hibernate.HibernateSessionFilter.doFilter
(HibernateSessionFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke
(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java
:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint

[Wicket-user] component for selecting country/nationality....

2006-10-10 Thread Erik Brakkee
Hi all, Has anyone already written a component for selecting a person's nationality or country? Cheers  Erik
-
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] onSubmit not called in a form

2006-10-10 Thread Pierre-Yves Saumont
Here is the request parameter object:

[RequestParameters 
parameters={rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0=,
 
submit-button=[[ button text ]]} onlyProcessIfPathActive=false]

Inside it, all values are null, false or 0, except the parameters map 
which contains two elements:

rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0
submit-button=[[ button text ]]


DefaultRequestTargetResolverStrategy#resolve returns at:

return resolveHomePageTarget(requestCycle, requestParameters);

Pierre-Yves

Eelco Hillenius a écrit :
> You can set a break point at the beginning of
> DefaultRequestTargetResolverStrategy#resolve and see where it returns.
> In your debugger, you can also look at the RequestParameters object to
> find out how Wicket interprets the request.
> 
> Eelco
> 
> 
> On 10/10/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
>> I am not sure I understand what you mean. (To be honest, I am sure I
>> don't). From the debugger, how can I find the answer to this question?
>>
>> Pierre-Yves
>>
>> Eelco Hillenius a écrit :
>> > So, where does it resolve to then (what is the request target it
>> > thinks it has to execute)?
>> >
>> > Eelco
>> >
>> >
>> > On 10/10/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
>> >> I put breakpoints on Form#onFormSubmitted and
>> >> AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are
>> >> reached for other forms that I navigate through to reach the page that
>> >> is causing trouble. In the form that has the problem,
>> >> AbstractCompoundRequestCycleProcessor#resolve is reached, but not
>> >> Form#onFormSubmitted.
>> >>
>> >> Pierre-Yves
>> >>
>> >> Eelco Hillenius a écrit :
>> >> > That's pretty weird yes. Can you confirm the action attribute of the
>> >> > form element is generated correctly? Do you have any validation
>> >> > errors? You could set a break point in Form#onFormSubmitted and see
>> >> > whether the request arrives there at all. If it doesn't, somehow the
>> >> > call back doesn't work (the action attribute of Form might be 
>> wrong).
>> >> > In that case, AbstractCompoundRequestCycleProcessor#resolve is a 
>> good
>> >> > place to set a break point. If the request does arrive in the form,
>> >> > see what happens there.
>> >> >
>> >> > Eelco
>> >> >
>> >> > On 10/9/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
>> >> >> Hi,
>> >> >>
>> >> >> I have a form and on a page and I believe a click on the submit 
>> button
>> >> >> should cause a call to the onSubmit method. (No onSubmit in the
>> >> button,
>> >> >> all default settings). By default, I suppose after the call to
>> >> onSubmit
>> >> >> Wicket should redisplay the same page. Instead of this, onSubmit is
>> >> not
>> >> >> called and Wicket displays the home page. I am sure I am doing
>> >> something
>> >> >> wrong, but I can't find what. Any hint about where to look for?
>> >> >>
>> >> >> Pierre-Yves
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> -
>> >> >> 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
>>
> 
> 
> 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsa

[Wicket-user] Wicket-CMS Templates

2006-10-10 Thread Ted Roeloffzen
hello all,Some of you may know that we're working on a Wicket-CMS as our grad project. We've been thinking about the use of templates. About how we are going to let people create their own templates. As we saw in Drupal and Joomla, there templates are full of PHP-code. If we're going to do the same with Java code, that means that we force the users the learn Java and perhaps even Wicket. This is not very user friendly. We could use only CSS-files and generate the HTML-page and put all the data in DIV's and SPANs. Do any of you have ideas on how to make the templates as user-friendly as possible? 
greets,Ted
-
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] navigation inside a tabbed pane

2006-10-10 Thread Jaime De La Jara
But If I'm not wrong PanelCachingTab stores the first panel displayed and this is not what I need since if the user navigates, say, to third panel in the navigation flow and selects another tab and then returns to the first tab the first panel would be displayed right?. In the specific case I'm trying to implement this, the phonebook app, in the ListContactsPanel I have a createLink, and this is how I replace the current panel to the new one :     IndexPage idxPage = (IndexPage)getPage();    MarkupContainer tab = (MarkupContainer)idxPage.get("tabs");    EditContactPanel editPanel = new   EditContactPanel((Panel)tab.get("panel"),                                                                              
       getParent().getId(), 0);    tab.replace(editPanel);    idxPage.setPanel(editPanel);where IndexPage has the tabs and it has an instance variable, panel, that contains the last accesed panel for tab 1 (it could have a Map for each tab).The problem is that I find the above code too complicated and something very similar has to be used in each place I replace a panel. Besides in the case of the UserActionPanel I had to change the constructor to pass it a reference to the ListContactsPanel.Any tips?Thanks,Jaime.>>ITab is a factory for tab panels - it is there as a level of indirection so you dont >>have to create/populate panels for each tab until the user selects the tab.>>there is nothing special you need for state management - wicket takes care of >>it for you. >>to keep the state of previous tabs instead of always creating a
 new panel in >>your ITab impl, keep the ref to the old one, see PanelCachingTab which does >>just that.>>also instead of using getParent().replace() it might be cleaner to use  >>component.replaceWith()>>-Igor>>So, if I use the Panels approach I'd need just one page and the navigation >>inside a tab would be using the replace method of MarkupContainer right?, and >>in this case how could I manage state in each tab?>>One thing of TabbedPanel implmentation I don't understand is why tabs are >>added first to a list and then added to the TabbedPanel, also why Tab is not a >>MarkupContainer since is supossed to contain a panel?>>Thanks and Regards,>>Jaime.>>yes, have everything be a panel. there is absolutely nothing wrong with that. >>wicket makes very little distinction between a page and a panel - a page is just >>a top level
 container.>>if you create a basepage or something similar you will lose previous state - like >>selected tab, etc. it is simly much easier to work with panels. >>-IgorOn 10/9/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote: And in the case of a web app that handles, for example,  invoices and vendors  with this navigation flow : Invoice Search -> List of Invoices -> Invoice detail -> Invoice edition Vendors Search -> List of Vendors ->
 Vendor detail -> Vendor edition and I'd like to create two tabs, one for Invoices and the other for Vendors. Would I have to convert each Page to a panel and instead of setResponsePage use replace and the corresponding code to retrieve a parent and all that? What if I created a BasePage that contained the tabs and have each page to inherit from this page to add the specific markup and take care of tab selection?How hard would be to extend TabbedPanel and ITab to manage the above situation? Besides one would have to consider what happens to a tab state when the user changes the selected tabs and returns to the first tab, it'd have to redisplay the first page of the flow or redisplay the last page?Thanks,Jaime.
 >>To work with panels and component replacement. That way you would >>hardly ever work with setReponsePage, but rather with >>Component#replaceWith or MarkupContainer#replace in Wicket  1.2.x, or >>in Wicket 2.0, you would just create the new component with the proper >>parent or in  case you'd want to reuse an older instance, you can use >>Component#reAttach  >>Eelco >>On 10/5/06, Jaime De La Jara < [EMAIL PROTECTED]> wrote: >>> What could be the preferred way to have an application with tabs and have a >>> bunch of pages inside  one of the tabs so the navigation between them is >>> equivalent as a navigation between standalone pages? Besides of
 extending >>> from Panel, What would be the analog of setResponsePage() ?  >>> >>> Thanks. >>> >>> Jaime. >>> >>> >>>   >>> Talk is cheap.  Use Yahoo! Messenger to make PC-to-Phone calls. Great >>rates  >>> starting at 1¢/min. >>> >>> >>> - >>> Take Surveys. Earn Cash. Influence the Future of IT  >>> Join SourceForge.net's 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail.-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll g

Re: [Wicket-user] onSubmit not called in a form

2006-10-10 Thread Eelco Hillenius
You can set a break point at the beginning of
DefaultRequestTargetResolverStrategy#resolve and see where it returns.
In your debugger, you can also look at the RequestParameters object to
find out how Wicket interprets the request.

Eelco


On 10/10/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> I am not sure I understand what you mean. (To be honest, I am sure I
> don't). From the debugger, how can I find the answer to this question?
>
> Pierre-Yves
>
> Eelco Hillenius a écrit :
> > So, where does it resolve to then (what is the request target it
> > thinks it has to execute)?
> >
> > Eelco
> >
> >
> > On 10/10/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> >> I put breakpoints on Form#onFormSubmitted and
> >> AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are
> >> reached for other forms that I navigate through to reach the page that
> >> is causing trouble. In the form that has the problem,
> >> AbstractCompoundRequestCycleProcessor#resolve is reached, but not
> >> Form#onFormSubmitted.
> >>
> >> Pierre-Yves
> >>
> >> Eelco Hillenius a écrit :
> >> > That's pretty weird yes. Can you confirm the action attribute of the
> >> > form element is generated correctly? Do you have any validation
> >> > errors? You could set a break point in Form#onFormSubmitted and see
> >> > whether the request arrives there at all. If it doesn't, somehow the
> >> > call back doesn't work (the action attribute of Form might be wrong).
> >> > In that case, AbstractCompoundRequestCycleProcessor#resolve is a good
> >> > place to set a break point. If the request does arrive in the form,
> >> > see what happens there.
> >> >
> >> > Eelco
> >> >
> >> > On 10/9/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> >> >> Hi,
> >> >>
> >> >> I have a form and on a page and I believe a click on the submit button
> >> >> should cause a call to the onSubmit method. (No onSubmit in the
> >> button,
> >> >> all default settings). By default, I suppose after the call to
> >> onSubmit
> >> >> Wicket should redisplay the same page. Instead of this, onSubmit is
> >> not
> >> >> called and Wicket displays the home page. I am sure I am doing
> >> something
> >> >> wrong, but I can't find what. Any hint about where to look for?
> >> >>
> >> >> Pierre-Yves
> >> >>
> >> >>
> >> >>
> >> -
> >> >> 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
>

-
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] Unicode Display

2006-10-10 Thread Gangadhar Vibhute
Hi AllOur company develope web application using wicket framework.This application display unicode values using Strings class provided bywicket.It is working fine with AIX Unix + Oracle Database + 
Tomcat5.x.But same application deployed on AIX Unix + Oracle Databse + OracleApplication ServerIt display  instated Unicode values.Oracle and IBM blaming on Wicket framework so cooperate to us for solving
this problem.RegaradsGangadhar A. Vibhute
-
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] onSubmit not called in a form

2006-10-10 Thread Pierre-Yves Saumont
I am not sure I understand what you mean. (To be honest, I am sure I 
don't). From the debugger, how can I find the answer to this question?

Pierre-Yves

Eelco Hillenius a écrit :
> So, where does it resolve to then (what is the request target it
> thinks it has to execute)?
> 
> Eelco
> 
> 
> On 10/10/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
>> I put breakpoints on Form#onFormSubmitted and
>> AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are
>> reached for other forms that I navigate through to reach the page that
>> is causing trouble. In the form that has the problem,
>> AbstractCompoundRequestCycleProcessor#resolve is reached, but not
>> Form#onFormSubmitted.
>>
>> Pierre-Yves
>>
>> Eelco Hillenius a écrit :
>> > That's pretty weird yes. Can you confirm the action attribute of the
>> > form element is generated correctly? Do you have any validation
>> > errors? You could set a break point in Form#onFormSubmitted and see
>> > whether the request arrives there at all. If it doesn't, somehow the
>> > call back doesn't work (the action attribute of Form might be wrong).
>> > In that case, AbstractCompoundRequestCycleProcessor#resolve is a good
>> > place to set a break point. If the request does arrive in the form,
>> > see what happens there.
>> >
>> > Eelco
>> >
>> > On 10/9/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
>> >> Hi,
>> >>
>> >> I have a form and on a page and I believe a click on the submit button
>> >> should cause a call to the onSubmit method. (No onSubmit in the 
>> button,
>> >> all default settings). By default, I suppose after the call to 
>> onSubmit
>> >> Wicket should redisplay the same page. Instead of this, onSubmit is 
>> not
>> >> called and Wicket displays the home page. I am sure I am doing 
>> something
>> >> wrong, but I can't find what. Any hint about where to look for?
>> >>
>> >> Pierre-Yves
>> >>
>> >>
>> >> 
>> -
>> >> 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] Wicket Life Cycle

2006-10-10 Thread craigdd

Thanks

Some how I missed that on the wiki.


Erik van Oosten wrote:
> 
> It's on the Wiki: http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle
> 
> You can find it by following 'Reference library' from the main page.
> 
> Regards,
>  Erik.
> 
> 
> craigdd schreef:
>> Does anyone have any good documentation of the life cyle for wicket?
>>   
> 
> -- 
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Life-Cycle-tf2413625.html#a6736517
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


Re: [Wicket-user] NiceURL and PagingNavigator

2006-10-10 Thread Upayavira
Korbinian Bachl wrote:
> Hi Matej,
> 
> this is a big problem. I can live with not beeing able to have Tabbed Panels
> but imagine a onlinestore where you can browse the products but the url is
> not bookmarkable. That just wouldnt work for the users as well as all search
> engines !
> 
> Ajax is also not a solution as google & co dont care about that!
> 
> Dont you know any (even theorethical) possibility to have URLs like
> /products/page/2 for pagination ? i mean that component must use a parameter
> to call it and this one just has to be passed... is this behaviour going to
> change in Wicket 2 ??? or are nice URLs there a half-done-feature, too ?

Sounds like you're after stateless pages.

But someone other than me is going to have to tell you about them, 
because I've just told you everything I know :-(

Regards, Upayavira

>> -Ursprüngliche Nachricht-
>> Von: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] Im Auftrag 
>> von Matej Knopp
>> Gesendet: Dienstag, 10. Oktober 2006 13:49
>> An: wicket-user@lists.sourceforge.net
>> Betreff: Re: [Wicket-user] NiceURL and PagingNavigator
>>
>> There is a simple answer for your question: You can't.
>>
>> It's due to how wicket works. Since Wicket manages your 
>> application state and takes care of the urls for you, you 
>> can't alter them significantly.
>>
>> If you need tabbed panel like functionality while having nice 
>> urls, you have to have different pages and simply use 
>> bookmarkable links for every page.
>>
>> Paging navigator's url could be little nicer if we didn't 
>> disable redirect, e.g. ?wicket:interface=:2:: .
>>
>> Alternatively you can use ajax paging navigator (and ajax 
>> tabbed panel), which would case the url to stay unchanged.
>>
>> -Matej
>>
>>
>> Korbinian Bachl wrote:
>>> I extend the question further: How can i have a nice URL and use a 
>>> TabbedPanel component???
>>>  
>>> Regards
>>>
>>> 
>> --
>> --
>>> *Von:* [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] *Im 
>> Auftrag von
>>> *Korbinian Bachl
>>> *Gesendet:* Dienstag, 10. Oktober 2006 12:01
>>> *An:* wicket-user@lists.sourceforge.net
>>> *Betreff:* [Wicket-user] NiceURL and PagingNavigator
>>>
>>> Hi,
>>>  
>>> i have a page, call it products, and i implement a 
>> Paging Navigator
>>> there, as its not good to have mor than e.g. 10 
>> products on page at
>>> same time.
>>>  
>>> I then mount the products via   
>> mountBookmarkablePage("/products",
>>> Product.class);
>>>  
>>> by executing it all works at first, but when using a 
>> link from the
>>> paging navigation the URL changes to
>>> 
>> ?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener
>>> instead of showing a nice /products/page/2 or sth like that.
>>>  
>>> How can i achive this behavior?
>>>  
>>> Regards,
>>>  
>>> Korbinian
>>>  
>>>
>>>
>>>
>> --
>>> --
>>>
>>>
>> --
>>> --- 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
>>
>> --
>> ---
>> 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.ne

Re: [Wicket-user] NiceURL and PagingNavigator

2006-10-10 Thread Matej Knopp
Paging navigator is useful in situations, when you don't care that much 
about url (e.g. intranet applications with complex user interface).

For internet applications, where you do care (at least for certain 
parts) about URLs, you have to make an effort to achieve the urls you need.

The problem with bookmarkable urls is that every time you click on one, 
new page instance is created. So if you have e.g. a member variable in 
old page, the variable value won't be available in new page instance.

Therefore paging navigator doesn't use bookmarkable urls.

It should not be difficult to modify PagingNavigator to use bookmarkable 
urls.

-Matej

Korbinian Bachl wrote:
> Hi Matej,
>  
>  
>> Well, for browsing products i wouldn't use PagingNavigator in 
>> a first place.
> 
> ok, what else would you use? - i mean a PagingNavigator and a DataView seems
> to me as its made for beeing a product-category browser (as you have e.g. 30
> toycars and want only 16 max items per page)
> 
>> Of course it is prossible to have such product browser in 
>> wicket, even with nice urls.
>>
>> class ProductsPage extends WebPage
>> {
>>  public ProductsPage(PageParameters parameters)
>>  {
>>  // this is just an example, you'd probably
>>  // need something bit more sophisticated :)
>>  int currentPage = parameters.getInt("page");
>>  add(new BookmarkablePageLink("prev", new 
>> PageParameters("page=" + (currentPage-1)));
>>  add(new BookmarkablePageLink("next", new 
>> PageParameters("page=" + (currentPage+1)));
>>  
>>  }
>>
>> }
>>
>> so if you mount products page to "/products", you can get 
>> urls like /products/page/1, products/page/2 ...
> 
> ok, so if I understand this right, it would be enough to modify the
> PagingNavigator to use BookmarkablePageLink with the parameters ? If this is
> so, why doesnt the PagingNavigator provide this functionality by itself? or
> might this run into other problems?
> 
> Any help is really appreciated,
> 
> Regards
> 
> Korbinian
> 
>> -Matej
>>
>> Korbinian Bachl wrote:
>>> Hi Matej,
>>>
>>> this is a big problem. I can live with not beeing able to 
>> have Tabbed 
>>> Panels but imagine a onlinestore where you can browse the 
>> products but 
>>> the url is not bookmarkable. That just wouldnt work for the 
>> users as 
>>> well as all search engines !
>>>
>>> Ajax is also not a solution as google & co dont care about that!
>>>
>>> Dont you know any (even theorethical) possibility to have URLs like
>>> /products/page/2 for pagination ? i mean that component must use a 
>>> parameter to call it and this one just has to be passed... is this 
>>> behaviour going to change in Wicket 2 ??? or are nice URLs 
>> there a half-done-feature, too ?
>>> Regards
>>>
>>>
>>>  
>>>
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im Auftrag von 
 Matej Knopp
 Gesendet: Dienstag, 10. Oktober 2006 13:49
 An: wicket-user@lists.sourceforge.net
 Betreff: Re: [Wicket-user] NiceURL and PagingNavigator

 There is a simple answer for your question: You can't.

 It's due to how wicket works. Since Wicket manages your 
>> application 
 state and takes care of the urls for you, you can't alter them 
 significantly.

 If you need tabbed panel like functionality while having 
>> nice urls, 
 you have to have different pages and simply use bookmarkable links 
 for every page.

 Paging navigator's url could be little nicer if we didn't disable 
 redirect, e.g. ?wicket:interface=:2:: .

 Alternatively you can use ajax paging navigator (and ajax tabbed 
 panel), which would case the url to stay unchanged.

 -Matej


 Korbinian Bachl wrote:
> I extend the question further: How can i have a nice URL 
>> and use a 
> TabbedPanel component???
>  
> Regards
>
> 
 --
 --
> *Von:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *Im
 Auftrag von
> *Korbinian Bachl
> *Gesendet:* Dienstag, 10. Oktober 2006 12:01
> *An:* wicket-user@lists.sourceforge.net
> *Betreff:* [Wicket-user] NiceURL and PagingNavigator
>
> Hi,
>  
> i have a page, call it products, and i implement a
 Paging Navigator
> there, as its not good to have mor than e.g. 10
 products on page at
> same time.
>  
> I then mount the products via   
 mountBookmarkablePage("/products",
> Product.class);
>  
> by executing it all works at first, but when using a
 link from the
> paging navigation the URL changes to
> 
>> ?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener
> instead of showing a nice /products/page/2 or sth like that.
>  
>

Re: [Wicket-user] NiceURL and PagingNavigator

2006-10-10 Thread Korbinian Bachl
Hi Matej,

this is a big problem. I can live with not beeing able to have Tabbed Panels
but imagine a onlinestore where you can browse the products but the url is
not bookmarkable. That just wouldnt work for the users as well as all search
engines !

Ajax is also not a solution as google & co dont care about that!

Dont you know any (even theorethical) possibility to have URLs like
/products/page/2 for pagination ? i mean that component must use a parameter
to call it and this one just has to be passed... is this behaviour going to
change in Wicket 2 ??? or are nice URLs there a half-done-feature, too ?

Regards


 

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von Matej Knopp
> Gesendet: Dienstag, 10. Oktober 2006 13:49
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] NiceURL and PagingNavigator
> 
> There is a simple answer for your question: You can't.
> 
> It's due to how wicket works. Since Wicket manages your 
> application state and takes care of the urls for you, you 
> can't alter them significantly.
> 
> If you need tabbed panel like functionality while having nice 
> urls, you have to have different pages and simply use 
> bookmarkable links for every page.
> 
> Paging navigator's url could be little nicer if we didn't 
> disable redirect, e.g. ?wicket:interface=:2:: .
> 
> Alternatively you can use ajax paging navigator (and ajax 
> tabbed panel), which would case the url to stay unchanged.
> 
> -Matej
> 
> 
> Korbinian Bachl wrote:
> > I extend the question further: How can i have a nice URL and use a 
> > TabbedPanel component???
> >  
> > Regards
> > 
> > 
> --
> --
> > *Von:* [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] *Im 
> Auftrag von
> > *Korbinian Bachl
> > *Gesendet:* Dienstag, 10. Oktober 2006 12:01
> > *An:* wicket-user@lists.sourceforge.net
> > *Betreff:* [Wicket-user] NiceURL and PagingNavigator
> > 
> > Hi,
> >  
> > i have a page, call it products, and i implement a 
> Paging Navigator
> > there, as its not good to have mor than e.g. 10 
> products on page at
> > same time.
> >  
> > I then mount the products via   
> mountBookmarkablePage("/products",
> > Product.class);
> >  
> > by executing it all works at first, but when using a 
> link from the
> > paging navigation the URL changes to
> > 
> ?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener
> > instead of showing a nice /products/page/2 or sth like that.
> >  
> > How can i achive this behavior?
> >  
> > Regards,
> >  
> > Korbinian
> >  
> > 
> > 
> > 
> --
> > --
> > 
> > 
> --
> > --- 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
> 
> 
> --
> ---
> 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] NiceURL and PagingNavigator

2006-10-10 Thread Korbinian Bachl
Hi Matej,
 
 
> Well, for browsing products i wouldn't use PagingNavigator in 
> a first place.

ok, what else would you use? - i mean a PagingNavigator and a DataView seems
to me as its made for beeing a product-category browser (as you have e.g. 30
toycars and want only 16 max items per page)

> 
> Of course it is prossible to have such product browser in 
> wicket, even with nice urls.
> 
> class ProductsPage extends WebPage
> {
>   public ProductsPage(PageParameters parameters)
>   {
>   // this is just an example, you'd probably
>   // need something bit more sophisticated :)
>   int currentPage = parameters.getInt("page");
>   add(new BookmarkablePageLink("prev", new 
> PageParameters("page=" + (currentPage-1)));
>   add(new BookmarkablePageLink("next", new 
> PageParameters("page=" + (currentPage+1)));
>   
>   }
> 
> }
> 
> so if you mount products page to "/products", you can get 
> urls like /products/page/1, products/page/2 ...

ok, so if I understand this right, it would be enough to modify the
PagingNavigator to use BookmarkablePageLink with the parameters ? If this is
so, why doesnt the PagingNavigator provide this functionality by itself? or
might this run into other problems?

Any help is really appreciated,

Regards

Korbinian

> 
> -Matej
> 
> Korbinian Bachl wrote:
> > Hi Matej,
> > 
> > this is a big problem. I can live with not beeing able to 
> have Tabbed 
> > Panels but imagine a onlinestore where you can browse the 
> products but 
> > the url is not bookmarkable. That just wouldnt work for the 
> users as 
> > well as all search engines !
> > 
> > Ajax is also not a solution as google & co dont care about that!
> > 
> > Dont you know any (even theorethical) possibility to have URLs like
> > /products/page/2 for pagination ? i mean that component must use a 
> > parameter to call it and this one just has to be passed... is this 
> > behaviour going to change in Wicket 2 ??? or are nice URLs 
> there a half-done-feature, too ?
> > 
> > Regards
> > 
> > 
> >  
> > 
> >> -Ursprüngliche Nachricht-
> >> Von: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] Im Auftrag von 
> >> Matej Knopp
> >> Gesendet: Dienstag, 10. Oktober 2006 13:49
> >> An: wicket-user@lists.sourceforge.net
> >> Betreff: Re: [Wicket-user] NiceURL and PagingNavigator
> >>
> >> There is a simple answer for your question: You can't.
> >>
> >> It's due to how wicket works. Since Wicket manages your 
> application 
> >> state and takes care of the urls for you, you can't alter them 
> >> significantly.
> >>
> >> If you need tabbed panel like functionality while having 
> nice urls, 
> >> you have to have different pages and simply use bookmarkable links 
> >> for every page.
> >>
> >> Paging navigator's url could be little nicer if we didn't disable 
> >> redirect, e.g. ?wicket:interface=:2:: .
> >>
> >> Alternatively you can use ajax paging navigator (and ajax tabbed 
> >> panel), which would case the url to stay unchanged.
> >>
> >> -Matej
> >>
> >>
> >> Korbinian Bachl wrote:
> >>> I extend the question further: How can i have a nice URL 
> and use a 
> >>> TabbedPanel component???
> >>>  
> >>> Regards
> >>>
> >>> 
> >> --
> >> --
> >>> *Von:* [EMAIL PROTECTED]
> >>> [mailto:[EMAIL PROTECTED] *Im
> >> Auftrag von
> >>> *Korbinian Bachl
> >>> *Gesendet:* Dienstag, 10. Oktober 2006 12:01
> >>> *An:* wicket-user@lists.sourceforge.net
> >>> *Betreff:* [Wicket-user] NiceURL and PagingNavigator
> >>>
> >>> Hi,
> >>>  
> >>> i have a page, call it products, and i implement a
> >> Paging Navigator
> >>> there, as its not good to have mor than e.g. 10
> >> products on page at
> >>> same time.
> >>>  
> >>> I then mount the products via   
> >> mountBookmarkablePage("/products",
> >>> Product.class);
> >>>  
> >>> by executing it all works at first, but when using a
> >> link from the
> >>> paging navigation the URL changes to
> >>> 
> >> 
> ?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener
> >>> instead of showing a nice /products/page/2 or sth like that.
> >>>  
> >>> How can i achive this behavior?
> >>>  
> >>> Regards,
> >>>  
> >>> Korbinian
> >>>  
> >>>
> >>>
> >>>
> >> 
> -
> >> -
> >>> --
> >>>
> >>>
> >> 
> -
> >> -
> >>> --- 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=DE
> >> V
> >>> DEV
> >>>
> >>>
> >>>
> >> 
> --

Re: [Wicket-user] NiceURL and PagingNavigator

2006-10-10 Thread Matej Knopp
Well, for browsing products i wouldn't use PagingNavigator in a first place.

Of course it is prossible to have such product browser in wicket, even 
with nice urls.

class ProductsPage extends WebPage
{
public ProductsPage(PageParameters parameters)
{
// this is just an example, you'd probably
// need something bit more sophisticated :)
int currentPage = parameters.getInt("page");
add(new BookmarkablePageLink("prev", new PageParameters("page=" 
+ 
(currentPage-1)));
add(new BookmarkablePageLink("next", new PageParameters("page=" 
+ 
(currentPage+1)));

}

}

so if you mount products page to "/products", you can get urls like
/products/page/1, products/page/2 ...


-Matej

Korbinian Bachl wrote:
> Hi Matej,
> 
> this is a big problem. I can live with not beeing able to have Tabbed Panels
> but imagine a onlinestore where you can browse the products but the url is
> not bookmarkable. That just wouldnt work for the users as well as all search
> engines !
> 
> Ajax is also not a solution as google & co dont care about that!
> 
> Dont you know any (even theorethical) possibility to have URLs like
> /products/page/2 for pagination ? i mean that component must use a parameter
> to call it and this one just has to be passed... is this behaviour going to
> change in Wicket 2 ??? or are nice URLs there a half-done-feature, too ?
> 
> Regards
> 
> 
>  
> 
>> -Ursprüngliche Nachricht-
>> Von: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] Im Auftrag 
>> von Matej Knopp
>> Gesendet: Dienstag, 10. Oktober 2006 13:49
>> An: wicket-user@lists.sourceforge.net
>> Betreff: Re: [Wicket-user] NiceURL and PagingNavigator
>>
>> There is a simple answer for your question: You can't.
>>
>> It's due to how wicket works. Since Wicket manages your 
>> application state and takes care of the urls for you, you 
>> can't alter them significantly.
>>
>> If you need tabbed panel like functionality while having nice 
>> urls, you have to have different pages and simply use 
>> bookmarkable links for every page.
>>
>> Paging navigator's url could be little nicer if we didn't 
>> disable redirect, e.g. ?wicket:interface=:2:: .
>>
>> Alternatively you can use ajax paging navigator (and ajax 
>> tabbed panel), which would case the url to stay unchanged.
>>
>> -Matej
>>
>>
>> Korbinian Bachl wrote:
>>> I extend the question further: How can i have a nice URL and use a 
>>> TabbedPanel component???
>>>  
>>> Regards
>>>
>>> 
>> --
>> --
>>> *Von:* [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] *Im 
>> Auftrag von
>>> *Korbinian Bachl
>>> *Gesendet:* Dienstag, 10. Oktober 2006 12:01
>>> *An:* wicket-user@lists.sourceforge.net
>>> *Betreff:* [Wicket-user] NiceURL and PagingNavigator
>>>
>>> Hi,
>>>  
>>> i have a page, call it products, and i implement a 
>> Paging Navigator
>>> there, as its not good to have mor than e.g. 10 
>> products on page at
>>> same time.
>>>  
>>> I then mount the products via   
>> mountBookmarkablePage("/products",
>>> Product.class);
>>>  
>>> by executing it all works at first, but when using a 
>> link from the
>>> paging navigation the URL changes to
>>> 
>> ?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener
>>> instead of showing a nice /products/page/2 or sth like that.
>>>  
>>> How can i achive this behavior?
>>>  
>>> Regards,
>>>  
>>> Korbinian
>>>  
>>>
>>>
>>>
>> --
>>> --
>>>
>>>
>> --
>>> --- 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
>>
>> --
>> ---
>> 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] Refreshing problem with ajax component

2006-10-10 Thread Marc-Andre Houle
I'll have to make some test but it seem's a good path to follow, I'll check for that...thanks.MarcOn 10/6/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:that click on an item is an ajax request?That shouldnt make a page version as far as i know
If you have a simple example please make a bug report .you should call: page.setVersioned(false)if you don't want that page to be versioned.
Or better if you disable versioning on the tree (tree.setVersioned(false)) does the error then occur?johanOn 10/3/06, 
Marc-Andre Houle
 <[EMAIL PROTECTED]> wrote:
It seem's that I have a problem in my application similar to those one : 
http://www.nabble.com/AjaxTabbedPanel-is-broken-%28wicket-1.2.2%29-tf2176204.html#a6016987
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1549248&group_id=119783

My problem look like this : I open a page and load an Ajax Tree.  I click on one item, I hit F5, I click on the same item, and I do another F5 and boom.  The exemple doesn't seem's to have this problem.This is the error : 
Root cause:java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component id = 0, page = , path = 0.Loop$LoopItem]] from null parent! at wicket.Component.remove
(Component.java:1475) at wicket.version.undo.Add.undo(Add.java:81) at wicket.version.undo.ChangeList.undo(ChangeList.java:93) at wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java
:217) at wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167) at wicket.Page.getVersion(Page.java:586) at wicket.PageMap.get(PageMap.java:461) at wicket.Session.getPage
(Session.java:418) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:215) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve
(DefaultRequestTargetResolverStrategy.java:152) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java
:948) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.interfacing.epc.util.hibernate.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:78)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke
(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java
:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595)
	
	
	
	
	
	

I would like to know if the bug have been adressed.  In the first link, the person say something like disactivating page versionning.  So to make a test, I have tried make this in applicationgetPageSettings ().setMaxPageVersions (0);
And then, redone the test.  My problem with this is that it does not crash, but it take me to the "Page expired" page..So here are the real question : 1-Is it really a valid solution to disable page versionning?  What are the implication. I have checked and I haven't found any docume

Re: [Wicket-user] NiceURL and PagingNavigator

2006-10-10 Thread Matej Knopp
There is a simple answer for your question: You can't.

It's due to how wicket works. Since Wicket manages your application 
state and takes care of the urls for you, you can't alter them 
significantly.

If you need tabbed panel like functionality while having nice urls, you 
have to have different pages and simply use bookmarkable links for every 
page.

Paging navigator's url could be little nicer if we didn't disable 
redirect, e.g. ?wicket:interface=:2:: .

Alternatively you can use ajax paging navigator (and ajax tabbed panel), 
which would case the url to stay unchanged.

-Matej


Korbinian Bachl wrote:
> I extend the question further: How can i have a nice URL and use a 
> TabbedPanel component???
>  
> Regards
> 
> 
> *Von:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *Im Auftrag von
> *Korbinian Bachl
> *Gesendet:* Dienstag, 10. Oktober 2006 12:01
> *An:* wicket-user@lists.sourceforge.net
> *Betreff:* [Wicket-user] NiceURL and PagingNavigator
> 
> Hi,
>  
> i have a page, call it products, and i implement a Paging Navigator
> there, as its not good to have mor than e.g. 10 products on page at
> same time.
>  
> I then mount the products via   mountBookmarkablePage("/products",
> Product.class);
>  
> by executing it all works at first, but when using a link from the
> paging navigation the URL changes to
> ?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener
> instead of showing a nice /products/page/2 or sth like that.
>  
> How can i achive this behavior?
>  
> Regards,
>  
> Korbinian
>  
> 
> 
> 
> 
> -
> 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] NiceURL and PagingNavigator

2006-10-10 Thread Korbinian Bachl



I extend the question further: How can i have a nice URL 
and use a TabbedPanel component???
 
Regards

  
  
  Von: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] Im Auftrag von 
  Korbinian BachlGesendet: Dienstag, 10. Oktober 2006 
  12:01An: wicket-user@lists.sourceforge.netBetreff: 
  [Wicket-user] NiceURL and PagingNavigator
  
  Hi,
   
  i have a page, 
  call it products, and i implement a Paging Navigator there, as its not good to 
  have mor than e.g. 10 products on page at same time.
   
  I then mount the 
  products via   mountBookmarkablePage("/products", 
  Product.class);
   
  by executing it 
  all works at first, but when using a link from the paging navigation the URL 
  changes to 
  ?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener 
  
  instead of showing 
  a nice /products/page/2 or sth like that.
   
  How can i achive 
  this behavior?
   
  Regards,
   
  Korbinian
   
-
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] onSubmit not called in a form

2006-10-10 Thread Eelco Hillenius
So, where does it resolve to then (what is the request target it
thinks it has to execute)?

Eelco


On 10/10/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> I put breakpoints on Form#onFormSubmitted and
> AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are
> reached for other forms that I navigate through to reach the page that
> is causing trouble. In the form that has the problem,
> AbstractCompoundRequestCycleProcessor#resolve is reached, but not
> Form#onFormSubmitted.
>
> Pierre-Yves
>
> Eelco Hillenius a écrit :
> > That's pretty weird yes. Can you confirm the action attribute of the
> > form element is generated correctly? Do you have any validation
> > errors? You could set a break point in Form#onFormSubmitted and see
> > whether the request arrives there at all. If it doesn't, somehow the
> > call back doesn't work (the action attribute of Form might be wrong).
> > In that case, AbstractCompoundRequestCycleProcessor#resolve is a good
> > place to set a break point. If the request does arrive in the form,
> > see what happens there.
> >
> > Eelco
> >
> > On 10/9/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> I have a form and on a page and I believe a click on the submit button
> >> should cause a call to the onSubmit method. (No onSubmit in the button,
> >> all default settings). By default, I suppose after the call to onSubmit
> >> Wicket should redisplay the same page. Instead of this, onSubmit is not
> >> called and Wicket displays the home page. I am sure I am doing something
> >> wrong, but I can't find what. Any hint about where to look for?
> >>
> >> Pierre-Yves
> >>
> >>
> >> -
> >> 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] onSubmit not called in a form

2006-10-10 Thread Pierre-Yves Saumont
I put breakpoints on Form#onFormSubmitted and 
AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are 
reached for other forms that I navigate through to reach the page that 
is causing trouble. In the form that has the problem, 
AbstractCompoundRequestCycleProcessor#resolve is reached, but not 
Form#onFormSubmitted.

Pierre-Yves

Eelco Hillenius a écrit :
> That's pretty weird yes. Can you confirm the action attribute of the
> form element is generated correctly? Do you have any validation
> errors? You could set a break point in Form#onFormSubmitted and see
> whether the request arrives there at all. If it doesn't, somehow the
> call back doesn't work (the action attribute of Form might be wrong).
> In that case, AbstractCompoundRequestCycleProcessor#resolve is a good
> place to set a break point. If the request does arrive in the form,
> see what happens there.
> 
> Eelco
> 
> On 10/9/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have a form and on a page and I believe a click on the submit button
>> should cause a call to the onSubmit method. (No onSubmit in the button,
>> all default settings). By default, I suppose after the call to onSubmit
>> Wicket should redisplay the same page. Instead of this, onSubmit is not
>> called and Wicket displays the home page. I am sure I am doing something
>> wrong, but I can't find what. Any hint about where to look for?
>>
>> Pierre-Yves
>>
>>
>> -
>> 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] NiceURL and PagingNavigator

2006-10-10 Thread Korbinian Bachl



Hi,
 
i have a page, call 
it products, and i implement a Paging Navigator there, as its not good to have 
mor than e.g. 10 products on page at same time.
 
I then mount the 
products via   mountBookmarkablePage("/products", 
Product.class);
 
by executing it all 
works at first, but when using a link from the paging navigation the URL changes 
to 
?wicket:interface=:2:pagination:navigation:1:pageLink:1:ILinkListener 

instead of showing a 
nice /products/page/2 or sth like that.
 
How can i achive 
this behavior?
 
Regards,
 
Korbinian
 
-
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] onSubmit not called in a form

2006-10-10 Thread Eelco Hillenius
That's pretty weird yes. Can you confirm the action attribute of the
form element is generated correctly? Do you have any validation
errors? You could set a break point in Form#onFormSubmitted and see
whether the request arrives there at all. If it doesn't, somehow the
call back doesn't work (the action attribute of Form might be wrong).
In that case, AbstractCompoundRequestCycleProcessor#resolve is a good
place to set a break point. If the request does arrive in the form,
see what happens there.

Eelco

On 10/9/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a form and on a page and I believe a click on the submit button
> should cause a call to the onSubmit method. (No onSubmit in the button,
> all default settings). By default, I suppose after the call to onSubmit
> Wicket should redisplay the same page. Instead of this, onSubmit is not
> called and Wicket displays the home page. I am sure I am doing something
> wrong, but I can't find what. Any hint about where to look for?
>
> Pierre-Yves
>
>
> -
> 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] onSubmit not called in a form

2006-10-10 Thread Pierre-Yves Saumont
Without a model, the result is the same except that the button text is 
taken from the html template.

If I add an onSubmit handler to the button, the result again is the 
same. No one of the handlers get called, and the home page is displayed. 
(No error message on the console, nothing in the server log)

With these modifications, it works fine in the quickstart. The button 
handler is called first and then the form handler.

I am using 1.2.2

Pierre-Yves 

Nino Wael a écrit :
> I havent used buttons with models could you try to strip that and also 
> override your buttons onsubmit also just to see what happens there?
> 
> which version of wicket are we talking about?
> 
> regards Nino
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
> Sent: Tue 10-10-2006 10:25
> To:   wicket-user@lists.sourceforge.net
> Cc:   
> Subject:  Re: [Wicket-user] onSubmit not called in a form
> 
> I am testing this on a stripped down version of my app. The java code is:
> 
> class SelectExpiriesForm extends Form {
>public SelectExpiriesForm(String id, IModel model) {
>  super(id, model);
> 
>  add(new Button("submit-button", new Model("Submit")));
> 
>}
>public void onSubmit() {
>  System.out.println("in onSubmit...");
>}
> }
> 
> and the html is:
> 
> 
>   value="[[ button text ]]"/>
> 
> 
> I also tested this in a separate quickstart and it works fine. I have no 
> specific error setup (I disabled . So, something else in my app is must 
> be causing this strange behavior.
> 
> Pierre-Yves
> 
> Nino Wael a écrit :
>> Sounds strange, could you poste the source?
>>
>> AFAIK, two things should happen either you would get what you wanted or you 
>> should get an error. Although this migth be changed if you had special error 
>> handling that redirects the user to the home page.
>>
>>
>> -Original Message-
>> From:[EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
>> Sent:Mon 09-10-2006 17:18
>> To:  wicket-user@lists.sourceforge.net
>> Cc:  
>> Subject: [Wicket-user] onSubmit not called in a form
>>
>> Hi,
>>
>> I have a form and on a page and I believe a click on the submit button 
>> should cause a call to the onSubmit method. (No onSubmit in the button, 
>> all default settings). By default, I suppose after the call to onSubmit 
>> Wicket should redisplay the same page. Instead of this, onSubmit is not 
>> called and Wicket displays the home page. I am sure I am doing something 
>> wrong, but I can't find what. Any hint about where to look for?
>>
>> Pierre-Yves
>>
>>
>> -
>> 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] RestartResponseAtInterceptPageException vs RestartResponseException

2006-10-10 Thread Eelco Hillenius
Ah. I'm not sure how many people actually use SignInPanel. Indeed,
that component doesn't look particularly flexible. I guess what you're
looking for is something like:


Index: 
/Users/eelcohillenius/Documents/workspace/wicket-auth-roles/src/main/java/wicket/authentication/panel/SignInPanel.java
===
--- 
/Users/eelcohillenius/Documents/workspace/wicket-auth-roles/src/main/java/wicket/authentication/panel/SignInPanel.java
  (revision
7587)
+++ 
/Users/eelcohillenius/Documents/workspace/wicket-auth-roles/src/main/java/wicket/authentication/panel/SignInPanel.java
  (working
copy)
@@ -108,20 +108,11 @@
{
if (signIn(getUsername(), getPassword()))
{
-   // If login has been called because the user 
was not yet
-   // logged in, than continue to the original 
destination,
-   // otherwise to the Home page
-   if (!continueToOriginalDestination())
-   {
-   
setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(
-   
getApplication().getHomePage(), (PageParameters)null));
-   }
+   onSignInSucceeded();
}
else
{
-   // Try the component based localizer first. If 
not found try the
-   // application localizer. Else use the default
-   error(getLocalizer().getString("signInFailed", 
this, "Sign in failed"));
+   onSignInFailed();
}
}
}
@@ -235,4 +226,23 @@
{
return AuthenticatedWebSession.get().signIn(username, password);
}
+   
+   protected void onSignInFailed()
+   {
+   // Try the component based localizer first. If not found try the
+   // application localizer. Else use the default
+   error(getLocalizer().getString("signInFailed", this, "Sign in 
failed"));
+   }
+
+   protected void onSignInSucceeded()
+   {
+   // If login has been called because the user was not yet
+   // logged in, than continue to the original destination,
+   // otherwise to the Home page
+   if (!continueToOriginalDestination())
+   {
+   
setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(
+   getApplication().getHomePage(), 
(PageParameters)null));
+   }
+   }
 }


If you agree with that, or something similar, please feel free to
update the project Gwyn.

Eelco


On 10/10/06, Gwyn Evans <[EMAIL PROTECTED]> wrote:
> Unless I'm missing something, not without some major cut & pasting (or
> a  custom version or Wicket).  The actual onSubmit() is down in
> SignInForm, which is in SignInPanel, which is in SignInPage. Even if
> it wasn't final, (which it is,) then there doesn't seem to be a way of
> getting to it to override it.
>
> It didn't seem that unusual a requirement, so I'm slightly surprised
> that I'm the first to be asking about this, so wondering if there's a
> better way of handling it!
>
> /Gwyn
>
> On 10/10/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > if it is after login. Can't you handle it then in the login.onSubmit code?
> >
> >
> > johan
> > \
> >
> > On 10/9/06, Gwyn Evans < [EMAIL PROTECTED]> wrote:
> > > After the login's how I was hoping to go...  Currently checking the
> > > (session) stored user details in the BasePage.
> > >
> > > /Gwyn
> > >
> > > On 09/10/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > So before the user is logs in?
> > > > so in the end you have 2 login pages?
> > > > Or after the users logs in, so 2 different directions when the login
> > > > succeeds?
> > > >
> > > > johan
> > > >
> > > >
> > > >
> > > > On 10/9/06, Gwyn Evans <[EMAIL PROTECTED] > wrote:
> > > > > On a related note, can anyone suggest a good way of adding a way of
> > > > > changing the 'destination' page as part of the logging in?
> > > > >
> > > > > The scenario is that after authenticating the user, I may to redirect
> > > > > them to a 'ChangePassword' page.  Is there a better answer than a
> > > > > RestartResponseException in my
> > > > AuthenticatedWebSession.authenticate()
> > > > > implementation?
> > > > >
> > > > > /Gwyn
> > > > >
> > > > > On 09/10/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > > > The difference is that
> > > > RestartResponseAtInterceptPageException records
> > > > > > the current request first, which then later - after logging in -
> > could
> > > > > > be redi

Re: [Wicket-user] onSubmit not called in a form

2006-10-10 Thread Nino Wael
I havent used buttons with models could you try to strip that and also override 
your buttons onsubmit also just to see what happens there?

which version of wicket are we talking about?

regards Nino


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
Sent:   Tue 10-10-2006 10:25
To: wicket-user@lists.sourceforge.net
Cc: 
Subject:Re: [Wicket-user] onSubmit not called in a form

I am testing this on a stripped down version of my app. The java code is:

class SelectExpiriesForm extends Form {
   public SelectExpiriesForm(String id, IModel model) {
 super(id, model);

 add(new Button("submit-button", new Model("Submit")));

   }
   public void onSubmit() {
 System.out.println("in onSubmit...");
   }
}

and the html is:


   


I also tested this in a separate quickstart and it works fine. I have no 
specific error setup (I disabled . So, something else in my app is must 
be causing this strange behavior.

Pierre-Yves

Nino Wael a écrit :
> Sounds strange, could you poste the source?
> 
> AFAIK, two things should happen either you would get what you wanted or you 
> should get an error. Although this migth be changed if you had special error 
> handling that redirects the user to the home page.
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
> Sent: Mon 09-10-2006 17:18
> To:   wicket-user@lists.sourceforge.net
> Cc:   
> Subject:  [Wicket-user] onSubmit not called in a form
> 
> Hi,
> 
> I have a form and on a page and I believe a click on the submit button 
> should cause a call to the onSubmit method. (No onSubmit in the button, 
> all default settings). By default, I suppose after the call to onSubmit 
> Wicket should redisplay the same page. Instead of this, onSubmit is not 
> called and Wicket displays the home page. I am sure I am doing something 
> wrong, but I can't find what. Any hint about where to look for?
> 
> Pierre-Yves
> 
> 
> -
> 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] Properties string with parameter

2006-10-10 Thread Gwyn Evans
Here's some code I've been using, which I'd have got from somewhere
such as the phonebook or similar...

String msg = MapVariableInterpolator.interpolate(getLocalizer().
   getString((count == 1) ? "status.topup" : "status.topups", this),
  new MicroMap("count", count));

/Gwyn

On 10/10/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> the imodel returns a substition map
>
> wicket doesnt use index parameters, but named ones with the same format as
> in el
>
> so mykey=This is a string value ${myvar}
>
> and in your map have myvar->"whatever"
>
> wicket has great validator support that makes it easy to validate common
> usecases so you might want to look into that
>
> -Igor
>
>
>
> On 10/9/06, craigdd <[EMAIL PROTECTED]> wrote:
> >
> > I have a form object that onSubmit will catch an exception and call the
> error
> > method on the form object.  The key to this error has parameters in it for
> > example here is the string in the .properties for the page that has the
> > form.
> >
> > mykey=This is a string with value {0}.
> >
> > My question is how do I replace the "{0}" part of the string with a value.
> >
> > I'm readin the javadoc for the Localizer method getString and I'm a little
> > confused as to what type of imodel should be used in association with
> > calling getString.

-- 
Download Wicket 1.2.2 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] onSubmit not called in a form

2006-10-10 Thread Pierre-Yves Saumont
I am testing this on a stripped down version of my app. The java code is:

class SelectExpiriesForm extends Form {
   public SelectExpiriesForm(String id, IModel model) {
 super(id, model);

 add(new Button("submit-button", new Model("Submit")));

   }
   public void onSubmit() {
 System.out.println("in onSubmit...");
   }
}

and the html is:


   


I also tested this in a separate quickstart and it works fine. I have no 
specific error setup (I disabled . So, something else in my app is must 
be causing this strange behavior.

Pierre-Yves

Nino Wael a écrit :
> Sounds strange, could you poste the source?
> 
> AFAIK, two things should happen either you would get what you wanted or you 
> should get an error. Although this migth be changed if you had special error 
> handling that redirects the user to the home page.
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
> Sent: Mon 09-10-2006 17:18
> To:   wicket-user@lists.sourceforge.net
> Cc:   
> Subject:  [Wicket-user] onSubmit not called in a form
> 
> Hi,
> 
> I have a form and on a page and I believe a click on the submit button 
> should cause a call to the onSubmit method. (No onSubmit in the button, 
> all default settings). By default, I suppose after the call to onSubmit 
> Wicket should redisplay the same page. Instead of this, onSubmit is not 
> called and Wicket displays the home page. I am sure I am doing something 
> wrong, but I can't find what. Any hint about where to look for?
> 
> Pierre-Yves
> 
> 
> -
> 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] RestartResponseAtInterceptPageException vs RestartResponseException

2006-10-10 Thread Gwyn Evans
Unless I'm missing something, not without some major cut & pasting (or
a  custom version or Wicket).  The actual onSubmit() is down in
SignInForm, which is in SignInPanel, which is in SignInPage. Even if
it wasn't final, (which it is,) then there doesn't seem to be a way of
getting to it to override it.

It didn't seem that unusual a requirement, so I'm slightly surprised
that I'm the first to be asking about this, so wondering if there's a
better way of handling it!

/Gwyn

On 10/10/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> if it is after login. Can't you handle it then in the login.onSubmit code?
>
>
> johan
> \
>
> On 10/9/06, Gwyn Evans < [EMAIL PROTECTED]> wrote:
> > After the login's how I was hoping to go...  Currently checking the
> > (session) stored user details in the BasePage.
> >
> > /Gwyn
> >
> > On 09/10/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > So before the user is logs in?
> > > so in the end you have 2 login pages?
> > > Or after the users logs in, so 2 different directions when the login
> > > succeeds?
> > >
> > > johan
> > >
> > >
> > >
> > > On 10/9/06, Gwyn Evans <[EMAIL PROTECTED] > wrote:
> > > > On a related note, can anyone suggest a good way of adding a way of
> > > > changing the 'destination' page as part of the logging in?
> > > >
> > > > The scenario is that after authenticating the user, I may to redirect
> > > > them to a 'ChangePassword' page.  Is there a better answer than a
> > > > RestartResponseException in my
> > > AuthenticatedWebSession.authenticate()
> > > > implementation?
> > > >
> > > > /Gwyn
> > > >
> > > > On 09/10/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > > The difference is that
> > > RestartResponseAtInterceptPageException records
> > > > > the current request first, which then later - after logging in -
> could
> > > > > be redirected to again.
> > > > >
> > > > > if (!continueToOriginalDestination()) {
> > > > >
> > > setResponsePage(getApplication().getHomePage());
> > > > > }
> > > > >
> > > > > Eelco
> > > > >
> > > > >
> > > > > On 10/9/06, Jan Willem Janssen < [EMAIL PROTECTED] > wrote:
> > > > > > Hi,
> > > > > >
> > > > > > The login-example uses
> > > RestartResponseAtInterceptPageException to forward
> > > > > > a user to the login page when he's not authorized.
> > > > > > What is the difference with throwing an
> > > RestartResponseAtInterceptPageException
> > > > > > instead of a RestartResponseException exception? The latter
> appears to
> > > give the
> > > > > > same behaviour, as far as I can see...

-- 
Download Wicket 1.2.2 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