Re: https://issues.apache.org/jira/browse/WICKET-847

2009-04-28 Thread Steve Swinsburg
The fix version for that issue says 1.3.5 so unless people use Jira  
incorrectly, it's in 1.3.5. Likewise for the previous issue that  
people want to hold up the 1.3.6 release for, it has a fix version of  
1.3.6 so should be in 1.3.6 already.



--Steve

On 28/04/2009, at 6:48 AM, Douglas Ferguson wrote:


So, is this fixed in 1.3.6?

https://issues.apache.org/jira/browse/WICKET-847

-
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: https://issues.apache.org/jira/browse/WICKET-847

2009-04-28 Thread Jeremy Thomerson
There's a comment that says that it's actually NOT in 1.3.5 - implying
that the fix version is incorrect.  But Igor's comment seems to
indicate that it WAS fixed.

I don't know which is true, but whoever really wants to know should
just try it and see - and then comment on the jira to make it clear.

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




On Tue, Apr 28, 2009 at 2:26 AM, Steve Swinsburg
s.swinsb...@lancaster.ac.uk wrote:
 The fix version for that issue says 1.3.5 so unless people use Jira
 incorrectly, it's in 1.3.5. Likewise for the previous issue that people want
 to hold up the 1.3.6 release for, it has a fix version of 1.3.6 so should be
 in 1.3.6 already.


 --Steve

 On 28/04/2009, at 6:48 AM, Douglas Ferguson wrote:

 So, is this fixed in 1.3.6?

 https://issues.apache.org/jira/browse/WICKET-847

 -
 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: https://issues.apache.org/jira/browse/WICKET-847

2009-04-28 Thread Martijn Dashorst
The commit was before 1.3.5 was cut, so IMO it should be already in 1.3.5.

Martijn

On Tue, Apr 28, 2009 at 9:31 AM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 There's a comment that says that it's actually NOT in 1.3.5 - implying
 that the fix version is incorrect.  But Igor's comment seems to
 indicate that it WAS fixed.

 I don't know which is true, but whoever really wants to know should
 just try it and see - and then comment on the jira to make it clear.

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




 On Tue, Apr 28, 2009 at 2:26 AM, Steve Swinsburg
 s.swinsb...@lancaster.ac.uk wrote:
 The fix version for that issue says 1.3.5 so unless people use Jira
 incorrectly, it's in 1.3.5. Likewise for the previous issue that people want
 to hold up the 1.3.6 release for, it has a fix version of 1.3.6 so should be
 in 1.3.6 already.


 --Steve

 On 28/04/2009, at 6:48 AM, Douglas Ferguson wrote:

 So, is this fixed in 1.3.6?

 https://issues.apache.org/jira/browse/WICKET-847

 -
 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





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

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



Re: https://issues.apache.org/jira/browse/WICKET-847

2009-04-28 Thread Steve Swinsburg
Comparing the commits attached to the Jira to what is in the 1.3.5 tag  
in svn shows it's not.


I'm a little confused by that, does the committers not fix in trunk,  
merge back to the appropriate branches (1.3.x) then cut tags from the  
branches (1.3.5, 1.3.6)?


Steve

On 28/04/2009, at 8:36 AM, Martijn Dashorst wrote:

The commit was before 1.3.5 was cut, so IMO it should be already in  
1.3.5.


Martijn

On Tue, Apr 28, 2009 at 9:31 AM, Jeremy Thomerson
jer...@wickettraining.com wrote:
There's a comment that says that it's actually NOT in 1.3.5 -  
implying

that the fix version is incorrect.  But Igor's comment seems to
indicate that it WAS fixed.

I don't know which is true, but whoever really wants to know should
just try it and see - and then comment on the jira to make it clear.

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




On Tue, Apr 28, 2009 at 2:26 AM, Steve Swinsburg
s.swinsb...@lancaster.ac.uk wrote:

The fix version for that issue says 1.3.5 so unless people use Jira
incorrectly, it's in 1.3.5. Likewise for the previous issue that  
people want
to hold up the 1.3.6 release for, it has a fix version of 1.3.6 so  
should be

in 1.3.6 already.


--Steve

On 28/04/2009, at 6:48 AM, Douglas Ferguson wrote:


So, is this fixed in 1.3.6?

https://issues.apache.org/jira/browse/WICKET-847

-
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






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

-
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: Logging for performance analysis

2009-04-28 Thread Martijn Dashorst
At my job we were able to connect yourkit to our production server and
diagnose the problem in that way. If you have such spikes, it usually
is the garbage collector trying to clean up.

Martijn

On Mon, Apr 27, 2009 at 10:39 PM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 We are experiencing some hard to trace performance issues (CPU pegged by 
 JAVA). so we want to implement some logging in order to Audit the code.

 Any suggestions on wicket state that we can easily print out? I.E. size of 
 page map? Etc?

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





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

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



Re: Wicket tree

2009-04-28 Thread vela

Hello,


I am facing the same issue.
I can't able to get the selected node by this implemenation. 

I have the code like this 

TreeModel t = createTreeModel();

tree = new Tree(tree, t) {
protected void onNodeLinkClicked(TreeNode node,
AjaxRequestTarget target) {
final TreeNode m_node = node;

System.out.println(selected value  +
node.toString());
  }

   };



If you know what the problem is, Kindly let me know.






PSkarthic wrote:
 
 Thank you its worked :jumping:, what i did wrong was i override the tree
 onNodeLinkClicked method 
 
 
 
 
 Newgro wrote:
 
 AFAIK you can use Tree. It's extending already the DefaultAbstractTree.
 Cheers
 Per
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-tree-tp21410500p23273139.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: Form values lost in combination of Forms plus ModalWindow

2009-04-28 Thread Vladimir K

Thanks for Martin Makundi suggestion. The following workaround works:

Replace your form in ModalWindow with

public class ModalWindowFormT extends FormT {
public ModalWindowForm(String id) {
super(id);
}

@Override
public Form? getRootForm() {
Form? form = super.getRootForm();

if ((findParent(ModalWindow.class) != null) 
(form.findParent(ModalWindow.class) == null))
return this;
else
return form;
}
}

What is not working is placing modal window form into another page form,
even a root form.


German Morales-3 wrote:
 
 Hi again,
 
 jira issue added:
https://issues.apache.org/jira/browse/WICKET-1826
 
 I've attached a quickstart project which shows my problem, has detailed
 explanation, and also proposes 2 solutions (you must uncomment some code
 to
 see it working). Of course, the solutions work for my particular case, but
 as you told me, it is not the way it is supposed to be.
 
 Meanwhile (i guess it can take a while until someone looks into it), could
 you at least tell me if there could be any side effect in overriding
 isInputNullable for CheckBox, DropDownChoice, and so on? (TextField
 already
 does it).
 
 Thanks again,
 
 German
 
 
 2008/9/10 Matej Knopp matej.kn...@gmail.com
 
 On Wed, Sep 10, 2008 at 10:49 PM, German Morales
 germanamora...@gmail.com wrote:
  I don't see any div inside span in my stuff (we have suffered problems
 with
  this long ago, and we are more careful lately).
 
  Besides that, is it ok that the ModalWindow creates its own div at body
  level? Isn't that the reason of my problem?
 That is intentional. I don't think that should cause you the problems.

 -Matej
 
  German
 
  2008/9/10 Matej Knopp matej.kn...@gmail.com
 
  Check if your DOM hierarchy is valid, e.g. if you don't have any div
  tag inside  tags.
 
  -Matej
 
  On Wed, Sep 10, 2008 at 10:08 PM, German Morales
  germanamora...@gmail.com wrote:
   I think that we are closer to the problem now...
  
   In my case (going back to the original post), the form i'm
 submitting
 is
   inside a ModalWindow.
  
   I'm using Firebug to see the generated DOM in runtime, and i find
 this
   (extracted...) before calling the ModalWindow:
  
   body
 div here is all my content, even the placeholder for the modal
 window
form here is my root form
 /div
 div added by wicket for the ajax debug window
   /body
  
   after calling the modal window:
  
   body
 div here is all my content, even the placeholder for the modal
 window
form here is my root form
 /div
 div added by wicket for the ajax debug window
 div added by modal window on the fly
form a second form tag for the form in my modal window
 /div
   /body
  
   I think that it's ok that the second form is rendered as form, since
 it
  does
   not have another form outside (to be rendered as div).
   The problem is that ModalWindow inserted a div outside my root form.
   Therefore Wicket.Form.serialize() must be serializing up to that
 second
   form.
  
   I'm looking at the live Modal window example
   http://www.wicket-library.com/wicket-examples/ajax/modal-window.1
   and i see that this behavior of adding a separated div at body level
 is
   normal, not something strange in my structure.
  
   German
  
   2008/9/10 Matej Knopp matej.kn...@gmail.com
  
   You are right. It calls Wicket.Form.serialize(form) with the nested
   form, but the serialize method should find parent with form tag
 name
   and serialize that.
  
   -Matej
  
  
   On Wed, Sep 10, 2008 at 9:04 PM, German Morales
   germanamora...@gmail.com wrote:
There are no nested form tags, as expected... let me give you
 more
   details
i'm discovering:
   
The AjaxSubmitLink has something like this...
 function onclick(event) {
  var wcall = wicketSubmitFormById(  id of my nested form  );
  return false;
 }
   
This calls wicketSubmitFormById, no surprises...
 function wicketSubmitFormById(formId, url, submitButton,
  successHandler,
failureHandler, precondition, channel) {
  var call = new Wicket.Ajax.Call(url, successHandler,
 failureHandler,
channel);
  ...
  return call.submitFormById(formId, submitButton);
 }
   
which calls submitFormById...
 submitFormById: function(formId, submitButton) {
  var form = Wicket.$(formId);
  ...
  return this.submitForm(form, submitButton);
 }
   
which calls submitForm passing my nested form (i'm debugging with
   Firebug)
 // Submits a form using ajax.
 // This method serializes a form and sends it as POST body.
 submitForm: function(form, submitButton) {
  var body = function() {
var s = Wicket.Form.serialize(form);
if (submitButton != null) {
  s += Wicket.Form.encode(submitButton) + =1;
}
return s;
  }
  

Re: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-28 Thread Kaspar Fischer
John, thanks for sharing this. It worked for me with the update from  
Maven 2.0.9 to 2.1.0 on MacOS X.


Kaspar

On 03.04.2009, at 16:42, John Krasnay wrote:


FYI to anyone who's been bitten by this, there's a simple workaround.
Just add the following to your pom.xml:

 build
   plugins
 plugin
   artifactIdmaven-eclipse-plugin/artifactId
   version2.5.1/version
 /plugin
   /plugins
 /build

We did it in our parent POM and it's working fine.

jk





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



Re: Update DropDownChoice with ModalWindow

2009-04-28 Thread Vladimir K

The problem is duscussed here 
http://www.nabble.com/Form-values-lost-in-combination-of-Forms-plus-ModalWindow-td19401595.html#a19401595
http://www.nabble.com/Form-values-lost-in-combination-of-Forms-plus-ModalWindow-td19401595.html#a19401595
 


Vladimir K wrote:
 
 PDiefent,
 
 I've came across similar problem. In my case, and what I'm discovered fits
 your case as well, the following is happening:
 ...
 

-- 
View this message in context: 
http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p23274193.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Wicket-Guice: Inject into Session

2009-04-28 Thread Jan Torben Heuer
Hi,

I'm a Wicket and Guice beginner. I successfully managed Guice to Inject my 
dependency into a WebPage. Can Guice also inject the dependency into an 
AuthenticatedWebSession? I'd need a reference to my database in the 
#authenticate(String, String) method.

Jan



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



Re: Wicket-Guice: Inject into Session

2009-04-28 Thread Steve Flasby

I do this:

@Override
public Session newSession(Request request, Response response) {
Session s = new MySession(request);
mInjector.inject(s);
return s;
}


Cheers - Steve


Jan Torben Heuer wrote:

Hi,

I'm a Wicket and Guice beginner. I successfully managed Guice to Inject my 
dependency into a WebPage. Can Guice also inject the dependency into an 
AuthenticatedWebSession? I'd need a reference to my database in the 
#authenticate(String, String) method.


Jan



-
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: Update DropDownChoice with ModalWindow

2009-04-28 Thread Vladimir K

PDiefent,

I've came across similar problem. In my case, and what I'm discovered fits
your case as well, the following is happening:

ModalWindow is component based. It is rendered in two parts. The first part
is all you put into your markup. The second part is dynamically built within
a separate div within the body tag.

Concerning browser's DOM, your form and modal window form are not
overlapped. Nothing is passed for DDChoice when modal window form is
submitted.
Concerning wicket tree your form and modal window form are overlapped (modal
form is within). So when wicket is updating formcomponent models (and it
starts from the outermost form for some reason), it has to fill DDC, but
nothing is passed in request for it. So wicket fills it with null, what
explains choose a value message in it.

I don't know what is actually wrong - how wicket is processing form or
ModalWindow implementation that renders modal window somewhere outside of
the place you pointed. It is up to authors to decide.

I'm going to investigate workarounds. Will be back if suceed.


PDiefent wrote:
 
 It's definitely not a hashCode/equals problem, because when the page is
 rendered, the initial value of the dropDown is set correctly from the
 PropertyModel. After coming back from the modal window the DropDownChoice
 can't set the new value ...
 
 asfernandes wrote:
 
 Looks like lack of hashCode/equals implementation for the type used.
 I suffered from exactly problem as you initially described... But in my 
 case, however, equals() was implemented to always return false, and 
 DropDownChoice calls it. Perhaps, your problem is different, but I don't 
 know if it can happen due to different instances of objects created by 
 LoadableDetachableModel so you had to correctly override this method, or 
 is a totally different thing...
 
 
 Adriano
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p23273638.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



Any RefreshingView-like repeater but with pagination?

2009-04-28 Thread HHB
Hey,
Is there any repeater that has the features of RefreshingView but supports
paginations?
Thanks.


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



Re: Wicket-Guice: Inject into Session

2009-04-28 Thread Eduardo Nunes
I use Guice to control my servlets, so I can just add objects to session scope.
http://code.google.com/p/google-guice/wiki/Servlets

On Tue, Apr 28, 2009 at 8:46 AM, Jan Torben Heuer
jtn...@mail2004.dnsalias.org wrote:
 Hi,

 I'm a Wicket and Guice beginner. I successfully managed Guice to Inject my
 dependency into a WebPage. Can Guice also inject the dependency into an
 AuthenticatedWebSession? I'd need a reference to my database in the
 #authenticate(String, String) method.

 Jan



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





-- 
Eduardo S. Nunes
http://e-nunes.com.br

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



Re: Wicket-Guice: Inject into Session

2009-04-28 Thread Marc Ende

Hi Jan,

the Session (org.apache.wicket.Session) implements Serializable. So I 
think that wicket is also serializing the session object as other 
webapps do. In this case you've got to serialize the connection. I don't 
think that's easy/possible to seralize a database connection.
I would go another approach which uses the session only as a 
information-container and get those needed information from the
database in the page-lifecycle. That keeps the session-object small 
(which is also an aspect).


just my 5 cent... :)

Marc

Jan Torben Heuer schrieb:

Hi,

I'm a Wicket and Guice beginner. I successfully managed Guice to Inject my 
dependency into a WebPage. Can Guice also inject the dependency into an 
AuthenticatedWebSession? I'd need a reference to my database in the 
#authenticate(String, String) method.


Jan



-
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: Any RefreshingView-like repeater but with pagination?

2009-04-28 Thread Manuel Corrales
Have you tried DataView? I use DataView with an AjaxPaginator and it works
great.

On Tue, Apr 28, 2009 at 7:37 AM, HHB hubaghd...@yahoo.ca wrote:

 Hey,
 Is there any repeater that has the features of RefreshingView but supports
 paginations?
 Thanks.


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




How to erase model values?

2009-04-28 Thread HHB
Hey,
Usually, I set the model for a form like this:

final Form form = new Form(form, 
new CompoundPropertyModel(new Contact()));

But when the panel or the modalwindow that contains 
the form is rendered again, the model's values are still saved and displayed.
So upon successful operation, I do the following to erase values:

form.setModel(new CompoundPropertyModel(new Contact()));

Is there a better way? like overriding a specific method?
Thanks for help and time.



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



Re: DefaultDataTable loses pagination after filtering

2009-04-28 Thread Jason Rosenberg

Great,

When do we expect 1.4-rc3 to be available (that's the fixed version,
according to the jira listed there)

Thanks,

Jason



Anton Veretennikov wrote:
 
 If I'm true, this was solved.
 https://issues.apache.org/jira/browse/WICKET-2175
 
 On Tue, Apr 28, 2009 at 8:25 AM, Jason Rosenberg jbrosenb...@gmail.com
 wrote:

 If it matters, I forgot to mention, I'm using wicket 1.4-rc2

 Jason



 Jason Rosenberg wrote:

 Hi,

 I have an issue with the DefaultDataTable, and I'm wondering if this is
 something that I should expect to be supported, or not.

 (I've found the same problem with the AjaxFallbackDefaultDataTable)

 I implemented filtering, with the FilterToolbar, and made a few of the
 columns use TextFilteredPropertyColumn

 I set things up roughly similar to the wicket-stuff phone book
 example

 One thing I've noticed, is that if I have enough elements in the table,
 to
 force pagination initially, and then I enter filtered text in the
 toolbar
 to
 reduce the number of data items, such that there's only one page of
 data,
 when I then subsequently clear the filter, the full data gets restored
 to
 the data table, except that the top widgets for navigating the
 pagination
 don't display.

 In other words, the pagination navigation links at top right (e.g.  
 1
 2
 3 ) go away when the filtering removes the need for paginationbut
 then clearing the filter does not restore that top toolbar

 Thoughts?

 Thanks,

 Jason



 --
 View this message in context:
 http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23267903.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


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

-- 
View this message in context: 
http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23279021.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: DefaultDataTable loses pagination after filtering

2009-04-28 Thread Anton Veretennikov
I use 1.4-SNAPSHOT and

repository
  idwicket-snaps/id
  urlhttp://wicketstuff.org/maven/repository/url
  snapshots
  /snapshots
  releases
  /releases
/repository


On Tue, Apr 28, 2009 at 11:06 PM, Jason Rosenberg jbrosenb...@gmail.com wrote:

 Great,

 When do we expect 1.4-rc3 to be available (that's the fixed version,
 according to the jira listed there)

 Thanks,

 Jason



 Anton Veretennikov wrote:

 If I'm true, this was solved.
 https://issues.apache.org/jira/browse/WICKET-2175

 On Tue, Apr 28, 2009 at 8:25 AM, Jason Rosenberg jbrosenb...@gmail.com
 wrote:

 If it matters, I forgot to mention, I'm using wicket 1.4-rc2

 Jason



 Jason Rosenberg wrote:

 Hi,

 I have an issue with the DefaultDataTable, and I'm wondering if this is
 something that I should expect to be supported, or not.

 (I've found the same problem with the AjaxFallbackDefaultDataTable)

 I implemented filtering, with the FilterToolbar, and made a few of the
 columns use TextFilteredPropertyColumn

 I set things up roughly similar to the wicket-stuff phone book
 example

 One thing I've noticed, is that if I have enough elements in the table,
 to
 force pagination initially, and then I enter filtered text in the
 toolbar
 to
 reduce the number of data items, such that there's only one page of
 data,
 when I then subsequently clear the filter, the full data gets restored
 to
 the data table, except that the top widgets for navigating the
 pagination
 don't display.

 In other words, the pagination navigation links at top right (e.g.  
 1
 2
 3 ) go away when the filtering removes the need for paginationbut
 then clearing the filter does not restore that top toolbar

 Thoughts?

 Thanks,

 Jason



 --
 View this message in context:
 http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23267903.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



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




 --
 View this message in context: 
 http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23279021.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



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



Re: DefaultDataTable loses pagination after filtering

2009-04-28 Thread Jason Rosenberg

Anton,

Thanks, this works for me, and the bug is indeed fixed

Jason



I use 1.4-SNAPSHOT and

repository
  idwicket-snaps/id
  urlhttp://wicketstuff.org/maven/repository/url
  snapshots
  /snapshots
  releases
  /releases
/repository



-- 
View this message in context: 
http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23279649.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: https://issues.apache.org/jira/browse/WICKET-847

2009-04-28 Thread Johan Compagner
no that one isnt in 1.3.5

The commit is done by igor together with:

WICKET-1916, WICKET-1998

On Tue, Apr 28, 2009 at 09:43, Steve Swinsburg
s.swinsb...@lancaster.ac.ukwrote:

 Comparing the commits attached to the Jira to what is in the 1.3.5 tag in
 svn shows it's not.

 I'm a little confused by that, does the committers not fix in trunk, merge
 back to the appropriate branches (1.3.x) then cut tags from the branches
 (1.3.5, 1.3.6)?

 Steve


 On 28/04/2009, at 8:36 AM, Martijn Dashorst wrote:

  The commit was before 1.3.5 was cut, so IMO it should be already in 1.3.5.

 Martijn

 On Tue, Apr 28, 2009 at 9:31 AM, Jeremy Thomerson
 jer...@wickettraining.com wrote:

 There's a comment that says that it's actually NOT in 1.3.5 - implying
 that the fix version is incorrect.  But Igor's comment seems to
 indicate that it WAS fixed.

 I don't know which is true, but whoever really wants to know should
 just try it and see - and then comment on the jira to make it clear.

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




 On Tue, Apr 28, 2009 at 2:26 AM, Steve Swinsburg
 s.swinsb...@lancaster.ac.uk wrote:

 The fix version for that issue says 1.3.5 so unless people use Jira
 incorrectly, it's in 1.3.5. Likewise for the previous issue that people
 want
 to hold up the 1.3.6 release for, it has a fix version of 1.3.6 so
 should be
 in 1.3.6 already.


 --Steve

 On 28/04/2009, at 6:48 AM, Douglas Ferguson wrote:

  So, is this fixed in 1.3.6?

 https://issues.apache.org/jira/browse/WICKET-847

 -
 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





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

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





Redirect to a static pdf in popup/new tab

2009-04-28 Thread Warren Bell
I have a situation where a user needs to click on many links on one page 
and display many static pdfs each in a new tab or popup. The problem is 
that I need to do some processing on the original page in the 
Link#onClick before I open up the pdf in a new tab or popup.  I do not 
want the pdfs added to any existing or new pageMaps either. Something 
like this:


new AjaxLink(...)
{

public void onClick(AjaxRequestTarget target)
{
// do some processing
// add component to target
// open up new window or tab with static pdf 
}


I have tried different combinations of ExternalLink with 
setPopupSettings(popupSettings). A modal window that uses an 
AbstractAjaxTimerBehavior while processing is being done and then allows 
user to click on an ExternalLink that displays pdf in popup. And other 
combinations. Each has little quirks or added steps required by the user.


Is there a better way of getting this to work?

Thanks,

Warren

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



Re: Redirect to a static pdf in popup/new tab

2009-04-28 Thread Steve Swinsburg
Could you use PopupSettings to specify it should be a new window and  
just process whatever you need in the onClick() of the link?



cheers,
Steve



On 28 Apr 2009, at 17:11, Warren Bell wrote:

I have a situation where a user needs to click on many links on one  
page and display many static pdfs each in a new tab or popup. The  
problem is that I need to do some processing on the original page in  
the Link#onClick before I open up the pdf in a new tab or popup.  I  
do not want the pdfs added to any existing or new pageMaps either.  
Something like this:


new AjaxLink(...)
{

public void onClick(AjaxRequestTarget target)
{
// do some processing
// add component to target
// open up new window or tab with static pdf }

I have tried different combinations of ExternalLink with  
setPopupSettings(popupSettings). A modal window that uses an  
AbstractAjaxTimerBehavior while processing is being done and then  
allows user to click on an ExternalLink that displays pdf in popup.  
And other combinations. Each has little quirks or added steps  
required by the user.


Is there a better way of getting this to work?

Thanks,

Warren

-
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: DefaultDataTable loses pagination after filtering

2009-04-28 Thread Jeremy Thomerson
Soon hopefully - it was built over the weekend and needs to be tested.

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




On Tue, Apr 28, 2009 at 10:06 AM, Jason Rosenberg jbrosenb...@gmail.com wrote:

 Great,

 When do we expect 1.4-rc3 to be available (that's the fixed version,
 according to the jira listed there)

 Thanks,

 Jason



 Anton Veretennikov wrote:

 If I'm true, this was solved.
 https://issues.apache.org/jira/browse/WICKET-2175

 On Tue, Apr 28, 2009 at 8:25 AM, Jason Rosenberg jbrosenb...@gmail.com
 wrote:

 If it matters, I forgot to mention, I'm using wicket 1.4-rc2

 Jason



 Jason Rosenberg wrote:

 Hi,

 I have an issue with the DefaultDataTable, and I'm wondering if this is
 something that I should expect to be supported, or not.

 (I've found the same problem with the AjaxFallbackDefaultDataTable)

 I implemented filtering, with the FilterToolbar, and made a few of the
 columns use TextFilteredPropertyColumn

 I set things up roughly similar to the wicket-stuff phone book
 example

 One thing I've noticed, is that if I have enough elements in the table,
 to
 force pagination initially, and then I enter filtered text in the
 toolbar
 to
 reduce the number of data items, such that there's only one page of
 data,
 when I then subsequently clear the filter, the full data gets restored
 to
 the data table, except that the top widgets for navigating the
 pagination
 don't display.

 In other words, the pagination navigation links at top right (e.g.  
 1
 2
 3 ) go away when the filtering removes the need for paginationbut
 then clearing the filter does not restore that top toolbar

 Thoughts?

 Thanks,

 Jason



 --
 View this message in context:
 http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23267903.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



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




 --
 View this message in context: 
 http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23279021.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



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



Re: Redirect to a static pdf in popup/new tab

2009-04-28 Thread Warren Bell
As far as I can tell, there are no Ajax related links that can use 
PopupSettings. I need to refresh a component as part of the processing.



Steve Swinsburg wrote:
Could you use PopupSettings to specify it should be a new window and 
just process whatever you need in the onClick() of the link?



cheers,
Steve



On 28 Apr 2009, at 17:11, Warren Bell wrote:

I have a situation where a user needs to click on many links on one 
page and display many static pdfs each in a new tab or popup. The 
problem is that I need to do some processing on the original page in 
the Link#onClick before I open up the pdf in a new tab or popup.  I 
do not want the pdfs added to any existing or new pageMaps either. 
Something like this:


new AjaxLink(...)
{

public void onClick(AjaxRequestTarget target)
{
// do some processing
// add component to target
// open up new window or tab with static pdf }

I have tried different combinations of ExternalLink with 
setPopupSettings(popupSettings). A modal window that uses an 
AbstractAjaxTimerBehavior while processing is being done and then 
allows user to click on an ExternalLink that displays pdf in popup. 
And other combinations. Each has little quirks or added steps 
required by the user.


Is there a better way of getting this to work?

Thanks,

Warren

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






--
Thanks,

Warren Bell
909-645-8864
warrenbe...@gmail.com


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



Re: displaying xml content

2009-04-28 Thread shiraz memon
Just for information.
Probably help to those trying to achieve the same thing.  I displayed the
xml content on html page by converting xml string into nested html lists
using ul/li tags and writing new string onto the markup-stream by overriding
the onRender method of target panel (in my case).

Cheers
Shiraz

On Mon, Apr 27, 2009 at 1:34 PM, shiraz memon
shiraz.li...@googlemail.comwrote:

 Willis

  Does this dynamic XML content include references to Wicket components?
  In other words does it include wicket:id attributes?
 No it does not contain any wicket attributes.

  If not, then you don't need a special panel for it.  You can just
 display it as a MultilineLabel with escaping turned off.
 Does it allow clients to browse xml in an interactive way, such as clicking
 + link to expand the child elements while - to collapse.
 Thanks
 Shiraz



 On Apr 27, 2009, at 5:57 AM, shiraz memon wrote:

  Hi
 I am trying to display dynamic xml content on simple panel. For that I
 have
 also overriden the getMarkupType method with xml as returning string in
 the XmlPanel class (which extends Panel). Besides that, I have also
 created
 an empty XMLPanel.xml file. After viewing the panel on browser I see the
 following error:
 WicketMessage: Tag expected
 [markup =
 file:/home/shiraz/workspace/iscore/target/classes/is/web/XmlInfoPanel.xml
 , index = 1, current = null]

 Root cause:

 org.apache.wicket.markup.MarkupException: Tag expected
 [markup =
 file:/home/shiraz/workspace/iscore/target/classes/is/web/XmlInfoPanel.xml
 , index = 1, current = null]
 at

 org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:465)
 at org.apache.wicket.markup.MarkupStream.getTag(MarkupStream.java:269)
 at

 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639)
 at

 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
 at org.apache.wicket.Component.renderComponent(Component.java:2596)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
 at

 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586)
 at

 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510)
 at org.apache.wicket.Component.renderComponent(Component.java:2596)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
 at

 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586)
 at

 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510)
 at org.apache.wicket.Component.renderComponent(Component.java:2596)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
 at org.apache.wicket.Component.render(Component.java:2421)
 at
 org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:635)
 at
 org.apache.wicket.markup.html.list.ListView.renderChild(ListView.java:623)
 at

 org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:103)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1537)
 at org.apache.wicket.Page.onRender(Page.java:1522)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.Page.renderPage(Page.java:926)
 at

 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
 at

 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 at

 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
 However, the error is about the empty xml file. Since the content is
 generated at runtime from some external source, is there a way to view
 that
 dynamic xml content in wicket panel?
 Thanks
 Shiraz



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






Data validation and form components

2009-04-28 Thread Peter Dotchev

Hi,

Setter methods of my business logic classes perform validation and throw 
exceptions if given parameter is invalid.

I don't have separate methods for data validation.
In my wicket form I use CompoundPropertyModel which sets user entered 
values directly in the business object.
If the user enters invalid value, the setter method throws some 
exception and the error page is shown.
How can I intercept this exception and show the error message in a 
feedback panel keeping the form open?


Best regards,
Peter

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



Re: Data validation and form components

2009-04-28 Thread Mauro Ciancio
On Tue, Apr 28, 2009 at 5:40 PM, Peter Dotchev dotc...@gmail.com wrote:

 Setter methods of my business logic classes perform validation and throw
 exceptions if given parameter is invalid.
 I don't have separate methods for data validation.
 In my wicket form I use CompoundPropertyModel which sets user entered
 values directly in the business object.
 If the user enters invalid value, the setter method throws some exception
 and the error page is shown.
 How can I intercept this exception and show the error message in a feedback
 panel keeping the form open?


Hi,
  IMO isnt a great idea that your form directly modifies your business logic
objects. You
could use a pattern like Value Object. You modifies a Value Object and then
updates
your model with that Value Object.

Cheers,
-- 
Mauro Ciancio


Re: Data validation and form components

2009-04-28 Thread Jeremy Thomerson
Many folks on this list will disagree with you.  For most CRUD
applications, it is perfectly acceptable to directly manipulate domain
objects from forms.  For these applications, there is no reason to
maintain a separate set of value transfer objects.  The ROI isn't high
enough.  Of course, there are some applications where that need is
worth the cost.  I'm just saying that for most, it is not.

This case may very well be one that is worth the DTO.

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




On Tue, Apr 28, 2009 at 3:57 PM, Mauro Ciancio maurocian...@gmail.com wrote:
 On Tue, Apr 28, 2009 at 5:40 PM, Peter Dotchev dotc...@gmail.com wrote:

 Setter methods of my business logic classes perform validation and throw
 exceptions if given parameter is invalid.
 I don't have separate methods for data validation.
 In my wicket form I use CompoundPropertyModel which sets user entered
 values directly in the business object.
 If the user enters invalid value, the setter method throws some exception
 and the error page is shown.
 How can I intercept this exception and show the error message in a feedback
 panel keeping the form open?


 Hi,
  IMO isnt a great idea that your form directly modifies your business logic
 objects. You
 could use a pattern like Value Object. You modifies a Value Object and then
 updates
 your model with that Value Object.

 Cheers,
 --
 Mauro Ciancio


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



Re: Wicket-Guice: Inject into Session

2009-04-28 Thread Jan Torben Heuer
Marc Ende wrote:

 webapps do. In this case you've got to serialize the connection. I don't
 think that's easy/possible to seralize a database connection.
 I would go another approach which uses the session only as a
 information-container and get those needed information from the
 database in the page-lifecycle. That keeps the session-object small
 (which is also an aspect).

Hmm, following your argumentation, would you say that the 
AuthenticatedWebSession is implemented wrong because it contains a 
#authenticate method (which clearly needs a reference to some kind of 
database)?

Or would marking the field as transient be fine?


Cheers,

Jan



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



Updating a Label in a Form using AjaxFormComponentUpdatingBehavior

2009-04-28 Thread Ryan Norris
I've been struggling for a while now fighting with
AjaxFormComponentUpdatingBehavior and changing the value of a label
within form when a certain javascript precondition is met.

Code below.

    public final class RegistrationForm extends FormRegistration {
        private static final long serialVersionUID = 1L;

        private Registration _registration = new Registration();
        private CityState _cityState = new CityState();

        public RegistrationForm(String id) {
            super(id);

            add(new TextFieldString(emailAddress, new
PropertyModelString(_registration, emailAddress)));
            add(new PasswordTextField(password, new
PropertyModelString(_registration, password)));
            add(new TextFieldString(firstName, new
PropertyModelString(_registration, firstName)));
            add(new TextFieldString(lastName, new
PropertyModelString(_registration, lastName)));
            add(new TextFieldString(address1, new
PropertyModelString(_registration, address1)));
            add(new TextFieldString(address2, new
PropertyModelString(_registration, address2)));
            add(new TextFieldString(establishmentName, new
PropertyModelString(_registration, establishmentName)));

            final Label cityStateLabel = new Label(cityState, new
PropertyModelString(_cityState, city));
            cityStateLabel.setOutputMarkupId(true);

            final TextFieldString zipCodeField = new
TextFieldString(zip, new PropertyModelString(_registration,
postalCode));

            zipCodeField.add(new AjaxFormComponentUpdatingBehavior(onKeyUp) {
                private static final long serialVersionUID = 1L;

                @Override
                protected CharSequence getPreconditionScript() {
                    return return $(\input[name='zip']\).val().length == 5;;
                }

                @Override
                protected void onUpdate(AjaxRequestTarget target) {
                    if(target != null) {
                        _log.info(String.format(Looking up postal
code: %1$s, _registration.getPostalCode()));

                        PostalCode pc =
_postalCodeManager.getLocaleDataForCode(_registration.getPostalCode());

                        _cityState.setCity(pc.getCity());
                        _cityState.setState(pc.getState());

                        target.addComponent(cityStateLabel);
                    }
                }
            });

            add(zipCodeField);
            add(cityStateLabel);
        }

        @Override
        protected void onSubmit() {
            try {

_accountManager.createAccount(_registration.getEmailAddress(),
_registration.getPassword());
            } catch (DuplicateEmailAddressException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    }

The general gist is to display the city for a given input of 5
characters.  The error I'm getting is completely unrelated...

exception

org.apache.wicket.WicketRuntimeException: Internal Error: Could not
render error page class
org.apache.wicket.markup.html.pages.InternalErrorPage

org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:174)
org.apache.wicket.RequestCycle.step(RequestCycle.java:1321)
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
org.apache.wicket.RequestCycle.request(RequestCycle.java:501)

org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)

org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

root cause

org.apache.wicket.markup.MarkupException: Tag 'DT' (line 101, column
1) has a mismatched close tag at '/DL' (line 102, column 1)
[markup = 
jar:file:/C:/Documents%20and%20Settings/rnorris/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/web/WEB-INF/lib/wicket-1.4-rc2-javadoc.jar!/org/apache/wicket/markup/html/pages/ExceptionErrorPage.html
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;


!--NewPage--

So, aside from the exception being pretty useless - debugging things
gets me pretty deep in the weeds.  Before I go through the trouble of
filing a JIRA ticket, can anyone tell me:

1.  Is what I'm doing a covered use case (update a label in a form as
a result of a AjaxFormComponentUpdatingBehavior event)?
2.  Is my approach expected to work?  From the scattered documentation
I've found, this looks completely feasible.
3.  Are there any known issues with the rendering and handling of
Errors in 1.4-rc2?  This isn't the first time I've encountered some
really difficult to debug problems, but the fact that this is in an
AJAX scenario makes this really painful.

Thanks.

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



AjaxTabbedPanel, AjaxLazyLoadPanel and back button

2009-04-28 Thread Rodrigo De Castro
Hey,

I've been using AjaxTabbedPanel successfully, but ran into the following
problem today:

1. Load page that has multiple tabs
2. Click on the second tab
3. Click on link on the tab panel that takes me to another page
4. Press back button

It fails with the following error:

WicketMessage: component
tabpanel:mytabpanel:panel:general_workflow_panel:graph_container not found
on page

The container (graph_container) is an AjaxLazyLoadPanel. If I don't load it
lazyly, it works fine. Is this a known bug? Or maybe I am not using
AjaxLazyLoadPanel properly? Let me know if you need more information.

AjaxLazyLoadPanel code:
graphContainer = new AjaxLazyLoadPanel(graph_container) {
@Override
public Component getLazyLoadComponent(String markupId) {
return new ChartPanel(markupId, new ChartModel());
}
};

This is where the panel is inserted:
div style=float: left; wicket:id=graph_container/div

And panel (ChartPanel) html:
wicket:panel
div style=float: left; width: 650px; margin-top: 10px;
wicket:id=graph_container
img wicket:id=workflow_trend/img
/div
/wicket:panel

Thanks,
Rodrigo


Re: Updating a Label in a Form using AjaxFormComponentUpdatingBehavior

2009-04-28 Thread Randy Hammelman
I didn't look at your code in detail line by line, but the concept should
work. I do similar things all the time.

Try setting your own error page to determine if this is an error with the
error page or a very weird error with your code.

You can also try using the debugger to find the exception that is triggering
the error page.

Hope this helped.

Randy

On Tue, Apr 28, 2009 at 8:53 PM, Ryan Norris ryannor...@gmail.com wrote:

 I've been struggling for a while now fighting with
 AjaxFormComponentUpdatingBehavior and changing the value of a label
 within form when a certain javascript precondition is met.

 Code below.

 public final class RegistrationForm extends FormRegistration {
 private static final long serialVersionUID = 1L;

 private Registration _registration = new Registration();
 private CityState _cityState = new CityState();

 public RegistrationForm(String id) {
 super(id);

 add(new TextFieldString(emailAddress, new
 PropertyModelString(_registration, emailAddress)));
 add(new PasswordTextField(password, new
 PropertyModelString(_registration, password)));
 add(new TextFieldString(firstName, new
 PropertyModelString(_registration, firstName)));
 add(new TextFieldString(lastName, new
 PropertyModelString(_registration, lastName)));
 add(new TextFieldString(address1, new
 PropertyModelString(_registration, address1)));
 add(new TextFieldString(address2, new
 PropertyModelString(_registration, address2)));
 add(new TextFieldString(establishmentName, new
 PropertyModelString(_registration, establishmentName)));

 final Label cityStateLabel = new Label(cityState, new
 PropertyModelString(_cityState, city));
 cityStateLabel.setOutputMarkupId(true);

 final TextFieldString zipCodeField = new
 TextFieldString(zip, new PropertyModelString(_registration,
 postalCode));

 zipCodeField.add(new
 AjaxFormComponentUpdatingBehavior(onKeyUp) {
 private static final long serialVersionUID = 1L;

 @Override
 protected CharSequence getPreconditionScript() {
 return return $(\input[name='zip']\).val().length ==
 5;;
 }

 @Override
 protected void onUpdate(AjaxRequestTarget target) {
 if(target != null) {
 _log.info(String.format(Looking up postal
 code: %1$s, _registration.getPostalCode()));

 PostalCode pc =
 _postalCodeManager.getLocaleDataForCode(_registration.getPostalCode());

 _cityState.setCity(pc.getCity());
 _cityState.setState(pc.getState());

 target.addComponent(cityStateLabel);
 }
 }
 });

 add(zipCodeField);
 add(cityStateLabel);
 }

 @Override
 protected void onSubmit() {
 try {

 _accountManager.createAccount(_registration.getEmailAddress(),
 _registration.getPassword());
 } catch (DuplicateEmailAddressException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 }
 }
 }

 The general gist is to display the city for a given input of 5
 characters.  The error I'm getting is completely unrelated...

 exception

 org.apache.wicket.WicketRuntimeException: Internal Error: Could not
 render error page class
 org.apache.wicket.markup.html.pages.InternalErrorPage

  
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:174)
org.apache.wicket.RequestCycle.step(RequestCycle.java:1321)
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
org.apache.wicket.RequestCycle.request(RequestCycle.java:501)

  org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)

  org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 root cause

 org.apache.wicket.markup.MarkupException: Tag 'DT' (line 101, column
 1) has a mismatched close tag at '/DL' (line 102, column 1)
 [markup =
 jar:file:/C:/Documents%20and%20Settings/rnorris/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/web/WEB-INF/lib/wicket-1.4-rc2-javadoc.jar!/org/apache/wicket/markup/html/pages/ExceptionErrorPage.html
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;


 !--NewPage--

 So, aside from the exception being pretty useless - debugging things
 gets me pretty deep in the weeds.  Before I go through the trouble of
 filing a JIRA ticket, can anyone tell me:

 1.  Is what I'm doing a covered use case (update a label in a form as
 a result of a AjaxFormComponentUpdatingBehavior event)?
 2.  Is my approach expected to work?  From the scattered 

Re: Updating a Label in a Form using AjaxFormComponentUpdatingBehavior

2009-04-28 Thread Jeremy Thomerson
You have the javadocs jar in your classpath.  It shouldn't be.  That
should fix the error page so that you can see your error (which should
also be visible in the logs anyway).

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




On Tue, Apr 28, 2009 at 8:53 PM, Ryan Norris ryannor...@gmail.com wrote:
 I've been struggling for a while now fighting with
 AjaxFormComponentUpdatingBehavior and changing the value of a label
 within form when a certain javascript precondition is met.

 Code below.

     public final class RegistrationForm extends FormRegistration {
         private static final long serialVersionUID = 1L;

         private Registration _registration = new Registration();
         private CityState _cityState = new CityState();

         public RegistrationForm(String id) {
             super(id);

             add(new TextFieldString(emailAddress, new
 PropertyModelString(_registration, emailAddress)));
             add(new PasswordTextField(password, new
 PropertyModelString(_registration, password)));
             add(new TextFieldString(firstName, new
 PropertyModelString(_registration, firstName)));
             add(new TextFieldString(lastName, new
 PropertyModelString(_registration, lastName)));
             add(new TextFieldString(address1, new
 PropertyModelString(_registration, address1)));
             add(new TextFieldString(address2, new
 PropertyModelString(_registration, address2)));
             add(new TextFieldString(establishmentName, new
 PropertyModelString(_registration, establishmentName)));

             final Label cityStateLabel = new Label(cityState, new
 PropertyModelString(_cityState, city));
             cityStateLabel.setOutputMarkupId(true);

             final TextFieldString zipCodeField = new
 TextFieldString(zip, new PropertyModelString(_registration,
 postalCode));

             zipCodeField.add(new AjaxFormComponentUpdatingBehavior(onKeyUp) 
 {
                 private static final long serialVersionUID = 1L;

                 @Override
                 protected CharSequence getPreconditionScript() {
                     return return $(\input[name='zip']\).val().length == 
 5;;
                 }

                 @Override
                 protected void onUpdate(AjaxRequestTarget target) {
                     if(target != null) {
                         _log.info(String.format(Looking up postal
 code: %1$s, _registration.getPostalCode()));

                         PostalCode pc =
 _postalCodeManager.getLocaleDataForCode(_registration.getPostalCode());

                         _cityState.setCity(pc.getCity());
                         _cityState.setState(pc.getState());

                         target.addComponent(cityStateLabel);
                     }
                 }
             });

             add(zipCodeField);
             add(cityStateLabel);
         }

         @Override
         protected void onSubmit() {
             try {

 _accountManager.createAccount(_registration.getEmailAddress(),
 _registration.getPassword());
             } catch (DuplicateEmailAddressException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
             }
         }
     }

 The general gist is to display the city for a given input of 5
 characters.  The error I'm getting is completely unrelated...

 exception

 org.apache.wicket.WicketRuntimeException: Internal Error: Could not
 render error page class
 org.apache.wicket.markup.html.pages.InternalErrorPage
        
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:174)
        org.apache.wicket.RequestCycle.step(RequestCycle.java:1321)
        org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
        org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
        
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
        
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 root cause

 org.apache.wicket.markup.MarkupException: Tag 'DT' (line 101, column
 1) has a mismatched close tag at '/DL' (line 102, column 1)
 [markup = 
 jar:file:/C:/Documents%20and%20Settings/rnorris/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/web/WEB-INF/lib/wicket-1.4-rc2-javadoc.jar!/org/apache/wicket/markup/html/pages/ExceptionErrorPage.html
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;


 !--NewPage--

 So, aside from the exception being pretty useless - debugging things
 gets me pretty deep in the weeds.  Before I go through the trouble of
 filing a JIRA ticket, can anyone tell me:

 1.  Is what I'm doing a covered use case (update a label in a form as
 a result of a AjaxFormComponentUpdatingBehavior event)?
 2.  Is my approach expected to work?  From the scattered documentation
 I've found, this looks completely feasible.
 3.  Are there any known issues with the rendering and 

Re: Wicket-Guice: Inject into Session

2009-04-28 Thread Marc Ende
Hmm... I'm not sure why it's done this way in the
AuthenticatedWebSession but
nevertheless it's the only task of a session object to keep informations
between
two requests. From this point of view a authenticate(String,String)
doesnt' really
make sense in the Class. May be there is someone here who can explain this
point. I wouldn't say that this is wrong, but unusual... :)

May be you can get the database connection from inside the method for
authentication purposes,
Then you haven't got any private or public members which should be
serialized and contains a database connection.

m.


Jan Torben Heuer schrieb:
 Marc Ende wrote:

   
 webapps do. In this case you've got to serialize the connection. I don't
 think that's easy/possible to seralize a database connection.
 I would go another approach which uses the session only as a
 information-container and get those needed information from the
 database in the page-lifecycle. That keeps the session-object small
 (which is also an aspect).
 

 Hmm, following your argumentation, would you say that the 
 AuthenticatedWebSession is implemented wrong because it contains a 
 #authenticate method (which clearly needs a reference to some kind of 
 database)?

 Or would marking the field as transient be fine?


 Cheers,

 Jan



 -
 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-Guice: Inject into Session

2009-04-28 Thread Jeremy Thomerson
You shouldn't be using database connections.  Use a service from your
service layer.  Inject the service with wicket-ioc / wicket-guice - it
will insert a serializable proxy.

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




On Tue, Apr 28, 2009 at 11:49 PM, Marc Ende mli...@e-beyond.de wrote:
 Hmm... I'm not sure why it's done this way in the
 AuthenticatedWebSession but
 nevertheless it's the only task of a session object to keep informations
 between
 two requests. From this point of view a authenticate(String,String)
 doesnt' really
 make sense in the Class. May be there is someone here who can explain this
 point. I wouldn't say that this is wrong, but unusual... :)

 May be you can get the database connection from inside the method for
 authentication purposes,
 Then you haven't got any private or public members which should be
 serialized and contains a database connection.

 m.


 Jan Torben Heuer schrieb:
 Marc Ende wrote:


 webapps do. In this case you've got to serialize the connection. I don't
 think that's easy/possible to seralize a database connection.
 I would go another approach which uses the session only as a
 information-container and get those needed information from the
 database in the page-lifecycle. That keeps the session-object small
 (which is also an aspect).


 Hmm, following your argumentation, would you say that the
 AuthenticatedWebSession is implemented wrong because it contains a
 #authenticate method (which clearly needs a reference to some kind of
 database)?

 Or would marking the field as transient be fine?


 Cheers,

 Jan



 -
 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: Update DropDownChoice with ModalWindow

2009-04-28 Thread PDiefent

Hi Vladimir,
for the solution, look at
http://www.nabble.com/Update-DropDownChoice-td22944165.html
Peter

Vladimir K wrote:
 
 PDiefent,
 
 I've came across similar problem. In my case, and what I'm discovered fits
 your case as well, the following is happening:
 
 ModalWindow is component based. It is rendered in two parts. The first
 part is all you put into your markup. The second part is dynamically built
 within a separate div within the body tag.
 
 Concerning browser's DOM, your form and modal window form are not
 overlapped. Nothing is passed for DDChoice when modal window form is
 submitted.
 Concerning wicket tree your form and modal window form are overlapped
 (modal form is within). So when wicket is updating formcomponent models
 (and it starts from the outermost form for some reason), it has to fill
 DDC, but nothing is passed in request for it. So wicket fills it with
 null, what explains choose a value message in it.
 
 I don't know what is actually wrong - how wicket is processing form or
 ModalWindow implementation that renders modal window somewhere outside of
 the place you pointed. It is up to authors to decide.
 
 I'm going to investigate workarounds. Will be back if suceed.
 

-- 
View this message in context: 
http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p23290916.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



Maintenance of session in SpringWebApplication of Wicket

2009-04-28 Thread Geeta Madhavi
Hi..

Can any one tell me how to maintain the session in wicket while using the
springwebapplication. my requirement is i select values in drop down those
values should be in session. and those values i should be able to print in
the next page. So,Kindly some one help me in this i am newbie to this
Wicket.

-- 
Regards.
Geeta Madhavi. K


Re: Update DropDownChoice with ModalWindow

2009-04-28 Thread Geeta Madhavi
Hi,

Please go through this link you will find the source code.This is pretty
help ful for drop down.

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


On Wed, Apr 29, 2009 at 11:18 AM, PDiefent pdief...@csc.com wrote:


 Hi Vladimir,
 for the solution, look at
 http://www.nabble.com/Update-DropDownChoice-td22944165.html
 Peter

 Vladimir K wrote:
 
  PDiefent,
 
  I've came across similar problem. In my case, and what I'm discovered
 fits
  your case as well, the following is happening:
 
  ModalWindow is component based. It is rendered in two parts. The first
  part is all you put into your markup. The second part is dynamically
 built
  within a separate div within the body tag.
 
  Concerning browser's DOM, your form and modal window form are not
  overlapped. Nothing is passed for DDChoice when modal window form is
  submitted.
  Concerning wicket tree your form and modal window form are overlapped
  (modal form is within). So when wicket is updating formcomponent models
  (and it starts from the outermost form for some reason), it has to fill
  DDC, but nothing is passed in request for it. So wicket fills it with
  null, what explains choose a value message in it.
 
  I don't know what is actually wrong - how wicket is processing form or
  ModalWindow implementation that renders modal window somewhere outside of
  the place you pointed. It is up to authors to decide.
 
  I'm going to investigate workarounds. Will be back if suceed.
 

 --
 View this message in context:
 http://www.nabble.com/Update-DropDownChoice-with-ModalWindow-tp22595072p23290916.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




-- 
Regards.
Geeta Madhavi. K