Re: HeaderContributer for a title

2008-07-01 Thread Eyal Golan
Thanks John,
That is a great way of doing it.

On Tue, Jul 1, 2008 at 5:35 PM, John Krasnay [EMAIL PROTECTED] wrote:

 I like to do this in my base page:

 title wicket:id=titlefoo/title

 protected IModel getPageTitleModel() {
return new ResourceModel(getClass().getSimpleName());
 }

 add(new Label(title, new AbstractReadOnlyModel() {
public Object getObject() {
return getPageTitleModel().getObject();
}
 }));

 The AbstractReadOnlyModel is there to ensure I'm not calling the
 overrideable getPageTitleModel() from my base class constructor.

 By default my page titles come from my application's .properties file,
 like this:

 UserPage=User
 ClientPage=Client

 I re-use these labels when creating links to the same page. Of course, I
 can override getPageTitleModel() to return a custom title when needed.

 jk

 On Tue, Jul 01, 2008 at 03:36:45PM +0300, Eyal Golan wrote:
  yeah, but what if I have a markup inheritance?
  I then must use wicket:head ... don't I ?
 
  On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst 
 [EMAIL PROTECTED]
  wrote:
 
   nope. just use:
  
   title wicket:id=title/title
  
   add(new Label(title, Hello, World!));
  
   On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan [EMAIL PROTECTED] wrote:
Hi,
Is there a special header contributer for title/title ?
   
--
Eyal Golan
[EMAIL PROTECTED]
   
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
   
P Save a tree. Please don't print this e-mail unless it's really
   necessary
   
  
  
  
   --
   Become a Wicket expert, learn from the best: http://wicketinaction.com
   Apache Wicket 1.3.4 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: [Follow up] Ajax link doesn't call event

2008-07-01 Thread ezegb

I ended up commenting loads of code and it turns out my Ajax link will quit
responding if it has something else after itself in the form. I got rid of
all the textfields that followed, and I got it to work. The troublesome
component is actually the ajax link, plus a textfield to input data, plus a
listview displaying that data (the ajax link updates the object and the
listview)

Thanks,

Ezequiel


ezegb wrote:
 
 Hi, the situation is as follows:
 
 I have a form embedded in an abstract panel. The form has an
 autocompletetextfield and an AjaxSubmitLink which acts on the data in the
 textfield. The panel, in turn, extends several other panels which are in
 the end the ones that get instantiated.
 
 The very code for the AjaxSubmitLink is used elsewhere and works fine.
 Now, the issue is that when called on this panel, it won't call its
 onSubmit event. It won't call any other onSubmit event, either. I am
 certain the code is placed in a class extending Form on the Java side, and
 it's certainly enclosed by form in the markup. I'm at a total loss with
 this situation, since it does work in the very same page (the final page
 has two forms, the first one works perfectly, the second -this one- does
 not).
 
 Any help will be most appreciated.
 
 Thanks,
 
 Ezequiel
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Ajax-link-doesn%27t-call-event-tp18219220p18220869.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: patterns for web ui apps. mvc models

2008-07-01 Thread Eelco Hillenius
 I've been thinking about the way in which wicket is an MVC framework and
 whether people use it according to the MVC pattern.

The MVC pattern is bastardized - especially when it comes to web
application frameworks - up to the point that it is hardly useful to
use the term. Everyone seems to have their own interpretation.

If you had to explain Wicket in MVC terms, my take would be that
components represent the Controller and View (together, just like
Swing), and the model is separated behind the IModel interface. But I
think it is better to just let the whole MVC mania behind us and
explain frameworks on their own terms :-)

Eelco

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



Re: patterns for web ui apps. mvc models

2008-07-01 Thread James Carman
On Tue, Jul 1, 2008 at 1:56 PM, Eelco Hillenius
[EMAIL PROTECTED] wrote:
 I've been thinking about the way in which wicket is an MVC framework and
 whether people use it according to the MVC pattern.

 The MVC pattern is bastardized - especially when it comes to web
 application frameworks - up to the point that it is hardly useful to
 use the term. Everyone seems to have their own interpretation.

 If you had to explain Wicket in MVC terms, my take would be that
 components represent the Controller and View (together, just like
 Swing), and the model is separated behind the IModel interface. But I
 think it is better to just let the whole MVC mania behind us and
 explain frameworks on their own terms :-)

You could argue that the view is the markup file and the
controller is the component/page class?

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



Re: Client side validation

2008-07-01 Thread Ryan Sonnek
Okay, I've attached a patch that adds the maxlength html attribute.
On Tue, Jul 1, 2008 at 11:24 AM, Eelco Hillenius [EMAIL PROTECTED]
wrote:

 On Tue, Jul 1, 2008 at 7:11 AM, Ryan Sonnek [EMAIL PROTECTED] wrote:
  Do any of the core validators actually implement this interface?

 Not yet I think, but it's never to late :-)

 Eelco

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




Wicket @ berlin.jar Java Conference

2008-07-01 Thread Jan Kriesten


Hi,

I will present Wicket at berlin.jar.

The presentation will be based on my presentation from october last year (with 
some updates of course). I hope to see some of you around there! :-)


More infos on berlin.jar at http://berlin.jar.jug-bb.de/

Best regards, --- Jan.



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



Re: patterns for web ui apps. mvc models

2008-07-01 Thread Sven Meier
Well, in Wicket the markup doesn't do much (which is a good thing) 
besides layout. If you're correctly using CSS, the markup isn't even 
responsible for the look (and feel).


I don't know if this qualifies it as a 'V' in MVC.

Sven

James Carman schrieb:

On Tue, Jul 1, 2008 at 1:56 PM, Eelco Hillenius
[EMAIL PROTECTED] wrote:
  

I've been thinking about the way in which wicket is an MVC framework and
whether people use it according to the MVC pattern.
  

The MVC pattern is bastardized - especially when it comes to web
application frameworks - up to the point that it is hardly useful to
use the term. Everyone seems to have their own interpretation.

If you had to explain Wicket in MVC terms, my take would be that
components represent the Controller and View (together, just like
Swing), and the model is separated behind the IModel interface. But I
think it is better to just let the whole MVC mania behind us and
explain frameworks on their own terms :-)



You could argue that the view is the markup file and the
controller is the component/page class?

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


  



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



Re: patterns for web ui apps. mvc models

2008-07-01 Thread James Carman
On Tue, Jul 1, 2008 at 2:35 PM, Sven Meier [EMAIL PROTECTED] wrote:
 Well, in Wicket the markup doesn't do much (which is a good thing) besides
 layout. If you're correctly using CSS, the markup isn't even responsible for
 the look (and feel).

 I don't know if this qualifies it as a 'V' in MVC.

Well, I don't really want to get into a debate on what is a V in MVC
or not.  The CSS doesn't do anything by itself.  It has to be applied
to something to get the view doesn't it?  The HTML is an essential
part (the CSS is part too) of the view.

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



Re: patterns for web ui apps. mvc models

2008-07-01 Thread Rodolfo Hansen
Igor, stop taking the piss...

What he means is: Wicket is *NOT* an MVC framework...


On Tue, Jul 1, 2008 at 2:35 PM, Sven Meier [EMAIL PROTECTED] wrote:

 Well, in Wicket the markup doesn't do much (which is a good thing) besides
 layout. If you're correctly using CSS, the markup isn't even responsible for
 the look (and feel).

 I don't know if this qualifies it as a 'V' in MVC.

 Sven

 James Carman schrieb:

  On Tue, Jul 1, 2008 at 1:56 PM, Eelco Hillenius
 [EMAIL PROTECTED] wrote:


 I've been thinking about the way in which wicket is an MVC framework and
 whether people use it according to the MVC pattern.


 The MVC pattern is bastardized - especially when it comes to web
 application frameworks - up to the point that it is hardly useful to
 use the term. Everyone seems to have their own interpretation.

 If you had to explain Wicket in MVC terms, my take would be that
 components represent the Controller and View (together, just like
 Swing), and the model is separated behind the IModel interface. But I
 think it is better to just let the whole MVC mania behind us and
 explain frameworks on their own terms :-)



 You could argue that the view is the markup file and the
 controller is the component/page class?

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






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




Re: patterns for web ui apps. mvc models

2008-07-01 Thread Igor Vaynberg
you mean taking a piss?

-igor

On Tue, Jul 1, 2008 at 11:42 AM, Rodolfo Hansen [EMAIL PROTECTED] wrote:
 Igor, stop taking the piss...

 What he means is: Wicket is *NOT* an MVC framework...


 On Tue, Jul 1, 2008 at 2:35 PM, Sven Meier [EMAIL PROTECTED] wrote:

 Well, in Wicket the markup doesn't do much (which is a good thing) besides
 layout. If you're correctly using CSS, the markup isn't even responsible for
 the look (and feel).

 I don't know if this qualifies it as a 'V' in MVC.

 Sven

 James Carman schrieb:

  On Tue, Jul 1, 2008 at 1:56 PM, Eelco Hillenius
 [EMAIL PROTECTED] wrote:


 I've been thinking about the way in which wicket is an MVC framework and
 whether people use it according to the MVC pattern.


 The MVC pattern is bastardized - especially when it comes to web
 application frameworks - up to the point that it is hardly useful to
 use the term. Everyone seems to have their own interpretation.

 If you had to explain Wicket in MVC terms, my take would be that
 components represent the Controller and View (together, just like
 Swing), and the model is separated behind the IModel interface. But I
 think it is better to just let the whole MVC mania behind us and
 explain frameworks on their own terms :-)



 You could argue that the view is the markup file and the
 controller is the component/page class?

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






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




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



Multiple links on screen, same link on page?

2008-07-01 Thread Manuel Corrales
Hi, i have a table and a couple of pagination controls (links). Is there a
way of duplicate this links (i want the controls to be on top and bottom of
the table) without having to add two times the same links on the page and
without having to use different wicket:id for each link?

Thanks!

Manuel.


Re: generics

2008-07-01 Thread Patrick Angeles

I second Matej here... maybe instead of GenericPanelT, GenericFragmentT,
etc. you could name it something more explicit. Some examples:

SingleModelPanelT
ModelBoundPanelT

It took me the better part of one day to convert a partially genericized
project (we started out with 1.3 then switched to 1.4 mid-stream). The
project had 100k++ LOC. The resulting code is much easier to read.

Another thing that you can consider adding to the core... a utilities class
'Models' to wrap models so you don't have those pesky  all over the place:

public MyPanel(String id, IModelInteger model)
{
   super (id, Models.compound (model)); // wrap model in a
CompoundPropertyModel
}




Matej Knopp-2 wrote:
 
 There is one thing that helped me quite a lot when migration the
 project I'm working out. I've created GenericPanel,
 GenericWebMarkupContainer and GenericFragment classes. In most cases
 the only change was renaming PanelMyClass to GenericPanelMyClass.
 
 I was wondering, even though those classes were farily simple, we
 might want to include them in Wicket anyway, for the sake of
 consistency and convenience.
 
 -Matej
 
 On Mon, Jun 30, 2008 at 12:28 PM, Johan Compagner [EMAIL PROTECTED]
 wrote:
 i looked through the code and it is fine by me.
 Lets test this then in a Build and see what people think of this.


 On Mon, Jun 30, 2008 at 8:54 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

 unit tests are fixed...

 -igor

 On Sun, Jun 29, 2008 at 11:16 PM, Martijn Dashorst
 [EMAIL PROTECTED] wrote:
  I'm guessing somewhere this week or so. We need to flush out the unit
  test failures and get some preliminary feedback. Also we need to have
  time available to actually build the release.
 
  My time is limited because we're in the final stages before publishing
  and I have to read our book twice or so.
 
  Martijn
 
  On Mon, Jun 30, 2008 at 2:36 AM, James Carman
  [EMAIL PROTECTED] wrote:
  What sort of time frame are we looking at for a release with this new
  generics paradigm?
 
  On Sun, Jun 29, 2008 at 3:54 PM, Igor Vaynberg
 [EMAIL PROTECTED]
 wrote:
  On Sun, Jun 29, 2008 at 12:48 PM, Sven Meier [EMAIL PROTECTED]
 wrote:
  Hi,
 
  I've just converted two projects to the new generics setup and
 everything
  worked out nicely.
  I think this is how generics should be applied to Wicket.
 
  Igor, thanks for your hard work on this.
 
  wasnt just me :)
 
  -igor
 
 
  Sven
 
  Igor Vaynberg schrieb:
 
  development of the 1.4 branch has been quiet lately, this is
 because
  the core team has been busy working on an alternative way of
  generifiing the framework. an early result of that effort can be
 found
  here [1]. The key difference in [1] is that we have decoupled the
  component from the type of the model.
 
  here is the list of major differences:
 
  (1) only components that use their model have a generic type
  (components you are likely to call getmodel/getmodelobject on as a
  user). so far these are link,form,formcomponent
  subclasses,listview,listitem,(other repeaters will follow soon).
 this
  allows for typesafety where it makes sense, and eliminates a ton
 of
  noise from code. we will generify others upon request if a good
  usecase is provided and we think it is widely applicable.
 
  (2) non-generified components do not have IModelT get/setModel
 and
 T
  get/setModelObject, instead they have IModel?get/setDefaultModel
 and
  Object get/setDefaultModelObject. this clearly expresses that the
  default component model is not tied to the type of component. this
 is
  a bit of a pain from the code migration point of view, but we
 think
 is
  worth the effort. generifyed components are free to implement the
 old
  IModelT get/setModel, etc, but have to keep the unsafe cast
 inside.
  see ListItem for an example.
 
  basically we feel this is a much cleaner way then what is 1.4m2.
 this
  is a call for confirmation/discussion from our user base. do try
 to
  port a small project or a part of a larger project you are working
 on
  to the [1] branch to see how the new api feels. if we do like this
  more the new branch will be merged into what will be 1.4m3.
 
  [1]
 https://svn.apache.org/repos/asf/wicket/sandbox/ivaynberg/generics
 
  -igor
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: 

Re: generics

2008-07-01 Thread Rodolfo Hansen
I too like this compromise alot

Although I don't see a good use case for generifying Link ?
Am I missing something?


On Fri, Jun 27, 2008 at 2:49 PM, Timo Rantalaiho [EMAIL PROTECTED]
wrote:

 On Fri, 27 Jun 2008, Igor Vaynberg wrote:
  since no one complained, should we apply this change over the weekend?
  and soon thereafter release m3?

 I prefer this over M2. Even though:

   user). so far these are link,form,formcomponent

 Link might be better without the type parameter. It's no big
 deal though.

 And yes, it would be good if for example Johan and Gerolf
 who have invested a lot of effort on the generification
 could have a closer look and tell what they think before
 proceeding.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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




Re: Multiple links on screen, same link on page?

2008-07-01 Thread Igor Vaynberg
no, there is no way to do that. this was a restriction imposed by our
ajax support. win some, lose some.

-igor

On Tue, Jul 1, 2008 at 11:49 AM, Manuel Corrales
[EMAIL PROTECTED] wrote:
 Hi, i have a table and a couple of pagination controls (links). Is there a
 way of duplicate this links (i want the controls to be on top and bottom of
 the table) without having to add two times the same links on the page and
 without having to use different wicket:id for each link?

 Thanks!

 Manuel.


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



Re: generics

2008-07-01 Thread Igor Vaynberg
onPopulateItem(ItemUser item) {
  add(new LinkUser(delete, item.getModel()) {
   protected void onClick() { service.delete(getModelObject()); }
  });
}

-igor

On Tue, Jul 1, 2008 at 11:51 AM, Rodolfo Hansen [EMAIL PROTECTED] wrote:
 I too like this compromise alot

 Although I don't see a good use case for generifying Link ?
 Am I missing something?


 On Fri, Jun 27, 2008 at 2:49 PM, Timo Rantalaiho [EMAIL PROTECTED]
 wrote:

 On Fri, 27 Jun 2008, Igor Vaynberg wrote:
  since no one complained, should we apply this change over the weekend?
  and soon thereafter release m3?

 I prefer this over M2. Even though:

   user). so far these are link,form,formcomponent

 Link might be better without the type parameter. It's no big
 deal though.

 And yes, it would be good if for example Johan and Gerolf
 who have invested a lot of effort on the generification
 could have a closer look and tell what they think before
 proceeding.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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




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



Re: generics

2008-07-01 Thread Patrick Angeles


add (new LinkPerson(edit, person) {
  public void onClick () {
setResponsePage (new EditPersonPage (getModel()));
  }
});

This code makes a lot more sense if it is inside a repeater...


Rodolfo Hansen-2 wrote:
 
 I too like this compromise alot
 
 Although I don't see a good use case for generifying Link ?
 Am I missing something?
 
 
 On Fri, Jun 27, 2008 at 2:49 PM, Timo Rantalaiho [EMAIL PROTECTED]
 wrote:
 
 On Fri, 27 Jun 2008, Igor Vaynberg wrote:
  since no one complained, should we apply this change over the weekend?
  and soon thereafter release m3?

 I prefer this over M2. Even though:

   user). so far these are link,form,formcomponent

 Link might be better without the type parameter. It's no big
 deal though.

 And yes, it would be good if for example Johan and Gerolf
 who have invested a lot of effort on the generification
 could have a closer look and tell what they think before
 proceeding.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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


 
 

-- 
View this message in context: 
http://www.nabble.com/generics-tp18083910p18222901.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: generics

2008-07-01 Thread Joni Freeman
Isn't this a same thing:

onPopulateItem(final ItemUser item) {
  add(new Link(delete) {
protected void onClick() { service.delete(item.getModelObject()); }
  });
}

Joni

On Tue, 2008-07-01 at 11:56 -0700, Igor Vaynberg wrote:
 onPopulateItem(ItemUser item) {
   add(new LinkUser(delete, item.getModel()) {
protected void onClick() { service.delete(getModelObject()); }
   });
 }
 
 -igor
 
 On Tue, Jul 1, 2008 at 11:51 AM, Rodolfo Hansen [EMAIL PROTECTED] wrote:
  I too like this compromise alot
 
  Although I don't see a good use case for generifying Link ?
  Am I missing something?
 
 
  On Fri, Jun 27, 2008 at 2:49 PM, Timo Rantalaiho [EMAIL PROTECTED]
  wrote:
 
  On Fri, 27 Jun 2008, Igor Vaynberg wrote:
   since no one complained, should we apply this change over the weekend?
   and soon thereafter release m3?
 
  I prefer this over M2. Even though:
 
user). so far these are link,form,formcomponent
 
  Link might be better without the type parameter. It's no big
  deal though.
 
  And yes, it would be good if for example Johan and Gerolf
  who have invested a lot of effort on the generification
  could have a closer look and tell what they think before
  proceeding.
 
  Best wishes,
  Timo
 
  --
  Timo Rantalaiho
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: patterns for web ui apps. mvc models

2008-07-01 Thread Rodolfo Hansen
joking about

On Tue, Jul 1, 2008 at 2:45 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 you mean taking a piss?

 -igor

 On Tue, Jul 1, 2008 at 11:42 AM, Rodolfo Hansen [EMAIL PROTECTED]
 wrote:
  Igor, stop taking the piss...
 
  What he means is: Wicket is *NOT* an MVC framework...
 
 
  On Tue, Jul 1, 2008 at 2:35 PM, Sven Meier [EMAIL PROTECTED] wrote:
 
  Well, in Wicket the markup doesn't do much (which is a good thing)
 besides
  layout. If you're correctly using CSS, the markup isn't even responsible
 for
  the look (and feel).
 
  I don't know if this qualifies it as a 'V' in MVC.
 
  Sven
 
  James Carman schrieb:
 
   On Tue, Jul 1, 2008 at 1:56 PM, Eelco Hillenius
  [EMAIL PROTECTED] wrote:
 
 
  I've been thinking about the way in which wicket is an MVC framework
 and
  whether people use it according to the MVC pattern.
 
 
  The MVC pattern is bastardized - especially when it comes to web
  application frameworks - up to the point that it is hardly useful to
  use the term. Everyone seems to have their own interpretation.
 
  If you had to explain Wicket in MVC terms, my take would be that
  components represent the Controller and View (together, just like
  Swing), and the model is separated behind the IModel interface. But I
  think it is better to just let the whole MVC mania behind us and
  explain frameworks on their own terms :-)
 
 
 
  You could argue that the view is the markup file and the
  controller is the component/page class?
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




RE: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread David Leangen

  I think stateless pages already do something like that. Also look at
  hybrid url encoding that also preserves the bookmarkable url and makes
  the url even prettier.
 
  That's possible. I haven't yet made my way into 1.4 waters yet.
 
 none of this is 1.4

In any case, even if this exists for stateless pages, seems to me that this
better expresses the intent. :-)

Haven't checked out hybrid encoding yet, but in the case of
IListenerInterfaceRequestTarget, IIRC the bookmarkable encoder is completely
bypassed, so if the hybrid encoder is used the same as the other
bookmarkable encoders, this won't change anything.


-dml-


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



Re: Wicket Iolite, maven guru wanted

2008-07-01 Thread Maurice Marrink
I wouldn't presume calling myself a maven guru :) but i recently build
an archetype myself too.
I wonder why you have to use resource in your archetype. i get that
your archetype is a maven multiproject but i don't see how using
resource is better then using source.
I am just guessing here but what if use source instead of resource and
add a modules element to the relevant pom.

A different solution would be to not include that code as modules but
as dependencies to a jar, that way you can avoid all the problems.

Maurice

BTW just looking at the wicket archetype has helped me very much.

On Mon, Jun 30, 2008 at 7:24 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Hi

 Could some maven guru please take a look at wicket iolite..? The problem are
 that it is a multi module project, so in order to get it working I had to
 map everything as resources in the archetype.xml , this it not good
 because the java package mojo does not look on these files meaning that java
 packages arent supported:(

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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



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



Re: Wicket Iolite, maven guru wanted

2008-07-01 Thread Nino Saturnino Martinez Vazquez Wael



Maurice Marrink wrote:

I wouldn't presume calling myself a maven guru :) but i recently build
an archetype myself too.
  

Any feedback highly appreciated..:)

I wonder why you have to use resource in your archetype. i get that
your archetype is a maven multiproject but i don't see how using
resource is better then using source.
  
Well it's better because AFAIK it's the only way to do it the 
multi-module way, I cant remember why exactly...

I am just guessing here but what if use source instead of resource and
add a modules element to the relevant pom.
  
What i did before, but it did not work. Again something with package 
structure or something..

A different solution would be to not include that code as modules but
as dependencies to a jar, that way you can avoid all the problems.
  
True but then the whole template thing goes away, which leaves some 
flexibility out, but could actually be an okay idea now that I think 
about it(providing different entity setup classes etc). But still I'll 
loose the multi-module thing..

Maurice

BTW just looking at the wicket archetype has helped me very much.

On Mon, Jun 30, 2008 at 7:24 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
  

Hi

Could some maven guru please take a look at wicket iolite..? The problem are
that it is a multi module project, so in order to get it working I had to
map everything as resources in the archetype.xml , this it not good
because the java package mojo does not look on these files meaning that java
packages arent supported:(

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





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

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: generics

2008-07-01 Thread Sven Meier
Wouldn't it be better to leave the generic part to this reusable link 
then? Why 'pollute' all links with a generic parameter?


Back to your definition:


(1) only components that use their model have a generic type
(components you are likely to call getmodel/getmodelobject on as a
user).


What now? Components that use their model *or* you're likely to call getmodel 
on? Seems to me as two different things:
Link doesn't fit in the first category nor is it always used with a model.

Sven

Igor Vaynberg schrieb:

if your link is anonymous, yes. if you have reusable links in their
own class, then no.

-igor

On Tue, Jul 1, 2008 at 12:24 PM, Joni Freeman [EMAIL PROTECTED] wrote:
  

Isn't this a same thing:

onPopulateItem(final ItemUser item) {
 add(new Link(delete) {
   protected void onClick() { service.delete(item.getModelObject()); }
 });
}

Joni

On Tue, 2008-07-01 at 11:56 -0700, Igor Vaynberg wrote:


onPopulateItem(ItemUser item) {
  add(new LinkUser(delete, item.getModel()) {
   protected void onClick() { service.delete(getModelObject()); }
  });
}

-igor

On Tue, Jul 1, 2008 at 11:51 AM, Rodolfo Hansen [EMAIL PROTECTED] wrote:
  

I too like this compromise alot

Although I don't see a good use case for generifying Link ?
Am I missing something?


On Fri, Jun 27, 2008 at 2:49 PM, Timo Rantalaiho [EMAIL PROTECTED]
wrote:



On Fri, 27 Jun 2008, Igor Vaynberg wrote:
  

since no one complained, should we apply this change over the weekend?
and soon thereafter release m3?


I prefer this over M2. Even though:

  

user). so far these are link,form,formcomponent
  

Link might be better without the type parameter. It's no big
deal though.

And yes, it would be good if for example Johan and Gerolf
who have invested a lot of effort on the generification
could have a closer look and tell what they think before
proceeding.

Best wishes,
Timo

--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/ 

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


  

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

  

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





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


  



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



Re: self refreshing table with effects

2008-07-01 Thread mfs

Created the jira issue https://issues.apache.org/jira/browse/WICKET-1724 with
a quickstart

Initially got it to work by using HyBridURLCodingStrategy with which the
issue wasnt occuring, but then later on for some other issues with using
HUCS was to forced to use QSUCS again and the problem still remains...

Would appreciate if someone could take a look...

Thanks and Regards,

  

Johan Compagner wrote:
 
 create a jira with a test case.
 
 On Mon, Jun 16, 2008 at 2:56 AM, mfs [EMAIL PROTECTED] wrote:
 

 And surprisingly, this issue comes in IE and Safari but not in Mozilla..



 mfs wrote:
 
  Any update on this issue, i am facing an issue somewhat related, where
  clicking on an ajaxlink once the session expiry has reached, gives a
  nullpointer exception at
  BookmarkableListenerInterfaceRequestTarget.processEvents ...(Below is
 the
  exception stack-trace), btw i am using QueryStringUrlCodingStrategy url
  coding strategy to mount the pagesThe behavior is fine for non-ajax
  component, where i am taken to the session-expiry page...
 
  Thanks in advance..
 
  ERROR - RequestCycle   -
  java.lang.NullPointerException
  at
 
 org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:131)
  at
 
 org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
  at
 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
  at
 org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
  at
 
 com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
  at
 
 com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
  at
 
 com.evermind.server.http.HttpRequestHandler.handleNotFound(HttpRequestHandler.java:1041)
  at
 
 com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911)
  at
 
 com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
  at
 
 com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
  at
 
 com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
  at
 
 oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
  at
 
 com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
  at java.lang.Thread.run(Thread.java:595)
 
 
 
 
  Johan Compagner wrote:
 
  Please make a jira issue for this with an example
 
  On 2/20/08, okrohne [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I tried QueryStringUrlCodingStrategy and MixedParamUrlCodingStrategy
 and
  both are throwing
  exceptions. I looked at the example in chapter 15.2 , I don't get the
  point
  of:
 
  ((WebApplication)getApplication()).unmount(cheeses);
 
 ((WebApplication)getApplication()).mountBookmarkablePage(cheeses,
  CheeseDetailsPage.class);
  ((WebApplication)getApplication()).unmount(cheeses);
  ((WebApplication)getApplication()).mount(new
  QueryStringUrlCodingStrategy(cheeses, CheeseDetailsPage.class));
  ((WebApplication)getApplication()).unmount(cheeses);
  ((WebApplication)getApplication()).mount(new
  MixedParamUrlCodingStrategy(cheeses, CheeseDetailsPage.class, new
  String[]{}));
 
  why mount and unmount?
 
  The exceptions are thrown after the first on timer event.
 
 
  QueryStringUrlCodingStrategy gives:
 
  Root cause:
 
  java.lang.NullPointerException
  at
 
 org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:131)
  at
 
 org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90)
  at
 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 
 

Re: generics

2008-07-01 Thread Igor Vaynberg
the question here is: do most people use the model in the Link or not?

when you use compound property model in conjunction with form
components you never call getmodel/object() on those either. what now?
not generify form components? i dont think a strict criteria will
work.

some components fall into a gray area which needs to be discussed and
generified on case by case basis. when i was generifying wicket my
primary usecase is to use Link with a model so i went that way. start
a discussion/vote and see where that goes in a different thread. i
will be happy to go with what the majority thinks in this particular
case.

-igor

On Tue, Jul 1, 2008 at 2:34 PM, Sven Meier [EMAIL PROTECTED] wrote:
 Wouldn't it be better to leave the generic part to this reusable link then?
 Why 'pollute' all links with a generic parameter?

 Back to your definition:

 (1) only components that use their model have a generic type
 (components you are likely to call getmodel/getmodelobject on as a
 user).

 What now? Components that use their model *or* you're likely to call
 getmodel on? Seems to me as two different things:
 Link doesn't fit in the first category nor is it always used with a model.

 Sven

 Igor Vaynberg schrieb:

 if your link is anonymous, yes. if you have reusable links in their
 own class, then no.

 -igor

 On Tue, Jul 1, 2008 at 12:24 PM, Joni Freeman [EMAIL PROTECTED] wrote:


 Isn't this a same thing:

 onPopulateItem(final ItemUser item) {
  add(new Link(delete) {
   protected void onClick() { service.delete(item.getModelObject()); }
  });
 }

 Joni

 On Tue, 2008-07-01 at 11:56 -0700, Igor Vaynberg wrote:


 onPopulateItem(ItemUser item) {
  add(new LinkUser(delete, item.getModel()) {
   protected void onClick() { service.delete(getModelObject()); }
  });
 }

 -igor

 On Tue, Jul 1, 2008 at 11:51 AM, Rodolfo Hansen [EMAIL PROTECTED]
 wrote:


 I too like this compromise alot

 Although I don't see a good use case for generifying Link ?
 Am I missing something?


 On Fri, Jun 27, 2008 at 2:49 PM, Timo Rantalaiho
 [EMAIL PROTECTED]
 wrote:



 On Fri, 27 Jun 2008, Igor Vaynberg wrote:


 since no one complained, should we apply this change over the
 weekend?
 and soon thereafter release m3?


 I prefer this over M2. Even though:



 user). so far these are link,form,formcomponent


 Link might be better without the type parameter. It's no big
 deal though.

 And yes, it would be good if for example Johan and Gerolf
 who have invested a lot of effort on the generification
 could have a closer look and tell what they think before
 proceeding.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

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




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



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




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





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



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



Re: AjaxLink in a DataView causing issues when loading multiple instance of the page

2008-07-01 Thread mfs

Thanks for the follow up Maurice, so i just checked for
AutomaticMultiWindowSupport and turns out its not turn on, now what does
that signify, shouldnt it be turned out automatically ? Also just for info,
havent really changed any setting relating to the session-store and using
whatever is configured to be used by default...

Also let me add, that this problem doesnt occur if i use the
QueryStringURLCodingStrategy() (not sure about other strategies)..and thats
what i changed too, as a workaround to make it work for the time being, but
then i starting facing yet another problem with QSUCS (i.e. AjaxLink causes
an exception on clicking them once the session has expired) which i have
pointed in this thread
(http://www.nabble.com/self-refreshing-table-with-effects-to15545179.html),
and have created a JIRA issue
https://issues.apache.org/jira/browse/WICKET-1724.

Would appreciate any input...

Thanks in advance..


Mr Mean wrote:
 
 This sounds like your page is living in the default pagemap where
 there should be a pagemap for each tab/window each with thee own
 instance of the page.
 can you confirm IPageSettings.getAutomaticMultiWindowSupport is on?
 If so you could take a look at WebPage$PageMapChecker and
 WebPage.onNewBrowserWindow to see what might be causing the auto
 detection to fail. HybridUrlCodingStrategy.encode and decode might
 also shed some light on this matter.
 Finally http://cwiki.apache.org/WICKET/page-maps.html hopefully
 contains some useful information even though i think it is for wicket
 1.2
 
 I never had much to deal with the pagemap myself but hopefully you can
 use the information above as a starting point in your search for a
 solution. Or maybe someone else can shed some more light on this.
 
 Maurice
 
 On Wed, Jun 25, 2008 at 9:34 AM, mfs [EMAIL PROTECTED] wrote:

 To me the problem seems to be related to the hybridUrlCoding strategy
 (where
 the same page instance is reloaded when the user tries to open up a new
 tab/window by doing right-click on AjaxLink) and the DataView which gets
 re-rendered everytime (irrespective of the urlcodingstrategy), resulting
 in
 a new instance of each items in it and similarly a new ajaxlink for each
 item, so with that the page-component heirarchy for that version changes,
 whereas the first-tab/window is still displaying the dataview-items which
 are not in the component-heirarchy anymore and hence the Component Not
 Found on Page exception.

 Am looking for some feedback from the experts, i am in a bit of time
 crunch
 here, and have a release coming pretty soon..

 Thanks in advance...




 mfs wrote:

 Let me add a couple of things here,

 1) Page-Versioning has not been turned off.
 2) Using HybridURLCodingStrategy to render the page.

 Opinions please..




 mfs wrote:

 Hi Guys,

 I am facing a problem with the usage of AjaxLink within a DataView. The
 dataview is contained in a container since the DataView is updated on
 ajaxform.submit. The AjaxLink is on each Item of the DataView, which
 opens up a modal window (with a panel as the content) with further
 details of each item listed in the DV.

 Everything works fine, unless the user tries to open up the same Page
 (containing the above components) in another window/tab, which
 apparently
 results in the wicket component tree getting out of sync with the
 actual
 DOM, and hence clicking the ajaxlink on the first window/tab results in
 the following exception...(must be obvious but just for info, if i do a
 refresh of the same page in the first tab/window, the ajaxlink would
 work
 fine)

 org.apache.wicket.WicketRuntimeException: component
 certificateDataViewContainer:certificateList:2:certificateSummaryLink
 not
 found on page company.wicket.product.page.CertificateSearchPage[id =
 0],
 listener interface = [RequestListenerInterface name=IBehaviorListener,
 method=public abstract void
 org.apache.wicket.behavior.IBehaviorListener.onRequest()]
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:416)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:461)
 at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
 at
 org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
 at
 com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
 at
 com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
 at
 

RE: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Ned Collyer

A possible added bonus to this that it *might* be possible to catch a session
expired, and re-login to the bookmarkable page.
-- 
View this message in context: 
http://www.nabble.com/-PROPOSAL--Use-path-in-URL-when-target-is-instance-of-BookmarkablePageRequestTarget-tp18188845p18228914.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: generics

2008-07-01 Thread Timo Rantalaiho
On Tue, 01 Jul 2008, Matej Knopp wrote:
 There is one thing that helped me quite a lot when migration the
 project I'm working out. I've created GenericPanel,
 GenericWebMarkupContainer and GenericFragment classes. In most cases
 the only change was renaming PanelMyClass to GenericPanelMyClass.

Maybe the names could be TypedPanel / ModelContainingPanel 
or something like that?

Or maybe start with the original component name so that they
would pop up more easily in the IDE, for example
PanelWithType / PanelWithModel? 

 I was wondering, even though those classes were farily simple, we
 might want to include them in Wicket anyway, for the sake of
 consistency and convenience.

I thought about this and I think that it might be better to
not include them after all. In 1.5 it would be great to
separate IModel and Component more thoroughly, getting rid
of the defaultModel* accessors. Then it would make less
sense to have the convenience classes with those model and
modelObject accessors.

In cases where two components share the same model, it would
make sense to make the IModel field in each component final.
Then setModel() does not make sense any more; all it could
do would be throw an exception or be a confusing no-op.
Likewise, sometimes you never do setModelObject() or
getModelObject() from outside the class.

Leaner APIs and less methods per objects are good things.
Hence it's better to add methods as you need them, instead
of providing a lot of convenience stuff that is only used a
part of the time. Surely each Component subclass has anyway
a lot of methods, and MarkupContainers even more, but you
have got to start somewhere :)

This is not a big deal though, either way is fine by me.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: [Follow up] Ajax link doesn't call event

2008-07-01 Thread Timo Rantalaiho
On Tue, 01 Jul 2008, ezegb wrote:
 I ended up commenting loads of code and it turns out my Ajax link will quit
 responding if it has something else after itself in the form. I got rid of
 all the textfields that followed, and I got it to work. The troublesome
 component is actually the ajax link, plus a textfield to input data, plus a
 listview displaying that data (the ajax link updates the object and the
 listview)

If you can provide a quickstart containing only the few
necessary parts, others can try checking it it's a bug or
if you can fix something in your code.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: Multiple links on screen, same link on page?

2008-07-01 Thread Timo Rantalaiho
On Tue, 01 Jul 2008, Manuel Corrales wrote:
 Hi, i have a table and a couple of pagination controls (links). Is there a
 way of duplicate this links (i want the controls to be on top and bottom of
 the table) without having to add two times the same links on the page and
 without having to use different wicket:id for each link?

Are you using your own components for these things, or some
ready-made Wicket DataTables or such?

I think that if you group the controls in their own
component (WebMarkupContainer) you should be fine adding
that twice with different ids, without the need to invent
different wicket:id for each link.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



IE/Safari - AjaxLink raises exception on Session-Expiry

2008-07-01 Thread mfs

Guys,

I am facing this issue (with Safari/IE) with the usage of AjaxLink when used
on a page mounted though any of the
BookmarkablePageRequestTargetUrlCodingStrategy extensions 

To be precise i get a NullPointerException (in
BookmarkableListenerInterfaceRequestTarget.processEvents) when clicking the
AjaxLink after the session-expiry has reached.. 

I have created this ticket with a quick-start
(https://issues.apache.org/jira/browse/WICKET-1724), if anyone could please
take a look into it..

The issue doesnt occur so 

Thanks in advance


-- 
View this message in context: 
http://www.nabble.com/IE-Safari---AjaxLink-raises-exception-on-Session-Expiry-tp18229800p18229800.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



IE/Safari - AjaxLink raises exception on Session-Expiry

2008-07-01 Thread mfs

Guys,

I am facing this issue (with Safari/IE) with the usage of AjaxLink when used
on a page mounted though any of the
BookmarkablePageRequestTargetUrlCodingStrategy extensions

To be precise i get a NullPointerException (in
BookmarkableListenerInterfaceRequestTarget.processEvents) when clicking the
AjaxLink after the session-expiry has reached..

I have created this ticket with a quick-start
(https://issues.apache.org/jira/browse/WICKET-1724), if someone could please
take a look into it..

Thanks in advance 
-- 
View this message in context: 
http://www.nabble.com/IE-Safari---AjaxLink-raises-exception-on-Session-Expiry-tp18229807p18229807.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



configuring wicket:id from Java code in TITLE in a page

2008-07-01 Thread Rakesh Sinha
I am trying to have the title of a given page, populated from the code.

HTML:
==
html
head
titlewicket:id=mysiteName/title
/head
body
strongHomepage/strong
br /
br /
span wicket:id=messagemessage will be here/span
/body
/html

Java: (HomePage.java only)
=

public class HomePage extends WebPage {
   public HomePage(final PageParameters parameters) {
// Add the simplest type of label
add(new Label(message, MESSAGE));
add(new Label(mysiteName, mysite));
// TODO Add your page's components here
}

static final String MESSAGE = If you see this message wicket is
properly configured and running;
}

I am getting the following error.

ERROR - RequestCycle   - The component(s) below failed to
render. A common problem is that you have added a component in code
but forgot to reference it in the markup (thus the component will
never be rendered).

1. [Component id = mysiteName, page = pages.HomePage, path =
0:mysiteName.Label, isVisible = true, isVersioned = true]

org.apache.wicket.WicketRuntimeException: The component(s) below
failed to render. A common problem is that you have added a component
in code but forgot to reference it in the markup (thus the component
will never be rendered).

1. [Component id = mysiteName, page = pages.HomePage, path =
0:mysiteName.Label, isVisible = true, isVersioned = true]

at org.apache.wicket.Page.checkRendering(Page.java:1115)


Can somebody help me here.

I am using this with Wicket 1.3.4 . (with Jetty engine).
Thanks.

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



Re: IE/Safari - AjaxLink raises exception on Session-Expiry

2008-07-01 Thread mfs

Let me also add that 1 out of 5 times, it works fine as expected, i.e. the
SessionExpiry page is shown.

mfs wrote:
 
 Guys,
 
 I am facing this issue (with Safari/IE) with the usage of AjaxLink when
 used on a page mounted though any of the
 BookmarkablePageRequestTargetUrlCodingStrategy extensions
 
 To be precise i get a NullPointerException (in
 BookmarkableListenerInterfaceRequestTarget.processEvents) when clicking
 the AjaxLink after the session-expiry has reached..
 
 I have created this ticket with a quick-start
 (https://issues.apache.org/jira/browse/WICKET-1724), if someone could
 please take a look into it..
 
 Thanks in advance 
 

-- 
View this message in context: 
http://www.nabble.com/IE-Safari---AjaxLink-raises-exception-on-Session-Expiry-tp18229807p18229976.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Igor Vaynberg
not unless you are planning on keeping any existing query params in
the url for the duration of the entire session, a lot of bookmarkable
pages need context.

once again, i dont see what this offers over the hybrid strategy.

-igor

On Tue, Jul 1, 2008 at 7:05 PM, Ned Collyer [EMAIL PROTECTED] wrote:

 A possible added bonus to this that it *might* be possible to catch a session
 expired, and re-login to the bookmarkable page.
 --
 View this message in context: 
 http://www.nabble.com/-PROPOSAL--Use-path-in-URL-when-target-is-instance-of-BookmarkablePageRequestTarget-tp18188845p18228914.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: configuring wicket:id from Java code in TITLE in a page

2008-07-01 Thread Igor Vaynberg
title wicket:id=mysiteName[title will be here]/title

just like the span...

-igor

On Tue, Jul 1, 2008 at 9:01 PM, Rakesh Sinha [EMAIL PROTECTED] wrote:
 I am trying to have the title of a given page, populated from the code.

 HTML:
 ==
 html
 head
 titlewicket:id=mysiteName/title
 /head
 body
 strongHomepage/strong
 br /
 br /
 span wicket:id=messagemessage will be here/span
 /body
 /html

 Java: (HomePage.java only)
 =

 public class HomePage extends WebPage {
   public HomePage(final PageParameters parameters) {
// Add the simplest type of label
add(new Label(message, MESSAGE));
add(new Label(mysiteName, mysite));
// TODO Add your page's components here
}

static final String MESSAGE = If you see this message wicket is
 properly configured and running;
 }

 I am getting the following error.

 ERROR - RequestCycle   - The component(s) below failed to
 render. A common problem is that you have added a component in code
 but forgot to reference it in the markup (thus the component will
 never be rendered).

 1. [Component id = mysiteName, page = pages.HomePage, path =
 0:mysiteName.Label, isVisible = true, isVersioned = true]

 org.apache.wicket.WicketRuntimeException: The component(s) below
 failed to render. A common problem is that you have added a component
 in code but forgot to reference it in the markup (thus the component
 will never be rendered).

 1. [Component id = mysiteName, page = pages.HomePage, path =
 0:mysiteName.Label, isVisible = true, isVersioned = true]

at org.apache.wicket.Page.checkRendering(Page.java:1115)


 Can somebody help me here.

 I am using this with Wicket 1.3.4 . (with Jetty engine).
 Thanks.

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



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



Re: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread David Leangen
 once again, i dont see what this offers over the hybrid strategy.

Maybe you can correct me if I'm wrong here...

The hybrid stategy is only applied when the target is an
IBookmarkablePageRequestTarget. So, for normal bookmarkable pages, there
is no problem, like you say.

The issue only arises when a page is mounted, but is used in a stateful
way (for example it has a form or something). In that case, the target
becomes an IListenerInterfaceRequestTarget. When this is the case, the
hybrid strategy is not used. This is the case that the patch is intended
for.


-dml-



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



Re: Multiple links on screen, same link on page?

2008-07-01 Thread Nino Saturnino Martinez Vazquez Wael

Yup dependancy on id's are in a hierachy:)

Timo Rantalaiho wrote:

On Tue, 01 Jul 2008, Manuel Corrales wrote:
  

Hi, i have a table and a couple of pagination controls (links). Is there a
way of duplicate this links (i want the controls to be on top and bottom of
the table) without having to add two times the same links on the page and
without having to use different wicket:id for each link?



Are you using your own components for these things, or some
ready-made Wicket DataTables or such?

I think that if you group the controls in their own
component (WebMarkupContainer) you should be fine adding
that twice with different ids, without the need to invent
different wicket:id for each link.

Best wishes,
Timo

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: configuring wicket:id from Java code in TITLE in a page

2008-07-01 Thread Rakesh Sinha
Thanks Igor. That works.

Thanks Apache Wicket team once again for a wonderful framework.

On Wed, Jul 2, 2008 at 12:37 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 title wicket:id=mysiteName[title will be here]/title

 just like the span...

 -igor

 On Tue, Jul 1, 2008 at 9:01 PM, Rakesh Sinha [EMAIL PROTECTED] wrote:
 I am trying to have the title of a given page, populated from the code.

 HTML:
 ==
 html
 head
 titlewicket:id=mysiteName/title
 /head
 body
 strongHomepage/strong
 br /
 br /
 span wicket:id=messagemessage will be here/span
 /body
 /html

 Java: (HomePage.java only)
 =

 public class HomePage extends WebPage {
   public HomePage(final PageParameters parameters) {
// Add the simplest type of label
add(new Label(message, MESSAGE));
add(new Label(mysiteName, mysite));
// TODO Add your page's components here
}

static final String MESSAGE = If you see this message wicket is
 properly configured and running;
 }

 I am getting the following error.

 ERROR - RequestCycle   - The component(s) below failed to
 render. A common problem is that you have added a component in code
 but forgot to reference it in the markup (thus the component will
 never be rendered).

 1. [Component id = mysiteName, page = pages.HomePage, path =
 0:mysiteName.Label, isVisible = true, isVersioned = true]

 org.apache.wicket.WicketRuntimeException: The component(s) below
 failed to render. A common problem is that you have added a component
 in code but forgot to reference it in the markup (thus the component
 will never be rendered).

 1. [Component id = mysiteName, page = pages.HomePage, path =
 0:mysiteName.Label, isVisible = true, isVersioned = true]

at org.apache.wicket.Page.checkRendering(Page.java:1115)


 Can somebody help me here.

 I am using this with Wicket 1.3.4 . (with Jetty engine).
 Thanks.

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



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



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



Re: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Johan Compagner
I think stateless pages already do something like that. Also look at
hybrid url encoding that also preserves the bookmarkable url and makes
the url even prettier.

On 6/30/08, David Leangen [EMAIL PROTECTED] wrote:

 Currently, when a target is an instance of
 IListenerInterfaceRequestTarget, the URL gets mounted (so to speak) on
 the root of where the wicket application is located.

 So, if the servlet context path for the wicket application is set
 to /home/, then all targets (whether bookmarkable or not), are written
 as something like /home/?wicket:interface=:0.

 This works, but I think it somewhat defeats the purpose of having
 mounted pages.

 Rather, I think it would be better that when the target is an instance
 of BookmarkablePageRequestTarget, since we can get the target path
 easily, we should therefore write the URL to that target path, and not
 the application's root path.

 So, if I have a form on a page mounted at /home/myform, the above link
 gets rendered as /home/myform/?wicket:interface=:0 instead.


 Now, I perfectly understand that this type page has state, so is no
 longer bookmarkable. However, at least we can preserve the pretty URL
 aspect of the page, which IMO is the original intent.

 [On that topic, I notice that people often confuse the two
 related-but-different topics of pretty urls and bookmarkable pages.
 I wonder if there isn't a better way of formalising the two concepts so
 people get less confused... no ideas, just thinking out loud.]


 Anyway, I tried this out by modifying WebRequestCodingStrategy. The fix
 is quite simple and it appears to work without any problems.


 If you think this is a reasonable proposal, I will create an issue and
 submit my patch.


 Thank you!
 David




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



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



No effect of code until restarting netbeans.

2008-07-01 Thread Sushant

I am a newuser using wicket. I have been facing this problem since a week. 

I'm in serious trouble. Whenever i make any changes in my code in netbeans
the changes i have made doesn't works until i restart netbeans. After
restarting my netbeans the changes that i have made in my code works. 
For e.g. If i have set as setResponsePage(Home.class) and later i change it
to setResponsePage(Index.class) and save it. Now if i run my project than it
still shows Home page until i restart netbeans. After i restart netbeans the
problem is solved.

I'm using netbeans 6.1
Please help me with this problem.
-- 
View this message in context: 
http://www.nabble.com/No-effect-of-code-until-restarting-netbeans.-tp18211238p18211238.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Strange stack trace in logs

2008-07-01 Thread Piller Sébastien

Hello,

I've put my wicket app in production for a bit more than a month now. 
Yesterday, I tried to see what is in the logs. I see a lot of stacktrace 
like this:


org.apache.wicket.WicketRuntimeException: Internal error parsing 
wicket:interface = :57:container1:link1
   at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:583)
   at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:554)
   at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:199)

   at org.apache.wicket.Request.getRequestParameters(Request.java:171)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
   at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
   at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

   at java.lang.Thread.run(Unknown Source)

But I'm not able to reproduce it...

My Wicket code looks like this:

1- DefaultPage.java
public abstract class DefaultPage extends WebPage {
   public DefaultPage() {
   WebMarkupContainer container1=...;
   Link link1 = ...;
   link1.add(new Image(link1, new 
ResourceReference(DefaultPage.class, link1.png, 
getSession().getLocale(), null)));

   }
}

2- Index.java
public class Index extends DefaultPage { ... }


May it be a back button issue? Must I put some code on the 
onBeforeRender to refresh the resource references?


Any idea are welcome ;)

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



More on wicket url stratergy

2008-07-01 Thread Mathias P.W Nilsson

In my itemList class I set the response page like this. 

setResponsePage(  new ItemPage( parameters, ItemListPage.this ) );

Now the ItemListPage.this is for back travelling and to get the background
from the list class. Is it possible to make the itemPage bookmarkable?
-- 
View this message in context: 
http://www.nabble.com/More-on-wicket-url-stratergy-tp18212748p18212748.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: More on wicket url stratergy

2008-07-01 Thread David Leangen
On Tue, 2008-07-01 at 02:50 -0700, Mathias P.W Nilsson wrote:
 In my itemList class I set the response page like this. 
 
 setResponsePage(  new ItemPage( parameters, ItemListPage.this ) );
 
 Now the ItemListPage.this is for back travelling and to get the background
 from the list class. Is it possible to make the itemPage bookmarkable?

Sure, but you can no longer construct the object yourself. You'll need
to do this instead:

  setResponsePage( ItemListPage.class, parameters );




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



Re: No effect of code until restarting netbeans.

2008-07-01 Thread Thomas Mäder
Are you running in debug mode? Did you try to restart the server?

On Tue, Jul 1, 2008 at 9:58 AM, Sushant [EMAIL PROTECTED] wrote:


 I am a newuser using wicket. I have been facing this problem since a week.

 I'm in serious trouble. Whenever i make any changes in my code in netbeans
 the changes i have made doesn't works until i restart netbeans. After
 restarting my netbeans the changes that i have made in my code works.
 For e.g. If i have set as setResponsePage(Home.class) and later i change it
 to setResponsePage(Index.class) and save it. Now if i run my project than
 it
 still shows Home page until i restart netbeans. After i restart netbeans
 the
 problem is solved.

 I'm using netbeans 6.1
 Please help me with this problem.
 --
 View this message in context:
 http://www.nabble.com/No-effect-of-code-until-restarting-netbeans.-tp18211238p18211238.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: No effect of code until restarting netbeans.

2008-07-01 Thread Martijn Dashorst
You have to make the project to compile the changed classes.

Martijn

On Tue, Jul 1, 2008 at 12:09 PM, Thomas Mäder [EMAIL PROTECTED] wrote:
 Are you running in debug mode? Did you try to restart the server?

 On Tue, Jul 1, 2008 at 9:58 AM, Sushant [EMAIL PROTECTED] wrote:


 I am a newuser using wicket. I have been facing this problem since a week.

 I'm in serious trouble. Whenever i make any changes in my code in netbeans
 the changes i have made doesn't works until i restart netbeans. After
 restarting my netbeans the changes that i have made in my code works.
 For e.g. If i have set as setResponsePage(Home.class) and later i change it
 to setResponsePage(Index.class) and save it. Now if i run my project than
 it
 still shows Home page until i restart netbeans. After i restart netbeans
 the
 problem is solved.

 I'm using netbeans 6.1
 Please help me with this problem.
 --
 View this message in context:
 http://www.nabble.com/No-effect-of-code-until-restarting-netbeans.-tp18211238p18211238.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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






-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: generics

2008-07-01 Thread Matej Knopp
There is one thing that helped me quite a lot when migration the
project I'm working out. I've created GenericPanel,
GenericWebMarkupContainer and GenericFragment classes. In most cases
the only change was renaming PanelMyClass to GenericPanelMyClass.

I was wondering, even though those classes were farily simple, we
might want to include them in Wicket anyway, for the sake of
consistency and convenience.

-Matej

On Mon, Jun 30, 2008 at 12:28 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 i looked through the code and it is fine by me.
 Lets test this then in a Build and see what people think of this.


 On Mon, Jun 30, 2008 at 8:54 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

 unit tests are fixed...

 -igor

 On Sun, Jun 29, 2008 at 11:16 PM, Martijn Dashorst
 [EMAIL PROTECTED] wrote:
  I'm guessing somewhere this week or so. We need to flush out the unit
  test failures and get some preliminary feedback. Also we need to have
  time available to actually build the release.
 
  My time is limited because we're in the final stages before publishing
  and I have to read our book twice or so.
 
  Martijn
 
  On Mon, Jun 30, 2008 at 2:36 AM, James Carman
  [EMAIL PROTECTED] wrote:
  What sort of time frame are we looking at for a release with this new
  generics paradigm?
 
  On Sun, Jun 29, 2008 at 3:54 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
  On Sun, Jun 29, 2008 at 12:48 PM, Sven Meier [EMAIL PROTECTED] wrote:
  Hi,
 
  I've just converted two projects to the new generics setup and
 everything
  worked out nicely.
  I think this is how generics should be applied to Wicket.
 
  Igor, thanks for your hard work on this.
 
  wasnt just me :)
 
  -igor
 
 
  Sven
 
  Igor Vaynberg schrieb:
 
  development of the 1.4 branch has been quiet lately, this is because
  the core team has been busy working on an alternative way of
  generifiing the framework. an early result of that effort can be
 found
  here [1]. The key difference in [1] is that we have decoupled the
  component from the type of the model.
 
  here is the list of major differences:
 
  (1) only components that use their model have a generic type
  (components you are likely to call getmodel/getmodelobject on as a
  user). so far these are link,form,formcomponent
  subclasses,listview,listitem,(other repeaters will follow soon). this
  allows for typesafety where it makes sense, and eliminates a ton of
  noise from code. we will generify others upon request if a good
  usecase is provided and we think it is widely applicable.
 
  (2) non-generified components do not have IModelT get/setModel and
 T
  get/setModelObject, instead they have IModel?get/setDefaultModel
 and
  Object get/setDefaultModelObject. this clearly expresses that the
  default component model is not tied to the type of component. this is
  a bit of a pain from the code migration point of view, but we think
 is
  worth the effort. generifyed components are free to implement the old
  IModelT get/setModel, etc, but have to keep the unsafe cast inside.
  see ListItem for an example.
 
  basically we feel this is a much cleaner way then what is 1.4m2. this
  is a call for confirmation/discussion from our user base. do try to
  port a small project or a part of a larger project you are working on
  to the [1] branch to see how the new api feels. if we do like this
  more the new branch will be merged into what will be 1.4m3.
 
  [1]
 https://svn.apache.org/repos/asf/wicket/sandbox/ivaynberg/generics
 
  -igor
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.4 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




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



Re: More on wicket url stratergy

2008-07-01 Thread Mathias P.W Nilsson

Thanks, but this what not what I meant


My ItemPage takes the ItemListPage as a parameter in the constructor so that
I can go back to the
exact location I were before.

Now If I want to use the Item as a bookmarkable page, how can this be
achieved with a reference to ItemListPage?
-- 
View this message in context: 
http://www.nabble.com/More-on-wicket-url-stratergy-tp18212748p18214136.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



patterns for web ui apps. mvc models

2008-07-01 Thread marco m

Hi  guys,

I've been thinking about the way in which wicket is an MVC framework and
whether people use it according to the MVC pattern.

Wikipedia has this to say:

Model
The domain-specific representation of the information on which the
application operates. Domain logic adds meaning to raw data (e.g.,
calculating if today is the user's birthday, or the totals, taxes, and
shipping charges for shopping cart items).
Many applications use a persistent storage mechanism (such as a
database) to store data. MVC does not specifically mention the data access
layer because it is understood to be underneath or encapsulated by the
Model.
View
Renders the model into a form suitable for interaction, typically a user
interface element. Multiple views can exist for a single model for different
purposes.
Controller
Processes and responds to events, typically user actions, and may invoke
changes on the model. 

I'm interested in whether people are using the model to encapsulate service
calls.  In the wicket documentation I frequently see services in the page
retrieving dtos and passing the dto to a component as a model.  This seems
to be in conflict with the description of a model in the mvc pattern. 
Wicket is supposed to be an mvc framework, so why do the examples put
services/daos in the pages?

What patterns are folks using for their wicket apps?
-- 
View this message in context: 
http://www.nabble.com/patterns-for-web-ui-apps.--mvc-models-tp18214140p18214140.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



HeaderContributer for a title

2008-07-01 Thread Eyal Golan
Hi,
Is there a special header contributer for title/title ?

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: HeaderContributer for a title

2008-07-01 Thread Martijn Dashorst
nope. just use:

title wicket:id=title/title

add(new Label(title, Hello, World!));

On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan [EMAIL PROTECTED] wrote:
 Hi,
 Is there a special header contributer for title/title ?

 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P Save a tree. Please don't print this e-mail unless it's really necessary




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: HeaderContributer for a title

2008-07-01 Thread Eyal Golan
yeah, but what if I have a markup inheritance?
I then must use wicket:head ... don't I ?

On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst [EMAIL PROTECTED]
wrote:

 nope. just use:

 title wicket:id=title/title

 add(new Label(title, Hello, World!));

 On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan [EMAIL PROTECTED] wrote:
  Hi,
  Is there a special header contributer for title/title ?
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary


Re: Client side validation

2008-07-01 Thread Ryan Sonnek
Do any of the core validators actually implement this interface?
I have an issue filed in JIRA for the StringValidator.maximumLength()
validator to append the maxlength HTML attribute to form components.
https://issues.apache.org/jira/browse/WICKET-1310

This seems like a perfect place to implement this feature.

On Mon, Jun 30, 2008 at 12:53 PM, Eelco Hillenius [EMAIL PROTECTED]
wrote:

  That's why we introduced IValidatorAddListener in the past if I
  remember correctly. I validator that implements IValidatorAddListener
  can add behaviors in the onAdded method, so it is already possible to
  design validators that take care of both server- and client side
  validation.

 Javadocs from that class:

 public interface IValidatorAddListener extends IClusterable
 {
/**
 * Called right after a validator is added to a [EMAIL PROTECTED] 
 Form} or
 [EMAIL PROTECTED] FormComponent}. A common
 * use case for implementing this interface is for validators to add
 behaviors to implement
 * client-side validation capabilities, e.g. through JavaScript,
 Ajax
 or just by adding a simple
 * attribute modifier that sets a maxlength attribute.
 *
 * @param component
 *a codeComponent/code to which the validator was
 just added
 */
void onAdded(Component component);
 }

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




Re: HeaderContributer for a title

2008-07-01 Thread Martijn Dashorst
only if you define the title wicket:id=foo/title in your sub pages.

Martijn

On Tue, Jul 1, 2008 at 2:36 PM, Eyal Golan [EMAIL PROTECTED] wrote:
 yeah, but what if I have a markup inheritance?
 I then must use wicket:head ... don't I ?

 On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst [EMAIL PROTECTED]
 wrote:

 nope. just use:

 title wicket:id=title/title

 add(new Label(title, Hello, World!));

 On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan [EMAIL PROTECTED] wrote:
  Hi,
  Is there a special header contributer for title/title ?
 
  --
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P Save a tree. Please don't print this e-mail unless it's really
 necessary
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P Save a tree. Please don't print this e-mail unless it's really necessary




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: HeaderContributer for a title

2008-07-01 Thread John Krasnay
I like to do this in my base page:

title wicket:id=titlefoo/title

protected IModel getPageTitleModel() {
return new ResourceModel(getClass().getSimpleName());
}

add(new Label(title, new AbstractReadOnlyModel() {
public Object getObject() {
return getPageTitleModel().getObject();
}
}));

The AbstractReadOnlyModel is there to ensure I'm not calling the
overrideable getPageTitleModel() from my base class constructor.

By default my page titles come from my application's .properties file,
like this:

UserPage=User
ClientPage=Client

I re-use these labels when creating links to the same page. Of course, I
can override getPageTitleModel() to return a custom title when needed.

jk

On Tue, Jul 01, 2008 at 03:36:45PM +0300, Eyal Golan wrote:
 yeah, but what if I have a markup inheritance?
 I then must use wicket:head ... don't I ?
 
 On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst [EMAIL PROTECTED]
 wrote:
 
  nope. just use:
 
  title wicket:id=title/title
 
  add(new Label(title, Hello, World!));
 
  On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan [EMAIL PROTECTED] wrote:
   Hi,
   Is there a special header contributer for title/title ?
  
   --
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit: http://jvdrums.sourceforge.net/
   LinkedIn: http://www.linkedin.com/in/egolan74
  
   P Save a tree. Please don't print this e-mail unless it's really
  necessary
  
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.4 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 Eyal Golan
 [EMAIL PROTECTED]
 
 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74
 
 P Save a tree. Please don't print this e-mail unless it's really necessary

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



Re: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Igor Vaynberg
none of this is 1.4

-igor

On Mon, Jun 30, 2008 at 11:50 PM, David Leangen [EMAIL PROTECTED] wrote:

 On Tue, 2008-07-01 at 08:48 +0200, Johan Compagner wrote:
 I think stateless pages already do something like that. Also look at
 hybrid url encoding that also preserves the bookmarkable url and makes
 the url even prettier.

 That's possible. I haven't yet made my way into 1.4 waters yet.

 -dml-




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



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



Re: patterns for web ui apps. mvc models

2008-07-01 Thread Igor Vaynberg
On Tue, Jul 1, 2008 at 5:07 AM, marco m [EMAIL PROTECTED] wrote:
 Wicket is supposed to be an mvc framework, so why do the examples put
 services/daos in the pages?

it is? that is big news to me.

-igor


 What patterns are folks using for their wicket apps?
 --
 View this message in context: 
 http://www.nabble.com/patterns-for-web-ui-apps.--mvc-models-tp18214140p18214140.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: patterns for web ui apps. mvc models

2008-07-01 Thread Thomas Mäder
Wicket is a framework to write (mostly) statefulweb pages. Unlike other web
frameworks it does not impose a particular way to structure the application
logic beyond that. Think of it like, say, the QT widget set. It's a way to
display information and to be notified of user interactions.

Thomas

PS: when did the notion start that design pattens had an intrinsic value?
Now new and improved with more patterns! Patterns are ways to structure
code WHEN IT NEEDS STRUCTURING. A HelloWorld app DOES NOT NEED PATTERNS.
(sorry for the shouting, pet peeve)

On Tue, Jul 1, 2008 at 2:07 PM, marco m [EMAIL PROTECTED] wrote:


 Hi  guys,

 I've been thinking about the way in which wicket is an MVC framework and
 whether people use it according to the MVC pattern.

 Wikipedia has this to say:

 Model
The domain-specific representation of the information on which the
 application operates. Domain logic adds meaning to raw data (e.g.,
 calculating if today is the user's birthday, or the totals, taxes, and
 shipping charges for shopping cart items).
Many applications use a persistent storage mechanism (such as a
 database) to store data. MVC does not specifically mention the data access
 layer because it is understood to be underneath or encapsulated by the
 Model.
 View
Renders the model into a form suitable for interaction, typically a user
 interface element. Multiple views can exist for a single model for
 different
 purposes.
 Controller
Processes and responds to events, typically user actions, and may invoke
 changes on the model.

 I'm interested in whether people are using the model to encapsulate service
 calls.  In the wicket documentation I frequently see services in the page
 retrieving dtos and passing the dto to a component as a model.  This seems
 to be in conflict with the description of a model in the mvc pattern.
 Wicket is supposed to be an mvc framework, so why do the examples put
 services/daos in the pages?

 What patterns are folks using for their wicket apps?
 --
 View this message in context:
 http://www.nabble.com/patterns-for-web-ui-apps.--mvc-models-tp18214140p18214140.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: patterns for web ui apps. mvc models

2008-07-01 Thread Igor Vaynberg
if it doesnt have patterns how will the enterprise architect be able
to model it

-igor

On Tue, Jul 1, 2008 at 8:23 AM, Thomas Mäder [EMAIL PROTECTED] wrote:
 Wicket is a framework to write (mostly) statefulweb pages. Unlike other web
 frameworks it does not impose a particular way to structure the application
 logic beyond that. Think of it like, say, the QT widget set. It's a way to
 display information and to be notified of user interactions.

 Thomas

 PS: when did the notion start that design pattens had an intrinsic value?
 Now new and improved with more patterns! Patterns are ways to structure
 code WHEN IT NEEDS STRUCTURING. A HelloWorld app DOES NOT NEED PATTERNS.
 (sorry for the shouting, pet peeve)

 On Tue, Jul 1, 2008 at 2:07 PM, marco m [EMAIL PROTECTED] wrote:


 Hi  guys,

 I've been thinking about the way in which wicket is an MVC framework and
 whether people use it according to the MVC pattern.

 Wikipedia has this to say:

 Model
The domain-specific representation of the information on which the
 application operates. Domain logic adds meaning to raw data (e.g.,
 calculating if today is the user's birthday, or the totals, taxes, and
 shipping charges for shopping cart items).
Many applications use a persistent storage mechanism (such as a
 database) to store data. MVC does not specifically mention the data access
 layer because it is understood to be underneath or encapsulated by the
 Model.
 View
Renders the model into a form suitable for interaction, typically a user
 interface element. Multiple views can exist for a single model for
 different
 purposes.
 Controller
Processes and responds to events, typically user actions, and may invoke
 changes on the model.

 I'm interested in whether people are using the model to encapsulate service
 calls.  In the wicket documentation I frequently see services in the page
 retrieving dtos and passing the dto to a component as a model.  This seems
 to be in conflict with the description of a model in the mvc pattern.
 Wicket is supposed to be an mvc framework, so why do the examples put
 services/daos in the pages?

 What patterns are folks using for their wicket apps?
 --
 View this message in context:
 http://www.nabble.com/patterns-for-web-ui-apps.--mvc-models-tp18214140p18214140.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Ajax link doesn't call event

2008-07-01 Thread ezegb

Hi, the situation is as follows:

I have a form embedded in an abstract panel. The form has an
autocompletetextfield and an AjaxSubmitLink which acts on the data in the
textfield. The panel, in turn, extends several other panels which are in the
end the ones that get instantiated.

The very code for the AjaxSubmitLink is used elsewhere and works fine. Now,
the issue is that when called on this panel, it won't call its onSubmit
event. It won't call any other onSubmit event, either. I am certain the code
is placed in a class extending Form on the Java side, and it's certainly
enclosed by form in the markup. I'm at a total loss with this situation,
since it does work in the very same page (the final page has two forms, the
first one works perfectly, the second -this one- does not).

Any help will be most appreciated.

Thanks,

Ezequiel


-- 
View this message in context: 
http://www.nabble.com/Ajax-link-doesn%27t-call-event-tp18219220p18219220.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Client side validation

2008-07-01 Thread Eelco Hillenius
On Tue, Jul 1, 2008 at 7:11 AM, Ryan Sonnek [EMAIL PROTECTED] wrote:
 Do any of the core validators actually implement this interface?

Not yet I think, but it's never to late :-)

Eelco

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



Re: No effect of code until restarting netbeans.

2008-07-01 Thread Jeremy Levy
Use Undeploy and Deploy on your EAR or WAR...


On Tue, Jul 1, 2008 at 3:58 AM, Sushant [EMAIL PROTECTED] wrote:


 I am a newuser using wicket. I have been facing this problem since a week.

 I'm in serious trouble. Whenever i make any changes in my code in netbeans
 the changes i have made doesn't works until i restart netbeans. After
 restarting my netbeans the changes that i have made in my code works.
 For e.g. If i have set as setResponsePage(Home.class) and later i change it
 to setResponsePage(Index.class) and save it. Now if i run my project than
 it
 still shows Home page until i restart netbeans. After i restart netbeans
 the
 problem is solved.

 I'm using netbeans 6.1
 Please help me with this problem.
 --
 View this message in context:
 http://www.nabble.com/No-effect-of-code-until-restarting-netbeans.-tp18211238p18211238.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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