Re: DropDownChoice/Model Confusion

2010-10-06 Thread Daniel Stoch
The code looks ok. Maybe the problem is in childRecordService: childRecordService.getList() when method getList() does not reflect changes until you create a new session. So maybe the problem is related to your service layer? Have you checked whet this method returns inside

Re: Forms ajax doesn't update components models

2010-10-06 Thread vov
Sorry, but I'm not see the problems. Try to debug your isVisible method after submitting the form and find the place in which this code return false. I think that isVisibleInHierarchy() for your RequiredTextFieldString(patente) will have a problem -- View this message in context:

Re: Coding - On Software Design Process

2010-10-06 Thread Nivedan Nadaraj
Hi John, Thanks will wait for the paperback. Cheers Niv On Mon, Oct 4, 2010 at 11:10 PM, John Owen jo...@globalscape.com wrote: Or iPhone/iPad. -Original Message- From: Jonathan Locke [mailto:jonathan.lo...@gmail.com] Sent: Saturday, October 02, 2010 7:17 PM To:

Re: Wicket 1.5 and OSGi

2010-10-06 Thread Nico Guba
On 10/3/2010 1:35 PM, Eike Kettner wrote: Just want to mention that with this change in wicket 1.5, wicket cannot be used in OSGi environments as easiliy as wicket 1.4. One usually has to create a wrapped jar somehow. Maybe this is worth to mention on the migration guide wiki page? Maybe this

Getting client IP address

2010-10-06 Thread Josh Kamau
Hi Team; Is it possible to get the IP address of the client and how? kind regards.

Re: Getting client IP address

2010-10-06 Thread Altuğ Bilgin Altıntaş
Read with order 1 - http://www.javadb.com/get-users-ip-address 2 - https://cwiki.apache.org/WICKET/raw-httpservletrequest.html 2010/10/6 Josh Kamau joshnet2...@gmail.com Hi Team; Is it possible to get the IP address of the client and how? kind regards.

Re: Getting client IP address

2010-10-06 Thread Richard Nichols
There may be a more correct way of doing it, but this will work - getWebRequestCycle().getWebRequest().getHttpServletRequest().getRemoteAddr(); On Wed, Oct 6, 2010 at 9:46 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi Team; Is it possible to get the IP address of the client and how? kind

Re: Getting client IP address

2010-10-06 Thread Josh Kamau
Thanks guys, I got the IP address. Is it possible to get the client computer name? i checked the ClientInfo Object and it doesnt have much. regards On Wed, Oct 6, 2010 at 1:58 PM, Richard Nichols r...@visural.com wrote: There may be a more correct way of doing it, but this will work -

Authorization using PageParameters

2010-10-06 Thread Peter Munro
Hi all, I'm confused... I'd like to setup authorization for a page, where the authorization decision is based on the parameters passed to the page. For example, http://blahblah/MyPage/?date=2010-10-06 would authorize correctly (show the page), but previous dates would not. Subclassing

AjaxLazyLoadPanel loading component

2010-10-06 Thread N. Metzger
Hi all, I just don't see it this morning: I have a AjaxLazyLoadPanel to load a big tree structure which works fine. I see the indicator that it's loading, but would like to add some words to it, e.g. Loading So I have overridden: public Component getLoadingComponent(String id){

Initialization/Business Logic code before page loads

2010-10-06 Thread Brown, Berlin [GCG-PFS]
I might have asked a similar question in a previous post but I wanted to clarify a bit. Where is the best place to put code to initialize the model before a page renders. I know of five options, but where do you normally put this type of initialization. Before a page renders, I want to set

Re: AjaxLazyLoadPanel loading component

2010-10-06 Thread Ernesto Reinaldo Barreiro
Haven´t tried this but it might work, public Component getLoadingComponent(final String markupId) { return new Label(markupId, divLoading...img src=\ + RequestCycle.get().urlFor(AbstractDefaultAjaxBehavior.INDICATOR) +

Re: Authorization using PageParameters

2010-10-06 Thread Martin Grigorov
Try with WebRequestCycle.get().getWebRequest().getParameters() or something like that. On Wed, Oct 6, 2010 at 2:53 PM, Peter Munro spelud...@gmail.com wrote: Hi all, I'm confused... I'd like to setup authorization for a page, where the authorization decision is based on the parameters passed

Re: Initialization/Business Logic code before page loads

2010-10-06 Thread Michael O'Cleirigh
Hello, There is a sixth option, look at Component.onInitialize() which was added recently (in July 2010) to 1.4.x which lets you initialize the component after it has been added to the page. If you need to access state in the page and aren't passing a model through to your component this

Re: AjaxLazyLoadPanel loading component

2010-10-06 Thread N. Metzger
It worked, thanks!!! Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-component-tp2964896p2965012.html Sent from the Users forum mailing list archive at Nabble.com.

RE: AjaxLazyLoadPanel loading component

2010-10-06 Thread John Owen
Pseudocode: class IndicatingLabel extends Label implements IAjaxIndicatorAware { private final AjaxIndicatorAppender indicatorAppender; public IndicatingLabel(...) { super(...); add(indicatorAppender = new AjaxIndicatorAppender()); } public String

Re: Forms ajax doesn't update components models

2010-10-06 Thread Tito
Well thank you!! I'm going to see this. If I see another details or if I can solve I will tell you. Thank you very much for helping! Bye 2010/10/6 vov vov...@mail.ru Sorry, but I'm not see the problems. Try to debug your isVisible method after submitting the form and find the place in

wicket-groovy guru's please help me

2010-10-06 Thread fachhoch
here is my groovy file package gov.hhs.acf.web.util; import java.util.ArrayList; import java.util.List; import org.apache.wicket.Component; import org.apache.wicket.MarkupContainer; import org.apache.wicket.markup.IMarkupResourceStreamProvider; import

Problem using wicket-extensions

2010-10-06 Thread chitrabhanu.das
Hi all, I am trying to add DataTable into my wicket application. But I am facing is problem doing that. And the fact is that it is not giving coding related error. After adding wicket-extensions1.4.3.jar I am getting the following error: java.lang.NoClassDefFoundError:

RE: DropDownChoice/Model Confusion

2010-10-06 Thread Shelli Orton
No, the getList() (called in the LDM load()) is only called once. For the buttons add, edit and delete, the processng is like this: - ldm.load() (which calls getList()) - button.onSubmit() - ldm.detach() (called two times) For the save button, the processing is: - button.onSubmit() -

Re: DropDownChoice/Model Confusion

2010-10-06 Thread James Carman
I meant between requests On Wed, Oct 6, 2010 at 11:41 AM, Shelli Orton shelli.or...@sjrb.ca wrote: No, the getList() (called in the LDM load()) is only called once.  For the buttons add, edit and delete, the processng is like this: - ldm.load() (which calls getList()) - button.onSubmit() -

RE: DropDownChoice/Model Confusion

2010-10-06 Thread Shelli Orton
The childRecordService is a stateless JPA bean and the getList method executes a named query on the database. The logs show that the SQL to retrieve the list from the db is called every time (i.e. no caching). Shelli -Original Message- From: Daniel Stoch [mailto:daniel.st...@gmail.com]

RE: DropDownChoice/Model Confusion

2010-10-06 Thread Shelli Orton
I don't understand what you mean by between requests. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Wednesday, October 06, 2010 9:43 AM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion I

Re: Initialization/Business Logic code before page loads

2010-10-06 Thread Igor Vaynberg
and if you need it called before *every* render, there is component#onconfigure -igor On Wed, Oct 6, 2010 at 6:39 AM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote:  Hello, There is a sixth option, look at Component.onInitialize() which was added recently (in July 2010) to 1.4.x

Re: Authorization using PageParameters

2010-10-06 Thread Peter Munro
Huge thanks to both Eike and Martin. They both work, so I'm figuring out the best approach. I'll probably go with Martin's. BTW, for anyone googling the archive, either: - WebRequestCycle.get().getPageParameters(), or - WebRequestCycle.get().getRequest().getParameter(myparam) will do the

Inheritance and wicket:child / inside a component tag (Wicket 1.5)

2010-10-06 Thread Alexander Morozov
Hi, ParentPage.html: div wicket:id=wrapper wicket:child/ /div I know how it can be achieved in Wicket 1.4 (WebMarkupContainer with overrided isTransparentResolver), but I cannot get the same behavior in case of Wicket 1.5. Wicket gurus, I need your advice :) Thanks -- View this message in

Re: isTemporary behavior + ajax behavior

2010-10-06 Thread Michal Kurtak
Hi, Jira issue created with quickstart: https://issues.apache.org/jira/browse/WICKET-3097 br, michal 2010/10/5 Igor Vaynberg igor.vaynb...@gmail.com: hrm. this was fixed in 1.4.x a good while back. maybe it never got ported to trunk. please create a jira issue and attach a quickstart.

ApacheCon 2010

2010-10-06 Thread Nelson Segura
According to this link http://na.apachecon.com/c/acna2010/schedule/grid, there will be Wicket training in the ApacheCon NA 2010. But I can't find a way to register for it. Is the training really on or is it just a mistake on scheduling? -Nelson

Re: Inheritance and wicket:child / inside a component tag (Wicket 1.5)

2010-10-06 Thread Igor Vaynberg
jira+quickstart -igor On Wed, Oct 6, 2010 at 9:14 AM, Alexander Morozov alexander.v.moro...@gmail.com wrote: Hi, ParentPage.html: div wicket:id=wrapper  wicket:child/ /div I know how it can be achieved in Wicket 1.4 (WebMarkupContainer with overrided isTransparentResolver), but I

RE: DropDownChoice/Model Confusion

2010-10-06 Thread Shelli Orton
By removing the call to setDefaultFormProcessing(false) on the cancel button, the edit group is now updated as per the selection from the ddc. However, I'm still having the ldm loading issue. Can anyone provide any insight into why when the save button is clicked that the onSubmit method is

wicket 1.4.12 cannot cast to org.apache.wicket.protocol.http.WebApplication

2010-10-06 Thread cablepuff
Hi i have the following in my web.xml filter filter-namewicket.filter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationFactoryClassName/param-name

Re: ApacheCon 2010

2010-10-06 Thread Jeremy Thomerson
It was canceled due to a scheduling conflict - I have to be on-site at one of my large clients that week. Sorry :) Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Oct 6, 2010 11:53 AM, Nelson Segura

Re: ApacheCon 2010

2010-10-06 Thread Nelson Segura
Jeremy, Thanks for your answer. Please let me know next time you offer training, so we can have some people attend :D -Nelson On Wed, Oct 6, 2010 at 12:34 PM, Jeremy Thomerson jer...@wickettraining.com wrote: It was canceled due to a scheduling conflict - I have to be on-site at one of my

Re: chrome + wicket ajax + back button = problem?

2010-10-06 Thread MZemeck
I've had similar issues, have you tried HybridUrlCodingStrategy? Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under

PropertyModel Not Refreshing

2010-10-06 Thread Shelli Orton
Hi, First, thanks to all who have been helping me as I am new to Wicket. I am splitting out two issues I am dealing with to try to keep things clear. I am trying to write a simple app that does CRUD operations on database records. The goal is for the app to make use of a tab panel where each

Processing Flow for Button onSubmit and LDM load

2010-10-06 Thread Shelli Orton
Hi, Again, thanks to all who have been helping me as I am new to Wicket. I am splitting out two issues I am dealing with to try to keep things clear. I am trying to write a simple app that does CRUD operations on database records. The goal is for the app to make use of a tab panel where each

Re: Putting HTML files in src/main/webapp

2010-10-06 Thread Avraham Rosenzweig
Try this: http://www.mkyong.com/wicket/how-do-change-the-html-file-location-wicket/ On Tue, Sep 28, 2010 at 12:45 PM, elesi jsar...@gmail.com wrote: Could i change html resource folder, even if my project don't have a maven folder structure? I mean no resources folder, etc.? -- View this

Re: wickert:id changes to attribute

2010-10-06 Thread Jeremy Thomerson
You probably have two shoptalk marks after your equals sign. Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Oct 4, 2010 7:49 PM, Jered Myers jer...@maplewoodsoftware.com wrote: My markup looks like this: ...

Re: wickert:id changes to attribute

2010-10-06 Thread Jeremy Thomerson
That should be quotation marks Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Oct 6, 2010 5:24 PM, Jeremy Thomerson jer...@wickettraining.com wrote: You probably have two shoptalk marks after your equals sign.

Re: wickert:id changes to attribute

2010-10-06 Thread Jered Myers
Good catch! I must have looked at that line 20 times! The problem was a missing end quote on a parent container attribute. On 10/6/2010 3:25 PM, Jeremy Thomerson wrote: That should be quotation marks Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse

Re: Inheritance and wicket:child / inside a component tag (Wicket 1.5)

2010-10-06 Thread Gabriel Bucher
Have you tried to use the TransparentWebMarkupContainer? based on the migration guide this could be a potential solution. also have a look at this open bug https://issues.apache.org/jira/browse/WICKET-3045 then after using the TransparentWebMarkupContainer... wicket was no longer able to find

urls after a form submission

2010-10-06 Thread Alex Rass
Hi. After an on-page (wicket) form is submitted, the followed url doesn't follow the page's URL encoding strategy (QueryStringUrlCodingStrategy or any others). It just becomes http://site.com/?wicket...; and loses original page Could someone please tell me if there's a way to fix it easily? Is

Re: urls after a form submission

2010-10-06 Thread Jeremy Thomerson
On Wed, Oct 6, 2010 at 6:59 PM, Alex Rass a...@itbsllc.com wrote: Hi. After an on-page (wicket) form is submitted, the followed url doesn't follow the page's URL encoding strategy (QueryStringUrlCodingStrategy or any others). It just becomes http://site.com/?wicket...; and loses original

Re: Inheritance and wicket:child / inside a component tag (Wicket 1.5)

2010-10-06 Thread Alexander Morozov
Gabriel, thank you for reply, Gabriel Bucher wrote: Have you tried to use the TransparentWebMarkupContainer? based on the migration guide this could be a potential solution. Yep, I tried to use Transparent WebMarkupContainer and BoxBorder and got the same issue as described in

RE: urls after a form submission

2010-10-06 Thread Alex Rass
But that breaks the common sense of strategy, doesn't it? And if it works special for HybridUrlCodingStrategy, then it should also work with the other ones, right? Consistency rule makes it a bug, right? HybridUrlCodingStrategy messes with the original name. I'd rather use

Re: urls after a form submission

2010-10-06 Thread Jeremy Thomerson
On Wed, Oct 6, 2010 at 8:43 PM, Alex Rass a...@itbsllc.com wrote: But that breaks the common sense of strategy, doesn't it? And if it works special for HybridUrlCodingStrategy, then it should also work with the other ones, right? Consistency rule makes it a bug, right? Wrong. First, you

Re: Problem using wicket-extensions

2010-10-06 Thread Jeremy Thomerson
On Wed, Oct 6, 2010 at 9:04 AM, chitrabhanu.das chitrabhanu@gmail.comwrote: Hi all, I am trying to add DataTable into my wicket application. But I am facing is problem doing that. And the fact is that it is not giving coding related error. After adding wicket-extensions1.4.3.jar I am

Bean injection

2010-10-06 Thread Mauro Ciancio
Hello everyone, I'm using spring in one wicket project and I'm lost about how the proxy stuff works. I've realized that the fields marked with @springbean are injected when the component injection listener runs. Also, I've looked in AnnotProxyFieldValueFactory.class to find out how the bean

Re: Problem using wicket-extensions

2010-10-06 Thread chitrabhanu.das
Thanks for the repley. Yes I am using maven This is my pom.xml project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;