Re: How to refresh ListView on ModalWindow
Hi Sven, Thank you for suggestion. This works. Best, Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-ListView-on-ModalWindow-tp2341639p2398942.html Sent from the Wicket - User 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 refresh ListView on ModalWindow
Hi, I have a list of products containing a link that should show a user comments on each product in a modal window. I created a ModalWindow containing a Panel. I send a list containing comments to this panel. I'm using a ListView to show this comments e.g: ListView eachComment=new ListView(eachComment, commentsList){ @Override protected void populateItem(ListItem item) { Comment comment=(Comment) item.getModelObject(); item.add(new Label(commentContent,comment.getContent())); } }; First time I select some product, the list is created in appropriate way. However, when I close that ModalWindow and open another one for different product, the first list is shown again. CommentsList containing the comments is updated before populateItem is called, but it seems that I should make something more. Do you have any suggestions? Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-ListView-on-ModalWindow-tp2341639p2341639.html Sent from the Wicket - User 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 to replace panel
I've solved this. The problem was in that I made a call to update panel methods for both panels from instance of the first panel that was updated. The second call on update method was on the wrong target, so it couldn't found a component (panel) to update. Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2340433.html Sent from the Wicket - User 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 to replace panel
Hi Martin, I was trying to make this quick start but it's very difficult to make this works, as it is dependent on many Tuscany web services. Does it works for you to send you the whole maven project or just a files containing the code that makes a problem? Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2334078.html Sent from the Wicket - User 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 to replace panel
Hi Martin, I finally made a some kind of quickstart. I removed all unnecessary code from the application, and at the same time the problem is still there. The code is available at http://zoranjeremic.org/files/intelleo-mavenized.rar. It is maven application. Main class that starts everything is org.intelleo.app.Run. After application start you should call http://localhost:8080/intelleo/index.html and click the first button in dockbar. There are two panels on the page. Update panels link should update both of them, but only one is updated. The Wicket page that contains this panels is PreviewGoals. I hope this will works for you. Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2334184.html Sent from the Wicket - User 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
Problem to replace panel
Hi, I have one wicket page containing two different panel. Based on the same event, these panels should be changed with new instances of the same panels. The methods that performs change of these panels are called after the same event. However, first panel is changed without a problem, but the second panel is created but it is not changed. I used the same approach to change both panels. Here is the code: public T extends UsedResourcesPanel void updateUsedResourcesPanel(ClassT clazz, AjaxRequestTarget target){ usedResourcesDiv=new WebMarkupContainer(urDIV); usedResourcesDiv.setOutputMarkupId(true); try { UsedResourcesPanel tempUsedResourcesPanel=UsedResourcesPanel.class.getConstructor(String.class,URI.class,String.class,TargetCompetence.class).newInstance(urPANEL,this.currGoalUri,this.currGoalType,this.currTargCompetence); tempUsedResourcesPanel.setOutputMarkupId(true); tempUsedResourcesPanel.setCompetenceTitle(currTargCompetence.getCompetence().getTitle()); usedResourcesPanel.replaceWith(tempUsedResourcesPanel); usedResourcesPanel=tempUsedResourcesPanel; target.addComponent(usedResourcesPanel); } catch (Exception e) { logger.error(e.getMessage(), e); throw new RestartResponseException(PLKMBasePage.class); } } Do you have any idea what is the problem here? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2333462.html Sent from the Wicket - User 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
ModalWIndow and update of jQuery component
Hi, I'm using a ModalWindow with Panel content inside containing a form that should edit a data for existing objects. From the parent page I'm accessing the Modal window content to send an Java instance object containing values that will set the initial values in the form, then I call a show() method to show a modal window. The problem is that in the form I'm using two jQuery UI components (slider and datepicker), and I can't find appropriate way to set its' values. Normally it should be changed with this javascript: $('#slider').slider('option','value',5); $('#datepicker').datepicker('setDate','08/31/2010'); I've tried to add this code in Panel class, and call it before or after show() method call. add(new AbstractBehavior(){ private static final long serialVersionUID = 1L; public void renderHead(IHeaderResponse response){ String js=$('#slider').slider('option','value',+sliderExpectedLevel+);; response.renderJavascript(js, updateSlider); }; }); However, this doesn't give results. The similar panel I'm using on the other page (but this one is not in ModalWindow) and here this is updated in appropriate way. Do you know what is the problem here and how can I solve this? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ModalWIndow-and-update-of-jQuery-component-tp2319239p2319239.html Sent from the Wicket - User 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: ModalWIndow and update of jQuery component
Thanks. I solved this. The problem was in that I was trying to set this from the Panel instead from the parent page. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RE-ModalWIndow-and-update-of-jQuery-component-tp2319279p2319288.html Sent from the Wicket - User 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 dinamically add a wicket property to the key in the properties file
Hi, I want to use key from properties file with wicket page property added in this value. I tried this way, but it doesn't work. String js=alert('+getString(alertmessage)+');; target.appendJavascript(js); alertmessage=Learning goal ${pagetitle} updated successfully. As result I got an alert with message: Learning goal ${pagetitle} updated successfully. What is wrong with this code? Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-dinamically-add-a-wicket-property-to-the-key-in-the-properties-file-tp2317893p2317893.html Sent from the Wicket - User 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 dinamically add a wicket property to the key in the properties file
Martin, I've tried this, but it doesn't work. Any other idea? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-dinamically-add-a-wicket-property-to-the-key-in-the-properties-file-tp2317893p2317912.html Sent from the Wicket - User 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 dinamically add a wicket property to the key in the properties file
Sorry, I don't know why it didn't work before, but it works now. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-dinamically-add-a-wicket-property-to-the-key-in-the-properties-file-tp2317893p2317938.html Sent from the Wicket - User 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 Java object to the ModalWindow
Thanks Martin, modalwindowcontent.setpropervalue(xx); That's what I have tried first, but for some reason it didn't worked than so I started to work on some other more complex solution. Now I turned again to this simple idea and it works. Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p2313867.html Sent from the Wicket - User 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 Java object to the ModalWindow
Hi, I used the approach described in http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup to create a ModalWindow panel with the input form. Everything works fine, but I need to send a Java object instance to the panel before calling selectModalWindow.show(target), so the panel can use the information to set some form values and change the object after the form submit. Can you suggest me how to make this? Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p2312589.html Sent from the Wicket - User 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 Java object to the ModalWindow
Hi Martin, I'm using dynamic objects. In the first way based on the some event (e.g. tree node selection) I want to setup this MagicObject in home page, and then to show panel. Between these two there should be a call of getMagicObject() from the panel. How can I set this happen in appropriate moment? In the third example, I'm not sure how I can send a Model to the Panel. Can you give me some small example? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p2312657.html Sent from the Wicket - User 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 access div on wicket modal dialog
Hi, I'm using a wicket modal dialog with the panel that contains a div container like div id=slider/div I want to access it from jQuery to create a jQuery UI slider like $(#slider).slider(); For some reason, this doesn't work. Is there some reason related to wicket that prevents this to find div container using its id, because the same thing works fine when I use jQuery modal dialog instead of wicket modal dialog? Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-access-div-on-wicket-modal-dialog-tp2310678p2310678.html Sent from the Wicket - User 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 access div on wicket modal dialog
Igor, You save my life :) if you are using a panel and the markup is rendered in the same window it means your script is probably running too early. That is exactly what was the problem. I added response.renderOnDomReadyJavascript(js); In AbstractBehavior RenderHead method, and everything works like it should work. Thanks, Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-access-div-on-wicket-modal-dialog-tp2310678p2310845.html Sent from the Wicket - User 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
submitting jQuery modal dialog form to parent page
Hi, I have a wicket page containing jsTree component that opens a jQuery modal dialog on node select. This modal dialog uses ajax call to add wicket page as a content of dialog. The problem is that I don't know how to connect this child's page form with the parent page. Do you have some suggestion? Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/submitting-jQuery-modal-dialog-form-to-parent-page-tp2309472p2309472.html Sent from the Wicket - User 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 call javascript from panel constructor
Hi, I have a panel that sets some properties at its constructor. Then I want to use one of this properties to set a javascript slider, so I need to call javascript code like $('#slider').slider('option','value',+expLevVal+); I know how I can do this when I have some event, like link or button click, but how about the calling set method or after construction of the class. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-call-javascript-from-panel-constructor-tp2302355p2302355.html Sent from the Wicket - User 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 call javascript from panel constructor
Thank you Mike, This works. Regards, Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-call-javascript-from-panel-constructor-tp2302355p2302432.html Sent from the Wicket - User 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 URI with # as WicketAjaxGet argument
Hi, I've created a javascript function that should be called from javascript and processed as a wicket respond: String js=function setCompetenceNode(currgoaluri,currgoaltype,nodeid){var wcall=wicketAjaxGet ('+url+currGoalURI='+currgoaluri+'currGoalType='+currgoaltype+'nodeId='+nodeid, function(){},function(){})}; The first argument here is URI in the form like: http://intelleo.org/triplestore/bc_x#Organization/2af71336-13a9-4a1b-ae76-c58cdd221f7f The function setCompetenceNode gets all arguments fine, but the problem is in wicketAjaxGet. I'm trying to get it with final String currGoalURI=RequestCycle.get().getRequest().getParameter(currGoalURI); final String currGoalType=RequestCycle.get().getRequest().getParameter(currGoalType); final String nodeId=RequestCycle.get().getRequest().getParameter(nodeId); I just receive the part of the URI before # and all other arguments are null. Is there some way I can pass this URI as an argument? Thanks, Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-URI-with-as-WicketAjaxGet-argument-tp2301521p2301521.html Sent from the Wicket - User 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
getPage() and getParentPage() returns null
Hi, I have one basic page in my application that contains a base panel. This panel contains several AjaxLinks that update the panel content, so new page is loaded for each link. This works fine, but each of these pages can't access it's parent page or page with getParentPage() and getPage(). The result is null. I found this because I wanted to add additional panel to one of these pages, and there I got error like this: Caused by: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = contentPanel]] at org.apache.wicket.Component.getPage(Component.java:1756) at org.intelleo.webui.lpc.PLKMBasePanel.getParentPage(PLKMBasePanel.java:145) Is there some way to set this page? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293003.html Sent from the Wicket - User 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
I can't subscribe to this list
I have tried to subscribe to wicket-user list, but after I confirm in confirm subscribe to users-al...@wicket.apache.org email, I don't get any confirmation. My settings show that I'm not subsribed, and I can't post to mailing list neither I receive email from other users. I have tried with two different emails several times, but it's the same. Did I miss something or there are some problems with this list? Zoran
Re: I can't subscribe to this list
I've subscribed with two different emails in a last two months and never received an email from other users. What I receive is a Nabble email information Post to mailing list still pending when I post a new topic to this forum, and I'm receiving this email until I delete the topic. However, till this topic, I have always created a new topic in forum, rather then sending email to users@wicket.apache.org, but I believe that these two should be in sync with each other. Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/I-can-t-subscribe-to-this-list-tp2293122p2293181.html Sent from the Wicket - User 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: getPage() and getParentPage() returns null
Hi Robert, I tried this, but this doesn't work or I didn't get idea. If I add this then I got exception saying that component with that id already exists. I've attached the whole code, but the hierarchy of pages that makes a problem are like this: PLKMBasePage PLKMBasePanel PreviewGoals CompetencePanel Do you have some idea? Zoran http://apache-wicket.1842946.n4.nabble.com/file/n2293370/lpc.zip lpc.zip -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293370.html Sent from the Wicket - User 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: getPage() and getParentPage() returns null
Robert, This works :) I just removed initialization of the components from the constructor and it works now. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293379.html Sent from the Wicket - User 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