Re: updating a label's model with ajax

2011-05-16 Thread Martin Grigorov
Show us your code. On Mon, May 16, 2011 at 3:58 AM, wmike1...@gmail.com wmike1...@gmail.comwrote: Hi all, I'm looking to change the model of a label when a button is clicked. As of now, I'm using an ajax button and doing target.addComponent(myLabel) inside that button's onclick method.

RE: updating a label's model with ajax

2011-05-16 Thread Wilhelmsen Tor Iver
My guess: You have forgotten to call myLabel.setOutputMarkupId(true) or myLabel.setOutputPlaceholderTag(true) so the Ajax framework cannot find the element in the DOM. mvh - Tor Iver Wilhelmsen, Arrive AS -Original Message- From: wmike1...@gmail.com [mailto:wmike1...@gmail.com] Sent:

Wicket 1.5 IComponentInstantiationListener VS AutolinkBookmarkablePageLink

2011-05-16 Thread nino martinez wael
Hi Essentially I just want to hide all links leading to unauthorized pages. I get exceptions when I do this in my AuthenticatedWebApplication, there are no exceptions when I run the app without the part below: protected void init() { super.init();

RE: How to bind object in Hashset to CompoundPropertyModel expression

2011-05-16 Thread Wilhelmsen Tor Iver
I haven't tried it and guaranteeing the ordering would need to be accounted for. But its a potential direction. Another approach would be to change the Hibernate mapping from a set to a bag since that will map to a List on the Java side. - Tor Iver

Re: moving from development to deployment mode

2011-05-16 Thread igahito
Hi Henry I think this message displayed by another app in glassfish,don't you? Have you tried starting to the exclusion of other apps? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/moving-from-development-to-deployment-mode-tp3495199p3525254.html Sent from the

Re: Serializing restfb DefaultFacebookclient in a wicket facebook application

2011-05-16 Thread labano10
@Sebastian, I actually used the part you could also consider creating a new fbclient whenever you need one. I am using Guice but could not use request-scoped provider because the authToken string which is needed in constructing fbClient is gotten from pageparameters(for my case AppPage

RE: post request with wicket

2011-05-16 Thread Hielke Hoeve
What is it exactly what you want to achieve? What is the use case? Why would you want the browser to do a soap call? That is quite expensive as you will need the browser to build a soap xml message and send it and parse the soap response message. Hielke -Original Message- From:

URL

2011-05-16 Thread Abid K.
I have a page that's mounted and when accessing the page the url is: http://www.something.com/admin/userAdd When posting a form the url changes to: http://www.something.com/admin/userAdd/wicket:interface/:3:dataForm::IFormSubmitListener:: Is it possible that the url can stay clean like the first

Re: URL

2011-05-16 Thread Clint Checketts
Mount it with HybridUrlCodingStrategy On Monday, May 16, 2011, Abid K. abz...@gmail.com wrote: I have a page that's mounted and when accessing the page the url is: http://www.something.com/admin/userAdd When posting a form the url changes to:

Re: Form submit and nice urls

2011-05-16 Thread Peter Karich
Anybody? Hi, when I'm doing [1] in 1.4.17 in a quickstart then I'm getting nice urls ala ?q=something e.g. for typing something in the textfield. The problem is that it prints two GET requests (why not POST + GET?): NOW: q = [todo] query=todo GET NOW: query=null GET In

Re: Strange error, cannot modify hierarchy

2011-05-16 Thread andrea del bene
Hi Brown, I've never used isTransparentResolver but I know it was removed in wicket 1.5 because it was it was quite confusing for users: http://apache-wicket.1842946.n4.nabble.com/remove-MarkupContainer-isTransparentResolver-td1909586.html You can try to replace it using one of the solutions

Re: Form submit and nice urls

2011-05-16 Thread Martin Grigorov
Hi Peter, Here is how it should work: - Home page constructor is called initially without 'q' thus null - the submit makes a POST call to Form.onSubmit() (the print is not called because the page is not re-instanciated, unless it is stateless) - onSubmit() calls setResponsePage(Class,

Re: Form submit and nice urls

2011-05-16 Thread Peter Karich
Hi Martin, thanks for the explanation! Why is the first call done to submit my form? Because my app is doing an 'expensive' search query for every instantiation, thus I would like to trigger the search only with the necessary submitted query. Can I somehow distinguish a request with an empty

Re: Form submit and nice urls

2011-05-16 Thread Martin Grigorov
I don't understand your question. with the current code doing the POST is quite cheap. it just brings the value for the search to form#onSubmit and makes a redirect to HomePage(PageParameters) where you check for the existence of the 'q' parameter and either do the heavy calculation or not. You

Re: Form submit and nice urls

2011-05-16 Thread Peter Karich
Hi Martin, I don't understand your question. sorry :( I try to explain it again :) When I access my app with the url http://localhost:8080/app/?q=test all is fine. But when I submit a new query 'todo' then wicket somehow 1. calls the submit (ok) 2. redirects to HomePage (ok) 3. *but then

Re: Form submit and nice urls

2011-05-16 Thread Martin Grigorov
Please create a quickstart app (.zip, .tgz) and attach it to a ticket in our Jira. On Mon, May 16, 2011 at 2:33 PM, Peter Karich peat...@yahoo.de wrote: Hi Martin, I don't understand your question. sorry :( I try to explain it again :) When I access my app with the url

Re: Form submit and nice urls

2011-05-16 Thread Peter Karich
Hopefully I do not waste your time with my stupidity: https://issues.apache.org/jira/browse/WICKET-3720 https://issues.apache.org/jira/secure/attachment/12479325/double-form-submit.zip Please create a quickstart app (.zip, .tgz) and attach it to a ticket in our Jira. On Mon, May 16, 2011

Using SigInPage with IE9

2011-05-16 Thread Zhubin Salehi
Hi, I'm using org.apache.wicket.authroles.authentication.pages.SignInPage in my application to provide a simple way for the users to sign in. It works perfectly fine in FF4 but I get this error in IE9: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct

How to prevent browser from caching pages

2011-05-16 Thread Martin Makundi
Hi! We are disabling versioning and this results in problems with browsers (chrome) which seems to load pages from cache. We would like to add something similar as in NonCachingImage to each url. How can this be done centrally for whole application with minimal change? Something like:

Re: Using SigInPage with IE9

2011-05-16 Thread Martin Grigorov
Can be related to https://issues.apache.org/jira/browse/WICKET-3566 On Mon, May 16, 2011 at 3:09 PM, Zhubin Salehi zhooz...@yahoo.com wrote: Hi, I'm using org.apache.wicket.authroles.authentication.pages.SignInPage in my application to provide a simple way for the users to sign in. It works

Re: Using SigInPage with IE9

2011-05-16 Thread Pedro Santos
related ideed, reopening the ticket On Mon, May 16, 2011 at 10:35 AM, Martin Grigorov mgrigo...@apache.org wrote: Can be related to https://issues.apache.org/jira/browse/WICKET-3566 On Mon, May 16, 2011 at 3:09 PM, Zhubin Salehi zhooz...@yahoo.com wrote: Hi, I'm using

RE: post request with wicket

2011-05-16 Thread wmike1...@gmail.com
I'm just calling a webservice, getting some data that I want to populate some fields on the page. The soap call as of now is on the server-side, inside an ajaxLink's onClick() method. Seems to be working fine. Why would building the request on the cilent be expensive? Expensive in terms of what?

How to turn off the ModificationWatcher Task?

2011-05-16 Thread eugenebalt
I recently started getting constant debug output on my console, like this: Run the job: org.apache.wicket.util.watch.ModificationWatcher$1@11dd1 1dd [5/16/11 10:18:34:454 EDT] 001c SystemOut O 1641041 [ModificationWatcher Task] DEBUG org.apa che.wicket.util.thread.Task - Finished with

Re: updating a label's model with ajax

2011-05-16 Thread wmike1...@gmail.com
public class IncidentReportPanel extends Panel { public IncidentReportPanel(String id) { super(id); final Model model = new Model(first model); final Label label = new Label(wicketTag, model);

Re: How to turn off the ModificationWatcher Task?

2011-05-16 Thread Pedro Santos
Set null in application resource poll frequency. e.g. class Application{ init(){ application.initApplication(); application.getResourceSettings().setResourcePollFrequency(null); } } On Mon, May 16, 2011 at 11:21 AM, eugenebalt eugeneb...@yahoo.com wrote: I recently started getting

Re: How to turn off the ModificationWatcher Task?

2011-05-16 Thread Martin Grigorov
But before that read what it is and how to use it. Maybe you don't want to switch it off. On Mon, May 16, 2011 at 4:30 PM, Pedro Santos pedros...@gmail.com wrote: Set null in application resource poll frequency. e.g. class Application{ init(){ application.initApplication();

Re: How to prevent browser from caching pages

2011-05-16 Thread Pedro Santos
You can decorate applicaiton's root request mapper to set in the anticache parameter in the mapped URL. You can also add a listener invoking WebResponse#disableCaching for all your responses. On Mon, May 16, 2011 at 10:20 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! We are

Re: How to prevent browser from caching pages

2011-05-16 Thread Martin Makundi
Hi! Sounds nice, how exactly? ** Martin 2011/5/16 Pedro Santos pedros...@gmail.com: You can decorate applicaiton's root request mapper to set in the anticache parameter in the mapped URL. You can also add a listener invoking WebResponse#disableCaching for all your responses. On Mon, May

Re: updating a label's model with ajax

2011-05-16 Thread Martin Grigorov
Looking at this it should just work. On Mon, May 16, 2011 at 4:25 PM, wmike1...@gmail.com wmike1...@gmail.comwrote: public class IncidentReportPanel extends Panel { public IncidentReportPanel(String id) { super(id); final Model model = new

Ajax and IComponentResolver

2011-05-16 Thread Alexandru Artimon
Hello, I have a custom wicket html tag that is handled by a component resolver to automatically generate a component for it. And these components only exist at the render phase and aren't stored in the page tree. Now when Ajax is used to update a fragment of the web page, looks like the

RE: How to bind object in Hashset to CompoundPropertyModel expression

2011-05-16 Thread datazuul
Thank you guys for your feedback. First I moved to a list-mapping in hibernate, but as I am not so familiar with setting up indices with hibernate (or how to change existing schema), I secondly used bag-mapping as Wilhelmsen suggested. On Java side I can use now an ArrayList and in Wicket

Re: How to prevent browser from caching pages

2011-05-16 Thread Pedro Santos
I pasted an AnticacheDecorator here: http://pastebin.com/NDePsj0F you can use as: class Application { init(){ setRootRequestMapper(new AnticacheDecorator(getRootRequestMapper())); } } On Mon, May 16, 2011 at 11:36 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi!

Re: Ajax and IComponentResolver

2011-05-16 Thread Martin Grigorov
Sounds like https://issues.apache.org/jira/browse/WICKET-3719 Can you try the patch there and give feedback ? If it still fails then a quickstart app or a test case would help us to improve it. On Mon, May 16, 2011 at 4:43 PM, Alexandru Artimon aarti...@developmentgateway.org wrote: Hello,

Re: updating a label's model with ajax

2011-05-16 Thread wmike1...@gmail.com
Problem was resolved. I had some malformed html throwing things off. Thanks for all the replies. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-a-label-s-model-with-ajax-tp3525221p3526444.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to prevent browser from caching pages

2011-05-16 Thread Martin Grigorov
Pedro is talking about 1.5, not about 1.4.9 :-) On Mon, May 16, 2011 at 4:36 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Sounds nice, how exactly? ** Martin 2011/5/16 Pedro Santos pedros...@gmail.com: You can decorate applicaiton's root request mapper to set in

Re: Ajax and IComponentResolver

2011-05-16 Thread Alexandru Artimon
I can try the patch and test, but I only have the wicket 1.4.17 jars. So can I do a code checkout from somewhere? :D Or get a jar that has the patch in it ? On 05/16/2011 05:50 PM, Martin Grigorov wrote: Sounds like https://issues.apache.org/jira/browse/WICKET-3719 Can you try the patch there

Re: Wicket 1.5 IComponentInstantiationListener VS AutolinkBookmarkablePageLink

2011-05-16 Thread Igor Vaynberg
these reports should go into jira -igor On Sun, May 15, 2011 at 11:40 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Essentially I just want to hide all links leading to unauthorized pages. I get exceptions when I do this in my AuthenticatedWebApplication, there are no

Re: How to prevent browser from caching pages

2011-05-16 Thread Martin Makundi
Ok.. how to do the same in 1.4 ? ** Martin 2011/5/16 Martin Grigorov mgrigo...@apache.org: Pedro is talking about 1.5, not about 1.4.9 :-) On Mon, May 16, 2011 at 4:36 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Sounds nice, how exactly? ** Martin 2011/5/16

Re: Wicket 1.5 IComponentInstantiationListener VS AutolinkBookmarkablePageLink

2011-05-16 Thread Martin Grigorov
with a proper quickstart because fast check shows that bookmarkablePageLink#getPageClass() returns null and this seems to be impossible since there is a check for null in the constructor On Mon, May 16, 2011 at 5:18 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: these reports should go into

Re: TextField not getting the value after a validation eror

2011-05-16 Thread msalman
Hi Clint: The steps are: 1- user opens page 2- user submits form (without entering any value) 3- required error appears. 4- user clicks on the link to enter value and no value appears in the text box. -- View this message in context:

Re: Ajax and IComponentResolver

2011-05-16 Thread Martin Grigorov
How to build Wicket is described at http://wicket.apache.org/contribute/build.html But the patch is only for 1.5. You can't use it in 1.4. I recommend you to upgrade. On Mon, May 16, 2011 at 5:16 PM, Alexandru Artimon aarti...@developmentgateway.org wrote: I can try the patch and test, but I

Re: TextField not getting the value after a validation eror

2011-05-16 Thread msalman
Hi Pedro: Thanks for that. And it fixed the problem. The onClick code is now like this: String guid = java.util.UUID.randomUUID().toString(); bean.setText(guid); textField.modelChanged();

Re: How to prevent browser from caching pages

2011-05-16 Thread Martin Grigorov
extend the url coding strategy you use and add the logic in its encode() method On Mon, May 16, 2011 at 5:18 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Ok.. how to do the same in 1.4 ? ** Martin 2011/5/16 Martin Grigorov mgrigo...@apache.org: Pedro is talking about

Re: Wicket 1.5 IComponentInstantiationListener VS AutolinkBookmarkablePageLink

2011-05-16 Thread Igor Vaynberg
i think the quickstart goes without saying... :) -igor On Mon, May 16, 2011 at 8:24 AM, Martin Grigorov mgrigo...@apache.org wrote: with a proper quickstart because fast check shows that bookmarkablePageLink#getPageClass() returns null and this seems to be impossible since there is a check

Re: How to prevent browser from caching pages

2011-05-16 Thread Martin Makundi
You mean here: protected WebResponse newWebResponse(HttpServletResponse servletResponse) { return (getRequestCycleSettings().getBufferResponse() ? new BufferedWebResponse(servletResponse) { /** * @see

Re: Sending to a new page from Iframe

2011-05-16 Thread Nelson Segura
Excellent! thanks for the help. -Nelson On Fri, May 13, 2011 at 5:24 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: use an ajaxbutton/link instead and in response do target.appendjavascript(window.top.location='+urlFor(MyPage.class)+');); -igor On Fri, May 13, 2011 at 4:11 PM, Nelson

Re: New Website up using wicket

2011-05-16 Thread Henrique Boregio
Actually, I didn't even know there was an html compressor for wicket (I'll google it). As for the other question, the backend runs on hibernate. Not 100% hibernate, since I'm actually not mapping all of the relations using hibernate.

MarkupNotFoundException strange behavior

2011-05-16 Thread Tito
Hi, I'm having this error: org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried.: [Page class =

Re: MarkupNotFoundException strange behavior

2011-05-16 Thread Clint Checketts
This happens because you don't have an HTML file for your page. (Assuming you are extending WebPage). You'll need to tell more about your setup and when you are extending to really pinpoint the issue. EmployeeDedicationLoad extends WebPage, right? -Clint On Mon, May 16, 2011 at 1:24 PM, Tito

TextField not binding PropertyModel

2011-05-16 Thread lucast
Dear Forum, I am trying to bind the field event.title to the eventTitleTextField in a form in the following manner: TextFieldString eventTitleTextField = new TextFieldString(eventTitle, new PropertyModelString(event, title)); title is a field of event object. When processing the form, after

Re: MarkupNotFoundException strange behavior

2011-05-16 Thread andrea del bene
Do you mean that on another computer with the same user you don't get the error? That sounds weird. Have you tried cleaning cache and temporary files on pc that gives error? Hi, I'm having this error: org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component

Re: TextField not binding PropertyModel

2011-05-16 Thread Per Newgro
Am 16.05.2011 20:48, schrieb lucast: Dear Forum, I am trying to bind the field event.title to the eventTitleTextField in a form in the following manner: TextFieldString eventTitleTextField = new TextFieldString(eventTitle, new PropertyModelString(event, title)); title is a field of event

Re: Ajax and IComponentResolver

2011-05-16 Thread Alexandru Artimon
I've compiled the latest code from the wicket trunk and when plugging in the latest jars into our project I've seen that some changes have to be done in order to use wicket 1.5 (like some package names changed, can't find org.apache.wicket.Request). So I was wandering how far is the 1.5

PropertyModel not binding DropDownChoice

2011-05-16 Thread lucast
Dear Forum, I have yet another question about PropertyModel not binding to an object field but this time using DropDownChoice. In my form I have DropDownChoiceHowOftenType eventOccurHowOftenDropDownChoice = new DropDownChoiceHowOftenType(eventOccurHowOften, new PropertyModelHowOftenType(event,

Re: TextField not binding PropertyModel

2011-05-16 Thread lucast
Hi Per, You are spot on! Thanks. I'm creating a add/edit form and what I was initialising the event object in two places: public class CreateEvent extends Panel { private Event event = new Event(); ... ... public GenericEventCreatePanel(String id, Long eventId){

Re: PropertyModel not binding DropDownChoice

2011-05-16 Thread andrea del bene
Hi lucast, it would help watching source code of event's class to figure out what's wrong Dear Forum, I have yet another question about PropertyModel not binding to an object field but this time using DropDownChoice. In my form I have DropDownChoiceHowOftenType

DataTable and FilterToolbar

2011-05-16 Thread Tom Eicher
Hi, I guess no reply means it's not a simple FAQ ;-) So to start it easy: If I have a DataTable, with a FilterToolbar, and a TextFilteredPropertyColumn, how is the TextFilteredPropertyColumn supposed to submit, i.e. apply it's input for filtering. Pressing ENTER will only work if there is not

Re: DataTable and FilterToolbar

2011-05-16 Thread Igor Vaynberg
there is a GoAndClearFilter which can submit the search form afair -igor On Mon, May 16, 2011 at 12:55 PM, Tom Eicher r...@teicher.net wrote: Hi, I guess no reply means it's not a simple FAQ ;-) So to start it easy: If I have a DataTable, with a FilterToolbar, and a

FormComponent convertInput for children FormComponets

2011-05-16 Thread Clint Checketts
I have a FormComponentPanel that contains multiple child formcomponent. The purpose of this panel is to be able to add in several cihldren dynamically. The end model is supposed to be the list from all the children component. I get the value in my convertInput() method by iterating over all the

Re: New Website up using wicket

2011-05-16 Thread James Carman
On Mon, May 16, 2011 at 1:03 PM, Henrique Boregio hbore...@gmail.com wrote: As for the other question, the backend runs on hibernate. Not 100% hibernate, since I'm actually not mapping all of the relations using hibernate. Why not? Was there a performance issue?

Re: PropertyModel not binding DropDownChoice

2011-05-16 Thread Clint Checketts
If the ChoiceRenderer ID isn't unique or it has trouble matching it with the selected value, you could get this problem. On Mon, May 16, 2011 at 2:21 PM, lucast lucastol...@hotmail.com wrote: Dear Forum, I have yet another question about PropertyModel not binding to an object field but this

Re: PropertyModel not binding DropDownChoice

2011-05-16 Thread James Carman
Lucas, Check out the EnumDropDownChoice from Wicketopia... http://wicketopia.svn.sourceforge.net/viewvc/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/component/choice/EnumDropDownChoice.java?revision=140view=markup