Re: Wicket with Spring AOP

2011-06-02 Thread Altuğ Bilgin Altıntaş
Merhaba izlem; I think you should look at Proxy-based Approach. Spring and Wicket integration type is important. Please visit : https://cwiki.apache.org/WICKET/spring.html. A. 01 Haziran 2011 20:02 tarihinde İzlem Gözükeleş izl...@gmail.com yazdı: Furthermore, I changed the source code of

Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-06-02 Thread Gonzalo Aguilar Delgado
Hi James, Yes, please, send me a .war. My e-mail has no limit in storage. gagui...@aguilardelgado.com El mié, 01-06-2011 a las 16:34 -0400, James Carman escribió: On Wed, Jun 1, 2011 at 2:59 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Does it took long to program

Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-06-02 Thread Gonzalo Aguilar Delgado
Hi James, Using dojo it's a very different approach. The idea of using dojo is to use everything that dojo gives... I think it has powerfull features: * Full support for lots of widget (calendar, hour, autocomplete text fields, etc). * Theme

adding link to datatable

2011-06-02 Thread henry
hi guys am having some issues my code any help will do,am trying to add a link to my datatable firstly i created the DetailPage class //DetailPage class code public DetailsPage(String id , IModel entryModel) { super(id,entryModel); Link link = new Link(link){

Re: adding link to datatable

2011-06-02 Thread James Carman
What is DetailsPage's hierarchy? On Thu, Jun 2, 2011 at 6:02 AM, henry henstri...@yahoo.com wrote: hi guys am having some issues my code any help will do,am trying to add a link to my datatable firstly i created the DetailPage class //DetailPage class code public DetailsPage(String id ,

Re: adding link to datatable

2011-06-02 Thread James Carman
Class hierarchy. On Thu, Jun 2, 2011 at 6:56 AM, James Carman ja...@carmanconsulting.com wrote: What is DetailsPage's hierarchy? On Thu, Jun 2, 2011 at 6:02 AM, henry henstri...@yahoo.com wrote: hi guys am having some issues my code any help will do,am trying to add a link to my datatable

Re: adding link to datatable

2011-06-02 Thread henry
here is the DetailsPage hierarchy //DetailsPage.html html head meta http-equiv=Content-Type content=text/html; charset=UTF-8/ titleDetailsPage/title link rel=stylesheet type=text/css href=style.css/ /head wicket:panel henry

Re: adding link to datatable

2011-06-02 Thread henry
Here is the detailspage.html hierarchy html head meta http-equiv=Content-Type content=text/html; charset=UTF-8/ titleDetailsPage/title link rel=stylesheet type=text/css href=style.css/ /head wicket:panel henry /wicket:panel /html --

Re: Wicket with Spring AOP

2011-06-02 Thread İzlem Gözükeleş
Merhaba, I found the problem. My problem was mixing the Wicket and Spring configurations. I had used both SpringBean and Spring's Autowire mechanisms in some places... Now, I modified the code and used only @SpringBean. Everything is working properly. 2011/6/2 Altuğ Bilgin Altıntaş

Wicket

2011-06-02 Thread Ivoneta
hello everyone I need some help.. I have an application based on struts... This application has some links, and I need this links calls a Wicket Pageit is possible? I think that is possible calls ising the url page , but the problem is the wicket generates the urls dinamically... How can I

Wicket

2011-06-02 Thread Ivoneta
hello everyone I need some help.. I have an application based on struts... This application has some links, and I need this links calls a Wicket Pageit is possible? I think that is possible calls ising the url page , but the problem is the wicket generates the urls dinamically... How can I

Re: Wicket

2011-06-02 Thread Igor Vaynberg
mount your wicket page so it has a well known url which you can call from the struts app. -igor On Thu, Jun 2, 2011 at 8:51 AM, Ivoneta ietaraz...@gmail.com wrote: hello everyone I need some help.. I have an application based on struts... This application has some links, and I need this

WicketTester and the rendered page

2011-06-02 Thread msalman
I am testing an application that starts with a login page. After logging in the user is taken to the home page. @Test public void test() { QuickStartApplication app = new QuickStartApplication();

RE: WicketTester and the rendered page

2011-06-02 Thread John Owen
You submitted the HomePage form. Where do you expect the app to go from there? -Original Message- From: msalman [mailto:mohammad_sal...@yahoo.com] Sent: Thursday, June 02, 2011 11:24 AM To: users@wicket.apache.org Subject: WicketTester and the rendered page I am testing an application

RE: WicketTester and the rendered page

2011-06-02 Thread msalman
Thanks for the quick response. Well, I want it to stay at the Home Page. How did it go back to loginPage?? Thanks again. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-the-rendered-page-tp3568766p3568826.html Sent from the Users forum mailing list

Re: WicketTester and clicking a tree node

2011-06-02 Thread msalman
Pedro, thanks for your response. I solved my problem in the following way: For my derived DefaultMutableTreeNode class I added an Ajax link element: public class CheckBoxSelectableTreeItem extends DefaultMutableTreeNode { protected AjaxLink clickLink; // for testing the

Link onClick() method update on runtime

2011-06-02 Thread meduolis
Is there any way to update onClick method for the same link? Let say I have link add(new Link(myLink) { public void onClick() { // do something here... } ); And later, when I click other control I want to update myLink onClick logic public void onClick() { // do something

Re: Link onClick() method update on runtime

2011-06-02 Thread Sven Meier
Sure, it's just Java: add(new Link(myLink) { public void onClick() { if (buttonClicked) { // do something else if button (was) clicked } else { // do something here... } } }); add(new Button(myButton) { public void onSubmit() {

Re: Link onClick() method update on runtime

2011-06-02 Thread meduolis
I will update this onClick recursive, need some more dynamic solution -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-onClick-method-update-on-runtime-tp3568895p3568935.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Link onClick() method update on runtime

2011-06-02 Thread andrea del bene
Hi, you can consider to attach/remove behaviors to you link. For example : link = new Link(link){ @Override public void onClick() { } }; link.add(new AjaxEventBehavior(onclick) { protected void onEvent(AjaxRequestTarget target) {

Re: Link onClick() method update on runtime

2011-06-02 Thread Sven Meier
Use the strategy pattern (i.e. changing the strategy each time a button is submitted): http://en.wikipedia.org/wiki/Strategy_pattern Sven On 06/02/2011 07:42 PM, meduolis wrote: I will update this onClick recursive, need some more dynamic solution -- View this message in context:

Re: WicketTester and clicking a tree node

2011-06-02 Thread Pedro Santos
Hi Mohammad, nice you created the test case. I just would recommend to don't make any reference from your domains objects (TreeNode) to view ones (AjaxLink) because they are usually packaged in different places. Take a look at how I created a similar test:

Re: Wicket

2011-06-02 Thread Ivoneta
but I don't know how get the URL for the page? Wicket generates de URL dinamically right? How can generates an static URL? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-tp3568681p3569148.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket

2011-06-02 Thread andrea del bene
You can mount a page to a static path in you Application class. in Wicket 1.4.x just call mountBookmarkablePage: //url for asterisk calls mountBookmarkablePage(/DialPage, DialPage.class); Under Wicket 1.5 you should call mountPage instead of mountBookmarkablePage. but I don't know how get the

Re: WicketTester and clicking a tree node

2011-06-02 Thread msalman
Hi Pedro. But how do you get the link's id i.e., moveC3ToC2? I added all the code to the Node and Tree derive classes to so that I could get the link id. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-clicking-a-tree-node-tp3556724p3569317.html

Re: 1.5-SNAPSHOT build repository

2011-06-02 Thread Serban.Balamaci
Ah it's ok to use https://repository.apache.org/content/repositories/snapshots didn't have an update policy specified(although default is daily) and the snapshot version was red, but changing it must have forced an IDE reimport. repository idApache Nexus - snapshots/id

Re: 1.5-SNAPSHOT build repository

2011-06-02 Thread Serban.Balamaci
Hello, I was referring to a maven snapshot repository from where to have maven check daily for new builds of the snapshot version. What I currently do is to manually svn checkout and do mvn install. Not really a problem but the phrase If you want to stay recent but don't want to build yourself,

Re: How would you realize a delete-Link in a datagrid row?

2011-06-02 Thread dhans006
Hi , I am also looking the same, could you please share the details, if you found the solution. regards dhans -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-would-you-realize-a-delete-Link-in-a-datagrid-row-tp1889342p3567661.html Sent from the Users forum

Re: Images referencing in CSS with Wicket

2011-06-02 Thread Igor Vaynberg
if you want to reference images from css the images have to live next to the css file. so if your css is in webapp, the images have to be based in webapp, but if your css lives in a java package the images have to live there as well. this way relative urls work. -igor On Thu, Jun 2, 2011 at

Preserving user input on ajax changes

2011-06-02 Thread Nelson Segura
I have a form to which I need to add dynamic fields using ajax, whenever the user clicks on the add new input link. I need to preserve the current user input, without actually updating the backing models (or at least preserve input that is not completely valid, or do not show errors if the user as

Re: Preserving user input on ajax changes

2011-06-02 Thread Igor Vaynberg
you want setDefaultFormProcessing(false) -igor On Thu, Jun 2, 2011 at 3:41 PM, Nelson Segura nsegu...@gmail.com wrote: I have a form to which I need to add dynamic fields using ajax, whenever the user clicks on the add new input link. I need to preserve the current user input, without

Re: Preserving user input on ajax changes

2011-06-02 Thread Nelson Segura
On the AjaxSubmitLink, correct? When I do that, the input of the other fields is lost (which has not been previously submitted). How does wicket exactly decides whether to show the model value or the user raw input? My Ajax links is refreshing the whole panel. -Nelson On Thu, Jun 2, 2011 at 4:14

Re: Preserving user input on ajax changes

2011-06-02 Thread Pedro Santos
Hi Nelson, the raw input has preference and it remains in the form component until be converted and set in the form component model. For your use case you can use a simple AjaxLink targeting just the dynamic fields panel, not the whole form. On Thu, Jun 2, 2011 at 8:22 PM, Nelson Segura

Re: Preserving user input on ajax changes

2011-06-02 Thread Igor Vaynberg
default processing = false means do not validate, etc. but, inputs are preserved. make sure your ajaxsubmitlink is inside the correct form. you can specify one in its constructor. -igor On Thu, Jun 2, 2011 at 4:22 PM, Nelson Segura nsegu...@gmail.com wrote: On the AjaxSubmitLink, correct? When

Re: FormComponent convertInput for children FormComponets

2011-06-02 Thread Igor Vaynberg
create a quickstart and we can see if there is an easy fix. at first glance it seems rather strange to have a form inside a formcomponentpanel -igor On Wed, Jun 1, 2011 at 6:56 PM, Clint Checketts checke...@gmail.com wrote: I finally had a chance to create a quickstart and play with it. The

setReuseItems(true) + transactions = ERROR

2011-06-02 Thread Gonzalo Aguilar Delgado
Hello, I used to refresh all the components in the listview for each http transaction. But now I tried to use the: setReuseItems(true); When using a ListView. Documentation says that is a must (but I made it to work without it). The problem is that now the objects are serialized and

Re: FormComponent convertInput for children FormComponets

2011-06-02 Thread Clint Checketts
I created https://issues.apache.org/jira/browse/WICKET-3765 and attached a quickstart. I commented out the Form in the quickstart. Just uncomment those lines to see the bug. Regarding the strangeness of the Form in the FormComponent: I may be able to remove the Form. This is an older component

[OT] Google, Microsoft, and Yahoo Team Up to Improve Search

2011-06-02 Thread Attila Király
Hi, Maybe not everyone heard about it but there is a new way to enhance the markup and make it more search crawler friendly: http://schema.org . It seems interesting. Attila