Is it possible to have an AjaxLink to pass parameters as BookmarkableLinkPage class does?

2010-03-23 Thread Fernando Wermus
Hi all, I can pass a parameter in a BookmarkablePage to the page called. But, I think I cannot do the same with a page and an AjaxLink. *Use case to solve* There is a Link instance that reference to a page that renders an entity. This entity is loaded getting the entity id from the page

Re: what's an 'ajax-only' page (wrt HybridUrlCodingStrategy)?

2010-03-23 Thread Igor Vaynberg
every page mounted with hybrid should immediately redirect to a .x suffix this fixes the general problem with ajax requests not changing the url, so if user presses refresh button in the browser the ajax changes are lost. suppose you land on /user/profile/15 url which is bookmarkable and you

Re: (Un-)deployment woes on Tomcat (and JBoss)

2010-03-23 Thread Igor Vaynberg
I can kind of see what is going on, the YourApplication class is loaded using a different classloader then the wicket jar. and tomcat cleans it up. fair enough. but, YourApplication class extends Application which is inside the jar, so tomcat should not be cleaning it up...makes no sense. How can

Re: can intermittent 'illegal relative path' be cause by something besides broken session affinity?

2010-03-23 Thread Igor Vaynberg
On Sat, Mar 20, 2010 at 7:19 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: I may have found something - but first another question: under which conditions would an ajax wicket:interface request omit a 'version'? (I see request processor then assumes that the version is 0). correct,

throw new PageExpiredException(Request cannot be processed. The target page does not exist anymore.);

2010-03-23 Thread Fernando Wermus
Hi all, I am getting this message with a page that gets some paremeters in its constructor, some BookmarkablePageLink and an AjaxLink. When I pressed in the AjaxLink, I got this exception. I don't understand the reason why is thrown. What I can guess is that there isn't any session to keep

Re: Is it possible to have an AjaxLink to pass parameters as BookmarkableLinkPage class does?

2010-03-23 Thread Ernesto Reinaldo Barreiro
Why don´t you simply: 1-Put your entity related logic on a Panel. 2-On bookmarcable page scenario read details regarding the entity from page parameter and use them to create panel in 1. 3-On AJAX scenario just use the link to create the panel in 1 based on whatever information is contained on

Simple way to use button as link?

2010-03-23 Thread Sergey Olefir
Hi, for user interface reasons I want to use button on an otherwise read-only page that would simply open another page (e.g. act just like a link would). What would be the simplest way to achieve that (including i18n)? I'm currently using form like this: form wicket:id=signButtonForm button

Re: Simple way to use button as link?

2010-03-23 Thread James Carman
Try button wicket:id=myLinkwicket:message key=i18nkey //button. Then, just add any type of link object to your page with id myLink. You can attach a link to darn-near anything and it will work. On Tue, Mar 23, 2010 at 5:09 AM, Sergey Olefir solf.li...@gmail.com wrote: Hi, for user interface

Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-23 Thread Peter Diefenthaeler
Hi Wicket Folks, I have a little problem using a WebMarkupContainer with Ajax refresh in Deployment Mode. The page shows a table like the sorting data view example in the Wicket Examples. The table resides in a div section with a y-Scrollbar and a ButtonPagingNavigator. My IE7 doesn't show the

RE: Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-23 Thread Stefan Lindner
MY HTML-Validator stumbles upon the line td class=GenColValuespan wicket:id=value[Yes]/ span]/td Ist the space betwenn / and span. Maybe Wicket stumbles upon this? Stefan -Ursprüngliche Nachricht- Von: Peter Diefenthaeler [mailto:pdief...@csc.com] Gesendet:

Re: Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-23 Thread Ilja Pavkovic
Hi, this looks wrong: / span] use /span Best Regards, Ilja Pavkovic Am Dienstag, 23. März 2010 10:28:41 schrieb Peter Diefenthaeler: Hi Wicket Folks, I have a little problem using a WebMarkupContainer with Ajax refresh in Deployment Mode. The page shows a table like the sorting

Re: Wicketstuff versioning

2010-03-23 Thread Boris Goldowsky
I may be wrong, but wouldn't it make sense to delay creating a 1.4.x branch until/unless someone actually wants to commit some code that would be different for 1.4.x and 1.5-SNAPSHOT? Once we branch, we have to start committing every bug fix to two different versions, right? If we're lucky,

Re: Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-23 Thread PDiefent
The mail import did put the wrong tag in this message. In the original code the span tag is well formed. By the way, this will lead to an error in both modes - development and deployment mode ... Ilja Pavkovic-3 wrote: Hi, this looks wrong: / span] use Best Regards, Ilja

Re: Wicketstuff versioning

2010-03-23 Thread Major Péter
2010-03-23 11:24 keltezéssel, Boris Goldowsky írta: I may be wrong, but wouldn't it make sense to delay creating a 1.4.x branch until/unless someone actually wants to commit some code that would be different for 1.4.x and 1.5-SNAPSHOT? Once we branch, we have to start committing every bug fix

Re: Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-23 Thread PDiefent
In development mode the browser shows a WICKET AJAX DEBUG Link after rendering the page. Maybe this causes the browser to show the contents of the table. If I hit the new button in my window, a modal window appears and the table contents also show up ... -- View this message in context:

RE: Wicketstuff versioning

2010-03-23 Thread Stefan Lindner
Should we really start with a big bang? Support wicketstuff STABLE core releases for Wicket 1.4 AND 1.5RCx? Is a RC for Wicket 1.5 in sight? Or does this mean everything in wicketstuff will stay as it is for a long time? Why not start with a smaller step and create a core wicketstuff release for

Re: Wicketstuff versioning

2010-03-23 Thread nino martinez wael
+1 for me on upgrading wicketstuff core to 1.4.7. On another topic making sure that an upgrade actually works are another thing. Code might compile but there could be runtime problems.. I discussed looong time ago a possibility for making tests for the javascript parts of the code aswell, with

Re: Wicketstuff versioning

2010-03-23 Thread Nicolai Guba
1.5 rc only makes sense if it is not compatible with 1.4 any longer. Otherwise 1.4 makes better sense to me ;) Sent from my iPhone On 23 Mar 2010, at 10:45, Stefan Lindner lind...@visionet.de wrote: Should we really start with a big bang? Support wicketstuff STABLE core releases for

Re: throw new PageExpiredException(Request cannot be processed. The target page does not exist anymore.);

2010-03-23 Thread Pedro Santos
Hi, give you page an constructor that your application IPageFactory know how to create. For instance, use the PageParameters. If your request cycle don't find your page in the session page map, and don't know how to create it, you got the mentioned exception. On Tue, Mar 23, 2010 at 3:44 AM,

Re: Wicketstuff versioning

2010-03-23 Thread Major Péter
Tests are good, but this could be also arranged with voting, or not? So what would be the best? Modify the trunk to use 1.4.7, and release the current state as wicketstuff 1.4.1 (because it's using 1.4.1 now) or modify the trunk first for 1.4.7 fix the incompatibilities if there are, and then

Re: Wicketstuff versioning

2010-03-23 Thread nino martinez wael
Id vote for this one: modify the trunk first for 1.4.7 fix the incompatibilities if there are, and then release it as 1.4.7 and make trunk to follow 1.4-SNAPSHOT? And if you like sonar, it's opensource and requires almost no setup it has a fluent plugin with maven. For example theres a pretty

Re: throw new PageExpiredException(Request cannot be processed. The target page does not exist anymore.);

2010-03-23 Thread Fernando Wermus
Pedro, I think I got my problem. I have a AjaxLink, BookmarkablePageLink, and the page. I would like to have a stateful BookmarkablePageLink. This is just for not repeating code or creating new pages. Is it possible? It seems not to be. thanks in advance On Tue, Mar 23, 2010 at 8:45 AM,

Re: Wicketstuff versioning

2010-03-23 Thread Michael O'Cleirigh
Hello, I'd like the trunk to follow the latest wicket release since when wicketstuff-core is released it is meant to be paired with the current wicket release. i.e. not 1.4-SNAPSHOT but 1.4.7, 1.4.8, 1.4.9 and eventually into 1.5RC1, etc. Envisioned Process for 1.4.8 Wicket Release: 1.

Re: Wicketstuff versioning

2010-03-23 Thread Boris Goldowsky
I think this sounds good, and meshes with the comments several other people have made. So I think we're converging on a general agreement for a process. Documenting it on the wiki would be great. If there are no objections, I can take the first step in this process, which would seem to be

Re: Wicketstuff versioning

2010-03-23 Thread nino martinez wael
Usual process for wicket are to let trunk follow current release, when switching major build number ie from 1.3 - 1.4 then make a branch for the old version I suggest we do the same..? And yeah just upgrade the dependencies :) Unless someone disagree. -N 2010/3/23 Boris Goldowsky

Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
Hi Is there any way to inject a DAO into Wicket without Spring ? ex : public interface PersonDao { some methods... } public class PersonDaoImpl implements PersonDao , Serializable { @PersistenceContext(unitName = data, type = PersistenceContextType.TRANSACTION) EntityManager entityManager;

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread Igor Vaynberg
something has to do the injection, if not spring you can try salve.googlecode.com or aspectj, etc -igor On Tue, Mar 23, 2010 at 8:20 AM, smallufo small...@gmail.com wrote: Hi Is there any way to inject a DAO into Wicket without Spring ? ex : public interface PersonDao { some methods... }

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
Is it possible to 'not' introduce any 3rd library / annotation to enable this feature ? Will a custom IComponentInstantiationListener be able to do this ? 2010/3/23 Igor Vaynberg igor.vaynb...@gmail.com something has to do the injection, if not spring you can try salve.googlecode.com or

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread Igor Vaynberg
sure, see wicket-ioc, you can write whatever lookup code you need yourself then. -igor On Tue, Mar 23, 2010 at 8:52 AM, smallufo small...@gmail.com wrote: Is it possible to 'not' introduce any 3rd library / annotation to enable this feature ? Will a custom IComponentInstantiationListener be

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread Major Péter
I think yes, Wicket is already depending on cglib, so you could create something like this: http://fisheye6.atlassian.com/browse/wicket/branches/wicket-1.4.x/wicket-spring/src/main/java/org/apache/wicket/spring/SpringBeanLocator.java?r=HEAD or for non-spring code check out the wicketstuff

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
I am just curious : I am trying Resin 4.0.4 , which natively supports JSR 330's @javax.inject.Inject . And I am able to inject the Dao to one Servlet without any problem : public class HelloServlet extends HttpServlet { @Inject private PersonDao personDao; // it will automatically create

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread Major Péter
You don't need Spring for that, create your own ComponentInjector which will do the lookups for you and inject the field. Just like here:

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread Igor Vaynberg
jsr 330 only defines the @inject annot the spect that defines injection, servlet 3.0? only supports injection of j2ee artifacts such as servlets and filters -igor On Tue, Mar 23, 2010 at 9:08 AM, smallufo small...@gmail.com wrote: I am just curious : I am trying  Resin 4.0.4 , which natively

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
Thank you , I tried it , and it can successfully inject EntityManagerFactory into a WebPage , But it seems unable to inject EntityManager , is it because of some thread-safe limitation here ? 2010/3/23 Major Péter majorpe...@sch.bme.hu I think yes, Wicket is already depending on cglib, so you

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
2010/3/24 smallufo small...@gmail.com Thank you , I tried it , and it can successfully inject EntityManagerFactory into a WebPage , But it seems unable to inject EntityManager , is it because of some thread-safe limitation here ? Sorry , I meant wicket-contrib-javaee here. 2010/3/23

Re: what's an 'ajax-only' page (wrt HybridUrlCodingStrategy)?

2010-03-23 Thread Nikita Tovstoles
Appreciate your reply. If the redirect to .version is *always* supposed to happen what would be some reason for that failing to happen? For example (i am reaching here) if there are problems serializing the page, is the behavior to fall back to plain bookmarkable url (and not redirect)? Here's

Export wicket rendered page to pdf

2010-03-23 Thread Rodolfo Cartas
Hi all! Is there a way to export a page rendered in wicket to a pdf file within the application? Best regards, Rodolfo -- Rodolfo Cartas rodolfocar...@gmail.com http://www.flickr.com/photos/rodolfocartas http://www.facebook.com/rodolfo.cartas

Re: Export wicket rendered page to pdf

2010-03-23 Thread Major Péter
I guess with iText, you could do that. In theory you could give an HTML output to it, to export it as a PDF. Regards, Peter 2010-03-23 19:08 keltezéssel, Rodolfo Cartas írta: Hi all! Is there a way to export a page rendered in wicket to a pdf file within the application? Best regards,

Re: Wicketstuff versioning

2010-03-23 Thread Major Péter
Hi, +1 on creating wicketstuff-core jira to coordinate release process. Here it is: http://wicketstuff.org/jira/secure/Dashboard.jspa +1 on creating a wicketstuff-core/wicketstuff-test module to share testing code between core projects. +1 on running integration tests to find run-time

Re: Datatable, style on ascending/descending

2010-03-23 Thread TahitianGabriel
Yes you can with something like that in your CSS : tr.headers th.wicket_orderUp a { background : url(../images/arrow_up.png) no-repeat right; } tr.headers th.wicket_orderDown a { background : url(../images/arrow_down.png) no-repeat right; } tr.headers th.wicket_orderNone a {

RequestCycle infinite loop

2010-03-23 Thread Josh Chappelle
Hi, I have a BasePanel that has an html table in it. The subpanels all fill in the table rows. When I try to view the page I get the following error message: java.lang.IllegalStateException: Request processing executed 100 steps, which means it is probably in an infinite loop.

Re: Datatable, style on ascending/descending

2010-03-23 Thread loicd
Thanks a lot! TahitianGabriel wrote: Yes you can with something like that in your CSS : tr.headers th.wicket_orderUp a { background : url(../images/arrow_up.png) no-repeat right; } tr.headers th.wicket_orderDown a { background : url(../images/arrow_down.png) no-repeat right;

Re: Datatable, style on ascending/descending

2010-03-23 Thread TahitianGabriel
You are welcome. You can also add a padding if you don't want the text to overlap the image (it's nicer!) /** image on the right */ tr.headers th.wicket_orderDown a { padding-right: 25px; background-image: url(../images/btn_arrow_down.png); background-position: right;

Re: Datatable, style on ascending/descending

2010-03-23 Thread loicd
OK I'll try this! TahitianGabriel wrote: You are welcome. You can also add a padding if you don't want the text to overlap the image (it's nicer!) /** image on the right */ tr.headers th.wicket_orderDown a { padding-right: 25px; background-image:

Required Border...

2010-03-23 Thread James Carman
Does anyone have a required border class (something that automatically puts a little red * next to a required field)? I have one that I'm using, but it doesn't work under ajax! When the component gets updated via ajax, it keeps appending little red *s to the markup. Don't get me wrong, it's

Re: Required Border...

2010-03-23 Thread Fernando Wermus
see london wicket. I dont know if it is an *, but looks nice. On Tue, Mar 23, 2010 at 5:52 PM, James Carman ja...@carmanconsulting.comwrote: Does anyone have a required border class (something that automatically puts a little red * next to a required field)? I have one that I'm using, but it

Re: Required Border...

2010-03-23 Thread James Carman
I'm using that exact code. It doesn't work for my ajax situation. On Tue, Mar 23, 2010 at 4:59 PM, Fernando Wermus fernando.wer...@gmail.com wrote: see london wicket. I dont know if it is an *, but looks nice. On Tue, Mar 23, 2010 at 5:52 PM, James Carman ja...@carmanconsulting.comwrote:

Re: Required Border...

2010-03-23 Thread James Carman
Here's a previous thread I just found that deals with my issue: http://www.mail-archive.com/users@wicket.apache.org/msg18324.html However, their solution doesn't fix my problem entirely. In my situation, my component that's required isn't visible upon the first render. I've got an onblur event

Re:DEPLOYMENT PROBLEMS

2010-03-23 Thread victorTrapiello
Hello guys, I have finished my wicket application, with hibernate spring and postgresql for my database, I´m wodering wher I can deploy my appliucation, do you know any cheap hosting that offers me a good performance with java ie wicket hibernate, and also postgresql¿? Thank you very much guys

Re: Required Border...

2010-03-23 Thread TahitianGabriel
How about FormComponentFeedbackIndicator and FormComponentFeedbackBorder? Doesn't they fit your need? I think they worked with ajax. Gabriel. jwcarman wrote: Does anyone have a required border class (something that automatically puts a little red * next to a required field)? --

Re: what's an 'ajax-only' page (wrt HybridUrlCodingStrategy)?

2010-03-23 Thread Igor Vaynberg
why not step through the debugger and see, or create a quickstart and attach it to a jira issue -igor On Tue, Mar 23, 2010 at 10:37 AM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: Appreciate your reply. If the redirect to .version is *always* supposed to happen what would be some

Dynamically adding input fields to a form

2010-03-23 Thread William Chu
Hi, Is it possible to dynamically add inputs (Texfields) to a form in Wicket? I am trying to make a form where a user can add an unlimited number of inputs to the form. For example, input type=text value=../ How can I loop through the inputs that have been dynamically added to the form once it

Re: Dynamically adding input fields to a form

2010-03-23 Thread Major Péter
Hi, If you only need textfields, then the attached quickstart to this issue: https://issues.apache.org/jira/browse/WICKET-2432 should do it. ;) Best Regards, Peter 2010-03-23 23:40 keltezéssel, William Chu írta: Hi, Is it possible to dynamically add inputs (Texfields) to a form in Wicket?

Re: Dynamically adding input fields to a form

2010-03-23 Thread William Chu
Hello, Thanks for the help, but I'm still unclear on how to process the input in the onSubmit() method. I'm using a StatelessForm. The user can dynamically add input text fields (input type=text namefoo1 value=.../) via javascript. When I process the form on the server side, how do I loop

Re: Dynamically adding input fields to a form

2010-03-23 Thread Major Péter
Hi, Use the builtin AJAX support for that, or if you really want to use custom Javascript for form generation, then wait for a smarter guy, to help you out. ;) Regards, Peter 2010-03-24 00:28 keltezéssel, William Chu írta: Hello, Thanks for the help, but I'm still unclear on how to process

Multiple Application Servers

2010-03-23 Thread William Chu
Hi, I want to scale my site and run my site on multiple servers. I'm using wicket and I'm concerned if it will work. Since wicket relies on the http session, I'm wondering if I'm able to do so. I'm using StatelessForm for my forms, but is this enough? What are good wicket practices for scaling to

Reload a page and component repaint

2010-03-23 Thread David Chang
I am new in Wicket and so please bear with me if this question is obvious. Suppose I am viewing a Wicket page in FF. At the moment, the link is: http://localhost:8080/f/?wicket:interface=:12 If I click the Reload button of FF, isn't Wicket supposed to call EACH component to repaint itself

Re: Reload a page and component repaint

2010-03-23 Thread Igor Vaynberg
On Tue, Mar 23, 2010 at 7:13 PM, David Chang david_q_zh...@yahoo.com wrote: I am new in Wicket and so please bear with me if this question is obvious. Suppose I am viewing a Wicket page in FF. At the moment, the link is: http://localhost:8080/f/?wicket:interface=:12 If I click the

Re: Reload a page and component repaint

2010-03-23 Thread David Chang
it does, but maybe the model value is unchanged If the model value is unchanged, the component will repaint itself or not? Best, David --- On Tue, 3/23/10, Igor Vaynberg igor.vaynb...@gmail.com wrote: From: Igor Vaynberg igor.vaynb...@gmail.com Subject: Re: Reload a page and component

Invoking Component#updateModel

2010-03-23 Thread Mauro Ciancio
Hello everyone, I'm coding a form validator that validates some condition in a form. This validator needs the value from two textfields, but the model's value isn't set when the validators run. Is a bad practice calling Component#updateModel to get the updated value from the model? I could

Re: Reload a page and component repaint

2010-03-23 Thread Igor Vaynberg
it will -igor On Tue, Mar 23, 2010 at 7:29 PM, David Chang david_q_zh...@yahoo.com wrote: it does, but maybe the model value is unchanged If the model value is unchanged, the component will repaint itself or not? Best, David --- On Tue, 3/23/10, Igor Vaynberg igor.vaynb...@gmail.com

Re: Invoking Component#updateModel

2010-03-23 Thread Igor Vaynberg
see iformcomponentvalidator, or use component.getconvertedvalue() -igor On Tue, Mar 23, 2010 at 7:45 PM, Mauro Ciancio maurocian...@gmail.com wrote: Hello everyone,  I'm coding a form validator that validates some condition in a form. This validator needs the value from two textfields, but

Re: Invoking Component#updateModel

2010-03-23 Thread Mauro Ciancio
Igor: On Tue, Mar 23, 2010 at 11:59 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: see iformcomponentvalidator, or use component.getconvertedvalue() Thanks for the advice. But my textfield's model is a chained model. I mean, I construct the textfield like this: DateTextField dateTextField

Re: Invoking Component#updateModel

2010-03-23 Thread Igor Vaynberg
you are forcing an update without validation..up to you. -igor On Tue, Mar 23, 2010 at 8:15 PM, Mauro Ciancio maurocian...@gmail.com wrote: Igor: On Tue, Mar 23, 2010 at 11:59 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: see iformcomponentvalidator, or use component.getconvertedvalue()

Re: Invoking Component#updateModel

2010-03-23 Thread Mauro Ciancio
thanks! On Wed, Mar 24, 2010 at 1:30 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you are forcing an update without validation..up to you. -igor On Tue, Mar 23, 2010 at 8:15 PM, Mauro Ciancio maurocian...@gmail.com wrote: Igor: On Tue, Mar 23, 2010 at 11:59 PM, Igor Vaynberg

Re: Multiple Application Servers

2010-03-23 Thread Jeremy Thomerson
First place to look is mailing list archives - there are quite a few posts about this. Many are using Tomcat session replication with success. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 23, 2010 at 7:15 PM, William Chu will...@gmail.com wrote: Hi, I want to scale my