Re: Invalid URLPatternSpec for Ajax Calls in Wicket Portlet

2008-11-19 Thread Thijs
Do you know what is send differently to the server in FF2 vs IE (WireShark?) And where the error is thrown, why it says that the URLPatternSpec is invalid... Thijs On 18-11-2008 22:57, prasana wrote: Hi all, We are running Wicket Portlet in Jetspeed Portal deployed in Glassfish. But

null lastPage at restoreAfterSerialization

2008-11-19 Thread Carlos Pita
Hi all, as I've a requirement to maintain long lived sessions (~120s) I'm using tomcat's PersistentManager to avoid keeping lots of sessions in memory, each one with its own lastPage. I'm observing, specially in a heavy loaded production environment, permanent errors with a trace like Nov 19,

Re: null lastPage at restoreAfterSerialization

2008-11-19 Thread Carlos Pita
Another fact that could be relevant is that this only happens upon processexpires, but never for swapin, which seems to suggest that the span of the sessions that fail to restore is just one request (maybe the ones coming from bots that don't support cookies). Best regards -Carlos On Wed, Nov

Help with load-balancing and fail-over in a Hibernate, Spring, Wicket 3-tier architecture

2008-11-19 Thread Kent Larsson
Hi, I have this 3-tier architecture in mind: 1. Persistence: Hibernate with MySQL 2. Business: Spring 2.5 3. Presentation: Wicket I want my application to have high availability and scalability, so I want to cluster it with load-balancing, fail-over and synchronization. I wonder if you know of

Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Anton Veretennikov
Hi, http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html shows this configuration: VirtualHost ordering.company.com ProxyPass / http://appserver.company.com:8080/ordering/ ProxyPassReverse / http://appserver.company.com:8080/ordering/ # Apache 2.2+ only

Re: Model never called

2008-11-19 Thread Michael Sparer
you should rather add an IModel to the link e.g. new Link(foobar, myModel); than letting a component implement IModel. the way you did it, the model is never recognised as a model, as it wasn't set as a model of a component. hope that makes sense regards, Michael Leucht, Axel wrote: Hi,

Re: null lastPage at restoreAfterSerialization

2008-11-19 Thread Carlos Pita
The last one of the saga for now, I badly need to sleep. I've been sampling tomcat work dir every second: i=0; while [[ i -le 300 ]]; do echo $i; ls -lt /u01/tomcatWork/_ /tmp/work$i; sleep 1; i=$((i + 1)); done Then I greped a number of session ids corresponding to restoreAfterSerialization

Border invalidates browser preview

2008-11-19 Thread Ekengren
As a designer I like to edit the visual design of pages in Dreamweaver and use eclipse for dynamic behaviour. I have not found any way of doing this using Border: Original static page design: div id=outer div id=inner div id=content wicket:id=content pDynamic content goes here/p

Field value null on Submit after onUpdate()

2008-11-19 Thread kerim bey
Hi, Everyone! I wrot this Ajax Event Handler for a AutoCompleteTextField: @Override protected void onUpdate(AjaxRequestTarget target) { ChildObj co = (ChildObj)AutoCompleteTextField.findChoice(); if(null != co ) {

AW: Model never called

2008-11-19 Thread Leucht, Axel
Nope, doesn't work either. I've created a new class MySquare implementing IModel but the getObject() never get called either. I'm stumped. In populateItem I do: for (int col=0; col10; col++) { MySquare mySquare = new MySquare(); Link link = new Link(cols+col, mySquare) {

Model never called

2008-11-19 Thread Leucht, Axel
Hi, I do have a link class which should render different icons when clicked. So I decided to implement IModel and return different icons depending on the state of the object. But to my surprise getObject() never get called! Does anyone give me a clue where to look next or give me a hint as to

AjaxUpdate broken after showing feedback in ModalWindow

2008-11-19 Thread SantiagoA
Hi all, I have a ModalWindow with some radios in it. Everytime a Radio is selected, an AjaxEventBehavior(onclick) is called which updates a special RadioGroup in that page. Everything works fine, as long as there are no errors and no feedback is shown. If I produce an Error, in that case it´s a

RES: Model never called

2008-11-19 Thread Bruno Cesar Borges
I couldn't understand the part about the icon, but what I know is that 'getObject()' will *never* be called until you set the Square object into itself as the model: public Square() { setModel(this); } Regards, Bruno -Mensagem original- De: Leucht, Axel [mailto:[EMAIL PROTECTED]

Re: Help with load-balancing and fail-over in a Hibernate, Spring, Wicket 3-tier architecture

2008-11-19 Thread Johan Compagner
Can mysql really load balance like that? How does it work with transactions and so on? Normally you scale the webservers and have 1 big database server thats serves all of them. For wicket you just need tomcat with sticky sessions. Then you only have to take care of the hibernate caching on each

Noob question: Wicket and statefull/stateless

2008-11-19 Thread casper
Pardon the (possible stupid) question, I'm new to Wicket but is quite excited about the simplicity it seems to promote over JSF. What's the usual way of pushing context on to a website and have it passed along, such as to remain stateless? In JSF you would typically create a request scoped

LinkTree Add Children on Node Expansion

2008-11-19 Thread mehdi b
Hi, I want to use LinkTree and I want to add a node's children on its expansion in server side (like what we can do in Swing). I also want the junction link show the '+' icon on every node which its 'allowsChildren' is true, and on its expansion if no child provided, its junction link changes

Re: ajax busy indicator never stops in IE

2008-11-19 Thread Michael Sparer
I observed this behaviour too, but currently that issue doesn't have the highest priority for me. I just wanted to give you a hint: I know it was working in some wicket versions before 1.3.5 maybe it'll be a good start to have a look at the JS involved and compare it with different wicket

Re: Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Martin Tilma
Hello Anton, Have a look at: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Proxy%20Support maybe this helps? Regards, Martin Hi, http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html shows this configuration: VirtualHost ordering.company.com ProxyPass /

Re: resource mapping and dot in url

2008-11-19 Thread ak
The problem is with security procedures set forth by IIS admin folks. Please follow this link for more nicer explanation. http://forums.iis.net/p/1150133/1872812.aspx Hope I am making myself clear. Any ideas ? Thanks, Andy -- View this message in context:

Re: resource mapping and dot in url

2008-11-19 Thread Erik van Oosten
Andy, If I read this correctly, this is not a security precaution, but a don't shoot yourself in the foot switch. (Note the 'yourself'.) So if set up the right way, you don't need this at all. You certainly don't need it for a Wicket site. You'll have to do some heavy URL rewriting (or

Re: Model never called

2008-11-19 Thread Jeremy Thomerson
A model is only in a link as a convenience for YOU to use. It's not used by default - what about a link needs a model? Rather, it's for something like: new Link(deleteUser, modelContainingUser) { onClick() { userDAO.delete(getModelObject()); } } It's for YOU to use. For instance,

Re: resource mapping and dot in url

2008-11-19 Thread Jeremy Thomerson
That has only to do with how IIS looks up which script to execute, and nothing to do with security. It certainly won't matter on a Wicket site - the script lookup is actually the Wicket filter. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Nov 19, 2008 at 8:13 AM, ak [EMAIL

Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread Jeremy Thomerson
Tip: don't double post or some people will jump on you - it doesn't help you get a good answer. Anyway, for completely stateless page transitions, etc, and how to put data into the URL rather than session, you need to use BookmarkablePageLink, which will invoke the YourPage(PageParameters)

Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread Casper Bang
Ok. It sounds like the general philosophy behind Wicket is server side statefulness. I was kind of hoping this was not the case. Just out of curiosity, haven't anyone tried serializing and embedding state out on the webpage that could then be POST'ed between requests - a kind of hybrid model

Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread Jeremy Thomerson
No worries - you're right - Wicket is designed to manage state for you, so it's strength is not statelessness. But, you should really evaluate if you have the need for stateless before constraining yourself to it. As long as you use models correctly, you can support thousands of concurrent

Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread James Carman
He's not suggesting going stateless. He's suggesting an alternate way of maintaining state (by pushing it to the client in hidden fields). Tapestry supports (or supported) this as an option, but it made for some pretty gnarly URLs (all the state had to be appended to the end) for links. On

Re: Help with load-balancing and fail-over in a Hibernate, Spring, Wicket 3-tier architecture

2008-11-19 Thread Kent Larsson
Can mysql really load balance like that? How does it work with transactions and so on? I think so, but I don't know much about it as I haven't read the white paper yet. Here is a link: http://www.mysql.com/products/database/cluster/ Normally you scale the webservers and have 1 big database

Re: swarm wicket 1.4

2008-11-19 Thread Wayne Pope
Hi, we've not decided here whether we'll use SWARM for our security needs for our super duper new online app (!). I think next month will be taking a long look at this as see if it fits the needs etc. I was also looking at jsecurity but theres no documentation and Les has yet to fully integrate

Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread Johan Compagner
We tried that once, to have state transfered to the client, we didnt like it (where it did go to) and we dropped it. Cpu time and bandtwidth is way more expensive then memory. Wicket takes now memory on the server but the overhead it would generate by serializing and base64 every page into the

FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Hi! My FileUploadField worked fine before: dataForm.add(fileUploadField = new FileUploadField(COMPANY_LOGO)); After upgrading to 1.4 rc-1 (from 1.4-m1) the upload crashes. Am I doing something wrong or is there a bug in rc-1? Caused by: java.lang.IllegalStateException: Attempt to set

RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Bruno Cesar Borges
Yes, you need to set a Model object into FileUploadField. :-) Bruno -Mensagem original- De: Martin Makundi [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 19 de novembro de 2008 14:33 Para: users@wicket.apache.org Assunto: FileUploadField usage changed in 1.4 rc-1? Hi! My

Re: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
How? It accepts only FileUpload, which cannot be constructed as a dummy. Or can it? ** Martin 2008/11/19 Bruno Cesar Borges [EMAIL PROTECTED]: Yes, you need to set a Model object into FileUploadField. :-) Bruno -Mensagem original- De: Martin Makundi [mailto:[EMAIL PROTECTED]

Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread Casper Bang
Yes we've experienced issues with multiple browser windows as well as synchronization of shared session resources. Again, this has nothing to do with optimization but everything to do with craving a solid, simple programming model for frontend developers. /Casper Johan Compagner wrote: We

Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread Jeremy Thomerson
It might be good to try to ask specific questions about those issues that you've seen. You will get good help here on the list, and from my experience, you won't get a much better / simpler programming model than what Wicket gives you. I've used Tapestry, where everything was stuffed into the

Re: Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Anton Veretennikov
What is the problem you are having, we use mod_proxy in several environments with wicket / tomcat. Jeremy I have several apps on one hosting and several domains (aliases) that must be directly connected to corresponding Web App/. Configuration is this: ServerAlias wicket.ru ProxyPass

Re: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Where is such method? ** Martin 2008/11/19 Igor Vaynberg [EMAIL PROTECTED]: call hasexplicitmodel(false) -igor On Wed, Nov 19, 2008 at 8:43 AM, Martin Makundi [EMAIL PROTECTED] wrote: How? It accepts only FileUpload, which cannot be constructed as a dummy. Or can it? ** Martin

RE: Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Michael Laccetti
To get Apache 2.2 to proxy around Wicket, I have the following defined: IfDefine PROXY ProxyPass / http://localhost:8080/cware/ ProxyPassReverse/ http://localhost:8080/cware/ ProxyPassReverseCookieDomainlocalhost

Re: Reading an attribute that is set in a CSS file as a class

2008-11-19 Thread jwcarman
Well, I came up with a way to do it. I wrote a new class called TextTemplateResourceReference, which you can use along with a StyleSheetReference. Basically, you just pass it in a model for the variables to plugin. I don't know about that lastModifiedTime() implementation, but its overridable

Re: Reading an attribute that is set in a CSS file as a class

2008-11-19 Thread James Carman
And, in case anyone's interested, here's a new WIKI page for it: http://cwiki.apache.org/confluence/display/WICKET/Dynamically+Generate+a+CSS+Stylesheet On Wed, Nov 19, 2008 at 12:48 PM, jwcarman [EMAIL PROTECTED] wrote: Well, I came up with a way to do it. I wrote a new class called

Ajax Indicator Example?

2008-11-19 Thread Doug Leeper
I am having problems understanding Ajax Indicators. I have search high/low for a working example and have been unsuccessful. Is there any examples that shows what I need to do get an AjaxLink or DropDownChoice w/ an AjaxFormChoiceComponentUpdatingBehavior to utilize an indicator to show

Re: RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Erik van Oosten
Yeah, I run into the same thing. Just pass FileUploadField an empty model: new ModelFileUpload() Regards, Erik. Bruno Cesar Borges schreef: Yes, you need to set a Model object into FileUploadField. :-) Bruno -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/

Re: RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Strange quirk.. someone removed the preceding hack from within. Is there some flaw in the FileUploadFIeld design? ** Martin 2008/11/19 Erik van Oosten [EMAIL PROTECTED]: Yeah, I run into the same thing. Just pass FileUploadField an empty model: new ModelFileUpload() Regards, Erik.

Very custom URL mapping

2008-11-19 Thread Leszek Gawron
Hello I would like to achieve the following url space: / redirects to /form /form - home page with a from /form?something - followup of a home page's form /resources/*.css /resources/*.jpg - resources served from webapp root/resources /id - SomePage with id in PageParamters I know it would

Re: Invalid URLPatternSpec for Ajax Calls in Wicket Portlet

2008-11-19 Thread krisNog
The difference appears to be : vs %3A (the URL encoded : ) in urls. For example wicket seems to be creating test:test2 in Firefox and test%3Atest2 in IE. Glassfish doesn't like the : Thijs wrote: Do you know what is send differently to the server in FF2 vs IE (WireShark?) And where the

Re: null lastPage at restoreAfterSerialization

2008-11-19 Thread Matej Knopp
This really is weird. I added couple of warnings and null check to 1.4 trunk. I wonder if that helps it though. -Matej On Wed, Nov 19, 2008 at 12:44 PM, Carlos Pita [EMAIL PROTECTED] wrote: The last one of the saga for now, I badly need to sleep. I've been sampling tomcat work dir every

Validation Question

2008-11-19 Thread vishy_sb
Hi all, I am trying to get some validations to work using the FeedbackPanel. My form has a Textfield and I am trying to use a NumberValidator to check if it is in a given range. The code that I have used is : TextField pgLongLimit = new TextField(pgLongLimit, new PropertyModel(

Re: Validation Question

2008-11-19 Thread jWeekend
Vishy, Add IConverter=Invalid Input to a properties file in, for example, MyApplication.properties for your whole application or in MyPage.properties if you want this custom message on a particular page only ... etc, in the same package as the class with the same name. Regards - Cemal

Re: null lastPage at restoreAfterSerialization

2008-11-19 Thread Carlos Pita
Hi Matej, I'm browsing your changes. Please notice that according to my own debugging it's lastPage itself that is null and not only the result of prepareForSerialization. So I don't think the warning PageStore prepared non-null page as null for serialization will ever be reached. Anyway, I will

Re: Compoundpropertymodel with shadow map?

2008-11-19 Thread Nino Saturnino Martinez Vazquez Wael
BTW this is a flawed approch.. We need something a little more intelligent.. I'll return on the subject.. Nino Saturnino Martinez Vazquez Wael wrote: heres the raw and completely untested version of it. probably with a whole bunch of issues...: package zeuzgroup.web.model; import

Re: Wicket 1.3.5 behind a front-end proxy

2008-11-19 Thread Anton Veretennikov
To get Apache 2.2 to proxy around Wicket, I have the following defined: IfDefine PROXY ProxyPass / http://localhost:8080/cware/ ProxyPassReverse/ http://localhost:8080/cware/ ProxyPassReverseCookieDomainlocalhost