[Wicket-user] working with plugins

2006-07-17 Thread Ittay Dror
Hi,

We're using plugins similar to Eclipse's to decouple functionality. Each 
plugin's classes run in their own class loader.

We've encountered a problem in onNewBrowserWindow(). it uses 
Objects.cloneObject(), which uses the default ObjectInputStream, that uses the 
class loader associated with the execution stack, rather than the object's. so 
trying to get the class of the object when reading it back fails.

This can be solved by changing cloneObject to:
public static Object cloneObject(final Object object)
   {
   if (object == null)
   {
   return null;
   }
   else
   {
   try
   {
   final ByteArrayOutputStream out = new ByteArrayOutputStream(256);
   ObjectOutputStream oos = new ObjectOutputStream(out);
   oos.writeObject(object);
   ObjectInputStream ois = new ObjectInputStream(new 
ByteArrayInputStream(out
   .toByteArray())) {
  protected Class 
resolveClass(ObjectStreamClass desc) throws IOException,
   ClassNotFoundException {
   String className = desc.getName();
   return Class.forName(className, true, 
object.getClass().getClassLoader()); }
   };
   return ois.readObject();
   }
   catch (ClassNotFoundException e)
   {
   throw new WicketRuntimeException(Internal error cloning 
object, e);
   }
   catch (IOException e)
   {
   throw new WicketRuntimeException(Internal error cloning 
object, e);
   }
   }
   } 

i think that it should work fine in this context since the object is already 
accessible when writing it. it is working for us. 

btw, a problem that is caused by this failure (and the throwing of 
WicketRuntimeException) is that the PageMap contains null entries (or rather, 
the session contains attributes with null values). i couldn't track why exactly 
this happens.

regards,
ittay



-- 
===
Ittay Dror, 
Chief architect, openQRM TL, 
RD, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


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


[Wicket-user] Modal Dialog

2006-07-17 Thread Арву Оетук
Hi all.
Is component like Modal Dialog exist in wicket framework?
Dmitry.


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


[Wicket-user] Radio, AJAX and Model: What ist he correct type for a radio button property model

2006-07-17 Thread Stefan Lindner
Hi all,

What ist he correct type for a radio button property model?

I want to use RadioButtons with AJAX. I have found a hint in the mailing
list archive that I have to use RadioGroup and add an ajax event to each
Radio Object in the radio group. This works.
But now: when I want one of the radio buttons to be preselected I need
to bind a model to the radio button. 
Let's assume that I have HTML like this

 form wicket:id=form
span wicket:id=group
table style=border: 2px dotted #fc0; width:
400px; padding: 5px;
 tr
  td valign=topSelect a person/td
  td
  table cellspacing=0
cellpadding=2
trtd wicket:id=persons
input type=radio
wicket:id=radio/
span
wicket:id=name[this is where name will be]/span/td
/tr
  /table
  span valign=top
  /span
  /td
...

The java part looks like this


final RadioGroup group = new
RadioGroup(group);
Form form = new Form(form);

add(form);
form.add(group);

ListView persons = new ListView(persons,
getPersons()) {

protected void populateItem(ListItem
item) {
Radio r = new Radio(radio,
item.getModel());

r.add(new
AjaxEventBehavior(onchange) {
   protected void
onEvent(AjaxRequestTarget target) {
   System.out.println(-- +
getComponent().getModelObject().toString);
}
 });



item.add(r);
item.add(new Label(name, new
PropertyModel(item.getModel(), name)));

}

};

group.add(persons);


This works well in one way: I can receive the AJAX event when a radio
button is selectd. 
But now I want to have one radio buttln preselect when I display the
panel.

When I try to add a PropertyModel to the radio button

Radio r = new Radio(radio, new PropertyModel(item.getModel(),
radio));

I can see calls to getRadio in my ModelClass when the components are
rendered the first time. But when I klick into a radio butteln a class
cast Exception is thrown. I tried a boolean, a Boolean and a String as
type for the radio button but alway a class cast exception is thrown.
Now once again the question: What ist he correct type for a radio button
property model and what ist he default value to have one radio button
selected.



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


Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Martijn Dashorst
As a side note, you still can pass in the full object, even in 1.2,
that is what we are doing in our application constantly. You do have
to be careful to always use the shared model, otherwise you'll get
LazyInitialization exceptions...

Sharing the model between components on one page is a good thing (tm),
and can save some memory. In my opinion, understanding the lazy pull
approach of the wicket models is key in building Wicket applications.

Person person = (Person)getModelObject();
setResponsePage(new FooPage(person));

public class FooPage extends WebPage {
public FooPage(Person person) {
IModel shared = new CompoundPropertyModel(new HibernateModel(person));
setModel(shared);

add(new ListView(children) {...});

add(new Form(form, shared){...});
}
}

Martijn

On 7/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yeah, you miss something. load-by-id is a cheap operation. first of all
 session.get(id) will return the cached object within the same request. and
 even if the first level cache misses(the session) the second level cache
 will most likely have the object where it is kept across requests.

 so if you pass the id to many panels within the same request the object is
 still only loaded once. within many requests the chances are good it is in
 second level cache. i wouldnt even attempt to use an orm solution without a
 good second level cache setup.

 if you want extended sessions there is really nothing stopping you from
 doing that either. all you have to do is create the session yourself,
 disconnect it at the end of request and reconnect it at the beginning of
 another. all perfectly doable in wicket. then you just have to pass the
 session around from page to page.

 -Igor



 On 7/16/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
  Juergen Donnerstag wrote:
   I don't think this is true if you create a hibernate session per http
 request
  
   Juergen
  
  
  When you pass the object id instead of the object to the panels, each
  panel will retrieve the object independent of others. Maybe a cache will
  help. But still it goes through the persistence layer. Am I missing
  something ?
 
  Iman
 
 
 
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org


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


Re: [Wicket-user] Modal Dialog

2006-07-17 Thread Eelco Hillenius
Not at this time. Shouldn't be too hard to do, but we're still waiting
for someone to contribute it :)

Eelco


On 7/17/06, Арву Оетук [EMAIL PROTECTED] wrote:
 Hi all.
 Is component like Modal Dialog exist in wicket framework?
 Dmitry.


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


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


Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Ayodeji Aladejebi
Well,should i say i have specifics yet, okay yesterday i was trying to make a small customizable menubar widget and i needed a way to ensure that an time i want to reuse it or even give it out for others to use, they can simple change certain general schemes in the CSS like border color, background image, etc...
Now currently, whatever CSS you package as a wicket resource with the widget is what users stick to. Now somewhere in my code I had to do this:
ul.append(border-top: 1px solid  + this.bordercolor +
 ;); ul.append(border-bottom: 1px solid  +
 this.bordercolor +
 ;); ul.append(background:url( +
 this.linkBgImage +
 ) repeat;);Basically if i did not want to make anything reuseable, i could stick to the normal wicket way, just dump some CSS in the header and then any reuse will have to keep it that way. But i dont think it will be much fun to keep recoding styles into your wicket component everytime you need to reuse it. Infact a wicket developer like myself..i am really taking time to build up my widget framework so that laying out interface for any coming project will just be add(), add() and add().
Now what i think is just some form of templating support for CSS: Since CSS is not an XML file (i really wonder why CSS is not XML) but in a file calledMyWidget.css
.${wicket:id of component that needs this css} ul {border-top: 
${border-thickness}; solid ${border-color}
;background:url(${bg-image}) repeat; 
padding-bottom: 3px;
padding-top: ${pad-top};
}Something like this...and then in my custom component, i want toclass MyWidget extends Panel{
private Component component;add(component = new Component(wicket:id)
}maybe some interface or a class for filling in the css parameters in the ${}.But Wicket will generate the CSS header from the template on behalf of that component and attach the 
class attribute etc etc. hey..wait i think i can even develop something like this right now...even as i am talking about it, its kind of clear to me what i can do. 
ah sorry to bug yu guys with RFC ...thanks eelcoOn 7/15/06, Eelco Hillenius [EMAIL PROTECTED]
 wrote:Could you please be more specific to what kind kind of additionalsupport you would like to see? Could you give a few end-user (from the
perspective of framework users of course) examples of what you'd like?EelcoOn 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: i think wicket needs to kind of improve CSS templating support. I think more
 than just a resource...more of CSS and WebPage\Panel integration support needs to be in wicket especially when yu needs to create widgets where you want to generate certain Styles on the fly...anyway it's not like an
 urgently needed feature but just a kind of suggestion that may reduce the stress in bindingtwo tightly close couples like HTML and CSS thanks
 -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED]
 Web: www.dabarobjects.com Community: www.cowblock.net -
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- 
It takes insanity to drive in sanity - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: 
www.dabarobjects.comCommunity:www.cowblock.net

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


Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Eelco Hillenius
Did you take a look at what's in wicket.extensions.util.resource? I
think that package has exactly what you are looking for, e.g.
PackagedTextTemplate.

Eelco



On 7/17/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 Well,
 should i say i have specifics yet, okay yesterday i was trying to make a
 small customizable menubar widget and i needed a way to ensure that an time
 i want to reuse it or even give it out for others to use, they can simple
 change certain general schemes in the CSS like border color, background
 image, etc...

 Now currently, whatever CSS you package as a wicket resource with the widget
 is what users stick to. Now somewhere in my code I had to do this:

  ul.append(border-top: 1px solid  +
 this.bordercolor +
  ;);
 ul.append(border-bottom: 1px solid  +
 this.bordercolor +
  ;);
 ul.append(background:url( +
 this.linkBgImage +
  ) repeat;);

 Basically if i did not want to make anything reuseable, i could stick to the
 normal wicket way, just dump some CSS in the header and then any reuse will
 have to keep it that way. But i dont think it will be much fun to keep
 recoding styles into your wicket component everytime you need to reuse it.
 Infact a wicket developer like myself..i am really taking time to build up
 my widget framework so that laying out interface for any coming project will
 just be add(), add() and add().

 Now what i think is just some form of templating support for CSS: Since CSS
 is not an XML file (i really wonder why CSS is not XML) but in a file called

 MyWidget.css

  .${wicket:id of component that needs this css} ul {
 border-top: ${border-thickness}; solid ${border-color} ;
 background:url(${bg-image}) repeat;
 padding-bottom: 3px;
  padding-top: ${pad-top};
  }


 Something like this...and then in my custom component, i want to

 class MyWidget extends Panel{
 private Component component;

 add(component = new Component(wicket:id)
 }

 maybe some interface or a class for filling in the css parameters in the
 ${}.

 But Wicket will generate the CSS header from the template on behalf of that
 component and attach the class attribute etc etc.

 hey..wait i think i can even develop something like this right now...even as
 i am talking about it, its kind of clear to me what i can do.

 ah sorry to bug yu guys with RFC ...thanks eelco


 On 7/15/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:
  Could you please be more specific to what kind kind of additional
  support you would like to see? Could you give a few end-user (from the
  perspective of framework users of course) examples of what you'd like?
 
  Eelco
 
 
  On 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
   i think wicket needs to kind of improve CSS templating support. I think
 more
   than just a resource...more of CSS and WebPage\Panel integration support
   needs to be in wicket especially when yu needs to create widgets where
 you
   want to generate certain Styles on the fly...anyway it's not like an
   urgently needed feature but just a kind of suggestion that may reduce
 the
   stress in bindingtwo tightly close couples like HTML and CSS
  
   thanks
  
  
  
  
  
  
  
  
   --
   It takes insanity to drive in sanity - Me
  
   Aladejebi Ayodeji A.,
   DabarObjects Solutions
   Email: [EMAIL PROTECTED]
   Web: www.dabarobjects.com
  
   Community:
   www.cowblock.net
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
   easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 --

  It takes insanity to drive in sanity - Me

 Aladejebi Ayodeji A.,
 DabarObjects Solutions
 Email: [EMAIL PROTECTED]
 Mobile: +234 803 589 1780

 Web: www.dabarobjects.com

 Community:
 www.cowblock.net

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly 

Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Ayodeji Aladejebi
really?...shit!!..thanksOn 7/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Did you take a look at what's in wicket.extensions.util.resource? Ithink that package has exactly what you are looking for, e.g.PackagedTextTemplate.EelcoOn 7/17/06, Ayodeji Aladejebi 
[EMAIL PROTECTED] wrote: Well, should i say i have specifics yet, okay yesterday i was trying to make a small customizable menubar widget and i needed a way to ensure that an time i want to reuse it or even give it out for others to use, they can simple
 change certain general schemes in the CSS like border color, background image, etc... Now currently, whatever CSS you package as a wicket resource with the widget is what users stick to. Now somewhere in my code I had to do this:
ul.append(border-top: 1px solid  + this.bordercolor +;); ul.append(border-bottom: 1px solid  + 
this.bordercolor +;); ul.append(background:url( + this.linkBgImage +) repeat;); Basically if i did not want to make anything reuseable, i could stick to the
 normal wicket way, just dump some CSS in the header and then any reuse will have to keep it that way. But i dont think it will be much fun to keep recoding styles into your wicket component everytime you need to reuse it.
 Infact a wicket developer like myself..i am really taking time to build up my widget framework so that laying out interface for any coming project will just be add(), add() and add(). Now what i think is just some form of templating support for CSS: Since CSS
 is not an XML file (i really wonder why CSS is not XML) but in a file called MyWidget.css.${wicket:id of component that needs this css} ul { border-top: ${border-thickness}; solid ${border-color} ;
 background:url(${bg-image}) repeat; padding-bottom: 3px;padding-top: ${pad-top};} Something like this...and then in my custom component, i want to class MyWidget extends Panel{
 private Component component; add(component = new Component(wicket:id) } maybe some interface or a class for filling in the css parameters in the ${}. But Wicket will generate the CSS header from the template on behalf of that
 component and attach the class attribute etc etc. hey..wait i think i can even develop something like this right now...even as i am talking about it, its kind of clear to me what i can do.
 ah sorry to bug yu guys with RFC ...thanks eelco On 7/15/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:  Could you please be more specific to what kind kind of additional
  support you would like to see? Could you give a few end-user (from the  perspective of framework users of course) examples of what you'd like?   Eelco  
  On 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:   i think wicket needs to kind of improve CSS templating support. I think more
   than just a resource...more of CSS and WebPage\Panel integration support   needs to be in wicket especially when yu needs to create widgets where you   want to generate certain Styles on the fly...anyway it's not like an
   urgently needed feature but just a kind of suggestion that may reduce the   stress in bindingtwo tightly close couples like HTML and CSS thanks
   --   It takes insanity to drive in sanity - Me
 Aladejebi Ayodeji A.,   DabarObjects Solutions   Email: [EMAIL PROTECTED]   Web: 
www.dabarobjects.com Community:   www.cowblock.net -
   Using Tomcat but need to do more? Need to support web services, security?   Get stuff done quickly with pre-integrated technology to make your job   easier   Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___   Wicket-user mailing list   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user   
   -  Using Tomcat but need to do more? Need to support web services, security?  Get stuff done quickly with pre-integrated technology to make your job
 easier  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___  Wicket-user mailing list  Wicket-user@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/wicket-user  --It takes insanity to drive in sanity - Me Aladejebi Ayodeji A.,
 DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com
 Community: www.cowblock.net - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 

Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Eelco Hillenius
That package is just a few months old :) If you come up with some
useful contributions specific for CSS, I'd be happy to incorporate
them.

Eelco


On 7/17/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 really?...shit!!..thanks


 On 7/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Did you take a look at what's in wicket.extensions.util.resource? I
 think that package has exactly what you are looking for, e.g.
 PackagedTextTemplate.

 Eelco



 On 7/17/06, Ayodeji Aladejebi  [EMAIL PROTECTED] wrote:
  Well,
  should i say i have specifics yet, okay yesterday i was trying to make a
  small customizable menubar widget and i needed a way to ensure that an
 time
  i want to reuse it or even give it out for others to use, they can simple
  change certain general schemes in the CSS like border color, background
  image, etc...
 
  Now currently, whatever CSS you package as a wicket resource with the
 widget
  is what users stick to. Now somewhere in my code I had to do this:
 
   ul.append(border-top: 1px solid  +
  this.bordercolor +
   ;);
  ul.append(border-bottom: 1px solid  +
  this.bordercolor +
   ;);
  ul.append(background:url( +
  this.linkBgImage +
   ) repeat;);
 
  Basically if i did not want to make anything reuseable, i could stick to
 the
  normal wicket way, just dump some CSS in the header and then any reuse
 will
  have to keep it that way. But i dont think it will be much fun to keep
  recoding styles into your wicket component everytime you need to reuse it.
  Infact a wicket developer like myself..i am really taking time to build up
  my widget framework so that laying out interface for any coming project
 will
  just be add(), add() and add().
 
  Now what i think is just some form of templating support for CSS: Since
 CSS
  is not an XML file (i really wonder why CSS is not XML) but in a file
 called
 
  MyWidget.css
 
   .${wicket:id of component that needs this css} ul {
  border-top: ${border-thickness}; solid ${border-color} ;
  background:url(${bg-image}) repeat;
  padding-bottom: 3px;
   padding-top: ${pad-top};
   }
 
 
  Something like this...and then in my custom component, i want to
 
  class MyWidget extends Panel{
  private Component component;
 
  add(component = new Component(wicket:id)
  }
 
  maybe some interface or a class for filling in the css parameters in the
  ${}.
 
  But Wicket will generate the CSS header from the template on behalf of
 that
  component and attach the class attribute etc etc.
 
  hey..wait i think i can even develop something like this right now...even
 as
  i am talking about it, its kind of clear to me what i can do.
 
  ah sorry to bug yu guys with RFC ...thanks eelco
 
 
  On 7/15/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:
   Could you please be more specific to what kind kind of additional
   support you would like to see? Could you give a few end-user (from the
   perspective of framework users of course) examples of what you'd like?
  
   Eelco
  
  
   On 7/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
i think wicket needs to kind of improve CSS templating support. I
 think
  more
than just a resource...more of CSS and WebPage\Panel integration
 support
needs to be in wicket especially when yu needs to create widgets where
  you
want to generate certain Styles on the fly...anyway it's not like an
urgently needed feature but just a kind of suggestion that may reduce
  the
stress in bindingtwo tightly close couples like HTML and CSS
   
thanks
   
   
   
   
   
   
   
   
--
It takes insanity to drive in sanity - Me
   
Aladejebi Ayodeji A.,
DabarObjects Solutions
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
   
Community:
www.cowblock.net
   
   
 
 -
Using Tomcat but need to do more? Need to support web services,
  security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
   
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
  
  
  
 
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
  easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 

[Wicket-user] WebMarkupContainer

2006-07-17 Thread gangadhar
Hi All

I am calling WebMarkupContainer on Ajax call .
but WebMarkupContainer is not clear for Ajax call.
plz anybody know about solution send me a mail.

Thanks in Advance
Gangadhar A Vibhute


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


Re: [Wicket-user] Playing with models:) / wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Eelco Hillenius

 When is setObject supposed to get called, Cause I only see it get called 
 during
 construct?

Whenever a (form)component has to update it's model  contents. Or if
you call setObject explicitly of course :() Typically, a component
update is done by Form, which visits all it's children and calls
updateModel on them.

Eelco


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


Re: [Wicket-user] WebMarkupContainer

2006-07-17 Thread Eelco Hillenius
I'm not clear on what your question is. Keep in mind that you have to
call setOutputMarkupId(true) on any component you want to target
(render) with ajax requests.

Eelco


On 7/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi All

 I am calling WebMarkupContainer on Ajax call .
 but WebMarkupContainer is not clear for Ajax call.
 plz anybody know about solution send me a mail.

 Thanks in Advance
 Gangadhar A Vibhute


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



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


[Wicket-user] WebMarkupContainer

2006-07-17 Thread gangadhar
Hi All
I have WebMarkupContainer code in this WebMarkupContainer there is list View
I am tragting this WebMarkupContainer on Dropdown ajax call but there is
previous output present.

I want solution for clearing this previous output

Thanks in Advance
Gangadhar A Vibhute


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


[Wicket-user] bookmarkable ajax link

2006-07-17 Thread Nili Adoram
Hi all,
I have an AjaxLink that opens a modal dialog (which is implemented as an 
iframe that displays the URL of that link).
The link is embedded inside a ListView that refreshes itself every 30 
seconds via ajax.
The URL of that link is generated of course by Ajax and include session 
mapping parameters so it is not bookmarkable.
Whenever I click the link just before the table is refreshed, the target 
of that link page is expired from session.
Is it possible to generate a bookmarkable ajax link ?
Thanks
Nili


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


Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Nino Wael
Strange then, it seems as the extension palette does not update on a submit? 
Does it somehow detach from its model?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 17. juli 2006 12:14
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Playing with models:) 
/wicket.extensions.markup.html.form.palette.Palette; 


 When is setObject supposed to get called, Cause I only see it get called 
 during
 construct?

Whenever a (form)component has to update it's model  contents. Or if
you call setObject explicitly of course :() Typically, a component
update is done by Form, which visits all it's children and calls
updateModel on them.

Eelco


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



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


Re: [Wicket-user] wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior= not working?

2006-07-17 Thread Nino Wael
Yup that fixed it, thanks...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius
Sent: 14. juli 2006 15:38
To: wicket-user@lists.sourceforge.net
Subject: Re: 
[Wicket-user]wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior=
 not working?

I think you need to use AjaxFormComponentUpdatingBehavior so that your
model will automatically updated.

Eelco



On 7/14/06, Nino Wael [EMAIL PROTECTED] wrote:



 Ok, np just switched back to checkbox and wrote this:




 cb_HeleLandet.add(new AjaxEventBehavior(onclick) {


  protected void onEvent(AjaxRequestTarget target) {



 myForm_sammen.setDisabled(reportModel.getHeleLandet());



 target.addComponent(myForm_sammen);


  }

 });



 Which almost works as wanted. When are the backing model for my checkbox
 updated?  It seems it's not updated preajax call, nor postajax? Do I need a
 true submit of the form to update the backing model?





 Since I need to disabled another component based on when the checkbox are
 checked or not.



 Regards Nino


 


 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Igor Vaynberg
 Sent: 14. juli 2006 09:26

 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user]
 wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior
 = not working?


 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user]
 wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior
 = not working?





 oops, i thought i fixed that (onchange-onclick) before 1.2 final, but i
 guess not. until 1.2.1 comes out you are prob then better off using what you
 have now, or use 1.2 from svn

 -Igor



 On 7/13/06, Nino Wael [EMAIL PROTECTED] wrote:



 I switched to the AjaxCheckBox, but my markup still says:



 input type=checkbox wicket:id=hele_landet name=hele_landet
 onchange=var
 wcall=wicketAjaxPost('/jobindsats/app?wicket:interface=:2:databank_form:hele_landet::IBehaviorListenerwicket:behaviorId=1',
 wicketSerialize(this), function() { }, function() { });
 id=databank_form_hele_landet




 Wicket java:

 cb_HeleLandet =
 new AjaxCheckBox(hele_landet, new PropertyModel(


reportModel, heleLandet)) {



  protected void onUpdate(AjaxRequestTarget target) {



 myForm_sammen.setEnabled(reportModel.getHeleLandet());



 target.addComponent(myForm_sammen);




  }




 };



 How do I specify to call the ajax onclick? As you wrote the ajax is now
 called onchange wich indeed are delayed until blur occurs.



 Regards Nino
 


 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] ] On
 Behalf Of Igor Vaynberg
 Sent: 13. juli 2006 18:17



 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] wicket.markup.html.form.CheckBox
 vswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not
 working?




 also onchange on the checkboxes is delayed until the onblur event so you are
 better off using onclick, and there is of course a
 wicket.ajax.markup.html.form.AjaxCheckBox ready for you as
 well

 -Igor


 On 7/13/06, Martijn Dashorst [EMAIL PROTECTED] wrote:


 Did you do myForm_sammen.setOutputMarkupId(true) in your
 page constructor?

 Martijn


 On 7/13/06, Nino Wael [EMAIL PROTECTED] wrote:
  Hi
 
  Im currently working on a checkbox that needs to do some stuff on a
 onchange request.
 
  However it looks as the AJAX call never is made, I have other ajax calls
 on the page that works just fine (also using the onchange modifier)
 
 
  When looking at the below code it should work fine it seems to me but it
 dosent:
 
  Wicket javaCode:
 
  cb_HeleLandet = new CheckBox(hele_landet, new
 PropertyModel(
  reportModel,
 heleLandet));
  cb_HeleLandet.setOutputMarkupId(true);
  cb_HeleLandet.add(new
 AjaxFormComponentUpdatingBehavior(onchange) {
  protected void onUpdate(AjaxRequestTarget target)
 {
 
 myForm_sammen.setEnabled(reportModel.getHeleLandet());
  target.addComponent
 (myForm_sammen);
 
  }
  });
 
  Wicket html code:
 
   input type=checkbox
 wicket:id=hele_landet
 
  Wicket html when output from server:
 
  script type=text/javascript
 src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script
  script type=text/javascript!--//--![CDATA[//!--
  wicketAjaxDebugEnable=true;
  //--!]]/script
 
  script type=text/javascript
 src=/jobindsats/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-
 ajax-debug-drag.js/script
  script type=text/javascript
 

[Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
I'm using wicket 1.2 final and trying to use the form's 'onsubmit' 
handler to prompt the user to confirm a message or not. I've tried to 
solve this by adding the onsubmit to the form with a 
SimpleAttributeModifier but it doesn't work, the onsubmit attribute is 
simply not rendered ?!

If this isn't the way a form is supposed to be used, can anybody point 
to how can I do such a thing ? (Ask a user, 'do you really want to 
submit that form' when he presses submit)

Thanks,
Dorel


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


Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Matej Knopp
I think you should add Button(s) to the form and add onclick attribute 
modifier on them (or right on to the markup input type=submit 
wicket:id=submit onlick=return confirm('...');/ )

-Matej

Dorel Vaida wrote:
 I'm using wicket 1.2 final and trying to use the form's 'onsubmit' 
 handler to prompt the user to confirm a message or not. I've tried to 
 solve this by adding the onsubmit to the form with a 
 SimpleAttributeModifier but it doesn't work, the onsubmit attribute is 
 simply not rendered ?!
 
 If this isn't the way a form is supposed to be used, can anybody point 
 to how can I do such a thing ? (Ask a user, 'do you really want to 
 submit that form' when he presses submit)
 
 Thanks,
 Dorel
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 



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


Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Eelco Hillenius
Yeah do it like that. I wouldn't know why attaching attribute
modifiers to your form didn't work though...

Eelco


On 7/17/06, Matej Knopp [EMAIL PROTECTED] wrote:
 I think you should add Button(s) to the form and add onclick attribute
 modifier on them (or right on to the markup input type=submit
 wicket:id=submit onlick=return confirm('...');/ )

 -Matej

 Dorel Vaida wrote:
  I'm using wicket 1.2 final and trying to use the form's 'onsubmit'
  handler to prompt the user to confirm a message or not. I've tried to
  solve this by adding the onsubmit to the form with a
  SimpleAttributeModifier but it doesn't work, the onsubmit attribute is
  simply not rendered ?!
 
  If this isn't the way a form is supposed to be used, can anybody point
  to how can I do such a thing ? (Ask a user, 'do you really want to
  submit that form' when he presses submit)
 
  Thanks,
  Dorel
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



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



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


Re: [Wicket-user] WebMarkupContainer

2006-07-17 Thread Eelco Hillenius
Maybe you could send some code of what you are trying to do...

Eelco


On 7/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi All
 I have WebMarkupContainer code in this WebMarkupContainer there is list View
 I am tragting this WebMarkupContainer on Dropdown ajax call but there is
 previous output present.

 I want solution for clearing this previous output

 Thanks in Advance
 Gangadhar A Vibhute


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



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


Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Eelco Hillenius
I think Matej and Igor have been working on that. Maybe they can
comment on this.

Eelco


On 7/17/06, Nili Adoram [EMAIL PROTECTED] wrote:
 Hi all,
 I have an AjaxLink that opens a modal dialog (which is implemented as an
 iframe that displays the URL of that link).
 The link is embedded inside a ListView that refreshes itself every 30
 seconds via ajax.
 The URL of that link is generated of course by Ajax and include session
 mapping parameters so it is not bookmarkable.
 Whenever I click the link just before the table is refreshed, the target
 of that link page is expired from session.
 Is it possible to generate a bookmarkable ajax link ?
 Thanks
 Nili


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



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


Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
Eelco Hillenius wrote:
 Yeah do it like that. 
The form is submitted no matter what I return in submit button's 
onclick. Eventually the solution would be to add a simple button and NOT 
a submit button and force submiting the form through javascript when 
pressing the button.  (Which I do not like).
 I wouldn't know why attaching attribute
 modifiers to your form didn't work though...
   
Me neither, that's why I asked. I thought that in some way onsubmit 
attribute is blocked by wicket being reserved for it's own use, 
otherwise I do not see any reason why wicket wouldn't render a 
'onsubmit' attribute as it renders the others that fortunately do work 
:-(. From what I know returning false in the form's onsubmit is the 
standard way of elegantly preventing the form from being submitted.
 Eelco


 On 7/17/06, Matej Knopp [EMAIL PROTECTED] wrote:
   
 I think you should add Button(s) to the form and add onclick attribute
 modifier on them (or right on to the markup input type=submit
 wicket:id=submit onlick=return confirm('...');/ )

 -Matej

 Dorel Vaida wrote:
 
 I'm using wicket 1.2 final and trying to use the form's 'onsubmit'
 handler to prompt the user to confirm a message or not. I've tried to
 solve this by adding the onsubmit to the form with a
 SimpleAttributeModifier but it doesn't work, the onsubmit attribute is
 simply not rendered ?!

 If this isn't the way a form is supposed to be used, can anybody point
 to how can I do such a thing ? (Ask a user, 'do you really want to
 submit that form' when he presses submit)

 Thanks,
 Dorel


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

   

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

 


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

 __ NOD32 1.1523 (20060505) Information __

 This message was checked by NOD32 Antivirus System.
 http://www.nod32.com



   



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


Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Matej Knopp
Dorel Vaida wrote:
 Eelco Hillenius wrote:
 Yeah do it like that. 
 The form is submitted no matter what I return in submit button's 
 onclick. Eventually the solution would be to add a simple button and NOT 

Can you check the generated output, if the javascript is there? I see no 
reason why wicket should do anything with onclick. What javascript 
exactly do you put there?

-Matej

 a submit button and force submiting the form through javascript when 
 pressing the button.  (Which I do not like).
 I wouldn't know why attaching attribute
 modifiers to your form didn't work though...
   
 Me neither, that's why I asked. I thought that in some way onsubmit 
 attribute is blocked by wicket being reserved for it's own use, 
 otherwise I do not see any reason why wicket wouldn't render a 
 'onsubmit' attribute as it renders the others that fortunately do work 
 :-(. From what I know returning false in the form's onsubmit is the 
 standard way of elegantly preventing the form from being submitted.
 Eelco


 On 7/17/06, Matej Knopp [EMAIL PROTECTED] wrote:
   
 I think you should add Button(s) to the form and add onclick attribute
 modifier on them (or right on to the markup input type=submit
 wicket:id=submit onlick=return confirm('...');/ )

 -Matej

 Dorel Vaida wrote:
 
 I'm using wicket 1.2 final and trying to use the form's 'onsubmit'
 handler to prompt the user to confirm a message or not. I've tried to
 solve this by adding the onsubmit to the form with a
 SimpleAttributeModifier but it doesn't work, the onsubmit attribute is
 simply not rendered ?!

 If this isn't the way a form is supposed to be used, can anybody point
 to how can I do such a thing ? (Ask a user, 'do you really want to
 submit that form' when he presses submit)

 Thanks,
 Dorel


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

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

 

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

 __ NOD32 1.1523 (20060505) Information __

 This message was checked by NOD32 Antivirus System.
 http://www.nod32.com



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



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


Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
It works, sorry, I was not paying enough attention. In the first phase I 
wasn't looking to the right form, the the second phase I forgot to add 
the 'return' in the 'onsubmit' form handler

Correct is *add(new SimpleAttributeModifier(onsubmit, return 
confirmSubmission()));* and it works with wicket 1.2 final.

Sorry for the trouble.

Dorel Vaida wrote:
 Eelco Hillenius wrote:
   
 Yeah do it like that. 
 
 The form is submitted no matter what I return in submit button's 
 onclick. Eventually the solution would be to add a simple button and NOT 
 a submit button and force submiting the form through javascript when 
 pressing the button.  (Which I do not like).
   
 I wouldn't know why attaching attribute
 modifiers to your form didn't work though...
   
 
 Me neither, that's why I asked. I thought that in some way onsubmit 
 attribute is blocked by wicket being reserved for it's own use, 
 otherwise I do not see any reason why wicket wouldn't render a 
 'onsubmit' attribute as it renders the others that fortunately do work 
 :-(. From what I know returning false in the form's onsubmit is the 
 standard way of elegantly preventing the form from being submitted.
   
 Eelco


 On 7/17/06, Matej Knopp [EMAIL PROTECTED] wrote:
   
 
 I think you should add Button(s) to the form and add onclick attribute
 modifier on them (or right on to the markup input type=submit
 wicket:id=submit onlick=return confirm('...');/ )

 -Matej

 Dorel Vaida wrote:
 
   
 I'm using wicket 1.2 final and trying to use the form's 'onsubmit'
 handler to prompt the user to confirm a message or not. I've tried to
 solve this by adding the onsubmit to the form with a
 SimpleAttributeModifier but it doesn't work, the onsubmit attribute is
 simply not rendered ?!

 If this isn't the way a form is supposed to be used, can anybody point
 to how can I do such a thing ? (Ask a user, 'do you really want to
 submit that form' when he presses submit)

 Thanks,
 Dorel


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

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

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

 __ NOD32 1.1523 (20060505) Information __

 This message was checked by NOD32 Antivirus System.
 http://www.nod32.com



   
 



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

 __ NOD32 1.1523 (20060505) Information __

 This message was checked by NOD32 Antivirus System.
 http://www.nod32.com



   



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

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Eelco Hillenius
 It works, sorry, I was not paying enough attention. In the first phase I
 wasn't looking to the right form, the the second phase I forgot to add
 the 'return' in the 'onsubmit' form handler

 Correct is *add(new SimpleAttributeModifier(onsubmit, return
 confirmSubmission()));* and it works with wicket 1.2 final.

 Sorry for the trouble.

Hehe. Np. Remember rule #1 from the hitchhiker's guide to the universe ;)

Eelco


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


Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Matej Knopp
What URL do you exactly display in the iframe? I think the behavior is 
caused by PageMap in 1.2 which behaves as stack. So to get over this you 
have to put the page that is shown in the iframe to separate pagemap.

You can change the pagemap in which wicket is created by either 
specifying it in Page constructor or as URL parameter of 
bookmarkablePages (wicket:pageMapName=myModalPageMap)

-Matej

Nili Adoram wrote:
 Hi all,
 I have an AjaxLink that opens a modal dialog (which is implemented as an 
 iframe that displays the URL of that link).
 The link is embedded inside a ListView that refreshes itself every 30 
 seconds via ajax.
 The URL of that link is generated of course by Ajax and include session 
 mapping parameters so it is not bookmarkable.
 Whenever I click the link just before the table is refreshed, the target 
 of that link page is expired from session.
 Is it possible to generate a bookmarkable ajax link ?
 Thanks
 Nili
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 



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


Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Nili Adoram
1. The generated URL is:
javascript:var 
wcall=wicketAjaxGet('/page;jsessionid=66D2B1310B47081B62EE203A648CDAE8?wicket:interface=:0:statusForm:data:nodeGroups:0:deprovision::IBehaviorListenerwicket:behaviorId=0',
 
function() { }, function() { });
2. Can you please explain what is th purpose of PageMap in this case?
Thanks
-Nili

Matej Knopp wrote:
 What URL do you exactly display in the iframe? I think the behavior is 
 caused by PageMap in 1.2 which behaves as stack. So to get over this you 
 have to put the page that is shown in the iframe to separate pagemap.

 You can change the pagemap in which wicket is created by either 
 specifying it in Page constructor or as URL parameter of 
 bookmarkablePages (wicket:pageMapName=myModalPageMap)

 -Matej

 Nili Adoram wrote:
   
 Hi all,
 I have an AjaxLink that opens a modal dialog (which is implemented as an 
 iframe that displays the URL of that link).
 The link is embedded inside a ListView that refreshes itself every 30 
 seconds via ajax.
 The URL of that link is generated of course by Ajax and include session 
 mapping parameters so it is not bookmarkable.
 Whenever I click the link just before the table is refreshed, the target 
 of that link page is expired from session.
 Is it possible to generate a bookmarkable ajax link ?
 Thanks
 Nili


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

 



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

   


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


[Wicket-user] Model and setObject?

2006-07-17 Thread Nino Wael








Hi 



Starting this over again, trying to explain more
clearly what im doing here.



Ive created a AbstractModel that pretty much
works as property model, only difference are that the setObject sets the object
and does a little bit more. My model is attached to the wicket.extensions.markup.html.form.palette
as the model representing user choices. The palette component consists of two
listboxes and some buttons to move the selection, it moves the selection by
_javascript_ so I have a submit button in my form aswell.



My issue is that it seems as the models setObject are
only called in the constructor, or when I explicitly call it? But I can clearly
see that the palette gets updated correctly even if I switch pages.



Regards Nino











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


Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Matej Knopp
This is generated url of the ajax link. you said you open a page in an 
iframe, so I asked, what URL do you display in the iframe (iframe 
src=??/

How do you create the iframe?

-Matej

Nili Adoram wrote:
 1. The generated URL is:
 javascript:var 
 wcall=wicketAjaxGet('/page;jsessionid=66D2B1310B47081B62EE203A648CDAE8?wicket:interface=:0:statusForm:data:nodeGroups:0:deprovision::IBehaviorListenerwicket:behaviorId=0',
  
 function() { }, function() { });
 2. Can you please explain what is th purpose of PageMap in this case?
 Thanks
 -Nili
 
 Matej Knopp wrote:
 What URL do you exactly display in the iframe? I think the behavior is 
 caused by PageMap in 1.2 which behaves as stack. So to get over this you 
 have to put the page that is shown in the iframe to separate pagemap.

 You can change the pagemap in which wicket is created by either 
 specifying it in Page constructor or as URL parameter of 
 bookmarkablePages (wicket:pageMapName=myModalPageMap)

 -Matej

 Nili Adoram wrote:
   
 Hi all,
 I have an AjaxLink that opens a modal dialog (which is implemented as an 
 iframe that displays the URL of that link).
 The link is embedded inside a ListView that refreshes itself every 30 
 seconds via ajax.
 The URL of that link is generated of course by Ajax and include session 
 mapping parameters so it is not bookmarkable.
 Whenever I click the link just before the table is refreshed, the target 
 of that link page is expired from session.
 Is it possible to generate a bookmarkable ajax link ?
 Thanks
 Nili


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

 


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

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



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


Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Ittay Dror


Matej Knopp wrote:
 This is generated url of the ajax link. you said you open a page in an 
 iframe, so I asked, what URL do you display in the iframe (iframe 
 src=??/
 
 How do you create the iframe?

it is statically in the page, but hidden. the ajax link calls a javascript that 
sets the iframe's src to a given url

 
 -Matej
 
 Nili Adoram wrote:
 1. The generated URL is:
 javascript:var 
 wcall=wicketAjaxGet('/page;jsessionid=66D2B1310B47081B62EE203A648CDAE8?wicket:interface=:0:statusForm:data:nodeGroups:0:deprovision::IBehaviorListenerwicket:behaviorId=0',
  
 function() { }, function() { });
 2. Can you please explain what is th purpose of PageMap in this case?
 Thanks
 -Nili

 Matej Knopp wrote:
 What URL do you exactly display in the iframe? I think the behavior is 
 caused by PageMap in 1.2 which behaves as stack. So to get over this you 
 have to put the page that is shown in the iframe to separate pagemap.

 You can change the pagemap in which wicket is created by either 
 specifying it in Page constructor or as URL parameter of 
 bookmarkablePages (wicket:pageMapName=myModalPageMap)

 -Matej

 Nili Adoram wrote:
   
 Hi all,
 I have an AjaxLink that opens a modal dialog (which is implemented as an 
 iframe that displays the URL of that link).
 The link is embedded inside a ListView that refreshes itself every 30 
 seconds via ajax.
 The URL of that link is generated of course by Ajax and include session 
 mapping parameters so it is not bookmarkable.
 Whenever I click the link just before the table is refreshed, the target 
 of that link page is expired from session.
 Is it possible to generate a bookmarkable ajax link ?
 Thanks
 Nili


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

 

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

   

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

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


-- 
===
Ittay Dror, 
Chief architect, openQRM TL, 
RD, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


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


Re: [Wicket-user] Model and setObject?

2006-07-17 Thread Nino Wael








Hmm, when doing further
debug. It seems as the backing object are updated but not via the models
setObject command. Is it supposed to work like that?





Regards Nino











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Nino Wael
Sent: 17. juli 2006 15:02
To:
wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Model and
setObject?





Hi 



Starting this over again, trying to explain more
clearly what im doing here.



Ive created a AbstractModel that pretty much
works as property model, only difference are that the setObject sets the object
and does a little bit more. My model is attached to the
wicket.extensions.markup.html.form.palette as the model representing user
choices. The palette component consists of two listboxes and some buttons to
move the selection, it moves the selection by _javascript_ so I have a submit
button in my form aswell.



My issue is that it seems as the models setObject are
only called in the constructor, or when I explicitly call it? But I can clearly
see that the palette gets updated correctly even if I switch pages.



Regards Nino











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


[Wicket-user] PrependContextPathHandler for components?

2006-07-17 Thread Jan Willem Janssen

Hi All,

Just as an exercise, I created a custom image-component that rewrites
the source attribute to link to my own image-handling servlet. 

By default, src-attributes in static HTML are corrected by  
PrependContextPathHandler to include the right servlet context. However, 
this behaviour is not available (by default) for components (read: my 
specific image component). How can I specify this behaviour for my 
components?

Groet,

-- 

Jan Willem Janssen, M.Sc.
software engineer, Development
__

Planon B.V.
Wijchenseweg 8
6537 TL Nijmegen
P.O. Box 38074
6503 AB Nijmegen
The Netherlands
T:  +31 (0) 24 648 7662
F:  +31 (0) 24 642 2942
E: [EMAIL PROTECTED]
W: www.planon-fm.com

Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde 
ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie 
bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt 
worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde 
ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk 
en informeer de afzender.

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender.


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


Re: [Wicket-user] Radio, AJAX and Model: What ist he correct type for a radio button property model

2006-07-17 Thread Igor Vaynberg
the model of each radio returns the object that you want put into the model of the radiogroup so the type of both models is the samenew RadioGroup(foo, new PropertyModelPerson(this, person));
new Radio(bar, new Model(new Person(...)));so if you want the value to be preselected you have to put the right object inside the model of the radiogroup-Igor
On 7/17/06, Stefan Lindner [EMAIL PROTECTED] wrote:
Hi all,What ist he correct type for a radio button property model?I want to use RadioButtons with AJAX. I have found a hint in the mailinglist archive that I have to use RadioGroup and add an ajax event to each
Radio Object in the radio group. This works.But now: when I want one of the radio buttons to be preselected I needto bind a model to the radio button.Let's assume that I have HTML like this form wicket:id=form
span wicket:id=grouptable style=border: 2px dotted #fc0; width:400px; padding: 5px; trtd valign=topSelect a person/td
tdtable cellspacing=0cellpadding=2trtd wicket:id=persons
input type=radiowicket:id=radio/spanwicket:id=name[this is where name will be]/span/td
/tr/tablespan valign=top/span
/td...The java part looks like thisfinal RadioGroup group = newRadioGroup(group);Form form = new Form(form);
add(form);form.add(group);ListView persons = new ListView(persons,getPersons()) {protected void populateItem(ListItem
item) {Radio r = new Radio(radio,item.getModel());r.add(newAjaxEventBehavior(onchange) { protected void
onEvent(AjaxRequestTarget target) { System.out.println(-- +getComponent().getModelObject().toString);} });
item.add(r);item.add(new Label(name, newPropertyModel(item.getModel(), name)));}
};group.add(persons);This works well in one way: I can receive the AJAX event when a radiobutton is selectd.But now I want to have one radio buttln preselect when I display the
panel.When I try to add a PropertyModel to the radio buttonRadio r = new Radio(radio, new PropertyModel(item.getModel(),radio));I can see calls to getRadio in my ModelClass when the components are
rendered the first time. But when I klick into a radio butteln a classcast Exception is thrown. I tried a boolean, a Boolean and a String astype for the radio button but alway a class cast exception is thrown.
Now once again the question: What ist he correct type for a radio buttonproperty model and what ist he default value to have one radio buttonselected.-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Igor Vaynberg
components whose model is backed by a collection do not always call setobject() because they work on the collection directly so there is no need to callCollection c=model.getObject();c.clear();//refill c
model.setObject(c); == NOOPand also in wicket there is a guardcomponent.setObject(c) { if (c.equals(model.getobject()) { //noop } else { //clone for version tracking; model.setObject
(c); }}the above saves on unnecessary cloning.just a few things to be aware of, whether or not we should call setobject() anyways is still up for discussion.i kinda think we should even though sometimes the objects are the same.
-Igor On 7/17/06, Nino Wael [EMAIL PROTECTED] wrote:
Strange then, it seems as the extension palette does not update on a submit? Does it somehow detach from its model?-Original Message-From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf Of Eelco HilleniusSent: 17. juli 2006 12:14To: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette; When is setObject supposed to get called, Cause I only see it get called during
 construct?Whenever a (form)component has to update it's modelcontents. Or ifyou call setObject explicitly of course :() Typically, a componentupdate is done by Form, which visits all it's children and calls
updateModel on them.Eelco-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

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


Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Igor Vaynberg
btw, when submitting a form through _javascript_ form's onsubmit is not called so you have to call it manually from the button anyways.-IgorOn 7/17/06, 
Dorel Vaida [EMAIL PROTECTED] wrote:
It works, sorry, I was not paying enough attention. In the first phase Iwasn't looking to the right form, the the second phase I forgot to addthe 'return' in the 'onsubmit' form handlerCorrect is *add(new SimpleAttributeModifier(onsubmit, return
confirmSubmission()));* and it works with wicket 1.2 final.Sorry for the trouble.Dorel Vaida wrote: Eelco Hillenius wrote: Yeah do it like that. The form is submitted no matter what I return in submit button's
 onclick. Eventually the solution would be to add a simple button and NOT a submit button and force submiting the form through _javascript_ when pressing the button.(Which I do not like).
 I wouldn't know why attaching attribute modifiers to your form didn't work though... Me neither, that's why I asked. I thought that in some way onsubmit
 attribute is blocked by wicket being reserved for it's own use, otherwise I do not see any reason why wicket wouldn't render a 'onsubmit' attribute as it renders the others that fortunately do work
 :-(. From what I know returning false in the form's onsubmit is the standard way of elegantly preventing the form from being submitted. Eelco On 7/17/06, Matej Knopp 
[EMAIL PROTECTED] wrote: I think you should add Button(s) to the form and add onclick attribute modifier on them (or right on to the markup input type=submit
 wicket:id=submit  confirm('...');/ ) -Matej Dorel Vaida wrote: I'm using wicket 
1.2 final and trying to use the form's 'onsubmit' handler to prompt the user to confirm a message or not. I've tried to solve this by adding the onsubmit to the form with a
 SimpleAttributeModifier but it doesn't work, the onsubmit attribute is simply not rendered ?! If this isn't the way a form is supposed to be used, can anybody point
 to how can I do such a thing ? (Ask a user, 'do you really want to submit that form' when he presses submit) Thanks, Dorel
 - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
 - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1523 (20060505) Information __ This message was checked by NOD32 Antivirus System.
 http://www.nod32.com -
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1523 (20060505) Information __ This message was checked by NOD32 Antivirus System. 
http://www.nod32.com-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list

[Wicket-user] Stream Excel to the client

2006-07-17 Thread Dorel Vaida
Is there an easy way, (or an example :-)), of how to stream an Excel 
(application/vnd.ms-excel) to the client ? With the beta4 version it was 
working to write the bytes to wicket response's output stream and set 
the content disposition etc on the http servet response, but that seem 
not to work anymore.

Thanks,
Dorel


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


Re: [Wicket-user] working with plugins

2006-07-17 Thread Eelco Hillenius
I'm afraid I don't get the request. Could you please create a feature
request with a patch, clearly explaining what is wrong today and what
your patch fixes?

Thanks,

Eelco


On 7/17/06, Ittay Dror [EMAIL PROTECTED] wrote:
 Hi,

 We're using plugins similar to Eclipse's to decouple functionality. Each 
 plugin's classes run in their own class loader.

 We've encountered a problem in onNewBrowserWindow(). it uses 
 Objects.cloneObject(), which uses the default ObjectInputStream, that uses 
 the class loader associated with the execution stack, rather than the 
 object's. so trying to get the class of the object when reading it back fails.

 This can be solved by changing cloneObject to:
 public static Object cloneObject(final Object object)
{
if (object == null)
{
return null;
}
else
{
try
{
final ByteArrayOutputStream out = new 
 ByteArrayOutputStream(256);
ObjectOutputStream oos = new ObjectOutputStream(out);
oos.writeObject(object);
ObjectInputStream ois = new ObjectInputStream(new 
 ByteArrayInputStream(out
.toByteArray())) {
   protected Class 
 resolveClass(ObjectStreamClass desc) throws IOException,
ClassNotFoundException {
String className = desc.getName();
return Class.forName(className, true, 
 object.getClass().getClassLoader()); }
};
return ois.readObject();
}
catch (ClassNotFoundException e)
{
throw new WicketRuntimeException(Internal error cloning 
 object, e);
}
catch (IOException e)
{
throw new WicketRuntimeException(Internal error cloning 
 object, e);
}
}
}

 i think that it should work fine in this context since the object is already 
 accessible when writing it. it is working for us.

 btw, a problem that is caused by this failure (and the throwing of 
 WicketRuntimeException) is that the PageMap contains null entries (or rather, 
 the session contains attributes with null values). i couldn't track why 
 exactly this happens.

 regards,
 ittay



 --
 ===
 Ittay Dror,
 Chief architect, openQRM TL,
 RD, Qlusters Inc.
 [EMAIL PROTECTED]
 +972-3-6081994 Fax: +972-3-6081841

 http://www.openQRM.org
 - Keeps your Data-Center Up and Running


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



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


Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Vincent Jenks
I've been successful w/ exactly what Iman is concerned with - keeping
objects alive between requests just isn't necessary.  With
detachable-models, you can request your POJOs - and they effectively
become detached (outside of Hibernate session context).  You can pass
them between pages and persist them (putting them back into Hibernate
session context) by using merge() if you've updated their values.

I often save a round-trip by doing this w/ parent/child pages where I
pass the POJO to the detail page to view the child after it had
already been detached from the parent page.

On 7/17/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 As others have pointed out, the magic of IModel works better than you
 think (or thought) it does. I often have two constructors for pages, one
 taking bookmarkable parameters and another taking an IModel so that I
 don't always have to reload DB objects page to page. It's a cinch.

 http://databinder.net/wsvn/Databinder/recipe/trunk/src/main/java/example/RecipeBook.java?op=file

 But I get your point, when you say that this method is mostly adapted
 to the old MVC style of web programming. You're right. The
 one-session-per-request style is the conventional wisdom that we should
 be questioning here on the cutting edge.

 On the other hand, we have to be careful of getting TOO far ahead of the
 curve. This listserv used to get about one question a week about
 Wicket's crazy practice of actually using the session store. Those Qs
 have turned into general concerns about about load, high volume, etc.
 The fact that Wicket has a system of detachable models that can
 repopulate themselves from DB each request cycle is enormously
 comforting to people.

 This system works very well and practically everyone uses it, but that
 shouldn't stop you from trying something else. Whatever you come up with
 just might be the way we all do it in a few years, when server resources
 dwarf those available today. I like IModels fine, and will like them
 even more when they're strongly typed, but I'll admit it would be easier
 to just pass around the objects they contain. Significantly easier for
 new users.

 So please do give it a shot. (I'm assuming your app is high-complexity,
 low-volume, or that you have small data objects.) I can't think of
 anything in Wicket that would slow you down, other than the minor
 annoyance of having to wrap objects in new Model(Serializable o) before
 passing them to some framework components.

 And let us know how it goes!

 Nathan


 Iman Rahmatizadeh wrote:
  The problem with #1 is, first its a bit ugly, second you discard every
  persistent instance in each cycle (which is less efficient than #2 or
  #3), third you lose the advantages of working  passing POJO's between
  pages, Like you would call 'new ProfilePage(person.getId())' instead of
  'new ProfilePage(person))' and retrieve the person from database again
  in the profile page. As Nathan said, despite the disadvantages, it's the
  easiest and the most straight forward, and mostly adapted to the old MVC
  style of web programming.
  With wicket, I would like to pass objects around to pages and methods,
  keep them in memory during the unit of work, and persist the changes at
  the end. The problem is I make a new Hibernate Session in each request
  cycle, so I have to re-attach the objects from the previous cycle to the
  new Hibernate Session each time (as in #2). This can get quite
  cumbersome and would easily get out of control.
  With all that said , I guess I'm alone in this case and everybody agrees
  on using #1. Still if anybody has any experience with #2 or #3, I would
  be happy to know about it.
 
  Iman



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



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


Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Igor Vaynberg
while merge is good for saving the bigger concern is stale data. you pass your pojo to the component, store it as a property, and some request later you read its property - which at this point will be stale because the pojo is detached from the session.
-IgorOn 7/17/06, Vincent Jenks [EMAIL PROTECTED] wrote:
I've been successful w/ exactly what Iman is concerned with - keepingobjects alive between requests just isn't necessary.Withdetachable-models, you can request your POJOs - and they effectivelybecome detached (outside of Hibernate session context).You can pass
them between pages and persist them (putting them back into Hibernatesession context) by using merge() if you've updated their values.I often save a round-trip by doing this w/ parent/child pages where I
pass the POJO to the detail page to view the child after it hadalready been detached from the parent page.On 7/17/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 As others have pointed out, the magic of IModel works better than you think (or thought) it does. I often have two constructors for pages, one taking bookmarkable parameters and another taking an IModel so that I
 don't always have to reload DB objects page to page. It's a cinch. http://databinder.net/wsvn/Databinder/recipe/trunk/src/main/java/example/RecipeBook.java?op=file
 But I get your point, when you say that this method is mostly adapted to the old MVC style of web programming. You're right. The one-session-per-request style is the conventional wisdom that we should
 be questioning here on the cutting edge. On the other hand, we have to be careful of getting TOO far ahead of the curve. This listserv used to get about one question a week about Wicket's crazy practice of actually using the session store. Those Qs
 have turned into general concerns about about load, high volume, etc. The fact that Wicket has a system of detachable models that can repopulate themselves from DB each request cycle is enormously
 comforting to people. This system works very well and practically everyone uses it, but that shouldn't stop you from trying something else. Whatever you come up with just might be the way we all do it in a few years, when server resources
 dwarf those available today. I like IModels fine, and will like them even more when they're strongly typed, but I'll admit it would be easier to just pass around the objects they contain. Significantly easier for
 new users. So please do give it a shot. (I'm assuming your app is high-complexity, low-volume, or that you have small data objects.) I can't think of anything in Wicket that would slow you down, other than the minor
 annoyance of having to wrap objects in new Model(Serializable o) before passing them to some framework components. And let us know how it goes! Nathan Iman Rahmatizadeh wrote:
  The problem with #1 is, first its a bit ugly, second you discard every  persistent instance in each cycle (which is less efficient than #2 or  #3), third you lose the advantages of working  passing POJO's between
  pages, Like you would call 'new ProfilePage(person.getId())' instead of  'new ProfilePage(person))' and retrieve the person from database again  in the profile page. As Nathan said, despite the disadvantages, it's the
  easiest and the most straight forward, and mostly adapted to the old MVC  style of web programming.  With wicket, I would like to pass objects around to pages and methods,  keep them in memory during the unit of work, and persist the changes at
  the end. The problem is I make a new Hibernate Session in each request  cycle, so I have to re-attach the objects from the previous cycle to the  new Hibernate Session each time (as in #2). This can get quite
  cumbersome and would easily get out of control.  With all that said , I guess I'm alone in this case and everybody agrees  on using #1. Still if anybody has any experience with #2 or #3, I would
  be happy to know about it.   Iman - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing 

[Wicket-user] ajax the wiki

2006-07-17 Thread Scott Swank
I want to take my first dive into Ajax with Wicket.  Can anyone point
me to a useful page on the wiki... or elsewhere.  Alternately, I've
read through the example code and a simple pointer toward one example
or another as best practices would be swell.

Many thanks,
Scott

-- 
Scott Swank
reformed mathematician


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


Re: [Wicket-user] working with plugins

2006-07-17 Thread Ittay Dror
done. the request id is 1524019. 

i've added more description of the problem and the solution. i think this may 
happen also with osgi integration, or any other case where an object is used 
that is found through a classloader different than the one wicket / tomcat is 
in.

Eelco Hillenius wrote:
 I'm afraid I don't get the request. Could you please create a feature
 request with a patch, clearly explaining what is wrong today and what
 your patch fixes?
 
 Thanks,
 
 Eelco
 
 
 On 7/17/06, Ittay Dror [EMAIL PROTECTED] wrote:
 Hi,

 We're using plugins similar to Eclipse's to decouple functionality. Each 
 plugin's classes run in their own class loader.

 We've encountered a problem in onNewBrowserWindow(). it uses 
 Objects.cloneObject(), which uses the default ObjectInputStream, that uses 
 the class loader associated with the execution stack, rather than the 
 object's. so trying to get the class of the object when reading it back 
 fails.

 This can be solved by changing cloneObject to:
 public static Object cloneObject(final Object object)
{
if (object == null)
{
return null;
}
else
{
try
{
final ByteArrayOutputStream out = new 
 ByteArrayOutputStream(256);
ObjectOutputStream oos = new ObjectOutputStream(out);
oos.writeObject(object);
ObjectInputStream ois = new ObjectInputStream(new 
 ByteArrayInputStream(out
.toByteArray())) {
   protected Class 
 resolveClass(ObjectStreamClass desc) throws IOException,
ClassNotFoundException {
String className = desc.getName();
return Class.forName(className, true, 
 object.getClass().getClassLoader()); }
};
return ois.readObject();
}
catch (ClassNotFoundException e)
{
throw new WicketRuntimeException(Internal error cloning 
 object, e);
}
catch (IOException e)
{
throw new WicketRuntimeException(Internal error cloning 
 object, e);
}
}
}

 i think that it should work fine in this context since the object is already 
 accessible when writing it. it is working for us.

 btw, a problem that is caused by this failure (and the throwing of 
 WicketRuntimeException) is that the PageMap contains null entries (or 
 rather, the session contains attributes with null values). i couldn't track 
 why exactly this happens.

 regards,
 ittay



 --
 ===
 Ittay Dror,
 Chief architect, openQRM TL,
 RD, Qlusters Inc.
 [EMAIL PROTECTED]
 +972-3-6081994 Fax: +972-3-6081841

 http://www.openQRM.org
 - Keeps your Data-Center Up and Running


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

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


-- 
===
Ittay Dror, 
Chief architect, openQRM TL, 
RD, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


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


Re: [Wicket-user] working with plugins

2006-07-17 Thread Igor Vaynberg
we do have IClassResolver woudnt that help? it helped with osgi-IgorOn 7/17/06, Ittay Dror [EMAIL PROTECTED]
 wrote:done. the request id is 1524019.i've added more description of the problem and the solution. i think this may happen also with osgi integration, or any other case where an object is used that is found through a classloader different than the one wicket / tomcat is in.
Eelco Hillenius wrote: I'm afraid I don't get the request. Could you please create a feature request with a patch, clearly explaining what is wrong today and what your patch fixes?
 Thanks, Eelco On 7/17/06, Ittay Dror [EMAIL PROTECTED] wrote: Hi, We're using plugins similar to Eclipse's to decouple functionality. Each plugin's classes run in their own class loader.
 We've encountered a problem in onNewBrowserWindow(). it uses Objects.cloneObject(), which uses the default ObjectInputStream, that uses the class loader associated with the execution stack, rather than the object's. so trying to get the class of the object when reading it back fails.
 This can be solved by changing cloneObject to: public static Object cloneObject(final Object object){if (object == null){return null;
}else{try{final ByteArrayOutputStream out = new ByteArrayOutputStream(256);ObjectOutputStream oos = new ObjectOutputStream(out);
oos.writeObject(object);ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(out.toByteArray())) { protected Class resolveClass(ObjectStreamClass desc) throws IOException,
ClassNotFoundException {String className = desc.getName();return Class.forName(className, true, object.getClass().getClassLoader()); }
};return ois.readObject();}catch (ClassNotFoundException e){throw new WicketRuntimeException(Internal error cloning object, e);
}catch (IOException e){throw new WicketRuntimeException(Internal error cloning object, e);}
}} i think that it should work fine in this context since the object is already accessible when writing it. it is working for us. btw, a problem that is caused by this failure (and the throwing of WicketRuntimeException) is that the PageMap contains null entries (or rather, the session contains attributes with null values). i couldn't track why exactly this happens.
 regards, ittay -- === Ittay Dror, Chief architect, openQRM TL, RD, Qlusters Inc.
 [EMAIL PROTECTED] +972-3-6081994 Fax: +972-3-6081841 http://www.openQRM.org - Keeps your Data-Center Up and Running
 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--===
Ittay Dror,Chief architect, openQRM TL,RD, Qlusters Inc.[EMAIL PROTECTED]+972-3-6081994 Fax: +972-3-6081841http://www.openQRM.org
- Keeps your Data-Center Up and Running-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

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


Re: [Wicket-user] working with plugins

2006-07-17 Thread Ittay Dror
if the deserialization uses it, then maybe (i'm not sure how it is used). but 
in our case, every Page subclass may be in its own class loader, separate from 
others, so using a singleton IClassResolver instance will not help (unless it 
delegates to all class loaders, which may cause havoc). i think that my 
proposed solution is straight forward.

Igor Vaynberg wrote:
 we do have IClassResolver woudnt that help? it helped with osgi
 
 -Igor
 
 
 On 7/17/06, *Ittay Dror* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 done. the request id is 1524019.
 
 i've added more description of the problem and the solution. i think
 this may happen also with osgi integration, or any other case where
 an object is used that is found through a classloader different than
 the one wicket / tomcat is in.
 
 Eelco Hillenius wrote:
   I'm afraid I don't get the request. Could you please create a feature
   request with a patch, clearly explaining what is wrong today and what
   your patch fixes?
  
   Thanks,
  
   Eelco
  
  
   On 7/17/06, Ittay Dror [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
   Hi,
  
   We're using plugins similar to Eclipse's to decouple
 functionality. Each plugin's classes run in their own class loader.
  
   We've encountered a problem in onNewBrowserWindow(). it uses
 Objects.cloneObject(), which uses the default ObjectInputStream,
 that uses the class loader associated with the execution stack,
 rather than the object's. so trying to get the class of the object
 when reading it back fails.
  
   This can be solved by changing cloneObject to:
   public static Object cloneObject(final Object object)
  {
  if (object == null)
  {
  return null;
  }
  else
  {
  try
  {
  final ByteArrayOutputStream out = new
 ByteArrayOutputStream(256);
  ObjectOutputStream oos = new
 ObjectOutputStream(out);
  oos.writeObject(object);
  ObjectInputStream ois = new ObjectInputStream(new
 ByteArrayInputStream(out
  .toByteArray())) {
 protected Class
 resolveClass(ObjectStreamClass desc) throws IOException,
  ClassNotFoundException {
  String className = desc.getName();
  return Class.forName(className, true,
 object.getClass().getClassLoader()); }
  };
  return ois.readObject();
  }
  catch (ClassNotFoundException e)
  {
  throw new WicketRuntimeException(Internal error
 cloning object, e);
  }
  catch (IOException e)
  {
  throw new WicketRuntimeException(Internal error
 cloning object, e);
  }
  }
  }
  
   i think that it should work fine in this context since the
 object is already accessible when writing it. it is working for us.
  
   btw, a problem that is caused by this failure (and the throwing
 of WicketRuntimeException) is that the PageMap contains null entries
 (or rather, the session contains attributes with null values). i
 couldn't track why exactly this happens.
  
   regards,
   ittay
  
  
  
   --
   ===
   Ittay Dror,
   Chief architect, openQRM TL,
   RD, Qlusters Inc.
   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   +972-3-6081994 Fax: +972-3-6081841
  
   http://www.openQRM.org
   - Keeps your Data-Center Up and Running
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make
 your job easier
   Download IBM WebSphere Application Server v.1.0.1 based on
 Apache Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make
 your job 

Re: [Wicket-user] ajax the wiki

2006-07-17 Thread Frank Bille Jensen
Try checking out the AJAX examples:

http://www.wicket-library.com/wicket-examples/ajax

I think they are really useful.

Frank

On Mon, 2006-07-17 at 11:12 -0700, Scott Swank wrote:
 I want to take my first dive into Ajax with Wicket.  Can anyone point
 me to a useful page on the wiki... or elsewhere.  Alternately, I've
 read through the example code and a simple pointer toward one example
 or another as best practices would be swell.
 
 Many thanks,
 Scott
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Julian Klappenbach



What's the risk of "stale" data? Primary concern 
would be that someone updated the record between the time that you read the 
data, and when you try to perform your own update. You can use the 
Hibernate / EJB3 strategy of optimistic locking with @Version (IIRC) to prevent 
stale data from accidental persistence. If you're without Hibernate, there 
are well defined patterns to help you code an OL solution.

-jjk 


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Igor 
VaynbergSent: Monday, July 17, 2006 10:52 AMTo: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Wicket 
 Hibernate  Application Transactions
while merge is good for saving the bigger concern is stale data. you 
pass your pojo to the component, store it as a property, and some request later 
you read its property - which at this point will be stale because the pojo is 
detached from the session. -Igor
On 7/17/06, Vincent 
Jenks [EMAIL PROTECTED] 
wrote:
I've 
  been successful w/ exactly what Iman is concerned with - keepingobjects 
  alive between requests just isn't 
  necessary.Withdetachable-models, you can request your POJOs - 
  and they effectivelybecome detached (outside of Hibernate session 
  context).You can pass them between pages and persist them 
  (putting them back into Hibernatesession context) by using merge() if 
  you've updated their values.I often save a round-trip by doing this w/ 
  parent/child pages where Ipass the POJO to the detail page to view the 
  child after it hadalready been detached from the parent page.On 
  7/17/06, Nathan Hamblen [EMAIL PROTECTED] wrote: 
   As others have pointed out, the magic of IModel works better than 
  you think (or thought) it does. I often have two constructors for 
  pages, one taking bookmarkable parameters and another taking an IModel 
  so that I  don't always have to reload DB objects page to page. It's a 
  cinch. http://databinder.net/wsvn/Databinder/recipe/trunk/src/main/java/example/RecipeBook.java?op=file 
   But I get your point, when you say that this method is 
  "mostly adapted to the old MVC style of web programming." You're 
  right. The one-session-per-request style is the conventional wisdom 
  that we should  be questioning here on the cutting 
  edge. On the other hand, we have to be careful of getting TOO 
  far ahead of the curve. This listserv used to get about one question a 
  week about Wicket's crazy practice of actually using the session 
  store. Those Qs  have turned into general concerns about about load, 
  high volume, etc. The fact that Wicket has a system of detachable 
  models that can repopulate themselves from DB each request cycle is 
  enormously  comforting to people. This system works 
  very well and practically everyone uses it, but that shouldn't stop 
  you from trying something else. Whatever you come up with just might 
  be the way we all do it in a few years, when server resources  dwarf 
  those available today. I like IModels fine, and will like them even 
  more when they're strongly typed, but I'll admit it would be easier to 
  just pass around the objects they contain. Significantly easier for  
  new users. So please do give it a shot. (I'm assuming your app 
  is high-complexity, low-volume, or that you have small data objects.) 
  I can't think of anything in Wicket that would slow you down, other 
  than the minor  annoyance of having to wrap objects in new 
  Model(Serializable o) before passing them to some framework 
  components. And let us know how it goes! 
  Nathan Iman Rahmatizadeh wrote:   The 
  problem with #1 is, first its a bit ugly, second you discard every 
   persistent instance in each cycle (which is less efficient than #2 
  or  #3), third you lose the advantages of working  passing 
  POJO's between   pages, Like you would call 'new 
  ProfilePage(person.getId())' instead of  'new 
  ProfilePage(person))' and retrieve the person from database again  
  in the profile page. As Nathan said, despite the disadvantages, it's the 
easiest and the most straight forward, and mostly adapted to the 
  old MVC  style of web programming.  With wicket, I 
  would like to pass objects around to pages and methods,  keep them 
  in memory during the unit of work, and persist the changes at   
  the end. The problem is I make a new Hibernate Session in each request 
   cycle, so I have to re-attach the objects from the previous cycle to 
  the  new Hibernate Session each time (as in #2). This can get 
  quite   cumbersome and would easily get out of control. 
   With all that said , I guess I'm alone in this case and everybody 
  agrees  on using #1. Still if anybody has any experience with #2 
  or #3, I would   be happy to know about it.  
   Iman 
  - 
  Using Tomcat but need to do more? Need to support web services, security? 
   Get stuff done quickly with pre-integrated technology to make your 
  job 

Re: [Wicket-user] Radio, AJAX and Model: What ist he correct type for a radio button property model

2006-07-17 Thread Stefan Lindner
This works very well. Thank you!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket in large scale production scenarios?

2006-07-17 Thread Peter Neubauer
Hi there,
we are planning to propose Wicket for a large scale migration project,
and beside my previous question about the Swing compatibility (which I
think after your nice hints is solveable, thanks!) I have some more
questions - basically the usual sales and standard stuff:

- is there any experience of Wicket performance in load tests?
- are there any current large-scale production sites known that we
could use as success stories?
- is there any independent references on productivity of development
with wicket?

Thanks for any hints on this. Of course, once we get some projects
behind it we can feed back more stuff, intended is the use together
with the OPS4J OSGi-Wicket integration and RSP-UI, so there is a lot
of good integration work coming in.

/peter

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker




I frequently have the need to filter the elements in a ListView.. of
course I can filter elements before passing them to ListView by creating
a new List, but it seems a lot cleaner to have an accept() method, just
like in IFeedbackMessageFilter or whatever. 

ie:


add( new ListView( list, myList ) ) {
 public void onPopulateItem( ListItem item ) { ... }
 public boolean accept( ListItem item ) {
 return ((MyEntity)item.getModel()).isActive();
 }
}



Would this be trivial to add to the ListView component?

ie:


Aaron


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Juergen Donnerstag
Just out of my head. Paging which is based on windows size and list
size would need to take these into consideration. Not sure this change
is trivial.

Juergen

On 7/18/06, Aaron Hiniker [EMAIL PROTECTED] wrote:

  I frequently have the need to filter the elements in a ListView.. of
  course I can filter elements before passing them to ListView by creating
  a new List, but it seems a lot cleaner to have an accept() method, just
  like in IFeedbackMessageFilter or whatever.

  ie:


  add( new ListView( list, myList ) ) {
  public void onPopulateItem( ListItem item ) { ... }
  public boolean accept( ListItem item ) {
  return ((MyEntity)item.getModel()).isActive();
  }
  }



  Would this be trivial to add to the ListView component?

  ie:


  Aaron
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
the filtering should be performed in the model - it is the perfect place for it.-IgorOn 7/17/06, Juergen Donnerstag 
[EMAIL PROTECTED] wrote:Just out of my head. Paging which is based on windows size and list
size would need to take these into consideration. Not sure this changeis trivial.JuergenOn 7/18/06, Aaron Hiniker [EMAIL PROTECTED] wrote:I frequently have the need to filter the elements in a ListView.. of
course I can filter elements before passing them to ListView by creatinga new List, but it seems a lot cleaner to have an accept() method, justlike in IFeedbackMessageFilter or whatever.
ie:add( new ListView( list, myList ) ) {public void onPopulateItem( ListItem item ) { ... }public boolean accept( ListItem item ) {return ((MyEntity)item.getModel()).isActive();
}}Would this be trivial to add to the ListView component?ie:Aaron -
 Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___
 Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker




Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.

Aaron


On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

the filtering should be performed in the model - it is the perfect place for it.

-Igor




On 7/17/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:

Just out of my head. Paging which is based on windows size and list 
size would need to take these into consideration. Not sure this change
is trivial.

Juergen

On 7/18/06, Aaron Hiniker [EMAIL PROTECTED] wrote:

I frequently have the need to filter the elements in a ListView.. of 
course I can filter elements before passing them to ListView by creating
a new List, but it seems a lot cleaner to have an accept() method, just
like in IFeedbackMessageFilter or whatever.
 
ie:


add( new ListView( list, myList ) ) {
public void onPopulateItem( ListItem item ) { ... }
public boolean accept( ListItem item ) {
return ((MyEntity)item.getModel()).isActive(); 
}
}



Would this be trivial to add to the ListView component?

ie:


Aaron
 - 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___ 
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your 
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.-IgorOn 7/17/06, 
Aaron Hiniker [EMAIL PROTECTED] wrote:



  
  


Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.

Aaron


On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

the filtering should be performed in the model - it is the perfect place for it.

-Igor




On 7/17/06, Juergen Donnerstag 
[EMAIL PROTECTED] wrote:

Just out of my head. Paging which is based on windows size and list 
size would need to take these into consideration. Not sure this change
is trivial.

Juergen

On 7/18/06, Aaron Hiniker [EMAIL PROTECTED] wrote:


I frequently have the need to filter the elements in a ListView.. of 
course I can filter elements before passing them to ListView by creating
a new List, but it seems a lot cleaner to have an accept() method, just
like in IFeedbackMessageFilter or whatever.
 
ie:


add( new ListView( list, myList ) ) {
public void onPopulateItem( ListItem item ) { ... }
public boolean accept( ListItem item ) {
return ((MyEntity)item.getModel()).isActive(); 
}
}



Would this be trivial to add to the ListView component?

ie:


Aaron
 - 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash 
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___ 
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

 
https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your 
opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user





-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker




Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance hits than a single List copy (due to the Linked List nature of the filtering). The current ListView implementation only works on lists.. rightfully so because you can extract the active window via get() calls and provide pagination. On that note, I agree that for ListView, the accept() is not a good candidate.. but I also feel that there is a void in not having a component that *doesn't* paginate.. like a CollectionView.. that visits each element in the list with easy filtering capabilities (in fact 90% of the time I am using ListView I am not using pagination). If I get ambitious enough to write it, I'll submit it for consideration into wicket-extensions

Aaron


On Mon, 2006-07-17 at 17:40 -0700, Igor Vaynberg wrote:

im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.

-Igor




On 7/17/06, Aaron Hiniker [EMAIL PROTECTED] wrote:



Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.






Aaron







On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

the filtering should be performed in the model - it is the perfect place for it.

-Igor


On 7/17/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:

Just out of my head. Paging which is based on windows size and list 
size would need to take these into consideration. Not sure this change
is trivial.

Juergen

On 7/18/06, Aaron Hiniker [EMAIL PROTECTED] wrote:

I frequently have the need to filter the elements in a ListView.. of 
course I can filter elements before passing them to ListView by creating
a new List, but it seems a lot cleaner to have an accept() method, just
like in IFeedbackMessageFilter or whatever.
 
ie:


add( new ListView( list, myList ) ) {
public void onPopulateItem( ListItem item ) { ... }
public boolean accept( ListItem item ) {
return ((MyEntity)item.getModel()).isActive(); 
}
}



Would this be trivial to add to the ListView component?

ie:


Aaron
 - 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___ 
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your 
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 









-






Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user










-
Take Surveys. Earn Cash. 

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
another key reason for list is that the index of the list is used as a primary key to identify the right item on callbacks.-IgorOn 7/17/06, Aaron Hiniker
 [EMAIL PROTECTED] wrote:


  
  


Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance hits than a single List copy (due to the Linked List nature of the filtering). The current ListView implementation only works on lists.. rightfully so because you can extract the active window via get() calls and provide pagination. On that note, I agree that for ListView, the accept() is not a good candidate.. but I also feel that there is a void in not having a component that *doesn't* paginate.. like a CollectionView.. that visits each element in the list with easy filtering capabilities (in fact 90% of the time I am using ListView I am not using pagination). If I get ambitious enough to write it, I'll submit it for consideration into wicket-extensions


Aaron


On Mon, 2006-07-17 at 17:40 -0700, Igor Vaynberg wrote:

im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.

-Igor




On 7/17/06, Aaron Hiniker 
[EMAIL PROTECTED] wrote:



Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.






Aaron







On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

the filtering should be performed in the model - it is the perfect place for it.

-Igor


On 7/17/06, Juergen Donnerstag 
[EMAIL PROTECTED] wrote:

Just out of my head. Paging which is based on windows size and list 
size would need to take these into consideration. Not sure this change
is trivial.

Juergen

On 7/18/06, Aaron Hiniker [EMAIL PROTECTED]
 wrote:

I frequently have the need to filter the elements in a ListView.. of 
course I can filter elements before passing them to ListView by creating
a new List, but it seems a lot cleaner to have an accept() method, just
like in IFeedbackMessageFilter or whatever.
 
ie:


add( new ListView( list, myList ) ) {
public void onPopulateItem( ListItem item ) { ... }
public boolean accept( ListItem item ) {
return ((MyEntity)item.getModel()).isActive(); 
}
}



Would this be trivial to add to the ListView component?

ie:


Aaron
 - 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash 
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___ 
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

 
https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your 
opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/wicket-user 








-






Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net 

Re: [Wicket-user] Stream Excel to the client

2006-07-17 Thread Dorel Vaida
Igor, you rock ! :-D .

Igor Vaynberg wrote:
 sure it does :)

 private class DownloadEulaPdfLink extends Link {

 public DownloadEulaPdfLink(String id) {
 super(id);
 }

 @Override
 public void onClick() {
 RequestCycle.get().setRequestTarget(new IRequestTarget() {

 public void detach(RequestCycle requestCycle) {
 }

 public Object getLock(RequestCycle requestCycle) {
 return null;
 }

 public void respond(RequestCycle requestCycle) {
 final String 
 pdfPath=/WEB-INF/eula/+props.getProperty(PROP_PDF);
 InputStream pdfStream=getResourceAsStream(pdfPath);
 if (pdfStream==null) {
 throw new RuntimeException(Could not find PDF 
 file, tried [[+pdfPath+]]);
 }

 WebResponse r=(WebResponse) 
 requestCycle.getResponse();
 r.setAttachmentHeader(eula.pdf);
 r.setContentType(application/pdf);
 try {
 Streams.copy(pdfStream, r.getOutputStream());
 } catch (IOException e) {
 throw new RuntimeException(e);
 }
 }

 });
 }

 }

 On 7/17/06, *Dorel Vaida*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Is there an easy way, (or an example :-)), of how to stream an Excel
 (application/vnd.ms-excel) to the client ? With the beta4 version
 it was
 working to write the bytes to wicket response's output stream and set
 the content disposition etc on the http servet response, but that
 seem
 not to work anymore.

 Thanks,
 Dorel


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


 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


 __ NOD32 1.1523 (20060505) Information __

 This message was checked by NOD32 Antivirus System.
 http://www.nod32.com

   
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user