Re: AW: Dynamically choosing component to add

2011-11-29 Thread tech7
Many thanks. I am also trying to add new textfield to the page when user clicks on a button. How can I do that? Is there any proper way? - Wicket-Java -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamically-choosing-component-to-add-tp3955869p4118343.html

RE: Regarding Reset

2011-11-29 Thread Wilhelmsen Tor Iver
1.how do i use reset in java code.I have just declare a reset button in my html which is working as expected but wana know is there any other alternative of doin it. A HTML input of type=reset will by default do nothing server-side but just reset input fields of a form to the initial values.

Re: duplicate form - js modal window

2011-11-29 Thread nazeem
I had worked around the problem by modifying the js to not to duplicate content and instead to remove the original content and show in popup. Later on closing it puts back the content on the same node. But in any case, i would like to know how to convert a component to rendered html string.

Re: DropdownChoice with ChoiceRenderer does not use idValue for setting Model

2011-11-29 Thread tech7
You can also use property files for holding label values. - Wicket-Java -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropdownChoice-with-ChoiceRenderer-does-not-use-idValue-for-setting-Model-tp4115836p4118392.html Sent from the Users forum mailing list archive

Re: duplicate form - js modal window

2011-11-29 Thread Martin Grigorov
Hi, There is an example of rendering a Panel at http://www.wicket-library.com/wicket-examples/mailtemplate This is Wicket 1.5 On Tue, Nov 29, 2011 at 9:23 AM, nazeem md.naz...@gmail.com wrote: I had worked around the problem by modifying the js to not to duplicate content and instead to remove

Re: duplicate form - js modal window

2011-11-29 Thread nazeem
thank u. will go thru the same. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/duplicate-form-js-modal-window-tp4110289p4118440.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Dynamically choosing component to add

2011-11-29 Thread Thomas Götz
If you only need one TextField that should be displayed upon click on a button: final TextField textField = new TextField(textField, new Model()); textField.setVisible(false); add(textField); AjaxButton button = new AjaxButton(button) { @Override protected void onSubmit(AjaxRequestTarget

Re: Dynamically choosing component to add

2011-11-29 Thread Hans Lesmeister 2
Hi, Thomas Götz wrote final TextField textField = new TextField(textField, new Model()); textField.setVisible(false); add(textField); ... Because textField is initially invisible, Don't forget to textField.setOutputMarkupPlaceholderTag(true); - -- Regards, Hans

Re: Dynamically choosing component to add

2011-11-29 Thread Seçil Aydın
Thomas and Hans, thank you for your responses. Mine issue is a little bit different, as you can see in the sample picture. When page is opened only one couple of textfield should be displayed.When user clicks on button, couple of textfields should be added to the page.Is there any way?

Internationalisation issue with WiQuery

2011-11-29 Thread Steve Mactaggart
Hi All, We have completed a pretty extensive localisation of our large wicket application with great success, just about every string in the application is now happily served from our language xml files. But we have noticed some places our language conversions are not coping. Our issue is with

Re: Internationalisation issue with WiQuery

2011-11-29 Thread Martin Grigorov
Hi, 2011/11/29 Steve Mactaggart st...@whitesquaresoft.com: Hi All, We have completed a pretty extensive localisation of our large wicket application with great success, just about every string in the application is now happily served from our language xml files. But we have noticed some

Re: Dynamically choosing component to add

2011-11-29 Thread Thomas Götz
I created a short example (Quickstart): http://cl.ly/3u2o260z1b3F441T1T1M You need to care for your models yourself (for the TextFields), just an example how to dynamically add components. Cheers, -Tom Seçil Aydın wrote: Thomas and Hans, thank you for your responses. Mine issue is a

Re: Dynamically choosing component to add

2011-11-29 Thread Ritesh Jharia
Hi, you can use a RefreshingView, with the Model getting updated on the button click, which will be storing the number of times the fields needs to be added. And in populateItem(), add the fields. -- Ritesh 2011/11/29 Seçil Aydın techlove...@gmail.com Thomas and Hans, thank you for your

Jquery Confirmation Dialog - or WiQuery Dialog?

2011-11-29 Thread lucast
Dear Forum, I want to implement a modal window for confirming the deletion of objects. I want to use Jquery confirmation dialog, just like on http://jqueryui.com/demos/dialog/modal-confirmation.html this example . Is there a way to add this Jquery script to my code and to know if the delete

Inclusion of script in wicket:head and AJAX

2011-11-29 Thread Илья Нарыжный
Hello, I have following code in my wicket component: wicket:head script type=text/javascript src=http://www.google.com/jsapi;/script /wicket:head Everything is OK if component is visible from the begining. But if component is enabled by AJAX, I have following in the logs: *INFO: * Initiating

Re: Inclusion of script in wicket:head and AJAX

2011-11-29 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-4092 On Tue, Nov 29, 2011 at 3:20 PM, Илья Нарыжный phan...@ydn.ru wrote: Hello, I have following code in my wicket component: wicket:head script type=text/javascript src=http://www.google.com/jsapi;/script /wicket:head Everything is OK if

Re: Jquery Confirmation Dialog - or WiQuery Dialog?

2011-11-29 Thread Ernesto Reinaldo Barreiro
Lucas, I think you will have to do something similar to what AjaxSlider does. 1- Attach a div to your page and an AbstractDefaultAjaxBehavior to that div. 2- Use that behavior to construct callback URL for buttons and on Buttons protected void execute(JsScopeContext scopeContext)

Refreshing repeating view

2011-11-29 Thread mohan mohan
Hi I am using RepeatingView to add dynamic text fields on a plus button click in a panel. When I add new text field to the repeating view on a plus button click and refresh it, the user input for the other text fields gone. Does repeating view reconstructs the components on refresh? How can

Access Denied with AjaxEditableLabel ant AjaxEditableMultiLineLabel under chrome and safari #wicket1.5

2011-11-29 Thread Gaetan Zoritchak
I had this problem during the migration from wicket 1.4 to wicket 1.5 The problems occurs under chrome, safari and wicket 1.5 Scenario with an AjaxEditableMultiLineLabel : 1. The user puts the focus on the AjaxEditableMultiLineLabel and edit the field. 2. Without focusing out of the editable

Re: GoAndClearFilter does not reset filterForm fields

2011-11-29 Thread Sandor Feher
After three weeks stuggling finally I found the problem. I did not fill my POJO's PK which was a compound id contains three fields because I did not want to filter for this columns. The result was that my POJO's equals function always returned true and this is why it did not work for me. Huh. Just

Form Submit components

2011-11-29 Thread Tom Eicher
Hello, I have a data table with a checkbox column, and I dont want to loose the checks when a navigation link is clicked. Since I'm not using AJAX here, all I would need is for the navigation buttons to sumit the form. (SubmittingNavigationToolbar, notAjaxNavigationToolbar) I just rediscovered

Re: Inclusion of script in wicket:head and AJAX

2011-11-29 Thread Илья Нарыжный
Martin, Thank you, but in Wicket 1.5.3 browser come to some inconsistent state after that. 1) Browser fully redirected to google js page 2) In logs I have: Wicket is not defined Wicket.Log.error(Wicket.FunctionsExecuter.processNext: + e); Thanks, Ilia 2011/11/29 Martin Grigorov

RE: Regarding Reset

2011-11-29 Thread ridaa
Hey Thanks for the clarification..!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Regarding-Reset-tp4115668p4119522.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Inclusion of script in wicket:head and AJAX

2011-11-29 Thread Martin Grigorov
Ticket + quickstart. We load .js resources from CDN in our app and there are no problems. 2011/11/29 Илья Нарыжный phan...@ydn.ru: Martin, Thank you, but in Wicket 1.5.3 browser come to some inconsistent state after that. 1) Browser fully redirected to google js page 2) In logs I have:

Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread eugenebalt
I have a page with links that redirect to other pages. Upon clicking the original page again (after navigating away from it), the links don't change their color to visited; they're the same color as unvisited. However, when I *restart my application* and go to that page, the link now changes

Re: Refreshing repeating view

2011-11-29 Thread Warren Bell
I just got done with a problem similar to this. It may be because your RepeatingView is useing ReuseIfModelsEqualStrategy. In my situation the component never thought the value changed so it reused the old value. It sounds like that is what is happening to you. My fix was to call

Re: Inclusion of script in wicket:head and AJAX

2011-11-29 Thread Илья Нарыжный
Issue with redirect it seems to be some particular issue with: http://code.google.com/apis/loader/ Espessialy with google.load function. That seems to be solved by forming URL in following way:

logging the page class name

2011-11-29 Thread fachhoch
I want to log all the pages users are viewing without any much detail just the page class name . is there any way I can get this without adding my own log statements in code ? -- View this message in context:

Re: logging the page class name

2011-11-29 Thread Martin Grigorov
Enable DEBUG for org.apache.wicket.Page and you will see messages like: ending request for page + this + , request + getRequest() On Tue, Nov 29, 2011 at 5:23 PM, fachhoch fachh...@gmail.com wrote: I want to log all the pages users   are  viewing  without any much detail just  the page  

Re: Dynamically choosing component to add

2011-11-29 Thread Seçil Aydın
Thank you very much Thomas, i will follow the way that you provided. Also thank you for your response Ritesh. Regards. - Wicket-Java -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamically-choosing-component-to-add-tp3955869p4119794.html Sent from the Users

Re: logging the page class name

2011-11-29 Thread Thomas Götz
I would create my own base Page (where all other pages extend from) and add the desired logging statement there (onConfigure(), onBeforeRender()). Most of the times you already have a common base page anyway … Cheers, -Tom fachhoch wrote: I want to log all the pages users are viewing

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread Andrea Del Bene
Probably this is due to Wicket links which contain informations on page version (it should be an incremental id). So each time you return to the same page Wicket generate different values for href attribute because version id has been incremented. That's way they seem not visited. When you

new blog on leveraging cdi conversations to simplify wicket code

2011-11-29 Thread Igor Vaynberg
just wrote a new blog on how to use cdi conversations to make wicket code simpler... https://www.42lines.net/2011/11/29/leveraging-conversations/ feedback welcome -igor - To unsubscribe, e-mail:

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread eugenebalt
Thanks, any ideas on how to mark the links correctly as visited when the app is currently running? That's the behavior the user expects. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-Visited-Color-Doesn-t-Change-any-ideas-tp4119563p4120037.html Sent from the

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread Sven Meier
Use bookmarkable page links? Sven On 11/29/2011 06:38 PM, eugenebalt wrote: Thanks, any ideas on how to mark the links correctly as visited when the app is currently running? That's the behavior the user expects. -- View this message in context:

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread eugenebalt
They are already BookmarkablePageLinks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-Visited-Color-Doesn-t-Change-any-ideas-tp4119563p4120200.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread Andrea Del Bene
That's strange. BookmarkablePageLinks should generate a constant URL. Do you pass them any PageParameters in the constructor? Have you checked if links URL remains the same from a visit to your page to another? They are already BookmarkablePageLinks. -- View this message in context:

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread Zilvinas Vilutis
afaik BookmarkablePageLinks generate stateless URLs for stateless pages only, otherwise they act as regular links. Please correct me if I'm wrong. Regards Žilvinas Vilutis Mobile:   (+1) 623 330 6048 E-mail:   cika...@gmail.com On Tue, Nov 29, 2011 at 12:29 PM, Andrea Del Bene

Re: Internationalisation issue with WiQuery

2011-11-29 Thread Steve Mactaggart
I'm pretty sure its all UTF-8, as the actual page HTML returns fine with the Russian text, and the static js files for localising the calendars and such work, its just the dynamic JS files generated by WiQuery. On Tue, Nov 29, 2011 at 11:26 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi,

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread Igor Vaynberg
BookmarkablePageLinks always generates a stateless url, thats kind of the point... -igor On Tue, Nov 29, 2011 at 3:59 PM, Zilvinas Vilutis cika...@gmail.com wrote: afaik BookmarkablePageLinks generate stateless URLs for stateless pages only, otherwise they act as regular links. Please correct

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-29 Thread Doug Leeper
Out of curiosity, why aren't you using ContextImage? That would help with the contextual path for the logout.png. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Caching-Imagages-CSS-JS-in-Wicket-1-5-3-tp4121068p4121323.html Sent from the Users forum mailing list

Re: Internationalisation issue with WiQuery

2011-11-29 Thread Steve Mactaggart
Seems it may have been a known bug in wiQuery, I was wrong in thinking we were running the latest wiQuery, and now post the update the generated JS files have the correctly localised text strings. 2011/11/30 Steve Mactaggart st...@whitesquaresoft.com I'm pretty sure its all UTF-8, as the actual

Re: Jquery Confirmation Dialog - or WiQuery Dialog?

2011-11-29 Thread sauli.ketola
I'm not sure if you need this for an ajax button but I think you can do something similar for a normal button too. I achieved the same thing like this: 1. Create a class ConfirmBehavior that extends AbstractBehavior. 2. Override onRendered -method with this (adds the div containing the dialog

AjaxPayload equivalent in Wicket 1.4

2011-11-29 Thread Clint Checketts
I want to create a parent panel that will have several child panels. I'm making it so the parent panel will automatically add child components to the AjaxRequestTarget via its logic and detecting which ones it detects need to update. I can see how to make it work great if the AjaxLink calls the

Re: AjaxPayload equivalent in Wicket 1.4

2011-11-29 Thread Martin Grigorov
Hi Clint, I'd recommend to look in AjaxRequestTarget itself. It has addChildren(parentInstance, Child.class) method with update all children with type Child of this parent. Check also AjaxRequestTarget.IListener. Or add ParentClass#update(AjaxRequestTarget) so you can do: AnotherClass#onEvent(ART