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 of
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, Benedikt
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
pe
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 no
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 is
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
To: users@wicket.apach
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 wrote:
>
> Thanks James I'll investigate on extending PropertyModel.
>
> Currently I'm
But, then you lose the component-specific error messages.
On Fri, Jan 28, 2011 at 4:08 PM, wrote:
> Just a suggestion, pass the UserDto to the service layer and let the
> service layer do the conversion. Then you can look at http://code.google.com/p/simple-object-assembler/";>Simple Object
> As
Just a suggestion, pass the UserDto to the service layer and let the
service layer do the conversion. Then you can look at http://code.google.com/p/simple-object-assembler/";>Simple Object
Assembler to encapsulate the conversion. Hint: use
automapWhenNoConverterFound property and you won't nee
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 has
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 y
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:
http://apache-wic
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 wrote:
>
> Hi all,
>
> I'm new to Wicket.
> I'm building an application,
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 implemented
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,
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 w
Hi guys ...
I need some help with custom IStringResourceLoader
public class DictionaryResourceLoader implements IStringResourceLoader {
private static final Logger
LOG
= LoggerFactory
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 wh
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 mat
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 wrote:
>
> Hey man
>
> I
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 wrote:
> Hello to all,
>
>
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 ajax
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 (fo
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 th
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.
25 matches
Mail list logo