Re: Mapping wicket:id to component without changing Java code

2011-02-05 Thread splitshade
Hi, some days ago, I experimented with exactly the same usecase (letting webdesigners place components on a Wicket Page), i wrote a small BlogEntry (unfortunately in German, but maybe Google could translate). http://splitshade.wordpress.com/2011/01/27/wicket-markup-komponenten-braucht-man-das/

Re: Mapping wicket:id to component without changing Java code

2011-02-05 Thread Jeremy Thomerson
create your own component resolver Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Jan 31, 2011 7:52 PM, Alec Swan alecs...@gmail.com wrote: Hello, I would like to add credit card processing form to many

Re: Mapping wicket:id to component without changing Java code

2011-02-02 Thread msj121
Not sure how to e-mail someone directly as e-mails are hidden But it's okay, I will probably look to implement an existing open source system with Wicket, I am just curious if anyone would want to work on building a specific open source idea for wicket either from scratch or properly building

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread Andrea Del Bene
Hi Alec, I don't think Wicket has a configuration option that can help you. But you can create a web page superclass that parses HTML and adds your form if it finds tag div wicket:id=creditCardForm/. For example you can override onInitialize method and add something like this: MarkupParser

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread msj121
You can add an empty label to replace the content if not adding the component. You can have a repeating list if you have lots of dynamic content, this way whatever you add to the list is added or you can just add an empty component. It does seem odd to me that in your html you know whether to

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread James Carman
On Tue, Feb 1, 2011 at 10:27 AM, msj121 msj...@gmail.com wrote: You can add an empty label to replace the content if not adding the component. Or, use EmptyPanel or a plain ole WebMarkupContainer? - To unsubscribe, e-mail:

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread Alec Swan
Thank you everybody for the clever ideas. msj121, I just started building the credit card form and was planning to just use Authorize.net APIs. This is not directly related to Wicket, so we should take this discussion off this forum. Email me directly if you have some thoughts or just wanted to

Mapping wicket:id to component without changing Java code

2011-01-31 Thread Alec Swan
Hello, I would like to add credit card processing form to many different pages in my application. However, I don't know which pages it will be added to and it is up to the web designer to decide. I would like to allow the web designer to be able to put div wicket:id=creditCardForm/ anywhere in