Re: Simple javascript from wicket

2010-03-22 Thread marioosh.net
2010/3/18 Jeremy Thomerson jer...@wickettraining.com: Wicket is just java, just html.  Just add the JS to your HTML file.  Don't add an AjaxEventBehavior in java - because you don't want Ajax, and you don't need to do it in the java. -- Jeremy Thomerson http://www.wickettraining.com

Deleting items form ListView (ajaxed)

2010-03-22 Thread marioosh.net
I have BoxBorder component with close button : public abstract class BoxBorder extends Border { public BoxBorder(String id) { super(id); add(new AjaxLink(delete) { @Override public void

Simple javascript from wicket

2010-03-17 Thread marioosh.net
I have container and buttons element in my template: div wicket:id=container span ... /span span wicket:id=buttons style=display: none; a href=# wicket:id=editE/a a

Customize generating javascript in wicket

2010-03-06 Thread marioosh.net
How to force wicket to generate javascript at the end of html, not inline ? I'm using SortableListView and addContainment method, but containtment option doesn't work. I think not work because of that important note - from scriptaculous docs: containment Enables dragging and dropping

ListView + dynamic database Model

2010-03-02 Thread marioosh.net
Sorry for my poor english ;) I have ListView and model like below. I need tabs to reload sometimes, so my model is dynamic and get tabs from database. But i see that something is wrong. When i want to get Tab object by getModelObject() in populateItem method i suppoused that i got it directly,

Re: ListView + dynamic database Model

2010-03-02 Thread marioosh.net
Thomas Kappler-3 wrote: On 03/02/10 11:55, marioosh.net wrote: Sorry for my poor english ;) I have ListView and model like below. I need tabs to reload sometimes, so my model is dynamic and get tabs from database. But i see that something is wrong. When i want to get Tab object

Re: autolink not work ?

2010-03-02 Thread marioosh.net
defined in your root, so Wicket can't find it, thus it passes through and just gives you the exact items inside the href rather than converting to the Wicket equivalent. On Feb 26, 2010, at 12:42 AM, marioosh.net wrote: I have packages: net.marioosh.wicket.learn1.lesson4

Re: Ajax refresh outer panel

2010-03-01 Thread marioosh.net
marioosh.net wrote: I have LoginPanel like below: public class LoginPanel extends Panel { public LoginPanel(String id) { super(id); MySession.get().setLoginPanel(this); this.setOutputMarkupId(true); if(MySession.get

autolink not work ?

2010-02-26 Thread marioosh.net
I have packages: net.marioosh.wicket.learn1.lesson4 net.marioosh.wicket.learn1.linkownia and webpage: Index.html in linkownia package: wicket:linka href=../lesson4/Lesson4.html Lesson4/a/wicket:linkbr/ wicket:linka href=../linkownia/Index.htmlIndex1/a/wicket:link

Ajax refresh outer panel

2010-02-26 Thread marioosh.net
I have LoginPanel like below: public class LoginPanel extends Panel { public LoginPanel(String id) { super(id); MySession.get().setLoginPanel(this); this.setOutputMarkupId(true); if(MySession.get().getUser() != null) {

Re: Problem with simple layout using Border.

2010-02-24 Thread marioosh.net
2010/2/16 Igor Vaynberg igor.vaynb...@gmail.com: mb.add(add(new Label(label,content...))); why are there two adds there? -igor Thanks:) That it! -- Greetings, marioosh - To unsubscribe, e-mail:

Problem with simple layout using Border.

2010-02-16 Thread marioosh.net
I have problem with Border. When i open Lesson2 page, i get nothing. System.out.println(mb); show: [MarkupContainer [Component id = border]]. Anybody help? Sources below. MainBorder.java: public class MainBorder extends Border { public MainBorder(String id) { super(id);

Adding components to page (dynamically)

2009-12-22 Thread marioosh.net
I have a Window component (Panel subclass) and button to dynamic adding new Window to Base page, but when i click this button (AjaxLink) i get error: WicketMessage: Unable to find the markup for the component. That may be due to transparent containers or components implementing

Re: Adding components to page (dynamically)

2009-12-22 Thread marioosh.net
marioosh.net wrote: I have a Window component (Panel subclass) and button to dynamic adding new Window to Base page, but when i click this button (AjaxLink) i get error: WicketMessage: Unable to find the markup for the component. That may be due to transparent containers or components

Re: Adding components to page (dynamically)

2009-12-22 Thread marioosh.net
bgooren wrote: Well, you need to have some html in the container with wicket:id=win1 for your code to work. Wicket is (correctly) complaining that it cannot locate html for your component. What kind of component is Window? (it's not a standard wicket component) Window is simple: public

Re: Accessing Page components

2009-12-17 Thread marioosh.net
2009/12/17, Pieter Degraeuwe pieter.degrae...@systemworks.be: However, I never do it like this. I always use PropertyModels() to 'map' my TextFields to properties of my object. This way your code in the onClick() method uses that just the object properties. (Note that the AjaxSubmitLink has no

Re: Accessing Page components

2009-12-17 Thread marioosh.net
Pieter Degraeuwe wrote: There are several ways how you can do this... To encourage losely coupled components folowing is in my opinion the best solution.. Work with a callback mechanism. let's say you define a callback interface SaveCallback with a method onSaved(AjaxRequestTarget

Re: Accessing Page components

2009-12-17 Thread marioosh.net
Pieter Degraeuwe wrote: I don't have the habit to exend from Form, since I don't need to put logic there (I put it in my submitLinks/buttons) On Thu, Dec 17, 2009 at 2:45 PM, Pieter Degraeuwe pieter.degrae...@systemworks.be wrote: Use the onSubmit(AjaxRequestTarget target) of your

Reload classes / pages on jetty

2009-12-16 Thread marioosh.net
I'm using run-jetty-run plugin for eclipse. In quickstart Tapestry maven project, when i start application on embedded (in eclipse) jetty and make some changes and build class, jetty see that changes and i reload my application. Is this possible in wicket project ? -- Greetings, marioosh

Re: Reload classes / pages on jetty

2009-12-16 Thread marioosh.net
not: and i reload my application. but: and reload my application. :) 2009/12/16, marioosh.net marioosh@gmail.com: I'm using run-jetty-run plugin for eclipse. In quickstart Tapestry maven project, when i start application on embedded (in eclipse) jetty and make some changes and build class

Re: Reload classes / pages on jetty

2009-12-16 Thread marioosh.net
Sorry... inversly: classes are not reloaded, templates/pages yes... Anybody help with run-jetty-run ? 2009/12/16, marioosh.net marioosh@gmail.com: I see that work for classes, but not for pages/templates...:( 2009/12/16, marioosh.net marioosh@gmail.com: not: and i reload my

Re: Reload classes / pages on jetty

2009-12-16 Thread marioosh.net
Yes. I'm using maven2 quickstart project. I've tried jetty by Start, but the same effect... change java - build project - working old version class, but not new :( When i change templates, i see a difference, but no when i change java :( -- Greetings, marioosh

beginning with Listview

2009-12-16 Thread marioosh.net
I'm starting with ListView and i like it, but... code: add(new ListView(list, new LinkDAO().allLinks()){ @Override protected void populateItem(ListItem arg0) { Link l = (Link)arg0.getModelObject();

Re: Reload classes / pages on jetty

2009-12-16 Thread marioosh.net
2009/12/16, Igor Vaynberg igor.vaynb...@gmail.com: you have to launch the Start class in Debug mode, that way the jvm hotswap can reload your classes for you. -igor Thanks a lot, igor!:) That works! -- Greetings, marioosh

Accessing Page components

2009-12-16 Thread marioosh.net
Is simple possibility to access page components in anonymous onClick method like in code below ? public class NewLinkPanel extends Panel { public NewLinkPanel(String id) { super(id); TextField name = new TextField(name); TextField address =

[newbie] Adding button - simple question

2009-12-15 Thread marioosh.net
I have template: html xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; body input type=button wicket:id=ok value=ok/ /body /html and class: public class HomePage extends WebPage { public HomePage(final PageParameters parameters) { add(new

Re: [newbie] Adding button - simple question

2009-12-15 Thread marioosh.net
Yes, i use maven quickstart project. 2009/12/15, MattyDE ufer.mar...@gmail.com: Hi Mariusz , is your HomePage.html file in the same folder as HomePage.class? marioosh.net wrote: I have template: html xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd

Re: [newbie] Adding button - simple question

2009-12-15 Thread marioosh.net
Sorry for my qustion. I did get work that. jetty have not reload my class... and that was a problem. Code is good. 2009/12/15, marioosh.net marioosh@gmail.com: Yes, i use maven quickstart project. 2009/12/15, MattyDE ufer.mar...@gmail.com: Hi Mariusz , is your HomePage.html file