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 childRecordsModel.load()

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 RequiredTextField("patente") will have a problem -- View this message in context: http://apache-wicke

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 wrote: > Or iPhone/iPad. > > -Original Message- > From: Jonathan Locke [mailto:jonathan.lo...@gmail.com] > Sent: Saturday, October 02, 2010 7:17 PM > To: users@wicket.apache.org > Subject:

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 p

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 > 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 wrote: > 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 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 wrote: > There may be a more "correct" way of doing it, but this will work - > > > getWebRequestCyc

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 MyAuthorisa

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 the

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, "Loading...").setEscapeModelStrings(false); } Also you could return a panel instead of a label if you need something more complicated. Er

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 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 to the page. Fo

Re: Authorization using PageParameters

2010-10-06 Thread Eike Kettner
Hi Peter, this probably not the best way, I don't know, but I would start with throwing an UnauthorizedInstantiationException in my page constructor. regards, Eike On [Wed, 06.10.2010 13:53], Peter Munro wrote: > Hi all, > > I'm confused... I'd like to setup authorization for a page, where the

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 wo

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 getAjaxIndicator

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 > > 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 co

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 org.apache.wicket.markup.html.link.Link;

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: org/slf4j/LoggerFactory

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() - ldm.load(

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 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() > - ldm.detach() (

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

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 wrote: >  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

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 inside a component tag (Wicket 1.5)

2010-10-06 Thread Alexander Morozov
Hi, ParentPage.html: 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 context: http://apache-wicket.1842946

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 : > 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. > > -igor > > On Mon, Oct 4,

ApacheCon 2010

2010-10-06 Thread Nelson Segura
According to this link , 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 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 wrote: > > Hi, > > ParentPage.html: > >   > > > 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. > > Wicke

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 ca

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 wicket.filter org.apache.wicket.protocol.http.WicketFilter applicationFactoryClassName org.apache.wicket.spring.SpringWebApplicationFactory

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" wrote:

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 wrote: > It was canceled due to a scheduling conflict - I have to be on-site at one > of my large clients that week. Sor

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 Stat

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 ta

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 ta

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 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 message in co

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" wrote: My markup looks like this: ... stuff ... When I rende

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" wrote: You probably have two shoptalk marks after your equals sign. Jeremy Thomerson h

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 excus

Re: Inheritance and 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? I

Re: urls after a form submission

2010-10-06 Thread Jeremy Thomerson
On Wed, Oct 6, 2010 at 6:59 PM, Alex Rass 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 page >

Re: Inheritance and 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 WICKET

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 QueryStringUrlCod

Re: urls after a form submission

2010-10-06 Thread Jeremy Thomerson
On Wed, Oct 6, 2010 at 8:43 PM, Alex Rass 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 have to un

Re: Problem using wicket-extensions

2010-10-06 Thread Jeremy Thomerson
On Wed, Oct 6, 2010 at 9:04 AM, chitrabhanu.das wrote: > > 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

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 pr

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 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";> 4.0.0 nic.

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

2010-10-06 Thread Martijn Dashorst
make sure your wicket-auth-roles dependency is from the same version as your wicket jar. Martijn On Wed, Oct 6, 2010 at 7:24 PM, cablepuff wrote: > > Hi i have the following in my web.xml > > > >                wicket.filter >                 > org.apache.wicket.protocol.http.WicketFilter >