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
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:
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.
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
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
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
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:
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
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
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:
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
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:
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:
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
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.
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
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:
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.
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
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
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
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
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
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
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
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:
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
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
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
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:
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:
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
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
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:
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
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.
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:
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.
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
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
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
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
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:
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 =
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
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
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
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
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 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:
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
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
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
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:
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
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:
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
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:
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:
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
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
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
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
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
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:
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?
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.
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
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
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
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
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
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
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
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:
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
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
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(),
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
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.
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
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:
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
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
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
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
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.
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.
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.
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
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
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
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:
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:
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
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:
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:
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
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
Hi again,
I have the same problems with table header columns internationalization.
This is what I use:
-columns.add(new PropertyColumnUser(new ModelString(new
ResourceModel(name.name, Default).getObject()), age, age));
-columns.add(new PropertyColumnUser(new
ModelString(getString(name.name)),
1 - 100 of 112 matches
Mail list logo