Re: Nesting Links

2011-01-28 Thread armandoxxx
Hey man I've used your method but it's not working .. got any other ideas ??? Regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nesting-Links-tp1885368p3244193.html Sent from the Users forum mailing list archive at Nabble.com.

RE: Submit form from ajaxlink not a part of the form

2011-01-28 Thread Brown, Berlin [GCG-PFS]
I added a kind of dummy ajax submit link on that form and then try to invoke that link... When I get a reference to the callback URL. Here is the error. Is there a way to debug that object error? I could try changing: 1. ignore if not active to false? 2. changing some of the parameters to

Adding attribute to selected menu item

2011-01-28 Thread Haman Abel
Hello to all, i am trying to build a dynamic menu based on data from a database. So i thought i could build it like my code shows it. To highlight the selected menu i try to dynamically add an attribute to the li tag in the onClick method. I would also want to load and repaint other panels

RE: Submit form from ajaxlink not a part of the form

2011-01-28 Thread Brown, Berlin [GCG-PFS]
I got it. But I passed function() { return true; } ... To the post and preconditions. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, January 28, 2011 12:52 AM To: users@wicket.apache.org Cc: berlin.br...@gmail.com Subject: Re: Submit form from

Re: Adding attribute to selected menu item

2011-01-28 Thread Pedro Santos
Hi Haman, ListView items are recreated by default (see RepeatingView or ListView#setReuseItems). So your code is adding an AttributeAppender to an component that will be discarded in benefit of a new one for the next render. On Fri, Jan 28, 2011 at 10:28 AM, Haman Abel fha...@online.de wrote:

Re: Nesting Links

2011-01-28 Thread Pedro Santos
I think the problem is that only IE has the window.event. Look at the Accessing the event on http://www.quirksmode.org/js/introevents.html nested anchor tags are ilegal: http://www.w3.org/TR/html401/struct/links.html#h-12.2.2 On Fri, Jan 28, 2011 at 9:02 AM, armandoxxx

PagingNavigator not working in PropertyListView

2011-01-28 Thread Duro
Hello, i have an component, which shows content of a table and i use PagingNavigator in this component to list the pages. This component is working correctly, when i put it directly into an page. But when i use repeater - PropertyListView , than PagingNavigator stops working correctly. No

Re: PagingNavigator not working in PropertyListView

2011-01-28 Thread Duro
SOLVED, calling setReuseItems(true) on PropertyListView helped (for whatever reasons) :-) Hello, i have an component, which shows content of a table and i use PagingNavigator in this component to list the pages. This component is working correctly, when i put it directly into an page. But

Custom implementation of IStringResourceLoader not working

2011-01-28 Thread armandoxxx
Hi guys ... I need some help with custom IStringResourceLoader public class DictionaryResourceLoader implements IStringResourceLoader { private static final Logger LOG =

Re: Custom implementation of IStringResourceLoader not working

2011-01-28 Thread Pedro Santos
Since loadStringResource(Component, String) implementation is returning the message key, the Localizer thinks the message for the key was found. Delegate its call to the loadStringResource(Class, String, Locale, String) method that uses the dictionary. On Fri, Jan 28, 2011 at 1:42 PM, armandoxxx

RE: 1.5.x javadoc

2011-01-28 Thread Zhubin Salehi
No 1.5.x! -Original Message- From: Steve Swinsburg [mailto:steve.swinsb...@gmail.com] Sent: January 28, 2011 12:04 AM To: users@wicket.apache.org Subject: Re: 1.5.x javadoc Wicket By Example has a section for the Javadocs, but it needs a refresh. http://wicketbyexample.com/api/ cheers,

Using Wicket with businness model classes that check for rules

2011-01-28 Thread fernandospr
Hi all, I'm new to Wicket. I'm building an application, actually finished most of the businness model classes. My businness classes don't have a default constructor, they have a constructor with parameters. Inside the constructor, it calls to the setters. These have the business rules

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
What about having a Validatable interface instead? I realize that this would allow you to put your business objects into an invalid state, but it would help make things easier :) On Fri, Jan 28, 2011 at 3:18 PM, fernandospr fernando...@gmail.com wrote: Hi all, I'm new to Wicket. I'm

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread fernandospr
Thanks James that was a quick response. The problem is that I already have many classes designed this way. Also, the classes where created on purpose this way as an analysis/design decision, I mean, only valid business objects should be created. -- View this message in context:

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
Well, you could create your own BusinessPropertyModel class that subclasses PropertyModel and catches those exceptions, perhaps. You'd have to figure out an elegant way to propagate the error message to the FormComponent that caused the issue. If you don't need component-specific error messages

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread fernandospr
Thanks James I'll investigate on extending PropertyModel. Currently I'm doing the following: public class UserRegistrationPage extends WebPage { @SpringBean private UserService userService; private FeedbackPanel feedbackPanel; private UserDto userDto; // only

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Just a suggestion, pass the UserDto to the service layer and let the service layer do the conversion. Then you can look at a href= http://code.google.com/p/simple-object-assembler/;Simple Object Assembler/a to encapsulate the conversion. Hint: use automapWhenNoConverterFound property and you

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
But, then you lose the component-specific error messages. On Fri, Jan 28, 2011 at 4:08 PM, mzem...@osc.state.ny.us wrote: Just a suggestion, pass the UserDto to the service layer and let the service layer do the conversion.  Then you can look at a href=

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
The problem with that approach is that you don't get all of the errors at once. The user would have to submit, see an error, fix, resubmit, see another error, etc. On Fri, Jan 28, 2011 at 3:59 PM, fernandospr fernando...@gmail.com wrote: Thanks James I'll investigate on extending

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Right right right, good catch, but I suppose you could write a conversion service which throws the business exception. Not really a solution to your question, but it would clean up your code a bit and take conversion logic out of the frontend. From: James Carman ja...@carmanconsulting.com

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
I don't know that I would agree that the conversion logic needs to be taken out of the front end. The front end is where the data is collected. It may have to be collected in a specific way (FileUploadField perhaps) that is connected with the chosen presentation layer (Wicket in our case). It

Add Component if markup exists?

2011-01-28 Thread Benedikt Rothe
Hi everybody Is it possible to add a Wicket-Component depending on the existence of a wicket:id in the Markup? Something like // Code with adding Components if there is a Markup-Element with WicketId Submit then this.add(new Button(Submit,...)); As far as I understood, it is not

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Ok but if the conversion has to be done multiple times why not encapsulate it and clean up your code, rather than coding a conversion for each dto every time its needed. With my suggestion the frontend calls a service to do the conversion, then supplies the primed object to the service to

Re: Add Component if markup exists?

2011-01-28 Thread Igor Vaynberg
if it only needs to live during render there is IComponentResolver if you need it to have a normal lifecycle you can analyze the markup and add the component if not already added. in 1.5 you can use getmarkup in onmarkupattached() or oninitialize() -igor On Fri, Jan 28, 2011 at 2:11 PM,

Wicket : Articles Blogs

2011-01-28 Thread Arjun Dhar
Hi, I am looking to incorporate a section on client websites for Articles Blogs. I've used Roller independently, but I feel its too bulky and self centered to integrate with a site. Do we have ready made components in Wicket that can help here? What do you guys use with Brix? Can I rip it