Re: nested divs, ajax css inheritance

2012-05-15 Thread Martin Grigorov
Hi,

Replace  with  in YourPage.html.
The same can be achieved by calling myPanel.setRenderBodyOnly(true) in Java

On Tue, May 15, 2012 at 10:01 PM, mlabs  wrote:
> I set html,body to height:100%; in my css file.
> I have a page rendered and i'm ajaxing in a sub panel.
> Because i'm ajaxing the panel in, I have to use setOutputMarkupId() .. which
> results in wicket inserting a div with a generated ID in between the outer
> containing div and the inner div of my panel... something like this :
>
> 
>      <---inserted by wicket
>         
>         .. component here..
>         
>    
> 
>
> the problem is that I want the inner div to inherit the height:100%
> attribute, but that only looks at the parent div.. which was inserted by
> wicket and breaks the chain of inheritance...
>
> i'm sure there is some glaringly obvious solution to this...
>
> any thoughts?
>
> TIA
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/nested-divs-ajax-css-inheritance-tp4635925.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to use setMarkup

2012-05-15 Thread Martin Grigorov
On Wed, May 16, 2012 at 7:33 AM, kjarbr  wrote:
> Thanks Martin, IMarkupResourceStreamProvider and IMarkupCacheKeyProvider did
> the trick.
>
> I'm trying to reduce form boilerplate code. So I've made a general form
> component which, based on constructor values, pojo annotations and
> reflection, can create any html5 input field with or without label,
> validation, component feedbackpanel, ajax updating behavior and styling.
> I found it easier to manipulate the small amount of html required for this
> in java.
>
> And the component works by the way  :)

Great! :-)

>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-use-setMarkup-tp4634090p4640769.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to use setMarkup

2012-05-15 Thread kjarbr
Thanks Martin, IMarkupResourceStreamProvider and IMarkupCacheKeyProvider did
the trick.

I'm trying to reduce form boilerplate code. So I've made a general form
component which, based on constructor values, pojo annotations and
reflection, can create any html5 input field with or without label,
validation, component feedbackpanel, ajax updating behavior and styling.
I found it easier to manipulate the small amount of html required for this
in java. 

And the component works by the way  :)



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-use-setMarkup-tp4634090p4640769.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Bookmarkablepagelink with anchor

2012-05-15 Thread Gaetan Zoritchak
Thanks for the tip. It was simple... I must be very tired.
Regards,
Gaetan,


2012/5/15 Alexander Cherednichenko 

> Hi!
>
> For this case we have subclassed protected CharSequence getURL() which is
> in BookmarkablePageLink. And - we just append anchor to it while passing it
> in the constructor or even model to the BookmarkablePageLink.
>
> In the override we call super.getURL() and then append an anchor.
>
> I see pretty much the same logic in some inner class of AutoLinkResolver --
> so we are on the right way :)
>
> Regards,
> Alex.
>
>
> 2012/5/15 Gaetan Zoritchak 
>
> > Hi all,
> >
> > I wanted to make a link on a Bookmarkablepage with an anchor. I didn't
> find
> > how to do it. The link has a setAnchor(Component) method but it can't be
> > that because the targeted anchor does not exist yet.
> >
> > My hope was that the method would take a String as parameter:
> >
> > myLink.setAnchor("#8765");
> >
> > What is the best way of doing it under wicket 1.5.x?
> >
> > Thanks,
> >
>
>
>
> --
> Alexander Cherednichenko
>
> [ the only way out is the way up ]
>


nested divs, ajax css inheritance

2012-05-15 Thread mlabs
I set html,body to height:100%; in my css file.
I have a page rendered and i'm ajaxing in a sub panel.
Because i'm ajaxing the panel in, I have to use setOutputMarkupId() .. which
results in wicket inserting a div with a generated ID in between the outer
containing div and the inner div of my panel... something like this :

  
  <---inserted by wicket

 .. component here..
 



the problem is that I want the inner div to inherit the height:100%
attribute, but that only looks at the parent div.. which was inserted by
wicket and breaks the chain of inheritance...

i'm sure there is some glaringly obvious solution to this...

any thoughts?

TIA




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/nested-divs-ajax-css-inheritance-tp4635925.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Changing values by reference in child components... is it possible?

2012-05-15 Thread Sven Meier

Use Wicket's models:

PanelA(id) { ... add(new PanelB("B", someVarModel)) ... }

PanelB(id, someVarModel) { ... someVarModel.setObject(anotherValue) ... }
 


Sven


On 05/15/2012 07:57 PM, nunofaria11 wrote:

Hi everyone,

I am fairly new to Wicket, and probably my question has more to do with Java
than with Wicket, but still I'd like to get some feedback if thats ok.

Lets say that I have a Panel "B" inside a Panel "A"; panel B receives a
parameter from A

PanelA(id){ ... add(new PanelB("B", someVar)) ... }

PanelB(id, someV) { ... someV = anotherValue ... }

what is the best way to communicate to A that the value was changed in B.

I though of using the following: Ajax and AtomicReferences.
Does anyone have any opinion?

Thanks


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Changing-values-by-reference-in-child-components-is-it-possible-tp4635008.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Changing values by reference in child components... is it possible?

2012-05-15 Thread nunofaria11
Hi everyone,

I am fairly new to Wicket, and probably my question has more to do with Java
than with Wicket, but still I'd like to get some feedback if thats ok.

Lets say that I have a Panel "B" inside a Panel "A"; panel B receives a
parameter from A

PanelA(id){ ... add(new PanelB("B", someVar)) ... }

PanelB(id, someV) { ... someV = anotherValue ... }

what is the best way to communicate to A that the value was changed in B.

I though of using the following: Ajax and AtomicReferences.
Does anyone have any opinion?

Thanks


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Changing-values-by-reference-in-child-components-is-it-possible-tp4635008.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Single page wicket app

2012-05-15 Thread Martin Grigorov
On Tue, May 15, 2012 at 9:03 PM, W Mazur  wrote:
> I would add Wicket Session size.
> See: 
> http://www.small-improvements.com/blog/technical/tuning-wicket-session-size

Can you be more specific ?
How single-page app is different in this respect to a normal app ?

>
> Regards
>
> 2012/5/15 Jürgen Lind :
>> What do you mean by "large"? Many users or many dialogs/components? I have
>> developed
>> three more or less (which means that a new page was only needed when
>> basically the entire
>> structure changed - which occured seldomly) single page apps with wicket and
>> I have not
>> run into real problems. But as Martin mentiones in the next post, the
>> Back-Bitton support
>> is mostly gone...
>>
>> J.
>>
>>
>> On 15.05.2012 18:06, bobj wrote:
>>>
>>> We are creating a large single page wicket based application using tabs
>>> and
>>> ajax to replace portions of the page when needed.
>>>
>>> Does anyone know of any large single page wicket apps out there, or any
>>> issues we need to address?
>>>
>>> thanks!
>>>
>>> --
>>> View this message in context:
>>> http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756.html
>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Single page wicket app

2012-05-15 Thread W Mazur
I would add Wicket Session size.
See: http://www.small-improvements.com/blog/technical/tuning-wicket-session-size

Regards

2012/5/15 Jürgen Lind :
> What do you mean by "large"? Many users or many dialogs/components? I have
> developed
> three more or less (which means that a new page was only needed when
> basically the entire
> structure changed - which occured seldomly) single page apps with wicket and
> I have not
> run into real problems. But as Martin mentiones in the next post, the
> Back-Bitton support
> is mostly gone...
>
> J.
>
>
> On 15.05.2012 18:06, bobj wrote:
>>
>> We are creating a large single page wicket based application using tabs
>> and
>> ajax to replace portions of the page when needed.
>>
>> Does anyone know of any large single page wicket apps out there, or any
>> issues we need to address?
>>
>> thanks!
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Bookmarkablepagelink with anchor

2012-05-15 Thread Alexander Cherednichenko
Hi!

For this case we have subclassed protected CharSequence getURL() which is
in BookmarkablePageLink. And - we just append anchor to it while passing it
in the constructor or even model to the BookmarkablePageLink.

In the override we call super.getURL() and then append an anchor.

I see pretty much the same logic in some inner class of AutoLinkResolver --
so we are on the right way :)

Regards,
Alex.


2012/5/15 Gaetan Zoritchak 

> Hi all,
>
> I wanted to make a link on a Bookmarkablepage with an anchor. I didn't find
> how to do it. The link has a setAnchor(Component) method but it can't be
> that because the targeted anchor does not exist yet.
>
> My hope was that the method would take a String as parameter:
>
> myLink.setAnchor("#8765");
>
> What is the best way of doing it under wicket 1.5.x?
>
> Thanks,
>



-- 
Alexander Cherednichenko

[ the only way out is the way up ]


Bookmarkablepagelink with anchor

2012-05-15 Thread Gaetan Zoritchak
Hi all,

I wanted to make a link on a Bookmarkablepage with an anchor. I didn't find
how to do it. The link has a setAnchor(Component) method but it can't be
that because the targeted anchor does not exist yet.

My hope was that the method would take a String as parameter:

myLink.setAnchor("#8765");

What is the best way of doing it under wicket 1.5.x?

Thanks,


Re: Single page wicket app

2012-05-15 Thread Jürgen Lind

What do you mean by "large"? Many users or many dialogs/components? I have 
developed
three more or less (which means that a new page was only needed when basically 
the entire
structure changed - which occured seldomly) single page apps with wicket and I 
have not
run into real problems. But as Martin mentiones in the next post, the 
Back-Bitton support
is mostly gone...

J.

On 15.05.2012 18:06, bobj wrote:

We are creating a large single page wicket based application using tabs and
ajax to replace portions of the page when needed.

Does anyone know of any large single page wicket apps out there, or any
issues we need to address?

thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Single page wicket app

2012-05-15 Thread Martin Grigorov
Hi,

I think the biggest concern here is the back button support.
What are your requirements about this ?

On Tue, May 15, 2012 at 6:06 PM, bobj  wrote:
> We are creating a large single page wicket based application using tabs and
> ajax to replace portions of the page when needed.
>
> Does anyone know of any large single page wicket apps out there, or any
> issues we need to address?
>
> thanks!
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Single page wicket app

2012-05-15 Thread bobj
We are creating a large single page wicket based application using tabs and
ajax to replace portions of the page when needed.

Does anyone know of any large single page wicket apps out there, or any
issues we need to address?

thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: how to debug MarkupNotFoundException

2012-05-15 Thread cosmindumy
So, I haven't solved the MarkupNotFoundException. 

The error occurs after I refresh the parent of repeater using Ajax. Actually
I use a ListView. Here is the error in the log:

RequestCycle.java | 1531 | Markup of type 'html' for component
'com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.UploadFilesControl$1$1'
not found. Enable debug messages for org.apache.wicket.util.resource to get
a list of all filenames tried.: [MarkupContainer [Component id =
iconMinusPanelId]]
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component
'com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.UploadFilesControl$1$1'
not found. Enable debug messages for org.apache.wicket.util.resource to get
a list of all filenames tried.: [MarkupContainer [Component id =
iconMinusPanelId]]
at
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:227)  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356p4634680.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Add or removed FileUploadFields dynamically

2012-05-15 Thread Martin Grigorov
Hi,

See whether 
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/
is in help.

On Tue, May 15, 2012 at 4:03 PM, xe0nre  wrote:
> Hi,
>
> I have a really big problem with FileUploadFields. I am trying to create a
> panel that  uses a ListView . Each row contains a  Label, a FileUploadField
> and two AjaxSubmitLinks styled as plus and minus buttons.
> The purpose of this panel is very simple:
> *Initialise the panel with a certain number of rows.(constructor)
> *Use the plus and minus buttons to add or remove rows.
>
> The ListView is added to a MarkupContainer so it could be refreshed .
>
> My problem is that whenever I try to add or remove a row i have to add the
> MarkupContainer to the target.This means every row will be refreshed.Every
> FileUploadField is regenerated but looses the model.
>
> Is there any solution to this problem?
>
> Thanks
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Add-or-removed-FileUploadFields-dynamically-tp4634516.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Add or removed FileUploadFields dynamically

2012-05-15 Thread xe0nre
Hi,

I have a really big problem with FileUploadFields. I am trying to create a
panel that  uses a ListView . Each row contains a  Label, a FileUploadField
and two AjaxSubmitLinks styled as plus and minus buttons.
The purpose of this panel is very simple:
*Initialise the panel with a certain number of rows.(constructor)
*Use the plus and minus buttons to add or remove rows.

The ListView is added to a MarkupContainer so it could be refreshed .

My problem is that whenever I try to add or remove a row i have to add the
MarkupContainer to the target.This means every row will be refreshed.Every
FileUploadField is regenerated but looses the model.

Is there any solution to this problem?

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Add-or-removed-FileUploadFields-dynamically-tp4634516.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket 6 using external session

2012-05-15 Thread kamiseq
the other technology is WebObjects and it uses its own server, I have
no idea if it can be easily ported to servlet container, anyway right
now it is not using one (as far I can tell).

> Wicket stores only the last used page instance in the http session.
> One instance!
> And only if the page is stateful.
> With a custom IPageStore impl you can make this even 0, but then each
> Ajax request will load the page from the disk.

maybe it is possible to make a hybrid implementation to store model
data in shared session and everything else locally because only wicket
will use it. where should I start digging.
IPageStore is one anything else?

what about rendering strategies - is this something I should worry about?

thanks

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket 6 dynamic form parts generated in JS

2012-05-15 Thread kamiseq
ok, great.
this is what I thought so I dont want to reinvent things again, many
thanks for quick replay

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket 6 global services

2012-05-15 Thread kamiseq
ok,
thanks

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


On 15 May 2012 08:43, Martin Grigorov  wrote:
> Hi,
>
> See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources
> Instead of serving images you can serve whatever you need.
>
> On Tue, May 15, 2012 at 1:19 AM, kamiseq  wrote:
>> hej,
>> I have few questions about how to do few things in wicket, right now I
>> m focusing on 6th version.
>>
>> I would like to create global service that returns for example JSON or
>> html. and given I have stateless page with components that supports
>> AJAX I would like to point my JS components to this global service.
>>
>> I think it best to accomplish this with mounting
>> 1) mount resource and then use
>> getRequestCycle().urlFor(resourceReference, parameters);
>> 2) if I have to return html maybe it is better to mount page
>>
>> I ve also found somewhere that I could implement custom renderers that
>> could render simple html or jason or whatever text I need, but I
>> cannot find anything about right now.
>>
>> what about adding custom RequestCycleListener, or something like that?
>>
>> pozdrawiam
>> Paweł Kamiński
>>
>> kami...@gmail.com
>> pkaminski@gmail.com
>> __
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.6 duplicates segments in absolute URLs

2012-05-15 Thread Martin Grigorov
The attachment didn't make it.
Send it to mgrigorov at apache org

On Tue, May 15, 2012 at 11:55 AM, Dirk Forchel  wrote:
> Hi Martin,
> attached you can find the quickstart application.
> Thanks,
>   Dirk
>
> Am 15.05.2012 10:39, schrieb Martin Grigorov-4 [via Apache Wicket]:
>> Thanks.
>> Send it directly to me. I'll attach it when Jira is OK.
>>
>> On Tue, May 15, 2012 at 10:34 AM, Dirk Forchel <[hidden email]
>> > wrote:
>>
>> > I've created issue https://issues.apache.org/jira/browse/WICKET-4561.
>> > Unfortunately I can't attach the quickstart since the JIRA server does
>> > respond with an error message.
>> >
>> > --
>> > View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs-tp4632213p4634089.html
>> > Sent from the Users forum mailing list archive at Nabble.com.
>> >
>> > -
>> > To unsubscribe, e-mail: [hidden email]
>> 
>> > For additional commands, e-mail: [hidden email]
>> 
>> >
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>> -
>> To unsubscribe, e-mail: [hidden email]
>> 
>> For additional commands, e-mail: [hidden email]
>> 
>>
>>
>>
>> 
>> If you reply to this email, your message will be added to the
>> discussion below:
>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs-tp4632213p4634095.html
>>
>> To unsubscribe from Wicket 1.5.6 duplicates segments in absolute URLs,
>> click here
>> .
>> NAML
>> 
>>
>
>
> --
> Dirk Forchel
> Software Engineer
>
> Telefon +49 (351) 4108-115
> Fax +49 (351) 4108-5115
> dirk.forc...@exedio.com
> www.exedio.com
>
> exedio Gesellschaft für Softwareentwicklung mbH
> Buchenstraße 16 B
> 01097 Dresden
> Deutschland
>
> Handelsregister: HRB 22109, Amtsgericht Dresden
> Sitz der Gesellschaft: Dresden
> Geschäftsführer: Sven-Erik Bornscheuer, Lutz Kirchner, Falk Krause
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs-tp4632213p4634199.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.6 duplicates segments in absolute URLs

2012-05-15 Thread Dirk Forchel
Hi Martin,
attached you can find the quickstart application.
Thanks,
   Dirk

Am 15.05.2012 10:39, schrieb Martin Grigorov-4 [via Apache Wicket]:
> Thanks.
> Send it directly to me. I'll attach it when Jira is OK.
>
> On Tue, May 15, 2012 at 10:34 AM, Dirk Forchel <[hidden email] 
> > wrote:
>
> > I've created issue https://issues.apache.org/jira/browse/WICKET-4561.
> > Unfortunately I can't attach the quickstart since the JIRA server does
> > respond with an error message.
> >
> > --
> > View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs-tp4632213p4634089.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden email] 
> 
> > For additional commands, e-mail: [hidden email] 
> 
> >
>
>
>
> -- 
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: [hidden email] 
> 
> For additional commands, e-mail: [hidden email] 
> 
>
>
>
> 
> If you reply to this email, your message will be added to the 
> discussion below:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs-tp4632213p4634095.html
>  
>
> To unsubscribe from Wicket 1.5.6 duplicates segments in absolute URLs, 
> click here 
> .
> NAML 
> 
>  
>


-- 
Dirk Forchel
Software Engineer

Telefon +49 (351) 4108-115
Fax +49 (351) 4108-5115
dirk.forc...@exedio.com
www.exedio.com

exedio Gesellschaft für Softwareentwicklung mbH
Buchenstraße 16 B
01097 Dresden
Deutschland

Handelsregister: HRB 22109, Amtsgericht Dresden
Sitz der Gesellschaft: Dresden
Geschäftsführer: Sven-Erik Bornscheuer, Lutz Kirchner, Falk Krause



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs-tp4632213p4634199.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard clear all formfields

2012-05-15 Thread jensiator
Good Idea. I will try it. The only drawback is that it will be done
everytime. Even if I go back to step1 and don't do anything. But I might be
able to live with that 
Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wizard-clear-all-formfields-tp4634057p4634157.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to use setMarkup

2012-05-15 Thread Martijn Dashorst
Why?

Martijn

On Tue, May 15, 2012 at 10:36 AM, kjarbr  wrote:
> I'm trying to use setMarkup with a panel. This is from my panel's
> constructor:
>
> String panelMarkup = StringBuilder...
> StringResourceStream stream = new StringResourceStream(panelMarkup,
> "text/html");
> MarkupResourceStream markupStream = new MarkupResourceStream(stream);
> IMarkupFragment fragment = new Markup(markupStream);
> setMarkup(fragment);
>
> This throws WicketNotSerializableException: Unable to serialize class:
> org.apache.wicket.markup.Markup
>
> Does anyone know how to do this right?
>
> Thanks.
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-use-setMarkup-tp4634090.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard clear all formfields

2012-05-15 Thread Alexander Cherednichenko
Then, manual traversal of the components of the newStep.getView(VIEW_ID,
this, this) with the form component visitor and clearing input for every
form component would work. Surely, if it is the same object returned every
time from getView(...)

2012/5/15 jensiator 

> Yes you are correct. I forgot to mention that I have already tried it. It
> does not work because Step2 formcomponents is not a part of the wizard form
> when step1 is.
> I think its done here in Wizard class
> public void onActiveStepChanged(IWizardStep newStep)
> {
>  form.replace(newStep.getView(VIEW_ID, this, this));
>  form.replace(newStep.getHeader(HEADER_ID, this, this));
> }
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wizard-clear-all-formfields-tp4634057p4634120.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Alexander Cherednichenko

[ the only way out is the way up ]


Re: Wizard clear all formfields

2012-05-15 Thread jensiator
Yes you are correct. I forgot to mention that I have already tried it. It
does not work because Step2 formcomponents is not a part of the wizard form
when step1 is. 
I think its done here in Wizard class
public void onActiveStepChanged(IWizardStep newStep)
{
 form.replace(newStep.getView(VIEW_ID, this, this));
 form.replace(newStep.getHeader(HEADER_ID, this, this));
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wizard-clear-all-formfields-tp4634057p4634120.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to use setMarkup

2012-05-15 Thread Martin Grigorov
See the examples at
http://www.wicket-library.com/wicket-examples/customresourceloading/

On Tue, May 15, 2012 at 10:36 AM, kjarbr  wrote:
> I'm trying to use setMarkup with a panel. This is from my panel's
> constructor:
>
> String panelMarkup = StringBuilder...
> StringResourceStream stream = new StringResourceStream(panelMarkup,
> "text/html");
> MarkupResourceStream markupStream = new MarkupResourceStream(stream);
> IMarkupFragment fragment = new Markup(markupStream);
> setMarkup(fragment);
>
> This throws WicketNotSerializableException: Unable to serialize class:
> org.apache.wicket.markup.Markup
>
> Does anyone know how to do this right?
>
> Thanks.
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-use-setMarkup-tp4634090.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.6 duplicates segments in absolute URLs

2012-05-15 Thread Martin Grigorov
Thanks.
Send it directly to me. I'll attach it when Jira is OK.

On Tue, May 15, 2012 at 10:34 AM, Dirk Forchel  wrote:
> I've created issue https://issues.apache.org/jira/browse/WICKET-4561.
> Unfortunately I can't attach the quickstart since the JIRA server does
> respond with an error message.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs-tp4632213p4634089.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.6 duplicates segments in absolute URLs

2012-05-15 Thread Dirk Forchel
I've created issue https://issues.apache.org/jira/browse/WICKET-4561.
Unfortunately I can't attach the quickstart since the JIRA server does
respond with an error message.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs-tp4632213p4634089.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard clear all formfields

2012-05-15 Thread Martin Grigorov
Form.clearInput() does exactly that.

On Tue, May 15, 2012 at 10:01 AM, Alexander Cherednichenko
 wrote:
> Hi!
> If the question is correctly understood by me, all u need is to traverse
> the form for all the components and clear input -- then just use form
> component visitor, traverse the entire form and clear components' input.
>
> however itd be good if someone else on the list told if such a solution is
> any good.
>
> regards,
> Alex.
> On May 15, 2012 10:50 AM, "jensiator"  wrote:
>
>> Hi everyone.
>> I got a problem. Anyone ever had a first step contain for example a
>> dropdown
>> that will load default data to the other formcomponents in the wizard?
>> The dropdown has got a ajaxformcomponentupdatingbehavior. We call our
>> server
>> in the ajax request and update a lot of properties in the model object. The
>> model object shared between all of the pages.
>> If you show step2 it will show the correct default values.
>> If you then go back to step1 again and change the dropdown, step2 will not
>> show the changes. This I  because I need to clear the input of the
>> formcomponents in step2. Is there any way to clear all formcomponents for
>> all steps in a wizard. The problem is that only one step at the time is
>> active.
>> Is Overriding onBefore render on every single step the only way?
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Wizard-clear-all-formfields-tp4634057.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard clear all formfields

2012-05-15 Thread Alexander Cherednichenko
Hi!
If the question is correctly understood by me, all u need is to traverse
the form for all the components and clear input -- then just use form
component visitor, traverse the entire form and clear components' input.

however itd be good if someone else on the list told if such a solution is
any good.

regards,
Alex.
On May 15, 2012 10:50 AM, "jensiator"  wrote:

> Hi everyone.
> I got a problem. Anyone ever had a first step contain for example a
> dropdown
> that will load default data to the other formcomponents in the wizard?
> The dropdown has got a ajaxformcomponentupdatingbehavior. We call our
> server
> in the ajax request and update a lot of properties in the model object. The
> model object shared between all of the pages.
> If you show step2 it will show the correct default values.
> If you then go back to step1 again and change the dropdown, step2 will not
> show the changes. This I  because I need to clear the input of the
> formcomponents in step2. Is there any way to clear all formcomponents for
> all steps in a wizard. The problem is that only one step at the time is
> active.
> Is Overriding onBefore render on every single step the only way?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wizard-clear-all-formfields-tp4634057.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Wizard clear all formfields

2012-05-15 Thread jensiator
Hi everyone. 
I got a problem. Anyone ever had a first step contain for example a dropdown
that will load default data to the other formcomponents in the wizard?
The dropdown has got a ajaxformcomponentupdatingbehavior. We call our server
in the ajax request and update a lot of properties in the model object. The
model object shared between all of the pages. 
If you show step2 it will show the correct default values. 
If you then go back to step1 again and change the dropdown, step2 will not
show the changes. This I  because I need to clear the input of the
formcomponents in step2. Is there any way to clear all formcomponents for
all steps in a wizard. The problem is that only one step at the time is
active.  
Is Overriding onBefore render on every single step the only way? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wizard-clear-all-formfields-tp4634057.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.6, Ajax and expired page

2012-05-15 Thread Martin Grigorov
On Tue, May 15, 2012 at 9:10 AM, Guillaume Smet
 wrote:
> Hi Martin,
>
> On Tue, May 15, 2012 at 8:44 AM, Martin Grigorov  wrote:
>> Since https://issues.apache.org/jira/browse/WICKET-4014 (Wicket 1.5.1)
>> Wicket is able to handle automatically page expiration for mounted
>> pages. I.e. if the user clicks a link and the page is already expired
>> then depending on
>
> I followed that and it's quite appreciated to reduce the number of
> page expired errors for our users.
>
> The problem I saw yesterday evening on our app is that the Ajax
> response was the entire HTML page (raw HTML output) and not a valid
> Ajax XML response. I don't think that's something expected.

This is not expected indeed.
Create a quickstart and attach it to a ticket in Jira.

>
> --
> Guillaume
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.6, Ajax and expired page

2012-05-15 Thread Guillaume Smet
Hi Martin,

On Tue, May 15, 2012 at 8:44 AM, Martin Grigorov  wrote:
> Since https://issues.apache.org/jira/browse/WICKET-4014 (Wicket 1.5.1)
> Wicket is able to handle automatically page expiration for mounted
> pages. I.e. if the user clicks a link and the page is already expired
> then depending on

I followed that and it's quite appreciated to reduce the number of
page expired errors for our users.

The problem I saw yesterday evening on our app is that the Ajax
response was the entire HTML page (raw HTML output) and not a valid
Ajax XML response. I don't think that's something expected.

-- 
Guillaume

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org