How to render panel markup to string?

2009-10-30 Thread Martin Makundi
Hi! Can a wicket component be rendered to string in the following use case: 1. I have a table (multiple columns and rows). Each row corresponds to a person. The columns could represent for rexample a calendar for the person. Monda, tuesday, etc. 2. For each row, I have summary information. I

Re: Wicket Release Plans for 1.5

2009-10-30 Thread Martijn Dashorst
I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote:    Thanks for your answer, Daniel igor.vaynberg wrote: the focus of this release is to rewrite url and page handling. the focus is on flexibility and

Re: Wicket Release Plans for 1.5

2009-10-30 Thread Haulyn R. Jason
I am care about Can I upgrade all my applications from 1.4.3 to 1.5 as easy as possible. On Fri, Oct 30, 2009 at 4:27 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe

Re: Wicket Release Plans for 1.5

2009-10-30 Thread Dave B
I'm still eager to make WicketTester a first class citizen. I'm keen on this too -- is there a 'voting' mechanism in the bug tracker for this sort of thing? Cheers, Dave On Fri, Oct 30, 2009 at 7:27 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I'm still eager to make WicketTester

Re: AccessControlException with Wicket on Google App Engine (GAE)

2009-10-30 Thread A. Maza
yes, except the fact that I am trying to use a Memcache-based implementation of the IPageStore instead of the HTTPSessionStore (based on the TerracottaPageStore. However, in my case the exception occurs when I am trying to serialize the page using the provided method of the AbstractPageStore.

Re: Tree table with check box

2009-10-30 Thread vela
Hello again, I am getting only the check box and not the tree structure. Instead of markupcontainer i am using panels. Could you telll, how to get the tree structure along with check box in the same column. -- View this message in context:

Re: Generate dynamic tables

2009-10-30 Thread vela
Hello again, Could you tell how to add dynamic column in the DefaultDataTable -- View this message in context: http://old.nabble.com/Generate-dynamic-tables-tp26080641p26127900.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Generate dynamic tables

2009-10-30 Thread James Carman
When you construct it, you give it a list of columns. If the columns need to change, just reconstruct it and replace it. On Fri, Oct 30, 2009 at 6:37 AM, vela vela@gmail.com wrote: Hello again, Could you tell how to add dynamic column in the DefaultDataTable -- View this message in

Re: Wicket Release Plans for 1.5

2009-10-30 Thread Richard Allen
Is the Wicket Ajax Next Generation work going into 1.5? Also, is there plans for an event bus, sort of like what you see in Jonathan Locke's 26 wicket tricks source code? I've seen some really nice use of event bus in GWT that I think Wicket could benefit from. -Richard On Fri, Oct 30, 2009 at

Re: Wicket Release Plans for 1.5

2009-10-30 Thread Martin Grigorov
Hi Martijn, What ideas do you have for this area ? I'll be glad to help if I can. El vie, 30-10-2009 a las 09:27 +0100, Martijn Dashorst escribió: I'm still eager to make WicketTester a first class citizen. Martijn On Thu, Oct 29, 2009 at 7:01 PM, dtoffe dto...@yahoo.com.ar wrote:

Date format in DataTable

2009-10-30 Thread zabian
Hi there, i would like to find out if the date format for java.util.Date property is customizable in DataTable. Could anyone point me how to set it? Regards, Wojtek - To unsubscribe, e-mail:

Re: Wicket Release Plans for 1.5

2009-10-30 Thread Martijn Dashorst
Mostly component selectors a la JDave/wicket, to ensure your tests don't fail when you modify your component hierarchy. Martijn On Fri, Oct 30, 2009 at 1:29 PM, Martin Grigorov mcgreg...@e-card.bg wrote: Hi Martijn, What ideas do you have for this area ? I'll be glad to help if I can. El

Re: Date format in DataTable

2009-10-30 Thread Ernesto Reinaldo Barreiro
Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and return a model that formats the date as you need? Best, Ernesto 2009/10/30 zabian zabia...@gmail.com Hi there, i

Re: Date format in DataTable

2009-10-30 Thread zabian
I do use PropertyColumn. I will try it out and let you know. Thanks for help. Wojtek Ernesto Reinaldo Barreiro pisze: Are you using PropertyColumn? If yes... Why not override protected IModel? createLabelModel(IModelT rowModel) { return new PropertyModel(rowModel, propertyExpression); } and

Re: Date format in DataTable

2009-10-30 Thread Ernesto Reinaldo Barreiro
or public void populateItem(ItemICellPopulatorT item, String componentId, IModelT rowModel) { item.add(new Label(componentId, createLabelModel(rowModel))); } and you create directly a the label with the formated date Ernesto On Fri, Oct 30, 2009 at 1:55 PM, zabian zabia...@gmail.com wrote:

problem with generation text in javascript code

2009-10-30 Thread pawel wolanski
Hello, Yesterday I've faced with problem with generating javascript code. On page I've inserted code: i.e.: wicket:extend formscript type=text/javascript appInitialize(here should be generated string); // generated string should be pasted as a param /wicket:extend I want to

Re: problem with generation text in javascript code

2009-10-30 Thread Martin Grigorov
make script element a Wicket citizen :-) script wicket:id=myScript.../script El vie, 30-10-2009 a las 14:32 +0100, pawel wolanski escribió: Hello, Yesterday I've faced with problem with generating javascript code. On page I've inserted code: i.e.: wicket:extend formscript

Re: 508 accessibility support

2009-10-30 Thread fachhoch
some of the html is generated by wicket like AjaxFallbackDataTable , pagination , AjaxTabs , DatePicker etc if these components have provision to make them 508 that will be really helpful. kinabalu wrote: Wicket uses HTML as its template markup. So as long as you code your HTML

Re: Date format in DataTable

2009-10-30 Thread zabian
It worked out. My solution is: private static final String DATE_FORMAT = -MM-dd HH:mm:ss; private static final SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT); ... @Override protected IModel createLabelModel(IModel rowModel) { return new ModelString(sdf.format(new

Re: Date format in DataTable

2009-10-30 Thread James Carman
We use the following class for date columns: import org.apache.wicket.WicketRuntimeException; import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn; import org.apache.wicket.model.IModel; import org.joda.time.DateTime; import java.text.ParseException; import

Re: Date format in DataTable

2009-10-30 Thread Ernesto Reinaldo Barreiro
If you have to do the same trick in several places maybe it would be better to use James' solution. Or role a classes like public abstract class FormatedDateModel extends ModelString { private static final long serialVersionUID = 1L; private IModelDate model; public

Re: Wicket Release Plans for 1.5

2009-10-30 Thread Igor Vaynberg
possibly. i think i would like this release to be as small as possible, centered around the new url stuff. once that is in release 1.5 and put the new ajax support from ng into 1.6. trying to release more and more often instead of taking over a year and a half like we did with 1.4.0 -igor On

StatelessForm.clearInput()

2009-10-30 Thread Tomás Rossi
Hi. I have a stateless form and a button inside to reset all fields like this: ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().clearInput(); };

Re: StatelessForm.clearInput()

2009-10-30 Thread Martin Grigorov
What's the benefit of this approach instead of using input type=reset/ without involving Wicket at all (it is stateless form) ? El vie, 30-10-2009 a las 12:42 -0300, Tomás Rossi escribió: Hi. I have a stateless form and a button inside to reset all fields like this: ...

Re: StatelessForm.clearInput()

2009-10-30 Thread Tomás Rossi
That's a very good question. I'll use that. But then, if it weren't a stateless form, should I involve Wicket and use clearInput()? Why? Tom; Martin Grigorov escribió: What's the benefit of this approach instead of using input type=reset/ without involving Wicket at all (it is stateless

Re: StatelessForm.clearInput()

2009-10-30 Thread Tomás Rossi
Wait a minute... Because I need a reset button which effectively clean all fields and feedback messages. Reset button doesn't do that so it's not what I want. Tomás Rossi escribió: That's a very good question. I'll use that. But then, if it weren't a stateless form, should I involve Wicket

Re: problem with generation text in javascript code

2009-10-30 Thread paul wolanski
Hello Martin, Hmmm it looks like a little bit dirty trick, because I will have to print out whole initialization between script tags... I'll try to find another way to resolve that. Thank you for help Martin. I appreciate that. Cheers, Paul martin-g wrote: make script element a Wicket

Re: 508 accessibility support

2009-10-30 Thread Jeremy Thomerson
Override their HTML or make your own components. Simple. Done. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 30, 2009 at 9:06 AM, fachhoch fachh...@gmail.com wrote: some of the html is generated by wicket like AjaxFallbackDataTable , pagination , AjaxTabs , DatePicker

Re: Using email in SignInPanel Username

2009-10-30 Thread Jeremy Thomerson
May be a bug. Please file a JIRA. In the meantime, the signinpanel is pretty generic and not meant for every usecase. You can easily create your own - even copying the code and modifying it. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 29, 2009 at 1:43 AM, wicketnewuser

Re: StatelessForm.clearInput()

2009-10-30 Thread Tomás Rossi
Ok, I did it. I needed to clean the model object like this... ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().modelChanging(); data.clear(); // data is

Re: problem with generation text in javascript code

2009-10-30 Thread Igor Vaynberg
you can use TextTemplateHeaderContributor to externalize the template and define replacement vars. -igor On Fri, Oct 30, 2009 at 10:09 AM, paul wolanski mikola...@gmail.com wrote: Hello Martin, Hmmm it looks like a little bit dirty trick, because I will have to print out whole initialization

Help with you can only locate or create sessions in the context of a request cycle error

2009-10-30 Thread Yasa, Srinivasa R
Hi, I am getting this error when i try to get the Session using getWebRequestCycle().getSession(); or even with Session.get() inside my WebPage. Also this is happening only when request goes through the Http Serevr and then to Oracle Application server which was our production setup. The error

Re: Help with you can only locate or create sessions in the context of a request cycle error

2009-10-30 Thread Pedro Santos
Hi Yasa, can you make sure that getWebRequestCycle().getSession() is called on the same thread that WicketFilter is responding the request? RequestCycle use thread locals to keep his reference, if you are working in an multi thread response, you can get that exception. On Fri, Oct 30, 2009 at

Re: 508 accessibility support

2009-10-30 Thread Sven Meier
Hi, at a short glance (http://www.webaim.org/standards/508/checklist) I didn't find anything inherent in Wicket violating this standard. Of course you will have to provide most of the required markup by yourself (how should Wicket know values for alt attributes?). Nevertheless if you're able

Re: 508 accessibility support

2009-10-30 Thread fachhoch
I am not complaining that wicket violates that . for example AjaxDefaultDataTable it creates the whole table with Sortable Table column, pagination etc, I am asking to provide some methods which takes values for alt attribute . Like the sortable columns , If I can set value for alt attribute

Re: How to render panel markup to string?

2009-10-30 Thread Martin Makundi
Looking at AjaxRequestTarget, maybe something like this might work? // substitute our encoding response for the real one so we can capture // component's markup in a manner safe for transport inside CDATA block final Response originalResponse =

Re: Tree table with check box

2009-10-30 Thread Per Newgro
Can you be more specific please. How did you created the treetable. How the columns. How the panel etc. Code helps to understand your problem. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: How to render panel markup to string?

2009-10-30 Thread Martin Makundi
Almost still needs some tweaking: org.apache.wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = -]] at

Opera. AjaxSelfUpdatingTimerBehavior inside iframe not rendering

2009-10-30 Thread Anton Veretennikov
Hi, Anyone encountered that AjaxSelfUpdatingTimerBehavior doesn't update markup when site is inside iframe on Opera browser? When outside iframe there is no problem. And it is floating - some markup is updated fine and when it is more complex, page become frozen. Opera versions tested: 9.64,