SV: How to Store Wicket to XML File?

2010-03-08 Thread Wilhelmsen Tor Iver
Any one Have idea about how to Store wicket fields(TextField) to XML File? Why would you want to do that? Usually you only store the model value, storing the field itself is only relevant for the page serializing. - Tor Iver

Re: UI Layout

2010-03-08 Thread Juha Palomäki
Here's what we have been using for CRUD stuff: Domain: Customer - name : String - industry : String - primaryContact : Contact Contact - name : String - Address : String - Email: String Pages: CustomerBasePage (abstact) CustomerAddPage CustomerEditPage CustomerViewPage Panels:

how to Store wicket directly to XML File

2010-03-08 Thread sravan g
Hi All, Any one Have idea about how to Store wicket fields(TextField) to XML File? Thanks, Saravanakumar G.

Re: how to Store wicket directly to XML File

2010-03-08 Thread Jeremy Thomerson
This is your third post with the exact same question. One thread already has a response. Please provide more information on that thread and do not open another thread. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 8, 2010 at 2:53 AM, sravan g sravangs...@gmail.com wrote: Hi

Re: Problem with onComponentTag in a ListView

2010-03-08 Thread TBerger
Thanks for your reply. I've taken a closer look to those components but I didn't find a solution. I've tried to implement onComponentTag in SelectOptions but it didn't work too. Maybe you could give me a more detailed hint on what you are pointing to? Best regards Torben igor.vaynberg wrote:

Re: UI Layout

2010-03-08 Thread Juha Palomäki
One thing in the page vs panels discussion is also inheritance vs composition. So do you construct the layout of the UI by inhering it or do you take the mashup style -approach. I've started thinking that it might be better to use panels for functionality (for example CustomerEdit, CustomerAdd)

Re: UI Layout

2010-03-08 Thread Marek Šabo
+1 on this. I've been experimenting with ajax navigation switching panels representing actions and using pages as containers for all these actions (e.g. module User has its page which has menu where are links to various action panels). So far works best for me from all approaches I've tried. On

Re: how to Store wicket directly to XML File

2010-03-08 Thread Ernesto Reinaldo Barreiro
Hi Saravanakumar, First of all: If I where you I would try to follow Jeremy's suggestion. It is a bit annoying for other users to have duplicated posts. Additionally if someone answers one of your posts, and even if the answer is not what you expected, it is nice if you reply to the guy at least

Support for serialization debugging.

2010-03-08 Thread Sergey Olefir
Hi, what is the current 'proper' way to debug serialization issues in Wicket? My web search led me to two things: - Wicket contains SerializableChecker class whose explicit purpose is to assist in tracking down serialization issues. - At some point it seems that in development mode Wicket used

Wicketstuff-Push without Dojo?

2010-03-08 Thread Martin U
Hi Folks, i need some COMETD or something equal implemention in my web-application. So i found wickestuff-push. But as far as is see, it users dojo to do the client-side magic. I dont want to blow up my application more as it still is ;) so i want ask for an wicket + comet workaround with jQuery

Re: Where to put an application's configuration parameters?

2010-03-08 Thread T Ames
As an alternative, I place all my properties in an LDAP server. In the Application, I have a class that retrieves the properties. On Sun, Mar 7, 2010 at 8:33 PM, James Carman ja...@carmanconsulting.comwrote: And if you want live redeployment, you could use jrebel and their spring plugin. I

Re: Where to put an application's configuration parameters?

2010-03-08 Thread James Carman
That's an interesting idea. Ldap support is built into the jdk. Does that make unit testing interesting or do you have all that stuff abstracted out? On Mar 8, 2010 8:48 AM, T Ames tamesw...@gmail.com wrote: As an alternative, I place all my properties in an LDAP server. In the Application, I

Re: Example of configuring JCaptcha within Wicket?

2010-03-08 Thread David Chang
Eelco, Thanks for reply. I already read this book and already got the code working by understanding the sample code int the book. But I don't like what the default image and font look like and hope to change it. So I would like to see if there is existing work by folks here so that I dont

Re: Wicketstuff-Push without Dojo?

2010-03-08 Thread Richard Wilkinson
Hi, We have been working on the wicketstuff-push project offline; so far we have modified the code to run using jQuery (using wiQuery [1]) with the latest version of the cometd javascript, and fixed a few bugs / made some improvements. For example the current code wasn't as efficient as it could

Re: wiQuery components with server side state - live demo

2010-03-08 Thread Eyal Golan
Really cool demo! Is there a place where I can see source for the portal demo? If I show the guys at work I can use it, we will defently choose WiQuery. They're talking about GXT and other stuff which I really don't want to go into. Eyal Golan egola...@gmail.com Visit:

Re: wiQuery components with server side state - live demo

2010-03-08 Thread Cemal Bayramoglu
Eyal, Thanks. We will be working on that as soon as we get another opportunity. Perhaps we will try to coincide our release with the release of wiQuery 1.0.1 which we may also have by the end of the month. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training

Session expired drives me mad!

2010-03-08 Thread Martin Asenov
Hello everyone! The session expired problem really drives me mad, because it's been couple of months or so since it started bothering me. Please advice me on what to do, because I'm despaired. Wicket tries to serialize every single class in my opinion. I enabled the DEBUG of Wicket and

Re: Session expired drives me mad!

2010-03-08 Thread Cemal Bayramoglu
Martin, It looks like your page is holding on to Spring benas. Are you using @SpringBean to inject Spring beans into your pages? That way you would get a proxy to the beans so you don't need to worry about them being serialisable. Regards - Cemal jWeekend OO Java Technologies, Wicket

Re: Session expired drives me mad!

2010-03-08 Thread James Carman
Are you using @SpringBean? 2010/3/8 Martin Asenov mase...@velti.com: Hello everyone! The session expired problem really drives me mad, because it's been couple of months or so since it started bothering me. Please advice me on what to do, because I'm despaired. Wicket tries to serialize

RE: Session expired drives me mad!

2010-03-08 Thread Martin Asenov
Hello, Well, I do use Spring Beans, and as shown in the stack trace, there is a field relation to the beans themselves. I don't think I can avoid it, do I? I create the beans by casting from the ApplicationContext. Thank you, Martin -Original Message- From: ce...@jweekend.com

Re: Session expired drives me mad!

2010-03-08 Thread James Carman
No, you need to use the @SpringBean annotation: http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach 2010/3/8 Martin Asenov mase...@velti.com: Hello, Well, I do use Spring Beans, and as shown in the stack trace, there is a field relation to the beans themselves. I

Re: Session expired drives me mad!

2010-03-08 Thread Ilja Pavkovic
Hi, I enabled the DEBUG of Wicket and messages like the following one are flooding the log. Here it is: 08-03-2010 17:30:03,445 ERROR org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error serializing object class com.mycompany.myapp.ui.users.Users [object=[Page class =

Re: Session expired drives me mad!

2010-03-08 Thread Tomasz Dziurko
Check this one: http://cwiki.apache.org/WICKET/spring.html , especially paragraph Annotation-based Approach Regards -- Tomasz Dziurko - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Session expired drives me mad!

2010-03-08 Thread Sigmar Muuga
I have had no problems with @SpringBean Also try to use them like this: @SpringBean(name=yourBeanName) This way you can avoid some mess that may occur in the future :) On Mon, Mar 8, 2010 at 5:46 PM, James Carman jcar...@carmanconsulting.comwrote: No, you need to use the @SpringBean

RE: Session expired drives me mad!

2010-03-08 Thread Martin Asenov
Thank you all for the help! -Original Message- From: Sigmar Muuga [mailto:meedi...@gmail.com] Sent: Monday, March 08, 2010 5:50 PM To: users@wicket.apache.org Subject: Re: Session expired drives me mad! I have had no problems with @SpringBean Also try to use them like this:

modal window problem

2010-03-08 Thread Martin Asenov
It's me again. I just noticed some very strange error that I have no explanation about. When I open a wicket modal window then it appears for a while and closes and the entire page gets redirected to some browser related pages, for instance ask.com, or some thing like this:

Re: Clear feedback panel

2010-03-08 Thread Anna Simbirtsev
Yes, I have setOutputMarkupId(true). I am using ajax to display feedback messages. Its just clearing the message that does not work for some reason. I tried the following: FeedbackMessages me = Session.get().getFeedbackMessages(); IteratorFeedbackMessage entryIter = me.iterator(); while

Re: modal window problem

2010-03-08 Thread Matthias Keller
On 2010-03-08 17:07, Martin Asenov wrote: It's me again. I just noticed some very strange error that I have no explanation about. When I open a wicket modal window then it appears for a while and closes and the entire page gets redirected to some browser related pages, for instance ask.com,

Re: Clear feedback panel

2010-03-08 Thread Anna Simbirtsev
I think my feedback messages are not in Session, when I print FeedbackMessages me = Session.get().getFeedbackMessages(); System.out.println(size: + me.size()); it returns 0. On Sat, Mar 6, 2010 at 9:16 AM, Riyad Kalla rka...@gmail.com wrote: I thought the feedback messages were stored in

Re: Wicketstuff-Push without Dojo?

2010-03-08 Thread Martin Grigorov
On Mon, 2010-03-08 at 14:37 +, Richard Wilkinson wrote: Hi, We have been working on the wicketstuff-push project offline; so far we have modified the code to run using jQuery (using wiQuery [1]) with the latest version of the cometd javascript, and fixed a few bugs / made some

RE: modal window problem

2010-03-08 Thread Martin Asenov
Hi, Matthias! Well, I viewed the page source, and there is no text that says http://:/; . However, this happens only on two PCs from 10. Also, I typed on the one of the computers that have this error the above mentioned text in the browser and it led to the very same page with the very same

Re: Session expired drives me mad!

2010-03-08 Thread Martin Grigorov
On Mon, 2010-03-08 at 17:36 +0200, Martin Asenov wrote: Hello everyone! The session expired problem really drives me mad, because it's been couple of months or so since it started bothering me. Please advice me on what to do, because I'm despaired. Wicket tries to serialize every single

RE: Session expired drives me mad!

2010-03-08 Thread Martin Asenov
Well I did see it, but not in that deep detail like this... Regards, Martin -Original Message- From: Martin Grigorov [mailto:mcgreg...@e-card.bg] Sent: Monday, March 08, 2010 6:25 PM To: users@wicket.apache.org Subject: Re: Session expired drives me mad! On Mon, 2010-03-08 at 17:36

Component Instantiation Listener Problem

2010-03-08 Thread Ben Tilford
I ran into an issue with a Component Instantiation Listener because the listener is notified before setModelImpl is called. Is this the intended behavior? It limits what you can do in your listener quite a bit.

Re: Wicketstuff-Push without Dojo?

2010-03-08 Thread Rodolfo Hansen
Hi Richard, Your ideas seam very interesting.. I haven't had alot of time to work on the project and am currently the only developer as the initial team isn't responding. I will checkout your patch, and would love to continue discussing changes with you. On Mon, Mar 8, 2010 at 11:03 AM, Richard

Re: Support for serialization debugging.

2010-03-08 Thread Igor Vaynberg
seems like it should be running. AbstractPageStore:203 serializes the page by calling Objects.objectToByteArray() which by default uses DefaultObjectStreamFactory which in turn runs your object through the SerializableChecker if an exception occurs, see IObjectStreamFactory:125 so unless you

Re: Component Instantiation Listener Problem

2010-03-08 Thread Igor Vaynberg
yes it is intended. you are not really meant to mock with the class because the listener is called before the constructors of your subclasses have finished. there are listeners you can use that are called in onbeforerender of components where you can mock with the actual component instance, not

Re: Guice LazyInitProxyFactory : NPE when calling, first, public fields

2010-03-08 Thread Uwe Schäfer
Uwe Schäfer schrieb: To me this does not feel like necessarily the right behaviour. I do not see a tremendous advantage in this resolving being done lazily. for the record: we could change to doing it non-lazy, but it does not solve this particular issue, as the value of public field is

Re: Clear feedback panel

2010-03-08 Thread Riyad Kalla
Anna, I think it's in the Request scope, I just don't know where to get that list set from to clear it. Anybody else? -R On Mon, Mar 8, 2010 at 9:11 AM, Anna Simbirtsev asimbirt...@gmail.comwrote: I think my feedback messages are not in Session, when I print FeedbackMessages me =

component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior

2010-03-08 Thread Apollo Apollo11
Hi all, I create a customized column with a Link component with an Icon, which it will popup a new page for editding after click on it, for the Wicket Datatable. *public* IconLinkPanel( *final* Item item, *final* String componentId, * final* IModel model) {*{* *final* Link link = *new*

Re: jWicket release 0.5.0

2010-03-08 Thread Ernesto Reinaldo Barreiro
Hi Stefan, My I ask what was your solution to the DD problem? Added a patch to jquery? Was this related to [1] and using jquery 1.4.2, independently of your project, and still find this issue. Best, Ernesto References, 1-http://dev.jquery.com/ticket/4996 http://dev.jquery.com/ticket/4996 On

RE: jWicket release 0.5.0

2010-03-08 Thread Stefan Lindner
Hi Ernesto, yes, I added a patch to jquery1.4.2.js. The DD problem is relatet to the ticket you cited (4996). After a DOM replacement IE is unable to calculate it's bounding rect in the way jQuery does and IE then throws an exception that stops the re-registration of the behavior. The problem

URL Encoding works different for Home Page and Bookmarkable pages

2010-03-08 Thread Neil Curzon
Hi users! I've been testing out the CryptedUrlWebRequestCodingStrategy for our wicket app in 1.4.3 (yeah, soon to be upgraded..). We have two sites in Wicket. I changed them both to use said CryptedUrlWebRequestCodingStrategy, and I noticed that the login form post action only got encoded for one

Re: jWicket release 0.5.0

2010-03-08 Thread Ernesto Reinaldo Barreiro
Hi Stefan, Thanks very much for the info! I'll check out your fix. I has tested it and this only happens with droppables (only draggables is not an issue). I had experienced similar issues with other DD libraries and IE: before I was using YUI and I had some issues with AJAX replacements and DD

Re: jWicket release 0.5.0

2010-03-08 Thread bht
Thanks for the link to the issue. Re: I don't know why they don't fix the problem. I think the jQuery developer asks for a testcase. No testcase was supplied, so I am not surprised that even after 7 months, nothing has been done. But when there is a testcase, and when even the offending line of

RE: jWicket release 0.5.0

2010-03-08 Thread Stefan Lindner
Hi Bernard, there is a testcase in the attachments: $(document.createElement('div')).offset(); It's a real simple testcase. Stefan -Ursprüngliche Nachricht- Von: b...@actrix.gen.nz [mailto:b...@actrix.gen.nz] Gesendet: Montag, 8. März 2010 20:23 An: users@wicket.apache.org

Re: jWicket release 0.5.0

2010-03-08 Thread bht
I don't know, in the header I read: Needs: Test Case The bug still has status new, neither confirmed nor assigned. I am referring to http://dev.jquery.com/ticket/4996 What am I missing? They might need a complete standalone page, preferably zipped that loads jquery.js from the web and

Create a label in onUpdate method using ajax (AjaxFormComponentUpdatingBehavior)

2010-03-08 Thread Gustavo Henrique
Hi guys! I'm trying create a label contain an error message after ajax request, but no success. I can't use FeedbackPanel because it changes the design. So I did: final Label label = new Label(postalCodeNotExisti); label.setOutputMarkupId(true); final RequiredTextField postalCodeComplement =

Re: URL Encoding works different for Home Page and Bookmarkable pages

2010-03-08 Thread Neil Curzon
Second question, I'm wondering what the mentality of encoding stateless stuff is, at all. The CryptedUrlWebRequestCodingStrategy seems to use a session-id and random UUID combination to crypt the url. Doesn't this automatically make all stateless URLs stateful since they can't decrypt without the

Re: URL Encoding works different for Home Page and Bookmarkable pages

2010-03-08 Thread Igor Vaynberg
afair the strategy is meant to preserve bookmarkable url because those are your entrypoints and are not meant to be encoded. if you mount your login page with querystringurlcodingstrategy instead of the default then the url login/wicket:interface/:2:componentId:loginForm::IFormSubmitListener::

ModalWindow form, autocomplete, and default button.

2010-03-08 Thread Julian Sinai
Hi, I'm having some trouble with modal forms. As advised by Matej in this post: http://markmail.org/thread/kmrsg2kvywpyf5dh, I am nesting my modal form inside another form. That works fine, but I now have two other problems: because Form.onComponentTag() rewrites my inner form tag as a div,

Don't increment the Session.pageIdCounter for stateless pages?

2010-03-08 Thread Martin Grotzke
Hi, the Page.init(PageMap) invokes setNextAvailableId(), which invokes getSession().nextPageId() if isPageIdUniquePerSession is set. getSession().nextPageId() modifies the Session.pageIdCounter. When I have a session and afterwards access a stateless page, the Session.pageIdCounter is the only

Mootools Clashes With wicket-event.js

2010-03-08 Thread Ayodeji Aladejebi
My mootools.js scripts wont work because of resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js What do i do - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

How to dynamically create wicket label and TextField Component?

2010-03-08 Thread sravan g
Hi all, Any one have idea about How to dynamically create wicket label and TextField Component based on other TextField value from Database? Thanks, Sravan.

Re: Component Instantiation Listener Problem

2010-03-08 Thread Ben Tilford
Exactly what I needed. On Mon, Mar 8, 2010 at 12:04 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: yes it is intended. you are not really meant to mock with the class because the listener is called before the constructors of your subclasses have finished. there are listeners you can use

Re: How to dynamically create wicket label and TextField Component?

2010-03-08 Thread Sigmar Muuga
Just make a div or whatever element and add childs to it in page. On Tue, Mar 9, 2010 at 5:53 AM, sravan g sravangs...@gmail.com wrote: Hi all, Any one have idea about How to dynamically create wicket label and TextField Component based on other TextField value from Database? Thanks,

disable a DropdownChoice item

2010-03-08 Thread Douglas Ferguson
Is there a way to set a DropDown choice option to disabled? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: jWicket release 0.5.0

2010-03-08 Thread Ernesto Reinaldo Barreiro
Do you think would it be enough if I provide a wicket quick-start and instructions on how to get it running and so on? It would be very easy to create one reproducing the issue on a DD scenario. Or create a new issues and link it to the 4996? Ernesto On Mon, Mar 8, 2010 at 9:54 PM,

Re: disable a DropdownChoice item

2010-03-08 Thread James Carman
You can have your model for the options be dynamic and have it not return certain options if they're not enabled On Tue, Mar 9, 2010 at 12:58 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Is there a way to set a DropDown choice option to disabled? D/

Re: Wicketstuff-Push without Dojo?

2010-03-08 Thread MattyDE
Wow thanks for your contribution. Iam not very used to use Patches on SVN-Directories. But i'll try my best to understand how it works ;) Iam looking for a possibility to run wicketstuff-push without a Jetty instance to. Prefered Tomcat... Thanks! richardjohnwilkinson wrote: Hi again,

Re: disable a DropdownChoice item

2010-03-08 Thread Douglas Ferguson
Yeah.. but I want to actually disabled them. i.e. have a divider that doesn't actually do anything select optionfirst one/option optionsecond one/option option disabled=disabled-/option optionothers/option /select On Mar 9, 2010, at 12:45 AM, James Carman wrote: You can have your

Re: disable a DropdownChoice item

2010-03-08 Thread Per Newgro
Do you have a markup problem? Or do you want to modify the markup depending on your model values? In last case try an AttributeModifer which returns disabled=disabled on appropriate option model value. Cheers Per - To

Re: disable a DropdownChoice item

2010-03-08 Thread Douglas Ferguson
Yeah.. I was thinking I could use an attribute modifier, but how do I get access to the actual option to add the attribute modifier to it? For instance: List values = Arrays.asList(new String[] {foo, bar, --, more, options}); new DropDownChoice(select, new ModelString(null), values); I

Re: jWicket release 0.5.0

2010-03-08 Thread bht
Ernesto, Possibly not enough. I would create a testcase as a web page with no reference to Wicket as a start. It is good to avoid any technical distraction because any distraction causes friction and loss of energy. You can of course mention that you are a Wicket developer, and give some

Re: disable a DropdownChoice item

2010-03-08 Thread Per Newgro
There is some code in the AbstractChoice class from which DDC is inheriting. /** * Gets whether the given value is disabled. This default implementation always returns false. * * @param object *The object to check * @param index *The