Re: jquery ui dialog and ajax component updating

2010-12-12 Thread julien roche AKA indiana_jules
Hi,

The jQuery UI Dialog (and the others dialogs too) has this comportement
(adding elements at the end of the body) to position the dialogs and for the
modal approach. So, when you refresh the dialog, you recreate the instance
and so regenerate the HTML. You have to destroy properly your dialog with
the call of "destroy" dialog method and with the call of remove().

I think you must do into the Ajax transaction:
target.preprendJavascript("$('#myDialog').dialog('destroy').remove();");

Regards

Julien Roche


On Mon, Dec 13, 2010 at 8:44 AM, jensiator  wrote:

>
> Did you solve this problem? Im having the same problem.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/jquery-ui-dialog-and-ajax-component-updating-tp1857058p3085030.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: jquery ui dialog and ajax component updating

2010-12-12 Thread jensiator

Did you solve this problem? Im having the same problem.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/jquery-ui-dialog-and-ajax-component-updating-tp1857058p3085030.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: resource for href="...

2010-12-12 Thread Ladislav DANKO
In img src I can use just path, the constructor for Image
will translate it to right path for use in view. Not so ExternalLink.

I know doc you pointing me, not suitable for me (I think)
because I have images on the same server as app (under
Tomcat). Maybe ExternalLink I'm using isn't right class?
Is it possible to use path in onClick method in Link class?


> -Original Message-
> From: Zilvinas Vilutis [mailto:cika...@gmail.com] 
> Sent: Monday, December 13, 2010 8:27 AM
> To: Ladislav DANKO
> Cc: users@wicket.apache.org
> Subject: Re: resource for href="...
> 
> I don't think you can just use the file path ( and that is 
> not secure... )
> 
> Please read the following to understand how to use resource 
> reference on external images:
> https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
> 
> 
> Žilvinas Vilutis
> 
> Mobile:   (+370) 652 38353
> E-mail:   cika...@gmail.com
> 
> 
> 
> 2010/12/13 Ladislav DANKO :
> > Snippet of code (note relevant removed):
> > //file list in folder, sorted
> > Folder folder = ((Start)Application.get()).getUploadFolder();
> > File[] files = folder.getFiles();
> > List lList = Arrays.asList(files); Collections.sort(lList); 
> > //for every image create clickable link with image as link 
> > RepeatingView view = new RepeatingView("repeater"); Iterator 
> > iterator = lList.iterator();
> > while(iterator.hasNext())
> > {
> >        iterator.next();
> >        String fileName = lList.get(i).getName();
> >        String path = "photo/" + fileName;
> >        String compID = view.newChildId();
> >        PhotoRepeater clickableImg = new PhotoRepeater(compID);
> >        clickableImg.add(new ExternalLink("photoPath", path).add(new 
> > Image("image", path)));
> >        view.add(clickableImg);
> > }
> > this.add(view);
> >
> > In the final I have right path for "img src" and wrong path 
> in "a href"
> >
> > Laco
> >
> >> -Original Message-
> >> From: Zilvinas Vilutis [mailto:cika...@gmail.com]
> >> Sent: Monday, December 13, 2010 8:11 AM
> >> To: users@wicket.apache.org
> >> Subject: Re: resource for href="...
> >>
> >> I don't see where your "path" is constructed. Did you want to 
> >> construct an url for an Image ResourceReference ?
> >>
> >>
> >> Žilvinas Vilutis
> >>
> >> Mobile:   (+370) 652 38353
> >> E-mail:   cika...@gmail.com
> >>
> >>
> >>
> >> 2010/12/13 Ladislav DANKO :
> >> > No, I don't need to download it, what I need is right 
> path in href 
> >> > attribute in anchor html tag as is in img html tag (created
> >> as new Image).
> >> >
> >> >
> >> >> -Original Message-
> >> >> From: jcar...@carmanconsulting.com 
> >> >> [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman
> >> >> Sent: Monday, December 13, 2010 12:13 AM
> >> >> To: users@wicket.apache.org
> >> >> Subject: Re: resource for href="...
> >> >>
> >> >> You want it to download the image?  Try DownloadLink.
> >> >>
> >> >> On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO 
> >> >> wrote:
> >> >> > Hi guys,
> >> >> >
> >> >> > another question -have code (PhotoRepeater extends 
> Panel, view 
> >> >> > is
> >> >> > RepeatingView):
> >> >> > ...
> >> >> > String compID = view.newChildId(); PhotoRepeater 
> clickableImg = 
> >> >> > new PhotoRepeater(compID); clickableImg.add(new 
> >> >> > ExternalLink("fotoPath", path).add(new Image("image", 
> path))); 
> >> >> > view.add(clickableImg);
> >> this.add(view); ..
> >> >> >
> >> >> > and markup:
> >> >> > 
> >> >> >         rel="lightbox[svatebni]"
> >> >> > href="#">
> >> >> >                 >> border="2px" />
> >> >> >        
> >> >> > 
> >> >> >
> >> >> > It works, but in final markup there is:
> >> >> > 
> >> >> >         >> >> >
> >> src="resources/eu.testApp.MyPagePhotoRepeater/phfoto/01_sv_76.jpg"/
> >> >> > >
> >> >> > 
> >> >> >
> >> >> > so image is shown (right path to image resource) but not
> >> clickable
> >> >> > (wrong path). I'm using ExternalLink in wrong way but I
> >> >> don't know the
> >> >> > right way. Can you help me gyus, please?
> >> >> >
> >> >> > Laco
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> 
> -
> >> >> > 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 com

Re: multi-window support, pagestores and wicket 1.5

2010-12-12 Thread Igor Vaynberg
On Sat, Dec 11, 2010 at 12:04 PM, Michal Kurtak  wrote:
> Hi folks,
>
> I know that there has been a lot of written about pagestores and
> multi-window support in wicket 1.5, but i have several other
> questions:
>
> 1. Is multi-window supported for non-versioned pages?
>
> If page is versioned everything works ok, but i always get
> StalePageExceptions when i use multiple windows/tabs with
> non-versioned pages.
> I think that StalePageException is useful in some cases when you wanna
> be sure that user has same page in all windows, but in older versions
> of wicket it was possible to have non versioned pages and multi-window
> support together (e.g. we have an application written in wicket 1.2.6
> that uses non-versioned pages in multiple windows)

no, it is not supported. supporting it has been problematic even in
1.4.x series where it required javascript and introduced a strange
redirect that happened as soon as the page was loaded. unversioned
pages also cause weird issues with the back button. if you want
something that is unversioned then i think building it as stateless
makes more sense.

> 2. How page stores work in clustered environment?
>
> In older versions of wicket we used pagemaps stored in HttpSession.
> When one node in cluster refuses to handle request, it was
> successfully handled by another nod, because HttpSession was
> replicated to another node. We have used non-versioned pages (no back
> button support needed) and in one pagemap there was max 5 pages.
> Wicket provided this functionality out-of-box.

in both 1.4.x and 1.5.x by default we store the current page in
session and the rest are spooled to disk. the current page is
replicated to all nodes since it is stored in session, so any node can
pick up a request.

>
> 3. How to achieve this in wicket 1.5?
>
> I have found PersistentPageManager which uses IPageStore to store
> pages. Pages are stored on disk by default, but there is also thread
> safe SerializedPagesCache with SoftReferences. Theres no out-of-box
> solution to store pages in HttpSession.
>
> I have also found file page-management.txt in org.apache.wicket.page
> package. It contains proposal of other pagamanagers and multi-window
> support for non-versioned pages.
>
> The proposal contains classes
>
> PersistentPageManager with DiskPageStore and
> SecondLevelCacheSessionStore for versioned pages
> SessionManager for holding non versioned pages in HttpSession.
>
> 4. Can we expect that this proposal will be implemented in wicket 1.5
> final version?

no. the current version is feature complete and we are concentrating
on bugfixing. a more sophisticated page management may be introduced
in the future. we have concentrated on the 99% usecase and simplified
the code for that. you can implement your own page storage strategies
as you see fit.

-igor

>
> Thanks for your replies.
>
> BR,
> Michal Kurtak
>
> -
> 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: resource for href="...

2010-12-12 Thread Zilvinas Vilutis
I don't think you can just use the file path ( and that is not secure... )

Please read the following to understand how to use resource reference
on external images:
https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html


Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com



2010/12/13 Ladislav DANKO :
> Snippet of code (note relevant removed):
> //file list in folder, sorted
> Folder folder = ((Start)Application.get()).getUploadFolder();
> File[] files = folder.getFiles();
> List lList = Arrays.asList(files);
> Collections.sort(lList);
> //for every image create clickable link with image as link
> RepeatingView view = new RepeatingView("repeater");
> Iterator iterator = lList.iterator();
> while(iterator.hasNext())
> {
>        iterator.next();
>        String fileName = lList.get(i).getName();
>        String path = "photo/" + fileName;
>        String compID = view.newChildId();
>        PhotoRepeater clickableImg = new PhotoRepeater(compID);
>        clickableImg.add(new ExternalLink("photoPath", path).add(new
> Image("image", path)));
>        view.add(clickableImg);
> }
> this.add(view);
>
> In the final I have right path for "img src" and wrong path in "a href"
>
> Laco
>
>> -Original Message-
>> From: Zilvinas Vilutis [mailto:cika...@gmail.com]
>> Sent: Monday, December 13, 2010 8:11 AM
>> To: users@wicket.apache.org
>> Subject: Re: resource for href="...
>>
>> I don't see where your "path" is constructed. Did you want to
>> construct an url for an Image ResourceReference ?
>>
>>
>> Žilvinas Vilutis
>>
>> Mobile:   (+370) 652 38353
>> E-mail:   cika...@gmail.com
>>
>>
>>
>> 2010/12/13 Ladislav DANKO :
>> > No, I don't need to download it, what I need is right path in href
>> > attribute in anchor html tag as is in img html tag (created
>> as new Image).
>> >
>> >
>> >> -Original Message-
>> >> From: jcar...@carmanconsulting.com
>> >> [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman
>> >> Sent: Monday, December 13, 2010 12:13 AM
>> >> To: users@wicket.apache.org
>> >> Subject: Re: resource for href="...
>> >>
>> >> You want it to download the image?  Try DownloadLink.
>> >>
>> >> On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO 
>> >> wrote:
>> >> > Hi guys,
>> >> >
>> >> > another question -have code (PhotoRepeater extends Panel, view is
>> >> > RepeatingView):
>> >> > ...
>> >> > String compID = view.newChildId();
>> >> > PhotoRepeater clickableImg = new PhotoRepeater(compID);
>> >> > clickableImg.add(new ExternalLink("fotoPath", path).add(new
>> >> > Image("image", path))); view.add(clickableImg);
>> this.add(view); ..
>> >> >
>> >> > and markup:
>> >> > 
>> >> >        > >> > href="#">
>> >> >                > border="2px" />
>> >> >        
>> >> > 
>> >> >
>> >> > It works, but in final markup there is:
>> >> > 
>> >> >        > >> >
>> src="resources/eu.testApp.MyPagePhotoRepeater/phfoto/01_sv_76.jpg"/
>> >> > >
>> >> > 
>> >> >
>> >> > so image is shown (right path to image resource) but not
>> clickable
>> >> > (wrong path). I'm using ExternalLink in wrong way but I
>> >> don't know the
>> >> > right way. Can you help me gyus, please?
>> >> >
>> >> > Laco
>> >> >
>> >> >
>> >> >
>> >>
>> -
>> >> > 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
>>
>>
>
>

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



RE: resource for href="...

2010-12-12 Thread Ladislav DANKO
Snippet of code (note relevant removed):
//file list in folder, sorted
Folder folder = ((Start)Application.get()).getUploadFolder();
File[] files = folder.getFiles();
List lList = Arrays.asList(files);
Collections.sort(lList);
//for every image create clickable link with image as link
RepeatingView view = new RepeatingView("repeater");
Iterator iterator = lList.iterator();
while(iterator.hasNext())
{
iterator.next();
String fileName = lList.get(i).getName();
String path = "photo/" + fileName;
String compID = view.newChildId();
PhotoRepeater clickableImg = new PhotoRepeater(compID);
clickableImg.add(new ExternalLink("photoPath", path).add(new
Image("image", path)));
view.add(clickableImg);
}
this.add(view);

In the final I have right path for "img src" and wrong path in "a href"

Laco

> -Original Message-
> From: Zilvinas Vilutis [mailto:cika...@gmail.com] 
> Sent: Monday, December 13, 2010 8:11 AM
> To: users@wicket.apache.org
> Subject: Re: resource for href="...
> 
> I don't see where your "path" is constructed. Did you want to 
> construct an url for an Image ResourceReference ?
> 
> 
> Žilvinas Vilutis
> 
> Mobile:   (+370) 652 38353
> E-mail:   cika...@gmail.com
> 
> 
> 
> 2010/12/13 Ladislav DANKO :
> > No, I don't need to download it, what I need is right path in href 
> > attribute in anchor html tag as is in img html tag (created 
> as new Image).
> >
> >
> >> -Original Message-
> >> From: jcar...@carmanconsulting.com
> >> [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman
> >> Sent: Monday, December 13, 2010 12:13 AM
> >> To: users@wicket.apache.org
> >> Subject: Re: resource for href="...
> >>
> >> You want it to download the image?  Try DownloadLink.
> >>
> >> On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO  
> >> wrote:
> >> > Hi guys,
> >> >
> >> > another question -have code (PhotoRepeater extends Panel, view is
> >> > RepeatingView):
> >> > ...
> >> > String compID = view.newChildId();
> >> > PhotoRepeater clickableImg = new PhotoRepeater(compID); 
> >> > clickableImg.add(new ExternalLink("fotoPath", path).add(new 
> >> > Image("image", path))); view.add(clickableImg); 
> this.add(view); ..
> >> >
> >> > and markup:
> >> > 
> >> >         >> > href="#">
> >> >                 border="2px" />
> >> >        
> >> > 
> >> >
> >> > It works, but in final markup there is:
> >> > 
> >> >         >> > 
> src="resources/eu.testApp.MyPagePhotoRepeater/phfoto/01_sv_76.jpg"/
> >> > >
> >> > 
> >> >
> >> > so image is shown (right path to image resource) but not 
> clickable 
> >> > (wrong path). I'm using ExternalLink in wrong way but I
> >> don't know the
> >> > right way. Can you help me gyus, please?
> >> >
> >> > Laco
> >> >
> >> >
> >> >
> >> 
> -
> >> > 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
> 
> 


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



Re: resource for href="...

2010-12-12 Thread Zilvinas Vilutis
I don't see where your "path" is constructed. Did you want to
construct an url for an Image ResourceReference ?


Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com



2010/12/13 Ladislav DANKO :
> No, I don't need to download it, what I need is right path in href attribute
> in anchor html tag as is in img html tag (created as new Image).
>
>
>> -Original Message-
>> From: jcar...@carmanconsulting.com
>> [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman
>> Sent: Monday, December 13, 2010 12:13 AM
>> To: users@wicket.apache.org
>> Subject: Re: resource for href="...
>>
>> You want it to download the image?  Try DownloadLink.
>>
>> On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO
>>  wrote:
>> > Hi guys,
>> >
>> > another question -have code (PhotoRepeater extends Panel, view is
>> > RepeatingView):
>> > ...
>> > String compID = view.newChildId();
>> > PhotoRepeater clickableImg = new PhotoRepeater(compID);
>> > clickableImg.add(new ExternalLink("fotoPath", path).add(new
>> > Image("image", path))); view.add(clickableImg); this.add(view); ..
>> >
>> > and markup:
>> > 
>> >        > > href="#">
>> >                
>> >        
>> > 
>> >
>> > It works, but in final markup there is:
>> > 
>> >        > > src="resources/eu.testApp.MyPagePhotoRepeater/phfoto/01_sv_76.jpg"/>
>> > 
>> >
>> > so image is shown (right path to image resource) but not clickable
>> > (wrong path). I'm using ExternalLink in wrong way but I
>> don't know the
>> > right way. Can you help me gyus, please?
>> >
>> > Laco
>> >
>> >
>> >
>> -
>> > 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: resource for href="...

2010-12-12 Thread Ladislav DANKO
No, I don't need to download it, what I need is right path in href attribute
in anchor html tag as is in img html tag (created as new Image).
 

> -Original Message-
> From: jcar...@carmanconsulting.com 
> [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman
> Sent: Monday, December 13, 2010 12:13 AM
> To: users@wicket.apache.org
> Subject: Re: resource for href="...
> 
> You want it to download the image?  Try DownloadLink.
> 
> On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO 
>  wrote:
> > Hi guys,
> >
> > another question -have code (PhotoRepeater extends Panel, view is
> > RepeatingView):
> > ...
> > String compID = view.newChildId();
> > PhotoRepeater clickableImg = new PhotoRepeater(compID); 
> > clickableImg.add(new ExternalLink("fotoPath", path).add(new 
> > Image("image", path))); view.add(clickableImg); this.add(view); ..
> >
> > and markup:
> > 
> >         > href="#">
> >                
> >        
> > 
> >
> > It works, but in final markup there is:
> > 
> >         > src="resources/eu.testApp.MyPagePhotoRepeater/phfoto/01_sv_76.jpg"/>
> > 
> >
> > so image is shown (right path to image resource) but not clickable 
> > (wrong path). I'm using ExternalLink in wrong way but I 
> don't know the 
> > right way. Can you help me gyus, please?
> >
> > Laco
> >
> >
> > 
> -
> > 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



[OT] Need Feedback from WicketForge users (IDEA plugin).

2010-12-12 Thread Minas Manthos

Hi

I plan to make a core change to WicketForge plugin and need some user
feedback. So if you like please follow up to
 
http://groups.google.com/group/wicketforge/t/f5b0f57d184d6f0f

Since this is not directly wicket related, please do not reply here.

Thanks
Minas.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/OT-Need-Feedback-from-WicketForge-users-IDEA-plugin-tp3084864p3084864.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



Generate markup outside of DataTable relatively to visible data

2010-12-12 Thread Benedikt Schlegel
I have a DefaultDataTable to get my data rendered in HTML which is
then postprocessed by a javascript lib to add some UI functionality
like moving and hiding columns and scrolling with fixed headers.

Now i want to add some checkboxes to make multi actions possible on
that table. For that, i want to use the Check, CheckGroup and
CheckGroupSelector components. I also want them to be always visible
for the user.

Unfortunately the javascript library im using doesn't support fixed
columns natively, and the plugin available for that case is just
pretty bad.
So i have to place the desired checkboxes outside of the DataTable component.

I thought about using a RepeatingView which is rendered everytime the
DataTable is rendered and somehow pass the current rows model
object... ? Or maybe i could use a DataView with the same DataProvider
and somehow catch changes on paging and sorting of the DataTable? So
unclear..


What do you think? It would be so nice if someone had an idea and
shared it with me.

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



Re: resource for href="...

2010-12-12 Thread James Carman
You want it to download the image?  Try DownloadLink.

On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO  wrote:
> Hi guys,
>
> another question -have code (PhotoRepeater extends Panel, view is
> RepeatingView):
> ...
> String compID = view.newChildId();
> PhotoRepeater clickableImg = new PhotoRepeater(compID);
> clickableImg.add(new ExternalLink("fotoPath", path).add(new Image("image",
> path)));
> view.add(clickableImg);
> this.add(view);
> ..
>
> and markup:
> 
>        
>                
>        
> 
>
> It works, but in final markup there is:
> 
>         src="resources/eu.testApp.MyPagePhotoRepeater/phfoto/01_sv_76.jpg"/>
> 
>
> so image is shown (right path to image resource) but not clickable (wrong
> path). I'm using
> ExternalLink in wrong way but I don't know the right way. Can you help me
> gyus, please?
>
> Laco
>
>
> -
> 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



resource for href="...

2010-12-12 Thread Ladislav DANKO
Hi guys,

another question -have code (PhotoRepeater extends Panel, view is
RepeatingView):
...
String compID = view.newChildId();
PhotoRepeater clickableImg = new PhotoRepeater(compID);
clickableImg.add(new ExternalLink("fotoPath", path).add(new Image("image",
path)));
view.add(clickableImg);
this.add(view);
..

and markup:






It works, but in final markup there is:




so image is shown (right path to image resource) but not clickable (wrong
path). I'm using
ExternalLink in wrong way but I don't know the right way. Can you help me
gyus, please?

Laco


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



Re: Remove busy indicator from ajax timer behavior?

2010-12-12 Thread fachhoch

I have a similar need , I dont want busy indicator for   ajaxTimer components
, please guide me  what   how to achieve this, help is appreciated .   
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Remove-busy-indicator-from-ajax-timer-behavior-tp2195698p3084704.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: repeters with

2010-12-12 Thread Ladislav DANKO
used, works ;-) -see my previous post. thanks for pointing me to this :)


> -Original Message-
> From: d.bartl.comsy...@googlemail.com 
> [mailto:d.bartl.comsy...@googlemail.com] On Behalf Of Daniel Bartl
> Sent: Sunday, December 12, 2010 10:12 PM
> To: users@wicket.apache.org
> Subject: Re: repeters with
> 
> Use RepeatingView#newChildId() in order to generate unique id 
> for each of your LinkAndImagePanels while iterating through 
> these like this:
> 
> for (LinkAndImagePanel panel : allPanels) {
> String id = repeater.newChildId();
> repeater.add(new LinkAndImagePanel(id, entry));
> }
> 
> 
> On Sun, Dec 12, 2010 at 10:02 PM, Ladislav DANKO 
>  wrote:
> 
> > Panel added
> > ...
> > view.add(new LinkAndImagePanel("linkandimagepanel"));
> > ...
> >
> > with apropriate panel markup and java code.
> >
> > Looks works when there is just one image but for two or more images 
> > there is error:
> > Caused by: java.lang.IllegalArgumentException: A child with id 
> > 'linkandimagepanel' already exists:
> >
> > How to add multiple panels in repeater? For Image there is param in 
> > constructor, but for Panel?
> >
> >
> >
> >
> > > -Original Message-
> > > From: Martin Grigorov [mailto:mgrigo...@apache.org]
> > > Sent: Sunday, December 12, 2010 11:10 AM
> > > To: users@wicket.apache.org
> > > Subject: Re: repeters with
> > >
> > > the repeater should add a Panel (or a Fragment) instead 
> of Image The 
> > > Panel itself will contain something like:
> > >
> > > ExternalLink link = new ExternalLink("id", href); add(link); 
> > > link.add(new Image("image", ...);
> > >
> > > On Sun, Dec 12, 2010 at 11:07 AM, Ladislav DANKO  
> > > wrote:
> > >
> > > > How is possible to make a nested html tag with 
> AttributeModifier?
> > > >
> > > > Laco
> > > >
> > > > > -Original Message-
> > > > > From: Per Newgro [mailto:per.new...@gmx.ch]
> > > > > Sent: Sunday, December 12, 2010 10:23 AM
> > > > > To: users@wicket.apache.org
> > > > > Subject: Re: repeters with
> > > > >
> > > > > You could add Links (instead of the image) and use an 
> > > > > AttributeModifier for the href.
> > > > >
> > > > > CHeers
> > > > > Per
> > > > >
> > > > > Am 12.12.2010 09:19, schrieb Ladislav DANKO:
> > > > > > Hi,
> > > > > >
> > > > > > from files in dir I do a list of photos. I do it this way:
> > > > > > public class InsertPhotos extends WebPage {
> > > > > > public InsertPhotos() throws IOException
> > > > > > {
> > > > > >
> > > > > > Folder folder =
> > > > > > ((Start)Application.get()).getPhotosFolder();
> > > > > > File[] files = folder.getFiles();
> > > > > > List  lList = Arrays.asList(files);
> > > > > > Collections.sort(lList);
> > > > > >
> > > > > > RepeatingView view = new 
> RepeatingView("repeater");
> > > > > > while(iterator.hasNext())
> > > > > > {
> > > > > > iterator.next();
> > > > > > String fileName = 
> lList.get(i).getName();
> > > > > > String path = "../../photos/" + 
> fileName;
> > > > > > i++;
> > > > > > view.add(new
> > > Image(view.newChildId(), path));
> > > > > > }
> > > > > > this.add(view);
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > and markup:
> > > > > >  > > > > > />
> > > > > >
> > > > > > so resulting markup is:
> > > > > >  > > style="padding: 2px; width:
> > > > > > 90px;"/>
> > > > > >  > > style="padding: 2px; width:
> > > > > > 90px;"/>
> > > > > > ...
> > > > > >
> > > > > > This works but now I need to make a clickable list of
> > > photos, so
> > > > > > resulting markup should be:
> > > > > >  > > > > href="resources/../../photos/1.jpg">
> > > > > >  > > > > > src="resources/../../photos/01.jpg" />   > > > > > rel="lightbox[svatebni]" 
> href="resources/../../photos/1.jpg">
> > > > > >  > > > > > src="resources/../../photos/02.jpg" />  ...
> > > > > >
> > > > > > I don't know how to add anchor around img tag, can
> > > someone help me
> > > > > > please? I was searching through doc and list but 
> found nothing.
> > > > > >
> > > > > > Thanks, Laco
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > 
> 
> > > > > -
> > > > > > 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 addit

RE: repeters with

2010-12-12 Thread Ladislav DANKO
Yes, I  know this doc. Not suitable for me (not shown case in
which html tags are nested -see my original post)



> -Original Message-
> From: jcgarciam [mailto:jcgarc...@gmail.com] 
> Sent: Sunday, December 12, 2010 10:10 PM
> To: users@wicket.apache.org
> Subject: Re: repeters with
> 
> 
> Taken from the Javadoc:
> http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/
> repeater/RepeatingView.html
>  /repeater/RepeatingView.html>
> The usual use of a RepeatingView is:
> 
> Example:
> 
> *Java:*
> 
>  RepeatingView view = new RepeatingView("repeater");  
> view.add(new Label(view.newChildId(), "hello"));  
> view.add(new Label(view.newChildId(), "goodbye"));  
> view.add(new Label(view.newChildId(), "good morning"));  add(view);
> 
> 
> *Markup:*
> 
> 
>   
> 
> 
> *Yields:*
> 
> 
>   hellogoodbyegood morning
> 
> 
> 
> On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO [via Apache Wicket] <
> ml-node+3084657-482134668-65...@n4.nabble.com 7-48213466
> ml-node+8-65...@n4.nabble.com>
> > wrote:
> 
> > Panel added
> > ...
> > view.add(new LinkAndImagePanel("linkandimagepanel"));
> > ...
> >
> > with apropriate panel markup and java code.
> >
> > Looks works when there is just one image but for two or more images 
> > there is error:
> > Caused by: java.lang.IllegalArgumentException: A child with id 
> > 'linkandimagepanel' already exists:
> >
> > How to add multiple panels in repeater? For Image there is param in 
> > constructor, but for Panel?
> >
> >
> >
> >
> > > -Original Message-
> > > From: Martin Grigorov [mailto:[hidden 
> > > email]]
> >
> > > Sent: Sunday, December 12, 2010 11:10 AM
> > > To: [hidden 
> > > email]
> > > Subject: Re: repeters with
> > >
> > > the repeater should add a Panel (or a Fragment) instead 
> of Image The 
> > > Panel itself will contain something like:
> > >
> > > ExternalLink link = new ExternalLink("id", href); add(link); 
> > > link.add(new Image("image", ...);
> > >
> > > On Sun, Dec 12, 2010 at 11:07 AM, Ladislav DANKO <[hidden email] 
> > > >
> > wrote:
> > >
> > > > How is possible to make a nested html tag with 
> AttributeModifier?
> > > >
> > > > Laco
> > > >
> > > > > -Original Message-
> > > > > From: Per Newgro [mailto:[hidden 
> > > > > email]]
> >
> > > > > Sent: Sunday, December 12, 2010 10:23 AM
> > > > > To: [hidden 
> > > > > email]
> > > > > Subject: Re: repeters with
> > > > >
> > > > > You could add Links (instead of the image) and use an 
> > > > > AttributeModifier for the href.
> > > > >
> > > > > CHeers
> > > > > Per
> > > > >
> > > > > Am 12.12.2010 09:19, schrieb Ladislav DANKO:
> > > > > > Hi,
> > > > > >
> > > > > > from files in dir I do a list of photos. I do it this way:
> > > > > > public class InsertPhotos extends WebPage {
> > > > > > public InsertPhotos() throws IOException
> > > > > > {
> > > > > >
> > > > > > Folder folder =
> > > > > > ((Start)Application.get()).getPhotosFolder();
> > > > > > File[] files = folder.getFiles();
> > > > > > List  lList = Arrays.asList(files);
> > > > > > Collections.sort(lList);
> > > > > >
> > > > > > RepeatingView view = new 
> RepeatingView("repeater");
> > > > > > while(iterator.hasNext())
> > > > > > {
> > > > > > iterator.next();
> > > > > > String fileName = 
> lList.get(i).getName();
> > > > > > String path = "../../photos/" + 
> fileName;
> > > > > > i++;
> > > > > > view.add(new
> > > Image(view.newChildId(), path));
> > > > > > }
> > > > > > this.add(view);
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > and markup:
> > > > > >  > > > > > />
> > > > > >
> > > > > > so resulting markup is:
> > > > > >  > > style="padding: 2px; width:
> > > > > > 90px;"/>
> > > > > >  > > style="padding: 2px; width:
> > > > > > 90px;"/>
> > > > > > ...
> > > > > >
> > > > > > This works but now I need to make a clickable list of
> > > photos, so
> > > > > > resulting markup should be:
> > > > > >  > > > > href="resources/../../photos/1.jpg">
> > > > > >  > > > > > src="resources/../../photos/01.jpg" />   > > > > > rel="lightbox[svatebni]" 
> href="resources/../../photos/1.jpg">
> > > > > >  > > > > > src="resources/../../photos/02.jpg" />  ...
> > > > > >
> > > > > > I don't know how to add anchor around img tag, can
> > > someone help me
> > > > > > please? I was searching through doc and list but 
> found nothing.
> > > > > >
> > > > > > Thanks, Laco
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > 
> ---

Re: repeters with

2010-12-12 Thread Daniel Bartl
Use RepeatingView#newChildId() in order to generate unique id for each of
your LinkAndImagePanels while iterating through these like this:

for (LinkAndImagePanel panel : allPanels) {
String id = repeater.newChildId();
repeater.add(new LinkAndImagePanel(id, entry));
}


On Sun, Dec 12, 2010 at 10:02 PM, Ladislav DANKO  wrote:

> Panel added
> ...
> view.add(new LinkAndImagePanel("linkandimagepanel"));
> ...
>
> with apropriate panel markup and java code.
>
> Looks works when there is just one image but for two or more images
> there is error:
> Caused by: java.lang.IllegalArgumentException: A child with id
> 'linkandimagepanel' already exists:
>
> How to add multiple panels in repeater? For Image there is param in
> constructor, but for Panel?
>
>
>
>
> > -Original Message-
> > From: Martin Grigorov [mailto:mgrigo...@apache.org]
> > Sent: Sunday, December 12, 2010 11:10 AM
> > To: users@wicket.apache.org
> > Subject: Re: repeters with
> >
> > the repeater should add a Panel (or a Fragment) instead of
> > Image The Panel itself will contain something like:
> >
> > ExternalLink link = new ExternalLink("id", href); add(link);
> > link.add(new Image("image", ...);
> >
> > On Sun, Dec 12, 2010 at 11:07 AM, Ladislav DANKO
> >  wrote:
> >
> > > How is possible to make a nested html tag with AttributeModifier?
> > >
> > > Laco
> > >
> > > > -Original Message-
> > > > From: Per Newgro [mailto:per.new...@gmx.ch]
> > > > Sent: Sunday, December 12, 2010 10:23 AM
> > > > To: users@wicket.apache.org
> > > > Subject: Re: repeters with
> > > >
> > > > You could add Links (instead of the image) and use an
> > > > AttributeModifier for the href.
> > > >
> > > > CHeers
> > > > Per
> > > >
> > > > Am 12.12.2010 09:19, schrieb Ladislav DANKO:
> > > > > Hi,
> > > > >
> > > > > from files in dir I do a list of photos. I do it this way:
> > > > > public class InsertPhotos extends WebPage {
> > > > > public InsertPhotos() throws IOException
> > > > > {
> > > > >
> > > > > Folder folder =
> > > > > ((Start)Application.get()).getPhotosFolder();
> > > > > File[] files = folder.getFiles();
> > > > > List  lList = Arrays.asList(files);
> > > > > Collections.sort(lList);
> > > > >
> > > > > RepeatingView view = new RepeatingView("repeater");
> > > > > while(iterator.hasNext())
> > > > > {
> > > > > iterator.next();
> > > > > String fileName = lList.get(i).getName();
> > > > > String path = "../../photos/" + fileName;
> > > > > i++;
> > > > > view.add(new
> > Image(view.newChildId(), path));
> > > > > }
> > > > > this.add(view);
> > > > > }
> > > > > }
> > > > >
> > > > > and markup:
> > > > > 
> > > > >
> > > > > so resulting markup is:
> > > > >  > style="padding: 2px; width:
> > > > > 90px;"/>
> > > > >  > style="padding: 2px; width:
> > > > > 90px;"/>
> > > > > ...
> > > > >
> > > > > This works but now I need to make a clickable list of
> > photos, so
> > > > > resulting markup should be:
> > > > >  > > > href="resources/../../photos/1.jpg">
> > > > >  > > > > src="resources/../../photos/01.jpg" />   > > > > rel="lightbox[svatebni]" href="resources/../../photos/1.jpg">
> > > > >  > > > > src="resources/../../photos/02.jpg" />  ...
> > > > >
> > > > > I don't know how to add anchor around img tag, can
> > someone help me
> > > > > please? I was searching through doc and list but found nothing.
> > > > >
> > > > > Thanks, Laco
> > > > >
> > > > >
> > > > >
> > > >
> > 
> > > > -
> > > > > 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: repeters with

2010-12-12 Thread jcgarciam

Taken from the Javadoc:
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/repeater/RepeatingView.html

The usual use of a RepeatingView is:

Example:

*Java:*

 RepeatingView view = new RepeatingView("repeater");
 view.add(new Label(view.newChildId(), "hello"));
 view.add(new Label(view.newChildId(), "goodbye"));
 view.add(new Label(view.newChildId(), "good morning"));
 add(view);


*Markup:*


  


*Yields:*


  hellogoodbyegood morning



On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO [via Apache Wicket] <
ml-node+3084657-482134668-65...@n4.nabble.com
> wrote:

> Panel added
> ...
> view.add(new LinkAndImagePanel("linkandimagepanel"));
> ...
>
> with apropriate panel markup and java code.
>
> Looks works when there is just one image but for two or more images
> there is error:
> Caused by: java.lang.IllegalArgumentException: A child with id
> 'linkandimagepanel' already exists:
>
> How to add multiple panels in repeater? For Image there is param in
> constructor, but for Panel?
>
>
>
>
> > -Original Message-
> > From: Martin Grigorov [mailto:[hidden 
> > email]]
>
> > Sent: Sunday, December 12, 2010 11:10 AM
> > To: [hidden email]
> > Subject: Re: repeters with
> >
> > the repeater should add a Panel (or a Fragment) instead of
> > Image The Panel itself will contain something like:
> >
> > ExternalLink link = new ExternalLink("id", href); add(link);
> > link.add(new Image("image", ...);
> >
> > On Sun, Dec 12, 2010 at 11:07 AM, Ladislav DANKO
> > <[hidden email] >
> wrote:
> >
> > > How is possible to make a nested html tag with AttributeModifier?
> > >
> > > Laco
> > >
> > > > -Original Message-
> > > > From: Per Newgro [mailto:[hidden 
> > > > email]]
>
> > > > Sent: Sunday, December 12, 2010 10:23 AM
> > > > To: [hidden email]
> > > > Subject: Re: repeters with
> > > >
> > > > You could add Links (instead of the image) and use an
> > > > AttributeModifier for the href.
> > > >
> > > > CHeers
> > > > Per
> > > >
> > > > Am 12.12.2010 09:19, schrieb Ladislav DANKO:
> > > > > Hi,
> > > > >
> > > > > from files in dir I do a list of photos. I do it this way:
> > > > > public class InsertPhotos extends WebPage {
> > > > > public InsertPhotos() throws IOException
> > > > > {
> > > > >
> > > > > Folder folder =
> > > > > ((Start)Application.get()).getPhotosFolder();
> > > > > File[] files = folder.getFiles();
> > > > > List  lList = Arrays.asList(files);
> > > > > Collections.sort(lList);
> > > > >
> > > > > RepeatingView view = new RepeatingView("repeater");
> > > > > while(iterator.hasNext())
> > > > > {
> > > > > iterator.next();
> > > > > String fileName = lList.get(i).getName();
> > > > > String path = "../../photos/" + fileName;
> > > > > i++;
> > > > > view.add(new
> > Image(view.newChildId(), path));
> > > > > }
> > > > > this.add(view);
> > > > > }
> > > > > }
> > > > >
> > > > > and markup:
> > > > > 
> > > > >
> > > > > so resulting markup is:
> > > > >  > style="padding: 2px; width:
> > > > > 90px;"/>
> > > > >  > style="padding: 2px; width:
> > > > > 90px;"/>
> > > > > ...
> > > > >
> > > > > This works but now I need to make a clickable list of
> > photos, so
> > > > > resulting markup should be:
> > > > >  > > > href="resources/../../photos/1.jpg">
> > > > >  > > > > src="resources/../../photos/01.jpg" />   > > > > rel="lightbox[svatebni]" href="resources/../../photos/1.jpg">
> > > > >  > > > > src="resources/../../photos/02.jpg" />  ...
> > > > >
> > > > > I don't know how to add anchor around img tag, can
> > someone help me
> > > > > please? I was searching through doc and list but found nothing.
> > > > >
> > > > > Thanks, Laco
> > > > >
> > > > >
> > > > >
> > > >
> > 
> > > > -
> > > > > To unsubscribe, e-mail: [hidden 
> > > > > email]
> > > > > For additional commands, e-mail: [hidden 
> > > > > email]
> > > > >
> > > > >
> > > >
> > 
> > > > - To unsubscribe, e-mail: [hidden 
> > > > email]
> > > > For additional commands, e-mail: [hidden 
> > > > email]
> > > >
> > > >
> > >
> > >
> > >
> > -

RE: repeters with

2010-12-12 Thread Ladislav DANKO
will answer myself :-)
view.add(new LinkAndImagePanel(view.newChildId()));

Laco


> -Original Message-
> From: Ladislav DANKO [mailto:em...@1ac0.net] 
> Sent: Sunday, December 12, 2010 10:03 PM
> To: users@wicket.apache.org
> Subject: RE: repeters with
> 
> Panel added
> ...
> view.add(new LinkAndImagePanel("linkandimagepanel"));
> ...
> 
> with apropriate panel markup and java code.
> 
> Looks works when there is just one image but for two or more 
> images there is error:
> Caused by: java.lang.IllegalArgumentException: A child with 
> id 'linkandimagepanel' already exists:
> 
> How to add multiple panels in repeater? For Image there is 
> param in constructor, but for Panel?
> 
> 
> 
> 
> > -Original Message-
> > From: Martin Grigorov [mailto:mgrigo...@apache.org]
> > Sent: Sunday, December 12, 2010 11:10 AM
> > To: users@wicket.apache.org
> > Subject: Re: repeters with
> > 
> > the repeater should add a Panel (or a Fragment) instead of 
> Image The 
> > Panel itself will contain something like:
> > 
> > ExternalLink link = new ExternalLink("id", href); add(link); 
> > link.add(new Image("image", ...);
> > 
> > On Sun, Dec 12, 2010 at 11:07 AM, Ladislav DANKO  
> > wrote:
> > 
> > > How is possible to make a nested html tag with AttributeModifier?
> > >
> > > Laco
> > >
> > > > -Original Message-
> > > > From: Per Newgro [mailto:per.new...@gmx.ch]
> > > > Sent: Sunday, December 12, 2010 10:23 AM
> > > > To: users@wicket.apache.org
> > > > Subject: Re: repeters with
> > > >
> > > > You could add Links (instead of the image) and use an 
> > > > AttributeModifier for the href.
> > > >
> > > > CHeers
> > > > Per
> > > >
> > > > Am 12.12.2010 09:19, schrieb Ladislav DANKO:
> > > > > Hi,
> > > > >
> > > > > from files in dir I do a list of photos. I do it this way:
> > > > > public class InsertPhotos extends WebPage {
> > > > > public InsertPhotos() throws IOException
> > > > > {
> > > > >
> > > > > Folder folder =
> > > > > ((Start)Application.get()).getPhotosFolder();
> > > > > File[] files = folder.getFiles();
> > > > > List  lList = Arrays.asList(files);
> > > > > Collections.sort(lList);
> > > > >
> > > > > RepeatingView view = new 
> RepeatingView("repeater");
> > > > > while(iterator.hasNext())
> > > > > {
> > > > > iterator.next();
> > > > > String fileName = lList.get(i).getName();
> > > > > String path = "../../photos/" + fileName;
> > > > > i++;
> > > > > view.add(new
> > Image(view.newChildId(), path));
> > > > > }
> > > > > this.add(view);
> > > > > }
> > > > > }
> > > > >
> > > > > and markup:
> > > > > 
> > > > >
> > > > > so resulting markup is:
> > > > >  > style="padding: 2px; width:
> > > > > 90px;"/>
> > > > >  > style="padding: 2px; width:
> > > > > 90px;"/>
> > > > > ...
> > > > >
> > > > > This works but now I need to make a clickable list of
> > photos, so
> > > > > resulting markup should be:
> > > > >  > > > href="resources/../../photos/1.jpg">
> > > > >  > > > > src="resources/../../photos/01.jpg" />   > > > > rel="lightbox[svatebni]" href="resources/../../photos/1.jpg">
> > > > >  > > > > src="resources/../../photos/02.jpg" />  ...
> > > > >
> > > > > I don't know how to add anchor around img tag, can
> > someone help me
> > > > > please? I was searching through doc and list but 
> found nothing.
> > > > >
> > > > > Thanks, Laco
> > > > >
> > > > >
> > > > >
> > > > 
> > 
> > > > -
> > > > > 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
> 
> 


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



RE: repeters with

2010-12-12 Thread Ladislav DANKO
Panel added
...
view.add(new LinkAndImagePanel("linkandimagepanel"));
...

with apropriate panel markup and java code.

Looks works when there is just one image but for two or more images
there is error:
Caused by: java.lang.IllegalArgumentException: A child with id
'linkandimagepanel' already exists:

How to add multiple panels in repeater? For Image there is param in
constructor, but for Panel?




> -Original Message-
> From: Martin Grigorov [mailto:mgrigo...@apache.org] 
> Sent: Sunday, December 12, 2010 11:10 AM
> To: users@wicket.apache.org
> Subject: Re: repeters with
> 
> the repeater should add a Panel (or a Fragment) instead of 
> Image The Panel itself will contain something like:
> 
> ExternalLink link = new ExternalLink("id", href); add(link); 
> link.add(new Image("image", ...);
> 
> On Sun, Dec 12, 2010 at 11:07 AM, Ladislav DANKO 
>  wrote:
> 
> > How is possible to make a nested html tag with AttributeModifier?
> >
> > Laco
> >
> > > -Original Message-
> > > From: Per Newgro [mailto:per.new...@gmx.ch]
> > > Sent: Sunday, December 12, 2010 10:23 AM
> > > To: users@wicket.apache.org
> > > Subject: Re: repeters with
> > >
> > > You could add Links (instead of the image) and use an 
> > > AttributeModifier for the href.
> > >
> > > CHeers
> > > Per
> > >
> > > Am 12.12.2010 09:19, schrieb Ladislav DANKO:
> > > > Hi,
> > > >
> > > > from files in dir I do a list of photos. I do it this way:
> > > > public class InsertPhotos extends WebPage {
> > > > public InsertPhotos() throws IOException
> > > > {
> > > >
> > > > Folder folder =
> > > > ((Start)Application.get()).getPhotosFolder();
> > > > File[] files = folder.getFiles();
> > > > List  lList = Arrays.asList(files);
> > > > Collections.sort(lList);
> > > >
> > > > RepeatingView view = new RepeatingView("repeater");
> > > > while(iterator.hasNext())
> > > > {
> > > > iterator.next();
> > > > String fileName = lList.get(i).getName();
> > > > String path = "../../photos/" + fileName;
> > > > i++;
> > > > view.add(new 
> Image(view.newChildId(), path));
> > > > }
> > > > this.add(view);
> > > > }
> > > > }
> > > >
> > > > and markup:
> > > > 
> > > >
> > > > so resulting markup is:
> > > >  style="padding: 2px; width:
> > > > 90px;"/>
> > > >  style="padding: 2px; width:
> > > > 90px;"/>
> > > > ...
> > > >
> > > > This works but now I need to make a clickable list of 
> photos, so 
> > > > resulting markup should be:
> > > >  > > href="resources/../../photos/1.jpg">
> > > >  > > > src="resources/../../photos/01.jpg" />   > > > rel="lightbox[svatebni]" href="resources/../../photos/1.jpg">
> > > >  > > > src="resources/../../photos/02.jpg" />  ...
> > > >
> > > > I don't know how to add anchor around img tag, can 
> someone help me 
> > > > please? I was searching through doc and list but found nothing.
> > > >
> > > > Thanks, Laco
> > > >
> > > >
> > > >
> > > 
> 
> > > -
> > > > 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: StalePageException and AJAX possible bug

2010-12-12 Thread Michal Kurtak
JIRA issue created https://issues.apache.org/jira/browse/WICKET-3252

2010/12/11 Martin Grigorov :
> Yes, please.
> Create a ticket with a quickstart.
> Even better - with a patch ;-)
>
> On Sat, Dec 11, 2010 at 10:26 AM, Michal Kurtak 
> wrote:
>
>> Hi,
>>
>> I have encountered a problem when using not versioned page with AJAX
>> in multiple tabs/windows .
>>
>> Suppose I have ajax link which changes its model in non versioned
>> page. I open the same page in new tab/window and click on the link.
>> When i click the link in the first tab/window i get javascript error
>>
>> Wicket.Ajax: Wicket.Ajax.Call.failure: Error while parsing response:
>> Could not find root  element
>> This occurs because theres a hole page rendered in response
>> (ajax-response element is missing)
>>
>> Should i create JIRA issue or is this a known bug?
>>
>> BR,
>> Michal
>>
>> -
>> 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: repeters with

2010-12-12 Thread Martin Grigorov
the repeater should add a Panel (or a Fragment) instead of Image
The Panel itself will contain something like:

ExternalLink link = new ExternalLink("id", href);
add(link);
link.add(new Image("image", ...);

On Sun, Dec 12, 2010 at 11:07 AM, Ladislav DANKO  wrote:

> How is possible to make a nested html tag with AttributeModifier?
>
> Laco
>
> > -Original Message-
> > From: Per Newgro [mailto:per.new...@gmx.ch]
> > Sent: Sunday, December 12, 2010 10:23 AM
> > To: users@wicket.apache.org
> > Subject: Re: repeters with
> >
> > You could add Links (instead of the image) and use an
> > AttributeModifier for the href.
> >
> > CHeers
> > Per
> >
> > Am 12.12.2010 09:19, schrieb Ladislav DANKO:
> > > Hi,
> > >
> > > from files in dir I do a list of photos. I do it this way:
> > > public class InsertPhotos extends WebPage {
> > > public InsertPhotos() throws IOException
> > > {
> > >
> > > Folder folder =
> > > ((Start)Application.get()).getPhotosFolder();
> > > File[] files = folder.getFiles();
> > > List  lList = Arrays.asList(files);
> > > Collections.sort(lList);
> > >
> > > RepeatingView view = new RepeatingView("repeater");
> > > while(iterator.hasNext())
> > > {
> > > iterator.next();
> > > String fileName = lList.get(i).getName();
> > > String path = "../../photos/" + fileName;
> > > i++;
> > > view.add(new Image(view.newChildId(), path));
> > > }
> > > this.add(view);
> > > }
> > > }
> > >
> > > and markup:
> > > 
> > >
> > > so resulting markup is:
> > > 
> > > 
> > > ...
> > >
> > > This works but now I need to make a clickable list of photos, so
> > > resulting markup should be:
> > >  > href="resources/../../photos/1.jpg">
> > >  > > src="resources/../../photos/01.jpg" />   > > rel="lightbox[svatebni]" href="resources/../../photos/1.jpg">
> > >  > > src="resources/../../photos/02.jpg" />  ...
> > >
> > > I don't know how to add anchor around img tag, can someone help me
> > > please? I was searching through doc and list but found nothing.
> > >
> > > Thanks, Laco
> > >
> > >
> > >
> > -
> > > 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: repeters with

2010-12-12 Thread Ladislav DANKO
How is possible to make a nested html tag with AttributeModifier? 

Laco

> -Original Message-
> From: Per Newgro [mailto:per.new...@gmx.ch] 
> Sent: Sunday, December 12, 2010 10:23 AM
> To: users@wicket.apache.org
> Subject: Re: repeters with
> 
> You could add Links (instead of the image) and use an 
> AttributeModifier for the href.
> 
> CHeers
> Per
> 
> Am 12.12.2010 09:19, schrieb Ladislav DANKO:
> > Hi,
> >
> > from files in dir I do a list of photos. I do it this way:
> > public class InsertPhotos extends WebPage {
> > public InsertPhotos() throws IOException
> > {
> >
> > Folder folder =
> > ((Start)Application.get()).getPhotosFolder();
> > File[] files = folder.getFiles();
> > List  lList = Arrays.asList(files);
> > Collections.sort(lList);
> >
> > RepeatingView view = new RepeatingView("repeater");
> > while(iterator.hasNext())
> > {
> > iterator.next();
> > String fileName = lList.get(i).getName();
> > String path = "../../photos/" + fileName;
> > i++;
> > view.add(new Image(view.newChildId(), path));
> > }
> > this.add(view);
> > }
> > }
> >
> > and markup:
> > 
> >
> > so resulting markup is:
> > 
> > 
> > ...
> >
> > This works but now I need to make a clickable list of photos, so 
> > resulting markup should be:
> >  href="resources/../../photos/1.jpg">
> >  > src="resources/../../photos/01.jpg" />   > rel="lightbox[svatebni]" href="resources/../../photos/1.jpg">
> >  > src="resources/../../photos/02.jpg" />  ...
> >
> > I don't know how to add anchor around img tag, can someone help me 
> > please? I was searching through doc and list but found nothing.
> >
> > Thanks, Laco
> >
> >
> > 
> -
> > 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: repeters with

2010-12-12 Thread Per Newgro

Am 12.12.2010 09:19, schrieb Ladislav DANKO:

Hi,

from files in dir I do a list of photos. I do it this way:
public class InsertPhotos extends WebPage
{
public InsertPhotos() throws IOException
{

Folder folder =
((Start)Application.get()).getPhotosFolder();
File[] files = folder.getFiles();
List  lList = Arrays.asList(files);
Collections.sort(lList);

RepeatingView view = new RepeatingView("repeater");
while(iterator.hasNext())
{
iterator.next();
String fileName = lList.get(i).getName();
String path = "../../photos/" + fileName;
i++;
view.add(new Image(view.newChildId(), path));
}
this.add(view);
}
}

and markup:


so resulting markup is:


...

This works but now I need to make a clickable list of photos, so resulting
markup
should be:






...

I don't know how to add anchor around img tag, can someone help me
please? I was searching through doc and list but found nothing.

Thanks, Laco


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


You could add Links (instead of the image) and use an AttributeModifier 
for the href.


CHeers
Per

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



repeters with

2010-12-12 Thread Ladislav DANKO
Hi,

from files in dir I do a list of photos. I do it this way:
public class InsertPhotos extends WebPage
{
public InsertPhotos() throws IOException
{

Folder folder =
((Start)Application.get()).getPhotosFolder();
File[] files = folder.getFiles();
List lList = Arrays.asList(files);
Collections.sort(lList);

RepeatingView view = new RepeatingView("repeater");
while(iterator.hasNext())
{
iterator.next();
String fileName = lList.get(i).getName();
String path = "../../photos/" + fileName;
i++;
view.add(new Image(view.newChildId(), path));
}
this.add(view);
}
}

and markup:


so resulting markup is:


...

This works but now I need to make a clickable list of photos, so resulting
markup
should be:






...

I don't know how to add anchor around img tag, can someone help me
please? I was searching through doc and list but found nothing.

Thanks, Laco


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