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 onClick(AjaxRequestTarget target) {
onClose(target);
}
});
}

/**
 * What to do on closing box
 */
protected abstract void onClose(AjaxRequestTarget target);
}



I have ListView of BoxBorder components and i stuck in: HOW TO delete
BoxBorder element from listview by clicking close button.
Anybody helps ???

public class Index extends WebPage {

private List list = new ArrayList();

public Index() {
final WebMarkupContainer deskcontainer = new
WebMarkupContainer("deskcontainer");
deskcontainer.setOutputMarkupId(true);

final ListView desk = new 
ListView("desk", new
PropertyModel(this, "list")) {

@Override
protected void populateItem(ListItem item) {
item.add(new BoxBorder("elem") {
@Override
protected void 
onClose(AjaxRequestTarget target) {
System.out.println("close1");
// 
? 

target.addComponent(deskcontainer);
}
});
item.setOutputMarkupId(true);
}
};
deskcontainer.add(desk);
add(new AjaxLink("plus") {

@Override
public void onClick(AjaxRequestTarget target) {
list.add(new BoxBorder("nomatter"));
target.addComponent(deskcontainer);
}
});
add(deskcontainer);
}

public void setList(List list) {
this.list = list;
}

public List getList() {
return list;
}

}

-- 
Greetings,
marioosh

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



Re: Simple javascript from wicket

2010-03-22 Thread marioosh.net
2010/3/18 Jeremy Thomerson :
> 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
>

Thanks...
I did that in that way:

WebMarkupContainer container = new 
WebMarkupContainer("container"){
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);

// prototype'owo hide and show
tag.put("onmouseover", "$('"+ 
buttons.getMarkupId() +"').show()");
tag.put("onmouseout", "$('"+ 
buttons.getMarkupId() +"').hide()");
}   
};

-- 
Greetings,
marioosh

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



Simple javascript from wicket

2010-03-17 Thread marioosh.net
I have container and buttons element in my template:



...


E
D



and java:
container.add(new AjaxEventBehavior("onmouseover") {
protected void onEvent(AjaxRequestTarget target) {
buttons.add(new 
SimpleAttributeModifier("style", "display: ;"));
target.addComponent(buttons);
}
});

On mouseover container i show buttons, but i think it sends request to
server in that way.
Is possible to change style in js only (but programming in wicket),
not sending request to server ?
How in wicket do some js work, but not interacting with server ?

-- 
Greetings,
marioosh

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



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 between Sortables. Takes an array of
elements or element-ids (of the containers). Important note: To ensure
that two way dragging between containers is possible, place all
Sortable.create calls after the container elements."

-- 
Greetings,
marioosh

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



Re: autolink not work ?

2010-03-02 Thread marioosh.net


kinabalu wrote:
> 
> Index1 and Index2 are generated as italics because you are on the same
> page.  If you use autolink and you're on the same page, they show up as
> italics
> 
> Index3 doesn't work because you've got a slash preceding the package name. 
> And linkownia isn't one of the packages 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
>> net.marioosh.wicket.learn1.linkownia
>> 
>> and webpage: Index.html in linkownia package:
>> 
>>   ../lesson4/Lesson4.html Lesson4 
>>   ../linkownia/Index.html Index1 
>>   Index.html Index2 
>>   /linkownia/Index.html Index3 
>> 
> 
> 

You are great! :) 
Thank You very much.


-- 
View this message in context: 
http://old.nabble.com/autolink-not-work---tp27715679p27755210.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: 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 by
>> getModelObject() in populateItem method i suppoused that i got it
>> directly, but i see that all the times the getObject() method of model
>> is triggered making for all items new list (new db request) !
> 
> That's exactly what is supposed to happen, as getModelObject() is just a 
> shorthand for getModel().getObject(). And in your getObject(), you do 
> the database request.
> 
> If you need to avoid those database reloads, look into 
> LoadableDetachableModels.
> 
> -- Thomas
> 

Thank You very much Thomas. 

I move code from getObject() method in IModel to load() method in
LoadableDetachableModel and everything works! - no more useless requests to
db :)

LoadableDetachableModel model2 = new LoadableDetachableModel() {

@Override
protected Object load() {
   ...
   // getting list from DB
   List  list = ;
   return list;
}
};


-- 
View this message in context: 
http://old.nabble.com/ListView-%2B-dynamic-database-Model-tp27754495p27754908.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



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, but i see that all the times the getObject() method of model
is triggered making for all items new list (new db request) !

How to get Tab objects for items without making wasting time database
request ???


IModel model = new IModel() {
public Object getObject() {
System.out.println("getObject...");
...
// getting list from DB
List list = ;
return list;
}

public void setObject(Object object) {}
public void detach() {
}};

ListView tabs = new ListView("tabs", model) {
@Override
protected void populateItem(ListItem item) {
item.getModelObject(); /* <- new 
list, and new list,
and new list.. :(
}
};

-- 
Greetings,
marioosh

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



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().getUser() != null) {
>   add(new LoggedPanel("panel"));
>   } else {
>   add(new LoggedOutPanel("panel"));
>   }
>   }
> }
> 
> I have save in MySession reference to this panel.
> 
> public final class MySession extends WebSession {
> 
>   private Tuser user;
>   private LoginPanel loginPanel;
>   
>   public LoginPanel getLoginPanel() {
>   return loginPanel;
>   }
> 
>   public void setLoginPanel(LoginPanel loginPanel) {
>   this.loginPanel = loginPanel;
>   }
> 
>   public static MySession get() {
>   return (MySession)Session.get();
>   }
> ...
> }
> 
> Is possible to reload LoginPanel from inner panels: LoggedPanel and
> LoggedOutPanel ?
> I have do that like below, but it doesn't reload LoginPanel:
> 
> public class LoggedOutPanel extends Panel {
>   private final Tuser b = new Tuser();
> 
>   public LoggedOutPanel(String id) {
>   super(id);
>   ...
>   AjaxSubmitLink ok = new AjaxSubmitLink("ok") {
>   @Override
>   protected void onSubmit(AjaxRequestTarget target, 
> Form form) {
> 
>   //ajax reload loginpanel
>   LoginPanel lp = MySession.get().getLoginPanel();
>   target.addComponent(lp);
> 
>   }
>   };
>   ...
>   }
> }
> 
> 
> -- 
> Greetings,
> marioosh
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

Idiscover that ajax in my example works! :) I need ONLY one hint:
Where and how do i have to put code to replacing LoggedPanel with
LoggedOutPanel and vice versa:
if(MySession.get().getUser() != null) {
//replace LoggedOutPanel with LoggedPanel
} else {
//replace LoggedPanel with LoggedOutPanel
}

I see that i can override onRender method in WebPage class... 
Anybody help with that ?

-- 
View this message in context: 
http://old.nabble.com/Ajax-refresh-outer-panel-tp27721145p27741408.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



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) {
add(new LoggedPanel("panel"));
} else {
add(new LoggedOutPanel("panel"));
}
}
}

I have save in MySession reference to this panel.

public final class MySession extends WebSession {

private Tuser user;
private LoginPanel loginPanel;

public LoginPanel getLoginPanel() {
return loginPanel;
}

public void setLoginPanel(LoginPanel loginPanel) {
this.loginPanel = loginPanel;
}

public static MySession get() {
return (MySession)Session.get();
}
...
}

Is possible to reload LoginPanel from inner panels: LoggedPanel and
LoggedOutPanel ?
I have do that like below, but it doesn't reload LoginPanel:

public class LoggedOutPanel extends Panel {
private final Tuser b = new Tuser();

public LoggedOutPanel(String id) {
super(id);
...
AjaxSubmitLink ok = new AjaxSubmitLink("ok") {
@Override
protected void onSubmit(AjaxRequestTarget target, 
Form form) {

//ajax reload loginpanel
LoginPanel lp = MySession.get().getLoginPanel();
target.addComponent(lp);

}
};
...
}
}


-- 
Greetings,
marioosh

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



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:

Lesson4
Index1
Index2
Index3

Lesson4 link works, but Index1, Index2, Index3 links doesn't.
Index1 and Index2 is generated as italics, and Index3 is generated as
link but get Error404 (http://localhost:8080/linkownia/Index.html)

How to correct this ?

-- 
Greetings,
marioosh

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



Re: Problem with simple layout using Border.

2010-02-24 Thread marioosh.net
2010/2/16 Igor Vaynberg :
> mb.add(add(new Label("label","content...")));
>
> why are there two adds there?
>
> -igor
>

Thanks:) That it!

-- 
Greetings,
marioosh

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



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);
add(new AjaxLink("lesson0"){
@Override
public void onClick(AjaxRequestTarget target) {
setResponsePage(Lesson0.class);
}

});
add(new AjaxLink("lesson1"){
@Override
public void onClick(AjaxRequestTarget target) {
setResponsePage(Lesson1.class);
}
}); 
}
}

MainBorder.html:


Lesson1 | 
Lesson2 | 

  


BasePage.java:
public class BasePage extends WebPage {
protected MainBorder mb;
public BasePage() {
mb = new MainBorder("border");
add(mb);
}
}

BasePage.html:
[empty]

Lesson2.java:
public class Lesson2 extends BasePage {
public Lesson2() {
System.out.println(mb);
mb.add(add(new Label("label","content...")));
}
}

Lesson2.html:

content


-- 
Greeting,
marioosh

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



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 class Window extends Panel {
...
}

http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";>
...



-- 
View this message in context: 
http://old.nabble.com/Adding-components-to-page-%28dynamically%29-tp26886670p26889247.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: 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 implementing
> IComponentResolver: [MarkupContainer [Component id = win1]]
> 
> Base.html:
> 
># new 
> 
> 
> Base.java:
> public class Base extends WebPage {
>   public Base() {
>   
>   add(new AjaxLink("new"){
>   @Override
>   public void onClick(AjaxRequestTarget target) {
>   Window win = new Window("win1","title");
>   win.setOutputMarkupId(true);
>   add(win);
>   target.addComponent(win); // ajax refresh
>   }
>   });
>   }
> }
> 
> -- 
> Greetings,
> marioosh
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 


I changed my code, but now i get error:
WicketMessage: The component(s) below failed to render. A common problem is
that you have added a component in code but forgot to reference it in the
markup (thus the component will never be rendered).

1. [MarkupContainer [Component id = win1]]
...

Base.java:
public class Base extends WebPage {
public Base() {

final WebMarkupContainer m = new 
WebMarkupContainer("container");   
m.setOutputMarkupId(true);
add(m);
add(new AjaxLink("new"){
@Override
public void onClick(AjaxRequestTarget target) {
Window win = new Window("win1","...");
m.add(win);
target.addComponent(m);
}
});
}
}

Base.html:

 # new 
   


Anybody help with that ?

-- 
View this message in context: 
http://old.nabble.com/Adding-components-to-page-%28dynamically%29-tp26886670p26886911.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



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
IComponentResolver: [MarkupContainer [Component id = win1]]

Base.html:

new


Base.java:
public class Base extends WebPage {
public Base() {

add(new AjaxLink("new"){
@Override
public void onClick(AjaxRequestTarget target) {
Window win = new Window("win1","title");
win.setOutputMarkupId(true);
add(win);
target.addComponent(win); // ajax refresh
}
});
}
}

-- 
Greetings,
marioosh

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



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 AjaxSubmitLink instead
>> of your form.
>> (Note that if you make use of FeedbackPanel, youd should also override
>> the
>> onError() method of that ajaxlink to 'refresh' your feedback panel)
>>
> 

At first I wanted to do this in onSubmit of AjaxSubmitLink, but i've problem
to get name and address components inside this method :(

-- 
View this message in context: 
http://old.nabble.com/Accessing-Page-components-tp26824375p26828432.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: 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 target).
> The component that uses you panel/form, can pass such a callback to define
> de 'code' that needs to be executedn once the Link is saved.
> 
> class MyPage {
> 
>public MyPage() {
>  //construct panels
>  final Panel otherPanel = new .
>  otherPanel.setOutputMarkupId(true); //make it possible to refresh
> this
> panel via ajax
>  add(otherPanel);
> 
>  add(new NewLinkPanel("newLinkPanel",new SaveCallback() {
> 
> onSaved(AjaxRequestTarget target) {
> target.addComponent(otherPanel);//refresh other panel
> }
>   });
>}
> }
> 

I did code like below, but i don't know how in onSubmit() method get
AjaxRequestTarget object.

// callback interface
public interface AddLinkCallback {
public void onAdd(AjaxRequestTarget target);
}

// main page with panels
public class Base extends WebPage {
public Base() {

final ContentPanel contentPanel = new ContentPanel("content");
contentPanel.setOutputMarkupId(true); // can be updated by ajax
NewLinkPanel linkPanel = new NewLinkPanel("newlink", new
AddLinkCallback() {
@Override
public void onAdd(AjaxRequestTarget target) {
// TODO Auto-generated method stub
  target.addComponent(contentPanel);//refresh other 
panel   
}   
}); 
}
}

// control panel (add button)
public class NewLinkPanel extends Panel {
public NewLinkPanel(String id, AddLinkCallback callback) {
super(id);
add(new LinkForm("linkform", callback));
}
}
class LinkForm extends Form {
private AddLinkCallback callback;
public LinkForm(String id, AddLinkCallback callback) {
super(id);
this.callback = callback;

Link link = new Link();
this.setModel(new Model(link));
add(new TextField("name", new PropertyModel(link, "name")));
add(new TextField("address",new PropertyModel(link, 
"address")));
add(new AjaxSubmitLink("ok"){
@Override
protected void onSubmit(AjaxRequestTarget target, Form 
form) {} 
});
}

@Override
protected void onSubmit() {
System.out.println("ok");
Link l = (Link)this.getModelObject();
new LinkDAO().save(l);

callback.onAdd(target ); // ???
}
}

-- 
View this message in context: 
http://old.nabble.com/Accessing-Page-components-tp26824375p26827804.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: Accessing Page components

2009-12-17 Thread marioosh.net
2009/12/17, Pieter Degraeuwe :
> 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 onClick(), but a onSubmit()...)
>
> Pieter

Thanks Pieter. I got working this like below:

public class NewLinkPanel extends Panel {
public NewLinkPanel(String id) {
super(id);
add(new LinkForm("linkform"));
}
}

class LinkForm extends Form {

public LinkForm(String id) {
super(id);

Link link = new Link();
this.setModel(new Model(link));
add(new TextField("name", new PropertyModel(link, "name")));
add(new TextField("address",new PropertyModel(link, 
"address")));
add(new AjaxSubmitLink("ok"){
@Override
protected void onSubmit(AjaxRequestTarget target, Form 
form) {} 
});
}

@Override
protected void onSubmit() {
Link l = (Link)this.getModelObject();
new LinkDAO().save(l);
}
}


Now i want to update (refresh) my another panel with list of links on my page :D
That will be a problem for me now. I'm beginner

-- 
Greetings,
marioosh

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



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 = new TextField("address");
add(name);
add(address);
add(new AjaxLink("ok"){
public void onClick(AjaxRequestTarget target) {
// how to get name and address values ?
System.out.println("ok");
}   
}); 
}
}

Thanks in advance.

-- 
Greetings,
marioosh

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



Re: Reload classes / pages on jetty

2009-12-16 Thread marioosh.net
2009/12/16, Igor Vaynberg :
> 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

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



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();
arg0.add(new Label("link", l.getName()));
}

});

template:

link


question:
How to change href="#" with l.getAddress() ?

-- 
Greetings
marioosh

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



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

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



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 :
> I see that work for classes, but not for pages/templates...:(
>
> 2009/12/16, marioosh.net :
>> not: "and i reload my application."
>> but: "and reload my application."
>> :)
>>
>> 2009/12/16, 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
>>>
>>
>>
>> --
>> Pozdrawiam,
>> Mariusz
>>
>
>
> --
> Pozdrawiam,
> Mariusz
>


-- 
Pozdrawiam,
Mariusz

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



Re: Reload classes / pages on jetty

2009-12-16 Thread marioosh.net
I see that work for classes, but not for pages/templates...:(

2009/12/16, marioosh.net :
> not: "and i reload my application."
> but: "and reload my application."
> :)
>
> 2009/12/16, 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
>>
>
>
> --
> Pozdrawiam,
> Mariusz
>


-- 
Pozdrawiam,
Mariusz

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



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 :
> 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
>


-- 
Pozdrawiam,
Mariusz

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



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

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



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 :
> Yes, i use maven quickstart project.
>
>
> 2009/12/15, MattyDE :
>>
>> Hi Mariusz ,
>>
>> is your "HomePage.html" file in the same folder as "HomePage.class"?
>>
>>
>>
>> marioosh.net wrote:
>>>
>>> I have template:
>>> >> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";
>>>>
>>> 
>>> 
>>> 
>>> 
>>>
>>> and class:
>>> public class HomePage extends WebPage {
>>> public HomePage(final PageParameters parameters) {
>>> add(new Button("ok"));
>>> }
>>> }
>>>
>>> But i get error:
>>> Unable to find component with id 'ok' .  or that the hierarchy
>>> does not match.
>>>
>>> --
>>> Pozdrawiam,
>>> Mariusz
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/-newbie--Adding-button---simple-question-tp26793576p26793696.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
>>
>>
>
>
> --
> Pozdrawiam,
> Mariusz
>


-- 
Pozdrawiam,
Mariusz

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



Re: [newbie] Adding button - simple question

2009-12-15 Thread marioosh.net
Yes, i use maven quickstart project.


2009/12/15, MattyDE :
>
> Hi Mariusz ,
>
> is your "HomePage.html" file in the same folder as "HomePage.class"?
>
>
>
> marioosh.net wrote:
>>
>> I have template:
>> > xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";
>>>
>> 
>> 
>> 
>> 
>>
>> and class:
>> public class HomePage extends WebPage {
>> public HomePage(final PageParameters parameters) {
>> add(new Button("ok"));
>> }
>> }
>>
>> But i get error:
>> Unable to find component with id 'ok' .  or that the hierarchy
>> does not match.
>>
>> --
>> Pozdrawiam,
>> Mariusz
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/-newbie--Adding-button---simple-question-tp26793576p26793696.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
>
>


-- 
Pozdrawiam,
Mariusz

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



[newbie] Adding button - simple question

2009-12-15 Thread marioosh.net
I have template:
http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";
>





and class:
public class HomePage extends WebPage {
public HomePage(final PageParameters parameters) {
add(new Button("ok"));
}
}

But i get error:
Unable to find component with id 'ok' .  or that the hierarchy
does not match.

-- 
Pozdrawiam,
Mariusz

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