Re: Image Upload Using TinyMCE Within Wicket Framework

2010-04-06 Thread Michał Letyński
Thanks. I was thinking to commit it to tinymce wicketsuff-project as separate plugin. In that project there are already some plugins present. Andreas Petersson pisze: Looks very helpful on first sight. maybe it would make sense to release the used code in the form of a wicketstuff project,

DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Arnaud Garcia
Hello, I have a simple DataView where each row has some labels and textfields. Each time the user enter in a textfield I would like to highlight the selected row. (The idea is to adapt the wicket stuff example (OIRPage.java) with an AjaxFormComponentUpdatingBehavior(onfocus) instead of a simple

Displaying HTML

2010-04-06 Thread Josh Kamau
Hi guys; I am using TinyMCE to created styled text and save it in the database. I want to display the same on for example a label, is there any component that displays the text as HTML , i mean i dont want to see the tags, i want to see some formatted text. Kind regards. Josh

SV: Displaying HTML

2010-04-06 Thread Wilhelmsen Tor Iver
I want to display the same on for example a label, is there any component that displays the text as HTML , i mean i dont want to see the tags, i want to see some formatted text. Use a Label, but call setEscapeModelStrings(false) on it. -- - Tor Iver

Re: Displaying HTML

2010-04-06 Thread Josh Kamau
Thanks. It worked. Regards. On Tue, Apr 6, 2010 at 11:43 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: I want to display the same on for example a label, is there any component that displays the text as HTML , i mean i dont want to see the tags, i want to see some formatted

onlinepayment

2010-04-06 Thread wicketyan
Hi! Is anyone can give me code example about online payment using ajax.I have to use form action attribute to post a url,but wicket do not support directing a url to external website on 'post' way in method submit(). 2010-04-06 wicketyan

Re: Properties of model are set to NULL even though we have setRequired set to true

2010-04-06 Thread Wayne Pope
Hi, has anyone got any idea about this? I'm still 'spinning my wheels' on it. thanks for any help. On Fri, Apr 2, 2010 at 5:00 PM, Wayne Pope waynemailingli...@googlemail.com wrote: Hi, we've got several examples in our logs of properties of the model being set to null even though the

Re: Wicket GAE performance

2010-04-06 Thread Anton Veretennikov
Thank you very much, Ian, you clarified some things to me. I'm trying to block some entity got for processing by one session from other possibly concurrent session. I know what i would do if it were RDBMS: lock my object with FOR UPDATE, if success, i would check if status field is still what i

What happens after browser's 'back' button?

2010-04-06 Thread Sergey Olefir
Hi, our first Wicket-based application is about to go into testing and I'm feeling rather uncomfortable about the fact that I don't really understand what happens when user uses browser's back button and then submits some 'outdated' form. Can someone elaborate please on what exactly happens when

Wicket GAE performance

2010-04-06 Thread Ian Marshall
Hi Tony, I presume that you have studied the GAE/J documentation about datastore transactions at http://code.google.com/intl/en/appengine/docs/java/datastore/transactions.html;. In particular, I note: JDO performs all actions between the call to tx.begin() and the call to tx.commit() in a

Re: What happens after browser's 'back' but ton?

2010-04-06 Thread McIlwee, Craig
As long as you prevent the browser from caching the page with the form (just the page itself, caching the resources is fine) then when the user hits back wicket will pull the old page instance from the pagemap and rerender it. That page instance is the same one that was used the first time, so

Re: What happens after browser's 'back' button?

2010-04-06 Thread James Carman
On Tue, Apr 6, 2010 at 8:07 AM, McIlwee, Craig craig.mcil...@openroadsconsulting.com wrote: As long as you prevent the browser from caching the page with the form (just the page itself, caching the resources is fine) then when the user hits back wicket will pull the old page instance from the

RE: root context, IE, home page is not found

2010-04-06 Thread FakeBoy
Hi, I use Glassfish v 2.1.1 with wicket 1.4.6 and in this version is redirect to root changed form ./ to . (BookmarkablePageRequestTarget.respond(RequestCycle requestCycle)). But I have still problem with this in IE(See attached picture). When I send redirect with location finishing with . IE

Build custom JavaScript

2010-04-06 Thread Steven Haines
For my application I need to dynamically generate JavaScript, which can either be in its own file or even added to my HTML document. I'll handle the generation of the JavaScript, but does anyone have any good strategies for injecting it into a web page or even generating a JavaScript file with

Re: Properties of model are set to NULL even though we have setRequired set to true

2010-04-06 Thread nino martinez wael
Hi Wayne I guess you've tried debugging it, so it's not a consistent error? Are you using any special web container or is wrapped somehow (like terracotta)? 2010/4/6 Wayne Pope waynemailingli...@googlemail.com: Hi, has anyone got any idea about this? I'm still 'spinning my wheels' on it.

Re: Properties of model are set to NULL even though we have setRequired set to true

2010-04-06 Thread David Chang
Hello Wayne, I understand your frustration. Recently, I got a similar case but it eventually turned out that it was my fault due to being new in Wicket. Long story short, for a dropdownchoice list with loadabledetachablemodel, I set up a load method, but in another place, I used

Re: Properties of model are set to NULL even though we have setRequired set to true

2010-04-06 Thread Wayne Pope
Hi Nino, we cannot reproduce it locally at all. Only happens in production. we have a straight forward setup - apache balancing to 2 tomcat instances - no clustering. really annoying! On Tue, Apr 6, 2010 at 3:51 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Wayne I guess

Re: Properties of model are set to NULL even though we have setRequired set to true

2010-04-06 Thread Wayne Pope
Hi David, thing is - we cannot reproduce it at all, so we cannot debug at all and hence we don't know where to start. I suppose we could put debugging traces in our code and the wicket code to help us understand but that doesn't feel right.. On Tue, Apr 6, 2010 at 3:58 PM, David Chang

Re: Forms in a base class

2010-04-06 Thread Elad Katz
Hi All, I'm sorry if this is off-topic but I have a problem that's very similar and since you are talking about this here and seem to know what you're doing, I was thinking you might be able to help. I'm trying to create a basic form that all other forms in my project will extend, it's gonna have

Re: Best Practices for Using JavaScript With Wicket

2010-04-06 Thread Nishant Neeraj
Thanks Jeremy. I had been using component.setMarkupId(..); which is not recommended... so I was wondering what is the standard. I need to get hands-on JS-Wicket integration, so I was looking for a good organized documentation/resource (other than WIA). So, what's the objection to using it? :)

AW: Best Practices for Using JavaScript With Wicket

2010-04-06 Thread Stefan Lindner
Hi Nishant, you should use component.setOutputMarkupId(true); this tells wicket to generate a unique markup id. You can refer to the generated id with component.getMerkupId(); later. If you want to add some javascript to your page, you may use two different tricks: A:

RE: LoadableDetachable Models

2010-04-06 Thread Russell Morrisey
Sorry; what I meant is that the value of the model is stored as a hard reference. So this will work if your model is a string (person.firstName) but the OP was concerned with manipulating a list of objects. The concern is if your model's value is also a persistent object. For example a

method error on construction time

2010-04-06 Thread Fernando Wermus
Hi all, I have a page when an error is thrown. This page is constructed in MyCustomRequestCycle.onRuntimeException. This page is also use to send any kind of message apart from errors. I add an error(some error has occurred, please complete the form explaining what happened ); for error

Re: Best Practices for Using JavaScript With Wicket

2010-04-06 Thread Nishant Neeraj
ah, great! Thanks Stefan. This is what I was looking for. - Nishant On Tue, Apr 6, 2010 at 9:45 PM, Stefan Lindner lind...@visionet.de wrote: Hi Nishant, you should use component.setOutputMarkupId(true); this tells wicket to generate a unique markup id. You can refer to the

Re: multiple feedback panels in same page

2010-04-06 Thread Jim Pinkham
I just had this page with 2 forms issue - each form has some RequiredTextFields, and some fields with custom StringValidators that I didn't want to change from error to form.error. This thread got me 90% of the way there, but new FeedbackPanel(feedback, new

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Arnaud Garcia
ok, find, so just do: item.setOutputMarkupPlaceholderTag(true); and myTextField.add(new AjaxEventBehavior(onfocus) { @Override protected void onEvent(AjaxRequestTarget target) { item.add(new SimpleAttributeModifier(class,

Speaking about Wicket

2010-04-06 Thread Andrew Williams
Hi guys, I am organising a talk on Wicket at the end of April for the Java User Group Scotland. We expect about 20 people for our meeting in Edinburgh and are comparing the framework to GWT which was presented last month. I am posting to the list because I was wondering if anyone was in the

retrieve class value

2010-04-06 Thread Arnaud Garcia
Hello, It is pretty easy using SimpleAttributeModifier to set the class of a Label for example, but how to retrieve it ? My css classes due to lot of AjaxBehaviors change very often for a Label field and I would like to find the associated class before changing it ? thanks arnaud

Re: retrieve class value

2010-04-06 Thread Martin Makundi
You might consider making a dynamic behavior that can change itself. ** Martin 2010/4/6 Arnaud Garcia arn...@imagemed-87.com: Hello, It is pretty easy using SimpleAttributeModifier to set the class of a Label for example, but how to retrieve it ? My css classes due to lot of AjaxBehaviors

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Jeremy Thomerson
Don't do this with AJAX - that's overkill. Just use a JS library and attach to onfocus. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 6, 2010 at 1:21 PM, Arnaud Garcia arn...@imagemed-87.comwrote: ok, find, so just do: item.setOutputMarkupPlaceholderTag(true); and

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-06 Thread Carlos Vara
Hi David, The code may be simple, but the idea/benefits I see may be great. Wouldn't be better to make it available on wicketstuff in good shape instead of me or others googling it out? :) Just my 2 cents. I totally agree with you here. I find JSR-303 to be a great standard that addresses the

RE: What happens after browser's 'back' b utton?

2010-04-06 Thread Craig McIlwee
You're right James, I failed to mention that my approach will not work for stateless pages. A stateful URL is needed to identify the previous page instance. Regarding Firefox's lack of server trip on back button, this is what I was getting at with the cache header stuff I mentioned. The

Re: What happens after browser's 'back' button?

2010-04-06 Thread James Carman
Thanks for the tip! I'll make sure I set that up in my base page. On Tue, Apr 6, 2010 at 3:53 PM, Craig McIlwee craig.mcil...@openroadsconsulting.com wrote: You're right James, I failed to mention that my approach will not work for stateless pages.  A stateful URL is needed to identify the

Re: LoadableDetachable Models

2010-04-06 Thread James Carman
Yes, this method won't work for all cases, but it does help for some. On Tue, Apr 6, 2010 at 12:26 PM, Russell Morrisey russell.morri...@missionse.com wrote: Sorry; what I meant is that the value of the model is stored as a hard reference. So this will work if your model is a string

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Daniela Valero
Hi Jeremy, I'm doing something similar than Araun, but with item.add(new AjaxEventBehavior(onclick) { @Override protected void onEvent(AjaxRequestTarget target) { HighLitableDataItemThirdModelBasic hitem = (HighLitableDataItemThirdModelBasic)item;

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Jeremy Thomerson
No - I mean use jQuery, YUI, or whatever you are currently using (or custom JS that you write without one of these frameworks), and just add a CSS class to the dom element on the client-side. There is no reason to make a roundtrip to the server to simply change the CSS class. That wastes time

RE: Build custom JavaScript

2010-04-06 Thread Craig McIlwee
If the javascript will change often then it's probably best to include it directly into the head of the page, otherwise it's just another HTTP request that probably won't be cachable. So to put something in the head, you can try a StringHeaderContributor or implement IHeaderContributor. If

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Daniela Valero
Thanks Jeremy, that info is very usefull 2010/4/6 Jeremy Thomerson jer...@wickettraining.com No - I mean use jQuery, YUI, or whatever you are currently using (or custom JS that you write without one of these frameworks), and just add a CSS class to the dom element on the client-side. There

Re: onlinepayment

2010-04-06 Thread Jeremy Thomerson
throw new redirect response and redirect, or write out javascript that does the redirect (target.appendJavascript()). -- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 6, 2010 at 4:00 AM, wicketyan wicket...@gmail.com wrote: Hi! Is anyone can give me code example about online

need developer with wicket experience in Seattle/Bothell area

2010-04-06 Thread shantanu Deo
Hi I am looking to hire a Java dev with some wicket experience along with Hibernate and good object modeling skills. This will be a long term contract position at a major company in the Seattle/Bothell area.   If interested please contact s...@yahoo.com with your resume and best times to

Display timeout page for long running requests

2010-04-06 Thread Mak
Hi All, I am new to wicket framework. I have a requirement that my wicket application needs to abandon its request processing after the specified time (say 5 secs ) has elapsed. Also, an error page / popup should be displayed after timeout to notify the user. In other words, from user point of

ajaxfallback

2010-04-06 Thread tubin gen
I am using AjaxLink all my application and we add to AjaxRequestTarget for repainting components , now we want to change it to use AjaxFallback , but in ajaxfallback AjaxRequestTarget is null and I get null pointer exception.Please tell me if there is any way I can move from AjaxLink to

Re: Display timeout page for long running requests

2010-04-06 Thread Gerolf Seitz
you can use an ajax timer to check if the long running process has finished after 5 seconds and abort the process and redirect the user to the timeout page if it hasn't. gerolf On Wed, Apr 7, 2010 at 12:11 AM, Mak makar...@gmail.com wrote: Hi All, I am new to wicket framework. I have a

Re: ajaxfallback

2010-04-06 Thread Gerolf Seitz
before adding a component to the ajaxrequesttarget, simply check that the target is not null (aka the request is an ajax request). otherwise you don't need to add the components to the ajaxrequesttarget anyway. gerolf On Wed, Apr 7, 2010 at 12:20 AM, tubin gen fachh...@gmail.com wrote: I am

Re: Display timeout page for long running requests

2010-04-06 Thread Igor Vaynberg
alternatively you can have a filter that adds the current thread to some background monitoring process which can, if needed, take over the request. you will need to play around with that and your container - eg test what happens if you interrupt a thread, etc. -igor On Tue, Apr 6, 2010 at 3:33

Javascript from panel does not work

2010-04-06 Thread Daniela Valero
Hi everybody I'm having a problem with my call to javascript from a panel. The problem is tah javascript does not work (if i call it from a page it works fine) I'm doing this: wicket:head script language=JavaScript1.2 src=views/js/jquery-1.3.2.min.js/script script language=JavaScript1.2

Re: Javascript from panel does not work

2010-04-06 Thread Daniela Valero
I tried adding public void renderHead(IHeaderResponse response) { response.renderJavascriptReference(views/js/ToggleHighLigh.js); response.renderJavascriptReference(views/js/jquery-1.3.2.min.js); } from IHeaderResponse, but it isn't work 2010/4/6 Daniela Valero

Re: ajaxfallback

2010-04-06 Thread Jeremy Thomerson
Read the javadocs? Callback for the onClick event. If ajax failed and this event was generated via a normal link the target argument will be null http://wicket.apache.org/docs/1.4/wicket/apidocs/org/apache/wicket/ajax/markup/html/AjaxFallbackLink.html -- Jeremy Thomerson

Re: Javascript from panel does not work

2010-04-06 Thread Jeremy Thomerson
Please make sure that your JS files are loading. I suspect you may be getting a 404 when loading the JS because you are not referencing them correctly (you're using a relative URL, which may not work depending on where your panel is placed). Also, where is the JS that adds the onclick handler

Re: Re: onlinepayment

2010-04-06 Thread wicketyan
Thanks Jeremy Thomerson ! is throw new redirect response and redirect means this way:WebRequestCycle.get().setRequestTarget(new RedirectRequestTarget(URL...)),using a url like Wicket.html?opt=admin .but this will expose the important param in the url.So,writting out javascript is the only way?

Re: Re: onlinepayment

2010-04-06 Thread Jeremy Thomerson
throw new RestartResponseAtInterceptPageException(new RedirectPage(url)); You haven't said anything about what payment solution you're using. The thing is, if you have to redirect the user to the payment solution with the pricing (or whatever your important param is) as a URL parameter, then