Re: FileUploadField selection event

2010-02-09 Thread dpmihai
What I really want is that after file selection automatically set the text of another TextField (inside my form) with a string derived from selected file name. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: FileUploadField selection event

2010-02-10 Thread dpmihai
=test type=file onchange= document.getElementById('secondBox').value = document.getElementById('test').value; /input input id=secondBox type=text / /form On Tue, Feb 9, 2010 at 3:22 AM, dpmihai dpmi...@yahoo.com wrote: What I really want is that after file selection automatically set

DateTimeField and AjaxFormComponentUpdatingBehavior

2011-10-06 Thread dpmihai
In wicket 1.4.17 I want to have AjaxFormComponentUpdatingBehavior on a DateTimeFiled for all its components (text field, hours field, minutes field). I can do this only on date text field : DateTimeField txtTime = new DateTimeField(txtTime, generalModel) { @Override protected

Re: DateTimeField and AjaxFormComponentUpdatingBehavior

2011-10-06 Thread dpmihai
Thank you. But I had to look inside the source to see the index of component children: dateTimeField.get(1).add(new AjaxFormComponentUpdatingBehavior() ...) dateTimeField.get(2).add(new AjaxFormComponentUpdatingBehavior() ...) Is DateTimeField.HOURS a constant defined in wicket 1.5? (I use

Wicket 1.5 markup id for a reused TextField is the same

2012-04-09 Thread dpmihai
I have a panel like : public class IntervalFieldPanel extends Panel { private TextFieldString intervalText; public IntervalFieldPanel(String id, final IModel model) { super(id, model); ... intervalText = new TextFieldString(intervalText, model);

Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
I have an application in wicket 1.4 with a wizard. Inside a WizardStep I have a simple DropDownChoice with an AjaxFormComponentUpdatingBehavior where inside onUpdate method i get the model object protected void onUpdate(AjaxRequestTarget target) {

Re: Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
Did anyone see this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Wizard-and-AjaxFormComponentUpdatingBehavior-for-a-DropDownChoice-tp4542617p4542632.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket 1.5 markup id for a reused TextField is the same

2012-04-09 Thread dpmihai
I found the problem. Inside html I also had the id like: input wicket:id=intervalText id=intervalText ... / In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not overwritten by wicket. So I removed it, and everything is ok. -- View this message in context:

Re: Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
The problem was also the id inside html components. When we have both wicket:id and id, in 1.5.5 id is not overwritten and no events are triggered for that component. I wonder why this was not put inside the migration guide to 1.5. Could be possible to get some warning in case we have something

ContextImage and tooltip behavior

2012-04-10 Thread dpmihai
I want to add a tooltip behavior to a ContextImage in Wicket 1.5.5. public class SimpleTooltipBehavior extends Behavior{ private String tooltip; public SimpleTooltipBehavior(String tooltip) { super(); this.tooltip = tooltip; }

AjaxFormComponentUpdatingBehavior to enable/disable a component

2012-04-12 Thread dpmihai
Hi. I have a set of components C (anything you want Label, DateField, TextField, DropDownChoice ...) and another ChechBox inside a ListItem. I want to use the checkbox for enabling / disabling of all components C (when checkbox is selected I want to disable all C components): final

Re: AjaxFormComponentUpdatingBehavior to enable/disable a component

2012-04-12 Thread dpmihai
Thanks a lot. I did not see it. Also my first error in Wicket Ajax Debug was because I had some invisible components in my ListItem. So after I checked also for visibility everything was ok. -- View this message in context:

DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread dpmihai
I created a simple page with a DateField and an AjaxFormComponentUpdatingBehavior where I want to read the model. The following code does work in Wicket 1.4.16 (prints the selected date), but does not in Wicket 1.5.5 (prints null): public class DatePage extends WebPage { private

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread dpmihai
It does not matter. Your code (DateTextField instead DateField) does not work either in Wicket 1.5.5 It prints just the current date no matter what date I choose. -- View this message in context:

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
The class I put here was the full code: import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.datetime.markup.html.form.DateTextField; import

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.datetime.markup.html.form.DateTextField; import org.apache.wicket.extensions.yui.calendar.DateField; import

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
This workaround works. But it seems DateField and DateTimeField are buggy in Wicket 1.5.5. So the only solution for now is to create my new components DateField and DateTimeField. -- View this message in context:

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
For a DateField and a DateTimeField in the onUpdate method for an AjaxFormComponentUpdatingBehavior , the model is never updated, it rests with the initial date selection. -- View this message in context:

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
Here is the link https://issues.apache.org/jira/browse/WICKET-4496 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554218.html Sent from the Users forum mailing list archive at Nabble.com.

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-18 Thread dpmihai
I saw that the resolution for this bug(https://issues.apache.org/jira/browse/WICKET-4496) is Not a problem using getDefaultModelObject(). But it remains a question. If I have a DatetimeField and I want an AjaxFormComponentUpdatingBehavior so that if I click the button, or if I change the hours or

Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
Hi. I have a code that was working in 1.4 but it shows an error message in wicket 1.5. I have a TextField, an AjaxSubmitLink and a ListMultipleChoice. When I click the submit link I want to add the value from text field to the list. ArrayListSerializable list = new ArrayListSerializable();

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
I forgot to say my object model from TextField is private Serializable objectModel; I do not understand how a String is not Serializable? This code worked on wicket 1.4 without problems. I think something is done different in wicket framework. Can you tell me what class throws this error

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
Yes Decebal. You are right. If I have a TextField of some type but my model is a generic one (in my case objectModel is of type Serializable), I have to overwrite getConverter method like: final TextFieldString textField = new TextFieldString(txtValue, new

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
A DateTimeField does not need the converter to populate a Serializable model: final DateTimeField txtTime = new DateTimeField(txtTime, new PropertyModelDate(this, objectModel)); But there are other bugs with it (https://issues.apache.org/jira/browse/WICKET-4496), so if something

Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2012-05-17 Thread dpmihai
Any news about this? Wicket 1.5.5 has the same problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p4642684.html Sent from the Users forum mailing list archive at Nabble.com.

Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2012-05-17 Thread dpmihai
As I see in css : div class=w_content_2 div class=w_content_3 div class=w_content div id=_wicket_window_3 class=w_content_container style=overflow: auto; because there is a style overflow: auto everything that is inside the dialog will be scrolled. I wonder how can put

Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2012-05-23 Thread dpmihai
I used the workaround with position: static !important. I also had to put a width with the calendar container (otherwise it looks ugly) .yui-calcontainer { width: 140px; } -- View this message in context:

Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread dpmihai
Hi. I have a wicket 1.4 application with a AuthenticatedWebSession with authenticate(String username, String password) method. I use annotations to allow for seeing some components : @AuthorizeAction(action = Action.RENDER, roles = Roles.ADMIN) for example. I want when user logs in to save a

Re: Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread dpmihai
Hi. My problem is not how to read the cookie. I do not know WHERE to read it, because my authentication is done from LoginPanel / LoginValidator, and I do not want my LoginPanel to be shown anymore. -- View this message in context:

Re: Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread dpmihai
I made it by reading cookies in my AuthenticatedWebApplication in @Override public Session newSession(Request request, Response response) { Session session = super.newSession(request, response);

Re: setOutputMarkupPlaceholderTag not working to render panel with setvisible false...

2012-07-02 Thread dpmihai
You make you panel invisible (first time when you create it), but where are you make it visible? The idea is to override public boolean isVisible() { return !commentDomainList().isEmpty(); } in your panel. -- View this message in context:

Wicket 1.4 newSession id

2012-07-03 Thread dpmihai
In my WebApplication is there possible to know the session id inside newSession method? public Session newSession(Request request, Response response) { Session session = super.newSession(request, response); ... String id = session.getId(); // returns null; } --

Re: Wicket 1.4 newSession id

2012-07-03 Thread dpmihai
Thanks a lot. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-newSession-id-tp4650337p4650339.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: after migration to 1.5 I get java.lang.IllegalStateException: Header was already written to response!

2012-08-24 Thread dpmihai
We also have this problem after migrating to 1.5. Everything seems to work ok, but the logs get full with this error. We did not find a solution to this. -- View this message in context:

Re: Migration to 1.5: 'X' is not a valid Serializable

2012-09-05 Thread dpmihai
see this: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ListMultipleChoice-add-Serializable-values-td4585991.html#a4586026 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Migration-to-1-5-X-is-not-a-valid-Serializable-tp4651757p4651764.html Sent from the

Re: problem with IResourceListener

2012-09-20 Thread dpmihai
The strange thing is that only when the browser is just opened we see this behavior. It is not deterministic and sometimes everything is ok from start. Anyway, after a browser refresh, everything is ok. Also if we keep the browser open, and new tabs with the iframes are opened, these are also ok.

Re: Mount Page

2012-10-25 Thread dpmihai
Yes. I was too tired not to think about getApplication() :) I also saw that for a mountPage(/myPage, MYPage.class) to make unmount to work I have to do unmount(myPage) without the starting /. Is this the normal behavior? I find it a bit misleading why the unmount does not work with a

Re: Mount Page

2012-10-25 Thread dpmihai
Added here: https://issues.apache.org/jira/browse/WICKET-4836 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mount-Page-tp4653318p4653335.html Sent from the Users forum mailing list archive at Nabble.com.

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2013-01-11 Thread dpmihai
As the bug link states you have to create date object by yourself. It's ugly as a witch I know. But for wicket 1.5 I had no other solution. I do not know how DateField and DateTimeField perform in wicket 1.6. -- View this message in context:

Re: How to repaint a component on browser resize?

2013-01-17 Thread dpmihai
I understand. I wondered if it is possible that to have a behavior inside my panel and inside renderOnLoadJavaScript (from renderHead) to call a javascript like : wicketAjaxGet(' + getCallbackUrl() + width=...' I have to get the width from javascript somehow with a function, and I have no idea

Re: Wicket 6 : Displaying content in an iframe

2013-03-13 Thread dpmihai
Thank you Ernesto. I was doing respond(attributes); but inside resource onResourceRequested instead to do inside the frame :) My mistake. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Displaying-content-in-an-iframe-tp4657207p4657214.html Sent from the

Wicket 6: LinkResource with a dynamic resource

2013-03-14 Thread dpmihai
Hi. I want to have a table with a Link PropertyColumn which contains a LinkResource. When user clicks on the link I want to be able to pass the row model to resource first and then have the resource loaded. I created a ResourceLinkPropertyColumn class like: public class

Re: Wicket 6: LinkResource with a dynamic resource

2013-03-14 Thread dpmihai
The only solution I have is to create my own class ResourceLink with a method: public void beforeResourceRequested() {} (here I will set rowModel to my resource) and use it inside onResourceRequested: /** * @see org.apache.wicket.IResourceListener#onResourceRequested()

Re: Wicket site on Android phone

2013-11-08 Thread dpmihai
I also tried to make a desktop Wicket application to look good on Android phone. 1. Depending on application there is a big possibility to not be able to show all the information. For me, it was ok to use css media query to have a different css for Android phone. I had to tweak with fonts size

Re: Wicket site on Android phone

2013-11-14 Thread dpmihai
I also recently find that I need to tweak Wicket Palette component look, because on Android a multiple select will not show all the options. You have to click it for selection and after that you can see only the first selected item no matter how big is the height for select markup. I have written

RE: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread dpmihai
In Wicket 5 it was as easy as using br tags inside summary String. In Wicket 6 this simple way does not work anymore. Why? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-line-breaks-in-the-summary-text-of-Wizard-properties-file-tp4660589p4664234.html Sent

Re: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread dpmihai
Thanks. I did the following: @Override public Component getHeader(final String id, final Component parent, final IWizard wizard) { Component c = super.getHeader(id, parent, wizard); c.get(summary).setEscapeModelStrings(false); return c; } -- View

Re: How to manage StalePageException

2015-02-18 Thread dpmihai
Can someone confirm if this: if (e instanceof StalePageException) { return super.onException(cycle, e); } is the right way to let StalePageException be handled by wicket? Is there a problem if the page has PageParameters? -- View this message in context:

How to manage StalePageException

2015-02-18 Thread dpmihai
Hi. I have a WebPage which gives me a StalePageException when more requests are made to it at the same time by same user's page, every one with a different PageParameters object. I also have an AbstractRequestCycleListener with an onException method in my application. I read about