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 forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/How-can-I-add-multiple-components-in-a-table-cell-tp4671806.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-send-a-request-to-an-external-url-from-wicket-tp4671642p4671644.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 payment server.

something like
protected void onSubmit(final AjaxRequestTarget target, final Form? form)
{
  vvalidate fields
if (fields are valid) {
buildRequestParameter;
sendPostRequest 
redirect client to the payment server.
}
}

What is the recomended way to do this?
Thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-send-a-request-to-an-external-url-from-wicket-tp4671642.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-load-localized-css-resource-with-custom-name-tp4671426.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-load-localized-css-resource-with-custom-name-tp4671426p4671429.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-can-I-build-a-POST-request-to-an-external-url-tp4668430.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 values on the server side in a wicket manner. 
Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-can-I-build-a-POST-request-to-an-external-url-tp4668430p4668434.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Which-is-recomended-way-to-implemen-an-editable-repeating-view-tp4664028p4664059.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 input must be processed and model updated. 
Thanks in advance. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Which-is-recomended-way-to-implemen-an-editable-repeating-view-tp4664028.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Can-I-get-an-input-text-value-if-it-s-not-in-a-form-tp4663967p4664029.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Can-I-get-an-input-text-value-if-it-s-not-in-a-form-tp4663967.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 AjaxFormComponentUpdatingBehavior(onblur), when the
component is validated, the hint is considered input text.
Example, for a text field for age, teh text 'Please enter your age' is
considered as input text. After rendering, the text is not styled as a hit
anymore.
I could not figure out what is different between the two ajax request
(submit button and ajaxformcomponentupdatingbehavior)

Thanks. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Visural-wicket-input-text-hint-is-considered-as-input-value-tp4662584.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 row object when I create the column?
Thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AbstractColumn-get-row-object-tp4661924.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661778.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 new
ClassStringResourceLoader(MyClass.class).loadStringResource(clazz,
property,...);

Also the browser does not display UTF-8 characters. How can I tell the
browser to do that without converting native characters to ascii.

Thanks. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Localised-drop-down-options-tp4661751.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 better solution?
Thanks. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Disabled-drop-down-do-not-pass-required-validator-tp4661187.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 other better way? 
Thanks.  



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-can-I-get-the-input-value-of-a-customized-formcomponentpanel-tp4657375.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 modal close
button.  
Which is the recommended method?
Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/send-message-from-modal-window-to-parent-tp4657185.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/acces-denied-on-AjaxFormSubmitBehavior-on-ie-tp4656894p4656927.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
not updated. Can I force file's model update to get the uploaded file? 
Thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/acces-denied-on-AjaxFormSubmitBehavior-on-ie-tp4656894.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 cause and how can I find the cause in my application? 
Thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-tp4654698.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Remove-cookie-problem-tp4653612p4653905.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Remove-cookie-problem-tp4653612p4653868.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Remove-cookie-problem-tp4653612p4653881.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 redirect to: , HTTP Response has already been committed.

java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:433)
at
org.apache.wicket.protocol.http.WebResponse.sendRedirect(WebResponse.java:299)




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Remove-cookie-problem-tp4653612.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 populateItem(final ItemICellPopulatorlt;UserDetailsVO item,
final String componentId, final IModelUserDetailsVO rowModel)
{
item.add(new AjaxLink { ... });
}

Thanks. 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-set-content-of-an-ajax-enabled-link-tp1882634p4653254.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Redirect-page-via-POST-method-tp4652736.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 in context: 
http://apache-wicket.1842946.n4.nabble.com/get-new-value-of-drop-down-inside-vieworedit-on-onchange-tp4652479p4652557.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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. 

Thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-new-value-of-drop-down-inside-vieworedit-on-onchange-tp4652479.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Autocomplete-Problem-on-Chrome-tp4652290p4652302.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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. 
It works fine on Firefox, but on chrome only the first option can be chose.
The list doesn't appear at second time. It appears only if the component
loses focus. 
We are using wicket autocomplete  features to customize it. 
Does anyone know what is the problem, or can offer a solution?
Thanks. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Autocomplete-Problem-on-Chrome-tp4652290.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 the two method I used.

CollectionT leftChoices = leftChoice.getChoices();
CollectionT selectedLeftChoices = leftChoice.getModelObject();

The compiler complains at first method. getChoices. Shouldn't return return
a collection of T.  compiler ask me to cast at CollectionT. Is it safe to
do this?
I checked the wicket sources but couldn't find the cause.
Is anything wrong?
Thanks. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getChoices-from-ListMultipleChoice-tp4650725p4650790.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 the two method I used.

CollectionT leftChoices = leftChoice.getChoices();
CollectionT selectedLeftChoices = leftChoice.getModelObject();

The compiler complains at first method. getChoices. Shouldn't return return
a collection of T.  compiler ask me to cast at CollectionT. Is it safe to
do this?
I checked the wicket sources but couldn't find the cause. 
Is anything wrong?
Thanks. 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getChoices-from-ListMultipleChoice-tp4650725p4650789.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 message in context: 
http://apache-wicket.1842946.n4.nabble.com/getChoices-from-ListMultipleChoice-tp4650725.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/getChoices-from-ListMultipleChoice-tp4650725p4650730.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 =
getSession().getMetaData(lastPageIdVersionKey);
final PageIdVersion pageIdVersion =
lastPageMap.get(getPageMap().getName()).last;
...

Anyone an idea?
Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getLastPage-is-block-third-party-cookies-tp4649750.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
'com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.UploadFilesControl$1$1'
not found. Enable debug messages for org.apache.wicket.util.resource to get
a list of all filenames tried.: [MarkupContainer [Component id =
iconMinusPanelId]]
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component
'com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.UploadFilesControl$1$1'
not found. Enable debug messages for org.apache.wicket.util.resource to get
a list of all filenames tried.: [MarkupContainer [Component id =
iconMinusPanelId]]
at
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:227)  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356p4634680.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 reference from the redirect page to the page that created
the link. How can this be made?
Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Redirect-to-Wicket-page-with-301-Moved-Permanently-tp4631888p4632051.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
'org.apache.wicket.markup.html.panel.Panel' not found. Enable debug messages
for org.apache.wicket.util.resource to get a list of all filenames tried.:
[MarkupContainer [Component id = 1]]
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component 'org.apache.wicket.markup.html.panel.Panel' not found. Enable
debug messages for org.apache.wicket.util.resource to get a list of all
filenames tried.: [MarkupContainer [Component id = 1]]

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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?  
The situation is that from that panel I go to another one and after I return
to it I get that error. I added a repeater and this could be the problem.  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356p4632436.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356p4632612.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/html-markup-modified-on-calling-a-javascript-tp4592613p4592613.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 certain situation where it cannot.
at
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:113)
at
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:83)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:504)
at org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1748)
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:888)
at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:148)
at
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
...


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-wicket-error-tp4185488p4424397.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/No-answers-in-last-time-tp4396828p4396828.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 change locale. I have to click on date time picker and after the format is
changed.  
Thanks for reply. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-date-format-on-changing-locale-tp4383834p4397196.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-date-format-on-changing-locale-tp4383834p4386555.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 press
submit, lets say the validation fails for other reason, when I change the
locale to en-GB the date is still the german format. I have to choose again
the date, and now it has the right format. If I don't press submit, when
changing back to de-DE the date has the german format(even if before was
english format). If I press the submit when locale is en-GB and the I change
to de-DE the date has english format. 
I hope it is clear the situation, and maybe you have an answer for this. 
Thanks.   

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Promlem-with-date-format-on-changing-locale-tp4383834p4383834.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/get-key-from-resource-model-tp4376269p4376269.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/call-a-javascript-tp4372863p4372863.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 SubmitButton(submit,
new ResourceModel(my.key)); there is no text on my button.
If I inspect the element a has a attribute value with the text.
How can I solve this?
Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/replace-input-type-button-with-tag-a-tp4320997p4320997.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4292045.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 any idea? 
Thanks. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4292048.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Problems-in-ie-if-I-send-jsessionid-tp4292175p4292175.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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?
Thanks. 
P.S Sorry for being so insistent but I am quite new in wicket.   



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4288412.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 that if I block third party cookies the iframe I open creates
a new session.  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4285130.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 explain a little bit more detailed? Maybe a sketch of code. Where
should this be done? Do I have to override a method? I didn't understand
how. 
Thanks. 
By the way, are you from Romania? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4285272.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 wicket1.4.8 and there is no method
scheduleRequestHandlerAfterCurrent. What can I use instead?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4285622.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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
stepTwoUploadFilesContainer:calculateButton
(path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible

Which can be the cause? The submit button is never hidden, but the container
that holds it. 
I suppose that this is the code where it enters from Form class from wicket
sources :
if (!component.isVisibleInHierarchy())
{
throw new
WicketRuntimeException(Submit Button  +
   
submittingComponent.getInputName() +  (path= +
   
component.getPageRelativePath() + ) is not visible);
}

Has anyone any idea? 
Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4281720.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 application session to
the iframe. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4282241.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 old one null. So
 I loose all the informations put on session. 
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-set-the-session-tp4281720p4282292.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
stepTwoUploadFilesContainer:calculateButton
(path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible

Which can be the cause? The submit button is never hidden, but the container
that holds it.
Here is the button code:
calculateButton = new CalculateButton(calculateButton,
/wos/stepTwoUploadFiles/calculate);
calculateButton.setDefaultFormProcessing(false);
add(calculateButton);

I suppose that this is the code where it enters from Form class from wicket
sources :
if (!component.isVisibleInHierarchy())
{
throw new
WicketRuntimeException(Submit Button  +
   
submittingComponent.getInputName() +  (path= +
   
component.getPageRelativePath() + ) is not visible);
}

Has anyone any idea? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/any-idea-where-this-error-comes-from-tp4217040p4217040.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/any-idea-where-this-error-comes-from-tp4217040p4217192.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
(path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible
org.apache.wicket.WicketRuntimeException: Submit Button
stepTwoUploadFilesContainer:calculateButton
(path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible

Which can be the cause? The submit button is never hidden, but the container
that holds it. 
Here is the button code: 
calculateButton = new CalculateButton(calculateButton,
/wos/stepTwoUploadFiles/calculate);
calculateButton.setDefaultFormProcessing(false);
add(calculateButton);

I suppose that this is the code where it enters from Form class from wicket
sources : 
if (!component.isVisibleInHierarchy())
{
throw new 
WicketRuntimeException(Submit Button  +

submittingComponent.getInputName() +  (path= +

component.getPageRelativePath() + ) is not visible);
}

Has anyone any idea?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/reloading-a-component-with-ajax-submit-button-tp1871126p4214331.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
(path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible
org.apache.wicket.WicketRuntimeException: Submit Button
stepTwoUploadFilesContainer:calculateButton
(path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible

Which can be the cause? The submit button is never hidden, but the container
that holds it.
Here is the button code:
calculateButton = new CalculateButton(calculateButton,
/wos/stepTwoUploadFiles/calculate);
calculateButton.setDefaultFormProcessing(false);
add(calculateButton);

I suppose that this is the code where it enters from Form class from wicket
sources :
if (!component.isVisibleInHierarchy())
{
throw new
WicketRuntimeException(Submit Button  +
   
submittingComponent.getInputName() +  (path= +
   
component.getPageRelativePath() + ) is not visible);
}

Has anyone any idea? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4214363.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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(),
getString(Util.getDomainVOKey(domainVO.getId().toString();

where subject matter is the list of choices. that has a pair of id and
display value. I want the display value to be internationalized. If I eneter
this page with the locale already changed the values are translated. Any
idea how can I refresh the values when I change the locale. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4204686.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 clear what I mean.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4204967.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 there.
This is some part of stack trace:


org.apache.wicket.protocol.http.request.InvalidUrlException:
org.apache.wicket.WicketRuntimeException: component
inputForm:editQuoteContainer:rowPanel:repeater:1:addCombination not found on
page
com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.EditQuoteDetails[id
= 1], listener interface = [RequestListenerInterface
name=IActivePageBehaviorListener, method=public abstract void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262)
..
..
..Caused by: org.apache.wicket.WicketRuntimeException: component
inputForm:editQuoteContainer:rowPanel:repeater:1:addCombination not found on
page
com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.EditQuoteDetails[id
= 1], listener interface = [RequestListenerInterface
name=IActivePageBehaviorListener, method=public abstract void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4185488.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4185720.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 inaccessible. After the submit is
finished, on decorateOnSucces or decorateOnFailure the image is again hidden
and the form is again available. 
I think that the problem is when the user click on the link right after the
form is available again but the ajaxsubmitlink is not yet updated. 
How can I tell to javascript to wait just a little more before it hides
again the loading image? 
I hope is clear what I said.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4186262.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 AjaxFallbackLink :
if (target!=null) {
.// ajax callback, tell wicket to repaint the table only
target.addComponent(table);
} else {
// regular callback, ajax not available, repaint the current page
}

Why for AjaxLink you should not care about target being null if ajax not
available. It is also an Ajax component. 
I hope is clear my question.
Thanks


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4168210.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 refresh only some components but allso the
wicket:message properties as they have no java 
corespondent. 

I want to to something like this: 
target.add(component1);
target.add(component2);
and also refresh the wicket:message. Is there a solution.
I hope is clear what I ask. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4164652.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 development machine I don't get the exception and i
cannot reproduce this bug.  This doesn't happen on FF or Chrome, nor on IE
on my computer.
Does anyone know wich can be the cause. Here is the code: 

  @Override
public void onClick(AjaxRequestTarget target)
{
captchaImageResource = new CaptchaImageResource();
captchaImage.setImageResource(captchaImageResource);
   
equalInputValidator.setFieldValue(captchaImageResource.getChallengeId());
target.addComponent(captchaImage);
}

and a part of stacktrace :

org.apache.wicket.WicketRuntimeException: Method onLinkClicked of interface
org.apache.wicket.markup.html.link.ILinkListener targeted at component
[MarkupContainer [Component id = changepicture]] threw an exception
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193)
at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1252)...
.
.
Caused by: java.lang.NullPointerException
at
com.lingo24.orderingsystem.customer.web.wicket.registration.Registration$CaptchaImageFallbackLink.onClick(Registration.java:787)
at
org.apache.wicket.ajax.markup.html.AjaxFallbackLink.onClick(AjaxFallbackLink.java:119)
at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:225)


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4165457.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 worked. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4165836.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4166036.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/problems-with-AjaxFallbackLink-on-IE-tp4165457p4166045.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
ResourceModel(baloise.order.create.ordercreate.sourcelanguagetooltip));
behavior.setFadeInOut(true);
sourceLanguageTooltip.add(behavior);

It give me the message that it doesn't find the key, but surely the key is
there. Any idea? 
I've got the same error with the code 
myLabel = new Label(id, new ModelString(new
ResourceModel(key).getObject()) ). but i solved by passing the
ResourceModel directly to label. But for TolltipBehavior I found no
solution. 

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160300.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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:
 targetLanguageToolTip = new Label(targetLanguageToolTip);
targetLanguageToolTip.add(new LTooltipBehavior(new
ResourceModel(baloise.order.create.ordercreate.targetlanguagetooltip)).setFadeInOut(true));
targetLanguageToolTip.setOutputMarkupId(true);

and I also tried for test the following as you saw thinking that the problem
is in my behavior: 

sourceLanguageTooltip = new Label(sourceLanguageTooltip);
BeautyTipBehavior behavior = new BeautyTipBehavior(new
ResourceModel(baloise.order.create.ordercreate.sourcelanguagetooltip));
behavior.setFadeInOut(true);
sourceLanguageTooltip.add(behavior);
sourceLanguageTooltip.setOutputMarkupId(true);



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160335.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160360.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 message in context: 
http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160383.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 explanation in that wiki.

P.S As you probably noticed I'm very new in wicket, and there my questions
may seem stupid. But I enjoy wicket very much.
It's the coolest web framework I worked with. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160463.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



  1   2   >