Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-25 Thread david_
Yes indeed. Is it possible that wicket is updating for example 2 Component's of 2 different users with the same Component identifiers? Maybe that's why Wicket is unable to process the action for a link one of the 2 Components. 2010/6/25 Rodolfo Hansen [via Apache Wicket]

Re: inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-25 Thread vov
Try to use: yourDDC.add(new AjaxFormComponentUpdatingBehavior(onchange) { @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(yourGridComponent); //like MyGrid.this } }); -- View this message in context:

Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Alessandro Bottoni
Hi All, I'm new to Wicket and I'm studying it using Wicket in Action. As you surely know, this book is based on Wicket 1.3, that does NOT use generics, while the current version is 1.4 and DOES use them (as will do the next ones). Put aside this page:

Howto get TagTester for childs of components in ajax response?

2010-06-25 Thread Per Newgro
Hi *, I would like to test the markup of my (Ajax-)updated component. Until now i simply used String.contains(String). But this is very fragile on markup manipulation in my code. So i would like to get the tags inside the ajax-response CData section and simply extract everything (analogous to

Re: Session.replaceSession() behavior

2010-06-25 Thread Matthias Keller
Hi Doug As described in the javadoc, the replaceSession() only replaces the (underlying) HTTP Session to help against session fixation attacks. What is your goal exactly? If the user logs in and still has an earlier session, that that one will be destroyed? In that case consider to use

RE: Programmatically set CSS 'id' in an a href.. tag

2010-06-25 Thread Chris Colman
If the link elements are wicket component then you could do: add(new SimpleAttributeModifier(id, menu1)); or setMarkupId(menu1); For some reason the first method worked fine but the second method didn't. - To unsubscribe,

SV: Programmatically set CSS 'id' in an a href.. tag

2010-06-25 Thread Wilhelmsen Tor Iver
For some reason the first method worked fine but the second method didn't. setMarkupId() needs to be combined with setOutputMarkupId(true); - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
I find that when I delete objects from my ListView, my model object for the ListView still contains a reference to the object. When the view tries to render, the object is already removed from the database and I get a null response on my hibernate load(). I use opensessioninview and when I check

Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Alessandro Bottoni
Hi All, I'm new to Wicket and I'm studying it with Wicket in Action. As you surely know, this book is based on Wicket 1.3, that does NOT use generics, while the current version is 1.4 and DOES use them (as will do the next ones). Put aside this page:

RE: Programmatically set CSS 'id' in an a href.. tag

2010-06-25 Thread Chris Colman
Arh, ok, that explains it. -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Friday, 25 June 2010 8:55 PM To: users@wicket.apache.org Subject: SV: Programmatically set CSS 'id' in an a href.. tag For some reason the first method worked fine but the second

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
How are you managing transactions? On Fri, Jun 25, 2010 at 7:27 AM, pieter claassen pieter.claas...@gmail.com wrote: I find that when I delete objects from my ListView, my model object for the ListView still contains a reference to the object. When the view tries to render, the object is

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
No, my DAO's inherit from HibernateDaoSupport and I just go with the defaults. Regards, Pieter On Fri, Jun 25, 2010 at 2:22 PM, James Carman ja...@carmanconsulting.comwrote: How are you managing transactions? On Fri, Jun 25, 2010 at 7:27 AM, pieter claassen pieter.claas...@gmail.com wrote:

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread nino martinez wael
are you using a loadable detachable model or? 2010/6/25 pieter claassen pieter.claas...@gmail.com I find that when I delete objects from my ListView, my model object for the ListView still contains a reference to the object. When the view tries to render, the object is already removed from

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
Yes, I reload the objects using my DAOs but, I have 2 MySQL databases on the backend and so far have not been using @Transactional. This might be the problem. Now I just have to figure out to configure tx:annotation-driven transaction-manager=txManager / for more than one transaction manager

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
These discussions might be of interest to you: https://jira.springsource.org/browse/SPR-3955 http://forum.springsource.org/showthread.php?t=27754 On Fri, Jun 25, 2010 at 9:34 AM, pieter claassen pieter.claas...@gmail.com wrote: Yes, I reload the objects using my DAOs but, I have 2 MySQL

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
Looks like if you use Spring 3.x, you can do it. You have to use the value of the @Transactional annotation to figure out which tx manager to use. On Fri, Jun 25, 2010 at 9:58 AM, James Carman ja...@carmanconsulting.com wrote: These discussions might be of interest to you:

Re: tomcat restart error

2010-06-25 Thread Johan Compagner
Is that tomcat 7?? But t seems that we dont clean up our page saving thread. That sounds like a leak to me. Application.shutdown or something should clean up that - Original message - Anybody seen this before? SEVERE: Error filterStart Jun 24, 2010 3:24:06 PM

Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-25 Thread Rodolfo Hansen
Yes, it may be something with the wicket session. Can you send me a quickstart with the issue?? On Thu, 2010-06-24 at 23:22 -0700, david_ wrote: Yes indeed. Is it possible that wicket is updating for example 2 Component's of 2 different users with the same Component identifiers? Maybe that's

Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-25 Thread david_
If that is the issue, it can be solved by overriding the method that sets the id? But is it possible? 2010/6/25 Rodolfo Hansen [via Apache Wicket] ml-node+2268555-1340689353-232...@n4.nabble.comml-node%2b2268555-1340689353-232...@n4.nabble.com Yes, it may be something with the wicket

Re: Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Thomas Kappler
On 06/25/10 09:17, Alessandro Bottoni wrote: Hi All, I'm new to Wicket and I'm studying it using Wicket in Action. As you surely know, this book is based on Wicket 1.3, that does NOT use generics, while the current version is 1.4 and DOES use them (as will do the next ones). Put aside this

Markup Inheritance example with Ajax?

2010-06-25 Thread heapifyman
Hello all, I would like to extend the Markup Inheritance example (http://wicket.apache.org/examplemarkupinheritance.html) by replacing the content part of the page (i.e. the wicket:child) using Ajax. I tried to replace the BookmarkablePageLink on the BasePage with an AjaxLink but this does not

Re: Markup Inheritance example with Ajax?

2010-06-25 Thread Edward Zarecor
What you are trying to accomplish doesn't require markup inheritance. You can use a panel and replace it with an Ajax link. That panel could be nested within wicket children participating in markup inheritance, but that's another matter. The panel should be the component added to the

Re: Submitting a component value on a ajax call of a different component

2010-06-25 Thread jammyjohn
Thank you so much for your reply. I tried using getCallbackScript on my dropdown box. But it is never been called and also the fetch value on the wicket side returns null for the dropdown box. Not sure where I am doing wrong. Please suggest. My code is as below..

Wicket: On RadioChoice component, invoke form submit, what am I missing

2010-06-25 Thread Brown, Berlin [GCG-PFS]
There are some components in wicket that seem to be associated with a form, but I can't get them to actually submit the form. Or at least, I can't get them to submit the form, if I have a hierarchy of FORM - PANEL - COMPONENT/RADIOCHOICE For example, I can create a submitlink or button and

Re: Markup Inheritance example with Ajax?

2010-06-25 Thread Jeremy Thomerson
If you want to do this, you are basically using the single-page paradigm where your content is always a panel. Basically you just create a single page, and then all of your content goes into panels instead of pages with markup inheritance. Then swap the panel in your link and add it to the ajax

Get data from main application

2010-06-25 Thread d2marcelo
Hello, I'm building a webapp in wicket which will be a redirect from other webapp. The other webapp will send me a string , what is the best way to get this string from the wicket application? and how to do it? Thanks a lot, Marcelo -- View this message in context:

Re: Get data from main application

2010-06-25 Thread Jeremy Thomerson
How are you sending the string? As a query string parameter, a JMS message, something in the database? On Fri, Jun 25, 2010 at 2:17 PM, d2marcelo d2olive...@gmail.com wrote: Hello, I'm building a webapp in wicket which will be a redirect from other webapp. The other webapp will send me a

Re: Get data from main application

2010-06-25 Thread Edward Zarecor
Do you mean that App1 will redirect to something like http://wickethost/WicketApp/homepage?myArgument=theValue If so, see: http://wicketbyexample.com/api/wicket/1.4.6/org/apache/wicket/PageParameters.html If not, please clarify the use case. Ed. On Fri, Jun 25, 2010 at 3:17 PM, d2marcelo

Re: About the Mail on this page mainly to Igor

2010-06-25 Thread Markus
Gmail has a good enough spam-filter, so don't worry On 6/24/10 3:45 AM, midikem wrote: Hi can u please put the mail invisible. When you search on google on your mail you get all the posts from this forum, that you have posted, and i dont want my mail to be vissible to other people, due to

Re: Get data from main application

2010-06-25 Thread d2marcelo
I'm open to suggestions on this. What is a simple way to send the string . This is coming from a webapp written in a diff java framework. jsf Possibility a simple get to the url with the string or use RESTfull service. Trying to be away from database option. I'm not familiar with jmx.

Re: Get data from main application

2010-06-25 Thread Jeremy Thomerson
Depends on what your String is. Do you mean that you need to redirect a user from app one to app two, and you could pass this string in the URL (as a query parameter)? If s, just create a wicket bookmarkable page and use the PageParameters to get the string. Jeremy On Fri, Jun 25, 2010 at 2:38

Re: Get data from main application

2010-06-25 Thread d2marcelo
So , I assume I don't have to do anything on the application class. But on the home page class, I would get PageParameters passed in the constructor like so? public class MyApp extends WebPage { public MyApp (PageParameters params) { } -- View this message in

Re: Get data from main application

2010-06-25 Thread Jeremy Thomerson
yes On Fri, Jun 25, 2010 at 2:43 PM, d2marcelo d2olive...@gmail.com wrote: So , I assume I don't have to do anything on the application class. But on the home page class, I would get PageParameters passed in the constructor like so? public class MyApp extends WebPage {

Re: Get data from main application

2010-06-25 Thread d2marcelo
That's correct. APP 1 will call APP2 and pass the string like ABCDEFG in the url.. I was just thinking if this is the best way to do it. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268873.html Sent from the

urlFor not performing an accurate url

2010-06-25 Thread Fernando Wermus
Hi all, I need a url similar to the following example www.example/test?url=map/myMap.swf But urlFor constructs the followng www.example/text/url/map/myMap.swf/ The last slash makes that the swf will not be correctly added. Why RequestCycle.get().urlFor is not doing what I do expect?

Re: urlFor not performing an accurate url

2010-06-25 Thread Jeremy Thomerson
your page is probably mounted with the default mounting strategy, which uses the seo-friendly folder style parameters. instead, you should mount that page with the QueryStringUrlCodingStrategy On Fri, Jun 25, 2010 at 3:07 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, I need a

Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread jammyjohn
Hi, The page loads address panel with couple of text fields . When the search is made for a particular address id, the address panel is rendered twice (one panel with the data, the second panel without the data). Not sure how to avoid re-rendering of panel twice, setResponsePage(getPage())

Re: urlFor not performing an accurate url

2010-06-25 Thread Fernando Wermus
thanks On Fri, Jun 25, 2010 at 5:09 PM, Jeremy Thomerson jer...@wickettraining.com wrote: your page is probably mounted with the default mounting strategy, which uses the seo-friendly folder style parameters. instead, you should mount that page with the QueryStringUrlCodingStrategy On

Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread Edward Zarecor
I believe the cause -- and I've reproduced locally -- is this HTML: tr wicket:id=shipperAddressPanel/tr Don't dump content into the tr Try changing this to tr td div wicket:id=shipperAddressPanel/ /td /tr And see if it fixes the issue. Ed.

Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread jammyjohn
Ed, Thanks for your reply. I already tried this. But still the problem exists. :( setResponsePage(getPage(this)) seems to be the work around for this issue. But the problem is, the other inputfields that have values on this page are lost when the panel is re-rendered. I am not sure how to

Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread Edward Zarecor
Hmm, I took a working example that replaces a panel using an AJAX link and altered the HTML to match what you have and, hey presto, after clicking the link I have two versions of the panel content. Reload and I have one again. I don't have the code in front of me, but I'll take a look again

How to Ajax-validate CheckBoxMultipleChoice?

2010-06-25 Thread David Chang
Hi, I am unable to addres this need and have to ask the group. I am using the ajax approach to validate each field on a form. See the following: div wicket:id=fullNameBorder input type=text wicket:id=fullName / /div If the above field gets focus and loses the focus without any value in it,