Re: testing autocomplete with WicketTester

2010-01-14 Thread Douglas Ferguson
Anybody?

On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote:

 I am assuming that since it is actually a text field that I could just get 
 the component and cast it to a TextField then set the model object.
 
 However, I'm not sure that we fire the appropriate events to make the 
 autocomplete work properly as there are onchange events, etc on it..
 
 D/
 
 On Jan 10, 2010, at 7:56 PM, Douglas Ferguson wrote:
 
 What is the recommended way to test autocomplete using wicket tester?
 
 D/
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket security future - contribute!

2010-01-14 Thread Emond Papegaaij
On Thursday 14 January 2010 00:12:41 Alexander Elsholz wrote:
 in my last wicket projects i used wicket-auth roles and swarm/wasp. i think
 swarm/wasp is a really good base for larger web-applications. but we all
  know about the problem with swarm/wasp. i developed a few extensions for
  swarm, but its a lot of code and so nobody starts to maintain and whats
  more important to develop. so wasp swarm stops on wicket 1.3.

Wicket-security certainly does not stop at wicket 1.3. A snapshot for wicket 
1.4 is available and working. I am thinking about moving wicket-security under 
the WicketStuff Core project, but it is also possible that wicket-security 
will get it's own release cycle.

 there was plans to integrate wicket-security in 1.5. @wicket developers: is
  this still relevant?

I don't know about these plans, but it is possible that this has been 
discussed.

 i think we will not find one person who develops wicket-security allone -
  so who's interested?
 its not the part brings the most fun in wicket development area but a very
  very important part of every enterprise application - so contribute! lets
  define a security-subteam.

Well, actually, I recently volunteered to maintain wicket-security. I must 
admit that my time is somewhat limited, but I think wicket-security is too 
important to leave it unmaintained. At Topicus, we still heavily depend on it 
for old, current and new projects. Suggestions (and patches) are always 
welcome!

My short-term plans are to release a stable wicket-1.4 version, so you no 
longer need to depend on a SNAPSHOT. This week, a new version for wicket-1.3 
(wicket-security-1.3.1) was released, incorporation many fixes made by Maurice 
just before his accident and some minor new features. Work on a wicket-1.5 
version has not yet started.

Best regards,
Emond Papegaaij

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket Wizards and Hibernate

2010-01-14 Thread Rodolfo Cartas
Hi! I'm currently working on a wizard to modify a pojo extracted from  
a database with Hibernate. I don't want to commit any changes to the  
db before the user finishes the wizard, but the pojo loses reference  
to the original session. Shall I eagerly fetch the object to avoid any  
hibernate session reference exceptions?


Thanks,

Rodolfo

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Wizards and Hibernate

2010-01-14 Thread Steve Swinsburg
Hi,

Once you have the object built up, you could reattach it to the session with 
saveOrUpdate() which will figure out if it needs to insert or update. This 
assumes you are using the Spring Hibernate wrapper templates.

cheers,
Steve


On 14/01/2010, at 9:47 PM, Rodolfo Cartas wrote:

 Hi! I'm currently working on a wizard to modify a pojo extracted from a 
 database with Hibernate. I don't want to commit any changes to the db before 
 the user finishes the wizard, but the pojo loses reference to the original 
 session. Shall I eagerly fetch the object to avoid any hibernate session 
 reference exceptions?
 
 Thanks,
 
 Rodolfo
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 



smime.p7s
Description: S/MIME cryptographic signature


Re: A problem with ListView in a StatelessForm

2010-01-14 Thread kirillkh
Thanks, I'll be checking that out.

On Thu, Jan 14, 2010 at 2:52 AM, Cemal Bayramoglu 
jweekend_for...@cabouge.com wrote:

 Kirill,

 You may get some useful ideas at http://wicketinaction.com/tag/listeditor/ .

 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com


 2010/1/13 kirillkh kiril...@gmail.com:
  Hi Per,
 
  I've seen this mentioned in the javadocs, but it can't possibly help, as
 the
  ListView.reuseItems variable is only used inside ListView.onPopulate(),
  which, as I pointed out, is called too late. Indeed, setting reuseItems
 on
  doesn't help.
 
  Thanks,
  -Kirill
 
  On Wed, Jan 13, 2010 at 8:49 AM, Per Newgro per.new...@gmx.ch wrote:
 
  Without going deeper to your problem. A common mistake is that people
  forgot to call setReuseItems on the listview.
  This is required with repeaters in form. See javadoc for details.
 
  Cheers
  Per
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




wicket session vs tomcat session

2010-01-14 Thread Vadim Tesis

hi,

 

i'm trying to customize Tomcat 6 configuration and i came accross Manager 
element in server.xml. it allows one to configure where to store sessions 
(memory, disk, ...), for how long to keep the session before discarding it, ... 
 so i was wondering how (if at all) wicket (1.4.5) session is related to tomcat 
session and whether that tomcat configuration will affect wicket session in any 
way.

by the way in my wicket app among other things i store a user object in wicket 
session when the user signs in.

 

Thanks,

Vadim
  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/196390709/direct/01/

Re: display busy indicator while external image is fetched

2010-01-14 Thread Martijn Dashorst
img src=http://example.com/images/someimage.jpg;
style=background-image:url('style/spinner.gif'); /

Assuming the local machine is faster than the external server, the
spinner should be visible while the external image loads.

Martijn

On Wed, Jan 13, 2010 at 8:10 PM, Christoph Grün chris...@gmx.at wrote:
 Hi,



 how can I display a busy indicator while an external image is loaded?



 Thanks, Christoph







-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: display busy indicator while external image is fetched

2010-01-14 Thread Pedro Santos
Nice! I'm planing to show an busy indicator too, and the idea I had so far
was:

image = new Image();
code for show some busy indicator;
image.onload = function(){ code for stop the busy indicator}
image.src = 'path';

now I change my mind.

On Thu, Jan 14, 2010 at 10:48 AM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 img src=http://example.com/images/someimage.jpg;
 style=background-image:url('style/spinner.gif'); /

 Assuming the local machine is faster than the external server, the
 spinner should be visible while the external image loads.

 Martijn

 On Wed, Jan 13, 2010 at 8:10 PM, Christoph Grün chris...@gmx.at wrote:
  Hi,
 
 
 
  how can I display a busy indicator while an external image is loaded?
 
 
 
  Thanks, Christoph
 
 
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Pedro Henrique Oliveira dos Santos


SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Alexandru Barbat
Hello,

..
AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() {
protected void respond(AjaxRequestTarget target) {
target.addComponent(orasListPanel);
}

public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascript(function load_orase(){\n +
getCallbackScript().toString() + \nalert('ok');\n}, loadOrase);
}

};


TextField judet = new TextField(judetSelectat);
judet.add(new SimpleAttributeModifier(id,judetSelectat));
///x
judet.add(behave);

..


I use this to generate a js function in order to call it from flash
component but it does't work at all because o line ///.
SimpleAttributeModifier change the element id but the
AbstractDefaultAjaxBehaviour doesn;t take that in account.. it use the
generated id.  This is one problem. How I could overcome that?


And second, even if I don't change the id of 'judetSelectat' and even if the
behaviour it is called the model of the 'judet' field it is not called.
Why?


Thank you,

Alexandru


final in MarkupContainer#add(Component...) method

2010-01-14 Thread Ilya German
Hello!

We're struggling with working around the final modifier for the 
MarkupContainer#add(Component ...) method.
We have the following scenario:
1. We'd like to use a repeater to add some components to the form.
2. We'd like these components to work with CompoundPropertyModel, thus we need 
these to have meaningful wicket ids
3. We'd like not to find ourselves backstabbed by the non-numeric ids in the 
RepeatingView's children.

This brings us to a suggested wrapping of the children in 
WebMarkupContainers, but we'd like to hide it to get rid of the 

webmarkupcontainer item=new webmarkupcontainer(rv.newchildid());

part. To do this, it seems logical to extend the RepeatingView overriding the 
add() method to be wrapping every component, however the add() method is final 
:(

Could anyone suggest some other way to resolve this situation? Or, perhaps, it 
could be acceptable to officially remove the final modifier from the add() 
method?

Thanks in advance!

Ilya German.

Re: SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Pedro Santos
You can take a look at AjaxFormComponentUpdatingBehavior, this behavior will
keep the 'judet' field model data updated.
About the generated id, this is the default behavior, you can override the
onBind method to avoid id. But later you will can not add the component to
an AjaxRequestTarget, so see if you can work with the generated id.

On Thu, Jan 14, 2010 at 11:11 AM, Alexandru Barbat 
alexandrubar...@gmail.com wrote:

 Hello,

 ..
 AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() {
protected void respond(AjaxRequestTarget target) {
target.addComponent(orasListPanel);
}

public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascript(function load_orase(){\n +
 getCallbackScript().toString() + \nalert('ok');\n}, loadOrase);
}

};


TextField judet = new TextField(judetSelectat);
judet.add(new SimpleAttributeModifier(id,judetSelectat));
 ///x
judet.add(behave);

 ..


 I use this to generate a js function in order to call it from flash
 component but it does't work at all because o line ///.
 SimpleAttributeModifier change the element id but the
 AbstractDefaultAjaxBehaviour doesn;t take that in account.. it use the
 generated id.  This is one problem. How I could overcome that?


 And second, even if I don't change the id of 'judetSelectat' and even if
 the
 behaviour it is called the model of the 'judet' field it is not called.
 Why?


 Thank you,

 Alexandru




-- 
Pedro Henrique Oliveira dos Santos


SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Alexandru Barbat
Hello,

..
AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() {
protected void respond(AjaxRequestTarget target) {
target.addComponent(orasListPanel);
}

public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascript(function load_orase(){\n +
getCallbackScript().toString() + \nalert('ok');\n}, loadOrase);
}

};


TextField judet = new TextField(judetSelectat);
judet.add(new SimpleAttributeModifier(id,judetSelectat));
///x
judet.add(behave);

..


I use this to generate a js function in order to call it from flash
component but it does't work at all because o line ///.
SimpleAttributeModifier change the element id but the
AbstractDefaultAjaxBehaviour doesn;t take that in account.. it use the
generated id.  This is one problem. How I could overcome that?


And second, even if I don't change the id of 'judetSelectat' and even if the
behaviour it is called the model of the 'judet' field it is not called.
Why?


Thank you,

Alexandru


Re: testing autocomplete with WicketTester

2010-01-14 Thread Paul Szulc
I think you can explicitly tell in your tests to fire given java script
event, but after that your page flow will be broken (bug in the wicket
tester).

On Thu, Jan 14, 2010 at 9:51 AM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 Anybody?

 On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote:

  I am assuming that since it is actually a text field that I could just
 get the component and cast it to a TextField then set the model object.
 
  However, I'm not sure that we fire the appropriate events to make the
 autocomplete work properly as there are onchange events, etc on it..
 
  D/
 
  On Jan 10, 2010, at 7:56 PM, Douglas Ferguson wrote:
 
  What is the recommended way to test autocomplete using wicket tester?
 
  D/
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Best regards,
Paul Szulc

http://paulszulc.wordpress.com


Re: final in MarkupContainer#add(Component...) method

2010-01-14 Thread Pedro Santos
This brings us to a suggested wrapping of the children in
WebMarkupContainers
This is not the only option you have, you can use lenient form components
like:
public class LenientTextField extends TextField
{
@Override
protected void onComponentTag(final ComponentTag tag)
{
tag.setName(input);
tag.put(type, text);
super.onComponentTag(tag);
}
}
so you have an text field that you can your for any tag you place on your
template.

About the meaningful wicket ids, you doesn't need to call rv.newchildid(),
only make sure to don't repeat the ids.

Igor have sent to list time ago an project to make crud forms dynamically,
you can take a look and have more ideas.

2010/1/14 Ilya German ilja.germ...@parex.lv

 Hello!

 We're struggling with working around the final modifier for the
 MarkupContainer#add(Component ...) method.
 We have the following scenario:
 1. We'd like to use a repeater to add some components to the form.
 2. We'd like these components to work with CompoundPropertyModel, thus we
 need these to have meaningful wicket ids
 3. We'd like not to find ourselves backstabbed by the non-numeric ids in
 the RepeatingView's children.

 This brings us to a suggested wrapping of the children in
 WebMarkupContainers, but we'd like to hide it to get rid of the

 webmarkupcontainer item=new webmarkupcontainer(rv.newchildid());

 part. To do this, it seems logical to extend the RepeatingView overriding
 the add() method to be wrapping every component, however the add() method is
 final :(

 Could anyone suggest some other way to resolve this situation? Or, perhaps,
 it could be acceptable to officially remove the final modifier from the
 add() method?

 Thanks in advance!

 Ilya German.




-- 
Pedro Henrique Oliveira dos Santos


How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread Johan Vogelzang
Hi all,

I am trying out the AjaxFallbackDefaultDataTable, but have trouble when I
want to make a cell work as a link.
With the code below the table displays the word [cell] in all the cells of
the first column (Name). When I click on the cell, the correct response page
is opened. I tried to add a Label to the link but that results into a Wicket
error.
I red some posts about this issue, but I did not managed to find the correct
solution.

Who can help me?

Regards,
Johan.

public class ComestiblesDataTablePage extends RBSTemplate {

@SpringBean(name = breakfastService)
private BreakfastLocalService service;

private Integer maxItemsPerPage = 8;

@SuppressWarnings(serial)
public ComestiblesDataTablePage() {

ListIColumnComestibleDto columns = new
ArrayListIColumnComestibleDto();

columns.add(new PropertyColumnComestibleDto(new
ModelString(Name), name, name) {
@Override
public void populateItem(ItemICellPopulatorComestibleDto
item, String componentId,
IModelComestibleDto rowModel) {

AjaxFallbackLinkComestibleDto link = new
AjaxFallbackLinkComestibleDto(componentId, rowModel) {
@Override
public void onClick(AjaxRequestTarget target) {
setResponsePage(new ComestiblePage(getModel()));
}
};
// link.add(new Label(componentId)); -- Error: component
not markup, Component id = cell
item.add(link);
}
});
columns.add(new PropertyColumnComestibleDto(new
ModelString(Minimal Quantity), minimalQuantity,
minimalQuantity));
columns.add(new PropertyColumnComestibleDto(new
ModelString(Price), price, price));
columns.add(new PropertyColumnComestibleDto(new
ModelString(TransportForm), transportForm));

add(new AjaxFallbackDefaultDataTableComestibleDto(table,
columns, new ComestibleSortableDataProvider(
service), maxItemsPerPage));
add(new BookmarkablePageLinkObject(edit,
ComestiblesEditPage.class));
}

@Override
public String getPageTitle() {
return getLocalizer().getString(lbl.comestibles, this);
}

}


Re: SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Alexandru Barbat
I changed the code to AjaxFormComponentUpdatingBehavior but it seems the js
generated by this behavior
getCallbackScript() is the same with AbstractDefaultAjaxBehavior and I have
same results if I call that script from
my flash component.

..

function load_orase(){
var 
wcall=wicketAjaxGet('?wicket:interface=:0:sidebar:oraseForm:judetSelectat::IBehaviorListener:0:',null,null,
function() {return Wicket.$('judetSelectat2') != null;}.bind(this));
alert('ok');
}

..


Indeed AjaxFormComponentUpdatingBehavior generate on my field 'onchange'
attribute js which is good. How can I intercept this script and call it
programatically.

input wicket:id=judetSelectat type=text value=
name=judetSelectat id=judetSelectat2
onchange=var 
wcall=wicketAjaxPost('?wicket:interface=:0:sidebar:oraseForm:judetSelectat::IBehaviorListener:0:',
wicketSerialize(Wicket.$('judetSelectat2')),null,null, function()
{return Wicket.$('judetSelectat2') != null;}.bind(this));/


Thank you,
Alexandru



On Thu, Jan 14, 2010 at 3:25 PM, Pedro Santos pedros...@gmail.com wrote:

 You can take a look at AjaxFormComponentUpdatingBehavior, this behavior
 will
 keep the 'judet' field model data updated.
 About the generated id, this is the default behavior, you can override the
 onBind method to avoid id. But later you will can not add the component to
 an AjaxRequestTarget, so see if you can work with the generated id.

 On Thu, Jan 14, 2010 at 11:11 AM, Alexandru Barbat 
 alexandrubar...@gmail.com wrote:

  Hello,
 
  ..
  AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() {
 protected void respond(AjaxRequestTarget target) {
 target.addComponent(orasListPanel);
 }
 
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);
 response.renderJavascript(function load_orase(){\n +
  getCallbackScript().toString() + \nalert('ok');\n}, loadOrase);
 }
 
 };
 
 
 TextField judet = new TextField(judetSelectat);
 judet.add(new SimpleAttributeModifier(id,judetSelectat));
  ///x
 judet.add(behave);
 
  ..
 
 
  I use this to generate a js function in order to call it from flash
  component but it does't work at all because o line ///.
  SimpleAttributeModifier change the element id but the
  AbstractDefaultAjaxBehaviour doesn;t take that in account.. it use the
  generated id.  This is one problem. How I could overcome that?
 
 
  And second, even if I don't change the id of 'judetSelectat' and even if
  the
  behaviour it is called the model of the 'judet' field it is not called.
  Why?
 
 
  Thank you,
 
  Alexandru
 



 --
 Pedro Henrique Oliveira dos Santos



Re: How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread Ernesto Reinaldo Barreiro
You could create a panel containing the link and the label and add that
panel as the cell e.g. something like

html xmlns:wicket=org.apache.wicket
body
wicket:panel
a wicket:id=link title= class=button
span wicket:id=text[text goes here]/span
/a
/wicket:panel
/body
/html

Regards,

Ernesto

On Thu, Jan 14, 2010 at 2:38 PM, Johan Vogelzang
johan.vogelz...@gmail.comwrote:

 Hi all,

 I am trying out the AjaxFallbackDefaultDataTable, but have trouble when I
 want to make a cell work as a link.
 With the code below the table displays the word [cell] in all the cells of
 the first column (Name). When I click on the cell, the correct response
 page
 is opened. I tried to add a Label to the link but that results into a
 Wicket
 error.
 I red some posts about this issue, but I did not managed to find the
 correct
 solution.

 Who can help me?

 Regards,
 Johan.

 public class ComestiblesDataTablePage extends RBSTemplate {

@SpringBean(name = breakfastService)
private BreakfastLocalService service;

private Integer maxItemsPerPage = 8;

@SuppressWarnings(serial)
public ComestiblesDataTablePage() {

ListIColumnComestibleDto columns = new
 ArrayListIColumnComestibleDto();

columns.add(new PropertyColumnComestibleDto(new
 ModelString(Name), name, name) {
@Override
public void populateItem(ItemICellPopulatorComestibleDto
 item, String componentId,
IModelComestibleDto rowModel) {

AjaxFallbackLinkComestibleDto link = new
 AjaxFallbackLinkComestibleDto(componentId, rowModel) {
@Override
public void onClick(AjaxRequestTarget target) {
setResponsePage(new ComestiblePage(getModel()));
}
};
// link.add(new Label(componentId)); -- Error: component
 not markup, Component id = cell
item.add(link);
}
});
columns.add(new PropertyColumnComestibleDto(new
 ModelString(Minimal Quantity), minimalQuantity,
minimalQuantity));
columns.add(new PropertyColumnComestibleDto(new
 ModelString(Price), price, price));
columns.add(new PropertyColumnComestibleDto(new
 ModelString(TransportForm), transportForm));

add(new AjaxFallbackDefaultDataTableComestibleDto(table,
 columns, new ComestibleSortableDataProvider(
service), maxItemsPerPage));
add(new BookmarkablePageLinkObject(edit,
 ComestiblesEditPage.class));
}

@Override
public String getPageTitle() {
return getLocalizer().getString(lbl.comestibles, this);
}

 }



Re: wicket session vs tomcat session

2010-01-14 Thread nino martinez wael
If your http session times out, you will loose all data attached to
that including the wicket session.

2010/1/14 Vadim Tesis vad...@hotmail.com:

 hi,



 i'm trying to customize Tomcat 6 configuration and i came accross Manager 
 element in server.xml. it allows one to configure where to store sessions 
 (memory, disk, ...), for how long to keep the session before discarding it, 
 ...  so i was wondering how (if at all) wicket (1.4.5) session is related to 
 tomcat session and whether that tomcat configuration will affect wicket 
 session in any way.

 by the way in my wicket app among other things i store a user object in 
 wicket session when the user signs in.



 Thanks,

 Vadim

 _
 Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
 http://clk.atdmt.com/GBL/go/196390709/direct/01/

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Serious problem with swapping two items in a list (GAEJ/ JDO)

2010-01-14 Thread nino martinez wael
I don't see why the ajaxdefaultfallback table won't work.. Just add up
/ down arrows.. Just remember it will be persisted when you click up
or down. Even using a detachable model should work.

I had something similar where you could click an edit or delete
button, it just requires that the backing model are a List.

2010/1/11 Piotr Tarsa piotr.ta...@gmail.com:
 It doesn't work out of the box, because it creates copy of a list. That list
 is backed by JDO and attached to PersistenceManager, so cloning it makes
 straightforward persistence impossible.

 I also want to make instant changes, ie. when I click Move Down I expect
 the items be swapped in database before page reload (and the entire form
 revalidated before swapping).

 2010/1/8 Igor Vaynberg igor.vaynb...@gmail.com

 it usually helps to describe the problem

 but out of curiousity is this applicable?
 http://wicketinaction.com/2008/10/building-a-listeditor-form-component/

 -igor

 On Fri, Jan 8, 2010 at 2:42 PM, Piotr Tarsa piotr.ta...@gmail.com wrote:
  Hello,
 
  I've tried virtually everything. I'm looking for someone who has
 experience
  with GAEJ.
 
  Running site is at: http://data-compression.appspot.com/
  Source code (need wicket-guice):
 http://code.google.com/p/data-compression/
 
  Page address:
  http://data-compression.appspot.com/Administration/HomePagePanel
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread Johan Vogelzang
Thanks Ernesto, but i don't get it ...
The only markup the AjaxFallbackDefaultDataTable needs is:
..
table class=horizontal wicket:id=table[table]/table
..
So I don't know how to apply your solution.

Regards,
Johan.

2010/1/14 Ernesto Reinaldo Barreiro reier...@gmail.com

 You could create a panel containing the link and the label and add that
 panel as the cell e.g. something like

 html xmlns:wicket=org.apache.wicket
body
wicket:panel
a wicket:id=link title= class=button
span wicket:id=text[text goes here]/span
/a
/wicket:panel
/body
 /html

 Regards,

 Ernesto

 On Thu, Jan 14, 2010 at 2:38 PM, Johan Vogelzang
 johan.vogelz...@gmail.comwrote:

  Hi all,
 
  I am trying out the AjaxFallbackDefaultDataTable, but have trouble when I
  want to make a cell work as a link.
  With the code below the table displays the word [cell] in all the cells
 of
  the first column (Name). When I click on the cell, the correct response
  page
  is opened. I tried to add a Label to the link but that results into a
  Wicket
  error.
  I red some posts about this issue, but I did not managed to find the
  correct
  solution.
 
  Who can help me?
 
  Regards,
  Johan.
 
  public class ComestiblesDataTablePage extends RBSTemplate {
 
 @SpringBean(name = breakfastService)
 private BreakfastLocalService service;
 
 private Integer maxItemsPerPage = 8;
 
 @SuppressWarnings(serial)
 public ComestiblesDataTablePage() {
 
 ListIColumnComestibleDto columns = new
  ArrayListIColumnComestibleDto();
 
 columns.add(new PropertyColumnComestibleDto(new
  ModelString(Name), name, name) {
 @Override
 public void populateItem(ItemICellPopulatorComestibleDto
  item, String componentId,
 IModelComestibleDto rowModel) {
 
 AjaxFallbackLinkComestibleDto link = new
  AjaxFallbackLinkComestibleDto(componentId, rowModel) {
 @Override
 public void onClick(AjaxRequestTarget target) {
 setResponsePage(new ComestiblePage(getModel()));
 }
 };
 // link.add(new Label(componentId)); -- Error: component
  not markup, Component id = cell
 item.add(link);
 }
 });
 columns.add(new PropertyColumnComestibleDto(new
  ModelString(Minimal Quantity), minimalQuantity,
 minimalQuantity));
 columns.add(new PropertyColumnComestibleDto(new
  ModelString(Price), price, price));
 columns.add(new PropertyColumnComestibleDto(new
  ModelString(TransportForm), transportForm));
 
 add(new AjaxFallbackDefaultDataTableComestibleDto(table,
  columns, new ComestibleSortableDataProvider(
 service), maxItemsPerPage));
 add(new BookmarkablePageLinkObject(edit,
  ComestiblesEditPage.class));
 }
 
 @Override
 public String getPageTitle() {
 return getLocalizer().getString(lbl.comestibles, this);
 }
 
  }
 




-- 
Johan Vogelzang


Re: SimpleAttributeModifier and AbstractDefaultAjaxBehavior incompatibily

2010-01-14 Thread Alexandru Barbat
I found how I should do in place of getCallbackScript() I should call
getEventHandler()  in the renderHead method but with
AjaxFormComponentUpdatingBehavior

 .


it works like charm.

Thank you pedro.



On Thu, Jan 14, 2010 at 3:25 PM, Pedro Santos pedros...@gmail.com wrote:

 You can take a look at AjaxFormComponentUpdatingBehavior, this behavior
 will
 keep the 'judet' field model data updated.
 About the generated id, this is the default behavior, you can override the
 onBind method to avoid id. But later you will can not add the component to
 an AjaxRequestTarget, so see if you can work with the generated id.

 On Thu, Jan 14, 2010 at 11:11 AM, Alexandru Barbat 
 alexandrubar...@gmail.com wrote:

  Hello,
 
  ..
  AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() {
 protected void respond(AjaxRequestTarget target) {
 target.addComponent(orasListPanel);
 }
 
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);
 response.renderJavascript(function load_orase(){\n +
  getCallbackScript().toString() + \nalert('ok');\n}, loadOrase);
 }
 
 };
 
 
 TextField judet = new TextField(judetSelectat);
 judet.add(new SimpleAttributeModifier(id,judetSelectat));
  ///x
 judet.add(behave);
 
  ..
 
 
  I use this to generate a js function in order to call it from flash
  component but it does't work at all because o line ///.
  SimpleAttributeModifier change the element id but the
  AbstractDefaultAjaxBehaviour doesn;t take that in account.. it use the
  generated id.  This is one problem. How I could overcome that?
 
 
  And second, even if I don't change the id of 'judetSelectat' and even if
  the
  behaviour it is called the model of the 'judet' field it is not called.
  Why?
 
 
  Thank you,
 
  Alexandru
 



 --
 Pedro Henrique Oliveira dos Santos



PageLink deprecated

2010-01-14 Thread Emond Papegaaij
Hi,

We just found that PageLink has been deprecated in wicket 1.4. Can someone 
explain why? I see no reason why PageLink should not be used. PageLink is the 
base for SecurePageLink (in wicket-security), which uses getPageIdentity for 
its security check. Using Link is not an option because it does not provide 
the page identity, and using BookmarkablePageLink is not an option because in 
many cases the target page is not bookmarkable.

Can PageLink please be restored?

Best regards,
Emond Papegaaij

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread nino martinez wael
You still create the panel and add that to the AjaxFallbackDefaultDataTable .

ListPromoType subscriptions = 
Arrays.asList(PromoType.values());
selectionsList.setObject(subscriptions);

ListAbstractColumn columns = new ArrayListAbstractColumn();
columns.add(new PropertyColumn(new Model(id),  id));
columns.add(new PropertyColumn(new Model(alias),  alias));
columns
.add(new PropertyColumn(new Model(logins),  
logins));

columns.add(new PropertyColumn(new Model(email),  email));

columns.add(new AbstractColumn(new Model(userType)) {
public void populateItem(Item cellItem, String 
componentId,
IModel model) {
Person person = (Person) model.getObject();

cellItem.add(new DropDownPanel(componentId, new 
PropertyModel(
person, userType), 
Arrays.asList(UserType.values(;
}
});

ajaxTable = new AjaxFallbackDefaultDataTable(

ajaxTable, columns, new SortablePersonDataProvider(), 5);
addMenu(ajaxTable);



2010/1/14 Johan Vogelzang johan.vogelz...@gmail.com:
 Thanks Ernesto, but i don't get it ...
 The only markup the AjaxFallbackDefaultDataTable needs is:
 ..
 table class=horizontal wicket:id=table[table]/table
 ..
 So I don't know how to apply your solution.

 Regards,
 Johan.

 2010/1/14 Ernesto Reinaldo Barreiro reier...@gmail.com

 You could create a panel containing the link and the label and add that
 panel as the cell e.g. something like

 html xmlns:wicket=org.apache.wicket
    body
        wicket:panel
            a wicket:id=link title= class=button
                span wicket:id=text[text goes here]/span
            /a
        /wicket:panel
    /body
 /html

 Regards,

 Ernesto

 On Thu, Jan 14, 2010 at 2:38 PM, Johan Vogelzang
 johan.vogelz...@gmail.comwrote:

  Hi all,
 
  I am trying out the AjaxFallbackDefaultDataTable, but have trouble when I
  want to make a cell work as a link.
  With the code below the table displays the word [cell] in all the cells
 of
  the first column (Name). When I click on the cell, the correct response
  page
  is opened. I tried to add a Label to the link but that results into a
  Wicket
  error.
  I red some posts about this issue, but I did not managed to find the
  correct
  solution.
 
  Who can help me?
 
  Regards,
  Johan.
 
  public class ComestiblesDataTablePage extends RBSTemplate {
 
    �...@springbean(name = breakfastService)
     private BreakfastLocalService service;
 
     private Integer maxItemsPerPage = 8;
 
    �...@suppresswarnings(serial)
     public ComestiblesDataTablePage() {
 
         ListIColumnComestibleDto columns = new
  ArrayListIColumnComestibleDto();
 
         columns.add(new PropertyColumnComestibleDto(new
  ModelString(Name), name, name) {
            �...@override
             public void populateItem(ItemICellPopulatorComestibleDto
  item, String componentId,
                     IModelComestibleDto rowModel) {
 
                 AjaxFallbackLinkComestibleDto link = new
  AjaxFallbackLinkComestibleDto(componentId, rowModel) {
                    �...@override
                     public void onClick(AjaxRequestTarget target) {
                         setResponsePage(new ComestiblePage(getModel()));
                     }
                 };
                 // link.add(new Label(componentId)); -- Error: component
  not markup, Component id = cell
                 item.add(link);
             }
         });
         columns.add(new PropertyColumnComestibleDto(new
  ModelString(Minimal Quantity), minimalQuantity,
                 minimalQuantity));
         columns.add(new PropertyColumnComestibleDto(new
  ModelString(Price), price, price));
         columns.add(new PropertyColumnComestibleDto(new
  ModelString(TransportForm), transportForm));
 
         add(new AjaxFallbackDefaultDataTableComestibleDto(table,
  columns, new ComestibleSortableDataProvider(
                 service), maxItemsPerPage));
         add(new BookmarkablePageLinkObject(edit,
  ComestiblesEditPage.class));
     }
 
    �...@override
     public String getPageTitle() {
         return getLocalizer().getString(lbl.comestibles, this);
     }
 
  }
 




 --
 Johan Vogelzang


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket security future - contribute!

2010-01-14 Thread Les Hazlewood
Just a quick note to those interested - the Shiro dev team is trying
very hard to get a 1.0 final release out hopefully before the end of
this month.

Best,

Les
(Apache Shiro team)

On Thu, Jan 14, 2010 at 2:14 AM, Adrian Wiesmann awiesm...@somap.org wrote:
 Hi Alex

 i think we will not find one person who develops wicket-security allone -
 so
 who's interested?
 its not the part brings the most fun in wicket development area but a very
 very
 important part of every enterprise application - so contribute! lets
 define a
 security-subteam.

 I started with the built in security functionality and then moved to Apache
 Shiro. Shiro makes it very simple to authenticate users and to check
 permission from within your application code. And what I really like is that
 users of our tool still can personalise parts of those mechanisms when
 configuring their installation. Another plus is the permission based
 authorisation mechanism which makes defining and configuring permissions
 very flexible.

 So what I could contribute are classes to integrate Shiro into Wicket. If
 that is of interest.

 Cheers,
 Adrian

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get a cell work as a link in AjaxFallbackDefaultDataTable

2010-01-14 Thread Ernesto Reinaldo Barreiro
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxFallbackLink;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;


public abstract class MyLinkPanelT extends Panel {

private static final long serialVersionUID = 1L;

/**
 * @param id
 */
public MyLinkPanel(String id, IModelT model, IModelString textLabel,
IModelString titleLabel) {
super(id, model);

AjaxFallbackLinkT link  = new AjaxFallbackLinkT(link) {

private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) {
MyLinkPanel.this.onClick(target);
}

};
add(link);

if(titleLabel != null) {
link.add(new AttributeModifier(title, titleLabel));
}

link.add(new Label(text, textLabel));
}

public abstract void onClick(AjaxRequestTarget target);

}

-

html xmlns:wicket=org.apache.wicket
body
wicket:panel
a wicket:id=link title=Title class=button
span wicket:id=text[text goes here]/span
/a
/wicket:panel
/body
/html


 columns.add(new PropertyColumnComestibleDto(
new
ModelString(Name), name, name) {
   @Override
   public void populateItem(ItemICellPopulatorComestibleDto
item, String componentId,
   IModelComestibleDto rowModel) {

   MyLinkPanelComestibleDto link = new
MyLinkPanelComestibleDto(componentId, rowModel, new ModelString(Click
Me), new ModelString(Click Me)) {
   @Override
   public void onClick(AjaxRequestTarget target) {
   setResponsePage(new ComestiblePage(getModel()));
   }
   };

   item.add(link);
   }
   });


On Thu, Jan 14, 2010 at 3:02 PM, Johan Vogelzang
johan.vogelz...@gmail.comwrote:

 Thanks Ernesto, but i don't get it ...
 The only markup the AjaxFallbackDefaultDataTable needs is:
 ..
 table class=horizontal wicket:id=table[table]/table
 ..
 So I don't know how to apply your solution.

 Regards,
 Johan.

 2010/1/14 Ernesto Reinaldo Barreiro reier...@gmail.com

  You could create a panel containing the link and the label and add that
  panel as the cell e.g. something like
 
  html xmlns:wicket=org.apache.wicket
 body
 wicket:panel
 a wicket:id=link title= class=button
 span wicket:id=text[text goes here]/span
 /a
 /wicket:panel
 /body
  /html
 
  Regards,
 
  Ernesto
 
  On Thu, Jan 14, 2010 at 2:38 PM, Johan Vogelzang
  johan.vogelz...@gmail.comwrote:
 
   Hi all,
  
   I am trying out the AjaxFallbackDefaultDataTable, but have trouble when
 I
   want to make a cell work as a link.
   With the code below the table displays the word [cell] in all the cells
  of
   the first column (Name). When I click on the cell, the correct response
   page
   is opened. I tried to add a Label to the link but that results into a
   Wicket
   error.
   I red some posts about this issue, but I did not managed to find the
   correct
   solution.
  
   Who can help me?
  
   Regards,
   Johan.
  
   public class ComestiblesDataTablePage extends RBSTemplate {
  
  @SpringBean(name = breakfastService)
  private BreakfastLocalService service;
  
  private Integer maxItemsPerPage = 8;
  
  @SuppressWarnings(serial)
  public ComestiblesDataTablePage() {
  
  ListIColumnComestibleDto columns = new
   ArrayListIColumnComestibleDto();
  
  columns.add(new PropertyColumnComestibleDto(new
   ModelString(Name), name, name) {
  @Override
  public void populateItem(ItemICellPopulatorComestibleDto
   item, String componentId,
  IModelComestibleDto rowModel) {
  
  AjaxFallbackLinkComestibleDto link = new
   AjaxFallbackLinkComestibleDto(componentId, rowModel) {
  @Override
  public void onClick(AjaxRequestTarget target) {
  setResponsePage(new ComestiblePage(getModel()));
  }
  };
  // link.add(new Label(componentId)); -- Error:
 component
   not markup, Component id = cell
  item.add(link);
  }
  });
  columns.add(new PropertyColumnComestibleDto(new
   ModelString(Minimal Quantity), minimalQuantity,
  minimalQuantity));
  columns.add(new PropertyColumnComestibleDto(new
   ModelString(Price), price, price));
  columns.add(new PropertyColumnComestibleDto(new
   ModelString(TransportForm), transportForm));
  
  add(new 

Re: AbstractDefaultAjaxBehavior using onComponentRendered rendered many times

2010-01-14 Thread Pedro Santos
Hi Esteban, the wicket javascript will update your component html by the on
retrieved by your component that has the script tag attached. So you get the
problem describe. If you want to keep sending the java script by script tag,
you can implement your onComponentRendered method like:

if (AjaxRequestTarget.get() != null){
  AjaxRequestTarget.get().appendJavascript(var foo = new
Wicket.ExtensibleChoiceAutocomplete ...);
} else {
  cResponse.write(JavascriptUtils.SCRIPT_OPEN_TAG);
  cResponse.write(var foo = new Wicket.ExtensibleChoiceAutocomplete ...);
  cResponse.write(JavascriptUtils.SCRIPT_CLOSE_TAG);
}

but the best approach is to send your behavior javascript to browser adding
it to the IHeaderResponse like:

response.renderOnDomReadyJavascript(var foo = new
Wicket.ExtensibleChoiceAutocomplete ...);

you can do it overriding the renderHead method, because AbstractBehavior
implements IHeaderContributor

On Wed, Jan 13, 2010 at 5:34 PM, Esteban Masoero
emaso...@getsense.com.arwrote:

 Hi:

 Using wicket 1.3.5, I have a MyAbstractExtensibleChoiceAutocompleteBehavior
 (that extends AbstractDefaultAjaxBehavior, and I think it is a modification
 of some wicket class) related to the autocomplete feature that inside
 onComponentRendered method does something like:

 cResponse.write(JavascriptUtils.SCRIPT_OPEN_TAG);
 cResponse.write(var foo = new Wicket.ExtensibleChoiceAutocomplete ...);
 cResponse.write(JavascriptUtils.SCRIPT_CLOSE_TAG);

 Then I have a MyTextField subclass that adds this behavior to itself when
 it's constructed, so the autocomplete options are shown properly.
 MyTextField also adds to itself an
 AjaxFormComponentUpdatingBehavior(onchange) so we can track the changes
 and do some stuff.

 So here's the thing, I noticed with firebug that every time I change the
 component's value and the AjaxFormComponentUpdatingBehavior is called,
 MyTextField is refreshed (added to the target) and the onComponentRendered
 method of the other behavior is called, and the js tag is added to the one
 that previously existed. So I have:

 script type=text/javascript...//script
 script type=text/javascript...//script

 ...and everytime I change the component's value, one line is added. From
 what I saw in Wicket.ExtensibleChoiceAutocomplete class, It shouldn't have
 negative effects, however, I also think it's not a desired effect.
 Can anyone tell me if this is normal or I'm doing something wrong or
 whether I shouldn't worry at all?

 Thanks,

 Esteban

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Pedro Henrique Oliveira dos Santos


automatically delete|clean disk|file|page|store on server crash|restart

2010-01-14 Thread manuelbarzi
how can old pagestore files be automatically deleted when server restarts?
in a crash, for example, in which old sessions left their pagestore files on
disk


Re: Tree table with check box

2010-01-14 Thread prati


Hi,

I am also stuck in similar problem.If you can share your code snippets of
how u did that will be of great help.
Thanks

Pratibha

vela wrote:
 
 Hello again,
 
 The links and nodes are added in the TreeFragment class. But the
 TreeFragment is a private inner class in Treetable, could you tell how to
 use the TreeFragment to acheive this functionality
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Tree-table-with-check-box-tp26080852p27164039.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Tree table with check box

2010-01-14 Thread Major Péter

Hi,

check out wicket-tree (http://code.google.com/p/wicket-tree/) and see 
the example app, I think it will solve your problem.


Regards,
Peter

prati írta:


Hi,

I am also stuck in similar problem.If you can share your code snippets of
how u did that will be of great help.
Thanks

Pratibha

vela wrote:

Hello again,

The links and nodes are added in the TreeFragment class. But the
TreeFragment is a private inner class in Treetable, could you tell how to
use the TreeFragment to acheive this functionality


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



LegUp updated for latest version of Wicket, and other frameworks

2010-01-14 Thread Richard Wilkinson
We have updated LegUp [1] so you can now create projects using the
latest (compatible) versions of Wicket, Spring, Guice, JPA (1.0),
Warp, Hibernate...

LegUp is a collection of Maven archetypes to help you get quickly and
easily started with your enterprise projects.

Wicket 1.4.5, Guice 2.0
Wicket 1.4.5, Spring 3.0.0, JPA 1.0
Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, Hibernate 3.2
Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, JPA 1.0

Spring 3.0.0, JPA 1.0
Spring 3.0.0, JDBC

The source is available on the LegUp Google code project [2].
Drop us a line at [3] if you have any ideas for or would like to
contribute new archetypes.

-- 
Regards - Richard Wilkinson
Developer,
jWeekend: OO  Java Technologies - Development and Training
http://jWeekend.com


[1] http://www.jweekend.com/dev/LegUp
[2] http://code.google.com/p/legup/
[3] http://www.jweekend.com/dev/ContactUs

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket session vs tomcat session

2010-01-14 Thread kirillkh
Hi Vadim,

I'm exactly trying this feature, and I have a similar situation (user object
in session). Upon restore, the user object is restored as expected, if the
user is logged in, he is still logged in, etc. But the stateful pages aren't
restored, so you can't just refresh a page and expect it to come up. I guess
this is because I use SecondLevelCache?

On Thu, Jan 14, 2010 at 2:45 PM, Vadim Tesis vad...@hotmail.com wrote:


 hi,



 i'm trying to customize Tomcat 6 configuration and i came accross Manager
 element in server.xml. it allows one to configure where to store sessions
 (memory, disk, ...), for how long to keep the session before discarding it,
 ...  so i was wondering how (if at all) wicket (1.4.5) session is related to
 tomcat session and whether that tomcat configuration will affect wicket
 session in any way.

 by the way in my wicket app among other things i store a user object in
 wicket session when the user signs in.



 Thanks,

 Vadim

 _
 Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
 http://clk.atdmt.com/GBL/go/196390709/direct/01/



Re: testing autocomplete with WicketTester

2010-01-14 Thread jgasyna

Would the use of the enhanced wicket tester perhaps solve this problem?

Dzieki


Paul Szulc wrote:
 
 I think you can explicitly tell in your tests to fire given java script
 event, but after that your page flow will be broken (bug in the wicket
 tester).
 
 On Thu, Jan 14, 2010 at 9:51 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:
 
 Anybody?

 On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote:

  I am assuming that since it is actually a text field that I could just
 get the component and cast it to a TextField then set the model object.
 
  However, I'm not sure that we fire the appropriate events to make the
 autocomplete work properly as there are onchange events, etc on it..
 
  D/
 
  On Jan 10, 2010, at 7:56 PM, Douglas Ferguson wrote:
 
  What is the recommended way to test autocomplete using wicket tester?
 
  D/
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 
 -- 
 Best regards,
 Paul Szulc
 
 http://paulszulc.wordpress.com
 
 

-- 
View this message in context: 
http://old.nabble.com/testing-autocomplete-with-WicketTester-tp27104866p27167160.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket security future - contribute!

2010-01-14 Thread Vojtěch Krása
Hi,

have someone tried to integrate wicket + shiro + guice?
some example would be great.

Thanks,
V.

2010/1/14 Les Hazlewood lhazlew...@apache.org

 Just a quick note to those interested - the Shiro dev team is trying
 very hard to get a 1.0 final release out hopefully before the end of
 this month.

 Best,

 Les
 (Apache Shiro team)

 On Thu, Jan 14, 2010 at 2:14 AM, Adrian Wiesmann awiesm...@somap.org
 wrote:
  Hi Alex
 
  i think we will not find one person who develops wicket-security allone
 -
  so
  who's interested?
  its not the part brings the most fun in wicket development area but a
 very
  very
  important part of every enterprise application - so contribute! lets
  define a
  security-subteam.
 
  I started with the built in security functionality and then moved to
 Apache
  Shiro. Shiro makes it very simple to authenticate users and to check
  permission from within your application code. And what I really like is
 that
  users of our tool still can personalise parts of those mechanisms when
  configuring their installation. Another plus is the permission based
  authorisation mechanism which makes defining and configuring permissions
  very flexible.
 
  So what I could contribute are classes to integrate Shiro into Wicket. If
  that is of interest.
 
  Cheers,
  Adrian
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: testing autocomplete with WicketTester

2010-01-14 Thread Paul Szulc
Currently not, but maybe implementing it in EnhancedWicketTester is worse
idea then simply making finally WicketTester first class citizen in the
Wicket project. So  that testing even most complex Ajax websites would be
possible and easy.

On Thu, Jan 14, 2010 at 8:54 PM, jgasyna webmas...@poundtech.com wrote:


 Would the use of the enhanced wicket tester perhaps solve this problem?

 Dzieki


 Paul Szulc wrote:
 
  I think you can explicitly tell in your tests to fire given java script
  event, but after that your page flow will be broken (bug in the wicket
  tester).
 
  On Thu, Jan 14, 2010 at 9:51 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  Anybody?
 
  On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote:
 
   I am assuming that since it is actually a text field that I could just
  get the component and cast it to a TextField then set the model
 object.
  
   However, I'm not sure that we fire the appropriate events to make the
  autocomplete work properly as there are onchange events, etc on it..
  
   D/
  
   On Jan 10, 2010, at 7:56 PM, Douglas Ferguson wrote:
  
   What is the recommended way to test autocomplete using wicket tester?
  
   D/
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Best regards,
  Paul Szulc
 
  http://paulszulc.wordpress.com
 
 

 --
 View this message in context:
 http://old.nabble.com/testing-autocomplete-with-WicketTester-tp27104866p27167160.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Best regards,
Paul Szulc

http://paulszulc.wordpress.com


Re: PageLink deprecated

2010-01-14 Thread Igor Vaynberg
what does the javadoc say?

-igor

On Thu, Jan 14, 2010 at 6:12 AM, Emond Papegaaij
emond.papega...@topicus.nl wrote:
 Hi,

 We just found that PageLink has been deprecated in wicket 1.4. Can someone
 explain why? I see no reason why PageLink should not be used. PageLink is the
 base for SecurePageLink (in wicket-security), which uses getPageIdentity for
 its security check. Using Link is not an option because it does not provide
 the page identity, and using BookmarkablePageLink is not an option because in
 many cases the target page is not bookmarkable.

 Can PageLink please be restored?

 Best regards,
 Emond Papegaaij

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: LegUp updated for latest version of Wicket, and other frameworks

2010-01-14 Thread Jeremy Thomerson
This looks really great guys!  I just created a project with it and looked
through it and it will be a great leg up for anyone needing to start a
project and needing help wiring all the pieces together.

Thanks!!

--
Jeremy Thomerson
http://www.wickettraining.com



On Thu, Jan 14, 2010 at 11:03 AM, Richard Wilkinson 
richardjohnwilkin...@googlemail.com wrote:

 We have updated LegUp [1] so you can now create projects using the
 latest (compatible) versions of Wicket, Spring, Guice, JPA (1.0),
 Warp, Hibernate...

 LegUp is a collection of Maven archetypes to help you get quickly and
 easily started with your enterprise projects.

 Wicket 1.4.5, Guice 2.0
 Wicket 1.4.5, Spring 3.0.0, JPA 1.0
 Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, Hibernate 3.2
 Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, JPA 1.0

 Spring 3.0.0, JPA 1.0
 Spring 3.0.0, JDBC

 The source is available on the LegUp Google code project [2].
 Drop us a line at [3] if you have any ideas for or would like to
 contribute new archetypes.

 --
 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com


 [1] http://www.jweekend.com/dev/LegUp
 [2] http://code.google.com/p/legup/
 [3] http://www.jweekend.com/dev/ContactUs

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: PageLink deprecated

2010-01-14 Thread Emond Papegaaij
The javadoc says I should use Link or BookmarkablePageLink, which, as I 
explained, are both not an option.

Emond

On Friday 15 January 2010 05:08:42 Igor Vaynberg wrote:
 what does the javadoc say?
 
 -igor
 
 On Thu, Jan 14, 2010 at 6:12 AM, Emond Papegaaij
 
 emond.papega...@topicus.nl wrote:
  Hi,
 
  We just found that PageLink has been deprecated in wicket 1.4. Can
  someone explain why? I see no reason why PageLink should not be used.
  PageLink is the base for SecurePageLink (in wicket-security), which uses
  getPageIdentity for its security check. Using Link is not an option
  because it does not provide the page identity, and using
  BookmarkablePageLink is not an option because in many cases the target
  page is not bookmarkable.
 
  Can PageLink please be restored?
 
  Best regards,
  Emond Papegaaij
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Wizards and Hibernate

2010-01-14 Thread Martin Sachs
hi,

if you want to store the Objects at the end of the wizzard, you have to
reattach to the session with lock(NONE), else Entitymanager.merge will
save each step.

Alternativly you can open one transaction and merge (or saveOrUpdate)
after every step. On last step you can commit the transaction. I think
this is named conversation.

martin

Rodolfo Cartas schrieb:
 Hi! I'm currently working on a wizard to modify a pojo extracted from
 a database with Hibernate. I don't want to commit any changes to the
 db before the user finishes the wizard, but the pojo loses reference
 to the original session. Shall I eagerly fetch the object to avoid any
 hibernate session reference exceptions?

 Thanks,

 Rodolfo

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org