Re: How can I add multiple components in a table cell?

2015-08-17 Thread cosmindumy
Ah, thanks. I tried with WebMarkupContainer but I got error rendering components. It makes sense using panel. Regards, Cosmin. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-I-add-multiple-components-in-a-table-cell-tp4671806p4671808.html Sent from the Users

How can I add multiple components in a table cell?

2015-08-17 Thread cosmindumy
Hello, Is clear that only one component can be added in table cell. Can I add a container with multiple components inside? Or is there any other option to do this? Thanks, Cosmin -- View this message in context:

Re: how to send a request to an external url from wicket?

2015-07-22 Thread cosmindumy
Hi Sven, Thanks for your response but I think I cannot use this option. I need to pass to that url the form parameters. On my onSubmit, I need to build a list of parameters and pass via a post method to the url to be processed. This exception does not allow a list of parameters. Cheers, Cosmin.

Re: how to send a request to an external url from wicket?

2015-07-22 Thread cosmindumy
Ya, I need to submit the form with post method. This answer helped me. I will try it. Thanks a lot, Cosmin. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-send-a-request-to-an-external-url-from-wicket-tp4671642p4671646.html Sent from the Users forum mailing

how to send a request to an external url from wicket?

2015-07-21 Thread cosmindumy
Hello, My form needs to make the post request to an external URL. Basically is about sending a request to a payment server. I know that my form needs to override the action value, but what I actually want is to validate the form and handle the fields and afterwards to send the request to the

Is it possible to load localized css resource with custom name.

2015-06-30 Thread cosmindumy
Hello wicket friends, Is it possible in wicket 1.4 to apply the same algorithm to load a css file with a custom name. (not having name MyPanel.css) Example: if my css file is named mycss.css and locale fr-FR I want to load both mycss.css and mycss_fr_FR.css Thanks, Cosmin -- View this message in

Re: Is it possible to load localized css resource with custom name.

2015-06-30 Thread cosmindumy
No, it is not implementing. Seems that the upper panel in hierarchy implements IHeaderPartContainerProvider I add css resource like this add(CSSPackageResource.getHeaderContribution(Page.class, mycss.css)); in constructor. -- View this message in context:

How can I build a POST request to an external url?

2014-11-17 Thread cosmindumy
Hello, Although I saw a similar topic was opened, I think that answered does not fit my needs. I have wicket form and the request should be handled by an external url. Is it possible to build a request using form parameter values and redirect it it to the external url? Thanks. -- View this

Re: How can I build a POST request to an external url?

2014-11-17 Thread cosmindumy
I need the inputs to be wicket components to handle them. On the form buitton onSubmit I need to forward form processing to an external url after some input processing. Therefore the form should be also a wicket form. I'll consider also that aproach, but I'd rather build the post after getting

Re: Which is recomended way to implemen an editable repeating view

2014-01-30 Thread cosmindumy
Thanks for your reply. Now is clear the difference between all repeater implementations. The solution was actually very simple. I used property model which automatically updates the object after processing form. I just wanted to update a bean. Regards. -- View this message in context:

Which is recomended way to implemen an editable repeating view

2014-01-29 Thread cosmindumy
Hello, I want to know which is the best way to implement a repeating view, preferable data view which contains an input field in each row. On submit, I need to get an iterator to get reference both to row model (example a Person object) and to editable component (ex an input text for age). The

Re: Can I get an input text value if it's not in a form?

2014-01-29 Thread cosmindumy
Thanks. I wrapped the input in a form and used an ajax submit link. I could not figure out how can I send parameters from client by doing the work manually, but I will take a deeper look. Thanks. -- View this message in context:

Can I get an input text value if it's not in a form?

2014-01-27 Thread cosmindumy
Hello, I want to get the value of in input text when pressing when pressing an ajax link? None of the elements are included in a form. Is that possible? Seems that input value is not submitted to server. Thanks. -- View this message in context:

Visural wicket, input text hint is considered as input value.

2013-11-21 Thread cosmindumy
Hello, I don't know if here is the right place to ask this question, but visural wicket group seems to not be active anymore. I used visural wicket library to display hint into a text field. When submitting the form by an ajax button, the component is properly handled. But when I use a

Re: AbstractColumn get row object

2013-10-24 Thread cosmindumy
Thanks for relies. I saved the reference in newCellItem. Cheers. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AbstractColumn-get-row-object-tp4661924p4661939.html Sent from the Users forum mailing list archive at Nabble.com.

AbstractColumn get row object

2013-10-22 Thread cosmindumy
Hello, Maybe is newbie question but I couldn't figure out how to get the object of a row in a data table in a AbstractColumn. I want to add a edit button as last cell in the row. Here is my code: ListIColumnlt;Person createTableColumns() { ... columns.add( new EditColumn (...)) } May I get the

Re: How to localize options in drop down.

2013-10-10 Thread cosmindumy
Mission accomplished. I used the method with *.utf8.properties. I'm sure the properties in xml files had also worked. Wicket localization is great. Thanks for helping. -- View this message in context:

Re: How to localize options in drop down.

2013-10-09 Thread cosmindumy
Hello, Thanks for answering. They are in *.properties. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661761.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to localize options in drop down.

2013-10-09 Thread cosmindumy
Yes, Now they are unicode. Something like property.date=F\u00E4llig ab. But I want to use native characters in propery file as is easier to handle. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661763.html Sent from

Re: How to localize options in drop down.

2013-10-08 Thread cosmindumy
Solved the localization problem. I didn't know wicket convention about localization in choices. There is still the problem with utf-8. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661753.html Sent from the

Localised drop down options

2013-10-08 Thread cosmindumy
Hello again, I have a question regarding localization in drop downs. I need the options inside the drop down to be localized. When I change the language, the options are not changed. Only if I access the page again. Here is how I implemented the getDisplayValue method in ChoiceRenderer: return

Disabled drop down do not pass required validator.

2013-09-04 Thread cosmindumy
Hello, I have drop down with a required validator. My form is not auto processed and I do the validation call. If the field is disabled, the required valitator fails which I do not want. A workaround was to override the method isInputNullable to return false. Is this safe? Or is there a

Re: Disabled drop down do not pass required validator.

2013-09-04 Thread cosmindumy
Thanks for response. Seems that best solution is replicate wicket behaviour. To validate only if is enabled and visible. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabled-drop-down-do-not-pass-required-validator-tp4661187p4661190.html Sent from the Users

how can I get the input value of a customized formcomponentpanel

2013-03-20 Thread cosmindumy
Hi again, I created a customized form component. I want to know which is the best way to get the input value of the component. When the user generated a new input I modify the 'value' attribute. How can I get the 'value' attribute of the component? I need it for further processing. Or is it

send message from modal window to parent

2013-03-12 Thread cosmindumy
Hello, Is it possible to send a flag from modal window to the parent page in order to make additional operations? ModalWindow.WindowClosedCallback doesn't help. I want to send that message if the modal window was closed after pressing the submit button( that calls modal.close()), and not from

Re: acces denied on AjaxFormSubmitBehavior on ie

2013-03-04 Thread cosmindumy
hi again, I realized this happens if the open dialog for file is triggered by a js, not by pressing the browse button. if I press the browse button, it works fine. Probably is something wrong with the logic in my js. if you have any idea, let me know. Thanks. -- View this message in context:

acces denied on AjaxFormSubmitBehavior on ie

2013-03-01 Thread cosmindumy
Hello, Added a formsubmitbehavior on a input type file in order to get the file after it is uploaded on onchange event. I get in console access denied on internet expolrer on form.submit js call. How can this be fixed? Another method would be ajaxformcomponentupdatebehavior but file model is

MarkupNotFoundException

2012-12-11 Thread cosmindumy
Hi, I started a new application and I receive the following exception. /org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup. Component is not yet connected to a parent/ The application is quite simple. I subclassed the application and a home page. Which is usually the

Re: Remove cookie problem

2012-11-15 Thread cosmindumy
Hi, I couldn't find yet a solution. When pressing login button, after validation, it should be redirected to /j_acegi_security_check?j_usernameand so on. Using getRequestCycle().setRequestTarget(..) makes parameters visible in browser. Which is the best solution? Thanks. -- View

Re: Remove cookie problem

2012-11-14 Thread cosmindumy
Hi again, The problem is that login is handled with acegi. How can I set the action of a form and use the POST method?. Then I have to add the needed parameters. Is something like this. form action=j_acegi_security_check method=POST /form Thanks. -- View this message in context:

Re: Remove cookie problem

2012-11-14 Thread cosmindumy
Hi, Seems that action attribute cannot be modified. I want to handle the authentication with acegi. This means a redirct to j_acegi_security_check with post method. Can I find an example? I use wicket 1.4.19. Thanks. -- View this message in context:

Remove cookie problem

2012-11-05 Thread cosmindumy
Hi, I added a cookie at login using CookieValuePersister. At logout I want to remove the cookie. The logout is not handled in wicket. I remove it using javax.servlet.http.HttpServletResponse. Also, when I access again a page after logout I receive an IllegalStateException: Unable to

Re: How to set content of an ajax enabled link?

2012-10-23 Thread cosmindumy
Hi, How can I set the text inside a ajaxlink. I use a table and on populateItem on AbstractColumn I add a link. I don't want to use another component with onclick ajax behavior.I also cannot add a child to ajaxlink. I do not have control on it on html. Here is the code. public void

Redirect page via POST method

2012-10-08 Thread cosmindumy
Hello, How can I go to a page with a given url with POST method, instead of using a redirect page which uses GET method. I want to send some private information from one to another as page parameters. Thanks. -- View this message in context:

Re: get new value of drop down inside vieworedit on onchange

2012-10-01 Thread cosmindumy
Thanks. It worked. But I have another question. I want the drop down inside vieworedit in some cases to be disabled. If I disable it is automatically replaced with label. I want to be replaced with label only when my condition is true. Is there any possibility? Thanks. -- View this message

get new value of drop down inside vieworedit on onchange

2012-09-28 Thread cosmindumy
Hi, I want to get the new selected of a dropdown wich is inside a vieworedit component. Attached an ajax behaviour on onchange event, but cannot get the new vale. Do not need model object. drop down value is enough, but it is still the old valuel. I setted on selection changed notification.

RE: Autocomplete Problem on Chrome

2012-09-25 Thread cosmindumy
Thanks. Although I would prefer to solve the bug in our framework, I'll take some time to integrate Igor's js library. I saw it in action and I was excited. Regards. -- View this message in context:

Autocomplete Problem on Chrome

2012-09-24 Thread cosmindumy
Hello, I have a problem at autocomplete on Chrome. We have a customized textfield that is autocomplteted with values from a list. Each time after user input text, a list of values appears, and after the user chose one, it can again type text and the behaviour repeats. It acts as a multiple select.

Re: getChoices from ListMultipleChoice

2012-07-26 Thread cosmindumy
Thanks It helped me. But just another problem. I have a customized multiple choice with 2 multiple ListMultipleChoice inside. and movieng selected choices from each other. I have problems with safe cast. Here is my class definition: public class CusomizedMultipleChoiceT extends Panel Here are

Re: getChoices from ListMultipleChoice

2012-07-26 Thread cosmindumy
Thanks It helped me. But just another problem. I have a customized multiple choice with 2 multiple ListMultipleChoice inside. and movieng selected choices from each other. I have problems with safe cast. Here is my class definition: public class CusomizedMultipleChoiceT extends Panel Here

Re: getChoices from ListMultipleChoice

2012-07-24 Thread cosmindumy
Hi, Just tried at home and still get null on getModelObject(). Here is the complete code: http://shorttext.com/oSTpzOm Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getChoices-from-ListMultipleChoice-tp4650725p4650745.html Sent from the Users forum

getChoices from ListMultipleChoice

2012-07-23 Thread cosmindumy
Hi, I'm trying to get the selected options from a ListMultipleChoice but didn't find a method to get a collection of selected options. I'm using the getValue method that return a String of choices separated by ; but I'm sure is not right. What method should I use? Thanks. -- View this

Re: getChoices from ListMultipleChoice

2012-07-23 Thread cosmindumy
Hi again, Sorry. I forgot to say that I tried this and I get null. I thing we change something in our framework and the wicket doesn't handle properly the multiple choice. Does anyone has an idea what can be? -- View this message in context:

getLastPage is block third party cookies

2012-06-06 Thread cosmindumy
Hi, I have problems when trying to retrieve last page if block third party cookies are set in browser. All my pages extends a base page that has a method storeCurrentPate(). I try to get last page like : final HashMapString, PageIdVersion lastPageMap =

Make additional actions on click on external links

2012-05-28 Thread cosmindumy
Hello, How can I make additional actions on click event on external link? It doesn't implement onClick method. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Make-additional-actions-on-click-on-external-links-tp4649516.html Sent from the Users forum mailing

Re: Make additional actions on click on external links

2012-05-28 Thread cosmindumy
Thanks for reply. I solved. I added a behaviour with onclick event. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Make-additional-actions-on-click-on-external-links-tp4649516p4649518.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AW: how to debug MarkupNotFoundException

2012-05-15 Thread cosmindumy
So, I haven't solved the MarkupNotFoundException. The error occurs after I refresh the parent of repeater using Ajax. Actually I use a ListView. Here is the error in the log: RequestCycle.java | 1531 | Markup of type 'html' for component

Re: How can I get the page before the current one?

2012-05-14 Thread cosmindumy
Hello, I also have a question. I hope is the right place here for it. I didn't wrote that code, so I don't know exactly what happen there, but the main idea is that a link is created like this. link.append(RequestCycle.get().urlFor(pageMap, Upload.class, new PageParameters(? I want to get a

how to debug MarkupNotFoundException

2012-05-14 Thread cosmindumy
I've got the following exception. How can I know wich is the problem? I have a FormComponent that has inside a RepeatingView. I'm not sure that is the problem, but I coldn't find ogher cause. How can I start debugging the cause? Markup of type 'html' for component

Re: AW: how to debug MarkupNotFoundException

2012-05-14 Thread cosmindumy
Thanks for reply. Actually the panel is first time displayed, but after I refershit with ajax I get that exception. The problem is that I don't know exactly which panel cause that problem. Is it mandatory to be a panel that is in its own class and has html file or it might be any other panel?

Re: AW: how to debug MarkupNotFoundException

2012-05-14 Thread cosmindumy
The problem is at repeater. I replaced it with another dummy component and there is no error. I just have to learn how to use the repeater. Maybe you can help with a link at a good example. -- View this message in context:

html markup modified on calling a javascript

2012-04-27 Thread cosmindumy
Hello, I have a customized panel and inside a ajaxlink and on onRender from panel's behavior I call a javasript.I don't know why after calling the javascritp the markup is modified prom . to . The javascript is not important. I tried with alert('x') and the markup is modified. Any idea? Thanks

How to add unknown number of components?

2012-04-25 Thread cosmindumy
Hello, I want to add multiple ajaxlinks. Actually I don't know the number. How cand I add them dinamically and generate the html dinamically? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-unknown-number-of-components-tp4585816p4585816.html Sent

Re: Cannot reproduce a wicket error.

2012-02-27 Thread cosmindumy
There is another exception that I don't know where it comes from. It sais: java.lang.IllegalStateException: ServletRequest does not contain multipart content. One possible solution is to explicitly call Form.setMultipart(true), Wicket tries its best to auto-detect multipart forms but there are

No answers in last time

2012-02-17 Thread cosmindumy
Hello, It's not a wicket core question but I noticed that my last posts got no answer, starting with end of December. Are my questions too stupid or the wicket experts are overloaded? Thanks. -- View this message in context:

Re: Promlem with date format on changing locale

2012-02-17 Thread cosmindumy
I solved it somehow. I used addOrReplace(component) so the date is again replaced with the format of the new locale. It's not good solution. Anyway, I have DatePanel that has inside a DateTextField. There is no setter for converter of Date Text Field. In my case date format is not changed when I

Re: Problem with date format on changing locale

2012-02-14 Thread cosmindumy
I actually want to know if I can set date format. I want to set it after submit. There is #forDatePattern(...) but this can be used at page initialization, instead of constructor. Thnaks. -- View this message in context:

Promlem with date format on changing locale

2012-02-13 Thread cosmindumy
Hello again, I have the following problem. I have a customized DateTimePanel component, wich has a DateTextFiled. The problem is that when I change the locale and pressing submit the date is not valid anymore due to date format. For example I have set the locale de-DE, date looks 02.02.2012 I

get key from resource model

2012-02-10 Thread cosmindumy
Hello, My displayed texts are localized using ResourceModel('my.key'). Is it posible to get the key for ResourceModel, or an object from whom I can extract the key? Thanks. -- View this message in context:

call a javascript

2012-02-09 Thread cosmindumy
Hello again, I want to call a javascript when a java event. Actually on method mymethod() from my button I want to set a javascript and the first time the button is rerendered to call it. How can I do this? Thanks -- View this message in context:

Re: replace input type=button with tag a

2012-01-24 Thread cosmindumy
In wicket 1.4.18 there is no method setBody() in AbstractLink. If there is no other possibility don't bother. I found a backup solution. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-input-type-button-with-tag-a-tp4320997p4323257.html Sent from the Users

replace input type=button with tag a

2012-01-23 Thread cosmindumy
Hello, Due to Internet Explorer issues, I have to change all input wicket:id=id type = button with Everything was fine until I had to change a component whose value was put using ResourceModel. The java component is a customized AjaxButtom. When I instatiate the component like submit = new

Re: replace input type=button with tag a

2012-01-23 Thread cosmindumy
Hi, SubmitLink doesn't know ajax, nor AjaxCallDecorator. And AjaxSubmitLink doesn't has a model. How can I dinamically change the text in AjaxSubmitLink? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-input-type-button-with-tag-a-tp4320997p4321148.html Sent

RE: Is it possible to set the session?

2012-01-13 Thread cosmindumy
Hi, I solved the problem. Thanks for your idea. Now I have another problem that is a little off topic. The problems occurs only in Internet Explorer. I send a url with some parameters. But when I construct the respective wicket page, the parameters are emty. They are lost somewhere. -- View

RE: Is it possible to set the session?

2012-01-13 Thread cosmindumy
Hi, I solved the problem. Thanks for your idea. Now I have another problem that is a little off topic. The problems occurs only in Internet Explorer. I send a url with some parameters. But when I construct the respective wicket page, the parameters are emty. They are lost somewhere. Do you have

Problems in ie if I send jsessionid.

2012-01-13 Thread cosmindumy
Hello, If I send jsessionid in my url like myurl;jsessionid=session?parameters when I construct the wicket page there are no parameters received there although they are sent in url. This happens only in Internet Exporer. Does anyone has an idea? Thanks -- View this message in context:

RE: Is it possible to set the session?

2012-01-12 Thread cosmindumy
Hi again, It worked with ..;jsessionid=43423?param1=value1...; But now I want to do the same think when I use setResponsePage(my page). So now I should use the programatically method that you said to override respond method. But now I don't have a link. Do you have idea wich class should I use?

Re: Is it possible to set the session?

2012-01-11 Thread cosmindumy
Hi, It would be enough for me if I could get session by id. Is there a possibility? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4284724.html Sent from the Users forum mailing list archive at Nabble.com.

RE: Is it possible to set the session?

2012-01-11 Thread cosmindumy
Did you wan to get or set the session? Your subject said 'set' but the body asked about 'get'. It would be awesome if I could set the session with a given one. But it is an option to get the session by id, as I have some informations on the session and I want to access them. The problem is

RE: Is it possible to set the session?

2012-01-11 Thread cosmindumy
This was the first solution. I tried to give the session id as a parameter to the iframe. I tought it's enough and the framework will do the rest. It didn't work. You said that I have to return from that page a response with a JSESSIONID header equal to the value of the session. . Can you

RE: Is it possible to set the session?

2012-01-11 Thread cosmindumy
Hi again, Thanks for your replay and for your time to write the code. But I didn't understand why to do a redirect from iframe page. Which is /page_to_redirect_after_set_session? I don't want any redirect from my iframe page. And where should I put that code? In constructor? And secondary, I use

Is it possible to set the session?

2012-01-10 Thread cosmindumy
Hello, I have 2 questions: 1. I have the situation that if the user press a button an iframe is open. The problem is that if the user has some settings in browser, the session is lost. It creates a new session. Is it possible to set the session to iframe? 2. I've got an error on production

Re: Is it possible to set the session?

2012-01-10 Thread cosmindumy
See Session.bind(). Call it before as soon as the http session should be created. Can you explain a little more what did you mean? I tried mySession.bind in method newSession() from MyWebApplication. I don't know if that's what you mean. I'm interested to know if it's possible to pass my

Re: Is it possible to set the session?

2012-01-10 Thread cosmindumy
Martin Grigorov-4 wrote iframe shares the same http session with any other url in the app That's right.It works fine on normal cases. But if I set Block sites from setting any data and Block third-party cookies from being set when it opens the iframe it creates a new session, finding the

any idea where this error comes from?

2011-12-20 Thread cosmindumy
Hi, I've got an error on production server and I cannot reproduce on my development machine. The error says : woUploadFilesContainer:calculateButton (path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible org.apache.wicket.WicketRuntimeException: Submit Button

Re: any idea where this error comes from?

2011-12-20 Thread cosmindumy
Yes, definitely. But this is not the cause, as this error doesn't occur each time I hide/show this container. Actually I couldn't reproduce on my dev machine. I don't know when this error occurs in order to find the cause. -- View this message in context:

Re: reloading a component with ajax submit button

2011-12-19 Thread cosmindumy
Hi, I know it's off topic but I didn't want to create a separate topic for a simple question. I've got an error on production server and I cannot reproduce on my development machine. The error says : woUploadFilesContainer:calculateButton

Re: Cannot reproduce a WicketRuntimeException.

2011-12-19 Thread cosmindumy
Hi, I know it's off topic but I didn't want to create a separate topic for a simple question. I've got an error on production server and I cannot reproduce on my development machine. The error says : woUploadFilesContainer:calculateButton

Re: Internationalization on panels

2011-12-16 Thread cosmindumy
Hello again. I have one problem with internationalization. I want to internationalize the values from a drop down. But the values are not refreshed when I change the locale. Here is the code subjectsMatterList.add(new SelectOption(domainVO.getId().toString(),

Re: Internationalization on panels

2011-12-16 Thread cosmindumy
It worked. But the problem is that the drop down list is sorted. When I change the locale it keeps the original sorting. The sorting is made depending on locale but it doesn't change the order when I change the locale. Only if I eneter again on this page it is sorted properly. Any idea? I hope is

Re: Internationalization on panels

2011-12-16 Thread cosmindumy
Can you give me a short example? I don't understand what you mean. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4205110.html Sent from the Users forum mailing list archive at Nabble.com.

Cannot reproduce a WicketRuntimeException.

2011-12-12 Thread cosmindumy
On the production server I received an exception. The problem is that I cannot reproduce and I coudn't find the cause. Probably it must be something with browser setting, but I'm not sure. Has anyone an ideea which can be the cause? It says that the component is not found, but the component is

Re: Cannot reproduce a WicketRuntimeException.

2011-12-12 Thread cosmindumy
I'm afraid I didn't understand what exactly do you mean. How can I reproduce this in the development machine? This doesn't happened again. What should I update on client side? -- View this message in context:

Re: Cannot reproduce a WicketRuntimeException.

2011-12-12 Thread cosmindumy
Thanks for your idea. I manages to reproduce the error. It happens extremely rare. Here is the situation. I have a AjaxSubmitLink that make an action. To prevent multiple submit, I use a AjaxCallDecorate that calls a javascript that shows a loading image over the whole form, so that the form is

Re: Cannot reproduce a WicketRuntimeException.

2011-12-12 Thread cosmindumy
I put a setTimeout(..). I hope this will solve the problem. I didn't get this error after puting setTimeout(). Thanks for your response. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4186446.html Sent from the

Re: Cannot reproduce a WicketRuntimeException.

2011-12-12 Thread cosmindumy
Actually it didn't work. I put setTimeout(..). to delay the hiding of loading image but I still got the exception sometimes. Do you have any other ideea? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4186479.html

Re: problems with AjaxFallbackLink on IE

2011-12-07 Thread cosmindumy
I'm a little confused about AjaxFallbackLink. Here is what I found here : http://java.dzone.com/news/interview-how-wicket-does-ajax look at difference between AjaxLink and AjaxFallback link Why for AjaxFallbackLink you shoud be prepared for target being null and for AjaxLink not. In

Re: problems with AjaxFallbackLink on IE

2011-12-07 Thread cosmindumy
a.. Capisci. Many thanks. But how can -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4168259.html Sent from the Users forum mailing list archive at Nabble.com.

Re: problems with AjaxFallbackLink on IE

2011-12-07 Thread cosmindumy
And another question.. Is there a way to refresh my component if ajax is disabled?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4168331.html Sent from the Users forum mailing list archive at Nabble.com.

Re: problems with AjaxFallbackLink on IE

2011-12-07 Thread cosmindumy
Thanks guys, your answers help me to have a better understanding of AjaxFallback.. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4168359.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Internationalization on panels

2011-12-06 Thread cosmindumy
Hi again, I have a curiosity. It's not my problem, but I want to know if is there a solution for the following problem. Now when I change the locale I refresh the whole page. (target.add(MyPage)). But I loose all the changes the user has made. (if he completed some fields) But how can I make to

problems with AjaxFallbackLink on IE

2011-12-06 Thread cosmindumy
Hi, I have a problem wih AjaxFallbackLink on IE. I have a captcha image and I want when I click on image to chage the image. Everything worked fine, but I noted on another machine that on my production server on IE when I click on image I got a null pointer exception. The problem is that on my

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread cosmindumy
I'm not at office now but most surely this line is Registration.java:787 : target.addComponent(captchaImage); and I think target is null. I think I had this problem before in another context, but then target was null all the time, on all browsers. I changed AjaxFallbackLink with AjaxLink and it

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread cosmindumy
Yes, IE is famous with its restrictions installed on a Server version of Windows. Some setting disallows Ajax.. But why on other machines it works. Is a problem with my IE? -- View this message in context:

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread cosmindumy
I believe target is null when you're in fallback mode with an AjaxFallbackLink. You'll need to check for null and handle things accordingly, as though it were a normal link. What means fallback mode? how can I refresh the component if target is null? -- View this message in context:

Re: Internationalization on panels

2011-12-05 Thread cosmindumy
I solved the localization for most of the components except one. This is BeatyTipBehavior This is the code: sourceLanguageTooltip = new Label(sourceLanguageTooltip); BeautyTipBehavior behavior = new BeautyTipBehavior(new

Re: Internationalization on panels

2011-12-05 Thread cosmindumy
I'm afraid I don't understand your question? What do you mean by how do you use ResourceModel ? Actually I have a class LTooltipBehavior that extends BeautyTipBehavior, but i alson tried with BeautyTipBehavior as you saw in the example and it didn't work. Here is the original code:

Re: Internationalization on panels

2011-12-05 Thread cosmindumy
Here is the class: http://www.heypasteit.com/clip/04FA But I don't use the model inside. I just pass it to superclass. Anyway it didn't work with their BeautyTipBehavior, so it should't be a problem with my Behavior. But you can take a look. -- View this message in context:

Re: Internationalization on panels

2011-12-05 Thread cosmindumy
Just as a remar, the following code works, but the tooltip is not refreshed after I change locale: Label phoneTooltip = new Label(phoneTooltip); phoneTooltip.add(new LTooltipBehavior(new ModelString(getString(baloise.settings.userdetails.phonetooltip))).setFadeInOut(true)); -- View this

Re: Internationalization on panels

2011-12-05 Thread cosmindumy
Thanks. :* I subcalssed the Model. It works. I understand now exactly the difference between static and dynamic models. But as I know ResourceModel is a dynamic model. Why it didn't find the key? And why for other components it worked and for BeatyTipBehavior it didn't work? I didn't find an

  1   2   >