Re: BookmarkablePageLink parameters as model

2009-01-23 Thread Anton Veretennikov
Thank you, Igor!
Accustomed to model's all over the Wicket...

On Sat, Jan 24, 2009 at 2:34 PM, Igor Vaynberg  wrote:
> you are free to override getpageparameters() and implement your own logic 
> there.
>
> -igor
>
> On Fri, Jan 23, 2009 at 11:03 PM, Anton Veretennikov
>  wrote:
>> Hello, wicket users!
>>
>> Is it possible to construct BookmarkablePageLink with different page
>> parameters depending on some model?
>>
>> Thank you!
>>
>> -
>> 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 parameters as model

2009-01-23 Thread Igor Vaynberg
you are free to override getpageparameters() and implement your own logic there.

-igor

On Fri, Jan 23, 2009 at 11:03 PM, Anton Veretennikov
 wrote:
> Hello, wicket users!
>
> Is it possible to construct BookmarkablePageLink with different page
> parameters depending on some model?
>
> Thank you!
>
> -
> 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



BookmarkablePageLink parameters as model

2009-01-23 Thread Anton Veretennikov
Hello, wicket users!

Is it possible to construct BookmarkablePageLink with different page
parameters depending on some model?

Thank you!

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



Re: Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Matej Knopp
There is only one vertical scrollbar on the screenshots, where's the other one?

On Sat, Jan 24, 2009 at 1:33 AM, Valentine2008
 wrote:
>
> I added the screenshots as PNG files.
>
> What I have in modal window: just plain HTML text;
>
> Whether you have another page
> in modal window (iframe) or a panel: just one panel.
>
> See the source code:
> -Page window which contains the modal window---
> 
> -Content in modal window: parent and child panels
> 
> (parent--)
> http://www.w3.org/1999/xhtml";
> xmlns:wicket="http://wicket.apache.org/"; xml:lang="en" lang="en">
>
>
> 
> 
>
>
>   
>  
>* Required
>  
>   
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> wicket:id="helpButton">Help
>
>
>
>
> 
> 
> (child-)
> http://www.w3.org/1999/xhtml";
> xmlns:wicket="http://wicket.apache.org/"; xml:lang="en" lang="en">
>
>
>
>
>
>
>*
>
>
> wicket:id="firstName"/>
>
>
>
>
>
>*
>
>
>
>
>
>
>
>
>*
>
>
>
>
>
>
>
>
>*
>
>
>
>
>
>
>
>
>*
>
>
> wicket:id="phoneNumber"/>
>
>
>
>
>
>*
>
>
> wicket:id="emailAddress"/>
>
>
>
>
>
> 
>
>
>
>
>
>
>
>
> 
>
>
> wicket:id="organization"/>
>
>
>
>
>
> 
>
>
> wicket:id="countryOfCitizenship"/>
>
>
>
>
>
>*
>
>
>
>
>
>
>
>
>
>*
>
>
>
>
>
>
>
>
>
>*
>
>
>
>
>
>
>
>
>
>
>*
>
>
>
>
>
>
>
>
>
>
>*
>
>
>
>
>
>
>
> 
> - Valentine
>
> Matej Knopp-2 wrote:
>>
>> That depends on what you have in modal window. You need to style modal
>> window content. And that also depends on whether you have another page
>> in modal window (iframe) or a panel.
>>>
>>> By the way, what format file can I use to post the screenshots?
>> png?
>>
>> -Matej
>>
> http://www.nabble.com/file/p21635482/1.PNG 1.PNG
> http://www.nabble.com/file/p21635482/2.PNG 2.PNG
> --
> View this message in context: 
> http://www.nabble.com/Two-vertical-scrollbars-in-ModalWindow-with-Panel-content-show-tp21634007p21635482.html
> Sent from the Wicket - User 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: Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Valentine2008

I added the screenshots as PNG files.

What I have in modal window: just plain HTML text;

Whether you have another page
in modal window (iframe) or a panel: just one panel.

See the source code:
-Page window which contains the modal window---

-Content in modal window: parent and child panels

(parent--)
http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.apache.org/"; xml:lang="en" lang="en">



 


   
  
* Required
  
   














Help






(child-)
http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.apache.org/"; xml:lang="en" lang="en">






*








*








*








*








*








*








 








 








 








*









*









*










*










*








- Valentine

Matej Knopp-2 wrote:
> 
> That depends on what you have in modal window. You need to style modal
> window content. And that also depends on whether you have another page
> in modal window (iframe) or a panel.
>>
>> By the way, what format file can I use to post the screenshots?
> png?
> 
> -Matej
> 
http://www.nabble.com/file/p21635482/1.PNG 1.PNG 
http://www.nabble.com/file/p21635482/2.PNG 2.PNG 
-- 
View this message in context: 
http://www.nabble.com/Two-vertical-scrollbars-in-ModalWindow-with-Panel-content-show-tp21634007p21635482.html
Sent from the Wicket - User 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: Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Matej Knopp
On Sat, Jan 24, 2009 at 1:08 AM, Valentine2008
 wrote:
>
> I tried different values for overflow in the page window, the modal window's
> appearance is the same.
> (for example, when I change the page window HTML to contain  wicket:id="updateModalWindow" style="overflow: hidden;">
> from )
>
> Seems ModalWindow overwrites the style I define.
>
> Is there a way to change the overflow property defined by ModalWindow?
That depends on what you have in modal window. You need to style modal
window content. And that also depends on whether you have another page
in modal window (iframe) or a panel.
>
> By the way, what format file can I use to post the screenshots?
png?

-Matej


>
> -valentine
>
>
> Matej Knopp-2 wrote:
>>
>> Hi,
>>
>> this is a styling issue. Problem is in your CSS. Also, please don't
>> post screenshots in word document.
>>
>> -Matej
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Two-vertical-scrollbars-in-ModalWindow-with-Panel-content-show-tp21634007p21635245.html
> Sent from the Wicket - User 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: Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Valentine2008

I tried different values for overflow in the page window, the modal window's
appearance is the same.
(for example, when I change the page window HTML to contain 
from )

Seems ModalWindow overwrites the style I define. 

Is there a way to change the overflow property defined by ModalWindow?

By the way, what format file can I use to post the screenshots?

-valentine


Matej Knopp-2 wrote:
> 
> Hi,
> 
> this is a styling issue. Problem is in your CSS. Also, please don't
> post screenshots in word document.
> 
> -Matej
> 

-- 
View this message in context: 
http://www.nabble.com/Two-vertical-scrollbars-in-ModalWindow-with-Panel-content-show-tp21634007p21635245.html
Sent from the Wicket - User 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: Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Matej Knopp
Hi,

this is a styling issue. Problem is in your CSS. Also, please don't
post screenshots in word document.

-Matej

On Fri, Jan 23, 2009 at 11:52 PM, Valentine2008
 wrote:
>
> I use a ModalWindow with Panel content as a pop-up input form with feedback
> panel.
>
> When an invalid input was given, the feedback panel will show the error
> message. However, at this time, the ModalWindow will show one vertical
> scrollbar and one horizonal scrollbar. And the content panel will show
> another vertical scrollbar.
>
> How can I get rid of the vertical scrollbar of the content panel?
>
> Please see the attached Windows doc file for those screenshots.
>
> Thanks,
> Valentine http://www.nabble.com/file/p21634007/ModalWindow.doc
> ModalWindow.doc
> --
> View this message in context: 
> http://www.nabble.com/Two-vertical-scrollbars-in-ModalWindow-with-Panel-content-show-tp21634007p21634007.html
> Sent from the Wicket - User 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



Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Valentine2008

I use a ModalWindow with Panel content as a pop-up input form with feedback
panel.

When an invalid input was given, the feedback panel will show the error
message. However, at this time, the ModalWindow will show one vertical
scrollbar and one horizonal scrollbar. And the content panel will show
another vertical scrollbar. 

How can I get rid of the vertical scrollbar of the content panel?

Please see the attached Windows doc file for those screenshots.

Thanks,
Valentine http://www.nabble.com/file/p21634007/ModalWindow.doc
ModalWindow.doc 
-- 
View this message in context: 
http://www.nabble.com/Two-vertical-scrollbars-in-ModalWindow-with-Panel-content-show-tp21634007p21634007.html
Sent from the Wicket - User 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: different modal windows from same link or just multiple links?

2009-01-23 Thread German Morales
Hi Steve,

Excuse me if i'm missing something...

Shouldn't you just provide different panels to the window, depending on your
condition?
That is, inside your onClick(), calling setContent(new YourPanel());

On the code you show, i don't see where you set the content to the window...
are you doing it in advance? (that could be a bad idea).

Regards,

German


2009/1/23 Steve Swinsburg 

> Hi all,
> I have a situation where depending on some circumstances, any one of three
> different modal windows could be activated by clicking a single link, which
> itself changes.
>
> ie add/confirm/remove
>
> but only one can be visible at any one time. I don't want three links. Is
> there any way to do this by setting the onClick handler of the AjaxLink that
> normally just contains:
> final AjaxLink connectionLink = new AjaxLink("connectionLink") {
> public void onClick(AjaxRequestTarget target) {
>  connectionWindow.show(target);
> }
> };
>
> to be dynamically set, ie connectionWindow.show(target); is set at a later
> stage.
>
> Or will I just need multiple modal window placeholders and multiple links
> and just show/hide the relevant ones?
>
> I would also need the connectionWindow.setWindowClosedCallback
> to react differently based on which modal window was closed.
>
> Is there any point in what I am trying to do or should I just suck it up
> and have three links/windows and control visibility? Will I achieve any
> major performance hits by tripling everything?
>
>
> cheers,
> Steve
>
>
>
>
>
>
>


Re: Modal window position - always centred, even on long page

2009-01-23 Thread German Morales
Hi Steve,

I answer quickly with some ideas, perhaps it helps.

It seems that you need a different implementation of the center method
provided by ModalWindow.

You can see the original in modal.js, in the package
org.apache.wicket.extensions.ajax.markup.html.modal.res of the
wicket-extensions.
You should attempt centering the window to the current browser window,
instead of the viewport.

You could provide an own javascript with a content like:

   Wicket.Window.prototype.center = function() {
  // your own version
   };

Hope this helps,

German


2009/1/23 Steve Swinsburg 

> Hi all,
>
> I have a fairly long page making use of Modal Windows, and any ModalWindow
> that I place onto this page always renders in the exact centre of the page
> (vertically). So if the button that opens the window is at the top, you need
> to scroll down to get to the window. Likewise if the button is at the
> bottom, you'll need to scroll up. This is a pain because sometimes the
> screen just dims out but the window is off screen.
>
> How can I control where the Modal Window is placed on the screen
> vertically? Doesn't seem to be any options.
>
> BTW this is inside an iframe which takes up most of the screen (but not
> all). Ideally I'd like the mask to extend over the whole window, not just
> the part that the iframe is in (which it currently does, but I can live with
> that)
>
>
> cheers,
> Steve
>
>
>
>
>


Re: Portlet related issues

2009-01-23 Thread German Morales
Well, i haven't tried but from what i see the images suggestion should
work...

By the way, i see that there is a chance of conflict between our CSSs and
the ones of the portal, and other portlets.

I'm understanding now that it's not that simple to take a working wicket
application and deploying it as a portlet.
Is there anything else we should consider?
(I'm having some trouble with some javascript too, i didn't have time to
check the reason yet).

Additionally, how do i get access to portal services like single sing-on?

Thanks for the help,

German

2009/1/22 German Morales 

> Hi Serkan,
>
> Thanks for the answer, i will give it a try and post the results later
>
> German
>
> 2009/1/22 Serkan Camurcuoglu 
>
> 1. To overcome this problem in my application I put my css and image files
>> into the jetspeed layout template directory, for example
>> /jetspeed/decorations/layout/tigris/css/styles.css and modified the template
>> velocity file to include my css file.
>>
>> 2. I think that's normal, and I think it would be impossible to confine
>> the modal window within your portlet div since it's on a different z-index.
>> If you want it to look better, you can try to style the modal window to
>> better suit your portal page.
>>
>> hope this helps..
>>
>> SerkanC
>>
>>
>>
>>
>>
>> German Morales wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to run an existing wicket application as a Portlet.
>>> I've chosen Jetspeed-2, because it's Apache too, and i've also read in
>>> the
>>> list that people working in the Portlet support also work in Jetspeed
>>> development.
>>>
>>> I've got some success, specially following this HowTo:
>>> http://cwiki.apache.org/WICKET/portal-howto.html
>>>
>>> After some effort, my application is basically running.
>>> However, i'm having trouble with some issues:
>>>
>>> 1. CSS references to images (as div backgrounds).
>>>   I've read in some forums and it seems to be generic problem in portals.
>>>   CSS have URLs to images, which the portal does not transform to provide
>>> a
>>> redirection.
>>>   The browser, then asks for the images to the portal server directly, no
>>> redirection is done to the portlet application.
>>>   Any tips on how to solve this?
>>>   (there seems to be a workaround for WebLogic portal:
>>> http://www.gexperts.com/blog/archives/2007/12/entry_20.html)
>>>
>>> 2. ModalWindow
>>>   ModalWindow works by hanging (with javascript) a new div from the body
>>> of
>>> the current document.
>>>   This works wonderful when Wicket is the owner of the page.
>>>   However, the application is now inside a portlet "window", not in the
>>> whole page.
>>>   When ModalWindow hangs from the page as usual, it looks odd... it's
>>> outside the portlet window.
>>>   Any ideas?
>>>
>>> Thanks in advance,
>>>
>>> German
>>>
>>>
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: different modal windows from same link or just multiple links?

2009-01-23 Thread dtoffe

Sure, I send you a private msg with attachment.

Daniel


Steve Swinsburg-2 wrote:
> 
> Hi Daniel,
> 
> Do you mind sharing some code? I would prefer to be using the same  
> modal window if possible.
> 
> 
> cheers,
> Steve
> 
> 

-- 
View this message in context: 
http://www.nabble.com/different-modal-windows-from-same-link-or-just-multiple-links--tp21624404p21630309.html
Sent from the Wicket - User 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



Bookmarkable Page with AjaxTabbedPanel

2009-01-23 Thread ckuehne

My problem is as follows:

I have a bookmarkable page with an AjaxTabbedPanel as a component. If one of
the page parameters contains a forward slash "/" I get a weird behavior.
Firefox generates the following URL

a)
...¶m=value1/?wicket:interface%3D:73:lemmasTabpanel:panel:workstepsTabpanel:tabs-container:tabs:2:link::IBehaviorListener:0:&random=0.5887701752511617

while it should be:
b) ...¶m=value1/2

and naturally I get an exception when the page parses its parameters.

Safari produces b) which is fine.

The problem occurs only for page parameters that contain forward slashes.
Everything else that I tested worked fine.

The problem seems related to this
http://www.nabble.com/GMAP2-with-Wicket-AjaxTabbedPanel-to20124469.html

Any ideas?
-- 
View this message in context: 
http://www.nabble.com/Bookmarkable-Page-with-AjaxTabbedPanel-tp21629936p21629936.html
Sent from the Wicket - User 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



Modal window position - always centred, even on long page

2009-01-23 Thread Steve Swinsburg

Hi all,

I have a fairly long page making use of Modal Windows, and any  
ModalWindow that I place onto this page always renders in the exact  
centre of the page (vertically). So if the button that opens the  
window is at the top, you need to scroll down to get to the window.  
Likewise if the button is at the bottom, you'll need to scroll up.  
This is a pain because sometimes the screen just dims out but the  
window is off screen.


How can I control where the Modal Window is placed on the screen  
vertically? Doesn't seem to be any options.


BTW this is inside an iframe which takes up most of the screen (but  
not all). Ideally I'd like the mask to extend over the whole window,  
not just the part that the iframe is in (which it currently does, but  
I can live with that)



cheers,
Steve






smime.p7s
Description: S/MIME cryptographic signature


Re: Pagination in wicket

2009-01-23 Thread Michael O'Cleirigh
You can also check out this wiki page: 
http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html


Basically the DefaultDatatable takes:
1. an array of TableColumn extending classes that are used to build the 
cell component and connect the row object (typically each column would 
be connected to a field in the row object). 
2. an IDataProvider implementation which provides the table row data.  
Within it you provide the total number of elements/rows and an iterator 
containg a specific page.

3. the number of rows per page.

The DefaultDataTable has built in support for pagination (i.e. it adds 
in a set of default top and bottom toolbars)  If you look in the 
constructor you can see what I mean.


The last example in the wicketstuff.org example Michael referenced shows 
what this looks like.


Regards,

Mike



Check out the wicket examples (especially those on repeaters on
http://www.wicketstuff.org/wicket13/repeater/) - they'll help you getting
started

regards,
Michael



PSkarthic wrote:
  

Hi
  I worked on wicket for a month only, i want pagination to be done in
wicket.
Can anybody guide me or provide some samples, it would be big help for me.

I have tried googling  "Pagination in wicket" but not yet get the
solution.

I have also tried Pagenavigator but don't know how to use it
correctly(Stuck in creating the dataview


Thanks in advance
Karthic





-
Michael Sparer
http://talk-on-tech.blogspot.com
  



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



Re: different modal windows from same link or just multiple links?

2009-01-23 Thread Steve Swinsburg

Hi Daniel,

Do you mind sharing some code? I would prefer to be using the same  
modal window if possible.



cheers,
Steve

---
Steve Swinsburg
Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster
LA1 4YT

email: s.swinsb...@lancaster.ac.uk
phone: +44 (0) 1524 594870







On 23 Jan 2009, at 15:49, dtoffe wrote:



   I've created a subclass of ModalWindow in which I can set from  
outside
the class of the page to be created. Then, I've created a WebPage  
subclass

that has one of that subclass of ModalWindow. So whenever I need modal
windows, I subclass that page and use the same modal window from all  
the
buttons and links, setting in each case the page that needs to be  
opened and

the callback.
   In your case, perhaps you can use fragments to show only one link  
or
button at a time, depending on your model, and setting in each one  
what page

needs to be opened.

hth,

Daniel


Steve Swinsburg-2 wrote:


Hi all,

I have a situation where depending on some circumstances, any one of
three different modal windows could be activated by clicking a single
link, which itself changes.

ie add/confirm/remove

but only one can be visible at any one time. I don't want three  
links.

Is there any way to do this by setting the onClick handler of the
AjaxLink that normally just contains:
final AjaxLink connectionLink = new AjaxLink("connectionLink") {
public void onClick(AjaxRequestTarget target) {
 connectionWindow.show(target);
}
};

to be dynamically set, ie connectionWindow.show(target); is set at a
later stage.

Or will I just need multiple modal window placeholders and multiple
links and just show/hide the relevant ones?

I would also need the connectionWindow.setWindowClosedCallback
to react differently based on which modal window was closed.

Is there any point in what I am trying to do or should I just suck it
up and have three links/windows and control visibility? Will I  
achieve

any major performance hits by tripling everything?

cheers,
Steve




--
View this message in context: 
http://www.nabble.com/different-modal-windows-from-same-link-or-just-multiple-links--tp21624404p21626868.html
Sent from the Wicket - User 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





smime.p7s
Description: S/MIME cryptographic signature


Re: different modal windows from same link or just multiple links?

2009-01-23 Thread dtoffe

I've created a subclass of ModalWindow in which I can set from outside
the class of the page to be created. Then, I've created a WebPage subclass
that has one of that subclass of ModalWindow. So whenever I need modal
windows, I subclass that page and use the same modal window from all the
buttons and links, setting in each case the page that needs to be opened and
the callback.
In your case, perhaps you can use fragments to show only one link or
button at a time, depending on your model, and setting in each one what page
needs to be opened.

hth,

Daniel


Steve Swinsburg-2 wrote:
> 
> Hi all,
> 
> I have a situation where depending on some circumstances, any one of  
> three different modal windows could be activated by clicking a single  
> link, which itself changes.
> 
> ie add/confirm/remove
> 
> but only one can be visible at any one time. I don't want three links.  
> Is there any way to do this by setting the onClick handler of the  
> AjaxLink that normally just contains:
> final AjaxLink connectionLink = new AjaxLink("connectionLink") {
>   public void onClick(AjaxRequestTarget target) {
>connectionWindow.show(target);
>   }
> };
> 
> to be dynamically set, ie connectionWindow.show(target); is set at a  
> later stage.
> 
> Or will I just need multiple modal window placeholders and multiple  
> links and just show/hide the relevant ones?
> 
> I would also need the connectionWindow.setWindowClosedCallback
> to react differently based on which modal window was closed.
> 
> Is there any point in what I am trying to do or should I just suck it  
> up and have three links/windows and control visibility? Will I achieve  
> any major performance hits by tripling everything?
> 
> cheers,
> Steve
>  
> 

-- 
View this message in context: 
http://www.nabble.com/different-modal-windows-from-same-link-or-just-multiple-links--tp21624404p21626868.html
Sent from the Wicket - User 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: Page Maps and Expirations

2009-01-23 Thread UPBrandon

Thanks again.  I am still interested in page stores though.  I'm not saying
they are related to the expiration issue but I am curious how do they manage
themselves.  I haven't been able to find much info online.  Does each one
just store a potentially unlimited number of pages or is there some resource
management going on?


Matej Knopp-2 wrote:
> 
> Hi,
> 
> wicket holds the last accessed page in pagemap and certain number of
> previous pages in DiskPageStore (serialized on disk). The last
> accessed page should never be evicted from pagemap and even if it was,
> it would still be stored on disk.
> 
> -Matej
> 
> On Fri, Jan 23, 2009 at 12:19 AM, UPBrandon  wrote:
>>
>> Thanks Matej and Igor.  We are using sticky sessions (I can even see the
>> JSESSIONID in requests) and since a session sticks to a certain
>> server/instance, there shouldn't be any need for replicating sessions
>> among
>> instances.  There are dozens and dozens of web apps here and losing
>> sessions
>> hasn't been an issue.  Would it make any difference if I said that
>> sometime
>> a user may get a "page expired" error only 30 seconds after the last page
>> request?  But this is a problem that only happens occasionally and
>> supposedly under high load.
>>
>> Either way, I would still be interested in knowing more about how
>> Wicket's
>> session store works.
>> - Under what circumstances are pages evicted from a page map?
>> - Is there a limit on how many pages can be stored in a single page map?
>> - Are there any "global" (per Wicket instance, not per map or session)
>> limits on how many pages are held onto?
>> - Under what circumstances are page maps destroyed?  Only when a window
>> or
>> tab is closed?
>> - Does Wicket ever destroy a session or does it let the container manage
>> all
>> that?
>>
>> I guess what all of those questions really get is this - is there ever a
>> point where Wicket starts running out of space and has to "clean house?" 
>> If
>> so, what is the process that it goes through?
>>
>> -Brandon
>>
>>
>> igor.vaynberg wrote:
>>>
>>> yep. it looks like the servlet container is losing the session. do you
>>> have sticky sessions? if not then you need to have http session
>>> replication happening.
>>>
>>> -igor
>>>
>>> On Thu, Jan 22, 2009 at 1:11 PM, Matej Knopp 
>>> wrote:
 Well, as far as I can tell, there is nothing special going on in
 Wicket that might cause session expiration. Last visited page is
 basically a normal session property.

 To me this seems more likely to be servlet container / load balancer
 issue.

 -Matej

 On Thu, Jan 22, 2009 at 9:21 PM, UPBrandon  wrote:
>
> The project I work on uses Wicket 1.3.4 and we are using the default
> session
> store (SecondLevelCacheSessionStore.)
>
> The app is clustered and runs on WebLogic 8 through Apache.  I'm not
> entirely sure how those two are setup but I don't believe there is any
> resource sharing between instances in a cluster.  Instead, when a
> session is
> started, a WebLogic instance is chosen and all future requests in that
> session are sent to that one instance.  Using that setup, there
> shouldn't be
> any issues with a user's request going to a machine that doesn't have
> their
> page map.
>
> The problem is happening during normal "forward" use.  The example
> that
> I
> was given was a user taking a few minutes to fill out some information
> and
> by the time they submit the form, their session appears to have timed
> out
> and they get a page expired error.  I hope that helps to clarify
> things
> a
> bit.
>
>
> Matej Knopp-2 wrote:
>>
>> couple of questions:
>>
>> -what wicket version are you using?
>> -are you using httpsessionstore or secondlevelcachesessionstore
>> (default)?
>> -what application server/container are you using?
>> -are you running the application in clustered environment? if yes,
>> what kind of load balancing do you have?
>> -do the expirations happen during normal operation or only when using
>> back button (or using application in multiple tabs)
>>
>> -Matej
>>
>> On Thu, Jan 22, 2009 at 7:47 PM, UPBrandon  wrote:
>>>
>>> In some of our Wicket applications, as the number of users has
>>> started
>>> to
>>> ramp up, we seem to be experiencing a scalability issue.  Some users
>>> have
>>> had problems with pages expiring quickly.  This is second-hand
>>> information
>>> so I can't elaborate much but supposedly, during peak times, pages
>>> are
>>> expiring after just a few minutes of inactivity.  It would be nice
>>> to
>>> be
>>> able to set a minimum retention time but I don't seem to see an
>>> option
>>> like
>>> that.  I've found information about how Wicket stores pages and
>>> revisions
>>> (http://cwiki.apache.or

Re: Howto test clicking a CheckboxMultipleChoice

2009-01-23 Thread Newgro

Should i add an RFE here?

Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/Howto-test-clicking-a-CheckboxMultipleChoice-tp21601616p21625574.html
Sent from the Wicket - User 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: Duplicate objects in db4o with back button

2009-01-23 Thread pieter claassen
Igor, thanks for your comments so far.

After a lot of struggle, I now have the following strategy in place which
just provides me with the old results, duplicate data in the database when I
add a template, and then press the back button and add it again.

Here is an example of how I create a new object in wicket (when I need a
transient model). I am trying to understand how wicket gets/sets the
objects. Any pointers?

public class TemplateAddPage extends AuthPage {
public TemplateAddPage() {
setModel(new CompoundPropertyModel(new Template()));
add(new TemplateAddForm("templateaddform"));
}

@Override
public Role[] getAllowedRoles() {
return new Role[] { Role.ADMIN, Role.THERAPIST };
}

private class TemplateAddForm extends Form {
public TemplateAddForm(String id) {
super(id);
add(new RequiredTextField("name"));
add(new RequiredTextField("version"));
add(new RequiredTextField("author"));
add(new TextArea("description"));
add(new TemplateDropDownChoicePanel("ddcpanel"));
}

@Override
public void onSubmit() {
Template template = (Template) getInnermostModel().getObject();
WicketApplication.get().getTemplateFactory().store(template);
setResponsePage(new TemplateListPage());
}
}
}


And here is my base IModel class

public abstract class BaseWebModel implements IModel {

private static final long serialVersionUID = 1L;

protected Long id = null;
protected T object = null;

public abstract Class getBaseClass();

public abstract BaseFactory getFactory();

public BaseWebModel(T object) {
this.id = getFactory().getID(object);
this.object = object;
}

public T getObject() {
if (object == null) {
object = getFactory().getById(id);
if (object == null) {
throw new RuntimeException("Object not found");
}
}
return object;

}

public void setObject(Object object) {
getFactory().store((T) object);
}

public void detach() {
if (object != null) {
if (id != null) {
id = getFactory().getID(object);
object = null;
}
}
}




On Thu, Jan 22, 2009 at 7:58 PM, Igor Vaynberg wrote:

> when you click the back button you go to a previous version of the
> page (a snapshot as it existed when rendered). in that version the id
> inside the model is still null.
>
> -igor
>
> On Thu, Jan 22, 2009 at 10:48 AM, pieter claassen
>  wrote:
> > Thanks for both responses. I can see what I am supposed to do, what I
> don't
> > understand is what is going wrong.
> >
> > Why when I click on the back button, does the id of my object become
> > invalid? Any pointers in the wicket docs to understand this better?
> >
> > Regards,
> > Pieter
> >
> > BTW> Thanks for a great framework.
> >
> >
> > On Thu, Jan 22, 2009 at 5:44 PM, Igor Vaynberg  >wrote:
> >
> >> http://wicketinaction.com/2008/09/building-a-smart-entitymodel/
> >>
> >> notice the deatch() implementation
> >>
> >> -igor
> >>
> >> On Thu, Jan 22, 2009 at 8:05 AM, pieter claassen  >
> >> wrote:
> >> > I am using wicket 1.3.5 and db4o 7.4.63.11890.
> >> >
> >> > My objects are being passed between pages using a subclass of
> >> > LoadableDetachableModel (see below)
> >> >
> >> > My problem is:
> >> > 1. I edit an object on PageA
> >> > 2. I use the back button and then re-submit the form I edited and now
> I
> >> have
> >> > two objects in the database.
> >> >
> >> > Any ideas on why this is happening?
> >> >
> >> > Cheers,
> >> > Pieter
> >> >
> >> >
> >> > package com.musmato.wicket.model;
> >> >
> >> > import org.apache.wicket.model.LoadableDetachableModel;
> >> >
> >> > import com.musmato.dao.BaseFactory;
> >> >
> >> > public abstract class BaseWebModel extends LoadableDetachableModel
> {
> >> >
> >> >private static final long serialVersionUID = 1L;
> >> >
> >> >protected Long id;
> >> >
> >> >public abstract Class getBaseClass();
> >> >
> >> >public abstract BaseFactory getFactory();
> >> >
> >> >public BaseWebModel(Long id) {
> >> >this.id = id;
> >> >}
> >> >
> >> >public BaseWebModel(T object) {
> >> >this.id = getFactory().getID(object);
> >> >}
> >> >
> >> >@Override
> >> >protected Object load() {
> >> >
> >> >if (id == null) {
> >> >return getFactory().getNewObject();
> >> >}
> >> >
> >> >return getFactory().getById(id);
> >> >}
> >> >
> >> > }
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>


different modal windows from same link or just multiple links?

2009-01-23 Thread Steve Swinsburg

Hi all,

I have a situation where depending on some circumstances, any one of  
three different modal windows could be activated by clicking a single  
link, which itself changes.


ie add/confirm/remove

but only one can be visible at any one time. I don't want three links.  
Is there any way to do this by setting the onClick handler of the  
AjaxLink that normally just contains:

final AjaxLink connectionLink = new AjaxLink("connectionLink") {
public void onClick(AjaxRequestTarget target) {
 connectionWindow.show(target);
}
};

to be dynamically set, ie connectionWindow.show(target); is set at a  
later stage.


Or will I just need multiple modal window placeholders and multiple  
links and just show/hide the relevant ones?


I would also need the connectionWindow.setWindowClosedCallback
to react differently based on which modal window was closed.

Is there any point in what I am trying to do or should I just suck it  
up and have three links/windows and control visibility? Will I achieve  
any major performance hits by tripling everything?



cheers,
Steve








smime.p7s
Description: S/MIME cryptographic signature


Re: Retrieve RemoteUser from HttpServletRequest

2009-01-23 Thread Luca Provenzani
no! i haven't a right web.xml... that is the problem!
sorry! i'm a newbie in wicket..

Thank you all !!

Luca


2009/1/23 Serkan Camurcuoglu 

> is your wicket url also protected by security and login constraints in your
> web.xml?
>
>
>
> Luca Provenzani wrote:
>
>> nothing to do! i read again only two null strings...
>> it's really strange!
>> in the jsp is simple: i need only this:
>> *request.getRemoteUser(),request.getRemoteAddr()
>> *
>> and seem to be simple even in wicket... only one right of code... but...
>> why doesn't httpservletrequest give me the right values?
>>
>>
>> Luca
>>
>> 2009/1/22 James Carman 
>>
>>
>>
>>> Right, just use the servlet API for this one (and Igor's pointing out
>>> how to get to the API below)
>>>
>>> On Thu, Jan 22, 2009 at 11:42 AM, Igor Vaynberg >> >
>>> wrote:
>>>
>>>
 servlethttprequest
 r=((webrequest)getrequestcycle().getrequest()).gethttpservletrequest();

 -igor

 On Thu, Jan 22, 2009 at 8:40 AM, Luca Provenzani 


>>> wrote:
>>>
>>>
 my application works on an apache-tomcat server. And on this server my
> client has his authentication system that is similar to the Apache
> Basic
> Authentication. Than, i need to read remoteUser that contains the id of
>
>
 the
>>>
>>>
 user.
>
> thank you for your attention
>
> Luca
>
> 2009/1/22 Bert 
>
>
>
>> On Wed, Jan 21, 2009 at 14:37, Luca Provenzani 
>>
>>
> wrote:
>>>
>>>
 Thank You for answer Bert
>>>
>>> I'll try to retrieve remoteAddress in this way(tomorrow morning, ehm
>>>
>>>
>> for
>>>
>>>
 Italy ;-), because now i'm working for an other project).
>>>
>>>
>> that would be the same timezone as me (germany)
>>
>>
>>
>>> but...
>>>  i need to retrieve the authenticated remoteUser, not the UserAgent,
>>>
>>>
>> how
>>>
>>>
 can
>>
>>
>>> i do this?
>>>
>>>
>> what do you mean with remoteUser? the Authentification the user has on
>>
>>
> his
>>>
>>>
 PC?
>>
>> -
>> 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
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Retrieve RemoteUser from HttpServletRequest

2009-01-23 Thread Serkan Camurcuoglu
is your wicket url also protected by security and login constraints in 
your web.xml?



Luca Provenzani wrote:

nothing to do! i read again only two null strings...
it's really strange!
in the jsp is simple: i need only this:
*request.getRemoteUser(),request.getRemoteAddr()
*
and seem to be simple even in wicket... only one right of code... but...
why doesn't httpservletrequest give me the right values?


Luca

2009/1/22 James Carman 

  

Right, just use the servlet API for this one (and Igor's pointing out
how to get to the API below)

On Thu, Jan 22, 2009 at 11:42 AM, Igor Vaynberg 
wrote:


servlethttprequest
r=((webrequest)getrequestcycle().getrequest()).gethttpservletrequest();

-igor

On Thu, Jan 22, 2009 at 8:40 AM, Luca Provenzani 
  

wrote:


my application works on an apache-tomcat server. And on this server my
client has his authentication system that is similar to the Apache Basic
Authentication. Than, i need to read remoteUser that contains the id of


the


user.

thank you for your attention

Luca

2009/1/22 Bert 



On Wed, Jan 21, 2009 at 14:37, Luca Provenzani 
  

wrote:


Thank You for answer Bert

I'll try to retrieve remoteAddress in this way(tomorrow morning, ehm


for


Italy ;-), because now i'm working for an other project).


that would be the same timezone as me (germany)

  

but...
 i need to retrieve the authenticated remoteUser, not the UserAgent,


how


can
  

i do this?


what do you mean with remoteUser? the Authentification the user has on
  

his


PC?

-
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





  



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



Re: Retrieve RemoteUser from HttpServletRequest

2009-01-23 Thread Luca Provenzani
nothing to do! i read again only two null strings...
it's really strange!
in the jsp is simple: i need only this:
*request.getRemoteUser(),request.getRemoteAddr()
*
and seem to be simple even in wicket... only one right of code... but...
why doesn't httpservletrequest give me the right values?


Luca

2009/1/22 James Carman 

> Right, just use the servlet API for this one (and Igor's pointing out
> how to get to the API below)
>
> On Thu, Jan 22, 2009 at 11:42 AM, Igor Vaynberg 
> wrote:
> > servlethttprequest
> > r=((webrequest)getrequestcycle().getrequest()).gethttpservletrequest();
> >
> > -igor
> >
> > On Thu, Jan 22, 2009 at 8:40 AM, Luca Provenzani 
> wrote:
> >> my application works on an apache-tomcat server. And on this server my
> >> client has his authentication system that is similar to the Apache Basic
> >> Authentication. Than, i need to read remoteUser that contains the id of
> the
> >> user.
> >>
> >> thank you for your attention
> >>
> >> Luca
> >>
> >> 2009/1/22 Bert 
> >>
> >>> On Wed, Jan 21, 2009 at 14:37, Luca Provenzani 
> wrote:
> >>> > Thank You for answer Bert
> >>> >
> >>> > I'll try to retrieve remoteAddress in this way(tomorrow morning, ehm
> for
> >>> > Italy ;-), because now i'm working for an other project).
> >>> that would be the same timezone as me (germany)
> >>>
> >>> > but...
> >>> >  i need to retrieve the authenticated remoteUser, not the UserAgent,
> how
> >>> can
> >>> > i do this?
> >>>
> >>> what do you mean with remoteUser? the Authentification the user has on
> his
> >>> PC?
> >>>
> >>> -
> >>> 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: Pagination in wicket

2009-01-23 Thread Michael Sparer

Check out the wicket examples (especially those on repeaters on
http://www.wicketstuff.org/wicket13/repeater/) - they'll help you getting
started

regards,
Michael



PSkarthic wrote:
> 
> Hi
>   I worked on wicket for a month only, i want pagination to be done in
> wicket.
> Can anybody guide me or provide some samples, it would be big help for me.
> 
> I have tried googling  "Pagination in wicket" but not yet get the
> solution.
> 
> I have also tried Pagenavigator but don't know how to use it
> correctly(Stuck in creating the dataview
> 
> 
> Thanks in advance
> Karthic
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Pagination-in-wicket-tp21620591p21620701.html
Sent from the Wicket - User 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



Pagination in wicket

2009-01-23 Thread PSkarthic

Hi
  I worked on wicket for a month only, i want pagination to be done in
wicket.
Can anybody guide me or provide some samples, it would be big help for me.

I have tried googling  "Pagination in wicket" but not yet get the solution.

I have also tried Pagenavigator but don't know how to use it correctly(Stuck
in creating the dataview


Thanks in advance
Karthic
-- 
View this message in context: 
http://www.nabble.com/Pagination-in-wicket-tp21620591p21620591.html
Sent from the Wicket - User 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