Re: E-commerce site built on Wicket

2011-07-21 Thread Arjun Dhar
Looks pretty nice. Did you guys use any CMS (say wicket based like BRIX) .. or simply coded it straight up? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context:

Forward to Bookmarkable

2011-07-21 Thread Lurtz Nazgul
Hi; How can i forward user to a BookmarkablePage. I don't need redirection. I don't want user to see url. Thanks.

Re: Forward to Bookmarkable

2011-07-21 Thread Lurtz Nazgul
I also tried WebRequestCycle cycle = (WebRequestCycle) RequestCycle.get(); ServletRequest httpRequest = cycle.getWebRequest().getHttpServletRequest(); ServletResponse httpResponse = cycle.getWebResponse().getHttpServletResponse(); ServletContext

Re: Forward to Bookmarkable

2011-07-21 Thread Hans Lesmeister
You can setResponePage or throw one of the RestartResponse*-Exceptions Regards Hans Am 21.07.11 11:19 schrieb Lurtz Nazgul unter lu...@ymail.com: I also tried WebRequestCycle cycle = (WebRequestCycle) RequestCycle.get(); ServletRequest httpRequest =

Re: Bigger sites running on wicket?

2011-07-21 Thread dryajov
Some can better elaborate on this, but I know for a fact that this - http://www.bodybuilding.com/fun/bbmaintrain.htm and http://blog.bodybuilding.com/ are both wicket. I doubt that there are any traces of wicket stuff on those pages thought. Our group in charge of the SuperSite

Re: Bigger sites running on wicket?

2011-07-21 Thread Martin Grigorov
Just for the statistics - Wicket 1.4 or 1.5 ? On Thu, Jul 21, 2011 at 1:09 AM, dryajov drya...@gmail.com wrote: Some can better elaborate on this, but I know for a fact that this - http://www.bodybuilding.com/fun/bbmaintrain.htm and http://blog.bodybuilding.com/ are both wicket. I doubt that

Re: Bigger sites running on wicket?

2011-07-21 Thread Marco
http://www.endomondo.com uses Wicket with an estimated 1 million registered users. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bigger-sites-running-on-wicket-tp2197500p3683342.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Bigger sites running on wicket?

2011-07-21 Thread Martin Grigorov
You better add your sites to https://cwiki.apache.org/WICKET/websites-based-on-wicket.html so next time someone ask Who is using Wicket? to see these big sites. On Thu, Jul 21, 2011 at 1:37 PM, Marco ma...@mkconsultancy.nl wrote: http://www.endomondo.com uses Wicket with an estimated 1 million

Re: Forward to Bookmarkable

2011-07-21 Thread Lurtz Nazgul
Hi Hans; Thanks for your answer But still url can be seen by the user. I need to forward in order to hide the url from user. Any idea ? Thanks. From: Hans Lesmeister hans.lesmeis...@lessy-software.de To: Wicket Users users@wicket.apache.org Sent: Thu,

dynamic DataTable

2011-07-21 Thread Lurtz Nazgul
Hi, How can we create a dynamic DataTable which has dynamic Columns? I want to create a page that has following components: - A TextArea for SQL Statement input (User will type any SELECT Sql here) - A Submit button to run the SQL - A Table to view the SQL Resultset. Since TextArea can contain

RE: dynamic DataTable

2011-07-21 Thread Wilhelmsen Tor Iver
Since TextArea can contain any SELECT statement, Column names, count can change every time. So I need a dynamic table that is compatible to view any SELECT Statement result. Since you appear to have no need for performing updates or inserts, try ditching the DataTable in favour of using

Re: dynamic DataTable

2011-07-21 Thread Lurtz Nazgul
Any simple way ? Thanks. From: Wilhelmsen Tor Iver toriv...@arrive.no To: users@wicket.apache.org users@wicket.apache.org Sent: Thu, July 21, 2011 3:10:16 PM Subject: RE: dynamic DataTable Since TextArea can contain any SELECT statement, Column names, count

Re: Forward to Bookmarkable

2011-07-21 Thread Clint Checketts
What do you mean by 'hide the url'? Do you mean obfuscate the URL? BybridUrlEncodingStrategy will let you display a bookmarkable URL that is stateful (so it isn't the actual bookmarkable page) For example: /mayapp/welcome.0 Note the .0 on the end. If the user's session expires, I believe it

RE: E-commerce site built on Wicket

2011-07-21 Thread Jeffrey Schneller
It is using Daisy as a CMS but mostly just to store content in a JCR for easy access to place on the pages where needed. It also allows the business users to modify content on the fly. The site itself was coded straight up. -Original Message- From: Arjun Dhar [mailto:dhar...@yahoo.com]

Re: dynamic DataTable

2011-07-21 Thread davut uysal
Yeah, I agree there must be some easier way. I hope the Wicket gurus and fanboys here can show the simple way and save the Wicket's title and pride - easiest framework ever :) I remember, even the Struts 1 framework had a component named DisplayTag that can be easily bind to dynamic datasets or

Re: dynamic DataTable

2011-07-21 Thread Martin Grigorov
Am I that old or .NET is younger than 10 years ? First tell me what is so complex with wicket-extensions DataTable and I'll tell you how to do it ;-) You *need* to extract the DB meta data if you want the dynamics. Wicket is web framework, not common data extraction framework. Once you have the

Strange encoding problem

2011-07-21 Thread Mike Mander
Hi, i have a strange url encoding problem. I load some names from db (One of them is Schlümpfe). Then i add a BookmarkablePageLink to my OverviewPage. Markup is encoded as UTF-8. If i check markup links href = Overview.html/name/Schlümpfe. If i click the link browser url is

Re: dynamic DataTable

2011-07-21 Thread Josh Kamau
wickets AjaxFallbackDefaultDatatable is my favourite component. Josh On 21 Jul 2011 17:23, Martin Grigorov mgrigo...@apache.org wrote: Am I that old or .NET is younger than 10 years ? First tell me what is so complex with wicket-extensions DataTable and I'll tell you how to do it ;-) You

Re: dynamic DataTable

2011-07-21 Thread davut uysal
OK. I am glad someone is trying to understand my problem :) So, what is complex about Wicket and Datatable to show any SQL results in a HTML table format. (Just as you may know Oracle 's iSQL-Plus which you just write SQL, then click on Run command and then see the results in a HTML table) 1)

Re: dynamic DataTable

2011-07-21 Thread Andrew Fielden
Hi again Davut :) Are you asking this question in every possible forum in the hope of getting a different answer? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dynamic-DataTable-tp3683514p3683930.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Strange encoding problem

2011-07-21 Thread Mike Mander
Am 21.07.2011 16:24, schrieb Mike Mander: Hi, i have a strange url encoding problem. I load some names from db (One of them is Schlümpfe). Then i add a BookmarkablePageLink to my OverviewPage. Markup is encoded as UTF-8. If i check markup links href = Overview.html/name/Schlümpfe. If i click

Re: dynamic DataTable

2011-07-21 Thread davut uysal
Yes Andrew, until I find a real simple solution :) I am currently migrating a Struts project to Wicket. And this is the only issue I have. I hate doing things in a long way, there must be a simple solution. Btw: nice to see you here too after stackoverflow and linkedin :) On Jul 21, 2011 6:05

Re: Bigger sites running on wicket?

2011-07-21 Thread dryajov
1.4 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bigger-sites-running-on-wicket-tp2197500p3684371.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Javascript applications

2011-07-21 Thread Niranjan Rao
Hi there, We are evaluating libraries like ExtJs or SmartClient to build the application. This sort of deviates standard wicket paradigm as most of the responses will be in json or xml format and will not need .html file associated with it. Personally I don't like idea of such kind of

DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
We have a need to update a DateTimeField via Ajax, but its fields are private, and they don't have setOutputMarkupId() set on them. The result is an exception upon Ajax update. Is there any solution other than cloning and owning DateTimeField? We are using Wicket 1.4.17 (and we can't upgrade to

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
cant update the DateTimeField itself? -igor On Thu, Jul 21, 2011 at 10:57 AM, Julian Sinai jsi...@gmail.com wrote: We have a need to update a DateTimeField via Ajax, but its fields are private, and they don't have setOutputMarkupId() set on them. The result is an exception upon Ajax update.

Re: dynamic DataTable

2011-07-21 Thread Andrew Fielden
I see your problem Davut, but I really don't think Wicket can solve it in the way you want it to. As Martin said, you need an entity to populate the models used by the various Wicket components. Could you somehow parse the SQL statement to extract the table name, and find its meta data? -- View

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
Igor, We do update the DateTimeField itself, and this is what we see: SEVERE: cannot update component that does not have setOutputMarkupId property set to true. Component: [MarkupContainer [Component id = hours]] java.lang.IllegalArgumentException: cannot update component that does not have

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
what is hours ? -igor On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai jsi...@gmail.com wrote: Igor, We do update  the DateTimeField itself, and this is what we see: SEVERE: cannot update component that does not have setOutputMarkupId property set to true. Component: [MarkupContainer

A safer way to build PropertyModels

2011-07-21 Thread Carl-Eric Menzel
After seeing the LambdaJ-based model idea at https://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-LambdaJ I thought I'd try and implement something like that in a ready-to-use fashion, and simplify it a little. The result is here:

Re: Styling form components onError

2011-07-21 Thread Dan Retzlaff
Awesome, works beautifully! This solves one of the biggest Wicket headaches for our form-heavy application. Components no longer have to worry about what to render when forms have errors, or how to clear those errors on success. It's even more magical than the automatic AJAX feedback rendering. :)

Re: Styling form components onError

2011-07-21 Thread Igor Vaynberg
your attachment didnt make it through :( maybe put it on our wiki. thanks, -igor On Thu, Jul 21, 2011 at 12:00 PM, Dan Retzlaff dretzl...@gmail.com wrote: Awesome, works beautifully! This solves one of the biggest Wicket headaches for our form-heavy application. Components no longer have to

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
It is the hours component of the DateTimeField. From DateTimeField.html: input type=text wicket:id=hours size=2 /nbsp;: Julian On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: what is hours ? -igor On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
what is adding that to the target? -igor On Thu, Jul 21, 2011 at 12:07 PM, Julian Sinai jsi...@gmail.com wrote: It is the hours component of the DateTimeField. From DateTimeField.html:     input type=text wicket:id=hours size=2 /nbsp;: Julian On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
Nothing is adding it, we add the DateTimeField itself to the target. Julian On Thu, Jul 21, 2011 at 12:08 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: what is adding that to the target? -igor On Thu, Jul 21, 2011 at 12:07 PM, Julian Sinai jsi...@gmail.com wrote: It is the hours

Re: A safer way to build PropertyModels

2011-07-21 Thread Matt Brictson
This looks fantastic. Can you think of an elegant way to use similar syntactic sugar to create LoadableDetachableModels as well? For example: // This would return a PropertyModel model(from(myBean).getChild().getName()); // This a LoadableDetachableModel

Re: Javascript applications

2011-07-21 Thread Martin Grigorov
Hi, I think something like Jersey, Resteasy will be better for your needs. On Thu, Jul 21, 2011 at 8:25 PM, Niranjan Rao nhr...@gmail.com wrote: Hi there, We are evaluating libraries like ExtJs or SmartClient to build the application. This sort of deviates standard wicket paradigm as most of

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Martin Grigorov
Show some code. On Thu, Jul 21, 2011 at 10:09 PM, Julian Sinai jsi...@gmail.com wrote: Nothing is adding it, we add the DateTimeField itself to the target. Julian On Thu, Jul 21, 2011 at 12:08 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: what is adding that to the target? -igor On

Re: A safer way to build PropertyModels

2011-07-21 Thread Martin Grigorov
Matt, You need first class functions. All cool JVM langs support them. Just peek your favorite. On Thu, Jul 21, 2011 at 10:17 PM, Matt Brictson m...@55minutes.com wrote: This looks fantastic. Can you think of an elegant way to use similar syntactic sugar to create LoadableDetachableModels as

Re: Styling form components onError

2011-07-21 Thread Dan Retzlaff
No problem, it's the least I can do. :) https://cwiki.apache.org/confluence/display/WICKET/Automatic+styling+of+form+errors On Thu, Jul 21, 2011 at 12:02 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: your attachment didnt make it through :( maybe put it on our wiki. thanks, -igor On

Re: A safer way to build PropertyModels

2011-07-21 Thread Iain Reddick
I LOLed at this: Unfortunately, most of us are stuck in Java world where proper functions are still considered science fiction like flying cars and World Peace. - Original Message - From: Carl-Eric Menzel cmen...@wicketbuch.de To: users@wicket.apache.org Sent: Thursday, 21 July, 2011

Re: A safer way to build PropertyModels

2011-07-21 Thread Carl-Eric Menzel
On Thu, 21 Jul 2011 22:33:47 +0300 Martin Grigorov mgrigo...@apache.org wrote: Matt, You need first class functions. All cool JVM langs support them. Just peek your favorite. That is indeed true. However, just for the fun of it, I'm going to try and implement at least a limited version of

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
Hi Martin Thanks for looking at this. It's a bit complicated because we've built a form framework around Wicket, but here goes: In the page: HtFormPanel.DateFormField startField = new HtFormPanel.DateFormField(startField, new StringResourceModel(start, this, null), new PropertyModelDate(this,

updating a property model

2011-07-21 Thread wmike1...@gmail.com
From the wicket java docs for property model, it says: ...we can create form components that work dynamically on the given model object. For instance, we could create a text field that updates the name property of a person like this: add(new TextField(myTextField, new PropertyModel(person,

Re: updating a property model

2011-07-21 Thread Igor Vaynberg
updatemodel of textfield calls model.setobject(value) where model is a property model propertymodel then calls person.setname(value) -igor On Thu, Jul 21, 2011 at 2:41 PM, wmike1...@gmail.com wmike1...@gmail.com wrote: From the wicket java docs for property model, it says: ...we can create

Re: Issues with HeaderResponseContainerFilteringHeaderResponse

2011-07-21 Thread Loren Cole
Under normal circumstances I would, but I don't have my css in a file. It gets pulled from a database and stashed in the session. All the header contributer classes and resource references assume there's a file somewhere with this info. But in my case there is not. And, even id I did stuff

Re: updating a property model

2011-07-21 Thread wmike1...@gmail.com
Thanks Igor, I've been trying to update the TextField's model myself through an added AjaxEventBehavior(onchange) event. But I can't seem to access the text that the user inputs in the TextField. I have: textField.add(new AjaxEventBehavior(onchange) { @Override

Re: updating a property model

2011-07-21 Thread Igor Vaynberg
use AjaxFormComponentUpdatingBehavior instead -igor On Thu, Jul 21, 2011 at 3:17 PM, wmike1...@gmail.com wmike1...@gmail.com wrote: Thanks Igor, I've been trying to update the TextField's model myself through an added AjaxEventBehavior(onchange) event. But I can't seem to access the text

Re: Issues with HeaderResponseContainerFilteringHeaderResponse

2011-07-21 Thread robert.mcguinness
put your css string from db in: new StringBufferResourceStream().add(yourCssFromDB) and then you can contribute to the header properly -- View this message in context:

PageMap in 1.5

2011-07-21 Thread Donohoe Digital
I'm porting this sample scala/wicket application from Wicket 1.4 to 1.5. I've almost completely got it figured out except for this bit of code from a class that extends RequestCycle (it does some basic EntityManager/Transaction stuff): override def onEndRequest = { super.onEndRequest()

Re: Bigger sites running on wicket?

2011-07-21 Thread Horacio Natyural
we have used wicket extensively in several banking applications . both retail and internal apps. we have very large amounts of transactions. mostly using 1.4 version. On Jul 22, 2011, at 1:24 AM, dryajov drya...@gmail.com wrote: 1.4 -- View this message in context:

Re: Bigger sites running on wicket?

2011-07-21 Thread Nelson Segura
I stumbled by accident on Coldwell banker's web site, which is using wicket. I don't know if that is known. It is a pretty big corporation. -Nelson On Thu, Jul 21, 2011 at 8:32 PM, Horacio Natyural horacio.natyu...@gmail.com wrote: we have used wicket extensively in several banking applications